@polymarket/bindings 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import * as _polymarket_types from '@polymarket/types';
2
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';
3
+ import { BaseUnits, TokenId, PositionId, ConditionId, DecimalString, IsoDateTimeString, TradeStatus, ApiKey, OrderSide, OrderId, TickSizeValue, NotificationId, EpochMilliseconds, CommentId, CommentParentEntityType, ImageOptimizationId, ComboConditionId, QuestionId, OrderType, 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,9 +14,12 @@ declare const ClosedOnlyModeSchema: z.ZodPipe<z.ZodObject<{
14
14
  type ClosedOnlyMode = z.infer<typeof ClosedOnlyModeSchema>;
15
15
  type OpenOrder = {
16
16
  id: string;
17
+ /** Exchange asset identifier for a CTF token or Polymarket V2 position. */
18
+ assetId: TokenId | PositionId;
19
+ /** @deprecated Use `assetId`. */
20
+ tokenId: TokenId | PositionId;
17
21
  /** Condition ID for the market associated with this order. */
18
22
  conditionId: ConditionId;
19
- tokenId: TokenId;
20
23
  owner: string;
21
24
  makerAddress: string;
22
25
  side: string;
@@ -31,7 +34,7 @@ type OpenOrder = {
31
34
  expiresAt?: IsoDateTimeString;
32
35
  };
33
36
  declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
34
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
37
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
35
38
  associate_trades: z.ZodArray<z.ZodString>;
36
39
  created_at: 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>>]>;
37
40
  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>>]>;
@@ -48,7 +51,8 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
48
51
  status: z.ZodString;
49
52
  }, z.core.$strip>, z.ZodTransform<{
50
53
  conditionId: ConditionId;
51
- tokenId: TokenId;
54
+ assetId: PositionId | TokenId;
55
+ tokenId: PositionId | TokenId;
52
56
  associateTrades: string[];
53
57
  createdAt: IsoDateTimeString;
54
58
  makerAddress: string;
@@ -64,7 +68,8 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
64
68
  } | {
65
69
  expiresAt: IsoDateTimeString;
66
70
  conditionId: ConditionId;
67
- tokenId: TokenId;
71
+ assetId: PositionId | TokenId;
72
+ tokenId: PositionId | TokenId;
68
73
  associateTrades: string[];
69
74
  createdAt: IsoDateTimeString;
70
75
  makerAddress: string;
@@ -78,7 +83,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
78
83
  side: string;
79
84
  status: string;
80
85
  }, {
81
- asset_id: TokenId;
86
+ asset_id: PositionId | TokenId;
82
87
  associate_trades: string[];
83
88
  created_at: IsoDateTimeString;
84
89
  expiration: IsoDateTimeString | undefined;
@@ -97,7 +102,7 @@ declare const OpenOrderSchema: z.ZodPipe<z.ZodObject<{
97
102
  declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
98
103
  count: z.ZodNumber;
99
104
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
100
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
105
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
101
106
  associate_trades: z.ZodArray<z.ZodString>;
102
107
  created_at: 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>>]>;
103
108
  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>>]>;
@@ -114,7 +119,8 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
114
119
  status: z.ZodString;
