@polymarket/bindings 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import * as _polymarket_types from '@polymarket/types';
2
- import { TxHash } from '@polymarket/types';
3
- import { BaseUnits, CtfConditionId, TokenId, DecimalString, IsoDateTimeString, TradeStatus, NotificationId, EpochMilliseconds, ApiKey, OrderSide, OrderId, TickSizeValue } from '../index.js';
2
+ import { TxHash, EvmAddress } from '@polymarket/types';
3
+ import { BaseUnits, ConditionId, TokenId, DecimalString, IsoDateTimeString, TradeStatus, ApiKey, OrderSide, OrderId, NotificationId, EpochMilliseconds, CommentId, CommentParentEntityType, ImageOptimizationId, ComboConditionId, PositionId, QuestionId, OrderType, TickSizeValue, SessionSignerScope, SessionSignerKnownScope } from '../index.js';
4
4
  import { z } from 'zod';
5
5
  export { S as SignatureType, a as SignatureTypeSchema } from '../signature-type-CrLAA9AN.js';
6
6
 
@@ -14,8 +14,8 @@ declare const ClosedOnlyModeSchema: z.ZodPipe<z.ZodObject<{
14
14
  type ClosedOnlyMode = z.infer<typeof ClosedOnlyModeSchema>;
15
15
  type OpenOrder = {
16
16
  id: string;
17
- /** CTF condition id for the market associated with this order. */
18
- conditionId: CtfConditionId;
17
+ /** Condition ID for the market associated with this order. */
18
+ conditionId: ConditionId;
19
19
  tokenId: TokenId;
20
20
  owner: string;
21
21
  makerAddress: string;
@@ -37,7 +37,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
37
37
  expiration: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString | undefined, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
38
38
  id: z.ZodString;
39
39
  maker_address: z.ZodString;
40
- market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
40
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
41
41
  order_type: z.ZodString;
42
42
  original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
43
43
  outcome: z.ZodString;
@@ -47,7 +47,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
47
47
  size_matched: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
48
48
  status: z.ZodString;
49
49
  }, z.core.$strip>, z.ZodTransform<{
50
- conditionId: CtfConditionId;
50
+ conditionId: ConditionId;
51
51
  tokenId: TokenId;
52
52
  associateTrades: string[];
53
53
  createdAt: IsoDateTimeString;
@@ -63,7 +63,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
63
63
  status: string;
64
64
  } | {
65
65
  expiresAt: IsoDateTimeString;
66
- conditionId: CtfConditionId;
66
+ conditionId: ConditionId;
67
67
  tokenId: TokenId;
68
68
  associateTrades: string[];
69
69
  createdAt: IsoDateTimeString;
@@ -84,7 +84,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
84
84
  expiration: IsoDateTimeString | undefined;
85
85
  id: string;
86
86
  maker_address: string;
87
- market: CtfConditionId;
87
+ market: ConditionId;
88
88
  order_type: string;
89
89
  original_size: DecimalString;
90
90
  outcome: string;
@@ -103,7 +103,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
103
103
  expiration: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<IsoDateTimeString | undefined, number>>, z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>]>;
104
104
  id: z.ZodString;
105
105
  maker_address: z.ZodString;
106
- market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
106
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
107
107
  order_type: z.ZodString;
108
108
  original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
109
109
  outcome: z.ZodString;
@@ -113,7 +113,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
113
113
  size_matched: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
114
114
  status: z.ZodString;
115
115
  }, z.core.$strip>, z.ZodTransform<{
116
- conditionId: CtfConditionId;
116
+ conditionId: ConditionId;
117
117
  tokenId: TokenId;
118
118
  associateTrades: string[];
119
119
  createdAt: IsoDateTimeString;
@@ -129,7 +129,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
129
129
  status: string;
130
130
  } | {
131
131
  expiresAt: IsoDateTimeString;
132
- conditionId: CtfConditionId;
132
+ conditionId: ConditionId;
133
133
  tokenId: TokenId;
134
134
  associateTrades: string[];
135
135
  createdAt: IsoDateTimeString;
@@ -150,7 +150,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
150
150
  expiration: IsoDateTimeString | undefined;
151
151
  id: string;
152
152
  maker_address: string;
153
- market: CtfConditionId;
153
+ market: ConditionId;
154
154
  order_type: string;
155
155
  original_size: DecimalString;
156
156
  outcome: string;
@@ -166,7 +166,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
166
166
  nextCursor: string;
167
167
  count: number;
168
168
  data: ({
169
- conditionId: CtfConditionId;
169
+ conditionId: ConditionId;
170
170
  tokenId: TokenId;
171
171
  associateTrades: string[];
172
172
  createdAt: IsoDateTimeString;
@@ -182,7 +182,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
182
182
  status: string;
183
183
  } | {
184
184
  expiresAt: IsoDateTimeString;
185
- conditionId: CtfConditionId;
185
+ conditionId: ConditionId;
186
186
  tokenId: TokenId;
187
187
  associateTrades: string[];
188
188
  createdAt: IsoDateTimeString;
@@ -201,7 +201,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
201
201
  }, {
202
202
  count: number;
203
203
  data: ({
204
- conditionId: CtfConditionId;
204
+ conditionId: ConditionId;
205
205
  tokenId: TokenId;
206
206
  associateTrades: string[];
207
207
  createdAt: IsoDateTimeString;
@@ -217,7 +217,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
217
217
  status: string;
218
218
  } | {
219
219
  expiresAt: IsoDateTimeString;
220
- conditionId: CtfConditionId;
220
+ conditionId: ConditionId;
221
221
  tokenId: TokenId;
222
222
  associateTrades: string[];
223
223
  createdAt: IsoDateTimeString;
@@ -270,8 +270,8 @@ declare const MakerOrderSchema: z.ZodPipe<z.ZodObject<{
270
270
  type MakerOrder = z.output<typeof MakerOrderSchema>;
271
271
  type ClobTrade = {
272
272
  id: string;
273
- /** CTF condition id for the market associated with this trade. */
274
- conditionId: CtfConditionId;
273
+ /** Condition ID for the market associated with this trade. */
274
+ conditionId: ConditionId;
275
275
  tokenId: TokenId;
276
276
  owner: string;
277
277
  makerAddress: string;
@@ -327,7 +327,7 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
327
327
  price: DecimalString;
328
328
  side: string;
329
329
  }>>>;
330
- market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
330
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
331
331
  match_time: 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>>]>;
332
332
  outcome: z.ZodString;
333
333
  owner: z.ZodString;
@@ -342,7 +342,7 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
342
342
  }>;
343
343
  transaction_hash: z.ZodString;
344
344
  }, z.core.$strip>, z.ZodTransform<{
345
- conditionId: CtfConditionId;
345
+ conditionId: ConditionId;
346
346
  tokenId: TokenId;
347
347
  bucketIndex: number;
348
348
  feeRateBps: DecimalString;
@@ -388,7 +388,7 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
388
388
  price: DecimalString;
389
389
  side: string;
390
390
  }[];
391
- market: CtfConditionId;
391
+ market: ConditionId;
392
392
  match_time: IsoDateTimeString;
393
393
  outcome: string;
394
394
  owner: string;
@@ -440,7 +440,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
440
440
  price: DecimalString;
441
441
  side: string;
442
442
  }>>>;
443
- market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
443
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
444
444
  match_time: 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>>]>;
445
445
  outcome: z.ZodString;
446
446
  owner: z.ZodString;
@@ -455,7 +455,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
455
455
  }>;
456
456
  transaction_hash: z.ZodString;
457
457
  }, z.core.$strip>, z.ZodTransform<{
458
- conditionId: CtfConditionId;
458
+ conditionId: ConditionId;
459
459
  tokenId: TokenId;
460
460
  bucketIndex: number;
461
461
  feeRateBps: DecimalString;
@@ -501,7 +501,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
501
501
  price: DecimalString;
502
502
  side: string;
503
503
  }[];
504
- market: CtfConditionId;
504
+ market: ConditionId;
505
505
  match_time: IsoDateTimeString;
506
506
  outcome: string;
507
507
  owner: string;
@@ -519,7 +519,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
519
519
  nextCursor: string;
520
520
  count: number;
