@polymarket/bindings 0.5.0 → 0.6.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,5 +1,5 @@
1
1
  export { C as Comment, a as CommentMedia, b as CommentMediaSchema, c as CommentPosition, d as CommentPositionSchema, e as CommentProfile, f as CommentProfileSchema, g as CommentSchema, L as ListCommentsResponse, h as ListCommentsResponseSchema, i as Reaction, j as ReactionSchema, R as ReactionType, k as ReactionTypeSchema } from '../comment-C-jBbhp7.js';
2
- import { CategoryId, IsoDateTimeString, ClobRewardId, CtfConditionId, DecimalString, IsoCalendarDateString, ImageOptimizationId, EventId, InternalUserId, MarketId, TagId, TokenId, TickSizeValue, QuestionId, ResolutionRequestId, PositionId, MixedDateTimeString, PaginationCursor, BestLineId, ChatId, CollectionId, TeamId, SportId, EventExternalPartnerMappingId, PartnerId, SeriesId, EventCreatorId, TemplateId } from '../index.js';
2
+ import { CategoryId, IsoDateTimeString, ClobRewardId, ConditionId, DecimalString, IsoCalendarDateString, ImageOptimizationId, EventId, InternalUserId, MarketId, TagId, TokenId, PositionId, TickSizeValue, QuestionId, ResolutionRequestId, MixedDateTimeString, PaginationCursor, BestLineId, ChatId, CollectionId, TeamId, SportId, EventExternalPartnerMappingId, PartnerId, SeriesId, EventCreatorId, TemplateId } from '../index.js';
3
3
  export { TagIdSchema } from '../index.js';
4
4
  import { z } from 'zod';
5
5
  import * as _polymarket_types from '@polymarket/types';
@@ -54,7 +54,7 @@ declare const TagReferenceSchema: z.ZodObject<{
54
54
  }, z.core.$strip>;