115
120
  }, z.core.$strip>, z.ZodTransform<{
116
121
  conditionId: ConditionId;
117
- tokenId: TokenId;
122
+ assetId: PositionId | TokenId;
123
+ tokenId: PositionId | TokenId;
118
124
  associateTrades: string[];
119
125
  createdAt: IsoDateTimeString;
120
126
  makerAddress: string;
@@ -130,7 +136,8 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
130
136
  } | {
131
137
  expiresAt: IsoDateTimeString;
132
138
  conditionId: ConditionId;
133
- tokenId: TokenId;
139
+ assetId: PositionId | TokenId;
140
+ tokenId: PositionId | TokenId;
134
141
  associateTrades: string[];
135
142
  createdAt: IsoDateTimeString;
136
143
  makerAddress: string;
@@ -144,7 +151,7 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
144
151
  side: string;
145
152
  status: string;
146
153
  }, {
147
- asset_id: TokenId;
154
+ asset_id: PositionId | TokenId;
148
155
  associate_trades: string[];
149
156
  created_at: IsoDateTimeString;
150
157
  expiration: IsoDateTimeString | undefined;
@@ -167,7 +174,8 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
167
174
  count: number;
168
175
  data: ({
169
176
  conditionId: ConditionId;
170
- tokenId: TokenId;
177
+ assetId: PositionId | TokenId;
178
+ tokenId: PositionId | TokenId;
171
179
  associateTrades: string[];
172
180
  createdAt: IsoDateTimeString;
173
181
  makerAddress: string;
@@ -183,7 +191,8 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
183
191
  } | {
184
192
  expiresAt: IsoDateTimeString;
185
193
  conditionId: ConditionId;
186
- tokenId: TokenId;
194
+ assetId: PositionId | TokenId;
195
+ tokenId: PositionId | TokenId;
187
196
  associateTrades: string[];
188
197
  createdAt: IsoDateTimeString;
189
198
  makerAddress: string;
@@ -202,7 +211,8 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
202
211
  count: number;
203
212
  data: ({
204
213
  conditionId: ConditionId;
205
- tokenId: TokenId;
214
+ assetId: PositionId | TokenId;
215
+ tokenId: PositionId | TokenId;
206
216
  associateTrades: string[];
207
217
  createdAt: IsoDateTimeString;
208
218
  makerAddress: string;
@@ -218,7 +228,8 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
218
228
  } | {
219
229
  expiresAt: IsoDateTimeString;
220
230
  conditionId: ConditionId;
221
- tokenId: TokenId;
231
+ assetId: PositionId | TokenId;
232
+ tokenId: PositionId | TokenId;
222
233
  associateTrades: string[];
223
234
  createdAt: IsoDateTimeString;
224
235
  makerAddress: string;
@@ -236,18 +247,10 @@ declare const OpenOrdersPageSchema: z.ZodPipe<z.ZodObject<{
236
247
  next_cursor: string;
237
248
  }>>;
238
249
  type OpenOrdersPage = z.infer<typeof OpenOrdersPageSchema>;
239
- declare const MakerOrderSchema: z.ZodPipe<z.ZodObject<{
240
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
241
- fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
242
- maker_address: z.ZodString;
243
- matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
244
- order_id: z.ZodString;
245
- outcome: z.ZodString;
246
- owner: z.ZodString;
247
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
248
- side: z.ZodString;
249
- }, z.core.$strip>, z.ZodTransform<{
250
- tokenId: TokenId;
250
+ type MakerOrder = {
251
+ assetId: TokenId | PositionId;
252
+ /** @deprecated Use `assetId`. */
253
+ tokenId: TokenId | PositionId;
251
254
  feeRateBps: DecimalString | null;
252
255
  makerAddress: string;
253
256
  matchedAmount: DecimalString;
@@ -256,23 +259,15 @@ declare const MakerOrderSchema: z.ZodPipe<z.ZodObject<{
256
259
  owner: string;
257
260
  price: DecimalString;
258
261
  side: string;
259
- }, {
260
- asset_id: TokenId;
261
- fee_rate_bps: DecimalString | null;
262
- maker_address: string;
263
- matched_amount: DecimalString;
264
- order_id: string;
265
- outcome: string;
266
- owner: string;
267
- price: DecimalString;
268
- side: string;
269
- }>>;
270
- type MakerOrder = z.output<typeof MakerOrderSchema>;
262
+ };
271
263
  type ClobTrade = {
272
264
  id: string;
265
+ /** Exchange asset identifier for a CTF token or Polymarket V2 position. */
266
+ assetId: TokenId | PositionId;
267
+ /** @deprecated Use `assetId`. */
268
+ tokenId: TokenId | PositionId;
273
269
  /** Condition ID for the market associated with this trade. */
274
270
  conditionId: ConditionId;
275
- tokenId: TokenId;
276
271
  owner: string;
277
272
  makerAddress: string;
278
273
  takerOrderId: string;
@@ -290,14 +285,14 @@ type ClobTrade = {
290
285
  updatedAt: IsoDateTimeString;
291
286
  };
292
287
  declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
293
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
288
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
294
289
  bucket_index: z.ZodNumber;
295
290
  fee_rate_bps: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
296
291
  id: z.ZodString;
297
292
  last_update: 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>>]>;
298
293
  maker_address: z.ZodString;
299
294
  maker_orders: z.ZodArray<z.ZodPipe<z.ZodObject<{
300
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
295
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
301
296
  fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
302
297
  maker_address: z.ZodString;
303
298
  matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -307,7 +302,8 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
307
302
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
308
303
  side: z.ZodString;
309
304
  }, z.core.$strip>, z.ZodTransform<{
310
- tokenId: TokenId;
305
+ assetId: PositionId | TokenId;
306
+ tokenId: PositionId | TokenId;
311
307
  feeRateBps: DecimalString | null;
312
308
  makerAddress: string;
313
309
  matchedAmount: DecimalString;
@@ -317,7 +313,7 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
317
313
  price: DecimalString;
318
314
  side: string;
319
315
  }, {
320
- asset_id: TokenId;
316
+ asset_id: PositionId | TokenId;
321
317
  fee_rate_bps: DecimalString | null;
322
318
  maker_address: string;
323
319
  matched_amount: DecimalString;
@@ -343,13 +339,15 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
343
339
  transaction_hash: z.ZodString;
344
340
  }, z.core.$strip>, z.ZodTransform<{
345
341
  conditionId: ConditionId;
346
- tokenId: TokenId;
342
+ assetId: PositionId | TokenId;
343
+ tokenId: PositionId | TokenId;
347
344
  bucketIndex: number;
348
345
  feeRateBps: DecimalString;
349
346
  updatedAt: IsoDateTimeString;
350
347
  makerAddress: string;
351
348
  makerOrders: {
352
- tokenId: TokenId;
349
+ assetId: PositionId | TokenId;
350
+ tokenId: PositionId | TokenId;
353
351
  feeRateBps: DecimalString | null;
354
352
  makerAddress: string;
355
353
  matchedAmount: DecimalString;
@@ -371,14 +369,15 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
371
369
  size: DecimalString;
372
370
  status: TradeStatus;
373
371
  }, {
374
- asset_id: TokenId;
372
+ asset_id: PositionId | TokenId;
375
373
  bucket_index: number;
376
374
  fee_rate_bps: DecimalString;
377
375
  id: string;
378
376
  last_update: IsoDateTimeString;
379
377
  maker_address: string;
380
378
  maker_orders: {
381
- tokenId: TokenId;
379
+ assetId: PositionId | TokenId;
380
+ tokenId: PositionId | TokenId;
382
381
  feeRateBps: DecimalString | null;
383
382
  makerAddress: string;
384
383
  matchedAmount: DecimalString;
@@ -403,14 +402,14 @@ declare const ClobTradeSchema: z.ZodPipe<z.ZodObject<{
403
402
  declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
404
403
  count: z.ZodNumber;
405
404
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
406
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
405
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
407
406
  bucket_index: z.ZodNumber;
408
407
  fee_rate_bps: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
409
408
  id: z.ZodString;
410
409
  last_update: 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>>]>;
411
410
  maker_address: z.ZodString;
412
411
  maker_orders: z.ZodArray<z.ZodPipe<z.ZodObject<{
413
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
412
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
414
413
  fee_rate_bps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
415
414
  maker_address: z.ZodString;
416
415
  matched_amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -420,7 +419,8 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
420
419
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
421
420
  side: z.ZodString;
422
421
  }, z.core.$strip>, z.ZodTransform<{
423
- tokenId: TokenId;
422
+ assetId: PositionId | TokenId;
423
+ tokenId: PositionId | TokenId;
424
424
  feeRateBps: DecimalString | null;
425
425
  makerAddress: string;
426
426
  matchedAmount: DecimalString;
@@ -430,7 +430,7 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
430
430
  price: DecimalString;
431
431
  side: string;
432
432
  }, {
433
- asset_id: TokenId;
433
+ asset_id: PositionId | TokenId;
434
434
  fee_rate_bps: DecimalString | null;
435
435
  maker_address: string;
436
436
  matched_amount: DecimalString;
@@ -456,13 +456,15 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
456
456
  transaction_hash: z.ZodString;
457
457
  }, z.core.$strip>, z.ZodTransform<{
458
458
  conditionId: ConditionId;
459
- tokenId: TokenId;
459
+ assetId: PositionId | TokenId;
460
+ tokenId: PositionId | TokenId;
460
461
  bucketIndex: number;
461
462
  feeRateBps: DecimalString;
462
463
  updatedAt: IsoDateTimeString;
463
464
  makerAddress: string;
464
465
  makerOrders: {
465
- tokenId: TokenId;
466
+ assetId: PositionId | TokenId;
467
+ tokenId: PositionId | TokenId;
466
468
  feeRateBps: DecimalString | null;
467
469
  makerAddress: string;
468
470
  matchedAmount: DecimalString;
@@ -484,14 +486,15 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
484
486
  size: DecimalString;
485
487
  status: TradeStatus;
486
488
  }, {
487
- asset_id: TokenId;
489
+ asset_id: PositionId | TokenId;
488
490
  bucket_index: number;
489
491
  fee_rate_bps: DecimalString;
490
492
  id: string;
491
493
  last_update: IsoDateTimeString;
492
494
  maker_address: string;
493
495
  maker_orders: {
494
- tokenId: TokenId;
496
+ assetId: PositionId | TokenId;
497
+ tokenId: PositionId | TokenId;
495
498
  feeRateBps: DecimalString | null;
496
499
  makerAddress: string;
497
500
  matchedAmount: DecimalString;
@@ -520,13 +523,15 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
520
523
  count: number;
521
524
  data: {
522
525
  conditionId: ConditionId;
523
- tokenId: TokenId;
526
+ assetId: PositionId | TokenId;
527
+ tokenId: PositionId | TokenId;
524
528
  bucketIndex: number;
525
529
  feeRateBps: DecimalString;
526
530
  updatedAt: IsoDateTimeString;
527
531
  makerAddress: string;
528
532
  makerOrders: {
529
- tokenId: TokenId;
533
+ assetId: PositionId | TokenId;
534
+ tokenId: PositionId | TokenId;
530
535
  feeRateBps: DecimalString | null;
531
536
  makerAddress: string;
532
537
  matchedAmount: DecimalString;
@@ -553,13 +558,15 @@ declare const ClobTradesPageSchema: z.ZodPipe<z.ZodObject<{
553
558
  count: number;
554
559
  data: {
555
560
  conditionId: ConditionId;
556
- tokenId: TokenId;
561
+ assetId: PositionId | TokenId;
562
+ tokenId: PositionId | TokenId;
557
563
  bucketIndex: number;
558
564
  feeRateBps: DecimalString;
559
565
  updatedAt: IsoDateTimeString;
560
566
  makerAddress: string;
561
567
  makerOrders: {
562
- tokenId: TokenId;
568
+ assetId: PositionId | TokenId;
569
+ tokenId: PositionId | TokenId;
563
570
  feeRateBps: DecimalString | null;
564
571
  makerAddress: string;
565
572
  matchedAmount: DecimalString;
@@ -721,16 +728,24 @@ type RewardsPercentages = z.infer<typeof RewardsPercentagesSchema>;
721
728
  declare const TokenSchema: z.ZodPipe<z.ZodObject<{
722
729
  outcome: z.ZodString;
723
730
  price: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
724
- token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
731
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
725
732
  }, z.core.$strip>, z.ZodTransform<{
726
- tokenId: TokenId;
733
+ assetId: PositionId | TokenId;
734
+ tokenId: PositionId | TokenId;
727
735
  outcome: string;
728
736
  price: DecimalString;
729
737
  }, {
730
738
  outcome: string;
731
739
  price: DecimalString;
732
- token_id: TokenId;
740
+ token_id: PositionId | TokenId;
733
741
  }>>;
742
+ type RewardMarketToken = {
743
+ assetId: TokenId | PositionId;
744
+ /** @deprecated Use `assetId`. */
745
+ tokenId: TokenId | PositionId;
746
+ outcome: string;
747
+ price: DecimalString;
748
+ };
734
749
  declare const RewardsConfigSchema: z.ZodPipe<z.ZodObject<{
735
750
  asset_address: z.ZodString;
736
751
  end_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>>]>;
@@ -809,15 +824,16 @@ declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
809
824
  tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
810
825
  outcome: z.ZodString;
811
826
  price: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
812
- token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
827
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
813
828
  }, z.core.$strip>, z.ZodTransform<{
814
- tokenId: TokenId;
829
+ assetId: PositionId | TokenId;
830
+ tokenId: PositionId | TokenId;
815
831
  outcome: string;
816
832
  price: DecimalString;
817
833
  }, {
818
834
  outcome: string;
819
835
  price: DecimalString;
820
- token_id: TokenId;
836
+ token_id: PositionId | TokenId;
821
837
  }>>>;
822
838
  }, z.core.$strip>, z.ZodTransform<{
823
839
  conditionId: ConditionId;
@@ -843,7 +859,8 @@ declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
843
859
  image: string;
844
860
  question: string;
845
861
  tokens: {
846
- tokenId: TokenId;
862
+ assetId: PositionId | TokenId;
863
+ tokenId: PositionId | TokenId;
847
864
  outcome: string;
848
865
  price: DecimalString;
849
866
  }[];
@@ -871,12 +888,37 @@ declare const UserRewardsEarningSchema: z.ZodPipe<z.ZodObject<{
871
888
  rewards_max_spread: number;
872
889
  rewards_min_size: DecimalString;
873
890
  tokens: {
874
- tokenId: TokenId;
891
+ assetId: PositionId | TokenId;
892
+ tokenId: PositionId | TokenId;
875
893
  outcome: string;
876
894
  price: DecimalString;
877
895
  }[];
878
896
  }>>;
879
- type UserRewardsEarning = z.infer<typeof UserRewardsEarningSchema>;
897
+ type UserRewardsEarning = {
898
+ conditionId: ConditionId;
899
+ earningPercentage: number;
900
+ earnings: Array<{
901
+ assetAddress: string;
902
+ assetRate: DecimalString;
903
+ earnings: DecimalString;
904
+ }>;
905
+ eventSlug: string;
906
+ image: string;
907
+ makerAddress: string;
908
+ marketCompetitiveness: number;
909
+ marketSlug: string;
910
+ question: string;
911
+ rewardsConfig: Array<{
912
+ assetAddress: string;
913
+ endDate: IsoDateTimeString;
914
+ ratePerDay: DecimalString;
915
+ startDate: IsoDateTimeString;
916
+ totalRewards: DecimalString;
917
+ }>;
918
+ rewardsMaxSpread: number;
919
+ rewardsMinSize: DecimalString;
920
+ tokens: RewardMarketToken[];
921
+ };
880
922
  declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
881
923
  count: z.ZodNumber;
882
924
  data: z.ZodArray<z.ZodPipe<z.ZodObject<{
@@ -925,15 +967,16 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
925
967
  tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
926
968
  outcome: z.ZodString;
927
969
  price: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
928
- token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
970
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
929
971
  }, z.core.$strip>, z.ZodTransform<{
930
- tokenId: TokenId;
972
+ assetId: PositionId | TokenId;
973
+ tokenId: PositionId | TokenId;
931
974
  outcome: string;
932
975
  price: DecimalString;
933
976
  }, {
934
977
  outcome: string;
935
978
  price: DecimalString;
936
- token_id: TokenId;
979
+ token_id: PositionId | TokenId;
937
980
  }>>>;
938
981
  }, z.core.$strip>, z.ZodTransform<{
939
982
  conditionId: ConditionId;
@@ -959,7 +1002,8 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
959
1002
  image: string;
960
1003
  question: string;
961
1004
  tokens: {
962
- tokenId: TokenId;
1005
+ assetId: PositionId | TokenId;
1006
+ tokenId: PositionId | TokenId;
963
1007
  outcome: string;
964
1008
  price: DecimalString;
965
1009
  }[];
@@ -987,7 +1031,8 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
987
1031
  rewards_max_spread: number;
988
1032
  rewards_min_size: DecimalString;
989
1033
  tokens: {
990
- tokenId: TokenId;
1034
+ assetId: PositionId | TokenId;
1035
+ tokenId: PositionId | TokenId;
991
1036
  outcome: string;
992
1037
  price: DecimalString;
993
1038
  }[];
@@ -1021,7 +1066,8 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
1021
1066
  image: string;
1022
1067
  question: string;
1023
1068
  tokens: {
1024
- tokenId: TokenId;
1069
+ assetId: PositionId | TokenId;
1070
+ tokenId: PositionId | TokenId;
1025
1071
  outcome: string;
1026
1072
  price: DecimalString;
1027
1073
  }[];
@@ -1053,7 +1099,8 @@ declare const UserRewardsEarningsPageSchema: z.ZodPipe<z.ZodObject<{
1053
1099
  image: string;
1054
1100
  question: string;
1055
1101
  tokens: {
1056
- tokenId: TokenId;
1102
+ assetId: PositionId | TokenId;
1103
+ tokenId: PositionId | TokenId;
1057
1104
  outcome: string;
1058
1105
  price: DecimalString;
1059
1106
  }[];
@@ -1114,12 +1161,15 @@ type BuilderApiKeysResponse = z.infer<typeof BuilderApiKeysResponseSchema>;
1114
1161
 
1115
1162
  type BuilderTrade = {
1116
1163
  id: string;
1164
+ /** Exchange asset identifier for a CTF token or Polymarket V2 position. */
1165
+ assetId: TokenId | PositionId;
1166
+ /** @deprecated Use `assetId`. */
1167
+ tokenId: TokenId | PositionId;
1117
1168
  tradeType: string;
1118
1169
  takerOrderHash: string;
1119
1170
  builder: string;
1120
1171
  /** Condition ID for the market associated with this trade. */
1121
1172
  conditionId: ConditionId;
1122
- tokenId: TokenId;
1123
1173
  side: OrderSide;
1124
1174
  size: DecimalString;
1125
1175
  sizeUsdc: DecimalString;
@@ -1144,7 +1194,7 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
1144
1194
  takerOrderHash: z.ZodString;
1145
1195
  builder: z.ZodString;
1146
1196
  market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1147
- assetId: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1197
+ assetId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
1148
1198
  side: z.ZodEnum<typeof OrderSide>;
1149
1199
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1150
1200
  sizeUsdc: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1164,7 +1214,8 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
1164
1214
  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>>]>>;
1165
1215
  }, z.core.$strip>, z.ZodTransform<{
1166
1216
  conditionId: ConditionId;
1167
- tokenId: TokenId;
1217
+ assetId: PositionId | TokenId;
1218
+ tokenId: PositionId | TokenId;
1168
1219
  errMsg: string | null | undefined;
1169
1220
  matchedAt: IsoDateTimeString;
1170
1221
  id: string;
@@ -1192,7 +1243,7 @@ declare const BuilderTradeSchema: z.ZodPipe<z.ZodObject<{
1192
1243
  takerOrderHash: string;
1193
1244
  builder: string;
1194
1245
  market: ConditionId;
1195
- assetId: TokenId;
1246
+ assetId: PositionId | TokenId;
1196
1247
  side: OrderSide;
1197
1248
  size: DecimalString;
1198
1249
  sizeUsdc: DecimalString;
@@ -1221,7 +1272,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
1221
1272
  takerOrderHash: z.ZodString;
1222
1273
  builder: z.ZodString;
1223
1274
  market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1224
- assetId: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1275
+ assetId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
1225
1276
  side: z.ZodEnum<typeof OrderSide>;
1226
1277
  size: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1227
1278
  sizeUsdc: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1241,7 +1292,8 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
1241
1292
  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>>]>>;
1242
1293
  }, z.core.$strip>, z.ZodTransform<{
1243
1294
  conditionId: ConditionId;
1244
- tokenId: TokenId;
1295
+ assetId: PositionId | TokenId;
1296
+ tokenId: PositionId | TokenId;
1245
1297
  errMsg: string | null | undefined;
1246
1298
  matchedAt: IsoDateTimeString;
1247
1299
  id: string;
@@ -1269,7 +1321,7 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
1269
1321
  takerOrderHash: string;
1270
1322
  builder: string;
1271
1323
  market: ConditionId;
1272
- assetId: TokenId;
1324
+ assetId: PositionId | TokenId;
1273
1325
  side: OrderSide;
1274
1326
  size: DecimalString;
1275
1327
  sizeUsdc: DecimalString;
@@ -1294,7 +1346,8 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
1294
1346
  count: number;
1295
1347
  data: {
1296
1348
  conditionId: ConditionId;
1297
- tokenId: TokenId;
1349
+ assetId: PositionId | TokenId;
1350
+ tokenId: PositionId | TokenId;
1298
1351
  errMsg: string | null | undefined;
1299
1352
  matchedAt: IsoDateTimeString;
1300
1353
  id: string;
@@ -1323,7 +1376,8 @@ declare const PaginatedBuilderTradesSchema: z.ZodPipe<z.ZodObject<{
1323
1376
  next_cursor: string;
1324
1377
  data: {
1325
1378
  conditionId: ConditionId;
1326
- tokenId: TokenId;
1379
+ assetId: PositionId | TokenId;
1380
+ tokenId: PositionId | TokenId;
1327
1381
  errMsg: string | null | undefined;
1328
1382
  matchedAt: IsoDateTimeString;
1329
1383
  id: string;
@@ -1395,7 +1449,7 @@ declare const MidpointSchema: z.ZodObject<{
1395
1449
  mid: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1396
1450
  }, z.core.$strip>;
1397
1451
  type Midpoint = z.infer<typeof MidpointSchema>;
1398
- declare const MidpointsSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
1452
+ declare const MidpointsSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
1399
1453
  type Midpoints = z.infer<typeof MidpointsSchema>;
1400
1454
  declare const PriceSchema: z.ZodObject<{
1401
1455
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1403,13 +1457,13 @@ declare const PriceSchema: z.ZodObject<{
1403
1457
  type Price = z.infer<typeof PriceSchema>;
1404
1458
  declare const PricesBySideSchema: z.ZodRecord<z.ZodEnum<typeof OrderSide> & z.core.$partial, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
1405
1459
  type PricesBySide = z.infer<typeof PricesBySideSchema>;
1406
- declare const PricesSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>, z.ZodRecord<z.ZodEnum<typeof OrderSide> & z.core.$partial, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1460
+ declare const PricesSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>, z.ZodRecord<z.ZodEnum<typeof OrderSide> & z.core.$partial, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
1407
1461
  type Prices = z.infer<typeof PricesSchema>;
1408
1462
  declare const SpreadSchema: z.ZodObject<{
1409
1463
  spread: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1410
1464
  }, z.core.$strip>;
1411
1465
  type Spread = z.infer<typeof SpreadSchema>;
1412
- declare const SpreadsSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
1466
+ declare const SpreadsSchema: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>;
1413
1467
  type Spreads = z.infer<typeof SpreadsSchema>;
1414
1468
  declare const LastTradePriceValueSchema: z.ZodObject<{
1415
1469
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -1426,38 +1480,37 @@ declare const LastTradePriceSchema: z.ZodPipe<z.ZodObject<{
1426
1480
  price: DecimalString;
1427
1481
  side: "" | OrderSide;
1428
1482
  }>>;
1429
- declare const LastTradePriceForTokenResponseSchema: z.ZodPipe<z.ZodObject<{
1430
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1431
- side: z.ZodEnum<typeof OrderSide>;
1432
- token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1433
- }, z.core.$strip>, z.ZodTransform<{
1434
- tokenId: TokenId;
1483
+ type LastTradePriceForAssetResponse = {
1484
+ assetId: TokenId | PositionId;
1485
+ /** @deprecated Use `assetId`. */
1486
+ tokenId: TokenId | PositionId;
1435
1487
  price: DecimalString;
1436
1488
  side: OrderSide;
1437
- }, {
1489
+ };
1490
+ /** @deprecated Use `LastTradePriceForAssetResponse`. */
1491
+ type LastTradePriceForTokenResponse = LastTradePriceForAssetResponse;
1492
+ type LastTradePriceForAsset = {
1493
+ assetId: TokenId | PositionId;
1494
+ /** @deprecated Use `assetId`. */
1495
+ tokenId: TokenId | PositionId;
1438
1496
  price: DecimalString;
1439
1497
  side: OrderSide;
1440
- token_id: TokenId;
1441
- }>>;
1442
- type LastTradePriceForTokenResponse = z.infer<typeof LastTradePriceForTokenResponseSchema>;
1443
- declare const LastTradePriceForTokenSchema: z.ZodObject<{
1444
- tokenId: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1445
- price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1446
- side: z.ZodEnum<typeof OrderSide>;
1447
- }, z.core.$strip>;
1448
- type LastTradePriceForToken = z.infer<typeof LastTradePriceForTokenSchema>;
1498
+ };
1499
+ /** @deprecated Use `LastTradePriceForAsset`. */
1500
+ type LastTradePriceForToken = LastTradePriceForAsset;
1449
1501
  declare const LastTradePricesSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
1450
1502
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1451
1503
  side: z.ZodEnum<typeof OrderSide>;
1452
- token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1504
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
1453
1505
  }, z.core.$strip>, z.ZodTransform<{
1454
- tokenId: TokenId;
1506
+ assetId: PositionId | TokenId;
1507
+ tokenId: PositionId | TokenId;
1455
1508
  price: DecimalString;
1456
1509
  side: OrderSide;
1457
1510
  }, {
1458
1511
  price: DecimalString;
1459
1512
  side: OrderSide;
1460
- token_id: TokenId;
1513
+ token_id: PositionId | TokenId;
1461
1514
  }>>>;
1462
1515
  type LastTradePrices = z.infer<typeof LastTradePricesSchema>;
1463
1516
  declare const PriceHistoryPointSchema: z.ZodObject<{
@@ -1495,13 +1548,14 @@ declare const MarketFeeInfoSchema: z.ZodPipe<z.ZodObject<{
1495
1548
  e: number;
1496
1549
  }>>;
1497
1550
  declare const MarketTokenSchema: z.ZodPipe<z.ZodObject<{
1498
- t: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1551
+ t: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
1499
1552
  o: z.ZodString;
1500
1553
  }, z.core.$strip>, z.ZodTransform<{
1501
- tokenId: TokenId;
1554
+ assetId: PositionId | TokenId;
1555
+ tokenId: PositionId | TokenId;
1502
1556
  outcome: string;
1503
1557
  }, {
1504
- t: TokenId;
1558
+ t: PositionId | TokenId;
1505
1559
  o: string;
1506
1560
  }>>;
1507
1561
  declare const MarketInfoSchema: z.ZodPipe<z.ZodObject<{
@@ -1518,13 +1572,14 @@ declare const MarketInfoSchema: z.ZodPipe<z.ZodObject<{
1518
1572
  mts: 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>]>;
1519
1573
  nr: z.ZodOptional<z.ZodBoolean>;
1520
1574
  t: z.ZodArray<z.ZodPipe<z.ZodObject<{
1521
- t: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1575
+ t: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
1522
1576
  o: z.ZodString;
1523
1577
  }, z.core.$strip>, z.ZodTransform<{
1524
- tokenId: TokenId;
1578
+ assetId: PositionId | TokenId;
1579
+ tokenId: PositionId | TokenId;
1525
1580
  outcome: string;
1526
1581
  }, {
1527
- t: TokenId;
1582
+ t: PositionId | TokenId;
1528
1583
  o: string;
1529
1584
  }>>>;
1530
1585
  }, z.core.$strip>, z.ZodTransform<{
@@ -1535,13 +1590,15 @@ declare const MarketInfoSchema: z.ZodPipe<z.ZodObject<{
1535
1590
  negRisk: boolean;
1536
1591
  tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1537
1592
  tokens: {
1538
- tokenId: TokenId;
1593
+ assetId: PositionId | TokenId;
1594
+ tokenId: PositionId | TokenId;
1539
1595
  outcome: string;
1540
1596
  }[];
1541
1597
  }, {
1542
1598
  mts: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1543
1599
  t: {
1544
- tokenId: TokenId;
1600
+ assetId: PositionId | TokenId;
1601
+ tokenId: PositionId | TokenId;
1545
1602
  outcome: string;
1546
1603
  }[];
1547
1604
  fd?: {
@@ -1564,13 +1621,14 @@ declare const FetchMarketInfoResponseSchema: z.ZodPipe<z.ZodObject<{
1564
1621
  mts: 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>]>;
1565
1622
  nr: z.ZodOptional<z.ZodBoolean>;
1566
1623
  t: z.ZodArray<z.ZodPipe<z.ZodObject<{
1567
- t: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1624
+ t: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
1568
1625
  o: z.ZodString;
1569
1626
  }, z.core.$strip>, z.ZodTransform<{
1570
- tokenId: TokenId;
1627
+ assetId: PositionId | TokenId;
1628
+ tokenId: PositionId | TokenId;
1571
1629
  outcome: string;
1572
1630
  }, {
1573
- t: TokenId;
1631
+ t: PositionId | TokenId;
1574
1632
  o: string;
1575
1633
  }>>>;
1576
1634
  }, z.core.$strip>, z.ZodTransform<{
@@ -1581,13 +1639,15 @@ declare const FetchMarketInfoResponseSchema: z.ZodPipe<z.ZodObject<{
1581
1639
  negRisk: boolean;
1582
1640
  tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1583
1641
  tokens: {
1584
- tokenId: TokenId;
1642
+ assetId: PositionId | TokenId;
1643
+ tokenId: PositionId | TokenId;
1585
1644
  outcome: string;
1586
1645
  }[];
1587
1646
  }, {
1588
1647
  mts: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
1589
1648
  t: {
1590
- tokenId: TokenId;
1649
+ assetId: PositionId | TokenId;
1650
+ tokenId: PositionId | TokenId;
1591
1651
  outcome: string;
1592
1652
  }[];
1593
1653
  fd?: {
@@ -1597,9 +1657,19 @@ declare const FetchMarketInfoResponseSchema: z.ZodPipe<z.ZodObject<{
1597
1657
  nr?: boolean | undefined;
1598
1658
  }>>;
1599
1659
  type MarketFeeInfo = z.infer<typeof MarketFeeInfoSchema>;
1600
- type MarketToken = z.infer<typeof MarketTokenSchema>;
1601
- type MarketInfo = z.infer<typeof MarketInfoSchema>;
1602
- type FetchMarketInfoResponse = z.infer<typeof FetchMarketInfoResponseSchema>;
1660
+ type MarketToken = {
1661
+ assetId: TokenId | PositionId;
1662
+ /** @deprecated Use `assetId`. */
1663
+ tokenId: TokenId | PositionId;
1664
+ outcome: string;
1665
+ };
1666
+ type MarketInfo = {
1667
+ feeInfo: MarketFeeInfo;
1668
+ negRisk: boolean;
1669
+ tickSize: TickSizeValue;
1670
+ tokens: MarketToken[];
1671
+ };
1672
+ type FetchMarketInfoResponse = MarketInfo;
1603
1673
 
1604
1674
  declare const NegRiskSchema: z.ZodPipe<z.ZodObject<{
1605
1675
  neg_risk: z.ZodBoolean;
@@ -1646,7 +1716,7 @@ declare const NotificationTypeSchema: z.ZodEnum<typeof NotificationType>;
1646
1716
  * `orderType`.
1647
1717
  */
1648
1718
  declare const OrderNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1649
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
1719
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
1650
1720
  eventSlug: z.ZodOptional<z.ZodString>;
1651
1721
  icon: z.ZodOptional<z.ZodString>;
1652
1722
  image: z.ZodOptional<z.ZodString>;
@@ -1663,11 +1733,12 @@ declare const OrderNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1663
1733
  seriesSlug: z.ZodOptional<z.ZodString>;
1664
1734
  side: z.ZodEnum<typeof OrderSide>;
1665
1735
  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>>>>;
1736
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
1667
1737
  type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
1668
1738
  }, z.core.$strip>, z.ZodTransform<{
1669
1739
  conditionId: ConditionId;
1670
- tokenId: TokenId;
1740
+ assetId: PositionId | TokenId;
1741
+ tokenId: PositionId | TokenId;
1671
1742
  marketSlug: string | undefined;
1672
1743
  matchedSize: DecimalString;
1673
1744
  orderId: OrderId;
@@ -1676,7 +1747,7 @@ declare const OrderNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1676
1747
  outcomeIndex: number;
1677
1748
  remainingSize: DecimalString;
1678
1749
  tradeId: string | undefined;
1679
- transactionHash: _polymarket_types.TxHash | undefined;
1750
+ transactionHash: TxHash | undefined;
1680
1751
  outcome: string;
1681
1752
  price: DecimalString;
1682
1753
  side: OrderSide;
@@ -1686,7 +1757,7 @@ declare const OrderNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1686
1757
  question?: string | undefined;
1687
1758
  seriesSlug?: string | undefined;
1688
1759
  }, {
1689
- asset_id: TokenId;
1760
+ asset_id: PositionId | TokenId;
1690
1761
  market: ConditionId;
1691
1762
  matched_size: DecimalString;
1692
1763
  order_id: OrderId;
@@ -1703,10 +1774,32 @@ declare const OrderNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1703
1774
  question?: string | undefined;
1704
1775
  seriesSlug?: string | undefined;
1705
1776
  trade_id?: string | undefined;
1706
- transaction_hash?: _polymarket_types.TxHash | undefined;
1777
+ transaction_hash?: TxHash | undefined;
1707
1778
  type?: OrderType | undefined;
1708
1779
  }>>;
1709
- type OrderNotificationPayload = z.infer<typeof OrderNotificationPayloadSchema>;
1780
+ type OrderNotificationPayload = {
1781
+ assetId: TokenId | PositionId;
1782
+ /** @deprecated Use `assetId`. */
1783
+ tokenId: TokenId | PositionId;
1784
+ conditionId: ConditionId;
1785
+ eventSlug?: string;
1786
+ icon?: string;
1787
+ image?: string;
1788
+ marketSlug: string | undefined;
1789
+ matchedSize: DecimalString;
1790
+ orderId: OrderId;
1791
+ orderType: OrderType | undefined;
1792
+ originalSize: DecimalString;
1793
+ outcome: string;
1794
+ outcomeIndex: number;
1795
+ price: DecimalString;
1796
+ question?: string;
1797
+ remainingSize: DecimalString;
1798
+ seriesSlug?: string;
1799
+ side: OrderSide;
1800
+ tradeId: string | undefined;
1801
+ transactionHash: TxHash | undefined;
1802
+ };
1710
1803
  /**
1711
1804
  * One outcome token inside a market lifecycle notification payload. On a
1712
1805
  * market-resolved notification, `winner` marks the winning outcome.
@@ -1714,20 +1807,28 @@ type OrderNotificationPayload = z.infer<typeof OrderNotificationPayloadSchema>;
1714
1807
  declare const MarketNotificationTokenSchema: z.ZodPipe<z.ZodObject<{
1715
1808
  outcome: z.ZodString;
1716
1809
  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>>;
1810
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
1718
1811
  winner: z.ZodBoolean;
1719
1812
  }, z.core.$strip>, z.ZodTransform<{
1720
- tokenId: TokenId;
1813
+ assetId: PositionId | TokenId;
1814
+ tokenId: PositionId | TokenId;
1721
1815
  outcome: string;
1722
1816
  winner: boolean;
1723
1817
  price?: DecimalString | undefined;
1724
1818
  }, {
1725
1819
  outcome: string;
1726
- token_id: TokenId;
1820
+ token_id: PositionId | TokenId;
1727
1821
  winner: boolean;
1728
1822
  price?: DecimalString | undefined;
1729
1823
  }>>;
1730
- type MarketNotificationToken = z.infer<typeof MarketNotificationTokenSchema>;
1824
+ type MarketNotificationToken = {
1825
+ assetId: TokenId | PositionId;
1826
+ /** @deprecated Use `assetId`. */
1827
+ tokenId: TokenId | PositionId;
1828
+ outcome: string;
1829
+ price?: DecimalString;
1830
+ winner: boolean;
1831
+ };
1731
1832
  /** Liquidity-rewards parameters carried on a market lifecycle notification. */
1732
1833
  declare const MarketNotificationRewardsSchema: z.ZodPipe<z.ZodObject<{
1733
1834
  max_spread: z.ZodNumber;
@@ -1825,16 +1926,17 @@ declare const MarketNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1825
1926
  tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
1826
1927
  outcome: z.ZodString;
1827
1928
  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>>;
1929
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
1829
1930
  winner: z.ZodBoolean;
1830
1931
  }, z.core.$strip>, z.ZodTransform<{
1831
- tokenId: TokenId;
1932
+ assetId: PositionId | TokenId;
1933
+ tokenId: PositionId | TokenId;
1832
1934
  outcome: string;
1833
1935
  winner: boolean;
1834
1936
  price?: DecimalString | undefined;
1835
1937
  }, {
1836
1938
  outcome: string;
1837
- token_id: TokenId;
1939
+ token_id: PositionId | TokenId;
1838
1940
  winner: boolean;
1839
1941
  price?: DecimalString | undefined;
1840
1942
  }>>>;
@@ -1865,7 +1967,8 @@ declare const MarketNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1865
1967
  image: string;
1866
1968
  question: string;
1867
1969
  tokens: {
1868
- tokenId: TokenId;
1970
+ assetId: PositionId | TokenId;
1971
+ tokenId: PositionId | TokenId;
1869
1972
  outcome: string;
1870
1973
  winner: boolean;
1871
1974
  price?: DecimalString | undefined;
@@ -1899,7 +2002,8 @@ declare const MarketNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1899
2002
  seconds_delay: number;
1900
2003
  taker_base_fee: number | null;
1901
2004
  tokens: {
1902
- tokenId: TokenId;
2005
+ assetId: PositionId | TokenId;
2006
+ tokenId: PositionId | TokenId;
1903
2007
  outcome: string;
1904
2008
  winner: boolean;
1905
2009
  price?: DecimalString | undefined;
@@ -1925,35 +2029,66 @@ declare const MarketNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1925
2029
  } | undefined;
1926
2030
  tags?: string[] | null | undefined;
1927
2031
  }>>;
1928
- type MarketNotificationPayload = z.infer<typeof MarketNotificationPayloadSchema>;
2032
+ type MarketNotificationPayload = {
2033
+ acceptingOrders: boolean;
2034
+ acceptingOrdersTimestamp: IsoDateTimeString | null | undefined;
2035
+ active: boolean;
2036
+ archived?: boolean;
2037
+ closed: boolean;
2038
+ conditionId: ConditionId;
2039
+ description: string;
2040
+ enableOrderBook: boolean | undefined;
2041
+ endDate: IsoDateTimeString | null | undefined;
2042
+ eventSlug?: string;
2043
+ fpmm: string;
2044
+ gameStartTime: IsoDateTimeString | null | undefined;
2045
+ icon: string;
2046
+ image: string;
2047
+ is5050Outcome: boolean | undefined;
2048
+ makerBaseFee: number | null;
2049
+ marketSlug: string;
2050
+ minimumOrderSize: DecimalString;
2051
+ minimumTickSize: DecimalString;
2052
+ negRisk: boolean | undefined;
2053
+ negRiskMarketId: string | undefined;
2054
+ negRiskRequestId: string | undefined;
2055
+ notificationsEnabled: boolean | undefined;
2056
+ question: string;
2057
+ questionId: QuestionId;
2058
+ rewards?: MarketNotificationRewards;
2059
+ secondsDelay: number;
2060
+ tags?: string[] | null;
2061
+ takerBaseFee: number | null;
2062
+ tokens: MarketNotificationToken[];
2063
+ };
1929
2064
  /** Payload of a liquidity-reward payout notification. */
1930
2065
  declare const RewardPayoutNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1931
2066
  proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
1932
2067
  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>>;
2068
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
1934
2069
  }, z.core.$strip>, z.ZodTransform<{
1935
- transactionHash: _polymarket_types.TxHash;
2070
+ transactionHash: TxHash;
1936
2071
  proxyWallet: _polymarket_types.EvmAddress;
1937
2072
  reward: DecimalString;
1938
2073
  }, {
1939
2074
  proxyWallet: _polymarket_types.EvmAddress;
1940
2075
  reward: DecimalString;
1941
- txnHash: _polymarket_types.TxHash;
2076
+ txnHash: TxHash;
1942
2077
  }>>;
1943
2078
  type RewardPayoutNotificationPayload = z.infer<typeof RewardPayoutNotificationPayloadSchema>;
1944
2079
  /** Payload of a yield payout notification. */
1945
2080
  declare const YieldPayoutNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
1946
2081
  amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1947
2082
  proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
1948
- txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2083
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
1949
2084
  }, z.core.$strip>, z.ZodTransform<{
1950
- transactionHash: _polymarket_types.TxHash;
2085
+ transactionHash: TxHash;
1951
2086
  amount: DecimalString;
1952
2087
  proxyWallet: _polymarket_types.EvmAddress;
1953
2088
  }, {
1954
2089
  amount: DecimalString;
1955
2090
  proxyWallet: _polymarket_types.EvmAddress;
1956
- txnHash: _polymarket_types.TxHash;
2091
+ txnHash: TxHash;
1957
2092
  }>>;
1958
2093
  type YieldPayoutNotificationPayload = z.infer<typeof YieldPayoutNotificationPayloadSchema>;
1959
2094
  /**
@@ -2069,10 +2204,10 @@ declare const AutoRedeemedNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
2069
2204
  proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2070
2205
  question: z.ZodString;
2071
2206
  slug: z.ZodString;
2072
- txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2207
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
2073
2208
  }, z.core.$strip>, z.ZodTransform<{
2074
2209
  marketSlug: string;
2075
- transactionHash: _polymarket_types.TxHash;
2210
+ transactionHash: TxHash;
2076
2211
  amount: DecimalString;
2077
2212
  conditionId: ConditionId;
2078
2213
  image: string;
@@ -2090,7 +2225,7 @@ declare const AutoRedeemedNotificationPayloadSchema: z.ZodPipe<z.ZodObject<{
2090
2225
  proxyWallet: _polymarket_types.EvmAddress;
2091
2226
  question: string;
2092
2227
  slug: string;
2093
- txnHash: _polymarket_types.TxHash;
2228
+ txnHash: TxHash;
2094
2229
  marketUrl?: string | undefined;
2095
2230
  portfolioUrl?: string | undefined;
2096
2231
  position?: string | undefined;
@@ -2108,9 +2243,9 @@ declare const ComboAutoRedeemedNotificationPayloadSchema: z.ZodPipe<z.ZodObject<
2108
2243
  portfolioUrl: z.ZodOptional<z.ZodString>;
2109
2244
  positionId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
2110
2245
  proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2111
- txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2246
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
2112
2247
  }, z.core.$strip>, z.ZodTransform<{
2113
- transactionHash: _polymarket_types.TxHash;
2248
+ transactionHash: TxHash;
2114
2249
  amount: DecimalString;
2115
2250
  conditionId: ComboConditionId;
2116
2251
  legs: number;
@@ -2125,7 +2260,7 @@ declare const ComboAutoRedeemedNotificationPayloadSchema: z.ZodPipe<z.ZodObject<
2125
2260
  outcomeIndex: number;
2126
2261
  positionId: PositionId;
2127
2262
  proxyWallet: _polymarket_types.EvmAddress;
2128
- txnHash: _polymarket_types.TxHash;
2263
+ txnHash: TxHash;
2129
2264
  portfolioUrl?: string | undefined;
2130
2265
  }>>;
2131
2266
  type ComboAutoRedeemedNotificationPayload = z.infer<typeof ComboAutoRedeemedNotificationPayloadSchema>;
@@ -2133,7 +2268,7 @@ declare const OrderCancellationNotificationSchema: z.ZodObject<{
2133
2268
  id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2134
2269
  owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2135
2270
  payload: z.ZodPipe<z.ZodObject<{
2136
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2271
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
2137
2272
  eventSlug: z.ZodOptional<z.ZodString>;
2138
2273
  icon: z.ZodOptional<z.ZodString>;
2139
2274
  image: z.ZodOptional<z.ZodString>;
@@ -2150,11 +2285,12 @@ declare const OrderCancellationNotificationSchema: z.ZodObject<{
2150
2285
  seriesSlug: z.ZodOptional<z.ZodString>;
2151
2286
  side: z.ZodEnum<typeof OrderSide>;
2152
2287
  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>>>>;
2288
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
2154
2289
  type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2155
2290
  }, z.core.$strip>, z.ZodTransform<{
2156
2291
  conditionId: ConditionId;
2157
- tokenId: TokenId;
2292
+ assetId: PositionId | TokenId;
2293
+ tokenId: PositionId | TokenId;
2158
2294
  marketSlug: string | undefined;
2159
2295
  matchedSize: DecimalString;
2160
2296
  orderId: OrderId;
@@ -2163,7 +2299,7 @@ declare const OrderCancellationNotificationSchema: z.ZodObject<{
2163
2299
  outcomeIndex: number;
2164
2300
  remainingSize: DecimalString;
2165
2301
  tradeId: string | undefined;
2166
- transactionHash: _polymarket_types.TxHash | undefined;
2302
+ transactionHash: TxHash | undefined;
2167
2303
  outcome: string;
2168
2304
  price: DecimalString;
2169
2305
  side: OrderSide;
@@ -2173,7 +2309,7 @@ declare const OrderCancellationNotificationSchema: z.ZodObject<{
2173
2309
  question?: string | undefined;
2174
2310
  seriesSlug?: string | undefined;
2175
2311
  }, {
2176
- asset_id: TokenId;
2312
+ asset_id: PositionId | TokenId;
2177
2313
  market: ConditionId;
2178
2314
  matched_size: DecimalString;
2179
2315
  order_id: OrderId;
@@ -2190,7 +2326,7 @@ declare const OrderCancellationNotificationSchema: z.ZodObject<{
2190
2326
  question?: string | undefined;
2191
2327
  seriesSlug?: string | undefined;
2192
2328
  trade_id?: string | undefined;
2193
- transaction_hash?: _polymarket_types.TxHash | undefined;
2329
+ transaction_hash?: TxHash | undefined;
2194
2330
  type?: OrderType | undefined;
2195
2331
  }>>;
2196
2332
  timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
@@ -2201,7 +2337,7 @@ declare const OrderFillNotificationSchema: z.ZodObject<{
2201
2337
  id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2202
2338
  owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2203
2339
  payload: z.ZodPipe<z.ZodObject<{
2204
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2340
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
2205
2341
  eventSlug: z.ZodOptional<z.ZodString>;
2206
2342
  icon: z.ZodOptional<z.ZodString>;
2207
2343
  image: z.ZodOptional<z.ZodString>;
@@ -2218,11 +2354,12 @@ declare const OrderFillNotificationSchema: z.ZodObject<{
2218
2354
  seriesSlug: z.ZodOptional<z.ZodString>;
2219
2355
  side: z.ZodEnum<typeof OrderSide>;
2220
2356
  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>>>>;
2357
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
2222
2358
  type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2223
2359
  }, z.core.$strip>, z.ZodTransform<{
2224
2360
  conditionId: ConditionId;
2225
- tokenId: TokenId;
2361
+ assetId: PositionId | TokenId;
2362
+ tokenId: PositionId | TokenId;
2226
2363
  marketSlug: string | undefined;
2227
2364
  matchedSize: DecimalString;
2228
2365
  orderId: OrderId;
@@ -2231,7 +2368,7 @@ declare const OrderFillNotificationSchema: z.ZodObject<{
2231
2368
  outcomeIndex: number;
2232
2369
  remainingSize: DecimalString;
2233
2370
  tradeId: string | undefined;
2234
- transactionHash: _polymarket_types.TxHash | undefined;
2371
+ transactionHash: TxHash | undefined;
2235
2372
  outcome: string;
2236
2373
  price: DecimalString;
2237
2374
  side: OrderSide;
@@ -2241,7 +2378,7 @@ declare const OrderFillNotificationSchema: z.ZodObject<{
2241
2378
  question?: string | undefined;
2242
2379
  seriesSlug?: string | undefined;
2243
2380
  }, {
2244
- asset_id: TokenId;
2381
+ asset_id: PositionId | TokenId;
2245
2382
  market: ConditionId;
2246
2383
  matched_size: DecimalString;
2247
2384
  order_id: OrderId;
@@ -2258,7 +2395,7 @@ declare const OrderFillNotificationSchema: z.ZodObject<{
2258
2395
  question?: string | undefined;
2259
2396
  seriesSlug?: string | undefined;
2260
2397
  trade_id?: string | undefined;
2261
- transaction_hash?: _polymarket_types.TxHash | undefined;
2398
+ transaction_hash?: TxHash | undefined;
2262
2399
  type?: OrderType | undefined;
2263
2400
  }>>;
2264
2401
  timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
@@ -2328,16 +2465,17 @@ declare const MarketRegisteredNotificationSchema: z.ZodObject<{
2328
2465
  tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
2329
2466
  outcome: z.ZodString;
2330
2467
  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>>;
2468
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
2332
2469
  winner: z.ZodBoolean;
2333
2470
  }, z.core.$strip>, z.ZodTransform<{
2334
- tokenId: TokenId;
2471
+ assetId: PositionId | TokenId;
2472
+ tokenId: PositionId | TokenId;
2335
2473
  outcome: string;
2336
2474
  winner: boolean;
2337
2475
  price?: DecimalString | undefined;
2338
2476
  }, {
2339
2477
  outcome: string;
2340
- token_id: TokenId;
2478
+ token_id: PositionId | TokenId;
2341
2479
  winner: boolean;
2342
2480
  price?: DecimalString | undefined;
2343
2481
  }>>>;
@@ -2368,7 +2506,8 @@ declare const MarketRegisteredNotificationSchema: z.ZodObject<{
2368
2506
  image: string;
2369
2507
  question: string;
2370
2508
  tokens: {
2371
- tokenId: TokenId;
2509
+ assetId: PositionId | TokenId;
2510
+ tokenId: PositionId | TokenId;
2372
2511
  outcome: string;
2373
2512
  winner: boolean;
2374
2513
  price?: DecimalString | undefined;
@@ -2402,7 +2541,8 @@ declare const MarketRegisteredNotificationSchema: z.ZodObject<{
2402
2541
  seconds_delay: number;
2403
2542
  taker_base_fee: number | null;
2404
2543
  tokens: {
2405
- tokenId: TokenId;
2544
+ assetId: PositionId | TokenId;
2545
+ tokenId: PositionId | TokenId;
2406
2546
  outcome: string;
2407
2547
  winner: boolean;
2408
2548
  price?: DecimalString | undefined;
@@ -2495,16 +2635,17 @@ declare const MarketResolvedNotificationSchema: z.ZodObject<{
2495
2635
  tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
2496
2636
  outcome: z.ZodString;
2497
2637
  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>>;
2638
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
2499
2639
  winner: z.ZodBoolean;
2500
2640
  }, z.core.$strip>, z.ZodTransform<{
2501
- tokenId: TokenId;
2641
+ assetId: PositionId | TokenId;
2642
+ tokenId: PositionId | TokenId;
2502
2643
  outcome: string;
2503
2644
  winner: boolean;
2504
2645
  price?: DecimalString | undefined;
2505
2646
  }, {
2506
2647
  outcome: string;
2507
- token_id: TokenId;
2648
+ token_id: PositionId | TokenId;
2508
2649
  winner: boolean;
2509
2650
  price?: DecimalString | undefined;
2510
2651
  }>>>;
@@ -2535,7 +2676,8 @@ declare const MarketResolvedNotificationSchema: z.ZodObject<{
2535
2676
  image: string;
2536
2677
  question: string;
2537
2678
  tokens: {
2538
- tokenId: TokenId;
2679
+ assetId: PositionId | TokenId;
2680
+ tokenId: PositionId | TokenId;
2539
2681
  outcome: string;
2540
2682
  winner: boolean;
2541
2683
  price?: DecimalString | undefined;
@@ -2569,7 +2711,8 @@ declare const MarketResolvedNotificationSchema: z.ZodObject<{
2569
2711
  seconds_delay: number;
2570
2712
  taker_base_fee: number | null;
2571
2713
  tokens: {
2572
- tokenId: TokenId;
2714
+ assetId: PositionId | TokenId;
2715
+ tokenId: PositionId | TokenId;
2573
2716
  outcome: string;
2574
2717
  winner: boolean;
2575
2718
  price?: DecimalString | undefined;
@@ -2605,15 +2748,15 @@ declare const RewardPayoutNotificationSchema: z.ZodObject<{
2605
2748
  payload: z.ZodPipe<z.ZodObject<{
2606
2749
  proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2607
2750
  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>>;
2751
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
2609
2752
  }, z.core.$strip>, z.ZodTransform<{
2610
- transactionHash: _polymarket_types.TxHash;
2753
+ transactionHash: TxHash;
2611
2754
  proxyWallet: _polymarket_types.EvmAddress;
2612
2755
  reward: DecimalString;
2613
2756
  }, {
2614
2757
  proxyWallet: _polymarket_types.EvmAddress;
2615
2758
  reward: DecimalString;
2616
- txnHash: _polymarket_types.TxHash;
2759
+ txnHash: TxHash;
2617
2760
  }>>;
2618
2761
  timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2619
2762
  type: z.ZodLiteral<NotificationType.REWARD_PAYOUT>;
@@ -2725,15 +2868,15 @@ declare const YieldPayoutNotificationSchema: z.ZodObject<{
2725
2868
  payload: z.ZodPipe<z.ZodObject<{
2726
2869
  amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2727
2870
  proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2728
- txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2871
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
2729
2872
  }, z.core.$strip>, z.ZodTransform<{
2730
- transactionHash: _polymarket_types.TxHash;
2873
+ transactionHash: TxHash;
2731
2874
  amount: DecimalString;
2732
2875
  proxyWallet: _polymarket_types.EvmAddress;
2733
2876
  }, {
2734
2877
  amount: DecimalString;
2735
2878
  proxyWallet: _polymarket_types.EvmAddress;
2736
- txnHash: _polymarket_types.TxHash;
2879
+ txnHash: TxHash;
2737
2880
  }>>;
2738
2881
  timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
2739
2882
  type: z.ZodLiteral<NotificationType.YIELD_PAYOUT>;
@@ -2743,7 +2886,7 @@ declare const OrderFillFailedNotificationSchema: z.ZodObject<{
2743
2886
  id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2744
2887
  owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2745
2888
  payload: z.ZodPipe<z.ZodObject<{
2746
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
2889
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
2747
2890
  eventSlug: z.ZodOptional<z.ZodString>;
2748
2891
  icon: z.ZodOptional<z.ZodString>;
2749
2892
  image: z.ZodOptional<z.ZodString>;
@@ -2760,11 +2903,12 @@ declare const OrderFillFailedNotificationSchema: z.ZodObject<{
2760
2903
  seriesSlug: z.ZodOptional<z.ZodString>;
2761
2904
  side: z.ZodEnum<typeof OrderSide>;
2762
2905
  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>>>>;
2906
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
2764
2907
  type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2765
2908
  }, z.core.$strip>, z.ZodTransform<{
2766
2909
  conditionId: ConditionId;
2767
- tokenId: TokenId;
2910
+ assetId: PositionId | TokenId;
2911
+ tokenId: PositionId | TokenId;
2768
2912
  marketSlug: string | undefined;
2769
2913
  matchedSize: DecimalString;
2770
2914
  orderId: OrderId;
@@ -2773,7 +2917,7 @@ declare const OrderFillFailedNotificationSchema: z.ZodObject<{
2773
2917
  outcomeIndex: number;
2774
2918
  remainingSize: DecimalString;
2775
2919
  tradeId: string | undefined;
2776
- transactionHash: _polymarket_types.TxHash | undefined;
2920
+ transactionHash: TxHash | undefined;
2777
2921
  outcome: string;
2778
2922
  price: DecimalString;
2779
2923
  side: OrderSide;
@@ -2783,7 +2927,7 @@ declare const OrderFillFailedNotificationSchema: z.ZodObject<{
2783
2927
  question?: string | undefined;
2784
2928
  seriesSlug?: string | undefined;
2785
2929
  }, {
2786
- asset_id: TokenId;
2930
+ asset_id: PositionId | TokenId;
2787
2931
  market: ConditionId;
2788
2932
  matched_size: DecimalString;
2789
2933
  order_id: OrderId;
@@ -2800,7 +2944,7 @@ declare const OrderFillFailedNotificationSchema: z.ZodObject<{
2800
2944
  question?: string | undefined;
2801
2945
  seriesSlug?: string | undefined;
2802
2946
  trade_id?: string | undefined;
2803
- transaction_hash?: _polymarket_types.TxHash | undefined;
2947
+ transaction_hash?: TxHash | undefined;
2804
2948
  type?: OrderType | undefined;
2805
2949
  }>>;
2806
2950
  timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
@@ -2821,10 +2965,10 @@ declare const AutoRedeemedNotificationSchema: z.ZodObject<{
2821
2965
  proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2822
2966
  question: z.ZodString;
2823
2967
  slug: z.ZodString;
2824
- txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
2968
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
2825
2969
  }, z.core.$strip>, z.ZodTransform<{
2826
2970
  marketSlug: string;
2827
- transactionHash: _polymarket_types.TxHash;
2971
+ transactionHash: TxHash;
2828
2972
  amount: DecimalString;
2829
2973
  conditionId: ConditionId;
2830
2974
  image: string;
@@ -2842,7 +2986,7 @@ declare const AutoRedeemedNotificationSchema: z.ZodObject<{
2842
2986
  proxyWallet: _polymarket_types.EvmAddress;
2843
2987
  question: string;
2844
2988
  slug: string;
2845
- txnHash: _polymarket_types.TxHash;
2989
+ txnHash: TxHash;
2846
2990
  marketUrl?: string | undefined;
2847
2991
  portfolioUrl?: string | undefined;
2848
2992
  position?: string | undefined;
@@ -2862,9 +3006,9 @@ declare const ComboAutoRedeemedNotificationSchema: z.ZodObject<{
2862
3006
  portfolioUrl: z.ZodOptional<z.ZodString>;
2863
3007
  positionId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
2864
3008
  proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2865
- txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
3009
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
2866
3010
  }, z.core.$strip>, z.ZodTransform<{
2867
- transactionHash: _polymarket_types.TxHash;
3011
+ transactionHash: TxHash;
2868
3012
  amount: DecimalString;
2869
3013
  conditionId: ComboConditionId;
2870
3014
  legs: number;
@@ -2879,7 +3023,7 @@ declare const ComboAutoRedeemedNotificationSchema: z.ZodObject<{
2879
3023
  outcomeIndex: number;
2880
3024
  positionId: PositionId;
2881
3025
  proxyWallet: _polymarket_types.EvmAddress;
2882
- txnHash: _polymarket_types.TxHash;
3026
+ txnHash: TxHash;
2883
3027
  portfolioUrl?: string | undefined;
2884
3028
  }>>;
2885
3029
  timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
@@ -2894,7 +3038,7 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2894
3038
  id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2895
3039
  owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2896
3040
  payload: z.ZodPipe<z.ZodObject<{
2897
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
3041
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
2898
3042
  eventSlug: z.ZodOptional<z.ZodString>;
2899
3043
  icon: z.ZodOptional<z.ZodString>;
2900
3044
  image: z.ZodOptional<z.ZodString>;
@@ -2911,11 +3055,12 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2911
3055
  seriesSlug: z.ZodOptional<z.ZodString>;
2912
3056
  side: z.ZodEnum<typeof OrderSide>;
2913
3057
  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>>>>;
3058
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
2915
3059
  type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2916
3060
  }, z.core.$strip>, z.ZodTransform<{
2917
3061
  conditionId: ConditionId;
2918
- tokenId: TokenId;
3062
+ assetId: PositionId | TokenId;
3063
+ tokenId: PositionId | TokenId;
2919
3064
  marketSlug: string | undefined;
2920
3065
  matchedSize: DecimalString;
2921
3066
  orderId: OrderId;
@@ -2924,7 +3069,7 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2924
3069
  outcomeIndex: number;
2925
3070
  remainingSize: DecimalString;
2926
3071
  tradeId: string | undefined;
2927
- transactionHash: _polymarket_types.TxHash | undefined;
3072
+ transactionHash: TxHash | undefined;
2928
3073
  outcome: string;
2929
3074
  price: DecimalString;
2930
3075
  side: OrderSide;
@@ -2934,7 +3079,7 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2934
3079
  question?: string | undefined;
2935
3080
  seriesSlug?: string | undefined;
2936
3081
  }, {
2937
- asset_id: TokenId;
3082
+ asset_id: PositionId | TokenId;
2938
3083
  market: ConditionId;
2939
3084
  matched_size: DecimalString;
2940
3085
  order_id: OrderId;
@@ -2951,7 +3096,7 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2951
3096
  question?: string | undefined;
2952
3097
  seriesSlug?: string | undefined;
2953
3098
  trade_id?: string | undefined;
2954
- transaction_hash?: _polymarket_types.TxHash | undefined;
3099
+ transaction_hash?: TxHash | undefined;
2955
3100
  type?: OrderType | undefined;
2956
3101
  }>>;
2957
3102
  timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
@@ -2960,7 +3105,7 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2960
3105
  id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
2961
3106
  owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
2962
3107
  payload: z.ZodPipe<z.ZodObject<{
2963
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
3108
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
2964
3109
  eventSlug: z.ZodOptional<z.ZodString>;
2965
3110
  icon: z.ZodOptional<z.ZodString>;
2966
3111
  image: z.ZodOptional<z.ZodString>;
@@ -2977,11 +3122,12 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2977
3122
  seriesSlug: z.ZodOptional<z.ZodString>;
2978
3123
  side: z.ZodEnum<typeof OrderSide>;
2979
3124
  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>>>>;
3125
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
2981
3126
  type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
2982
3127
  }, z.core.$strip>, z.ZodTransform<{
2983
3128
  conditionId: ConditionId;
2984
- tokenId: TokenId;
3129
+ assetId: PositionId | TokenId;
3130
+ tokenId: PositionId | TokenId;
2985
3131
  marketSlug: string | undefined;
2986
3132
  matchedSize: DecimalString;
2987
3133
  orderId: OrderId;
@@ -2990,7 +3136,7 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2990
3136
  outcomeIndex: number;
2991
3137
  remainingSize: DecimalString;
2992
3138
  tradeId: string | undefined;
2993
- transactionHash: _polymarket_types.TxHash | undefined;
3139
+ transactionHash: TxHash | undefined;
2994
3140
  outcome: string;
2995
3141
  price: DecimalString;
2996
3142
  side: OrderSide;
@@ -3000,7 +3146,7 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3000
3146
  question?: string | undefined;
3001
3147
  seriesSlug?: string | undefined;
3002
3148
  }, {
3003
- asset_id: TokenId;
3149
+ asset_id: PositionId | TokenId;
3004
3150
  market: ConditionId;
3005
3151
  matched_size: DecimalString;
3006
3152
  order_id: OrderId;
@@ -3017,7 +3163,7 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3017
3163
  question?: string | undefined;
3018
3164
  seriesSlug?: string | undefined;
3019
3165
  trade_id?: string | undefined;
3020
- transaction_hash?: _polymarket_types.TxHash | undefined;
3166
+ transaction_hash?: TxHash | undefined;
3021
3167
  type?: OrderType | undefined;
3022
3168
  }>>;
3023
3169
  timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
@@ -3085,16 +3231,17 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3085
3231
  tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
3086
3232
  outcome: z.ZodString;
3087
3233
  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>>;
3234
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
3089
3235
  winner: z.ZodBoolean;
3090
3236
  }, z.core.$strip>, z.ZodTransform<{
3091
- tokenId: TokenId;
3237
+ assetId: PositionId | TokenId;
3238
+ tokenId: PositionId | TokenId;
3092
3239
  outcome: string;
3093
3240
  winner: boolean;
3094
3241
  price?: DecimalString | undefined;
3095
3242
  }, {
3096
3243
  outcome: string;
3097
- token_id: TokenId;
3244
+ token_id: PositionId | TokenId;
3098
3245
  winner: boolean;
3099
3246
  price?: DecimalString | undefined;
3100
3247
  }>>>;
@@ -3125,7 +3272,8 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3125
3272
  image: string;
3126
3273
  question: string;
3127
3274
  tokens: {
3128
- tokenId: TokenId;
3275
+ assetId: PositionId | TokenId;
3276
+ tokenId: PositionId | TokenId;
3129
3277
  outcome: string;
3130
3278
  winner: boolean;
3131
3279
  price?: DecimalString | undefined;
@@ -3159,7 +3307,8 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3159
3307
  seconds_delay: number;
3160
3308
  taker_base_fee: number | null;
3161
3309
  tokens: {
3162
- tokenId: TokenId;
3310
+ assetId: PositionId | TokenId;
3311
+ tokenId: PositionId | TokenId;
3163
3312
  outcome: string;
3164
3313
  winner: boolean;
3165
3314
  price?: DecimalString | undefined;
@@ -3250,16 +3399,17 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3250
3399
  tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
3251
3400
  outcome: z.ZodString;
3252
3401
  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>>;
3402
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
3254
3403
  winner: z.ZodBoolean;
3255
3404
  }, z.core.$strip>, z.ZodTransform<{
3256
- tokenId: TokenId;
3405
+ assetId: PositionId | TokenId;
3406
+ tokenId: PositionId | TokenId;
3257
3407
  outcome: string;
3258
3408
  winner: boolean;
3259
3409
  price?: DecimalString | undefined;
3260
3410
  }, {
3261
3411
  outcome: string;
3262
- token_id: TokenId;
3412
+ token_id: PositionId | TokenId;
3263
3413
  winner: boolean;
3264
3414
  price?: DecimalString | undefined;
3265
3415
  }>>>;
@@ -3290,7 +3440,8 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3290
3440
  image: string;
3291
3441
  question: string;
3292
3442
  tokens: {
3293
- tokenId: TokenId;
3443
+ assetId: PositionId | TokenId;
3444
+ tokenId: PositionId | TokenId;
3294
3445
  outcome: string;
3295
3446
  winner: boolean;
3296
3447
  price?: DecimalString | undefined;
@@ -3324,7 +3475,8 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3324
3475
  seconds_delay: number;
3325
3476
  taker_base_fee: number | null;
3326
3477
  tokens: {
3327
- tokenId: TokenId;
3478
+ assetId: PositionId | TokenId;
3479
+ tokenId: PositionId | TokenId;
3328
3480
  outcome: string;
3329
3481
  winner: boolean;
3330
3482
  price?: DecimalString | undefined;
@@ -3358,15 +3510,15 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3358
3510
  payload: z.ZodPipe<z.ZodObject<{
3359
3511
  proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
3360
3512
  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>>;
3513
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
3362
3514
  }, z.core.$strip>, z.ZodTransform<{
3363
- transactionHash: _polymarket_types.TxHash;
3515
+ transactionHash: TxHash;
3364
3516
  proxyWallet: _polymarket_types.EvmAddress;
3365
3517
  reward: DecimalString;
3366
3518
  }, {
3367
3519
  proxyWallet: _polymarket_types.EvmAddress;
3368
3520
  reward: DecimalString;
3369
- txnHash: _polymarket_types.TxHash;
3521
+ txnHash: TxHash;
3370
3522
  }>>;
3371
3523
  timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3372
3524
  type: z.ZodLiteral<NotificationType.REWARD_PAYOUT>;
@@ -3474,15 +3626,15 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3474
3626
  payload: z.ZodPipe<z.ZodObject<{
3475
3627
  amount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3476
3628
  proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
3477
- txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
3629
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
3478
3630
  }, z.core.$strip>, z.ZodTransform<{
3479
- transactionHash: _polymarket_types.TxHash;
3631
+ transactionHash: TxHash;
3480
3632
  amount: DecimalString;
3481
3633
  proxyWallet: _polymarket_types.EvmAddress;
3482
3634
  }, {
3483
3635
  amount: DecimalString;
3484
3636
  proxyWallet: _polymarket_types.EvmAddress;
3485
- txnHash: _polymarket_types.TxHash;
3637
+ txnHash: TxHash;
3486
3638
  }>>;
3487
3639
  timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
3488
3640
  type: z.ZodLiteral<NotificationType.YIELD_PAYOUT>;
@@ -3490,7 +3642,7 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3490
3642
  id: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
3491
3643
  owner: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string>>;
3492
3644
  payload: z.ZodPipe<z.ZodObject<{
3493
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
3645
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
3494
3646
  eventSlug: z.ZodOptional<z.ZodString>;
3495
3647
  icon: z.ZodOptional<z.ZodString>;
3496
3648
  image: z.ZodOptional<z.ZodString>;
@@ -3507,11 +3659,12 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3507
3659
  seriesSlug: z.ZodOptional<z.ZodString>;
3508
3660
  side: z.ZodEnum<typeof OrderSide>;
3509
3661
  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>>>>;
3662
+ transaction_hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
3511
3663
  type: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<typeof OrderType>>>;
3512
3664
  }, z.core.$strip>, z.ZodTransform<{
3513
3665
  conditionId: ConditionId;
3514
- tokenId: TokenId;
3666
+ assetId: PositionId | TokenId;
3667
+ tokenId: PositionId | TokenId;
3515
3668
  marketSlug: string | undefined;
3516
3669
  matchedSize: DecimalString;
3517
3670
  orderId: OrderId;
@@ -3520,7 +3673,7 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3520
3673
  outcomeIndex: number;
3521
3674
  remainingSize: DecimalString;
3522
3675
  tradeId: string | undefined;
3523
- transactionHash: _polymarket_types.TxHash | undefined;
3676
+ transactionHash: TxHash | undefined;
3524
3677
  outcome: string;
3525
3678
  price: DecimalString;
3526
3679
  side: OrderSide;
@@ -3530,7 +3683,7 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3530
3683
  question?: string | undefined;
3531
3684
  seriesSlug?: string | undefined;
3532
3685
  }, {
3533
- asset_id: TokenId;
3686
+ asset_id: PositionId | TokenId;
3534
3687
  market: ConditionId;
3535
3688
  matched_size: DecimalString;
3536
3689
  order_id: OrderId;
@@ -3547,7 +3700,7 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3547
3700
  question?: string | undefined;
3548
3701
  seriesSlug?: string | undefined;
3549
3702
  trade_id?: string | undefined;
3550
- transaction_hash?: _polymarket_types.TxHash | undefined;
3703
+ transaction_hash?: TxHash | undefined;
3551
3704
  type?: OrderType | undefined;
3552
3705
  }>>;
3553
3706
  timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
@@ -3566,10 +3719,10 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3566
3719
  proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
3567
3720
  question: z.ZodString;
3568
3721
  slug: z.ZodString;
3569
- txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
3722
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
3570
3723
  }, z.core.$strip>, z.ZodTransform<{
3571
3724
  marketSlug: string;
3572
- transactionHash: _polymarket_types.TxHash;
3725
+ transactionHash: TxHash;
3573
3726
  amount: DecimalString;
3574
3727
  conditionId: ConditionId;
3575
3728
  image: string;
@@ -3587,7 +3740,7 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3587
3740
  proxyWallet: _polymarket_types.EvmAddress;
3588
3741
  question: string;
3589
3742
  slug: string;
3590
- txnHash: _polymarket_types.TxHash;
3743
+ txnHash: TxHash;
3591
3744
  marketUrl?: string | undefined;
3592
3745
  portfolioUrl?: string | undefined;
3593
3746
  position?: string | undefined;
@@ -3605,9 +3758,9 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3605
3758
  portfolioUrl: z.ZodOptional<z.ZodString>;
3606
3759
  positionId: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
3607
3760
  proxyWallet: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
3608
- txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>;
3761
+ txnHash: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
3609
3762
  }, z.core.$strip>, z.ZodTransform<{
3610
- transactionHash: _polymarket_types.TxHash;
3763
+ transactionHash: TxHash;
3611
3764
  amount: DecimalString;
3612
3765
  conditionId: ComboConditionId;
3613
3766
  legs: number;
@@ -3622,7 +3775,7 @@ declare const NotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3622
3775
  outcomeIndex: number;
3623
3776
  positionId: PositionId;
3624
3777
  proxyWallet: _polymarket_types.EvmAddress;
3625
- txnHash: _polymarket_types.TxHash;
3778
+ txnHash: TxHash;
3626
3779
  portfolioUrl?: string | undefined;
3627
3780
  }>>;
3628
3781
  timestamp: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>;
@@ -3638,7 +3791,8 @@ declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z
3638
3791
  owner: ApiKey;
3639
3792
  payload: {
3640
3793
  conditionId: ConditionId;
3641
- tokenId: TokenId;
3794
+ assetId: PositionId | TokenId;
3795
+ tokenId: PositionId | TokenId;
3642
3796
  marketSlug: string | undefined;
3643
3797
  matchedSize: DecimalString;
3644
3798
  orderId: OrderId;
@@ -3647,7 +3801,7 @@ declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z
3647
3801
  outcomeIndex: number;
3648
3802
  remainingSize: DecimalString;
3649
3803
  tradeId: string | undefined;
3650
- transactionHash: _polymarket_types.TxHash | undefined;
3804
+ transactionHash: TxHash | undefined;
3651
3805
  outcome: string;
3652
3806
  price: DecimalString;
3653
3807
  side: OrderSide;
@@ -3664,7 +3818,8 @@ declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z
3664
3818
  owner: ApiKey;
3665
3819
  payload: {
3666
3820
  conditionId: ConditionId;
3667
- tokenId: TokenId;
3821
+ assetId: PositionId | TokenId;
3822
+ tokenId: PositionId | TokenId;
3668
3823
  marketSlug: string | undefined;
3669
3824
  matchedSize: DecimalString;
3670
3825
  orderId: OrderId;
@@ -3673,7 +3828,7 @@ declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z
3673
3828
  outcomeIndex: number;
3674
3829
  remainingSize: DecimalString;
3675
3830
  tradeId: string | undefined;
3676
- transactionHash: _polymarket_types.TxHash | undefined;
3831
+ transactionHash: TxHash | undefined;
3677
3832
  outcome: string;
3678
3833
  price: DecimalString;
3679
3834
  side: OrderSide;
@@ -3715,7 +3870,8 @@ declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z
3715
3870
  image: string;
3716
3871
  question: string;
3717
3872
  tokens: {
3718
- tokenId: TokenId;
3873
+ assetId: PositionId | TokenId;
3874
+ tokenId: PositionId | TokenId;
3719
3875
  outcome: string;
3720
3876
  winner: boolean;
3721
3877
  price?: DecimalString | undefined;
@@ -3764,7 +3920,8 @@ declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z
3764
3920
  image: string;
3765
3921
  question: string;
3766
3922
  tokens: {
3767
- tokenId: TokenId;
3923
+ assetId: PositionId | TokenId;
3924
+ tokenId: PositionId | TokenId;
3768
3925
  outcome: string;
3769
3926
  winner: boolean;
3770
3927
  price?: DecimalString | undefined;
@@ -3787,7 +3944,7 @@ declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z
3787
3944
  id: NotificationId;
3788
3945
  owner: ApiKey;
3789
3946
  payload: {
3790
- transactionHash: _polymarket_types.TxHash;
3947
+ transactionHash: TxHash;
3791
3948
  proxyWallet: _polymarket_types.EvmAddress;
3792
3949
  reward: DecimalString;
3793
3950
  };
@@ -3843,7 +4000,7 @@ declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z
3843
4000
  id: NotificationId;
3844
4001
  owner: ApiKey;
3845
4002
  payload: {
3846
- transactionHash: _polymarket_types.TxHash;
4003
+ transactionHash: TxHash;
3847
4004
  amount: DecimalString;
3848
4005
  proxyWallet: _polymarket_types.EvmAddress;
3849
4006
  };
@@ -3854,7 +4011,8 @@ declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z
3854
4011
  owner: ApiKey;
3855
4012
  payload: {
3856
4013
  conditionId: ConditionId;
3857
- tokenId: TokenId;
4014
+ assetId: PositionId | TokenId;
4015
+ tokenId: PositionId | TokenId;
3858
4016
  marketSlug: string | undefined;
3859
4017
  matchedSize: DecimalString;
3860
4018
  orderId: OrderId;
@@ -3863,7 +4021,7 @@ declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z
3863
4021
  outcomeIndex: number;
3864
4022
  remainingSize: DecimalString;
3865
4023
  tradeId: string | undefined;
3866
- transactionHash: _polymarket_types.TxHash | undefined;
4024
+ transactionHash: TxHash | undefined;
3867
4025
  outcome: string;
3868
4026
  price: DecimalString;
3869
4027
  side: OrderSide;
@@ -3880,7 +4038,7 @@ declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z
3880
4038
  owner: ApiKey;
3881
4039
  payload: {
3882
4040
  marketSlug: string;
3883
- transactionHash: _polymarket_types.TxHash;
4041
+ transactionHash: TxHash;
3884
4042
  amount: DecimalString;
3885
4043
  conditionId: ConditionId;
3886
4044
  image: string;
@@ -3897,7 +4055,7 @@ declare const NotificationsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z
3897
4055
  id: NotificationId;
3898
4056
  owner: ApiKey;
3899
4057
  payload: {
3900
- transactionHash: _polymarket_types.TxHash;
4058
+ transactionHash: TxHash;
3901
4059
  amount: DecimalString;
3902
4060
  conditionId: ComboConditionId;
3903
4061
  legs: number;
@@ -3920,9 +4078,12 @@ type OrderBookHash = string & {
3920
4078
  readonly __tag: 'OrderBookHash';
3921
4079
  };
3922
4080
  type OrderBook = {
4081
+ /** Exchange asset identifier for a CTF token or Polymarket V2 position. */
4082
+ assetId: TokenId | PositionId;
4083
+ /** @deprecated Use `assetId`. */
4084
+ tokenId: TokenId | PositionId;
3923
4085
  /** Condition ID for the market this book belongs to. */
3924
4086
  conditionId: ConditionId;
3925
- tokenId: TokenId;
3926
4087
  timestamp?: EpochMilliseconds | null;
3927
4088
  /** Bid levels in ascending price order, lowest bid first. */
3928
4089
  bids: OrderBookLevel[];
@@ -3941,7 +4102,7 @@ declare const OrderBookLevelSchema: z.ZodObject<{
3941
4102
  declare const OrderBookHashSchema: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
3942
4103
  declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
3943
4104
  market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
3944
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
4105
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
3945
4106
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
3946
4107
  bids: z.ZodArray<z.ZodObject<{
3947
4108
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -3958,7 +4119,8 @@ declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
3958
4119
  hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
3959
4120
  }, z.core.$strip>, z.ZodTransform<{
3960
4121
  conditionId: ConditionId;
3961
- tokenId: TokenId;
4122
+ assetId: PositionId | TokenId;
4123
+ tokenId: PositionId | TokenId;
3962
4124
  minOrderSize: DecimalString;
3963
4125
  tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
3964
4126
  negRisk: boolean;
@@ -3975,7 +4137,7 @@ declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
3975
4137
  timestamp?: EpochMilliseconds | null | undefined;
3976
4138
  }, {
3977
4139
  market: ConditionId;
3978
- asset_id: TokenId;
4140
+ asset_id: PositionId | TokenId;
3979
4141
  bids: {
3980
4142
  price: DecimalString;
3981
4143
  size: DecimalString;
@@ -3993,7 +4155,7 @@ declare const OrderBookSchema: z.ZodPipe<z.ZodObject<{
3993
4155
  }>>;
3994
4156
  declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
3995
4157
  market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
3996
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
4158
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
3997
4159
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
3998
4160
  bids: z.ZodArray<z.ZodObject<{
3999
4161
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -4010,7 +4172,8 @@ declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
4010
4172
  hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
4011
4173
  }, z.core.$strip>, z.ZodTransform<{
4012
4174
  conditionId: ConditionId;
4013
- tokenId: TokenId;
4175
+ assetId: PositionId | TokenId;
4176
+ tokenId: PositionId | TokenId;
4014
4177
  minOrderSize: DecimalString;
4015
4178
  tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
4016
4179
  negRisk: boolean;
@@ -4027,7 +4190,7 @@ declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
4027
4190
  timestamp?: EpochMilliseconds | null | undefined;
4028
4191
  }, {
4029
4192
  market: ConditionId;
4030
- asset_id: TokenId;
4193
+ asset_id: PositionId | TokenId;
4031
4194
  bids: {
4032
4195
  price: DecimalString;
4033
4196
  size: DecimalString;
@@ -4045,7 +4208,7 @@ declare const FetchOrderBookResponseSchema: z.ZodPipe<z.ZodObject<{
4045
4208
  }>>;
4046
4209
  declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4047
4210
  market: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
4048
- asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
4211
+ asset_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
4049
4212
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EpochMilliseconds, string>>>>;
4050
4213
  bids: z.ZodArray<z.ZodObject<{
4051
4214
  price: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
@@ -4062,7 +4225,8 @@ declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4062
4225
  hash: z.ZodPipe<z.ZodString, z.ZodTransform<OrderBookHash, string>>;
4063
4226
  }, z.core.$strip>, z.ZodTransform<{
4064
4227
  conditionId: ConditionId;
4065
- tokenId: TokenId;
4228
+ assetId: PositionId | TokenId;
4229
+ tokenId: PositionId | TokenId;
4066
4230
  minOrderSize: DecimalString;
4067
4231
  tickSize: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001;
4068
4232
  negRisk: boolean;
@@ -4079,7 +4243,7 @@ declare const OrderBooksSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4079
4243
  timestamp?: EpochMilliseconds | null | undefined;
4080
4244
  }, {
4081
4245
  market: ConditionId;
4082
- asset_id: TokenId;
4246
+ asset_id: PositionId | TokenId;
4083
4247
  bids: {
4084
4248
  price: DecimalString;
4085
4249
  size: DecimalString;
@@ -4421,20 +4585,13 @@ declare const PaginatedCurrentRewardsSchema: z.ZodPipe<z.ZodObject<{
4421
4585
  }[];
4422
4586
  }>>;
4423
4587
  type PaginatedCurrentRewards = z.infer<typeof PaginatedCurrentRewardsSchema>;
4424
- declare const RewardTokenSchema: z.ZodPipe<z.ZodObject<{
4425
- token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
4426
- outcome: z.ZodString;
4427
- price: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
4428
- }, z.core.$strip>, z.ZodTransform<{
4429
- tokenId: TokenId;
4588
+ type RewardToken = {
4589
+ assetId: TokenId | PositionId;
4590
+ /** @deprecated Use `assetId`. */
4591
+ tokenId: TokenId | PositionId;
4430
4592
  outcome: string;
4431
4593
  price: DecimalString;
4432
- }, {
4433
- token_id: TokenId;
4434
- outcome: string;
4435
- price: DecimalString;
4436
- }>>;
4437
- type RewardToken = z.infer<typeof RewardTokenSchema>;
4594
+ };
4438
4595
  declare const RewardConfigSchema: z.ZodPipe<z.ZodObject<{
4439
4596
  asset_address: z.ZodString;
4440
4597
  start_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>>]>;
@@ -4465,15 +4622,16 @@ declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
4465
4622
  rewards_min_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
4466
4623
  market_competitiveness: z.ZodOptional<z.ZodNumber>;
4467
4624
  tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
4468
- token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
4625
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
4469
4626
  outcome: z.ZodString;
4470
4627
  price: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
4471
4628
  }, z.core.$strip>, z.ZodTransform<{
4472
- tokenId: TokenId;
4629
+ assetId: PositionId | TokenId;
4630
+ tokenId: PositionId | TokenId;
4473
4631
  outcome: string;
4474
4632
  price: DecimalString;
4475
4633
  }, {
4476
- token_id: TokenId;
4634
+ token_id: PositionId | TokenId;
4477
4635
  outcome: string;
4478
4636
  price: DecimalString;
4479
4637
  }>>>;
@@ -4512,7 +4670,8 @@ declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
4512
4670
  }[] | undefined;
4513
4671
  question: string;
4514
4672
  tokens: {
4515
- tokenId: TokenId;
4673
+ assetId: PositionId | TokenId;
4674
+ tokenId: PositionId | TokenId;
4516
4675
  outcome: string;
4517
4676
  price: DecimalString;
4518
4677
  }[];
@@ -4521,7 +4680,8 @@ declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
4521
4680
  condition_id: ConditionId;
4522
4681
  question: string;
4523
4682
  tokens: {
4524
- tokenId: TokenId;
4683
+ assetId: PositionId | TokenId;
4684
+ tokenId: PositionId | TokenId;
4525
4685
  outcome: string;
4526
4686
  price: DecimalString;
4527
4687
  }[];
@@ -4539,7 +4699,18 @@ declare const MarketRewardSchema: z.ZodPipe<z.ZodObject<{
4539
4699
  totalRewards: DecimalString | undefined;
4540
4700
  }[] | undefined;
4541
4701
  }>>;
4542
- type MarketReward = z.infer<typeof MarketRewardSchema>;
4702
+ type MarketReward = {
4703
+ conditionId: ConditionId;
4704
+ question: string;
4705
+ marketSlug: string | undefined;
4706
+ eventSlug: string | undefined;
4707
+ image?: string;
4708
+ rewardsMaxSpread: number | undefined;
4709
+ rewardsMinSize: DecimalString | undefined;
4710
+ marketCompetitiveness: number | undefined;
4711
+ tokens: RewardToken[];
4712
+ rewardsConfig: RewardConfig[] | undefined;
4713
+ };
4543
4714
  declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
4544
4715
  limit: z.ZodNumber;
4545
4716
  count: z.ZodNumber;
@@ -4554,15 +4725,16 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
4554
4725
  rewards_min_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>;
4555
4726
  market_competitiveness: z.ZodOptional<z.ZodNumber>;
4556
4727
  tokens: z.ZodArray<z.ZodPipe<z.ZodObject<{
4557
- token_id: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>;
4728
+ token_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId | TokenId, string>>;
4558
4729
  outcome: z.ZodString;
4559
4730
  price: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
4560
4731
  }, z.core.$strip>, z.ZodTransform<{
4561
- tokenId: TokenId;
4732
+ assetId: PositionId | TokenId;
4733
+ tokenId: PositionId | TokenId;
4562
4734
  outcome: string;
4563
4735
  price: DecimalString;
4564
4736
  }, {
4565
- token_id: TokenId;
4737
+ token_id: PositionId | TokenId;
4566
4738
  outcome: string;
4567
4739
  price: DecimalString;
4568
4740
  }>>>;
@@ -4601,7 +4773,8 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
4601
4773
  }[] | undefined;
4602
4774
  question: string;
4603
4775
  tokens: {
4604
- tokenId: TokenId;
4776
+ assetId: PositionId | TokenId;
4777
+ tokenId: PositionId | TokenId;
4605
4778
  outcome: string;
4606
4779
  price: DecimalString;
4607
4780
  }[];
@@ -4610,7 +4783,8 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
4610
4783
  condition_id: ConditionId;
4611
4784
  question: string;
4612
4785
  tokens: {
4613
- tokenId: TokenId;
4786
+ assetId: PositionId | TokenId;
4787
+ tokenId: PositionId | TokenId;
4614
4788
  outcome: string;
4615
4789
  price: DecimalString;
4616
4790
  }[];
@@ -4648,7 +4822,8 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
4648
4822
  }[] | undefined;
4649
4823
  question: string;
4650
4824
  tokens: {
4651
- tokenId: TokenId;
4825
+ assetId: PositionId | TokenId;
4826
+ tokenId: PositionId | TokenId;
4652
4827
  outcome: string;
4653
4828
  price: DecimalString;
4654
4829
  }[];
@@ -4674,7 +4849,8 @@ declare const PaginatedMarketRewardsSchema: z.ZodPipe<z.ZodObject<{
4674
4849
  }[] | undefined;
4675
4850
  question: string;
4676
4851
  tokens: {
4677
- tokenId: TokenId;
4852
+ assetId: PositionId | TokenId;
4853
+ tokenId: PositionId | TokenId;
4678
4854
  outcome: string;
4679
4855
  price: DecimalString;
4680
4856
  }[];
@@ -4739,4 +4915,4 @@ declare const FetchTickSizeResponseSchema: z.ZodPipe<z.ZodObject<{
4739
4915
  type TickSize = z.infer<typeof TickSizeSchema>;
4740
4916
  type FetchTickSizeResponse = z.infer<typeof FetchTickSizeResponseSchema>;
4741
4917
 
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 };
4918
+ 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 LastTradePriceForAsset, type LastTradePriceForAssetResponse, type LastTradePriceForToken, type LastTradePriceForTokenResponse, LastTradePriceSchema, type LastTradePrices, LastTradePricesSchema, type MakerOrder, 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 };