521
521
  data: {
522
- conditionId: CtfConditionId;
522
+ conditionId: ConditionId;
523
523
  tokenId: TokenId;
524
524
  bucketIndex: number;
525
525
  feeRateBps: DecimalString;
@@ -552,7 +552,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
552
552
  }, {
553
553
  count: number;
554
554
  data: {
555
- conditionId: CtfConditionId;
555
+ conditionId: ConditionId;
556
556
  tokenId: TokenId;
557
557
  bucketIndex: number;
558
558
  feeRateBps: DecimalString;
@@ -585,22 +585,6 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
585
585
  next_cursor: string;
586
586
  }>>;
587
587
  type ClobTradesPage = z.infer<typeof ClobTradesPageSchema>;
588
- declare const NotificationSchema: z.ZodObject<{
589
- id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
590
- owner: z.ZodString;
591
- payload: z.ZodUnknown;
592
- timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
593
- type: z.ZodNumber;
594
- }, z.core.$strip>;
595
- type Notification = z.infer<typeof NotificationSchema>;
596
- declare const NotificationsResponseSchema: z.ZodArray<z.ZodObject<{
597
- id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
598
- owner: z.ZodString;
599
- payload: z.ZodUnknown;
600
- timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
601
- type: z.ZodNumber;
602
- }, z.core.$strip>>;
603
- type NotificationsResponse = z.infer<typeof NotificationsResponseSchema>;
604
588
  declare enum AssetType {
605
589
  COLLATERAL = "COLLATERAL",
606
590
  CONDITIONAL = "CONDITIONAL"
@@ -620,21 +604,21 @@ type OrdersScoringResponse = z.infer<typeof OrdersScoringResponseSchema>;
620
604
  declare const UserEarningSchema: z.ZodPipe<z.ZodObject<{
621
605
  asset_address: z.ZodString;
622
606
  asset_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
623
- condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
607
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
624
608
  date: 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>>]>;
625
609
  earnings: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
626
610
  maker_address: z.ZodString;
627
611
  }, z.core.$strip>, z.ZodTransform<{
628
612
  assetAddress: string;
629
613
  assetRate: DecimalString;
630
- conditionId: CtfConditionId;
614
+ conditionId: ConditionId;
631
615
  makerAddress: string;
632
616
  date: IsoDateTimeString;
633
617
  earnings: DecimalString;
634
618
  }, {
635
619
  asset_address: string;
636
620
  asset_rate: DecimalString;
637
- condition_id: CtfConditionId;
621
+ condition_id: ConditionId;
638
622
  date: IsoDateTimeString;
639
623
  earnings: DecimalString;
640
624
  maker_address: string;
@@ -645,21 +629,21 @@ declare const UserEarningsPageSchema: z.ZodPipe<z.ZodObject<{
645
629
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
646
630
  asset_address: z.ZodString;
647
631
  asset_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
648
- condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
632
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
649
633
  date: 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>>]>;
650
634
  earnings: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
651
635
  maker_address: z.ZodString;
652
636
  }, z.core.$strip>, z.ZodTransform<{
653
637
  assetAddress: string;
654
638
  assetRate: DecimalString;
655
- conditionId: CtfConditionId;
639
+ conditionId: ConditionId;
656
640
  makerAddress: string;
657
641
  date: IsoDateTimeString;
658
642
  earnings: DecimalString;
659
643
  }, {
660
644
  asset_address: string;
661
645
  asset_rate: DecimalString;
662
- condition_id: CtfConditionId;
646
+ condition_id: ConditionId;
663
647
  date: IsoDateTimeString;
664
648
  earnings: DecimalString;
665
649
  maker_address: string;
@@ -672,7 +656,7 @@ declare const UserEarningsPageSchema: z.ZodPipe<z.ZodObject<{
672
656
  data: {
673
657
  assetAddress: string;
674
658
  assetRate: DecimalString;
675
- conditionId: CtfConditionId;
659
+ conditionId: ConditionId;
676
660
  makerAddress: string;
677
661
  date: IsoDateTimeString;
678
662
  earnings: DecimalString;
@@ -683,7 +667,7 @@ declare const UserEarningsPageSchema: z.ZodPipe<z.ZodObject<{
683
667
  data: {
684
668
  assetAddress: string;
685
669
  assetRate: DecimalString;
686
- conditionId: CtfConditionId;
670
+ conditionId: ConditionId;
687
671
  makerAddress: string;
688
672
  date: IsoDateTimeString;
689
673
  earnings: DecimalString;
@@ -732,7 +716,7 @@ declare const TotalUserEarningsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<
732
716
  maker_address: string;
733
717
  }>>>;
734
718
  type TotalUserEarningsResponse = z.infer<typeof TotalUserEarningsResponseSchema>;
735
- declare const RewardsPercentagesSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>, z.ZodNumber>;
719
+ declare const RewardsPercentagesSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>, z.ZodNumber>;
736
720
  type RewardsPercentages = z.infer<typeof RewardsPercentagesSchema>;
737
721
  declare const TokenSchema: z.ZodPipe<z.ZodObject<{
738
722
  outcome: z.ZodString;
@@ -780,7 +764,7 @@ declare const EarningSchema: z.ZodPipe<z.ZodObject<{
780
764
  earnings: DecimalString;
781
765
  }>>;
782
766
  declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
783
- condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
767
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
784
768
  earning_percentage: z.ZodNumber;
785
769
  earnings: z.ZodArray<z.ZodPipe<z.ZodObject<{
786
770
  asset_address: z.ZodString;
@@ -836,7 +820,7 @@ declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
836
820
  token_id: TokenId;
837
821
  }>>>;
838
822
  }, z.core.$strip>, z.ZodTransform<{
839
- conditionId: CtfConditionId;
823
+ conditionId: ConditionId;
840
824
  earningPercentage: number;
841
825
  eventSlug: string;
842
826
  makerAddress: string;
@@ -864,7 +848,7 @@ declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
864
848
  price: DecimalString;
865
849
  }[];
866
850
  }, {
867
- condition_id: CtfConditionId;
851
+ condition_id: ConditionId;
868
852
  earning_percentage: number;
869
853
  earnings: {
870
854
  assetAddress: string;
@@ -896,7 +880,7 @@ type UserRewardsEarning = z.infer<typeof UserRewardsEarningSchema>;
896
880
  declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
897
881
  count: z.ZodNumber;
898
882
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
899
- condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
883
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
900
884
  earning_percentage: z.ZodNumber;
901
885
  earnings: z.ZodArray<z.ZodPipe<z.ZodObject<{
902
886
  asset_address: z.ZodString;
@@ -952,7 +936,7 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
952
936
  token_id: TokenId;
953
937
  }>>>;
954
938
  }, z.core.$strip>, z.ZodTransform<{
955
- conditionId: CtfConditionId;
939
+ conditionId: ConditionId;
956
940
  earningPercentage: number;
957
941
  eventSlug: string;
958
942
  makerAddress: string;
@@ -980,7 +964,7 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
980
964
  price: DecimalString;
981
965
  }[];
982
966
  }, {
983
- condition_id: CtfConditionId;
967
+ condition_id: ConditionId;
984
968
  earning_percentage: number;
985
969
  earnings: {
986
970
  assetAddress: string;
@@ -1014,7 +998,7 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
1014
998
  nextCursor: string;
1015
999
  count: number;
1016
1000
  data: {
1017
- conditionId: CtfConditionId;
1001
+ conditionId: ConditionId;
1018
1002
  earningPercentage: number;
1019
1003
  eventSlug: string;
1020
1004
  makerAddress: string;
@@ -1046,7 +1030,7 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
1046
1030
  }, {
1047
1031
  count: number;
1048
1032
  data: {
1049
- conditionId: CtfConditionId;
1033
+ conditionId: ConditionId;
1050
1034
  earningPercentage: number;
1051
1035
  eventSlug: string;
1052
1036
  makerAddress: string;
@@ -1133,8 +1117,8 @@ type BuilderTrade = {
1133
1117
  tradeType: string;
1134
1118
  takerOrderHash: string;
1135
1119
  builder: string;
1136
- /** CTF condition id for the market associated with this trade. */
1137
- conditionId: CtfConditionId;
1120
+ /** Condition ID for the market associated with this trade. */
1121
+ conditionId: ConditionId;
1138
1122
  tokenId: TokenId;
1139
1123
  side: OrderSide;
1140
1124
  size: DecimalString;
@@ -1159,7 +1143,7 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
1159
1143
  tradeType: z.ZodString;
1160
1144
  takerOrderHash: z.ZodString;
1161
1145
  builder: z.ZodString;
1162
- market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
1146
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1163
1147
  assetId: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1164
1148
  side: z.ZodEnum<typeof OrderSide>;
1165
1149
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1179,7 +1163,7 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
1179
1163
  createdAt: z.ZodOptional<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>>]>>;
1180
1164
  updatedAt: z.ZodOptional<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>>]>>;
1181
1165
  }, z.core.$strip>, z.ZodTransform<{
1182
- conditionId: CtfConditionId;
1166
+ conditionId: ConditionId;
1183
1167
  tokenId: TokenId;
1184
1168
  errMsg: string | null | undefined;
1185
1169
  matchedAt: IsoDateTimeString;
@@ -1207,7 +1191,7 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
1207
1191
  tradeType: string;
1208
1192
  takerOrderHash: string;
1209
1193
  builder: string;
1210
- market: CtfConditionId;
1194
+ market: ConditionId;
1211
1195
  assetId: TokenId;
1212
1196
  side: OrderSide;
1213
1197
  size: DecimalString;
@@ -1236,7 +1220,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
1236
1220
  tradeType: z.ZodString;
1237
1221
  takerOrderHash: z.ZodString;
1238
1222
  builder: z.ZodString;
1239
- market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
1223
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1240
1224
  assetId: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1241
1225
  side: z.ZodEnum<typeof OrderSide>;
1242
1226
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1256,7 +1240,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
1256
1240
  createdAt: z.ZodOptional<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>>]>>;
1257
1241
  updatedAt: z.ZodOptional<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>>]>>;
1258
1242
  }, z.core.$strip>, z.ZodTransform<{
1259
- conditionId: CtfConditionId;
1243
+ conditionId: ConditionId;
1260
1244
  tokenId: TokenId;
1261
1245
  errMsg: string | null | undefined;
1262
1246
  matchedAt: IsoDateTimeString;
@@ -1284,7 +1268,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
1284
1268
  tradeType: string;
1285
1269
  takerOrderHash: string;
1286
1270
  builder: string;
1287
- market: CtfConditionId;
1271
+ market: ConditionId;
1288
1272
  assetId: TokenId;
1289
1273
  side: OrderSide;
1290
1274
  size: DecimalString;
@@ -1309,7 +1293,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
1309
1293
  limit: number;
1310
1294
  count: number;
1311
1295
  data: {
1312
- conditionId: CtfConditionId;
1296
+ conditionId: ConditionId;
1313
1297
  tokenId: TokenId;
1314
1298
  errMsg: string | null | undefined;
1315
1299
  matchedAt: IsoDateTimeString;
@@ -1338,7 +1322,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
1338
1322
  count: number;
1339
1323
  next_cursor: string;
1340
1324
  data: {
1341
- conditionId: CtfConditionId;
1325
+ conditionId: ConditionId;
1342
1326
  tokenId: TokenId;
1343
1327
  errMsg: string | null | undefined;
1344
1328
  matchedAt: IsoDateTimeString;
@@ -1427,11 +1411,21 @@ declare const SpreadSchema: z.ZodObject<{
1427
1411
  type Spread = z.infer<typeof SpreadSchema>;
1428
1412
  declare const SpreadsSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
1429
1413
  type Spreads = z.infer<typeof SpreadsSchema>;
1430
- declare const LastTradePriceSchema: z.ZodObject<{
1414
+ declare const LastTradePriceValueSchema: z.ZodObject<{
1431
1415
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1432
1416
  side: z.ZodEnum<typeof OrderSide>;
1433
1417
  }, z.core.$strip>;
1434
- type LastTradePrice = z.infer<typeof LastTradePriceSchema>;
1418
+ type LastTradePrice = z.infer<typeof LastTradePriceValueSchema>;
1419
+ declare const LastTradePriceSchema: z.ZodPipe<z.ZodObject<{
1420
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1421
+ side: z.ZodUnion<readonly [z.ZodEnum<typeof OrderSide>, z.ZodLiteral<"">]>;
1422
+ }, z.core.$strip>, z.ZodTransform<{
1423
+ price: DecimalString;
1424
+ side: OrderSide;
1425
+ } | null, {
1426
+ price: DecimalString;
1427
+ side: "" | OrderSide;
1428
+ }>>;
1435
1429
  declare const LastTradePriceForTokenResponseSchema: z.ZodPipe<z.ZodObject<{
1436
1430
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1437
1431
  side: z.ZodEnum<typeof OrderSide>;
@@ -1479,14 +1473,14 @@ declare const PriceHistorySchema: z.ZodObject<{
1479
1473
  }, z.core.$strip>;
1480
1474
  type PriceHistory = z.infer<typeof PriceHistorySchema>;
1481
1475
  declare const ConditionByTokenSchema: z.ZodPipe<z.ZodObject<{
1482
- condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
1483
- }, z.core.$strip>, z.ZodTransform<CtfConditionId, {
1484
- condition_id: CtfConditionId;
1476
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1477
+ }, z.core.$strip>, z.ZodTransform<ConditionId, {
1478
+ condition_id: ConditionId;
1485
1479
  }>>;
1486
1480
  declare const ResolveConditionByTokenResponseSchema: z.ZodPipe<z.ZodObject<{
1487
- condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
1488
- }, z.core.$strip>, z.ZodTransform<CtfConditionId, {
1489
- condition_id: CtfConditionId;
1481
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1482
+ }, z.core.$strip>, z.ZodTransform<ConditionId, {
1483
+ condition_id: ConditionId;
1490
1484
  }>>;
1491
1485
  type ConditionByToken = z.infer<typeof ConditionByTokenSchema>;
1492
1486
  type ResolveConditionByTokenResponse = z.infer<typeof ResolveConditionByTokenResponseSchema>;
@@ -1624,232 +1618,2526 @@ declare const FetchNegRiskResponseSchema: z.ZodPipe<z.ZodObject<{
1624
1618
  type NegRisk = z.infer<typeof NegRiskSchema>;
1625
1619
  type FetchNegRiskResponse = z.infer<typeof FetchNegRiskResponseSchema>;
1626
1620
 
1627
- type OrderBookLevel = {
1628
- price: DecimalString;
1629
- size: DecimalString;
1630
- };
1631
- /** SHA-1 hash of the serialized order book summary, encoded as bare lowercase hex. */
1632
- type OrderBookHash = string & {
1633
- readonly __tag: 'OrderBookHash';
1634
- };
1635
- type OrderBook = {
1636
- /** CTF condition id for the market this book belongs to. */
1637
- conditionId: CtfConditionId;
1638
- tokenId: TokenId;
1639
- timestamp?: EpochMilliseconds | null;
1640
- /** Bid levels in ascending price order, lowest bid first. */
1641
- bids: OrderBookLevel[];
1642
- /** Ask levels in descending price order, highest ask first. */
1643
- asks: OrderBookLevel[];
1644
- minOrderSize: DecimalString;
1645
- tickSize: TickSizeValue;
1646
- negRisk: boolean;
1647
- lastTradePrice?: DecimalString | null;
1648
- hash: OrderBookHash;
1649
- };
1650
- declare const OrderBookLevelSchema: z.ZodObject<{
1651
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1652
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1653
- }, z.core.$strip>;
1654
- declare const OrderBookHashSchema: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
1655
- declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
1656
- market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
1621
+ /**
1622
+ * Kind of account notification. The wire value is an integer discriminant;
1623
+ * each kind carries a payload whose shape is tied to the kind.
1624
+ */
1625
+ declare enum NotificationType {
1626
+ ORDER_CANCELLATION = 1,
1627
+ ORDER_FILL = 2,
1628
+ MARKET_REGISTERED = 3,
1629
+ MARKET_RESOLVED = 4,
1630
+ REWARD_PAYOUT = 5,
1631
+ CHILD_COMMENT_CREATED = 6,
1632
+ YIELD_PAYOUT = 7,
1633
+ ORDER_FILL_FAILED = 8,
1634
+ AUTO_REDEEMED = 9,
1635
+ COMBO_AUTO_REDEEMED = 10
1636
+ }
1637
+ declare const NotificationTypeSchema: z.ZodEnum<typeof NotificationType>;
1638
+ /**
1639
+ * Payload of an order lifecycle notification (cancellation, fill, and
1640
+ * failed fill share this shape).
1641
+ *
1642
+ * `transactionHash` and `tradeId` are only populated on fills. The
1643
+ * market-display fields (`question`, `marketSlug`, `icon`, `image`,
1644
+ * `eventSlug`, `seriesSlug`) are filled best-effort by the producer and may
1645
+ * be empty strings; older notifications may omit them entirely, along with
1646
+ * `orderType`.
1647
+ */
1648
+ declare const OrderNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1657
1649
  asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1658
- timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
1659
- bids: z.ZodArray<z.ZodObject<{
1660
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1661
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1662
- }, z.core.$strip>>;
1663
- asks: z.ZodArray<z.ZodObject<{
1664
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1665
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1666
- }, z.core.$strip>>;
1667
- min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1668
- tick_size: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodTransform<number, DecimalString>>, z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>;
1669
- neg_risk: z.ZodBoolean;
1670
- last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1671
- hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
1650
+ eventSlug: z.ZodOptional<z.ZodString>;
1651
+ icon: z.ZodOptional<z.ZodString>;
1652
+ image: z.ZodOptional<z.ZodString>;
1653
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1654
+ market_slug: z.ZodOptional<z.ZodString>;
1655
+ matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1656
+ order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
1657
+ original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1658
+ outcome: z.ZodString;
1659
+ outcome_index: z.ZodNumber;
1660
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1661
+ question: z.ZodOptional<z.ZodString>;
1662
+ remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1663
+ seriesSlug: z.ZodOptional<z.ZodString>;
1664
+ side: z.ZodEnum<typeof OrderSide>;
1665
+ trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
1666
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
1667
+ type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
1672
1668
  }, z.core.$strip>, z.ZodTransform<{
1673
- conditionId: CtfConditionId;
1669
+ conditionId: ConditionId;
1674
1670
  tokenId: TokenId;
1675
- minOrderSize: DecimalString;
1676
- tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1677
- negRisk: boolean;
1678
- lastTradePrice: DecimalString | null | undefined;
1679
- bids: {
1680
- price: DecimalString;
1681
- size: DecimalString;
1682
- }[];
1683
- asks: {
1684
- price: DecimalString;
1685
- size: DecimalString;
1686
- }[];
1687
- hash: OrderBookHash;
1688
- timestamp?: EpochMilliseconds | null | undefined;
1671
+ marketSlug: string | undefined;
1672
+ matchedSize: DecimalString;
1673
+ orderId: OrderId;
1674
+ orderType: OrderType | undefined;
1675
+ originalSize: DecimalString;
1676
+ outcomeIndex: number;
1677
+ remainingSize: DecimalString;
1678
+ tradeId: string | undefined;
1679
+ transactionHash: _polymarket_types.TxHash | undefined;
1680
+ outcome: string;
1681
+ price: DecimalString;
1682
+ side: OrderSide;
1683
+ eventSlug?: string | undefined;
1684
+ icon?: string | undefined;
1685
+ image?: string | undefined;
1686
+ question?: string | undefined;
1687
+ seriesSlug?: string | undefined;
1689
1688
  }, {
1690
- market: CtfConditionId;
1691
1689
  asset_id: TokenId;
1692
- bids: {
1693
- price: DecimalString;
1694
- size: DecimalString;
1695
- }[];
1696
- asks: {
1697
- price: DecimalString;
1698
- size: DecimalString;
1699
- }[];
1700
- min_order_size: DecimalString;
1701
- tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1702
- neg_risk: boolean;
1703
- hash: OrderBookHash;
1704
- timestamp?: EpochMilliseconds | null | undefined;
1705
- last_trade_price?: DecimalString | null | undefined;
1690
+ market: ConditionId;
1691
+ matched_size: DecimalString;
1692
+ order_id: OrderId;
1693
+ original_size: DecimalString;
1694
+ outcome: string;
1695
+ outcome_index: number;
1696
+ price: DecimalString;
1697
+ remaining_size: DecimalString;
1698
+ side: OrderSide;
1699
+ eventSlug?: string | undefined;
1700
+ icon?: string | undefined;
1701
+ image?: string | undefined;
1702
+ market_slug?: string | undefined;
1703
+ question?: string | undefined;
1704
+ seriesSlug?: string | undefined;
1705
+ trade_id?: string | undefined;
1706
+ transaction_hash?: _polymarket_types.TxHash | undefined;
1707
+ type?: OrderType | undefined;
1706
1708
  }>>;
1707
- declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
1708
- market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
1709
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1710
- timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
1711
- bids: z.ZodArray<z.ZodObject<{
1712
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1713
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1714
- }, z.core.$strip>>;
1715
- asks: z.ZodArray<z.ZodObject<{
1716
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1717
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1718
- }, z.core.$strip>>;
1719
- min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1720
- tick_size: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodTransform<number, DecimalString>>, z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>;
1721
- neg_risk: z.ZodBoolean;
1722
- last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1723
- hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
1709
+ type OrderNotificationPayload = z.infer<typeof OrderNotificationPayloadSchema>;
1710
+ /**
1711
+ * One outcome token inside a market lifecycle notification payload. On a
1712
+ * market-resolved notification, `winner` marks the winning outcome.
1713
+ */
1714
+ declare const MarketNotificationTokenSchema: z.ZodPipe<z.ZodObject<{
1715
+ outcome: z.ZodString;
1716
+ price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
1717
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1718
+ winner: z.ZodBoolean;
1724
1719
  }, z.core.$strip>, z.ZodTransform<{
1725
- conditionId: CtfConditionId;
1726
1720
  tokenId: TokenId;
1727
- minOrderSize: DecimalString;
1728
- tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1729
- negRisk: boolean;
1730
- lastTradePrice: DecimalString | null | undefined;
1731
- bids: {
1732
- price: DecimalString;
1733
- size: DecimalString;
1734
- }[];
1735
- asks: {
1736
- price: DecimalString;
1737
- size: DecimalString;
1738
- }[];
1739
- hash: OrderBookHash;
1740
- timestamp?: EpochMilliseconds | null | undefined;
1721
+ outcome: string;
1722
+ winner: boolean;
1723
+ price?: DecimalString | undefined;
1741
1724
  }, {
1742
- market: CtfConditionId;
1743
- asset_id: TokenId;
1744
- bids: {
1745
- price: DecimalString;
1746
- size: DecimalString;
1747
- }[];
1748
- asks: {
1749
- price: DecimalString;
1750
- size: DecimalString;
1751
- }[];
1752
- min_order_size: DecimalString;
1753
- tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1754
- neg_risk: boolean;
1755
- hash: OrderBookHash;
1756
- timestamp?: EpochMilliseconds | null | undefined;
1757
- last_trade_price?: DecimalString | null | undefined;
1725
+ outcome: string;
1726
+ token_id: TokenId;
1727
+ winner: boolean;
1728
+ price?: DecimalString | undefined;
1758
1729
  }>>;
1759
- declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
1760
- market: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
1761
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1762
- timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
1763
- bids: z.ZodArray<z.ZodObject<{
1764
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1765
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1766
- }, z.core.$strip>>;
1767
- asks: z.ZodArray<z.ZodObject<{
1768
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1769
- size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1770
- }, z.core.$strip>>;
1771
- min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1772
- tick_size: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodTransform<number, DecimalString>>, z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>;
1773
- neg_risk: z.ZodBoolean;
1774
- last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1775
- hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
1730
+ type MarketNotificationToken = z.infer<typeof MarketNotificationTokenSchema>;
1731
+ /** Liquidity-rewards parameters carried on a market lifecycle notification. */
1732
+ declare const MarketNotificationRewardsSchema: z.ZodPipe<z.ZodObject<{
1733
+ max_spread: z.ZodNumber;
1734
+ min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1735
+ rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
1736
+ asset_address: z.ZodString;
1737
+ rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1738
+ }, z.core.$strip>, z.ZodTransform<{
1739
+ assetAddress: string;
1740
+ dailyRate: DecimalString;
1741
+ }, {
1742
+ asset_address: string;
1743
+ rewards_daily_rate: DecimalString;
1744
+ }>>>>>;
1776
1745
  }, z.core.$strip>, z.ZodTransform<{
1777
- conditionId: CtfConditionId;
1778
- tokenId: TokenId;
1779
- minOrderSize: DecimalString;
1780
- tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1781
- negRisk: boolean;
1782
- lastTradePrice: DecimalString | null | undefined;
1783
- bids: {
1784
- price: DecimalString;
1785
- size: DecimalString;
1786
- }[];
1787
- asks: {
1788
- price: DecimalString;
1789
- size: DecimalString;
1790
- }[];
1791
- hash: OrderBookHash;
1792
- timestamp?: EpochMilliseconds | null | undefined;
1746
+ maxSpread: number;
1747
+ minSize: DecimalString;
1748
+ rates?: {
1749
+ assetAddress: string;
1750
+ dailyRate: DecimalString;
1751
+ }[] | null | undefined;
1793
1752
  }, {
1794
- market: CtfConditionId;
1795
- asset_id: TokenId;
1796
- bids: {
1797
- price: DecimalString;
1798
- size: DecimalString;
1799
- }[];
1800
- asks: {
1801
- price: DecimalString;
1802
- size: DecimalString;
1803
- }[];
1804
- min_order_size: DecimalString;
1805
- tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1806
- neg_risk: boolean;
1807
- hash: OrderBookHash;
1808
- timestamp?: EpochMilliseconds | null | undefined;
1809
- last_trade_price?: DecimalString | null | undefined;
1810
- }>>>;
1811
- type OrderBooks = OrderBook[];
1812
- type FetchOrderBookResponse = OrderBook;
1813
-
1814
- /**
1815
- * Placement outcome of an accepted order.
1816
- */
1817
- declare enum OrderPostStatus {
1818
- /** The order rests on the book without matching. */
1819
- LIVE = "live",
1820
- /** The order matched, fully or partially, at placement. */
1821
- MATCHED = "matched",
1822
- /** The market imposes a matching delay; the order is queued. */
1823
- DELAYED = "delayed"
1824
- }
1825
- declare const OrderPostStatusSchema: z.ZodEnum<typeof OrderPostStatus>;
1826
- declare enum OrderResponseErrorCode {
1827
- UNMATCHED = "unmatched",
1828
- MARKET_NOT_READY = "market_not_ready",
1829
- INSUFFICIENT_BALANCE_OR_ALLOWANCE = "insufficient_balance_or_allowance",
1830
- INVALID_NONCE = "invalid_nonce",
1831
- INVALID_EXPIRATION = "invalid_expiration",
1832
- POST_ONLY_WOULD_CROSS = "post_only_would_cross",
1833
- FOK_NOT_FILLED = "fok_not_filled",
1834
- FAK_NOT_FILLED = "fak_not_filled",
1835
- UNKNOWN = "unknown"
1836
- }
1837
- declare const OrderResponseErrorCodeSchema: z.ZodEnum<typeof OrderResponseErrorCode>;
1753
+ max_spread: number;
1754
+ min_size: DecimalString;
1755
+ rates?: {
1756
+ assetAddress: string;
1757
+ dailyRate: DecimalString;
1758
+ }[] | null | undefined;
1759
+ }>>;
1760
+ type MarketNotificationRewards = z.infer<typeof MarketNotificationRewardsSchema>;
1838
1761
  /**
1839
- * A successfully placed order.
1762
+ * Payload of a market lifecycle notification (market registered and market
1763
+ * resolved share this shape: the market the notification is about).
1764
+ *
1765
+ * Fields marked optional are absent on notifications written before the
1766
+ * producer started including them.
1840
1767
  */
1841
- type AcceptedOrderResponse = {
1842
- ok: true;
1843
- /** Unique identifier of the placed order. */
1844
- orderId: OrderId;
1845
- /** Placement outcome. Fills only exist when the status is `matched`. */
1846
- status: OrderPostStatus;
1847
- /** Amount of the maker asset committed by fills at placement. `'0'` when the order did not match. */
1848
- makingAmount: DecimalString;
1849
- /** Amount of the taker asset received by fills at placement. `'0'` when the order did not match. */
1850
- takingAmount: DecimalString;
1851
- /**
1852
- * Settlement transaction hashes for fills that occurred at placement.
1768
+ declare const MarketNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1769
+ accepting_order_timestamp: 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>>]>>>;
1770
+ accepting_orders: z.ZodBoolean;
1771
+ active: z.ZodBoolean;
1772
+ archived: z.ZodOptional<z.ZodBoolean>;
1773
+ closed: z.ZodBoolean;
1774
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1775
+ description: z.ZodString;
1776
+ enable_order_book: z.ZodOptional<z.ZodBoolean>;
1777
+ end_date_iso: 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>>]>>>;
1778
+ eventSlug: z.ZodOptional<z.ZodString>;
1779
+ fpmm: z.ZodString;
1780
+ 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>>]>>>;
1781
+ icon: z.ZodString;
1782
+ image: z.ZodString;
1783
+ is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
1784
+ maker_base_fee: z.ZodNullable<z.ZodNumber>;
1785
+ market_slug: z.ZodString;
1786
+ minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1787
+ minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1788
+ neg_risk: z.ZodOptional<z.ZodBoolean>;
1789
+ neg_risk_market_id: z.ZodOptional<z.ZodString>;
1790
+ neg_risk_request_id: z.ZodOptional<z.ZodString>;
1791
+ notifications_enabled: z.ZodOptional<z.ZodBoolean>;
1792
+ question: z.ZodString;
1793
+ question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
1794
+ rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1795
+ max_spread: z.ZodNumber;
1796
+ min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1797
+ rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
1798
+ asset_address: z.ZodString;
1799
+ rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1800
+ }, z.core.$strip>, z.ZodTransform<{
1801
+ assetAddress: string;
1802
+ dailyRate: DecimalString;
1803
+ }, {
1804
+ asset_address: string;
1805
+ rewards_daily_rate: DecimalString;
1806
+ }>>>>>;
1807
+ }, z.core.$strip>, z.ZodTransform<{
1808
+ maxSpread: number;
1809
+ minSize: DecimalString;
1810
+ rates?: {
1811
+ assetAddress: string;
1812
+ dailyRate: DecimalString;
1813
+ }[] | null | undefined;
1814
+ }, {
1815
+ max_spread: number;
1816
+ min_size: DecimalString;
1817
+ rates?: {
1818
+ assetAddress: string;
1819
+ dailyRate: DecimalString;
1820
+ }[] | null | undefined;
1821
+ }>>>;
1822
+ seconds_delay: z.ZodNumber;
1823
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1824
+ taker_base_fee: z.ZodNullable<z.ZodNumber>;
1825
+ tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
1826
+ outcome: z.ZodString;
1827
+ price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
1828
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1829
+ winner: z.ZodBoolean;
1830
+ }, z.core.$strip>, z.ZodTransform<{
1831
+ tokenId: TokenId;
1832
+ outcome: string;
1833
+ winner: boolean;
1834
+ price?: DecimalString | undefined;
1835
+ }, {
1836
+ outcome: string;
1837
+ token_id: TokenId;
1838
+ winner: boolean;
1839
+ price?: DecimalString | undefined;
1840
+ }>>>;
1841
+ }, z.core.$strip>, z.ZodTransform<{
1842
+ acceptingOrders: boolean;
1843
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
1844
+ conditionId: ConditionId;
1845
+ enableOrderBook: boolean | undefined;
1846
+ endDate: IsoDateTimeString | null | undefined;
1847
+ gameStartTime: IsoDateTimeString | null | undefined;
1848
+ is5050Outcome: boolean | undefined;
1849
+ makerBaseFee: number | null;
1850
+ marketSlug: string;
1851
+ minimumOrderSize: DecimalString;
1852
+ minimumTickSize: DecimalString;
1853
+ negRisk: boolean | undefined;
1854
+ negRiskMarketId: string | undefined;
1855
+ negRiskRequestId: string | undefined;
1856
+ notificationsEnabled: boolean | undefined;
1857
+ questionId: QuestionId;
1858
+ secondsDelay: number;
1859
+ takerBaseFee: number | null;
1860
+ active: boolean;
1861
+ closed: boolean;
1862
+ description: string;
1863
+ fpmm: string;
1864
+ icon: string;
1865
+ image: string;
1866
+ question: string;
1867
+ tokens: {
1868
+ tokenId: TokenId;
1869
+ outcome: string;
1870
+ winner: boolean;
1871
+ price?: DecimalString | undefined;
1872
+ }[];
1873
+ archived?: boolean | undefined;
1874
+ eventSlug?: string | undefined;
1875
+ rewards?: {
1876
+ maxSpread: number;
1877
+ minSize: DecimalString;
1878
+ rates?: {
1879
+ assetAddress: string;
1880
+ dailyRate: DecimalString;
1881
+ }[] | null | undefined;
1882
+ } | undefined;
1883
+ tags?: string[] | null | undefined;
1884
+ }, {
1885
+ accepting_orders: boolean;
1886
+ active: boolean;
1887
+ closed: boolean;
1888
+ condition_id: ConditionId;
1889
+ description: string;
1890
+ fpmm: string;
1891
+ icon: string;
1892
+ image: string;
1893
+ maker_base_fee: number | null;
1894
+ market_slug: string;
1895
+ minimum_order_size: DecimalString;
1896
+ minimum_tick_size: DecimalString;
1897
+ question: string;
1898
+ question_id: QuestionId;
1899
+ seconds_delay: number;
1900
+ taker_base_fee: number | null;
1901
+ tokens: {
1902
+ tokenId: TokenId;
1903
+ outcome: string;
1904
+ winner: boolean;
1905
+ price?: DecimalString | undefined;
1906
+ }[];
1907
+ accepting_order_timestamp?: IsoDateTimeString | null | undefined;
1908
+ archived?: boolean | undefined;
1909
+ enable_order_book?: boolean | undefined;
1910
+ end_date_iso?: IsoDateTimeString | null | undefined;
1911
+ eventSlug?: string | undefined;
1912
+ game_start_time?: IsoDateTimeString | null | undefined;
1913
+ is_50_50_outcome?: boolean | undefined;
1914
+ neg_risk?: boolean | undefined;
1915
+ neg_risk_market_id?: string | undefined;
1916
+ neg_risk_request_id?: string | undefined;
1917
+ notifications_enabled?: boolean | undefined;
1918
+ rewards?: {
1919
+ maxSpread: number;
1920
+ minSize: DecimalString;
1921
+ rates?: {
1922
+ assetAddress: string;
1923
+ dailyRate: DecimalString;
1924
+ }[] | null | undefined;
1925
+ } | undefined;
1926
+ tags?: string[] | null | undefined;
1927
+ }>>;
1928
+ type MarketNotificationPayload = z.infer<typeof MarketNotificationPayloadSchema>;
1929
+ /** Payload of a liquidity-reward payout notification. */
1930
+ declare const RewardPayoutNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1931
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
1932
+ reward: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1933
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
1934
+ }, z.core.$strip>, z.ZodTransform<{
1935
+ transactionHash: _polymarket_types.TxHash;
1936
+ proxyWallet: _polymarket_types.EvmAddress;
1937
+ reward: DecimalString;
1938
+ }, {
1939
+ proxyWallet: _polymarket_types.EvmAddress;
1940
+ reward: DecimalString;
1941
+ txnHash: _polymarket_types.TxHash;
1942
+ }>>;
1943
+ type RewardPayoutNotificationPayload = z.infer<typeof RewardPayoutNotificationPayloadSchema>;
1944
+ /** Payload of a yield payout notification. */
1945
+ declare const YieldPayoutNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1946
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1947
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
1948
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
1949
+ }, z.core.$strip>, z.ZodTransform<{
1950
+ transactionHash: _polymarket_types.TxHash;
1951
+ amount: DecimalString;
1952
+ proxyWallet: _polymarket_types.EvmAddress;
1953
+ }, {
1954
+ amount: DecimalString;
1955
+ proxyWallet: _polymarket_types.EvmAddress;
1956
+ txnHash: _polymarket_types.TxHash;
1957
+ }>>;
1958
+ type YieldPayoutNotificationPayload = z.infer<typeof YieldPayoutNotificationPayloadSchema>;
1959
+ /**
1960
+ * Payload of a child-comment notification: the reply comment, its author's
1961
+ * profile, and the event or series the thread belongs to.
1962
+ */
1963
+ declare const ChildCommentNotificationPayloadSchema: z.ZodObject<{
1964
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1965
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
1966
+ eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1967
+ eventTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1968
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>;
1969
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1970
+ parentCommentID: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>>>;
1971
+ parentEntityID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1972
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof CommentParentEntityType>>>;
1973
+ profile: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
1974
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1975
+ pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1976
+ displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1977
+ bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1978
+ isMod: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1979
+ isCreator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1980
+ proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1981
+ baseAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1982
+ profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1983
+ profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1984
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<ImageOptimizationId, string>>;
1985
+ imageUrlSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1986
+ imageUrlOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1987
+ imageSizeKbSource: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1988
+ imageSizeKbOptimized: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1989
+ imageOptimizedComplete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1990
+ imageOptimizedLastUpdated: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
1991
+ relID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1992
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1993
+ relname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1994
+ }, z.core.$strip>>>;
1995
+ positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1996
+ tokenId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
1997
+ positionSize: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>>>;
1998
+ }, z.core.$strip>>>>;
1999
+ }, z.core.$strip>, z.ZodTransform<{
2000
+ wallet: string | null | undefined;
2001
+ name?: string | null | undefined;
2002
+ pseudonym?: string | null | undefined;
2003
+ displayUsernamePublic?: boolean | null | undefined;
2004
+ bio?: string | null | undefined;
2005
+ isMod?: boolean | null | undefined;
2006
+ isCreator?: boolean | null | undefined;
2007
+ baseAddress?: string | null | undefined;
2008
+ profileImage?: string | null | undefined;
2009
+ profileImageOptimized?: {
2010
+ id: ImageOptimizationId;
2011
+ imageUrlSource?: string | null | undefined;
2012
+ imageUrlOptimized?: string | null | undefined;
2013
+ imageSizeKbSource?: number | null | undefined;
2014
+ imageSizeKbOptimized?: number | null | undefined;
2015
+ imageOptimizedComplete?: boolean | null | undefined;
2016
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
2017
+ relID?: number | null | undefined;
2018
+ field?: string | null | undefined;
2019
+ relname?: string | null | undefined;
2020
+ } | null | undefined;
2021
+ positions?: {
2022
+ tokenId?: TokenId | null | undefined;
2023
+ positionSize?: BaseUnits | null | undefined;
2024
+ }[] | null | undefined;
2025
+ }, {
2026
+ name?: string | null | undefined;
2027
+ pseudonym?: string | null | undefined;
2028
+ displayUsernamePublic?: boolean | null | undefined;
2029
+ bio?: string | null | undefined;
2030
+ isMod?: boolean | null | undefined;
2031
+ isCreator?: boolean | null | undefined;
2032
+ proxyWallet?: string | null | undefined;
2033
+ baseAddress?: string | null | undefined;
2034
+ profileImage?: string | null | undefined;
2035
+ profileImageOptimized?: {
2036
+ id: ImageOptimizationId;
2037
+ imageUrlSource?: string | null | undefined;
2038
+ imageUrlOptimized?: string | null | undefined;
2039
+ imageSizeKbSource?: number | null | undefined;
2040
+ imageSizeKbOptimized?: number | null | undefined;
2041
+ imageOptimizedComplete?: boolean | null | undefined;
2042
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
2043
+ relID?: number | null | undefined;
2044
+ field?: string | null | undefined;
2045
+ relname?: string | null | undefined;
2046
+ } | null | undefined;
2047
+ positions?: {
2048
+ tokenId?: TokenId | null | undefined;
2049
+ positionSize?: BaseUnits | null | undefined;
2050
+ }[] | null | undefined;
2051
+ }>>>>;
2052
+ seriesSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2053
+ seriesTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2054
+ userAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2055
+ }, z.core.$strip>;
2056
+ type ChildCommentNotificationPayload = z.infer<typeof ChildCommentNotificationPayloadSchema>;
2057
+ /**
2058
+ * Payload of an auto-redeem notification: a winning position redeemed
2059
+ * on-chain on the account's behalf.
2060
+ */
2061
+ declare const AutoRedeemedNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
2062
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2063
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2064
+ image: z.ZodString;
2065
+ marketUrl: z.ZodOptional<z.ZodString>;
2066
+ negRisk: z.ZodBoolean;
2067
+ portfolioUrl: z.ZodOptional<z.ZodString>;
2068
+ position: z.ZodOptional<z.ZodString>;
2069
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2070
+ question: z.ZodString;
2071
+ slug: z.ZodString;
2072
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2073
+ }, z.core.$strip>, z.ZodTransform<{
2074
+ marketSlug: string;
2075
+ transactionHash: _polymarket_types.TxHash;
2076
+ amount: DecimalString;
2077
+ conditionId: ConditionId;
2078
+ image: string;
2079
+ negRisk: boolean;
2080
+ proxyWallet: _polymarket_types.EvmAddress;
2081
+ question: string;
2082
+ marketUrl?: string | undefined;
2083
+ portfolioUrl?: string | undefined;
2084
+ position?: string | undefined;
2085
+ }, {
2086
+ amount: DecimalString;
2087
+ conditionId: ConditionId;
2088
+ image: string;
2089
+ negRisk: boolean;
2090
+ proxyWallet: _polymarket_types.EvmAddress;
2091
+ question: string;
2092
+ slug: string;
2093
+ txnHash: _polymarket_types.TxHash;
2094
+ marketUrl?: string | undefined;
2095
+ portfolioUrl?: string | undefined;
2096
+ position?: string | undefined;
2097
+ }>>;
2098
+ type AutoRedeemedNotificationPayload = z.infer<typeof AutoRedeemedNotificationPayloadSchema>;
2099
+ /**
2100
+ * Payload of a combo auto-redeem notification: a winning combo position
2101
+ * redeemed on-chain on the account's behalf. `legs` is the combo arity.
2102
+ */
2103
+ declare const ComboAutoRedeemedNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
2104
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2105
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
2106
+ legs: z.ZodNumber;
2107
+ outcomeIndex: z.ZodNumber;
2108
+ portfolioUrl: z.ZodOptional<z.ZodString>;
2109
+ positionId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
2110
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2111
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2112
+ }, z.core.$strip>, z.ZodTransform<{
2113
+ transactionHash: _polymarket_types.TxHash;
2114
+ amount: DecimalString;
2115
+ conditionId: ComboConditionId;
2116
+ legs: number;
2117
+ outcomeIndex: number;
2118
+ positionId: PositionId;
2119
+ proxyWallet: _polymarket_types.EvmAddress;
2120
+ portfolioUrl?: string | undefined;
2121
+ }, {
2122
+ amount: DecimalString;
2123
+ conditionId: ComboConditionId;
2124
+ legs: number;
2125
+ outcomeIndex: number;
2126
+ positionId: PositionId;
2127
+ proxyWallet: _polymarket_types.EvmAddress;
2128
+ txnHash: _polymarket_types.TxHash;
2129
+ portfolioUrl?: string | undefined;
2130
+ }>>;
2131
+ type ComboAutoRedeemedNotificationPayload = z.infer<typeof ComboAutoRedeemedNotificationPayloadSchema>;
2132
+ declare const OrderCancellationNotificationSchema: z.ZodObject<{
2133
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2134
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2135
+ payload: z.ZodPipe<z.ZodObject<{
2136
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2137
+ eventSlug: z.ZodOptional<z.ZodString>;
2138
+ icon: z.ZodOptional<z.ZodString>;
2139
+ image: z.ZodOptional<z.ZodString>;
2140
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2141
+ market_slug: z.ZodOptional<z.ZodString>;
2142
+ matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2143
+ order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
2144
+ original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2145
+ outcome: z.ZodString;
2146
+ outcome_index: z.ZodNumber;
2147
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2148
+ question: z.ZodOptional<z.ZodString>;
2149
+ remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2150
+ seriesSlug: z.ZodOptional<z.ZodString>;
2151
+ side: z.ZodEnum<typeof OrderSide>;
2152
+ trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
2153
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
2154
+ type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2155
+ }, z.core.$strip>, z.ZodTransform<{
2156
+ conditionId: ConditionId;
2157
+ tokenId: TokenId;
2158
+ marketSlug: string | undefined;
2159
+ matchedSize: DecimalString;
2160
+ orderId: OrderId;
2161
+ orderType: OrderType | undefined;
2162
+ originalSize: DecimalString;
2163
+ outcomeIndex: number;
2164
+ remainingSize: DecimalString;
2165
+ tradeId: string | undefined;
2166
+ transactionHash: _polymarket_types.TxHash | undefined;
2167
+ outcome: string;
2168
+ price: DecimalString;
2169
+ side: OrderSide;
2170
+ eventSlug?: string | undefined;
2171
+ icon?: string | undefined;
2172
+ image?: string | undefined;
2173
+ question?: string | undefined;
2174
+ seriesSlug?: string | undefined;
2175
+ }, {
2176
+ asset_id: TokenId;
2177
+ market: ConditionId;
2178
+ matched_size: DecimalString;
2179
+ order_id: OrderId;
2180
+ original_size: DecimalString;
2181
+ outcome: string;
2182
+ outcome_index: number;
2183
+ price: DecimalString;
2184
+ remaining_size: DecimalString;
2185
+ side: OrderSide;
2186
+ eventSlug?: string | undefined;
2187
+ icon?: string | undefined;
2188
+ image?: string | undefined;
2189
+ market_slug?: string | undefined;
2190
+ question?: string | undefined;
2191
+ seriesSlug?: string | undefined;
2192
+ trade_id?: string | undefined;
2193
+ transaction_hash?: _polymarket_types.TxHash | undefined;
2194
+ type?: OrderType | undefined;
2195
+ }>>;
2196
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2197
+ type: z.ZodLiteral<NotificationType.ORDER_CANCELLATION>;
2198
+ }, z.core.$strip>;
2199
+ type OrderCancellationNotification = z.infer<typeof OrderCancellationNotificationSchema>;
2200
+ declare const OrderFillNotificationSchema: z.ZodObject<{
2201
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2202
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2203
+ payload: z.ZodPipe<z.ZodObject<{
2204
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2205
+ eventSlug: z.ZodOptional<z.ZodString>;
2206
+ icon: z.ZodOptional<z.ZodString>;
2207
+ image: z.ZodOptional<z.ZodString>;
2208
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2209
+ market_slug: z.ZodOptional<z.ZodString>;
2210
+ matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2211
+ order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
2212
+ original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2213
+ outcome: z.ZodString;
2214
+ outcome_index: z.ZodNumber;
2215
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2216
+ question: z.ZodOptional<z.ZodString>;
2217
+ remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2218
+ seriesSlug: z.ZodOptional<z.ZodString>;
2219
+ side: z.ZodEnum<typeof OrderSide>;
2220
+ trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
2221
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
2222
+ type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2223
+ }, z.core.$strip>, z.ZodTransform<{
2224
+ conditionId: ConditionId;
2225
+ tokenId: TokenId;
2226
+ marketSlug: string | undefined;
2227
+ matchedSize: DecimalString;
2228
+ orderId: OrderId;
2229
+ orderType: OrderType | undefined;
2230
+ originalSize: DecimalString;
2231
+ outcomeIndex: number;
2232
+ remainingSize: DecimalString;
2233
+ tradeId: string | undefined;
2234
+ transactionHash: _polymarket_types.TxHash | undefined;
2235
+ outcome: string;
2236
+ price: DecimalString;
2237
+ side: OrderSide;
2238
+ eventSlug?: string | undefined;
2239
+ icon?: string | undefined;
2240
+ image?: string | undefined;
2241
+ question?: string | undefined;
2242
+ seriesSlug?: string | undefined;
2243
+ }, {
2244
+ asset_id: TokenId;
2245
+ market: ConditionId;
2246
+ matched_size: DecimalString;
2247
+ order_id: OrderId;
2248
+ original_size: DecimalString;
2249
+ outcome: string;
2250
+ outcome_index: number;
2251
+ price: DecimalString;
2252
+ remaining_size: DecimalString;
2253
+ side: OrderSide;
2254
+ eventSlug?: string | undefined;
2255
+ icon?: string | undefined;
2256
+ image?: string | undefined;
2257
+ market_slug?: string | undefined;
2258
+ question?: string | undefined;
2259
+ seriesSlug?: string | undefined;
2260
+ trade_id?: string | undefined;
2261
+ transaction_hash?: _polymarket_types.TxHash | undefined;
2262
+ type?: OrderType | undefined;
2263
+ }>>;
2264
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2265
+ type: z.ZodLiteral<NotificationType.ORDER_FILL>;
2266
+ }, z.core.$strip>;
2267
+ type OrderFillNotification = z.infer<typeof OrderFillNotificationSchema>;
2268
+ declare const MarketRegisteredNotificationSchema: z.ZodObject<{
2269
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2270
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2271
+ payload: z.ZodPipe<z.ZodObject<{
2272
+ accepting_order_timestamp: 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>>]>>>;
2273
+ accepting_orders: z.ZodBoolean;
2274
+ active: z.ZodBoolean;
2275
+ archived: z.ZodOptional<z.ZodBoolean>;
2276
+ closed: z.ZodBoolean;
2277
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2278
+ description: z.ZodString;
2279
+ enable_order_book: z.ZodOptional<z.ZodBoolean>;
2280
+ end_date_iso: 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>>]>>>;
2281
+ eventSlug: z.ZodOptional<z.ZodString>;
2282
+ fpmm: z.ZodString;
2283
+ 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>>]>>>;
2284
+ icon: z.ZodString;
2285
+ image: z.ZodString;
2286
+ is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
2287
+ maker_base_fee: z.ZodNullable<z.ZodNumber>;
2288
+ market_slug: z.ZodString;
2289
+ minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2290
+ minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2291
+ neg_risk: z.ZodOptional<z.ZodBoolean>;
2292
+ neg_risk_market_id: z.ZodOptional<z.ZodString>;
2293
+ neg_risk_request_id: z.ZodOptional<z.ZodString>;
2294
+ notifications_enabled: z.ZodOptional<z.ZodBoolean>;
2295
+ question: z.ZodString;
2296
+ question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
2297
+ rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
2298
+ max_spread: z.ZodNumber;
2299
+ min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2300
+ rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
2301
+ asset_address: z.ZodString;
2302
+ rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2303
+ }, z.core.$strip>, z.ZodTransform<{
2304
+ assetAddress: string;
2305
+ dailyRate: DecimalString;
2306
+ }, {
2307
+ asset_address: string;
2308
+ rewards_daily_rate: DecimalString;
2309
+ }>>>>>;
2310
+ }, z.core.$strip>, z.ZodTransform<{
2311
+ maxSpread: number;
2312
+ minSize: DecimalString;
2313
+ rates?: {
2314
+ assetAddress: string;
2315
+ dailyRate: DecimalString;
2316
+ }[] | null | undefined;
2317
+ }, {
2318
+ max_spread: number;
2319
+ min_size: DecimalString;
2320
+ rates?: {
2321
+ assetAddress: string;
2322
+ dailyRate: DecimalString;
2323
+ }[] | null | undefined;
2324
+ }>>>;
2325
+ seconds_delay: z.ZodNumber;
2326
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2327
+ taker_base_fee: z.ZodNullable<z.ZodNumber>;
2328
+ tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
2329
+ outcome: z.ZodString;
2330
+ price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
2331
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2332
+ winner: z.ZodBoolean;
2333
+ }, z.core.$strip>, z.ZodTransform<{
2334
+ tokenId: TokenId;
2335
+ outcome: string;
2336
+ winner: boolean;
2337
+ price?: DecimalString | undefined;
2338
+ }, {
2339
+ outcome: string;
2340
+ token_id: TokenId;
2341
+ winner: boolean;
2342
+ price?: DecimalString | undefined;
2343
+ }>>>;
2344
+ }, z.core.$strip>, z.ZodTransform<{
2345
+ acceptingOrders: boolean;
2346
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
2347
+ conditionId: ConditionId;
2348
+ enableOrderBook: boolean | undefined;
2349
+ endDate: IsoDateTimeString | null | undefined;
2350
+ gameStartTime: IsoDateTimeString | null | undefined;
2351
+ is5050Outcome: boolean | undefined;
2352
+ makerBaseFee: number | null;
2353
+ marketSlug: string;
2354
+ minimumOrderSize: DecimalString;
2355
+ minimumTickSize: DecimalString;
2356
+ negRisk: boolean | undefined;
2357
+ negRiskMarketId: string | undefined;
2358
+ negRiskRequestId: string | undefined;
2359
+ notificationsEnabled: boolean | undefined;
2360
+ questionId: QuestionId;
2361
+ secondsDelay: number;
2362
+ takerBaseFee: number | null;
2363
+ active: boolean;
2364
+ closed: boolean;
2365
+ description: string;
2366
+ fpmm: string;
2367
+ icon: string;
2368
+ image: string;
2369
+ question: string;
2370
+ tokens: {
2371
+ tokenId: TokenId;
2372
+ outcome: string;
2373
+ winner: boolean;
2374
+ price?: DecimalString | undefined;
2375
+ }[];
2376
+ archived?: boolean | undefined;
2377
+ eventSlug?: string | undefined;
2378
+ rewards?: {
2379
+ maxSpread: number;
2380
+ minSize: DecimalString;
2381
+ rates?: {
2382
+ assetAddress: string;
2383
+ dailyRate: DecimalString;
2384
+ }[] | null | undefined;
2385
+ } | undefined;
2386
+ tags?: string[] | null | undefined;
2387
+ }, {
2388
+ accepting_orders: boolean;
2389
+ active: boolean;
2390
+ closed: boolean;
2391
+ condition_id: ConditionId;
2392
+ description: string;
2393
+ fpmm: string;
2394
+ icon: string;
2395
+ image: string;
2396
+ maker_base_fee: number | null;
2397
+ market_slug: string;
2398
+ minimum_order_size: DecimalString;
2399
+ minimum_tick_size: DecimalString;
2400
+ question: string;
2401
+ question_id: QuestionId;
2402
+ seconds_delay: number;
2403
+ taker_base_fee: number | null;
2404
+ tokens: {
2405
+ tokenId: TokenId;
2406
+ outcome: string;
2407
+ winner: boolean;
2408
+ price?: DecimalString | undefined;
2409
+ }[];
2410
+ accepting_order_timestamp?: IsoDateTimeString | null | undefined;
2411
+ archived?: boolean | undefined;
2412
+ enable_order_book?: boolean | undefined;
2413
+ end_date_iso?: IsoDateTimeString | null | undefined;
2414
+ eventSlug?: string | undefined;
2415
+ game_start_time?: IsoDateTimeString | null | undefined;
2416
+ is_50_50_outcome?: boolean | undefined;
2417
+ neg_risk?: boolean | undefined;
2418
+ neg_risk_market_id?: string | undefined;
2419
+ neg_risk_request_id?: string | undefined;
2420
+ notifications_enabled?: boolean | undefined;
2421
+ rewards?: {
2422
+ maxSpread: number;
2423
+ minSize: DecimalString;
2424
+ rates?: {
2425
+ assetAddress: string;
2426
+ dailyRate: DecimalString;
2427
+ }[] | null | undefined;
2428
+ } | undefined;
2429
+ tags?: string[] | null | undefined;
2430
+ }>>;
2431
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2432
+ type: z.ZodLiteral<NotificationType.MARKET_REGISTERED>;
2433
+ }, z.core.$strip>;
2434
+ type MarketRegisteredNotification = z.infer<typeof MarketRegisteredNotificationSchema>;
2435
+ declare const MarketResolvedNotificationSchema: z.ZodObject<{
2436
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2437
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2438
+ payload: z.ZodPipe<z.ZodObject<{
2439
+ accepting_order_timestamp: 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>>]>>>;
2440
+ accepting_orders: z.ZodBoolean;
2441
+ active: z.ZodBoolean;
2442
+ archived: z.ZodOptional<z.ZodBoolean>;
2443
+ closed: z.ZodBoolean;
2444
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2445
+ description: z.ZodString;
2446
+ enable_order_book: z.ZodOptional<z.ZodBoolean>;
2447
+ end_date_iso: 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>>]>>>;
2448
+ eventSlug: z.ZodOptional<z.ZodString>;
2449
+ fpmm: z.ZodString;
2450
+ 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>>]>>>;
2451
+ icon: z.ZodString;
2452
+ image: z.ZodString;
2453
+ is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
2454
+ maker_base_fee: z.ZodNullable<z.ZodNumber>;
2455
+ market_slug: z.ZodString;
2456
+ minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2457
+ minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2458
+ neg_risk: z.ZodOptional<z.ZodBoolean>;
2459
+ neg_risk_market_id: z.ZodOptional<z.ZodString>;
2460
+ neg_risk_request_id: z.ZodOptional<z.ZodString>;
2461
+ notifications_enabled: z.ZodOptional<z.ZodBoolean>;
2462
+ question: z.ZodString;
2463
+ question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
2464
+ rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
2465
+ max_spread: z.ZodNumber;
2466
+ min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2467
+ rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
2468
+ asset_address: z.ZodString;
2469
+ rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2470
+ }, z.core.$strip>, z.ZodTransform<{
2471
+ assetAddress: string;
2472
+ dailyRate: DecimalString;
2473
+ }, {
2474
+ asset_address: string;
2475
+ rewards_daily_rate: DecimalString;
2476
+ }>>>>>;
2477
+ }, z.core.$strip>, z.ZodTransform<{
2478
+ maxSpread: number;
2479
+ minSize: DecimalString;
2480
+ rates?: {
2481
+ assetAddress: string;
2482
+ dailyRate: DecimalString;
2483
+ }[] | null | undefined;
2484
+ }, {
2485
+ max_spread: number;
2486
+ min_size: DecimalString;
2487
+ rates?: {
2488
+ assetAddress: string;
2489
+ dailyRate: DecimalString;
2490
+ }[] | null | undefined;
2491
+ }>>>;
2492
+ seconds_delay: z.ZodNumber;
2493
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2494
+ taker_base_fee: z.ZodNullable<z.ZodNumber>;
2495
+ tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
2496
+ outcome: z.ZodString;
2497
+ price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
2498
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2499
+ winner: z.ZodBoolean;
2500
+ }, z.core.$strip>, z.ZodTransform<{
2501
+ tokenId: TokenId;
2502
+ outcome: string;
2503
+ winner: boolean;
2504
+ price?: DecimalString | undefined;
2505
+ }, {
2506
+ outcome: string;
2507
+ token_id: TokenId;
2508
+ winner: boolean;
2509
+ price?: DecimalString | undefined;
2510
+ }>>>;
2511
+ }, z.core.$strip>, z.ZodTransform<{
2512
+ acceptingOrders: boolean;
2513
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
2514
+ conditionId: ConditionId;
2515
+ enableOrderBook: boolean | undefined;
2516
+ endDate: IsoDateTimeString | null | undefined;
2517
+ gameStartTime: IsoDateTimeString | null | undefined;
2518
+ is5050Outcome: boolean | undefined;
2519
+ makerBaseFee: number | null;
2520
+ marketSlug: string;
2521
+ minimumOrderSize: DecimalString;
2522
+ minimumTickSize: DecimalString;
2523
+ negRisk: boolean | undefined;
2524
+ negRiskMarketId: string | undefined;
2525
+ negRiskRequestId: string | undefined;
2526
+ notificationsEnabled: boolean | undefined;
2527
+ questionId: QuestionId;
2528
+ secondsDelay: number;
2529
+ takerBaseFee: number | null;
2530
+ active: boolean;
2531
+ closed: boolean;
2532
+ description: string;
2533
+ fpmm: string;
2534
+ icon: string;
2535
+ image: string;
2536
+ question: string;
2537
+ tokens: {
2538
+ tokenId: TokenId;
2539
+ outcome: string;
2540
+ winner: boolean;
2541
+ price?: DecimalString | undefined;
2542
+ }[];
2543
+ archived?: boolean | undefined;
2544
+ eventSlug?: string | undefined;
2545
+ rewards?: {
2546
+ maxSpread: number;
2547
+ minSize: DecimalString;
2548
+ rates?: {
2549
+ assetAddress: string;
2550
+ dailyRate: DecimalString;
2551
+ }[] | null | undefined;
2552
+ } | undefined;
2553
+ tags?: string[] | null | undefined;
2554
+ }, {
2555
+ accepting_orders: boolean;
2556
+ active: boolean;
2557
+ closed: boolean;
2558
+ condition_id: ConditionId;
2559
+ description: string;
2560
+ fpmm: string;
2561
+ icon: string;
2562
+ image: string;
2563
+ maker_base_fee: number | null;
2564
+ market_slug: string;
2565
+ minimum_order_size: DecimalString;
2566
+ minimum_tick_size: DecimalString;
2567
+ question: string;
2568
+ question_id: QuestionId;
2569
+ seconds_delay: number;
2570
+ taker_base_fee: number | null;
2571
+ tokens: {
2572
+ tokenId: TokenId;
2573
+ outcome: string;
2574
+ winner: boolean;
2575
+ price?: DecimalString | undefined;
2576
+ }[];
2577
+ accepting_order_timestamp?: IsoDateTimeString | null | undefined;
2578
+ archived?: boolean | undefined;
2579
+ enable_order_book?: boolean | undefined;
2580
+ end_date_iso?: IsoDateTimeString | null | undefined;
2581
+ eventSlug?: string | undefined;
2582
+ game_start_time?: IsoDateTimeString | null | undefined;
2583
+ is_50_50_outcome?: boolean | undefined;
2584
+ neg_risk?: boolean | undefined;
2585
+ neg_risk_market_id?: string | undefined;
2586
+ neg_risk_request_id?: string | undefined;
2587
+ notifications_enabled?: boolean | undefined;
2588
+ rewards?: {
2589
+ maxSpread: number;
2590
+ minSize: DecimalString;
2591
+ rates?: {
2592
+ assetAddress: string;
2593
+ dailyRate: DecimalString;
2594
+ }[] | null | undefined;
2595
+ } | undefined;
2596
+ tags?: string[] | null | undefined;
2597
+ }>>;
2598
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2599
+ type: z.ZodLiteral<NotificationType.MARKET_RESOLVED>;
2600
+ }, z.core.$strip>;
2601
+ type MarketResolvedNotification = z.infer<typeof MarketResolvedNotificationSchema>;
2602
+ declare const RewardPayoutNotificationSchema: z.ZodObject<{
2603
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2604
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2605
+ payload: z.ZodPipe<z.ZodObject<{
2606
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2607
+ reward: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2608
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2609
+ }, z.core.$strip>, z.ZodTransform<{
2610
+ transactionHash: _polymarket_types.TxHash;
2611
+ proxyWallet: _polymarket_types.EvmAddress;
2612
+ reward: DecimalString;
2613
+ }, {
2614
+ proxyWallet: _polymarket_types.EvmAddress;
2615
+ reward: DecimalString;
2616
+ txnHash: _polymarket_types.TxHash;
2617
+ }>>;
2618
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2619
+ type: z.ZodLiteral<NotificationType.REWARD_PAYOUT>;
2620
+ }, z.core.$strip>;
2621
+ type RewardPayoutNotification = z.infer<typeof RewardPayoutNotificationSchema>;
2622
+ declare const ChildCommentCreatedNotificationSchema: z.ZodObject<{
2623
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2624
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2625
+ payload: z.ZodObject<{
2626
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2627
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
2628
+ eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2629
+ eventTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2630
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>;
2631
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2632
+ parentCommentID: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>>>;
2633
+ parentEntityID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2634
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof CommentParentEntityType>>>;
2635
+ profile: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
2636
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2637
+ pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2638
+ displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2639
+ bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2640
+ isMod: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2641
+ isCreator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2642
+ proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2643
+ baseAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2644
+ profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2645
+ profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2646
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<ImageOptimizationId, string>>;
2647
+ imageUrlSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2648
+ imageUrlOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2649
+ imageSizeKbSource: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2650
+ imageSizeKbOptimized: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2651
+ imageOptimizedComplete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2652
+ imageOptimizedLastUpdated: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
2653
+ relID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2654
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2655
+ relname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2656
+ }, z.core.$strip>>>;
2657
+ positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2658
+ tokenId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
2659
+ positionSize: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>>>;
2660
+ }, z.core.$strip>>>>;
2661
+ }, z.core.$strip>, z.ZodTransform<{
2662
+ wallet: string | null | undefined;
2663
+ name?: string | null | undefined;
2664
+ pseudonym?: string | null | undefined;
2665
+ displayUsernamePublic?: boolean | null | undefined;
2666
+ bio?: string | null | undefined;
2667
+ isMod?: boolean | null | undefined;
2668
+ isCreator?: boolean | null | undefined;
2669
+ baseAddress?: string | null | undefined;
2670
+ profileImage?: string | null | undefined;
2671
+ profileImageOptimized?: {
2672
+ id: ImageOptimizationId;
2673
+ imageUrlSource?: string | null | undefined;
2674
+ imageUrlOptimized?: string | null | undefined;
2675
+ imageSizeKbSource?: number | null | undefined;
2676
+ imageSizeKbOptimized?: number | null | undefined;
2677
+ imageOptimizedComplete?: boolean | null | undefined;
2678
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
2679
+ relID?: number | null | undefined;
2680
+ field?: string | null | undefined;
2681
+ relname?: string | null | undefined;
2682
+ } | null | undefined;
2683
+ positions?: {
2684
+ tokenId?: TokenId | null | undefined;
2685
+ positionSize?: BaseUnits | null | undefined;
2686
+ }[] | null | undefined;
2687
+ }, {
2688
+ name?: string | null | undefined;
2689
+ pseudonym?: string | null | undefined;
2690
+ displayUsernamePublic?: boolean | null | undefined;
2691
+ bio?: string | null | undefined;
2692
+ isMod?: boolean | null | undefined;
2693
+ isCreator?: boolean | null | undefined;
2694
+ proxyWallet?: string | null | undefined;
2695
+ baseAddress?: string | null | undefined;
2696
+ profileImage?: string | null | undefined;
2697
+ profileImageOptimized?: {
2698
+ id: ImageOptimizationId;
2699
+ imageUrlSource?: string | null | undefined;
2700
+ imageUrlOptimized?: string | null | undefined;
2701
+ imageSizeKbSource?: number | null | undefined;
2702
+ imageSizeKbOptimized?: number | null | undefined;
2703
+ imageOptimizedComplete?: boolean | null | undefined;
2704
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
2705
+ relID?: number | null | undefined;
2706
+ field?: string | null | undefined;
2707
+ relname?: string | null | undefined;
2708
+ } | null | undefined;
2709
+ positions?: {
2710
+ tokenId?: TokenId | null | undefined;
2711
+ positionSize?: BaseUnits | null | undefined;
2712
+ }[] | null | undefined;
2713
+ }>>>>;
2714
+ seriesSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2715
+ seriesTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2716
+ userAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2717
+ }, z.core.$strip>;
2718
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2719
+ type: z.ZodLiteral<NotificationType.CHILD_COMMENT_CREATED>;
2720
+ }, z.core.$strip>;
2721
+ type ChildCommentCreatedNotification = z.infer<typeof ChildCommentCreatedNotificationSchema>;
2722
+ declare const YieldPayoutNotificationSchema: z.ZodObject<{
2723
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2724
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2725
+ payload: z.ZodPipe<z.ZodObject<{
2726
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2727
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2728
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2729
+ }, z.core.$strip>, z.ZodTransform<{
2730
+ transactionHash: _polymarket_types.TxHash;
2731
+ amount: DecimalString;
2732
+ proxyWallet: _polymarket_types.EvmAddress;
2733
+ }, {
2734
+ amount: DecimalString;
2735
+ proxyWallet: _polymarket_types.EvmAddress;
2736
+ txnHash: _polymarket_types.TxHash;
2737
+ }>>;
2738
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2739
+ type: z.ZodLiteral<NotificationType.YIELD_PAYOUT>;
2740
+ }, z.core.$strip>;
2741
+ type YieldPayoutNotification = z.infer<typeof YieldPayoutNotificationSchema>;
2742
+ declare const OrderFillFailedNotificationSchema: z.ZodObject<{
2743
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2744
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2745
+ payload: z.ZodPipe<z.ZodObject<{
2746
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2747
+ eventSlug: z.ZodOptional<z.ZodString>;
2748
+ icon: z.ZodOptional<z.ZodString>;
2749
+ image: z.ZodOptional<z.ZodString>;
2750
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2751
+ market_slug: z.ZodOptional<z.ZodString>;
2752
+ matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2753
+ order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
2754
+ original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2755
+ outcome: z.ZodString;
2756
+ outcome_index: z.ZodNumber;
2757
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2758
+ question: z.ZodOptional<z.ZodString>;
2759
+ remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2760
+ seriesSlug: z.ZodOptional<z.ZodString>;
2761
+ side: z.ZodEnum<typeof OrderSide>;
2762
+ trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
2763
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
2764
+ type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2765
+ }, z.core.$strip>, z.ZodTransform<{
2766
+ conditionId: ConditionId;
2767
+ tokenId: TokenId;
2768
+ marketSlug: string | undefined;
2769
+ matchedSize: DecimalString;
2770
+ orderId: OrderId;
2771
+ orderType: OrderType | undefined;
2772
+ originalSize: DecimalString;
2773
+ outcomeIndex: number;
2774
+ remainingSize: DecimalString;
2775
+ tradeId: string | undefined;
2776
+ transactionHash: _polymarket_types.TxHash | undefined;
2777
+ outcome: string;
2778
+ price: DecimalString;
2779
+ side: OrderSide;
2780
+ eventSlug?: string | undefined;
2781
+ icon?: string | undefined;
2782
+ image?: string | undefined;
2783
+ question?: string | undefined;
2784
+ seriesSlug?: string | undefined;
2785
+ }, {
2786
+ asset_id: TokenId;
2787
+ market: ConditionId;
2788
+ matched_size: DecimalString;
2789
+ order_id: OrderId;
2790
+ original_size: DecimalString;
2791
+ outcome: string;
2792
+ outcome_index: number;
2793
+ price: DecimalString;
2794
+ remaining_size: DecimalString;
2795
+ side: OrderSide;
2796
+ eventSlug?: string | undefined;
2797
+ icon?: string | undefined;
2798
+ image?: string | undefined;
2799
+ market_slug?: string | undefined;
2800
+ question?: string | undefined;
2801
+ seriesSlug?: string | undefined;
2802
+ trade_id?: string | undefined;
2803
+ transaction_hash?: _polymarket_types.TxHash | undefined;
2804
+ type?: OrderType | undefined;
2805
+ }>>;
2806
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2807
+ type: z.ZodLiteral<NotificationType.ORDER_FILL_FAILED>;
2808
+ }, z.core.$strip>;
2809
+ type OrderFillFailedNotification = z.infer<typeof OrderFillFailedNotificationSchema>;
2810
+ declare const AutoRedeemedNotificationSchema: z.ZodObject<{
2811
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2812
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2813
+ payload: z.ZodPipe<z.ZodObject<{
2814
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2815
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2816
+ image: z.ZodString;
2817
+ marketUrl: z.ZodOptional<z.ZodString>;
2818
+ negRisk: z.ZodBoolean;
2819
+ portfolioUrl: z.ZodOptional<z.ZodString>;
2820
+ position: z.ZodOptional<z.ZodString>;
2821
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2822
+ question: z.ZodString;
2823
+ slug: z.ZodString;
2824
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2825
+ }, z.core.$strip>, z.ZodTransform<{
2826
+ marketSlug: string;
2827
+ transactionHash: _polymarket_types.TxHash;
2828
+ amount: DecimalString;
2829
+ conditionId: ConditionId;
2830
+ image: string;
2831
+ negRisk: boolean;
2832
+ proxyWallet: _polymarket_types.EvmAddress;
2833
+ question: string;
2834
+ marketUrl?: string | undefined;
2835
+ portfolioUrl?: string | undefined;
2836
+ position?: string | undefined;
2837
+ }, {
2838
+ amount: DecimalString;
2839
+ conditionId: ConditionId;
2840
+ image: string;
2841
+ negRisk: boolean;
2842
+ proxyWallet: _polymarket_types.EvmAddress;
2843
+ question: string;
2844
+ slug: string;
2845
+ txnHash: _polymarket_types.TxHash;
2846
+ marketUrl?: string | undefined;
2847
+ portfolioUrl?: string | undefined;
2848
+ position?: string | undefined;
2849
+ }>>;
2850
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2851
+ type: z.ZodLiteral<NotificationType.AUTO_REDEEMED>;
2852
+ }, z.core.$strip>;
2853
+ type AutoRedeemedNotification = z.infer<typeof AutoRedeemedNotificationSchema>;
2854
+ declare const ComboAutoRedeemedNotificationSchema: z.ZodObject<{
2855
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2856
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2857
+ payload: z.ZodPipe<z.ZodObject<{
2858
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2859
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
2860
+ legs: z.ZodNumber;
2861
+ outcomeIndex: z.ZodNumber;
2862
+ portfolioUrl: z.ZodOptional<z.ZodString>;
2863
+ positionId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
2864
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2865
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2866
+ }, z.core.$strip>, z.ZodTransform<{
2867
+ transactionHash: _polymarket_types.TxHash;
2868
+ amount: DecimalString;
2869
+ conditionId: ComboConditionId;
2870
+ legs: number;
2871
+ outcomeIndex: number;
2872
+ positionId: PositionId;
2873
+ proxyWallet: _polymarket_types.EvmAddress;
2874
+ portfolioUrl?: string | undefined;
2875
+ }, {
2876
+ amount: DecimalString;
2877
+ conditionId: ComboConditionId;
2878
+ legs: number;
2879
+ outcomeIndex: number;
2880
+ positionId: PositionId;
2881
+ proxyWallet: _polymarket_types.EvmAddress;
2882
+ txnHash: _polymarket_types.TxHash;
2883
+ portfolioUrl?: string | undefined;
2884
+ }>>;
2885
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2886
+ type: z.ZodLiteral<NotificationType.COMBO_AUTO_REDEEMED>;
2887
+ }, z.core.$strip>;
2888
+ type ComboAutoRedeemedNotification = z.infer<typeof ComboAutoRedeemedNotificationSchema>;
2889
+ /**
2890
+ * Account notification. Discriminated on `type`: narrowing on it also
2891
+ * narrows `payload` to the shape carried by that notification kind.
2892
+ */
2893
+ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2894
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2895
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2896
+ payload: z.ZodPipe<z.ZodObject<{
2897
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2898
+ eventSlug: z.ZodOptional<z.ZodString>;
2899
+ icon: z.ZodOptional<z.ZodString>;
2900
+ image: z.ZodOptional<z.ZodString>;
2901
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2902
+ market_slug: z.ZodOptional<z.ZodString>;
2903
+ matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2904
+ order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
2905
+ original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2906
+ outcome: z.ZodString;
2907
+ outcome_index: z.ZodNumber;
2908
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2909
+ question: z.ZodOptional<z.ZodString>;
2910
+ remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2911
+ seriesSlug: z.ZodOptional<z.ZodString>;
2912
+ side: z.ZodEnum<typeof OrderSide>;
2913
+ trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
2914
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
2915
+ type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2916
+ }, z.core.$strip>, z.ZodTransform<{
2917
+ conditionId: ConditionId;
2918
+ tokenId: TokenId;
2919
+ marketSlug: string | undefined;
2920
+ matchedSize: DecimalString;
2921
+ orderId: OrderId;
2922
+ orderType: OrderType | undefined;
2923
+ originalSize: DecimalString;
2924
+ outcomeIndex: number;
2925
+ remainingSize: DecimalString;
2926
+ tradeId: string | undefined;
2927
+ transactionHash: _polymarket_types.TxHash | undefined;
2928
+ outcome: string;
2929
+ price: DecimalString;
2930
+ side: OrderSide;
2931
+ eventSlug?: string | undefined;
2932
+ icon?: string | undefined;
2933
+ image?: string | undefined;
2934
+ question?: string | undefined;
2935
+ seriesSlug?: string | undefined;
2936
+ }, {
2937
+ asset_id: TokenId;
2938
+ market: ConditionId;
2939
+ matched_size: DecimalString;
2940
+ order_id: OrderId;
2941
+ original_size: DecimalString;
2942
+ outcome: string;
2943
+ outcome_index: number;
2944
+ price: DecimalString;
2945
+ remaining_size: DecimalString;
2946
+ side: OrderSide;
2947
+ eventSlug?: string | undefined;
2948
+ icon?: string | undefined;
2949
+ image?: string | undefined;
2950
+ market_slug?: string | undefined;
2951
+ question?: string | undefined;
2952
+ seriesSlug?: string | undefined;
2953
+ trade_id?: string | undefined;
2954
+ transaction_hash?: _polymarket_types.TxHash | undefined;
2955
+ type?: OrderType | undefined;
2956
+ }>>;
2957
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2958
+ type: z.ZodLiteral<NotificationType.ORDER_CANCELLATION>;
2959
+ }, z.core.$strip>, z.ZodObject<{
2960
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2961
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2962
+ payload: z.ZodPipe<z.ZodObject<{
2963
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2964
+ eventSlug: z.ZodOptional<z.ZodString>;
2965
+ icon: z.ZodOptional<z.ZodString>;
2966
+ image: z.ZodOptional<z.ZodString>;
2967
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2968
+ market_slug: z.ZodOptional<z.ZodString>;
2969
+ matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2970
+ order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
2971
+ original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2972
+ outcome: z.ZodString;
2973
+ outcome_index: z.ZodNumber;
2974
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2975
+ question: z.ZodOptional<z.ZodString>;
2976
+ remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2977
+ seriesSlug: z.ZodOptional<z.ZodString>;
2978
+ side: z.ZodEnum<typeof OrderSide>;
2979
+ trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
2980
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
2981
+ type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2982
+ }, z.core.$strip>, z.ZodTransform<{
2983
+ conditionId: ConditionId;
2984
+ tokenId: TokenId;
2985
+ marketSlug: string | undefined;
2986
+ matchedSize: DecimalString;
2987
+ orderId: OrderId;
2988
+ orderType: OrderType | undefined;
2989
+ originalSize: DecimalString;
2990
+ outcomeIndex: number;
2991
+ remainingSize: DecimalString;
2992
+ tradeId: string | undefined;
2993
+ transactionHash: _polymarket_types.TxHash | undefined;
2994
+ outcome: string;
2995
+ price: DecimalString;
2996
+ side: OrderSide;
2997
+ eventSlug?: string | undefined;
2998
+ icon?: string | undefined;
2999
+ image?: string | undefined;
3000
+ question?: string | undefined;
3001
+ seriesSlug?: string | undefined;
3002
+ }, {
3003
+ asset_id: TokenId;
3004
+ market: ConditionId;
3005
+ matched_size: DecimalString;
3006
+ order_id: OrderId;
3007
+ original_size: DecimalString;
3008
+ outcome: string;
3009
+ outcome_index: number;
3010
+ price: DecimalString;
3011
+ remaining_size: DecimalString;
3012
+ side: OrderSide;
3013
+ eventSlug?: string | undefined;
3014
+ icon?: string | undefined;
3015
+ image?: string | undefined;
3016
+ market_slug?: string | undefined;
3017
+ question?: string | undefined;
3018
+ seriesSlug?: string | undefined;
3019
+ trade_id?: string | undefined;
3020
+ transaction_hash?: _polymarket_types.TxHash | undefined;
3021
+ type?: OrderType | undefined;
3022
+ }>>;
3023
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3024
+ type: z.ZodLiteral<NotificationType.ORDER_FILL>;
3025
+ }, z.core.$strip>, z.ZodObject<{
3026
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3027
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3028
+ payload: z.ZodPipe<z.ZodObject<{
3029
+ accepting_order_timestamp: 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>>]>>>;
3030
+ accepting_orders: z.ZodBoolean;
3031
+ active: z.ZodBoolean;
3032
+ archived: z.ZodOptional<z.ZodBoolean>;
3033
+ closed: z.ZodBoolean;
3034
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
3035
+ description: z.ZodString;
3036
+ enable_order_book: z.ZodOptional<z.ZodBoolean>;
3037
+ end_date_iso: 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>>]>>>;
3038
+ eventSlug: z.ZodOptional<z.ZodString>;
3039
+ fpmm: z.ZodString;
3040
+ 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>>]>>>;
3041
+ icon: z.ZodString;
3042
+ image: z.ZodString;
3043
+ is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
3044
+ maker_base_fee: z.ZodNullable<z.ZodNumber>;
3045
+ market_slug: z.ZodString;
3046
+ minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3047
+ minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3048
+ neg_risk: z.ZodOptional<z.ZodBoolean>;
3049
+ neg_risk_market_id: z.ZodOptional<z.ZodString>;
3050
+ neg_risk_request_id: z.ZodOptional<z.ZodString>;
3051
+ notifications_enabled: z.ZodOptional<z.ZodBoolean>;
3052
+ question: z.ZodString;
3053
+ question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
3054
+ rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
3055
+ max_spread: z.ZodNumber;
3056
+ min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3057
+ rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
3058
+ asset_address: z.ZodString;
3059
+ rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3060
+ }, z.core.$strip>, z.ZodTransform<{
3061
+ assetAddress: string;
3062
+ dailyRate: DecimalString;
3063
+ }, {
3064
+ asset_address: string;
3065
+ rewards_daily_rate: DecimalString;
3066
+ }>>>>>;
3067
+ }, z.core.$strip>, z.ZodTransform<{
3068
+ maxSpread: number;
3069
+ minSize: DecimalString;
3070
+ rates?: {
3071
+ assetAddress: string;
3072
+ dailyRate: DecimalString;
3073
+ }[] | null | undefined;
3074
+ }, {
3075
+ max_spread: number;
3076
+ min_size: DecimalString;
3077
+ rates?: {
3078
+ assetAddress: string;
3079
+ dailyRate: DecimalString;
3080
+ }[] | null | undefined;
3081
+ }>>>;
3082
+ seconds_delay: z.ZodNumber;
3083
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3084
+ taker_base_fee: z.ZodNullable<z.ZodNumber>;
3085
+ tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
3086
+ outcome: z.ZodString;
3087
+ price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
3088
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
3089
+ winner: z.ZodBoolean;
3090
+ }, z.core.$strip>, z.ZodTransform<{
3091
+ tokenId: TokenId;
3092
+ outcome: string;
3093
+ winner: boolean;
3094
+ price?: DecimalString | undefined;
3095
+ }, {
3096
+ outcome: string;
3097
+ token_id: TokenId;
3098
+ winner: boolean;
3099
+ price?: DecimalString | undefined;
3100
+ }>>>;
3101
+ }, z.core.$strip>, z.ZodTransform<{
3102
+ acceptingOrders: boolean;
3103
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
3104
+ conditionId: ConditionId;
3105
+ enableOrderBook: boolean | undefined;
3106
+ endDate: IsoDateTimeString | null | undefined;
3107
+ gameStartTime: IsoDateTimeString | null | undefined;
3108
+ is5050Outcome: boolean | undefined;
3109
+ makerBaseFee: number | null;
3110
+ marketSlug: string;
3111
+ minimumOrderSize: DecimalString;
3112
+ minimumTickSize: DecimalString;
3113
+ negRisk: boolean | undefined;
3114
+ negRiskMarketId: string | undefined;
3115
+ negRiskRequestId: string | undefined;
3116
+ notificationsEnabled: boolean | undefined;
3117
+ questionId: QuestionId;
3118
+ secondsDelay: number;
3119
+ takerBaseFee: number | null;
3120
+ active: boolean;
3121
+ closed: boolean;
3122
+ description: string;
3123
+ fpmm: string;
3124
+ icon: string;
3125
+ image: string;
3126
+ question: string;
3127
+ tokens: {
3128
+ tokenId: TokenId;
3129
+ outcome: string;
3130
+ winner: boolean;
3131
+ price?: DecimalString | undefined;
3132
+ }[];
3133
+ archived?: boolean | undefined;
3134
+ eventSlug?: string | undefined;
3135
+ rewards?: {
3136
+ maxSpread: number;
3137
+ minSize: DecimalString;
3138
+ rates?: {
3139
+ assetAddress: string;
3140
+ dailyRate: DecimalString;
3141
+ }[] | null | undefined;
3142
+ } | undefined;
3143
+ tags?: string[] | null | undefined;
3144
+ }, {
3145
+ accepting_orders: boolean;
3146
+ active: boolean;
3147
+ closed: boolean;
3148
+ condition_id: ConditionId;
3149
+ description: string;
3150
+ fpmm: string;
3151
+ icon: string;
3152
+ image: string;
3153
+ maker_base_fee: number | null;
3154
+ market_slug: string;
3155
+ minimum_order_size: DecimalString;
3156
+ minimum_tick_size: DecimalString;
3157
+ question: string;
3158
+ question_id: QuestionId;
3159
+ seconds_delay: number;
3160
+ taker_base_fee: number | null;
3161
+ tokens: {
3162
+ tokenId: TokenId;
3163
+ outcome: string;
3164
+ winner: boolean;
3165
+ price?: DecimalString | undefined;
3166
+ }[];
3167
+ accepting_order_timestamp?: IsoDateTimeString | null | undefined;
3168
+ archived?: boolean | undefined;
3169
+ enable_order_book?: boolean | undefined;
3170
+ end_date_iso?: IsoDateTimeString | null | undefined;
3171
+ eventSlug?: string | undefined;
3172
+ game_start_time?: IsoDateTimeString | null | undefined;
3173
+ is_50_50_outcome?: boolean | undefined;
3174
+ neg_risk?: boolean | undefined;
3175
+ neg_risk_market_id?: string | undefined;
3176
+ neg_risk_request_id?: string | undefined;
3177
+ notifications_enabled?: boolean | undefined;
3178
+ rewards?: {
3179
+ maxSpread: number;
3180
+ minSize: DecimalString;
3181
+ rates?: {
3182
+ assetAddress: string;
3183
+ dailyRate: DecimalString;
3184
+ }[] | null | undefined;
3185
+ } | undefined;
3186
+ tags?: string[] | null | undefined;
3187
+ }>>;
3188
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3189
+ type: z.ZodLiteral<NotificationType.MARKET_REGISTERED>;
3190
+ }, z.core.$strip>, z.ZodObject<{
3191
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3192
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3193
+ payload: z.ZodPipe<z.ZodObject<{
3194
+ accepting_order_timestamp: 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>>]>>>;
3195
+ accepting_orders: z.ZodBoolean;
3196
+ active: z.ZodBoolean;
3197
+ archived: z.ZodOptional<z.ZodBoolean>;
3198
+ closed: z.ZodBoolean;
3199
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
3200
+ description: z.ZodString;
3201
+ enable_order_book: z.ZodOptional<z.ZodBoolean>;
3202
+ end_date_iso: 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>>]>>>;
3203
+ eventSlug: z.ZodOptional<z.ZodString>;
3204
+ fpmm: z.ZodString;
3205
+ 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>>]>>>;
3206
+ icon: z.ZodString;
3207
+ image: z.ZodString;
3208
+ is_50_50_outcome: z.ZodOptional<z.ZodBoolean>;
3209
+ maker_base_fee: z.ZodNullable<z.ZodNumber>;
3210
+ market_slug: z.ZodString;
3211
+ minimum_order_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3212
+ minimum_tick_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3213
+ neg_risk: z.ZodOptional<z.ZodBoolean>;
3214
+ neg_risk_market_id: z.ZodOptional<z.ZodString>;
3215
+ neg_risk_request_id: z.ZodOptional<z.ZodString>;
3216
+ notifications_enabled: z.ZodOptional<z.ZodBoolean>;
3217
+ question: z.ZodString;
3218
+ question_id: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
3219
+ rewards: z.ZodOptional<z.ZodPipe<z.ZodObject<{
3220
+ max_spread: z.ZodNumber;
3221
+ min_size: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3222
+ rates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipe<z.ZodObject<{
3223
+ asset_address: z.ZodString;
3224
+ rewards_daily_rate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3225
+ }, z.core.$strip>, z.ZodTransform<{
3226
+ assetAddress: string;
3227
+ dailyRate: DecimalString;
3228
+ }, {
3229
+ asset_address: string;
3230
+ rewards_daily_rate: DecimalString;
3231
+ }>>>>>;
3232
+ }, z.core.$strip>, z.ZodTransform<{
3233
+ maxSpread: number;
3234
+ minSize: DecimalString;
3235
+ rates?: {
3236
+ assetAddress: string;
3237
+ dailyRate: DecimalString;
3238
+ }[] | null | undefined;
3239
+ }, {
3240
+ max_spread: number;
3241
+ min_size: DecimalString;
3242
+ rates?: {
3243
+ assetAddress: string;
3244
+ dailyRate: DecimalString;
3245
+ }[] | null | undefined;
3246
+ }>>>;
3247
+ seconds_delay: z.ZodNumber;
3248
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3249
+ taker_base_fee: z.ZodNullable<z.ZodNumber>;
3250
+ tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
3251
+ outcome: z.ZodString;
3252
+ price: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
3253
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
3254
+ winner: z.ZodBoolean;
3255
+ }, z.core.$strip>, z.ZodTransform<{
3256
+ tokenId: TokenId;
3257
+ outcome: string;
3258
+ winner: boolean;
3259
+ price?: DecimalString | undefined;
3260
+ }, {
3261
+ outcome: string;
3262
+ token_id: TokenId;
3263
+ winner: boolean;
3264
+ price?: DecimalString | undefined;
3265
+ }>>>;
3266
+ }, z.core.$strip>, z.ZodTransform<{
3267
+ acceptingOrders: boolean;
3268
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
3269
+ conditionId: ConditionId;
3270
+ enableOrderBook: boolean | undefined;
3271
+ endDate: IsoDateTimeString | null | undefined;
3272
+ gameStartTime: IsoDateTimeString | null | undefined;
3273
+ is5050Outcome: boolean | undefined;
3274
+ makerBaseFee: number | null;
3275
+ marketSlug: string;
3276
+ minimumOrderSize: DecimalString;
3277
+ minimumTickSize: DecimalString;
3278
+ negRisk: boolean | undefined;
3279
+ negRiskMarketId: string | undefined;
3280
+ negRiskRequestId: string | undefined;
3281
+ notificationsEnabled: boolean | undefined;
3282
+ questionId: QuestionId;
3283
+ secondsDelay: number;
3284
+ takerBaseFee: number | null;
3285
+ active: boolean;
3286
+ closed: boolean;
3287
+ description: string;
3288
+ fpmm: string;
3289
+ icon: string;
3290
+ image: string;
3291
+ question: string;
3292
+ tokens: {
3293
+ tokenId: TokenId;
3294
+ outcome: string;
3295
+ winner: boolean;
3296
+ price?: DecimalString | undefined;
3297
+ }[];
3298
+ archived?: boolean | undefined;
3299
+ eventSlug?: string | undefined;
3300
+ rewards?: {
3301
+ maxSpread: number;
3302
+ minSize: DecimalString;
3303
+ rates?: {
3304
+ assetAddress: string;
3305
+ dailyRate: DecimalString;
3306
+ }[] | null | undefined;
3307
+ } | undefined;
3308
+ tags?: string[] | null | undefined;
3309
+ }, {
3310
+ accepting_orders: boolean;
3311
+ active: boolean;
3312
+ closed: boolean;
3313
+ condition_id: ConditionId;
3314
+ description: string;
3315
+ fpmm: string;
3316
+ icon: string;
3317
+ image: string;
3318
+ maker_base_fee: number | null;
3319
+ market_slug: string;
3320
+ minimum_order_size: DecimalString;
3321
+ minimum_tick_size: DecimalString;
3322
+ question: string;
3323
+ question_id: QuestionId;
3324
+ seconds_delay: number;
3325
+ taker_base_fee: number | null;
3326
+ tokens: {
3327
+ tokenId: TokenId;
3328
+ outcome: string;
3329
+ winner: boolean;
3330
+ price?: DecimalString | undefined;
3331
+ }[];
3332
+ accepting_order_timestamp?: IsoDateTimeString | null | undefined;
3333
+ archived?: boolean | undefined;
3334
+ enable_order_book?: boolean | undefined;
3335
+ end_date_iso?: IsoDateTimeString | null | undefined;
3336
+ eventSlug?: string | undefined;
3337
+ game_start_time?: IsoDateTimeString | null | undefined;
3338
+ is_50_50_outcome?: boolean | undefined;
3339
+ neg_risk?: boolean | undefined;
3340
+ neg_risk_market_id?: string | undefined;
3341
+ neg_risk_request_id?: string | undefined;
3342
+ notifications_enabled?: boolean | undefined;
3343
+ rewards?: {
3344
+ maxSpread: number;
3345
+ minSize: DecimalString;
3346
+ rates?: {
3347
+ assetAddress: string;
3348
+ dailyRate: DecimalString;
3349
+ }[] | null | undefined;
3350
+ } | undefined;
3351
+ tags?: string[] | null | undefined;
3352
+ }>>;
3353
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3354
+ type: z.ZodLiteral<NotificationType.MARKET_RESOLVED>;
3355
+ }, z.core.$strip>, z.ZodObject<{
3356
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3357
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3358
+ payload: z.ZodPipe<z.ZodObject<{
3359
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
3360
+ reward: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3361
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
3362
+ }, z.core.$strip>, z.ZodTransform<{
3363
+ transactionHash: _polymarket_types.TxHash;
3364
+ proxyWallet: _polymarket_types.EvmAddress;
3365
+ reward: DecimalString;
3366
+ }, {
3367
+ proxyWallet: _polymarket_types.EvmAddress;
3368
+ reward: DecimalString;
3369
+ txnHash: _polymarket_types.TxHash;
3370
+ }>>;
3371
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3372
+ type: z.ZodLiteral<NotificationType.REWARD_PAYOUT>;
3373
+ }, z.core.$strip>, z.ZodObject<{
3374
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3375
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3376
+ payload: z.ZodObject<{
3377
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3378
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
3379
+ eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3380
+ eventTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3381
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>;
3382
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3383
+ parentCommentID: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>>>;
3384
+ parentEntityID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3385
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof CommentParentEntityType>>>;
3386
+ profile: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
3387
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3388
+ pseudonym: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3389
+ displayUsernamePublic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3390
+ bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3391
+ isMod: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3392
+ isCreator: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3393
+ proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3394
+ baseAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3395
+ profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3396
+ profileImageOptimized: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3397
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<ImageOptimizationId, string>>;
3398
+ imageUrlSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3399
+ imageUrlOptimized: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3400
+ imageSizeKbSource: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3401
+ imageSizeKbOptimized: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3402
+ imageOptimizedComplete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3403
+ imageOptimizedLastUpdated: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
3404
+ relID: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3405
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3406
+ relname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3407
+ }, z.core.$strip>>>;
3408
+ positions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3409
+ tokenId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
3410
+ positionSize: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>>>;
3411
+ }, z.core.$strip>>>>;
3412
+ }, z.core.$strip>, z.ZodTransform<{
3413
+ wallet: string | null | undefined;
3414
+ name?: string | null | undefined;
3415
+ pseudonym?: string | null | undefined;
3416
+ displayUsernamePublic?: boolean | null | undefined;
3417
+ bio?: string | null | undefined;
3418
+ isMod?: boolean | null | undefined;
3419
+ isCreator?: boolean | null | undefined;
3420
+ baseAddress?: string | null | undefined;
3421
+ profileImage?: string | null | undefined;
3422
+ profileImageOptimized?: {
3423
+ id: ImageOptimizationId;
3424
+ imageUrlSource?: string | null | undefined;
3425
+ imageUrlOptimized?: string | null | undefined;
3426
+ imageSizeKbSource?: number | null | undefined;
3427
+ imageSizeKbOptimized?: number | null | undefined;
3428
+ imageOptimizedComplete?: boolean | null | undefined;
3429
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
3430
+ relID?: number | null | undefined;
3431
+ field?: string | null | undefined;
3432
+ relname?: string | null | undefined;
3433
+ } | null | undefined;
3434
+ positions?: {
3435
+ tokenId?: TokenId | null | undefined;
3436
+ positionSize?: BaseUnits | null | undefined;
3437
+ }[] | null | undefined;
3438
+ }, {
3439
+ name?: string | null | undefined;
3440
+ pseudonym?: string | null | undefined;
3441
+ displayUsernamePublic?: boolean | null | undefined;
3442
+ bio?: string | null | undefined;
3443
+ isMod?: boolean | null | undefined;
3444
+ isCreator?: boolean | null | undefined;
3445
+ proxyWallet?: string | null | undefined;
3446
+ baseAddress?: string | null | undefined;
3447
+ profileImage?: string | null | undefined;
3448
+ profileImageOptimized?: {
3449
+ id: ImageOptimizationId;
3450
+ imageUrlSource?: string | null | undefined;
3451
+ imageUrlOptimized?: string | null | undefined;
3452
+ imageSizeKbSource?: number | null | undefined;
3453
+ imageSizeKbOptimized?: number | null | undefined;
3454
+ imageOptimizedComplete?: boolean | null | undefined;
3455
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
3456
+ relID?: number | null | undefined;
3457
+ field?: string | null | undefined;
3458
+ relname?: string | null | undefined;
3459
+ } | null | undefined;
3460
+ positions?: {
3461
+ tokenId?: TokenId | null | undefined;
3462
+ positionSize?: BaseUnits | null | undefined;
3463
+ }[] | null | undefined;
3464
+ }>>>>;
3465
+ seriesSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3466
+ seriesTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3467
+ userAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3468
+ }, z.core.$strip>;
3469
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3470
+ type: z.ZodLiteral<NotificationType.CHILD_COMMENT_CREATED>;
3471
+ }, z.core.$strip>, z.ZodObject<{
3472
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3473
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3474
+ payload: z.ZodPipe<z.ZodObject<{
3475
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3476
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
3477
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
3478
+ }, z.core.$strip>, z.ZodTransform<{
3479
+ transactionHash: _polymarket_types.TxHash;
3480
+ amount: DecimalString;
3481
+ proxyWallet: _polymarket_types.EvmAddress;
3482
+ }, {
3483
+ amount: DecimalString;
3484
+ proxyWallet: _polymarket_types.EvmAddress;
3485
+ txnHash: _polymarket_types.TxHash;
3486
+ }>>;
3487
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3488
+ type: z.ZodLiteral<NotificationType.YIELD_PAYOUT>;
3489
+ }, z.core.$strip>, z.ZodObject<{
3490
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3491
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3492
+ payload: z.ZodPipe<z.ZodObject<{
3493
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
3494
+ eventSlug: z.ZodOptional<z.ZodString>;
3495
+ icon: z.ZodOptional<z.ZodString>;
3496
+ image: z.ZodOptional<z.ZodString>;
3497
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
3498
+ market_slug: z.ZodOptional<z.ZodString>;
3499
+ matched_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3500
+ order_id: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
3501
+ original_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3502
+ outcome: z.ZodString;
3503
+ outcome_index: z.ZodNumber;
3504
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3505
+ question: z.ZodOptional<z.ZodString>;
3506
+ remaining_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3507
+ seriesSlug: z.ZodOptional<z.ZodString>;
3508
+ side: z.ZodEnum<typeof OrderSide>;
3509
+ trade_id: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
3510
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
3511
+ type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
3512
+ }, z.core.$strip>, z.ZodTransform<{
3513
+ conditionId: ConditionId;
3514
+ tokenId: TokenId;
3515
+ marketSlug: string | undefined;
3516
+ matchedSize: DecimalString;
3517
+ orderId: OrderId;
3518
+ orderType: OrderType | undefined;
3519
+ originalSize: DecimalString;
3520
+ outcomeIndex: number;
3521
+ remainingSize: DecimalString;
3522
+ tradeId: string | undefined;
3523
+ transactionHash: _polymarket_types.TxHash | undefined;
3524
+ outcome: string;
3525
+ price: DecimalString;
3526
+ side: OrderSide;
3527
+ eventSlug?: string | undefined;
3528
+ icon?: string | undefined;
3529
+ image?: string | undefined;
3530
+ question?: string | undefined;
3531
+ seriesSlug?: string | undefined;
3532
+ }, {
3533
+ asset_id: TokenId;
3534
+ market: ConditionId;
3535
+ matched_size: DecimalString;
3536
+ order_id: OrderId;
3537
+ original_size: DecimalString;
3538
+ outcome: string;
3539
+ outcome_index: number;
3540
+ price: DecimalString;
3541
+ remaining_size: DecimalString;
3542
+ side: OrderSide;
3543
+ eventSlug?: string | undefined;
3544
+ icon?: string | undefined;
3545
+ image?: string | undefined;
3546
+ market_slug?: string | undefined;
3547
+ question?: string | undefined;
3548
+ seriesSlug?: string | undefined;
3549
+ trade_id?: string | undefined;
3550
+ transaction_hash?: _polymarket_types.TxHash | undefined;
3551
+ type?: OrderType | undefined;
3552
+ }>>;
3553
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3554
+ type: z.ZodLiteral<NotificationType.ORDER_FILL_FAILED>;
3555
+ }, z.core.$strip>, z.ZodObject<{
3556
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3557
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3558
+ payload: z.ZodPipe<z.ZodObject<{
3559
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3560
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
3561
+ image: z.ZodString;
3562
+ marketUrl: z.ZodOptional<z.ZodString>;
3563
+ negRisk: z.ZodBoolean;
3564
+ portfolioUrl: z.ZodOptional<z.ZodString>;
3565
+ position: z.ZodOptional<z.ZodString>;
3566
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
3567
+ question: z.ZodString;
3568
+ slug: z.ZodString;
3569
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
3570
+ }, z.core.$strip>, z.ZodTransform<{
3571
+ marketSlug: string;
3572
+ transactionHash: _polymarket_types.TxHash;
3573
+ amount: DecimalString;
3574
+ conditionId: ConditionId;
3575
+ image: string;
3576
+ negRisk: boolean;
3577
+ proxyWallet: _polymarket_types.EvmAddress;
3578
+ question: string;
3579
+ marketUrl?: string | undefined;
3580
+ portfolioUrl?: string | undefined;
3581
+ position?: string | undefined;
3582
+ }, {
3583
+ amount: DecimalString;
3584
+ conditionId: ConditionId;
3585
+ image: string;
3586
+ negRisk: boolean;
3587
+ proxyWallet: _polymarket_types.EvmAddress;
3588
+ question: string;
3589
+ slug: string;
3590
+ txnHash: _polymarket_types.TxHash;
3591
+ marketUrl?: string | undefined;
3592
+ portfolioUrl?: string | undefined;
3593
+ position?: string | undefined;
3594
+ }>>;
3595
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3596
+ type: z.ZodLiteral<NotificationType.AUTO_REDEEMED>;
3597
+ }, z.core.$strip>, z.ZodObject<{
3598
+ id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3599
+ owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3600
+ payload: z.ZodPipe<z.ZodObject<{
3601
+ amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3602
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
3603
+ legs: z.ZodNumber;
3604
+ outcomeIndex: z.ZodNumber;
3605
+ portfolioUrl: z.ZodOptional<z.ZodString>;
3606
+ positionId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
3607
+ proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
3608
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
3609
+ }, z.core.$strip>, z.ZodTransform<{
3610
+ transactionHash: _polymarket_types.TxHash;
3611
+ amount: DecimalString;
3612
+ conditionId: ComboConditionId;
3613
+ legs: number;
3614
+ outcomeIndex: number;
3615
+ positionId: PositionId;
3616
+ proxyWallet: _polymarket_types.EvmAddress;
3617
+ portfolioUrl?: string | undefined;
3618
+ }, {
3619
+ amount: DecimalString;
3620
+ conditionId: ComboConditionId;
3621
+ legs: number;
3622
+ outcomeIndex: number;
3623
+ positionId: PositionId;
3624
+ proxyWallet: _polymarket_types.EvmAddress;
3625
+ txnHash: _polymarket_types.TxHash;
3626
+ portfolioUrl?: string | undefined;
3627
+ }>>;
3628
+ timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3629
+ type: z.ZodLiteral<NotificationType.COMBO_AUTO_REDEEMED>;
3630
+ }, z.core.$strip>], "type">;
3631
+ type Notification = z.infer<typeof NotificationSchema>;
3632
+ /**
3633
+ * Notifications with types unknown to this SDK version are omitted so newly
3634
+ * introduced kinds cannot fail the feed; recognized types validate strictly.
3635
+ */
3636
+ declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<({
3637
+ id: NotificationId;
3638
+ owner: ApiKey;
3639
+ payload: {
3640
+ conditionId: ConditionId;
3641
+ tokenId: TokenId;
3642
+ marketSlug: string | undefined;
3643
+ matchedSize: DecimalString;
3644
+ orderId: OrderId;
3645
+ orderType: OrderType | undefined;
3646
+ originalSize: DecimalString;
3647
+ outcomeIndex: number;
3648
+ remainingSize: DecimalString;
3649
+ tradeId: string | undefined;
3650
+ transactionHash: _polymarket_types.TxHash | undefined;
3651
+ outcome: string;
3652
+ price: DecimalString;
3653
+ side: OrderSide;
3654
+ eventSlug?: string | undefined;
3655
+ icon?: string | undefined;
3656
+ image?: string | undefined;
3657
+ question?: string | undefined;
3658
+ seriesSlug?: string | undefined;
3659
+ };
3660
+ timestamp: EpochMilliseconds;
3661
+ type: NotificationType.ORDER_CANCELLATION;
3662
+ } | {
3663
+ id: NotificationId;
3664
+ owner: ApiKey;
3665
+ payload: {
3666
+ conditionId: ConditionId;
3667
+ tokenId: TokenId;
3668
+ marketSlug: string | undefined;
3669
+ matchedSize: DecimalString;
3670
+ orderId: OrderId;
3671
+ orderType: OrderType | undefined;
3672
+ originalSize: DecimalString;
3673
+ outcomeIndex: number;
3674
+ remainingSize: DecimalString;
3675
+ tradeId: string | undefined;
3676
+ transactionHash: _polymarket_types.TxHash | undefined;
3677
+ outcome: string;
3678
+ price: DecimalString;
3679
+ side: OrderSide;
3680
+ eventSlug?: string | undefined;
3681
+ icon?: string | undefined;
3682
+ image?: string | undefined;
3683
+ question?: string | undefined;
3684
+ seriesSlug?: string | undefined;
3685
+ };
3686
+ timestamp: EpochMilliseconds;
3687
+ type: NotificationType.ORDER_FILL;
3688
+ } | {
3689
+ id: NotificationId;
3690
+ owner: ApiKey;
3691
+ payload: {
3692
+ acceptingOrders: boolean;
3693
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
3694
+ conditionId: ConditionId;
3695
+ enableOrderBook: boolean | undefined;
3696
+ endDate: IsoDateTimeString | null | undefined;
3697
+ gameStartTime: IsoDateTimeString | null | undefined;
3698
+ is5050Outcome: boolean | undefined;
3699
+ makerBaseFee: number | null;
3700
+ marketSlug: string;
3701
+ minimumOrderSize: DecimalString;
3702
+ minimumTickSize: DecimalString;
3703
+ negRisk: boolean | undefined;
3704
+ negRiskMarketId: string | undefined;
3705
+ negRiskRequestId: string | undefined;
3706
+ notificationsEnabled: boolean | undefined;
3707
+ questionId: QuestionId;
3708
+ secondsDelay: number;
3709
+ takerBaseFee: number | null;
3710
+ active: boolean;
3711
+ closed: boolean;
3712
+ description: string;
3713
+ fpmm: string;
3714
+ icon: string;
3715
+ image: string;
3716
+ question: string;
3717
+ tokens: {
3718
+ tokenId: TokenId;
3719
+ outcome: string;
3720
+ winner: boolean;
3721
+ price?: DecimalString | undefined;
3722
+ }[];
3723
+ archived?: boolean | undefined;
3724
+ eventSlug?: string | undefined;
3725
+ rewards?: {
3726
+ maxSpread: number;
3727
+ minSize: DecimalString;
3728
+ rates?: {
3729
+ assetAddress: string;
3730
+ dailyRate: DecimalString;
3731
+ }[] | null | undefined;
3732
+ } | undefined;
3733
+ tags?: string[] | null | undefined;
3734
+ };
3735
+ timestamp: EpochMilliseconds;
3736
+ type: NotificationType.MARKET_REGISTERED;
3737
+ } | {
3738
+ id: NotificationId;
3739
+ owner: ApiKey;
3740
+ payload: {
3741
+ acceptingOrders: boolean;
3742
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
3743
+ conditionId: ConditionId;
3744
+ enableOrderBook: boolean | undefined;
3745
+ endDate: IsoDateTimeString | null | undefined;
3746
+ gameStartTime: IsoDateTimeString | null | undefined;
3747
+ is5050Outcome: boolean | undefined;
3748
+ makerBaseFee: number | null;
3749
+ marketSlug: string;
3750
+ minimumOrderSize: DecimalString;
3751
+ minimumTickSize: DecimalString;
3752
+ negRisk: boolean | undefined;
3753
+ negRiskMarketId: string | undefined;
3754
+ negRiskRequestId: string | undefined;
3755
+ notificationsEnabled: boolean | undefined;
3756
+ questionId: QuestionId;
3757
+ secondsDelay: number;
3758
+ takerBaseFee: number | null;
3759
+ active: boolean;
3760
+ closed: boolean;
3761
+ description: string;
3762
+ fpmm: string;
3763
+ icon: string;
3764
+ image: string;
3765
+ question: string;
3766
+ tokens: {
3767
+ tokenId: TokenId;
3768
+ outcome: string;
3769
+ winner: boolean;
3770
+ price?: DecimalString | undefined;
3771
+ }[];
3772
+ archived?: boolean | undefined;
3773
+ eventSlug?: string | undefined;
3774
+ rewards?: {
3775
+ maxSpread: number;
3776
+ minSize: DecimalString;
3777
+ rates?: {
3778
+ assetAddress: string;
3779
+ dailyRate: DecimalString;
3780
+ }[] | null | undefined;
3781
+ } | undefined;
3782
+ tags?: string[] | null | undefined;
3783
+ };
3784
+ timestamp: EpochMilliseconds;
3785
+ type: NotificationType.MARKET_RESOLVED;
3786
+ } | {
3787
+ id: NotificationId;
3788
+ owner: ApiKey;
3789
+ payload: {
3790
+ transactionHash: _polymarket_types.TxHash;
3791
+ proxyWallet: _polymarket_types.EvmAddress;
3792
+ reward: DecimalString;
3793
+ };
3794
+ timestamp: EpochMilliseconds;
3795
+ type: NotificationType.REWARD_PAYOUT;
3796
+ } | {
3797
+ id: NotificationId;
3798
+ owner: ApiKey;
3799
+ payload: {
3800
+ id: CommentId;
3801
+ body?: string | null | undefined;
3802
+ createdAt?: IsoDateTimeString | null | undefined;
3803
+ eventSlug?: string | null | undefined;
3804
+ eventTitle?: string | null | undefined;
3805
+ image?: string | null | undefined;
3806
+ parentCommentID?: CommentId | null | undefined;
3807
+ parentEntityID?: number | null | undefined;
3808
+ parentEntityType?: CommentParentEntityType | null | undefined;
3809
+ profile?: {
3810
+ wallet: string | null | undefined;
3811
+ name?: string | null | undefined;
3812
+ pseudonym?: string | null | undefined;
3813
+ displayUsernamePublic?: boolean | null | undefined;
3814
+ bio?: string | null | undefined;
3815
+ isMod?: boolean | null | undefined;
3816
+ isCreator?: boolean | null | undefined;
3817
+ baseAddress?: string | null | undefined;
3818
+ profileImage?: string | null | undefined;
3819
+ profileImageOptimized?: {
3820
+ id: ImageOptimizationId;
3821
+ imageUrlSource?: string | null | undefined;
3822
+ imageUrlOptimized?: string | null | undefined;
3823
+ imageSizeKbSource?: number | null | undefined;
3824
+ imageSizeKbOptimized?: number | null | undefined;
3825
+ imageOptimizedComplete?: boolean | null | undefined;
3826
+ imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined;
3827
+ relID?: number | null | undefined;
3828
+ field?: string | null | undefined;
3829
+ relname?: string | null | undefined;
3830
+ } | null | undefined;
3831
+ positions?: {
3832
+ tokenId?: TokenId | null | undefined;
3833
+ positionSize?: BaseUnits | null | undefined;
3834
+ }[] | null | undefined;
3835
+ } | null | undefined;
3836
+ seriesSlug?: string | null | undefined;
3837
+ seriesTitle?: string | null | undefined;
3838
+ userAddress?: string | null | undefined;
3839
+ };
3840
+ timestamp: EpochMilliseconds;
3841
+ type: NotificationType.CHILD_COMMENT_CREATED;
3842
+ } | {
3843
+ id: NotificationId;
3844
+ owner: ApiKey;
3845
+ payload: {
3846
+ transactionHash: _polymarket_types.TxHash;
3847
+ amount: DecimalString;
3848
+ proxyWallet: _polymarket_types.EvmAddress;
3849
+ };
3850
+ timestamp: EpochMilliseconds;
3851
+ type: NotificationType.YIELD_PAYOUT;
3852
+ } | {
3853
+ id: NotificationId;
3854
+ owner: ApiKey;
3855
+ payload: {
3856
+ conditionId: ConditionId;
3857
+ tokenId: TokenId;
3858
+ marketSlug: string | undefined;
3859
+ matchedSize: DecimalString;
3860
+ orderId: OrderId;
3861
+ orderType: OrderType | undefined;
3862
+ originalSize: DecimalString;
3863
+ outcomeIndex: number;
3864
+ remainingSize: DecimalString;
3865
+ tradeId: string | undefined;
3866
+ transactionHash: _polymarket_types.TxHash | undefined;
3867
+ outcome: string;
3868
+ price: DecimalString;
3869
+ side: OrderSide;
3870
+ eventSlug?: string | undefined;
3871
+ icon?: string | undefined;
3872
+ image?: string | undefined;
3873
+ question?: string | undefined;
3874
+ seriesSlug?: string | undefined;
3875
+ };
3876
+ timestamp: EpochMilliseconds;
3877
+ type: NotificationType.ORDER_FILL_FAILED;
3878
+ } | {
3879
+ id: NotificationId;
3880
+ owner: ApiKey;
3881
+ payload: {
3882
+ marketSlug: string;
3883
+ transactionHash: _polymarket_types.TxHash;
3884
+ amount: DecimalString;
3885
+ conditionId: ConditionId;
3886
+ image: string;
3887
+ negRisk: boolean;
3888
+ proxyWallet: _polymarket_types.EvmAddress;
3889
+ question: string;
3890
+ marketUrl?: string | undefined;
3891
+ portfolioUrl?: string | undefined;
3892
+ position?: string | undefined;
3893
+ };
3894
+ timestamp: EpochMilliseconds;
3895
+ type: NotificationType.AUTO_REDEEMED;
3896
+ } | {
3897
+ id: NotificationId;
3898
+ owner: ApiKey;
3899
+ payload: {
3900
+ transactionHash: _polymarket_types.TxHash;
3901
+ amount: DecimalString;
3902
+ conditionId: ComboConditionId;
3903
+ legs: number;
3904
+ outcomeIndex: number;
3905
+ positionId: PositionId;
3906
+ proxyWallet: _polymarket_types.EvmAddress;
3907
+ portfolioUrl?: string | undefined;
3908
+ };
3909
+ timestamp: EpochMilliseconds;
3910
+ type: NotificationType.COMBO_AUTO_REDEEMED;
3911
+ })[], unknown[]>>;
3912
+ type NotificationsResponse = z.infer<typeof NotificationsResponseSchema>;
3913
+
3914
+ type OrderBookLevel = {
3915
+ price: DecimalString;
3916
+ size: DecimalString;
3917
+ };
3918
+ /** SHA-1 hash of the serialized order book summary, encoded as bare lowercase hex. */
3919
+ type OrderBookHash = string & {
3920
+ readonly __tag: 'OrderBookHash';
3921
+ };
3922
+ type OrderBook = {
3923
+ /** Condition ID for the market this book belongs to. */
3924
+ conditionId: ConditionId;
3925
+ tokenId: TokenId;
3926
+ timestamp?: EpochMilliseconds | null;
3927
+ /** Bid levels in ascending price order, lowest bid first. */
3928
+ bids: OrderBookLevel[];
3929
+ /** Ask levels in descending price order, highest ask first. */
3930
+ asks: OrderBookLevel[];
3931
+ minOrderSize: DecimalString;
3932
+ tickSize: TickSizeValue;
3933
+ negRisk: boolean;
3934
+ lastTradePrice?: DecimalString | null;
3935
+ hash: OrderBookHash;
3936
+ };
3937
+ declare const OrderBookLevelSchema: z.ZodObject<{
3938
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3939
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3940
+ }, z.core.$strip>;
3941
+ declare const OrderBookHashSchema: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
3942
+ declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
3943
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
3944
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
3945
+ timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
3946
+ bids: z.ZodArray<z.ZodObject<{
3947
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3948
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3949
+ }, z.core.$strip>>;
3950
+ asks: z.ZodArray<z.ZodObject<{
3951
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3952
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3953
+ }, z.core.$strip>>;
3954
+ min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3955
+ tick_size: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodTransform<number, DecimalString>>, z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>;
3956
+ neg_risk: z.ZodBoolean;
3957
+ last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
3958
+ hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
3959
+ }, z.core.$strip>, z.ZodTransform<{
3960
+ conditionId: ConditionId;
3961
+ tokenId: TokenId;
3962
+ minOrderSize: DecimalString;
3963
+ tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
3964
+ negRisk: boolean;
3965
+ lastTradePrice: DecimalString | null | undefined;
3966
+ bids: {
3967
+ price: DecimalString;
3968
+ size: DecimalString;
3969
+ }[];
3970
+ asks: {
3971
+ price: DecimalString;
3972
+ size: DecimalString;
3973
+ }[];
3974
+ hash: OrderBookHash;
3975
+ timestamp?: EpochMilliseconds | null | undefined;
3976
+ }, {
3977
+ market: ConditionId;
3978
+ asset_id: TokenId;
3979
+ bids: {
3980
+ price: DecimalString;
3981
+ size: DecimalString;
3982
+ }[];
3983
+ asks: {
3984
+ price: DecimalString;
3985
+ size: DecimalString;
3986
+ }[];
3987
+ min_order_size: DecimalString;
3988
+ tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
3989
+ neg_risk: boolean;
3990
+ hash: OrderBookHash;
3991
+ timestamp?: EpochMilliseconds | null | undefined;
3992
+ last_trade_price?: DecimalString | null | undefined;
3993
+ }>>;
3994
+ declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
3995
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
3996
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
3997
+ timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
3998
+ bids: z.ZodArray<z.ZodObject<{
3999
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4000
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4001
+ }, z.core.$strip>>;
4002
+ asks: z.ZodArray<z.ZodObject<{
4003
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4004
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4005
+ }, z.core.$strip>>;
4006
+ min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4007
+ tick_size: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodTransform<number, DecimalString>>, z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>;
4008
+ neg_risk: z.ZodBoolean;
4009
+ last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
4010
+ hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
4011
+ }, z.core.$strip>, z.ZodTransform<{
4012
+ conditionId: ConditionId;
4013
+ tokenId: TokenId;
4014
+ minOrderSize: DecimalString;
4015
+ tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
4016
+ negRisk: boolean;
4017
+ lastTradePrice: DecimalString | null | undefined;
4018
+ bids: {
4019
+ price: DecimalString;
4020
+ size: DecimalString;
4021
+ }[];
4022
+ asks: {
4023
+ price: DecimalString;
4024
+ size: DecimalString;
4025
+ }[];
4026
+ hash: OrderBookHash;
4027
+ timestamp?: EpochMilliseconds | null | undefined;
4028
+ }, {
4029
+ market: ConditionId;
4030
+ asset_id: TokenId;
4031
+ bids: {
4032
+ price: DecimalString;
4033
+ size: DecimalString;
4034
+ }[];
4035
+ asks: {
4036
+ price: DecimalString;
4037
+ size: DecimalString;
4038
+ }[];
4039
+ min_order_size: DecimalString;
4040
+ tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
4041
+ neg_risk: boolean;
4042
+ hash: OrderBookHash;
4043
+ timestamp?: EpochMilliseconds | null | undefined;
4044
+ last_trade_price?: DecimalString | null | undefined;
4045
+ }>>;
4046
+ declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4047
+ market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
4048
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
4049
+ timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
4050
+ bids: z.ZodArray<z.ZodObject<{
4051
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4052
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4053
+ }, z.core.$strip>>;
4054
+ asks: z.ZodArray<z.ZodObject<{
4055
+ price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4056
+ size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4057
+ }, z.core.$strip>>;
4058
+ min_order_size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
4059
+ tick_size: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodTransform<number, DecimalString>>, z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>;
4060
+ neg_risk: z.ZodBoolean;
4061
+ last_trade_price: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
4062
+ hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
4063
+ }, z.core.$strip>, z.ZodTransform<{
4064
+ conditionId: ConditionId;
4065
+ tokenId: TokenId;
4066
+ minOrderSize: DecimalString;
4067
+ tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
4068
+ negRisk: boolean;
4069
+ lastTradePrice: DecimalString | null | undefined;
4070
+ bids: {
4071
+ price: DecimalString;
4072
+ size: DecimalString;
4073
+ }[];
4074
+ asks: {
4075
+ price: DecimalString;
4076
+ size: DecimalString;
4077
+ }[];
4078
+ hash: OrderBookHash;
4079
+ timestamp?: EpochMilliseconds | null | undefined;
4080
+ }, {
4081
+ market: ConditionId;
4082
+ asset_id: TokenId;
4083
+ bids: {
4084
+ price: DecimalString;
4085
+ size: DecimalString;
4086
+ }[];
4087
+ asks: {
4088
+ price: DecimalString;
4089
+ size: DecimalString;
4090
+ }[];
4091
+ min_order_size: DecimalString;
4092
+ tick_size: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
4093
+ neg_risk: boolean;
4094
+ hash: OrderBookHash;
4095
+ timestamp?: EpochMilliseconds | null | undefined;
4096
+ last_trade_price?: DecimalString | null | undefined;
4097
+ }>>>;
4098
+ type OrderBooks = OrderBook[];
4099
+ type FetchOrderBookResponse = OrderBook;
4100
+
4101
+ /**
4102
+ * Placement outcome of an accepted order.
4103
+ */
4104
+ declare enum OrderPostStatus {
4105
+ /** The order rests on the book without matching. */
4106
+ LIVE = "live",
4107
+ /** The order matched, fully or partially, at placement. */
4108
+ MATCHED = "matched",
4109
+ /** The market imposes a matching delay; the order is queued. */
4110
+ DELAYED = "delayed"
4111
+ }
4112
+ declare const OrderPostStatusSchema: z.ZodEnum<typeof OrderPostStatus>;
4113
+ declare enum OrderResponseErrorCode {
4114
+ UNMATCHED = "unmatched",
4115
+ MARKET_NOT_READY = "market_not_ready",
4116
+ INSUFFICIENT_BALANCE_OR_ALLOWANCE = "insufficient_balance_or_allowance",
4117
+ INVALID_NONCE = "invalid_nonce",
4118
+ INVALID_EXPIRATION = "invalid_expiration",
4119
+ POST_ONLY_WOULD_CROSS = "post_only_would_cross",
4120
+ POST_ONLY_MODE = "post_only_mode",
4121
+ FOK_NOT_FILLED = "fok_not_filled",
4122
+ FAK_NOT_FILLED = "fak_not_filled",
4123
+ UNKNOWN = "unknown"
4124
+ }
4125
+ declare const OrderResponseErrorCodeSchema: z.ZodEnum<typeof OrderResponseErrorCode>;
4126
+ /**
4127
+ * A successfully placed order.
4128
+ */
4129
+ type AcceptedOrderResponse = {
4130
+ ok: true;
4131
+ /** Unique identifier of the placed order. */
4132
+ orderId: OrderId;
4133
+ /** Placement outcome. Fills only exist when the status is `matched`. */
4134
+ status: OrderPostStatus;
4135
+ /** Amount of the maker asset committed by fills at placement. `'0'` when the order did not match. */
4136
+ makingAmount: DecimalString;
4137
+ /** Amount of the taker asset received by fills at placement. `'0'` when the order did not match. */
4138
+ takingAmount: DecimalString;
4139
+ /**
4140
+ * Settlement transaction hashes for fills that occurred at placement.
1853
4141
  * Populated on a best-effort basis: settlement happens asynchronously, so
1854
4142
  * this can be empty even when the order matched. Follow the order's trades
1855
4143
  * to obtain hashes reliably.
@@ -1959,7 +4247,7 @@ declare const CurrentRewardConfigSchema: z.ZodPipe<z.ZodObject<{
1959
4247
  }>>;
1960
4248
  type CurrentRewardConfig = z.infer<typeof CurrentRewardConfigSchema>;
1961
4249
  declare const CurrentRewardSchema: z.ZodPipe<z.ZodObject<{
1962
- condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
4250
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1963
4251
  rewards_max_spread: z.ZodOptional<z.ZodNumber>;
1964
4252
  rewards_min_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
1965
4253
  rewards_config: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
@@ -1989,7 +4277,7 @@ declare const CurrentRewardSchema: z.ZodPipe<z.ZodObject<{
1989
4277
  native_daily_rate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
1990
4278
  total_daily_rate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
1991
4279
  }, z.core.$strip>, z.ZodTransform<{
1992
- conditionId: CtfConditionId;
4280
+ conditionId: ConditionId;
1993
4281
  rewardsMaxSpread: number | undefined;
1994
4282
  rewardsMinSize: DecimalString | undefined;
1995
4283
  rewardsConfig: {
@@ -2005,7 +4293,7 @@ declare const CurrentRewardSchema: z.ZodPipe<z.ZodObject<{
2005
4293
  nativeDailyRate: DecimalString | undefined;
2006
4294
  totalDailyRate: DecimalString | undefined;
2007
4295
  }, {
2008
- condition_id: CtfConditionId;
4296
+ condition_id: ConditionId;
2009
4297
  rewards_max_spread?: number | undefined;
2010
4298
  rewards_min_size?: DecimalString | undefined;
2011
4299
  rewards_config?: {
@@ -2027,7 +4315,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
2027
4315
  count: z.ZodNumber;
2028
4316
  next_cursor: z.ZodString;
2029
4317
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
2030
- condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
4318
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2031
4319
  rewards_max_spread: z.ZodOptional<z.ZodNumber>;
2032
4320
  rewards_min_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
2033
4321
  rewards_config: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
@@ -2057,7 +4345,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
2057
4345
  native_daily_rate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
2058
4346
  total_daily_rate: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
2059
4347
  }, z.core.$strip>, z.ZodTransform<{
2060
- conditionId: CtfConditionId;
4348
+ conditionId: ConditionId;
2061
4349
  rewardsMaxSpread: number | undefined;
2062
4350
  rewardsMinSize: DecimalString | undefined;
2063
4351
  rewardsConfig: {
@@ -2073,7 +4361,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
2073
4361
  nativeDailyRate: DecimalString | undefined;
2074
4362
  totalDailyRate: DecimalString | undefined;
2075
4363
  }, {
2076
- condition_id: CtfConditionId;
4364
+ condition_id: ConditionId;
2077
4365
  rewards_max_spread?: number | undefined;
2078
4366
  rewards_min_size?: DecimalString | undefined;
2079
4367
  rewards_config?: {
@@ -2094,7 +4382,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
2094
4382
  limit: number;
2095
4383
  count: number;
2096
4384
  data: {
2097
- conditionId: CtfConditionId;
4385
+ conditionId: ConditionId;
2098
4386
  rewardsMaxSpread: number | undefined;
2099
4387
  rewardsMinSize: DecimalString | undefined;
2100
4388
  rewardsConfig: {
@@ -2115,7 +4403,7 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
2115
4403
  count: number;
2116
4404
  next_cursor: string;
2117
4405
  data: {
2118
- conditionId: CtfConditionId;
4406
+ conditionId: ConditionId;
2119
4407
  rewardsMaxSpread: number | undefined;
2120
4408
  rewardsMinSize: DecimalString | undefined;
2121
4409
  rewardsConfig: {
@@ -2168,7 +4456,7 @@ declare const RewardConfigSchema: z.ZodPipe<z.ZodObject<{
2168
4456
  }>>;
2169
4457
  type RewardConfig = z.infer<typeof RewardConfigSchema>;
2170
4458
  declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
2171
- condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
4459
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2172
4460
  question: z.ZodString;
2173
4461
  market_slug: z.ZodOptional<z.ZodString>;
2174
4462
  event_slug: z.ZodOptional<z.ZodString>;
@@ -2209,7 +4497,7 @@ declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
2209
4497
  total_rewards?: DecimalString | undefined;
2210
4498
  }>>>>;
2211
4499
  }, z.core.$strip>, z.ZodTransform<{
2212
- conditionId: CtfConditionId;
4500
+ conditionId: ConditionId;
2213
4501
  marketSlug: string | undefined;
2214
4502
  eventSlug: string | undefined;
2215
4503
  rewardsMaxSpread: number | undefined;
@@ -2230,7 +4518,7 @@ declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
2230
4518
  }[];
2231
4519
  image?: string | undefined;
2232
4520
  }, {
2233
- condition_id: CtfConditionId;
4521
+ condition_id: ConditionId;
2234
4522
  question: string;
2235
4523
  tokens: {
2236
4524
  tokenId: TokenId;
@@ -2257,7 +4545,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
2257
4545
  count: z.ZodNumber;
2258
4546
  next_cursor: z.ZodString;
2259
4547
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
2260
- condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
4548
+ condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
2261
4549
  question: z.ZodString;
2262
4550
  market_slug: z.ZodOptional<z.ZodString>;
2263
4551
  event_slug: z.ZodOptional<z.ZodString>;
@@ -2298,7 +4586,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
2298
4586
  total_rewards?: DecimalString | undefined;
2299
4587
  }>>>>;
2300
4588
  }, z.core.$strip>, z.ZodTransform<{
2301
- conditionId: CtfConditionId;
4589
+ conditionId: ConditionId;
2302
4590
  marketSlug: string | undefined;
2303
4591
  eventSlug: string | undefined;
2304
4592
  rewardsMaxSpread: number | undefined;
@@ -2319,7 +4607,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
2319
4607
  }[];
2320
4608
  image?: string | undefined;
2321
4609
  }, {
2322
- condition_id: CtfConditionId;
4610
+ condition_id: ConditionId;
2323
4611
  question: string;
2324
4612
  tokens: {
2325
4613
  tokenId: TokenId;
@@ -2345,7 +4633,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
2345
4633
  limit: number;
2346
4634
  count: number;
2347
4635
  data: {
2348
- conditionId: CtfConditionId;
4636
+ conditionId: ConditionId;
2349
4637
  marketSlug: string | undefined;
2350
4638
  eventSlug: string | undefined;
2351
4639
  rewardsMaxSpread: number | undefined;
@@ -2371,7 +4659,7 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
2371
4659
  count: number;
2372
4660
  next_cursor: string;
2373
4661
  data: {
2374
- conditionId: CtfConditionId;
4662
+ conditionId: ConditionId;
2375
4663
  marketSlug: string | undefined;
2376
4664
  eventSlug: string | undefined;
2377
4665
  rewardsMaxSpread: number | undefined;
@@ -2395,6 +4683,45 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
2395
4683
  }>>;
2396
4684
  type PaginatedMarketRewards = z.infer<typeof PaginatedMarketRewardsSchema>;
2397
4685
 
4686
+ type ActiveSessionSigner = {
4687
+ address: EvmAddress;
4688
+ scopes: SessionSignerScope[];
4689
+ validUntil: number;
4690
+ };
4691
+ declare const ActiveSessionSignerSchema: z.ZodPipe<z.ZodObject<{
4692
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
4693
+ scopes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<SessionSignerKnownScope | (string & {}), string>>>;
4694
+ valid_until: z.ZodNumber;
4695
+ }, z.core.$strip>, z.ZodTransform<{
4696
+ validUntil: number;
4697
+ address: EvmAddress;
4698
+ scopes: (SessionSignerKnownScope | (string & {}))[];
4699
+ }, {
4700
+ address: EvmAddress;
4701
+ scopes: (SessionSignerKnownScope | (string & {}))[];
4702
+ valid_until: number;
4703
+ }>>;
4704
+ type ActiveSessionSignersResponse = {
4705
+ signers: ActiveSessionSigner[];
4706
+ wallet: EvmAddress;
4707
+ };
4708
+ declare const ActiveSessionSignersResponseSchema: z.ZodObject<{
4709
+ signers: z.ZodArray<z.ZodPipe<z.ZodObject<{
4710
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
4711
+ scopes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<SessionSignerKnownScope | (string & {}), string>>>;
4712
+ valid_until: z.ZodNumber;
4713
+ }, z.core.$strip>, z.ZodTransform<{
4714
+ validUntil: number;
4715
+ address: EvmAddress;
4716
+ scopes: (SessionSignerKnownScope | (string & {}))[];
4717
+ }, {
4718
+ address: EvmAddress;
4719
+ scopes: (SessionSignerKnownScope | (string & {}))[];
4720
+ valid_until: number;
4721
+ }>>>;
4722
+ wallet: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
4723
+ }, z.core.$strip>;
4724
+
2398
4725
  declare const TickSizeSchema: z.ZodPipe<z.ZodObject<{
2399
4726
  minimum_tick_size: z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.005>, z.ZodLiteral<0.0025>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>;
2400
4727
  }, z.core.$strip>, z.ZodTransform<{
@@ -2412,4 +4739,4 @@ declare const FetchTickSizeResponseSchema: z.ZodPipe<z.ZodObject<{
2412
4739
  type TickSize = z.infer<typeof TickSizeSchema>;
2413
4740
  type FetchTickSizeResponse = z.infer<typeof FetchTickSizeResponseSchema>;
2414
4741
 
2415
- export { type AcceptedOrderResponse, AcceptedOrderResponseSchema, type ApiKeyCreds, ApiKeyCredsSchema, type ApiKeysResponse, ApiKeysResponseSchema, AssetType, AssetTypeSchema, type BalanceAllowanceResponse, BalanceAllowanceResponseSchema, type BuilderApiKey, type BuilderApiKeyCreds, BuilderApiKeyCredsSchema, BuilderApiKeySchema, type BuilderApiKeysResponse, BuilderApiKeysResponseSchema, type BuilderFeeRates, BuilderFeeRatesSchema, type BuilderTrade, BuilderTradeSchema, type CancelOrdersResponse, CancelOrdersResponseSchema, type ClobTrade, ClobTradeSchema, type ClobTradesPage, ClobTradesPageSchema, type ClosedOnlyMode, ClosedOnlyModeSchema, type ConditionByToken, ConditionByTokenSchema, type CurrentReward, type CurrentRewardConfig, CurrentRewardSchema, END_CURSOR, EarningSchema, type FetchBuilderFeeRatesResponse, FetchBuilderFeeRatesResponseSchema, type FetchMarketInfoResponse, FetchMarketInfoResponseSchema, type FetchNegRiskResponse, FetchNegRiskResponseSchema, type FetchOrderBookResponse, FetchOrderBookResponseSchema, type FetchTickSizeResponse, FetchTickSizeResponseSchema, type LastTradePrice, type LastTradePriceForToken, type LastTradePriceForTokenResponse, LastTradePriceSchema, type LastTradePrices, LastTradePricesSchema, MakerOrderSchema, type MarketFeeInfo, MarketFeeInfoSchema, type MarketInfo, MarketInfoSchema, type MarketReward, MarketRewardSchema, type MarketToken, MarketTokenSchema, type Midpoint, MidpointSchema, type Midpoints, MidpointsSchema, type NegRisk, NegRiskSchema, type Notification, NotificationSchema, type NotificationsResponse, NotificationsResponseSchema, type OpenOrder, OpenOrderSchema, type OpenOrdersPage, OpenOrdersPageSchema, type OrderBook, type OrderBookHash, OrderBookHashSchema, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, type OrderBooks, OrderBooksSchema, OrderPostStatus, OrderPostStatusSchema, type OrderResponse, OrderResponseErrorCode, OrderResponseErrorCodeSchema, OrderResponseSchema, type OrderResponses, OrderResponsesSchema, type OrderScoringResponse, OrderScoringResponseSchema, type OrdersScoringResponse, OrdersScoringResponseSchema, type PaginatedBuilderTrades, PaginatedBuilderTradesSchema, type PaginatedCurrentRewards, PaginatedCurrentRewardsSchema, type PaginatedMarketRewards, PaginatedMarketRewardsSchema, type Price, type PriceHistory, PriceHistoryInterval, PriceHistoryIntervalSchema, type PriceHistoryPoint, PriceHistorySchema, PriceSchema, type Prices, type PricesBySide, PricesSchema, type RejectedOrderResponse, RejectedOrderResponseSchema, type ResolveConditionByTokenResponse, ResolveConditionByTokenResponseSchema, type RewardConfig, type RewardToken, RewardsConfigSchema, type RewardsPercentages, RewardsPercentagesSchema, type Spread, SpreadSchema, type Spreads, SpreadsSchema, type TickSize, TickSizeSchema, TokenSchema, type TotalUserEarning, TotalUserEarningSchema, type TotalUserEarningsResponse, TotalUserEarningsResponseSchema, type UserEarning, UserEarningSchema, type UserEarningsPage, UserEarningsPageSchema, type UserRewardsEarning, UserRewardsEarningSchema, type UserRewardsEarningsPage, UserRewardsEarningsPageSchema };
4742
+ export { type AcceptedOrderResponse, AcceptedOrderResponseSchema, type ActiveSessionSigner, ActiveSessionSignerSchema, type ActiveSessionSignersResponse, ActiveSessionSignersResponseSchema, type ApiKeyCreds, ApiKeyCredsSchema, type ApiKeysResponse, ApiKeysResponseSchema, AssetType, AssetTypeSchema, type AutoRedeemedNotification, type AutoRedeemedNotificationPayload, AutoRedeemedNotificationPayloadSchema, AutoRedeemedNotificationSchema, type BalanceAllowanceResponse, BalanceAllowanceResponseSchema, type BuilderApiKey, type BuilderApiKeyCreds, BuilderApiKeyCredsSchema, BuilderApiKeySchema, type BuilderApiKeysResponse, BuilderApiKeysResponseSchema, type BuilderFeeRates, BuilderFeeRatesSchema, type BuilderTrade, BuilderTradeSchema, type CancelOrdersResponse, CancelOrdersResponseSchema, type ChildCommentCreatedNotification, ChildCommentCreatedNotificationSchema, type ChildCommentNotificationPayload, ChildCommentNotificationPayloadSchema, type ClobTrade, ClobTradeSchema, type ClobTradesPage, ClobTradesPageSchema, type ClosedOnlyMode, ClosedOnlyModeSchema, type ComboAutoRedeemedNotification, type ComboAutoRedeemedNotificationPayload, ComboAutoRedeemedNotificationPayloadSchema, ComboAutoRedeemedNotificationSchema, type ConditionByToken, ConditionByTokenSchema, type CurrentReward, type CurrentRewardConfig, CurrentRewardSchema, END_CURSOR, EarningSchema, type FetchBuilderFeeRatesResponse, FetchBuilderFeeRatesResponseSchema, type FetchMarketInfoResponse, FetchMarketInfoResponseSchema, type FetchNegRiskResponse, FetchNegRiskResponseSchema, type FetchOrderBookResponse, FetchOrderBookResponseSchema, type FetchTickSizeResponse, FetchTickSizeResponseSchema, type LastTradePrice, type LastTradePriceForToken, type LastTradePriceForTokenResponse, LastTradePriceSchema, type LastTradePrices, LastTradePricesSchema, MakerOrderSchema, type MarketFeeInfo, MarketFeeInfoSchema, type MarketInfo, MarketInfoSchema, type MarketNotificationPayload, MarketNotificationPayloadSchema, type MarketNotificationRewards, MarketNotificationRewardsSchema, type MarketNotificationToken, MarketNotificationTokenSchema, type MarketRegisteredNotification, MarketRegisteredNotificationSchema, type MarketResolvedNotification, MarketResolvedNotificationSchema, type MarketReward, MarketRewardSchema, type MarketToken, MarketTokenSchema, type Midpoint, MidpointSchema, type Midpoints, MidpointsSchema, type NegRisk, NegRiskSchema, type Notification, NotificationSchema, NotificationType, NotificationTypeSchema, type NotificationsResponse, NotificationsResponseSchema, type OpenOrder, OpenOrderSchema, type OpenOrdersPage, OpenOrdersPageSchema, type OrderBook, type OrderBookHash, OrderBookHashSchema, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, type OrderBooks, OrderBooksSchema, type OrderCancellationNotification, OrderCancellationNotificationSchema, type OrderFillFailedNotification, OrderFillFailedNotificationSchema, type OrderFillNotification, OrderFillNotificationSchema, type OrderNotificationPayload, OrderNotificationPayloadSchema, OrderPostStatus, OrderPostStatusSchema, type OrderResponse, OrderResponseErrorCode, OrderResponseErrorCodeSchema, OrderResponseSchema, type OrderResponses, OrderResponsesSchema, type OrderScoringResponse, OrderScoringResponseSchema, type OrdersScoringResponse, OrdersScoringResponseSchema, type PaginatedBuilderTrades, PaginatedBuilderTradesSchema, type PaginatedCurrentRewards, PaginatedCurrentRewardsSchema, type PaginatedMarketRewards, PaginatedMarketRewardsSchema, type Price, type PriceHistory, PriceHistoryInterval, PriceHistoryIntervalSchema, type PriceHistoryPoint, PriceHistorySchema, PriceSchema, type Prices, type PricesBySide, PricesSchema, type RejectedOrderResponse, RejectedOrderResponseSchema, type ResolveConditionByTokenResponse, ResolveConditionByTokenResponseSchema, type RewardConfig, type RewardPayoutNotification, type RewardPayoutNotificationPayload, RewardPayoutNotificationPayloadSchema, RewardPayoutNotificationSchema, type RewardToken, RewardsConfigSchema, type RewardsPercentages, RewardsPercentagesSchema, type Spread, SpreadSchema, type Spreads, SpreadsSchema, type TickSize, TickSizeSchema, TokenSchema, type TotalUserEarning, TotalUserEarningSchema, type TotalUserEarningsResponse, TotalUserEarningsResponseSchema, type UserEarning, UserEarningSchema, type UserEarningsPage, UserEarningsPageSchema, type UserRewardsEarning, UserRewardsEarningSchema, type UserRewardsEarningsPage, UserRewardsEarningsPageSchema, type YieldPayoutNotification, type YieldPayoutNotificationPayload, YieldPayoutNotificationPayloadSchema, YieldPayoutNotificationSchema };