55
55
  declare const RelatedMarketSchema: z.ZodObject<{
56
56
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
57
- conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
57
+ conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodCustom<ConditionId, ConditionId>>>;
58
58
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
59
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
60
  volume: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
@@ -66,7 +66,7 @@ declare const RelatedMarketSchema: z.ZodObject<{
66
66
  }, z.core.$strip>;
67
67
  declare const ClobRewardsSchema: z.ZodObject<{
68
68
  id: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewardId, string>>;
69
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
69
+ conditionId: z.ZodCustom<ConditionId, ConditionId>;
70
70
  assetAddress: z.ZodString;
71
71
  rewardsAmount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
72
72
  rewardsDailyRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
@@ -104,9 +104,18 @@ type MarketState = {
104
104
  endDate?: IsoDateTimeString | null;
105
105
  closedTime?: IsoDateTimeString | null;
106
106
  };
107
+ /**
108
+ * A normalized binary market outcome.
109
+ *
110
+ * `tokenId` and `positionId` are independently nullable: either, neither, or
111
+ * both may be present.
112
+ */
107
113
  type MarketOutcome = {
108
114
  label: string;
115
+ /** CTF token ID for this outcome, or `null` when one is not available. */
109
116
  tokenId: TokenId | null;
117
+ /** Polymarket V2 position ID for this outcome, or `null` when one is not available. */
118
+ positionId: PositionId | null;
110
119
  price: DecimalString | null;
111
120
  };
112
121
  type MarketOutcomes = {
@@ -177,7 +186,7 @@ type MarketTag = {
177
186
  type Market = {
178
187
  id: MarketId;
179
188
  slug?: string | null;
180
- conditionId: CtfConditionId | null;
189
+ conditionId: ConditionId | null;
181
190
  question?: string | null;
182
191
  groupItemTitle?: string | null;
183
192
  description?: string | null;
@@ -194,12 +203,13 @@ type Market = {
194
203
  sports: MarketSportsMetadata;
195
204
  events: MarketEvent[];
196
205
  tags: MarketTag[];
206
+ /** @deprecated Use the position ID on each outcome. */
197
207
  positionIds: PositionId[];
198
208
  };
199
209
  declare const GammaMarketSchema: z.ZodObject<{
200
210
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
201
211
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
202
- conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>>, z.ZodTransform<CtfConditionId | null, CtfConditionId | null | undefined>>;
212
+ conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
203
213
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
214
  twitterCardImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
215
  resolutionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -334,7 +344,7 @@ declare const GammaMarketSchema: z.ZodObject<{
334
344
  categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
335
345
  markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
336
346
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
337
- conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
347
+ conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodCustom<ConditionId, ConditionId>>>;
338
348
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
339
349
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
340
350
  volume: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
@@ -372,7 +382,7 @@ declare const GammaMarketSchema: z.ZodObject<{
372
382
  approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
373
383
  clobRewards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
374
384
  id: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewardId, string>>;
375
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
385
+ conditionId: z.ZodCustom<ConditionId, ConditionId>;
376
386
  assetAddress: z.ZodString;
377
387
  rewardsAmount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
378
388
  rewardsDailyRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
@@ -435,7 +445,7 @@ declare const GammaMarketSchema: z.ZodObject<{
435
445
  declare const MarketSchema: z.ZodPipe<z.ZodObject<{
436
446
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
437
447
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
438
- conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>>, z.ZodTransform<CtfConditionId | null, CtfConditionId | null | undefined>>;
448
+ conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
439
449
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
440
450
  twitterCardImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
441
451
  resolutionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -570,7 +580,7 @@ declare const MarketSchema: z.ZodPipe<z.ZodObject<{
570
580
  categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
571
581
  markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
572
582
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
573
- conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
583
+ conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodCustom<ConditionId, ConditionId>>>;
574
584
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
575
585
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
576
586
  volume: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
@@ -608,7 +618,7 @@ declare const MarketSchema: z.ZodPipe<z.ZodObject<{
608
618
  approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
609
619
  clobRewards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
610
620
  id: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewardId, string>>;
611
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
621
+ conditionId: z.ZodCustom<ConditionId, ConditionId>;
612
622
  assetAddress: z.ZodString;
613
623
  rewardsAmount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
614
624
  rewardsDailyRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
@@ -663,7 +673,7 @@ declare const MarketSchema: z.ZodPipe<z.ZodObject<{
663
673
  }, z.core.$strip>>>;
664
674
  }, z.core.$strip>, z.ZodTransform<Market, {
665
675
  id: MarketId;
666
- conditionId: CtfConditionId | null;
676
+ conditionId: ConditionId | null;
667
677
  outcomes: string[];
668
678
  outcomePrices: DecimalString[];
669
679
  marketMakerAddress: string;
@@ -799,7 +809,7 @@ declare const MarketSchema: z.ZodPipe<z.ZodObject<{
799
809
  categories?: unknown[] | null | undefined;
800
810
  markets?: {
801
811
  id: MarketId;
802
- conditionId?: CtfConditionId | undefined;
812
+ conditionId?: ConditionId | undefined;
803
813
  slug?: string | null | undefined;
804
814
  image?: string | null | undefined;
805
815
  volume?: DecimalString | null | undefined;
@@ -837,7 +847,7 @@ declare const MarketSchema: z.ZodPipe<z.ZodObject<{
837
847
  approved?: boolean | null | undefined;
838
848
  clobRewards?: {
839
849
  id: ClobRewardId;
840
- conditionId: CtfConditionId;
850
+ conditionId: ConditionId;
841
851
  assetAddress: string;
842
852
  rewardsAmount: DecimalString;
843
853
  rewardsDailyRate: DecimalString;
@@ -894,7 +904,7 @@ declare const MarketSchema: z.ZodPipe<z.ZodObject<{
894
904
  declare const ListMarketsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
895
905
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
896
906
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
897
- conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>>, z.ZodTransform<CtfConditionId | null, CtfConditionId | null | undefined>>;
907
+ conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
898
908
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
899
909
  twitterCardImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
900
910
  resolutionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1029,7 +1039,7 @@ declare const ListMarketsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObj
1029
1039
  categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1030
1040
  markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1031
1041
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
1032
- conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
1042
+ conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodCustom<ConditionId, ConditionId>>>;
1033
1043
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1034
1044
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1035
1045
  volume: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
@@ -1067,7 +1077,7 @@ declare const ListMarketsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObj
1067
1077
  approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1068
1078
  clobRewards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1069
1079
  id: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewardId, string>>;
1070
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
1080
+ conditionId: z.ZodCustom<ConditionId, ConditionId>;
1071
1081
  assetAddress: z.ZodString;
1072
1082
  rewardsAmount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1073
1083
  rewardsDailyRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
@@ -1122,7 +1132,7 @@ declare const ListMarketsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObj
1122
1132
  }, z.core.$strip>>>;
1123
1133
  }, z.core.$strip>, z.ZodTransform<Market | null, {
1124
1134
  id: MarketId;
1125
- conditionId: CtfConditionId | null;
1135
+ conditionId: ConditionId | null;
1126
1136
  outcomes: string[];
1127
1137
  outcomePrices: DecimalString[];
1128
1138
  marketMakerAddress: string;
@@ -1258,7 +1268,7 @@ declare const ListMarketsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObj
1258
1268
  categories?: unknown[] | null | undefined;
1259
1269
  markets?: {
1260
1270
  id: MarketId;
1261
- conditionId?: CtfConditionId | undefined;
1271
+ conditionId?: ConditionId | undefined;
1262
1272
  slug?: string | null | undefined;
1263
1273
  image?: string | null | undefined;
1264
1274
  volume?: DecimalString | null | undefined;
@@ -1296,7 +1306,7 @@ declare const ListMarketsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObj
1296
1306
  approved?: boolean | null | undefined;
1297
1307
  clobRewards?: {
1298
1308
  id: ClobRewardId;
1299
- conditionId: CtfConditionId;
1309
+ conditionId: ConditionId;
1300
1310
  assetAddress: string;
1301
1311
  rewardsAmount: DecimalString;
1302
1312
  rewardsDailyRate: DecimalString;
@@ -1354,7 +1364,7 @@ declare const ListMarketsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
1354
1364
  markets: z.ZodArray<z.ZodPipe<z.ZodObject<{
1355
1365
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
1356
1366
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1357
- conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>>, z.ZodTransform<CtfConditionId | null, CtfConditionId | null | undefined>>;
1367
+ conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
1358
1368
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1359
1369
  twitterCardImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1360
1370
  resolutionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1489,7 +1499,7 @@ declare const ListMarketsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
1489
1499
  categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1490
1500
  markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1491
1501
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
1492
- conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
1502
+ conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodCustom<ConditionId, ConditionId>>>;
1493
1503
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1494
1504
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1495
1505
  volume: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
@@ -1527,7 +1537,7 @@ declare const ListMarketsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
1527
1537
  approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1528
1538
  clobRewards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1529
1539
  id: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewardId, string>>;
1530
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
1540
+ conditionId: z.ZodCustom<ConditionId, ConditionId>;
1531
1541
  assetAddress: z.ZodString;
1532
1542
  rewardsAmount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1533
1543
  rewardsDailyRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
@@ -1582,7 +1592,7 @@ declare const ListMarketsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
1582
1592
  }, z.core.$strip>>>;
1583
1593
  }, z.core.$strip>, z.ZodTransform<Market | null, {
1584
1594
  id: MarketId;
1585
- conditionId: CtfConditionId | null;
1595
+ conditionId: ConditionId | null;
1586
1596
  outcomes: string[];
1587
1597
  outcomePrices: DecimalString[];
1588
1598
  marketMakerAddress: string;
@@ -1718,7 +1728,7 @@ declare const ListMarketsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
1718
1728
  categories?: unknown[] | null | undefined;
1719
1729
  markets?: {
1720
1730
  id: MarketId;
1721
- conditionId?: CtfConditionId | undefined;
1731
+ conditionId?: ConditionId | undefined;
1722
1732
  slug?: string | null | undefined;
1723
1733
  image?: string | null | undefined;
1724
1734
  volume?: DecimalString | null | undefined;
@@ -1756,7 +1766,7 @@ declare const ListMarketsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
1756
1766
  approved?: boolean | null | undefined;
1757
1767
  clobRewards?: {
1758
1768
  id: ClobRewardId;
1759
- conditionId: CtfConditionId;
1769
+ conditionId: ConditionId;
1760
1770
  assetAddress: string;
1761
1771
  rewardsAmount: DecimalString;
1762
1772
  rewardsDailyRate: DecimalString;
@@ -2273,7 +2283,7 @@ declare const GammaEventSchema: z.ZodObject<{
2273
2283
  markets: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
2274
2284
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
2275
2285
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2276
- conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>>, z.ZodTransform<CtfConditionId | null, CtfConditionId | null | undefined>>;
2286
+ conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
2277
2287
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2278
2288
  twitterCardImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2279
2289
  resolutionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2408,7 +2418,7 @@ declare const GammaEventSchema: z.ZodObject<{
2408
2418
  categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
2409
2419
  markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2410
2420
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
2411
- conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
2421
+ conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodCustom<ConditionId, ConditionId>>>;
2412
2422
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2413
2423
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2414
2424
  volume: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
@@ -2446,7 +2456,7 @@ declare const GammaEventSchema: z.ZodObject<{
2446
2456
  approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2447
2457
  clobRewards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2448
2458
  id: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewardId, string>>;
2449
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
2459
+ conditionId: z.ZodCustom<ConditionId, ConditionId>;
2450
2460
  assetAddress: z.ZodString;
2451
2461
  rewardsAmount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
2452
2462
  rewardsDailyRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
@@ -2501,7 +2511,7 @@ declare const GammaEventSchema: z.ZodObject<{
2501
2511
  }, z.core.$strip>>>;
2502
2512
  }, z.core.$strip>, z.ZodTransform<Market | null, {
2503
2513
  id: MarketId;
2504
- conditionId: CtfConditionId | null;
2514
+ conditionId: ConditionId | null;
2505
2515
  outcomes: string[];
2506
2516
  outcomePrices: DecimalString[];
2507
2517
  marketMakerAddress: string;
@@ -2637,7 +2647,7 @@ declare const GammaEventSchema: z.ZodObject<{
2637
2647
  categories?: unknown[] | null | undefined;
2638
2648
  markets?: {
2639
2649
  id: MarketId;
2640
- conditionId?: CtfConditionId | undefined;
2650
+ conditionId?: ConditionId | undefined;
2641
2651
  slug?: string | null | undefined;
2642
2652
  image?: string | null | undefined;
2643
2653
  volume?: DecimalString | null | undefined;
@@ -2675,7 +2685,7 @@ declare const GammaEventSchema: z.ZodObject<{
2675
2685
  approved?: boolean | null | undefined;
2676
2686
  clobRewards?: {
2677
2687
  id: ClobRewardId;
2678
- conditionId: CtfConditionId;
2688
+ conditionId: ConditionId;
2679
2689
  assetAddress: string;
2680
2690
  rewardsAmount: DecimalString;
2681
2691
  rewardsDailyRate: DecimalString;
@@ -3043,7 +3053,7 @@ declare const EventSchema: z.ZodPipe<z.ZodObject<{
3043
3053
  markets: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
3044
3054
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
3045
3055
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3046
- conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>>, z.ZodTransform<CtfConditionId | null, CtfConditionId | null | undefined>>;
3056
+ conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
3047
3057
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3048
3058
  twitterCardImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3049
3059
  resolutionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3178,7 +3188,7 @@ declare const EventSchema: z.ZodPipe<z.ZodObject<{
3178
3188
  categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
3179
3189
  markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3180
3190
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
3181
- conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
3191
+ conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodCustom<ConditionId, ConditionId>>>;
3182
3192
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3183
3193
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3184
3194
  volume: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
@@ -3216,7 +3226,7 @@ declare const EventSchema: z.ZodPipe<z.ZodObject<{
3216
3226
  approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3217
3227
  clobRewards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3218
3228
  id: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewardId, string>>;
3219
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
3229
+ conditionId: z.ZodCustom<ConditionId, ConditionId>;
3220
3230
  assetAddress: z.ZodString;
3221
3231
  rewardsAmount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
3222
3232
  rewardsDailyRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
@@ -3271,7 +3281,7 @@ declare const EventSchema: z.ZodPipe<z.ZodObject<{
3271
3281
  }, z.core.$strip>>>;
3272
3282
  }, z.core.$strip>, z.ZodTransform<Market | null, {
3273
3283
  id: MarketId;
3274
- conditionId: CtfConditionId | null;
3284
+ conditionId: ConditionId | null;
3275
3285
  outcomes: string[];
3276
3286
  outcomePrices: DecimalString[];
3277
3287
  marketMakerAddress: string;
@@ -3407,7 +3417,7 @@ declare const EventSchema: z.ZodPipe<z.ZodObject<{
3407
3417
  categories?: unknown[] | null | undefined;
3408
3418
  markets?: {
3409
3419
  id: MarketId;
3410
- conditionId?: CtfConditionId | undefined;
3420
+ conditionId?: ConditionId | undefined;
3411
3421
  slug?: string | null | undefined;
3412
3422
  image?: string | null | undefined;
3413
3423
  volume?: DecimalString | null | undefined;
@@ -3445,7 +3455,7 @@ declare const EventSchema: z.ZodPipe<z.ZodObject<{
3445
3455
  approved?: boolean | null | undefined;
3446
3456
  clobRewards?: {
3447
3457
  id: ClobRewardId;
3448
- conditionId: CtfConditionId;
3458
+ conditionId: ConditionId;
3449
3459
  assetAddress: string;
3450
3460
  rewardsAmount: DecimalString;
3451
3461
  rewardsDailyRate: DecimalString;
@@ -4124,7 +4134,7 @@ declare const ListEventsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4124
4134
  markets: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
4125
4135
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
4126
4136
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4127
- conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>>, z.ZodTransform<CtfConditionId | null, CtfConditionId | null | undefined>>;
4137
+ conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
4128
4138
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4129
4139
  twitterCardImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4130
4140
  resolutionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4259,7 +4269,7 @@ declare const ListEventsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4259
4269
  categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
4260
4270
  markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4261
4271
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
4262
- conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
4272
+ conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodCustom<ConditionId, ConditionId>>>;
4263
4273
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4264
4274
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4265
4275
  volume: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
@@ -4297,7 +4307,7 @@ declare const ListEventsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4297
4307
  approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4298
4308
  clobRewards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4299
4309
  id: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewardId, string>>;
4300
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
4310
+ conditionId: z.ZodCustom<ConditionId, ConditionId>;
4301
4311
  assetAddress: z.ZodString;
4302
4312
  rewardsAmount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
4303
4313
  rewardsDailyRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
@@ -4352,7 +4362,7 @@ declare const ListEventsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4352
4362
  }, z.core.$strip>>>;
4353
4363
  }, z.core.$strip>, z.ZodTransform<Market | null, {
4354
4364
  id: MarketId;
4355
- conditionId: CtfConditionId | null;
4365
+ conditionId: ConditionId | null;
4356
4366
  outcomes: string[];
4357
4367
  outcomePrices: DecimalString[];
4358
4368
  marketMakerAddress: string;
@@ -4488,7 +4498,7 @@ declare const ListEventsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4488
4498
  categories?: unknown[] | null | undefined;
4489
4499
  markets?: {
4490
4500
  id: MarketId;
4491
- conditionId?: CtfConditionId | undefined;
4501
+ conditionId?: ConditionId | undefined;
4492
4502
  slug?: string | null | undefined;
4493
4503
  image?: string | null | undefined;
4494
4504
  volume?: DecimalString | null | undefined;
@@ -4526,7 +4536,7 @@ declare const ListEventsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4526
4536
  approved?: boolean | null | undefined;
4527
4537
  clobRewards?: {
4528
4538
  id: ClobRewardId;
4529
- conditionId: CtfConditionId;
4539
+ conditionId: ConditionId;
4530
4540
  assetAddress: string;
4531
4541
  rewardsAmount: DecimalString;
4532
4542
  rewardsDailyRate: DecimalString;
@@ -5206,7 +5216,7 @@ declare const ListEventsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
5206
5216
  markets: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
5207
5217
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
5208
5218
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5209
- conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>>, z.ZodTransform<CtfConditionId | null, CtfConditionId | null | undefined>>;
5219
+ conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
5210
5220
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5211
5221
  twitterCardImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5212
5222
  resolutionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5341,7 +5351,7 @@ declare const ListEventsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
5341
5351
  categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
5342
5352
  markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
5343
5353
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
5344
- conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
5354
+ conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodCustom<ConditionId, ConditionId>>>;
5345
5355
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5346
5356
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5347
5357
  volume: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
@@ -5379,7 +5389,7 @@ declare const ListEventsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
5379
5389
  approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5380
5390
  clobRewards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
5381
5391
  id: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewardId, string>>;
5382
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
5392
+ conditionId: z.ZodCustom<ConditionId, ConditionId>;
5383
5393
  assetAddress: z.ZodString;
5384
5394
  rewardsAmount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
5385
5395
  rewardsDailyRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
@@ -5434,7 +5444,7 @@ declare const ListEventsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
5434
5444
  }, z.core.$strip>>>;
5435
5445
  }, z.core.$strip>, z.ZodTransform<Market | null, {
5436
5446
  id: MarketId;
5437
- conditionId: CtfConditionId | null;
5447
+ conditionId: ConditionId | null;
5438
5448
  outcomes: string[];
5439
5449
  outcomePrices: DecimalString[];
5440
5450
  marketMakerAddress: string;
@@ -5570,7 +5580,7 @@ declare const ListEventsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
5570
5580
  categories?: unknown[] | null | undefined;
5571
5581
  markets?: {
5572
5582
  id: MarketId;
5573
- conditionId?: CtfConditionId | undefined;
5583
+ conditionId?: ConditionId | undefined;
5574
5584
  slug?: string | null | undefined;
5575
5585
  image?: string | null | undefined;
5576
5586
  volume?: DecimalString | null | undefined;
@@ -5608,7 +5618,7 @@ declare const ListEventsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
5608
5618
  approved?: boolean | null | undefined;
5609
5619
  clobRewards?: {
5610
5620
  id: ClobRewardId;
5611
- conditionId: CtfConditionId;
5621
+ conditionId: ConditionId;
5612
5622
  assetAddress: string;
5613
5623
  rewardsAmount: DecimalString;
5614
5624
  rewardsDailyRate: DecimalString;
@@ -6587,7 +6597,7 @@ declare const PublicSearchResponseSchema: z.ZodObject<{
6587
6597
  markets: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
6588
6598
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
6589
6599
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6590
- conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>>, z.ZodTransform<CtfConditionId | null, CtfConditionId | null | undefined>>;
6600
+ conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
6591
6601
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6592
6602
  twitterCardImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6593
6603
  resolutionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6722,7 +6732,7 @@ declare const PublicSearchResponseSchema: z.ZodObject<{
6722
6732
  categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
6723
6733
  markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
6724
6734
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
6725
- conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
6735
+ conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodCustom<ConditionId, ConditionId>>>;
6726
6736
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6727
6737
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6728
6738
  volume: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
@@ -6760,7 +6770,7 @@ declare const PublicSearchResponseSchema: z.ZodObject<{
6760
6770
  approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6761
6771
  clobRewards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
6762
6772
  id: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewardId, string>>;
6763
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
6773
+ conditionId: z.ZodCustom<ConditionId, ConditionId>;
6764
6774
  assetAddress: z.ZodString;
6765
6775
  rewardsAmount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
6766
6776
  rewardsDailyRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
@@ -6815,7 +6825,7 @@ declare const PublicSearchResponseSchema: z.ZodObject<{
6815
6825
  }, z.core.$strip>>>;
6816
6826
  }, z.core.$strip>, z.ZodTransform<Market | null, {
6817
6827
  id: MarketId;
6818
- conditionId: CtfConditionId | null;
6828
+ conditionId: ConditionId | null;
6819
6829
  outcomes: string[];
6820
6830
  outcomePrices: DecimalString[];
6821
6831
  marketMakerAddress: string;
@@ -6951,7 +6961,7 @@ declare const PublicSearchResponseSchema: z.ZodObject<{
6951
6961
  categories?: unknown[] | null | undefined;
6952
6962
  markets?: {
6953
6963
  id: MarketId;
6954
- conditionId?: CtfConditionId | undefined;
6964
+ conditionId?: ConditionId | undefined;
6955
6965
  slug?: string | null | undefined;
6956
6966
  image?: string | null | undefined;
6957
6967
  volume?: DecimalString | null | undefined;
@@ -6989,7 +6999,7 @@ declare const PublicSearchResponseSchema: z.ZodObject<{
6989
6999
  approved?: boolean | null | undefined;
6990
7000
  clobRewards?: {
6991
7001
  id: ClobRewardId;
6992
- conditionId: CtfConditionId;
7002
+ conditionId: ConditionId;
6993
7003
  assetAddress: string;
6994
7004
  rewardsAmount: DecimalString;
6995
7005
  rewardsDailyRate: DecimalString;
@@ -7856,7 +7866,7 @@ declare const SeriesSchema: z.ZodObject<{
7856
7866
  markets: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
7857
7867
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
7858
7868
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7859
- conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>>, z.ZodTransform<CtfConditionId | null, CtfConditionId | null | undefined>>;
7869
+ conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
7860
7870
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7861
7871
  twitterCardImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7862
7872
  resolutionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7991,7 +8001,7 @@ declare const SeriesSchema: z.ZodObject<{
7991
8001
  categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
7992
8002
  markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
7993
8003
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
7994
- conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
8004
+ conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodCustom<ConditionId, ConditionId>>>;
7995
8005
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7996
8006
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7997
8007
  volume: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
@@ -8029,7 +8039,7 @@ declare const SeriesSchema: z.ZodObject<{
8029
8039
  approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
8030
8040
  clobRewards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
8031
8041
  id: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewardId, string>>;
8032
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
8042
+ conditionId: z.ZodCustom<ConditionId, ConditionId>;
8033
8043
  assetAddress: z.ZodString;
8034
8044
  rewardsAmount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
8035
8045
  rewardsDailyRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
@@ -8084,7 +8094,7 @@ declare const SeriesSchema: z.ZodObject<{
8084
8094
  }, z.core.$strip>>>;
8085
8095
  }, z.core.$strip>, z.ZodTransform<Market | null, {
8086
8096
  id: MarketId;
8087
- conditionId: CtfConditionId | null;
8097
+ conditionId: ConditionId | null;
8088
8098
  outcomes: string[];
8089
8099
  outcomePrices: DecimalString[];
8090
8100
  marketMakerAddress: string;
@@ -8220,7 +8230,7 @@ declare const SeriesSchema: z.ZodObject<{
8220
8230
  categories?: unknown[] | null | undefined;
8221
8231
  markets?: {
8222
8232
  id: MarketId;
8223
- conditionId?: CtfConditionId | undefined;
8233
+ conditionId?: ConditionId | undefined;
8224
8234
  slug?: string | null | undefined;
8225
8235
  image?: string | null | undefined;
8226
8236
  volume?: DecimalString | null | undefined;
@@ -8258,7 +8268,7 @@ declare const SeriesSchema: z.ZodObject<{
8258
8268
  approved?: boolean | null | undefined;
8259
8269
  clobRewards?: {
8260
8270
  id: ClobRewardId;
8261
- conditionId: CtfConditionId;
8271
+ conditionId: ConditionId;
8262
8272
  assetAddress: string;
8263
8273
  rewardsAmount: DecimalString;
8264
8274
  rewardsDailyRate: DecimalString;
@@ -9035,7 +9045,7 @@ declare const ListSeriesResponseSchema: z.ZodArray<z.ZodObject<{
9035
9045
  markets: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
9036
9046
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
9037
9047
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9038
- conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>>, z.ZodTransform<CtfConditionId | null, CtfConditionId | null | undefined>>;
9048
+ conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
9039
9049
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9040
9050
  twitterCardImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9041
9051
  resolutionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -9170,7 +9180,7 @@ declare const ListSeriesResponseSchema: z.ZodArray<z.ZodObject<{
9170
9180
  categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
9171
9181
  markets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
9172
9182
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
9173
- conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
9183
+ conditionId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodCustom<ConditionId, ConditionId>>>;
9174
9184
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9175
9185
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9176
9186
  volume: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>;
@@ -9208,7 +9218,7 @@ declare const ListSeriesResponseSchema: z.ZodArray<z.ZodObject<{
9208
9218
  approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
9209
9219
  clobRewards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
9210
9220
  id: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewardId, string>>;
9211
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
9221
+ conditionId: z.ZodCustom<ConditionId, ConditionId>;
9212
9222
  assetAddress: z.ZodString;
9213
9223
  rewardsAmount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
9214
9224
  rewardsDailyRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
@@ -9263,7 +9273,7 @@ declare const ListSeriesResponseSchema: z.ZodArray<z.ZodObject<{
9263
9273
  }, z.core.$strip>>>;
9264
9274
  }, z.core.$strip>, z.ZodTransform<Market | null, {
9265
9275
  id: MarketId;
9266
- conditionId: CtfConditionId | null;
9276
+ conditionId: ConditionId | null;
9267
9277
  outcomes: string[];
9268
9278
  outcomePrices: DecimalString[];
9269
9279
  marketMakerAddress: string;
@@ -9399,7 +9409,7 @@ declare const ListSeriesResponseSchema: z.ZodArray<z.ZodObject<{
9399
9409
  categories?: unknown[] | null | undefined;
9400
9410
  markets?: {
9401
9411
  id: MarketId;
9402
- conditionId?: CtfConditionId | undefined;
9412
+ conditionId?: ConditionId | undefined;
9403
9413
  slug?: string | null | undefined;
9404
9414
  image?: string | null | undefined;
9405
9415
  volume?: DecimalString | null | undefined;
@@ -9437,7 +9447,7 @@ declare const ListSeriesResponseSchema: z.ZodArray<z.ZodObject<{
9437
9447
  approved?: boolean | null | undefined;
9438
9448
  clobRewards?: {
9439
9449
  id: ClobRewardId;
9440
- conditionId: CtfConditionId;
9450
+ conditionId: ConditionId;
9441
9451
  assetAddress: string;
9442
9452
  rewardsAmount: DecimalString;
9443
9453
  rewardsDailyRate: DecimalString;