@polymarket/bindings 0.1.0-beta.8 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -254,7 +254,7 @@ declare const GammaMarketSchema: z.ZodObject<{
254
254
  questionID: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>>>>, z.ZodTransform<QuestionId | null, QuestionId | null | undefined>>;
255
255
  umaEndDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
256
256
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
257
- orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>>;
257
+ orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<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>]>>>;
258
258
  orderMinSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
259
259
  umaResolutionStatus: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof UmaResolutionStatus>>>>, z.ZodTransform<UmaResolutionStatus | null, UmaResolutionStatus | null | undefined>>;
260
260
  curationOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -490,7 +490,7 @@ declare const MarketSchema: z.ZodPipe<z.ZodObject<{
490
490
  questionID: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>>>>, z.ZodTransform<QuestionId | null, QuestionId | null | undefined>>;
491
491
  umaEndDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
492
492
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
493
- orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>>;
493
+ orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<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>]>>>;
494
494
  orderMinSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
495
495
  umaResolutionStatus: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof UmaResolutionStatus>>>>, z.ZodTransform<UmaResolutionStatus | null, UmaResolutionStatus | null | undefined>>;
496
496
  curationOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -723,7 +723,7 @@ declare const MarketSchema: z.ZodPipe<z.ZodObject<{
723
723
  groupItemThreshold?: DecimalString | null | undefined;
724
724
  umaEndDate?: MixedDateTimeString | null | undefined;
725
725
  enableOrderBook?: boolean | null | undefined;
726
- orderPriceMinTickSize?: 0.1 | 0.01 | 0.001 | 0.0001 | null | undefined;
726
+ orderPriceMinTickSize?: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001 | null | undefined;
727
727
  orderMinSize?: DecimalString | null | undefined;
728
728
  curationOrder?: number | null | undefined;
729
729
  volumeNum?: DecimalString | null | undefined;
@@ -949,7 +949,7 @@ declare const ListMarketsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObj
949
949
  questionID: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>>>>, z.ZodTransform<QuestionId | null, QuestionId | null | undefined>>;
950
950
  umaEndDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
951
951
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
952
- orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>>;
952
+ orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<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>]>>>;
953
953
  orderMinSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
954
954
  umaResolutionStatus: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof UmaResolutionStatus>>>>, z.ZodTransform<UmaResolutionStatus | null, UmaResolutionStatus | null | undefined>>;
955
955
  curationOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1182,7 +1182,7 @@ declare const ListMarketsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObj
1182
1182
  groupItemThreshold?: DecimalString | null | undefined;
1183
1183
  umaEndDate?: MixedDateTimeString | null | undefined;
1184
1184
  enableOrderBook?: boolean | null | undefined;
1185
- orderPriceMinTickSize?: 0.1 | 0.01 | 0.001 | 0.0001 | null | undefined;
1185
+ orderPriceMinTickSize?: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001 | null | undefined;
1186
1186
  orderMinSize?: DecimalString | null | undefined;
1187
1187
  curationOrder?: number | null | undefined;
1188
1188
  volumeNum?: DecimalString | null | undefined;
@@ -1409,7 +1409,7 @@ declare const ListMarketsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
1409
1409
  questionID: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>>>>, z.ZodTransform<QuestionId | null, QuestionId | null | undefined>>;
1410
1410
  umaEndDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
1411
1411
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1412
- orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>>;
1412
+ orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<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>]>>>;
1413
1413
  orderMinSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
1414
1414
  umaResolutionStatus: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof UmaResolutionStatus>>>>, z.ZodTransform<UmaResolutionStatus | null, UmaResolutionStatus | null | undefined>>;
1415
1415
  curationOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1642,7 +1642,7 @@ declare const ListMarketsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
1642
1642
  groupItemThreshold?: DecimalString | null | undefined;
1643
1643
  umaEndDate?: MixedDateTimeString | null | undefined;
1644
1644
  enableOrderBook?: boolean | null | undefined;
1645
- orderPriceMinTickSize?: 0.1 | 0.01 | 0.001 | 0.0001 | null | undefined;
1645
+ orderPriceMinTickSize?: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001 | null | undefined;
1646
1646
  orderMinSize?: DecimalString | null | undefined;
1647
1647
  curationOrder?: number | null | undefined;
1648
1648
  volumeNum?: DecimalString | null | undefined;
@@ -1810,7 +1810,7 @@ declare const ListMarketsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
1810
1810
  rebateRate: DecimalString;
1811
1811
  } | null | undefined;
1812
1812
  }>>>;
1813
- next_cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
1813
+ next_cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
1814
1814
  }, z.core.$strip>, z.ZodTransform<{
1815
1815
  items: Market[];
1816
1816
  nextCursor: PaginationCursor | undefined;
@@ -2328,7 +2328,7 @@ declare const GammaEventSchema: z.ZodObject<{
2328
2328
  questionID: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>>>>, z.ZodTransform<QuestionId | null, QuestionId | null | undefined>>;
2329
2329
  umaEndDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
2330
2330
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2331
- orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>>;
2331
+ orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<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>]>>>;
2332
2332
  orderMinSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
2333
2333
  umaResolutionStatus: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof UmaResolutionStatus>>>>, z.ZodTransform<UmaResolutionStatus | null, UmaResolutionStatus | null | undefined>>;
2334
2334
  curationOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -2561,7 +2561,7 @@ declare const GammaEventSchema: z.ZodObject<{
2561
2561
  groupItemThreshold?: DecimalString | null | undefined;
2562
2562
  umaEndDate?: MixedDateTimeString | null | undefined;
2563
2563
  enableOrderBook?: boolean | null | undefined;
2564
- orderPriceMinTickSize?: 0.1 | 0.01 | 0.001 | 0.0001 | null | undefined;
2564
+ orderPriceMinTickSize?: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001 | null | undefined;
2565
2565
  orderMinSize?: DecimalString | null | undefined;
2566
2566
  curationOrder?: number | null | undefined;
2567
2567
  volumeNum?: DecimalString | null | undefined;
@@ -3098,7 +3098,7 @@ declare const EventSchema: z.ZodPipe<z.ZodObject<{
3098
3098
  questionID: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>>>>, z.ZodTransform<QuestionId | null, QuestionId | null | undefined>>;
3099
3099
  umaEndDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
3100
3100
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3101
- orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>>;
3101
+ orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<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>]>>>;
3102
3102
  orderMinSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
3103
3103
  umaResolutionStatus: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof UmaResolutionStatus>>>>, z.ZodTransform<UmaResolutionStatus | null, UmaResolutionStatus | null | undefined>>;
3104
3104
  curationOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3331,7 +3331,7 @@ declare const EventSchema: z.ZodPipe<z.ZodObject<{
3331
3331
  groupItemThreshold?: DecimalString | null | undefined;
3332
3332
  umaEndDate?: MixedDateTimeString | null | undefined;
3333
3333
  enableOrderBook?: boolean | null | undefined;
3334
- orderPriceMinTickSize?: 0.1 | 0.01 | 0.001 | 0.0001 | null | undefined;
3334
+ orderPriceMinTickSize?: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001 | null | undefined;
3335
3335
  orderMinSize?: DecimalString | null | undefined;
3336
3336
  curationOrder?: number | null | undefined;
3337
3337
  volumeNum?: DecimalString | null | undefined;
@@ -4179,7 +4179,7 @@ declare const ListEventsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4179
4179
  questionID: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>>>>, z.ZodTransform<QuestionId | null, QuestionId | null | undefined>>;
4180
4180
  umaEndDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
4181
4181
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4182
- orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>>;
4182
+ orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<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>]>>>;
4183
4183
  orderMinSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
4184
4184
  umaResolutionStatus: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof UmaResolutionStatus>>>>, z.ZodTransform<UmaResolutionStatus | null, UmaResolutionStatus | null | undefined>>;
4185
4185
  curationOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -4412,7 +4412,7 @@ declare const ListEventsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4412
4412
  groupItemThreshold?: DecimalString | null | undefined;
4413
4413
  umaEndDate?: MixedDateTimeString | null | undefined;
4414
4414
  enableOrderBook?: boolean | null | undefined;
4415
- orderPriceMinTickSize?: 0.1 | 0.01 | 0.001 | 0.0001 | null | undefined;
4415
+ orderPriceMinTickSize?: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001 | null | undefined;
4416
4416
  orderMinSize?: DecimalString | null | undefined;
4417
4417
  curationOrder?: number | null | undefined;
4418
4418
  volumeNum?: DecimalString | null | undefined;
@@ -5261,7 +5261,7 @@ declare const ListEventsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
5261
5261
  questionID: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>>>>, z.ZodTransform<QuestionId | null, QuestionId | null | undefined>>;
5262
5262
  umaEndDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
5263
5263
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5264
- orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>>;
5264
+ orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<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>]>>>;
5265
5265
  orderMinSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
5266
5266
  umaResolutionStatus: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof UmaResolutionStatus>>>>, z.ZodTransform<UmaResolutionStatus | null, UmaResolutionStatus | null | undefined>>;
5267
5267
  curationOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -5494,7 +5494,7 @@ declare const ListEventsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
5494
5494
  groupItemThreshold?: DecimalString | null | undefined;
5495
5495
  umaEndDate?: MixedDateTimeString | null | undefined;
5496
5496
  enableOrderBook?: boolean | null | undefined;
5497
- orderPriceMinTickSize?: 0.1 | 0.01 | 0.001 | 0.0001 | null | undefined;
5497
+ orderPriceMinTickSize?: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001 | null | undefined;
5498
5498
  orderMinSize?: DecimalString | null | undefined;
5499
5499
  curationOrder?: number | null | undefined;
5500
5500
  volumeNum?: DecimalString | null | undefined;
@@ -6199,7 +6199,7 @@ declare const ListEventsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
6199
6199
  updatedAt?: IsoDateTimeString | null | undefined;
6200
6200
  }[] | null | undefined;
6201
6201
  }>>>;
6202
- next_cursor: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>;
6202
+ next_cursor: z.ZodOptional<z.ZodCustom<PaginationCursor, PaginationCursor>>;
6203
6203
  }, z.core.$strip>, z.ZodTransform<{
6204
6204
  items: Event[];
6205
6205
  nextCursor: PaginationCursor | undefined;
@@ -6239,6 +6239,53 @@ type BestLine = z.infer<typeof BestLineSchema>;
6239
6239
  type Team = z.infer<typeof TeamSchema>;
6240
6240
  type SportsMetadata = z.infer<typeof SportsMetadataSchema>;
6241
6241
 
6242
+ /** Lifecycle state of a clarification as it is scheduled and posted on-chain. */
6243
+ declare enum MarketClarificationState {
6244
+ Pending = "pending",
6245
+ Queued = "queued",
6246
+ Success = "success",
6247
+ Failed = "failed",
6248
+ Cancelled = "cancelled"
6249
+ }
6250
+ declare const MarketClarificationSchema: z.ZodObject<{
6251
+ id: z.ZodNumber;
6252
+ marketId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<MarketId, string>>>>;
6253
+ eventId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<EventId, string>>>>;
6254
+ questionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>>>;
6255
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6256
+ state: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof MarketClarificationState>>>;
6257
+ clearBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6258
+ notifyDiscord: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6259
+ showInFrontend: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6260
+ adapterAddress: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>>>;
6261
+ negRiskRequestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6262
+ txHash: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
6263
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
6264
+ queuedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
6265
+ scheduledFor: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
6266
+ txTimestamp: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
6267
+ }, z.core.$strip>;
6268
+ declare const ListMarketClarificationsResponseSchema: z.ZodArray<z.ZodObject<{
6269
+ id: z.ZodNumber;
6270
+ marketId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<MarketId, string>>>>;
6271
+ eventId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<EventId, string>>>>;
6272
+ questionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>>>;
6273
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6274
+ state: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof MarketClarificationState>>>;
6275
+ clearBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6276
+ notifyDiscord: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6277
+ showInFrontend: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6278
+ adapterAddress: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>>>;
6279
+ negRiskRequestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6280
+ txHash: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
6281
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
6282
+ queuedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
6283
+ scheduledFor: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
6284
+ txTimestamp: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
6285
+ }, z.core.$strip>>;
6286
+ type MarketClarification = z.infer<typeof MarketClarificationSchema>;
6287
+ type ListMarketClarificationsResponse = z.infer<typeof ListMarketClarificationsResponseSchema>;
6288
+
6242
6289
  declare const PaginationEnvelopeSchema: z.ZodObject<{
6243
6290
  hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6244
6291
  totalResults: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -6595,7 +6642,7 @@ declare const PublicSearchResponseSchema: z.ZodObject<{
6595
6642
  questionID: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>>>>, z.ZodTransform<QuestionId | null, QuestionId | null | undefined>>;
6596
6643
  umaEndDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
6597
6644
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6598
- orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>>;
6645
+ orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<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>]>>>;
6599
6646
  orderMinSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
6600
6647
  umaResolutionStatus: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof UmaResolutionStatus>>>>, z.ZodTransform<UmaResolutionStatus | null, UmaResolutionStatus | null | undefined>>;
6601
6648
  curationOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -6828,7 +6875,7 @@ declare const PublicSearchResponseSchema: z.ZodObject<{
6828
6875
  groupItemThreshold?: DecimalString | null | undefined;
6829
6876
  umaEndDate?: MixedDateTimeString | null | undefined;
6830
6877
  enableOrderBook?: boolean | null | undefined;
6831
- orderPriceMinTickSize?: 0.1 | 0.01 | 0.001 | 0.0001 | null | undefined;
6878
+ orderPriceMinTickSize?: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001 | null | undefined;
6832
6879
  orderMinSize?: DecimalString | null | undefined;
6833
6880
  curationOrder?: number | null | undefined;
6834
6881
  volumeNum?: DecimalString | null | undefined;
@@ -7864,7 +7911,7 @@ declare const SeriesSchema: z.ZodObject<{
7864
7911
  questionID: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>>>>, z.ZodTransform<QuestionId | null, QuestionId | null | undefined>>;
7865
7912
  umaEndDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
7866
7913
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7867
- orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>>;
7914
+ orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<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>]>>>;
7868
7915
  orderMinSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
7869
7916
  umaResolutionStatus: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof UmaResolutionStatus>>>>, z.ZodTransform<UmaResolutionStatus | null, UmaResolutionStatus | null | undefined>>;
7870
7917
  curationOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -8097,7 +8144,7 @@ declare const SeriesSchema: z.ZodObject<{
8097
8144
  groupItemThreshold?: DecimalString | null | undefined;
8098
8145
  umaEndDate?: MixedDateTimeString | null | undefined;
8099
8146
  enableOrderBook?: boolean | null | undefined;
8100
- orderPriceMinTickSize?: 0.1 | 0.01 | 0.001 | 0.0001 | null | undefined;
8147
+ orderPriceMinTickSize?: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001 | null | undefined;
8101
8148
  orderMinSize?: DecimalString | null | undefined;
8102
8149
  curationOrder?: number | null | undefined;
8103
8150
  volumeNum?: DecimalString | null | undefined;
@@ -9043,7 +9090,7 @@ declare const ListSeriesResponseSchema: z.ZodArray<z.ZodObject<{
9043
9090
  questionID: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>>>>, z.ZodTransform<QuestionId | null, QuestionId | null | undefined>>;
9044
9091
  umaEndDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
9045
9092
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
9046
- orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>>>;
9093
+ orderPriceMinTickSize: z.ZodOptional<z.ZodNullable<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>]>>>;
9047
9094
  orderMinSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
9048
9095
  umaResolutionStatus: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof UmaResolutionStatus>>>>, z.ZodTransform<UmaResolutionStatus | null, UmaResolutionStatus | null | undefined>>;
9049
9096
  curationOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -9276,7 +9323,7 @@ declare const ListSeriesResponseSchema: z.ZodArray<z.ZodObject<{
9276
9323
  groupItemThreshold?: DecimalString | null | undefined;
9277
9324
  umaEndDate?: MixedDateTimeString | null | undefined;
9278
9325
  enableOrderBook?: boolean | null | undefined;
9279
- orderPriceMinTickSize?: 0.1 | 0.01 | 0.001 | 0.0001 | null | undefined;
9326
+ orderPriceMinTickSize?: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001 | null | undefined;
9280
9327
  orderMinSize?: DecimalString | null | undefined;
9281
9328
  curationOrder?: number | null | undefined;
9282
9329
  volumeNum?: DecimalString | null | undefined;
@@ -10196,4 +10243,4 @@ declare const WalletTypeSchema: z.ZodObject<{
10196
10243
  }>;
10197
10244
  }, z.core.$strip>;
10198
10245
 
10199
- export { type BestLine, BestLineSchema, type CategoryReference, CategoryReferenceSchema, type Chat, ChatSchema, type ClobRewards, ClobRewardsSchema, type CollectionReference, CollectionReferenceSchema, type Event, type EventCreator, EventCreatorSchema, type EventDisplay, type EventEstimation, type EventExternalPartnerMapping, EventExternalPartnerMappingSchema, type EventMetrics, type EventPartner, type EventReference, EventReferenceSchema, type EventResolution, type EventSchedule, EventSchema, type EventSeries, type EventSportsMetadata, type EventState, type EventTag, type EventTrading, type FeeSchedule, FeeScheduleSchema, type FetchEventTagsResponse, FetchEventTagsResponseSchema, type FetchMarketTagsResponse, FetchMarketTagsResponseSchema, type GammaEvent, GammaEventSchema, type GammaMarket, GammaMarketSchema, type ImageOptimization, ImageOptimizationSchema, type InternalUser, InternalUserSchema, type ListEventsKeysetResponse, ListEventsKeysetResponseSchema, type ListEventsResponse, ListEventsResponseSchema, type ListMarketsKeysetResponse, ListMarketsKeysetResponseSchema, type ListMarketsResponse, ListMarketsResponseSchema, type ListRelatedTagResourcesResponse, ListRelatedTagResourcesResponseSchema, type ListRelatedTagsResponse, ListRelatedTagsResponseSchema, type ListSeriesResponse, ListSeriesResponseSchema, type ListSportsMetadataResponse, ListSportsMetadataResponseSchema, type ListTagsResponse, ListTagsResponseSchema, type ListTeamsResponse, ListTeamsResponseSchema, type Market, type MarketEvent, type MarketMetrics, type MarketOutcome, type MarketOutcomes, type MarketPrices, type MarketResolution, type MarketRewards, MarketSchema, type MarketSportsMetadata, type MarketState, type MarketTag, type MarketTrading, type PaginationEnvelope, PaginationEnvelopeSchema, type Partner, PartnerSchema, type Profile, ProfileSchema, type PublicProfile, PublicProfileSchema, type PublicProfileUser, PublicProfileUserSchema, type PublicSearchResponse, PublicSearchResponseSchema, type RelatedMarket, RelatedMarketSchema, type RelatedTag, RelatedTagSchema, type SearchPagination, SearchPaginationSchema, type SearchTag, SearchTagSchema, type Series, SeriesIdSchema, type SeriesReference, SeriesReferenceSchema, SeriesSchema, type SportsMarketTypesResponse, SportsMarketTypesResponseSchema, type SportsMetadata, SportsMetadataSchema, type Tag, type TagReference, TagReferenceSchema, TagSchema, type Team, TeamSchema, type TemplateReference, TemplateReferenceSchema, UmaResolutionStatus, WalletType, WalletTypeSchema, hasBinaryOutcomes, normalizeMarket };
10246
+ export { type BestLine, BestLineSchema, type CategoryReference, CategoryReferenceSchema, type Chat, ChatSchema, type ClobRewards, ClobRewardsSchema, type CollectionReference, CollectionReferenceSchema, type Event, type EventCreator, EventCreatorSchema, type EventDisplay, type EventEstimation, type EventExternalPartnerMapping, EventExternalPartnerMappingSchema, type EventMetrics, type EventPartner, type EventReference, EventReferenceSchema, type EventResolution, type EventSchedule, EventSchema, type EventSeries, type EventSportsMetadata, type EventState, type EventTag, type EventTrading, type FeeSchedule, FeeScheduleSchema, type FetchEventTagsResponse, FetchEventTagsResponseSchema, type FetchMarketTagsResponse, FetchMarketTagsResponseSchema, type GammaEvent, GammaEventSchema, type GammaMarket, GammaMarketSchema, type ImageOptimization, ImageOptimizationSchema, type InternalUser, InternalUserSchema, type ListEventsKeysetResponse, ListEventsKeysetResponseSchema, type ListEventsResponse, ListEventsResponseSchema, type ListMarketClarificationsResponse, ListMarketClarificationsResponseSchema, type ListMarketsKeysetResponse, ListMarketsKeysetResponseSchema, type ListMarketsResponse, ListMarketsResponseSchema, type ListRelatedTagResourcesResponse, ListRelatedTagResourcesResponseSchema, type ListRelatedTagsResponse, ListRelatedTagsResponseSchema, type ListSeriesResponse, ListSeriesResponseSchema, type ListSportsMetadataResponse, ListSportsMetadataResponseSchema, type ListTagsResponse, ListTagsResponseSchema, type ListTeamsResponse, ListTeamsResponseSchema, type Market, type MarketClarification, MarketClarificationSchema, MarketClarificationState, type MarketEvent, type MarketMetrics, type MarketOutcome, type MarketOutcomes, type MarketPrices, type MarketResolution, type MarketRewards, MarketSchema, type MarketSportsMetadata, type MarketState, type MarketTag, type MarketTrading, type PaginationEnvelope, PaginationEnvelopeSchema, type Partner, PartnerSchema, type Profile, ProfileSchema, type PublicProfile, PublicProfileSchema, type PublicProfileUser, PublicProfileUserSchema, type PublicSearchResponse, PublicSearchResponseSchema, type RelatedMarket, RelatedMarketSchema, type RelatedTag, RelatedTagSchema, type SearchPagination, SearchPaginationSchema, type SearchTag, SearchTagSchema, type Series, SeriesIdSchema, type SeriesReference, SeriesReferenceSchema, SeriesSchema, type SportsMarketTypesResponse, SportsMarketTypesResponseSchema, type SportsMetadata, SportsMetadataSchema, type Tag, type TagReference, TagReferenceSchema, TagSchema, type Team, TeamSchema, type TemplateReference, TemplateReferenceSchema, UmaResolutionStatus, WalletType, WalletTypeSchema, hasBinaryOutcomes, normalizeMarket };
@@ -1,2 +1,2 @@
1
- import {a as a$1,F,e,t,s,r}from'../chunk-PJWPI2GS.js';export{y as BestLineSchema,d as CategoryReferenceSchema,u as ChatSchema,g as ClobRewardsSchema,r as CollectionReferenceSchema,O as CommentMediaSchema,J as CommentPositionSchema,K as CommentProfileSchema,P as CommentSchema,v as EventCreatorSchema,x as EventExternalPartnerMappingSchema,c as EventReferenceSchema,F as EventSchema,b as FeeScheduleSchema,I as FetchEventTagsResponseSchema,n as FetchMarketTagsResponseSchema,E as GammaEventSchema,j as GammaMarketSchema,a as ImageOptimizationSchema,h as InternalUserSchema,Q as ListCommentsResponseSchema,H as ListEventsKeysetResponseSchema,G as ListEventsResponseSchema,m as ListMarketsKeysetResponseSchema,l as ListMarketsResponseSchema,C as ListSportsMetadataResponseSchema,B as ListTeamsResponseSchema,k as MarketSchema,w as PartnerSchema,N as ReactionSchema,L as ReactionType,M as ReactionTypeSchema,f as RelatedMarketSchema,q as SeriesIdSchema,s as SeriesReferenceSchema,D as SportsMarketTypesResponseSchema,A as SportsMetadataSchema,e as TagReferenceSchema,z as TeamSchema,t as TemplateReferenceSchema,i as UmaResolutionStatus,p as hasBinaryOutcomes,o as normalizeMarket}from'../chunk-PJWPI2GS.js';import {ka,$,Da}from'../chunk-SB2LAVJ4.js';export{Da as TagIdSchema}from'../chunk-SB2LAVJ4.js';import {z as z$1}from'zod';var he=z$1.object({hasMore:z$1.boolean().nullish(),totalResults:z$1.number().int().nullish()});var P=z$1.object({id:z$1.string(),communityMod:z$1.boolean().nullish(),creator:z$1.boolean().nullish(),mod:z$1.boolean().nullish()}),b=z$1.object({id:z$1.string().nullish(),name:z$1.string().nullish(),user:z$1.number().int().nullish(),referral:z$1.string().nullish(),createdBy:z$1.number().int().nullish(),updatedBy:z$1.number().int().nullish(),createdAt:ka.nullish(),updatedAt:ka.nullish(),utmSource:z$1.string().nullish(),utmMedium:z$1.string().nullish(),utmCampaign:z$1.string().nullish(),utmContent:z$1.string().nullish(),utmTerm:z$1.string().nullish(),walletActivated:z$1.boolean().nullish(),pseudonym:z$1.string().nullish(),displayUsernamePublic:z$1.boolean().nullish(),profileImage:z$1.string().nullish(),bio:z$1.string().nullish(),proxyWallet:z$1.string().nullish(),profileImageOptimized:a$1.nullish(),isCloseOnly:z$1.boolean().nullish(),isCertReq:z$1.boolean().nullish(),certReqDate:ka.nullish(),discordUsername:z$1.string().nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish(),dubPartnerId:z$1.string().nullish(),termsAcceptedAt:ka.nullish(),viewOnlyAcknowledgedAt:ka.nullish(),isReferralRestricted:z$1.boolean().nullish()}).transform(({proxyWallet:o,...i})=>({...i,wallet:o})),Se=z$1.object({createdAt:ka.nullish(),proxyWallet:$.nullish(),profileImage:z$1.string().nullish(),displayUsernamePublic:z$1.boolean().nullish(),bio:z$1.string().nullish(),pseudonym:z$1.string().nullish(),name:z$1.string().nullish(),users:z$1.array(P).nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish()}).transform(({proxyWallet:o,...i})=>({...i,wallet:o}));var T=z$1.object({id:Da,event_count:z$1.number().int().nullish(),label:z$1.string().nullish(),slug:z$1.string().nullish()}).transform(({event_count:o,...i})=>({...i,eventCount:o})),z=z$1.object({hasMore:z$1.boolean().nullish(),totalResults:z$1.number().int().nullish()}),Pe=z$1.object({events:z$1.array(F).nullish(),tags:z$1.array(T).nullish(),profiles:z$1.array(b).nullish(),pagination:z.nullish()});var a=e.extend({templates:z$1.array(t).nullish()}),L=z$1.object({id:z$1.string(),tagID:z$1.number().int().nullish(),relatedTagID:z$1.number().int().nullish(),rank:z$1.number().int().nullish()}).transform(({tagID:o,relatedTagID:i,...R})=>({...R,tagId:o,relatedTagId:i})),ve=z$1.array(a),Ee=z$1.array(L),Oe=z$1.array(a);var I=s.extend({events:z$1.array(F).nullish(),collections:z$1.array(r).nullish(),tags:z$1.array(a).nullish()}),De=z$1.array(I);var y=(n=>(n[n.EOA=0]="EOA",n[n.POLY_PROXY=1]="POLY_PROXY",n[n.GNOSIS_SAFE=2]="GNOSIS_SAFE",n[n.DEPOSIT_WALLET=3]="DEPOSIT_WALLET",n))(y||{}),Me=z$1.object({type:z$1.enum(y),typeName:z$1.enum(["EOA","POLY_PROXY","GNOSIS_SAFE","DEPOSIT_WALLET"])});export{Oe as ListRelatedTagResourcesResponseSchema,Ee as ListRelatedTagsResponseSchema,De as ListSeriesResponseSchema,ve as ListTagsResponseSchema,he as PaginationEnvelopeSchema,b as ProfileSchema,Se as PublicProfileSchema,P as PublicProfileUserSchema,Pe as PublicSearchResponseSchema,L as RelatedTagSchema,z as SearchPaginationSchema,T as SearchTagSchema,I as SeriesSchema,a as TagSchema,y as WalletType,Me as WalletTypeSchema};//# sourceMappingURL=index.js.map
1
+ import {a,F,e,t,s,r}from'../chunk-667TIILD.js';export{y as BestLineSchema,d as CategoryReferenceSchema,u as ChatSchema,g as ClobRewardsSchema,r as CollectionReferenceSchema,O as CommentMediaSchema,J as CommentPositionSchema,K as CommentProfileSchema,P as CommentSchema,v as EventCreatorSchema,x as EventExternalPartnerMappingSchema,c as EventReferenceSchema,F as EventSchema,b as FeeScheduleSchema,I as FetchEventTagsResponseSchema,n as FetchMarketTagsResponseSchema,E as GammaEventSchema,j as GammaMarketSchema,a as ImageOptimizationSchema,h as InternalUserSchema,Q as ListCommentsResponseSchema,H as ListEventsKeysetResponseSchema,G as ListEventsResponseSchema,m as ListMarketsKeysetResponseSchema,l as ListMarketsResponseSchema,C as ListSportsMetadataResponseSchema,B as ListTeamsResponseSchema,k as MarketSchema,w as PartnerSchema,N as ReactionSchema,L as ReactionType,M as ReactionTypeSchema,f as RelatedMarketSchema,q as SeriesIdSchema,s as SeriesReferenceSchema,D as SportsMarketTypesResponseSchema,A as SportsMetadataSchema,e as TagReferenceSchema,z as TeamSchema,t as TemplateReferenceSchema,i as UmaResolutionStatus,p as hasBinaryOutcomes,o as normalizeMarket}from'../chunk-667TIILD.js';import {y,ka,Ha,$,za,ia,Ea}from'../chunk-D6QJEBYH.js';export{Ea as TagIdSchema}from'../chunk-D6QJEBYH.js';import {z as z$1}from'zod';var z=(a=>(a.Pending="pending",a.Queued="queued",a.Success="success",a.Failed="failed",a.Cancelled="cancelled",a))(z||{}),E=z$1.union([z$1.string(),z$1.number().int().transform(String)]).transform(y),O=z$1.object({id:z$1.number().int(),marketId:E.nullish(),eventId:ia.nullish(),questionId:za.nullish(),content:z$1.string().nullish(),state:z$1.enum(z).nullish(),clearBook:z$1.boolean().nullish(),notifyDiscord:z$1.boolean().nullish(),showInFrontend:z$1.boolean().nullish(),adapterAddress:$.nullish(),negRiskRequestId:z$1.string().nullish(),txHash:Ha.nullish(),createdAt:ka.nullish(),queuedAt:ka.nullish(),scheduledFor:ka.nullish(),txTimestamp:ka.nullish()}),Re=z$1.array(O);var Ie=z$1.object({hasMore:z$1.boolean().nullish(),totalResults:z$1.number().int().nullish()});var j=z$1.object({id:z$1.string(),communityMod:z$1.boolean().nullish(),creator:z$1.boolean().nullish(),mod:z$1.boolean().nullish()}),L=z$1.object({id:z$1.string().nullish(),name:z$1.string().nullish(),user:z$1.number().int().nullish(),referral:z$1.string().nullish(),createdBy:z$1.number().int().nullish(),updatedBy:z$1.number().int().nullish(),createdAt:ka.nullish(),updatedAt:ka.nullish(),utmSource:z$1.string().nullish(),utmMedium:z$1.string().nullish(),utmCampaign:z$1.string().nullish(),utmContent:z$1.string().nullish(),utmTerm:z$1.string().nullish(),walletActivated:z$1.boolean().nullish(),pseudonym:z$1.string().nullish(),displayUsernamePublic:z$1.boolean().nullish(),profileImage:z$1.string().nullish(),bio:z$1.string().nullish(),proxyWallet:z$1.string().nullish(),profileImageOptimized:a.nullish(),isCloseOnly:z$1.boolean().nullish(),isCertReq:z$1.boolean().nullish(),certReqDate:ka.nullish(),discordUsername:z$1.string().nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish(),dubPartnerId:z$1.string().nullish(),termsAcceptedAt:ka.nullish(),viewOnlyAcknowledgedAt:ka.nullish(),isReferralRestricted:z$1.boolean().nullish()}).transform(({proxyWallet:i,...l})=>({...l,wallet:i})),Ee=z$1.object({createdAt:ka.nullish(),proxyWallet:$.nullish(),profileImage:z$1.string().nullish(),displayUsernamePublic:z$1.boolean().nullish(),bio:z$1.string().nullish(),pseudonym:z$1.string().nullish(),name:z$1.string().nullish(),users:z$1.array(j).nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish()}).transform(({proxyWallet:i,...l})=>({...l,wallet:i}));var k=z$1.object({id:Ea,event_count:z$1.number().int().nullish(),label:z$1.string().nullish(),slug:z$1.string().nullish()}).transform(({event_count:i,...l})=>({...l,eventCount:i})),C=z$1.object({hasMore:z$1.boolean().nullish(),totalResults:z$1.number().int().nullish()}),Ue=z$1.object({events:z$1.array(F).nullish(),tags:z$1.array(k).nullish(),profiles:z$1.array(L).nullish(),pagination:C.nullish()});var u=e.extend({templates:z$1.array(t).nullish()}),D=z$1.object({id:z$1.string(),tagID:z$1.number().int().nullish(),relatedTagID:z$1.number().int().nullish(),rank:z$1.number().int().nullish()}).transform(({tagID:i,relatedTagID:l,...v})=>({...v,tagId:i,relatedTagId:l})),Be=z$1.array(u),Ye=z$1.array(D),Ne=z$1.array(u);var U=s.extend({events:z$1.array(F).nullish(),collections:z$1.array(r).nullish(),tags:z$1.array(u).nullish()}),Je=z$1.array(U);var A=(s=>(s[s.EOA=0]="EOA",s[s.POLY_PROXY=1]="POLY_PROXY",s[s.GNOSIS_SAFE=2]="GNOSIS_SAFE",s[s.DEPOSIT_WALLET=3]="DEPOSIT_WALLET",s))(A||{}),Ze=z$1.object({type:z$1.enum(A),typeName:z$1.enum(["EOA","POLY_PROXY","GNOSIS_SAFE","DEPOSIT_WALLET"])});export{Re as ListMarketClarificationsResponseSchema,Ne as ListRelatedTagResourcesResponseSchema,Ye as ListRelatedTagsResponseSchema,Je as ListSeriesResponseSchema,Be as ListTagsResponseSchema,O as MarketClarificationSchema,z as MarketClarificationState,Ie as PaginationEnvelopeSchema,L as ProfileSchema,Ee as PublicProfileSchema,j as PublicProfileUserSchema,Ue as PublicSearchResponseSchema,D as RelatedTagSchema,C as SearchPaginationSchema,k as SearchTagSchema,U as SeriesSchema,u as TagSchema,A as WalletType,Ze as WalletTypeSchema};//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/gamma/pagination.ts","../../src/gamma/profile.ts","../../src/gamma/search.ts","../../src/gamma/tag.ts","../../src/gamma/series.ts","../../src/gamma/wallet.ts"],"names":["PaginationEnvelopeSchema","z","PublicProfileUserSchema","ProfileSchema","IsoDateTimeStringSchema","ImageOptimizationSchema","proxyWallet","rest","PublicProfileSchema","EvmAddressSchema","SearchTagSchema","TagIdSchema","event_count","SearchPaginationSchema","PublicSearchResponseSchema","EventSchema","TagSchema","TagReferenceSchema","TemplateReferenceSchema","RelatedTagSchema","tagID","relatedTagID","ListTagsResponseSchema","ListRelatedTagsResponseSchema","ListRelatedTagResourcesResponseSchema","SeriesSchema","SeriesReferenceSchema","Collection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AAA,CAAMe,CAAS,MChBzDS,CAAAA,CAAeC,CAAAA,CAAsB,MAAA,CAAO,CACvD,MAAA,CAAQzB,GAAAA,CAAE,KAAA,CAAMc,CAAW,EAAE,OAAA,EAAQ,CACrC,WAAA,CAAad,GAAAA,CAAE,KAAA,CAAM0B,CAAyB,CAAA,CAAE,OAAA,GAChD,IAAA,CAAM1B,GAAAA,CAAE,KAAA,CAAMe,CAAS,CAAA,CAAE,OAAA,EAC3B,CAAC,EAEYY,EAAAA,CAA2B3B,GAAAA,CAAE,KAAA,CAAMwB,CAAY,MCZhDI,CAAAA,CAAAA,CAAAA,CAAAA,GACVA,CAAAA,CAAAA,CAAAA,CAAA,GAAA,CAAM,CAAA,CAAA,CAAN,KAAA,CACAA,CAAAA,CAAAA,CAAAA,CAAA,UAAA,CAAa,CAAA,CAAA,CAAb,aACAA,CAAAA,CAAAA,CAAAA,CAAA,WAAA,CAAc,CAAA,CAAA,CAAd,aAAA,CACAA,IAAA,cAAA,CAAiB,CAAA,CAAA,CAAjB,gBAAA,CAJUA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,IAOCC,EAAAA,CAAmB7B,GAAAA,CAAE,MAAA,CAAO,CACvC,IAAA,CAAMA,GAAAA,CAAE,IAAA,CAAK4B,CAAU,EACvB,QAAA,CAAU5B,GAAAA,CAAE,IAAA,CAAK,CAAC,MAAO,YAAA,CAAc,aAAA,CAAe,gBAAgB,CAAC,CACzE,CAAC","file":"index.js","sourcesContent":["import { z } from 'zod';\n\nexport const PaginationEnvelopeSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport type PaginationEnvelope = z.infer<typeof PaginationEnvelopeSchema>;\n","import { z } from 'zod';\nimport { EvmAddressSchema, IsoDateTimeStringSchema } from '../shared';\nimport { ImageOptimizationSchema } from './common';\n\nexport const PublicProfileUserSchema = z.object({\n id: z.string(),\n communityMod: z.boolean().nullish(),\n creator: z.boolean().nullish(),\n mod: z.boolean().nullish(),\n});\n\nexport const ProfileSchema = z\n .object({\n id: z.string().nullish(),\n name: z.string().nullish(),\n user: z.number().int().nullish(),\n referral: z.string().nullish(),\n createdBy: z.number().int().nullish(),\n updatedBy: z.number().int().nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n updatedAt: IsoDateTimeStringSchema.nullish(),\n utmSource: z.string().nullish(),\n utmMedium: z.string().nullish(),\n utmCampaign: z.string().nullish(),\n utmContent: z.string().nullish(),\n utmTerm: z.string().nullish(),\n walletActivated: z.boolean().nullish(),\n pseudonym: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n profileImage: z.string().nullish(),\n bio: z.string().nullish(),\n proxyWallet: z.string().nullish(),\n profileImageOptimized: ImageOptimizationSchema.nullish(),\n isCloseOnly: z.boolean().nullish(),\n isCertReq: z.boolean().nullish(),\n certReqDate: IsoDateTimeStringSchema.nullish(),\n discordUsername: z.string().nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n dubPartnerId: z.string().nullish(),\n termsAcceptedAt: IsoDateTimeStringSchema.nullish(),\n viewOnlyAcknowledgedAt: IsoDateTimeStringSchema.nullish(),\n isReferralRestricted: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport const PublicProfileSchema = z\n .object({\n createdAt: IsoDateTimeStringSchema.nullish(),\n proxyWallet: EvmAddressSchema.nullish(),\n profileImage: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n bio: z.string().nullish(),\n pseudonym: z.string().nullish(),\n name: z.string().nullish(),\n users: z.array(PublicProfileUserSchema).nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport type PublicProfile = z.infer<typeof PublicProfileSchema>;\nexport type Profile = z.infer<typeof ProfileSchema>;\nexport type PublicProfileUser = z.infer<typeof PublicProfileUserSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { EventSchema } from './event';\nimport { ProfileSchema } from './profile';\n\nexport const SearchTagSchema = z\n .object({\n id: TagIdSchema,\n event_count: z.number().int().nullish(),\n label: z.string().nullish(),\n slug: z.string().nullish(),\n })\n .transform(({ event_count, ...rest }) => ({\n ...rest,\n eventCount: event_count,\n }));\n\nexport const SearchPaginationSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport const PublicSearchResponseSchema = z.object({\n events: z.array(EventSchema).nullish(),\n tags: z.array(SearchTagSchema).nullish(),\n profiles: z.array(ProfileSchema).nullish(),\n pagination: SearchPaginationSchema.nullish(),\n});\n\nexport type SearchTag = z.infer<typeof SearchTagSchema>;\nexport type SearchPagination = z.infer<typeof SearchPaginationSchema>;\nexport type PublicSearchResponse = z.infer<typeof PublicSearchResponseSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { TagReferenceSchema } from './common';\nimport { TemplateReferenceSchema } from './event';\n\nexport const TagSchema = TagReferenceSchema.extend({\n templates: z.array(TemplateReferenceSchema).nullish(),\n});\n\nexport const RelatedTagSchema = z\n .object({\n id: z.string(),\n tagID: z.number().int().nullish(),\n relatedTagID: z.number().int().nullish(),\n rank: z.number().int().nullish(),\n })\n .transform(({ tagID, relatedTagID, ...rest }) => ({\n ...rest,\n tagId: tagID,\n relatedTagId: relatedTagID,\n }));\n\nexport const ListTagsResponseSchema = z.array(TagSchema);\nexport const ListRelatedTagsResponseSchema = z.array(RelatedTagSchema);\nexport const ListRelatedTagResourcesResponseSchema = z.array(TagSchema);\n\nexport type Tag = z.infer<typeof TagSchema>;\nexport type RelatedTag = z.infer<typeof RelatedTagSchema>;\nexport type ListTagsResponse = z.infer<typeof ListTagsResponseSchema>;\nexport type ListRelatedTagsResponse = z.infer<\n typeof ListRelatedTagsResponseSchema\n>;\nexport type ListRelatedTagResourcesResponse = z.infer<\n typeof ListRelatedTagResourcesResponseSchema\n>;\n\nexport { TagIdSchema };\n","import { z } from 'zod';\nimport {\n CollectionReferenceSchema,\n EventSchema,\n SeriesReferenceSchema,\n} from './event';\nimport { TagSchema } from './tag';\n\nexport const SeriesSchema = SeriesReferenceSchema.extend({\n events: z.array(EventSchema).nullish(),\n collections: z.array(CollectionReferenceSchema).nullish(),\n tags: z.array(TagSchema).nullish(),\n});\n\nexport const ListSeriesResponseSchema = z.array(SeriesSchema);\n\nexport type Series = z.infer<typeof SeriesSchema>;\nexport type ListSeriesResponse = z.infer<typeof ListSeriesResponseSchema>;\n","import { z } from 'zod';\n\nexport enum WalletType {\n EOA = 0,\n POLY_PROXY = 1,\n GNOSIS_SAFE = 2,\n DEPOSIT_WALLET = 3,\n}\n\nexport const WalletTypeSchema = z.object({\n type: z.enum(WalletType),\n typeName: z.enum(['EOA', 'POLY_PROXY', 'GNOSIS_SAFE', 'DEPOSIT_WALLET']),\n});\n"]}
1
+ {"version":3,"sources":["../../src/gamma/market-clarification.ts","../../src/gamma/pagination.ts","../../src/gamma/profile.ts","../../src/gamma/search.ts","../../src/gamma/tag.ts","../../src/gamma/series.ts","../../src/gamma/wallet.ts"],"names":["MarketClarificationState","MarketIdFromWireSchema","z","toMarketId","MarketClarificationSchema","EventIdSchema","QuestionIdSchema","EvmAddressSchema","TxHashSchema","IsoDateTimeStringSchema","ListMarketClarificationsResponseSchema","PaginationEnvelopeSchema","PublicProfileUserSchema","ProfileSchema","ImageOptimizationSchema","proxyWallet","rest","PublicProfileSchema","SearchTagSchema","TagIdSchema","event_count","SearchPaginationSchema","PublicSearchResponseSchema","EventSchema","TagSchema","TagReferenceSchema","TemplateReferenceSchema","RelatedTagSchema","tagID","relatedTagID","ListTagsResponseSchema","ListRelatedTagsResponseSchema","ListRelatedTagResourcesResponseSchema","SeriesSchema","SeriesReferenceSchema","CollectionReferenceSchema","ListSeriesResponseSchema","WalletType","WalletTypeSchema"],"mappings":"szCAWYA,CAAAA,CAAAA,CA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AAAA,CAAAA,CAAAA,CAAA,WAAA,CAAc,GAAd,aAAA,CACAA,CAAAA,CAAAA,CAAAA,CAAA,eAAiB,CAAA,CAAA,CAAjB,gBAAA,CAJUA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,EAAA,CAAA,CAOCC,GAAmBpC,GAAAA,CAAE,MAAA,CAAO,CACvC,IAAA,CAAMA,GAAAA,CAAE,KAAKmC,CAAU,CAAA,CACvB,SAAUnC,GAAAA,CAAE,IAAA,CAAK,CAAC,KAAA,CAAO,YAAA,CAAc,cAAe,gBAAgB,CAAC,CACzE,CAAC","file":"index.js","sourcesContent":["import { z } from 'zod';\nimport {\n EventIdSchema,\n EvmAddressSchema,\n IsoDateTimeStringSchema,\n QuestionIdSchema,\n TxHashSchema,\n toMarketId,\n} from '../shared';\n\n/** Lifecycle state of a clarification as it is scheduled and posted on-chain. */\nexport enum MarketClarificationState {\n Pending = 'pending',\n Queued = 'queued',\n Success = 'success',\n Failed = 'failed',\n Cancelled = 'cancelled',\n}\n\n// The upstream payload returns `marketId` as a JSON number, but the `MarketId`\n// brand is string-valued, so accept number-or-string here (mirrors `EventIdSchema`).\nconst MarketIdFromWireSchema = z\n .union([z.string(), z.number().int().transform(String)])\n .transform(toMarketId);\n\nexport const MarketClarificationSchema = z.object({\n id: z.number().int(),\n marketId: MarketIdFromWireSchema.nullish(),\n eventId: EventIdSchema.nullish(),\n questionId: QuestionIdSchema.nullish(),\n content: z.string().nullish(),\n state: z.enum(MarketClarificationState).nullish(),\n clearBook: z.boolean().nullish(),\n notifyDiscord: z.boolean().nullish(),\n showInFrontend: z.boolean().nullish(),\n adapterAddress: EvmAddressSchema.nullish(),\n negRiskRequestId: z.string().nullish(),\n txHash: TxHashSchema.nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n queuedAt: IsoDateTimeStringSchema.nullish(),\n scheduledFor: IsoDateTimeStringSchema.nullish(),\n txTimestamp: IsoDateTimeStringSchema.nullish(),\n});\n\nexport const ListMarketClarificationsResponseSchema = z.array(\n MarketClarificationSchema,\n);\n\nexport type MarketClarification = z.infer<typeof MarketClarificationSchema>;\nexport type ListMarketClarificationsResponse = z.infer<\n typeof ListMarketClarificationsResponseSchema\n>;\n","import { z } from 'zod';\n\nexport const PaginationEnvelopeSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport type PaginationEnvelope = z.infer<typeof PaginationEnvelopeSchema>;\n","import { z } from 'zod';\nimport { EvmAddressSchema, IsoDateTimeStringSchema } from '../shared';\nimport { ImageOptimizationSchema } from './common';\n\nexport const PublicProfileUserSchema = z.object({\n id: z.string(),\n communityMod: z.boolean().nullish(),\n creator: z.boolean().nullish(),\n mod: z.boolean().nullish(),\n});\n\nexport const ProfileSchema = z\n .object({\n id: z.string().nullish(),\n name: z.string().nullish(),\n user: z.number().int().nullish(),\n referral: z.string().nullish(),\n createdBy: z.number().int().nullish(),\n updatedBy: z.number().int().nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n updatedAt: IsoDateTimeStringSchema.nullish(),\n utmSource: z.string().nullish(),\n utmMedium: z.string().nullish(),\n utmCampaign: z.string().nullish(),\n utmContent: z.string().nullish(),\n utmTerm: z.string().nullish(),\n walletActivated: z.boolean().nullish(),\n pseudonym: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n profileImage: z.string().nullish(),\n bio: z.string().nullish(),\n proxyWallet: z.string().nullish(),\n profileImageOptimized: ImageOptimizationSchema.nullish(),\n isCloseOnly: z.boolean().nullish(),\n isCertReq: z.boolean().nullish(),\n certReqDate: IsoDateTimeStringSchema.nullish(),\n discordUsername: z.string().nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n dubPartnerId: z.string().nullish(),\n termsAcceptedAt: IsoDateTimeStringSchema.nullish(),\n viewOnlyAcknowledgedAt: IsoDateTimeStringSchema.nullish(),\n isReferralRestricted: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport const PublicProfileSchema = z\n .object({\n createdAt: IsoDateTimeStringSchema.nullish(),\n proxyWallet: EvmAddressSchema.nullish(),\n profileImage: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n bio: z.string().nullish(),\n pseudonym: z.string().nullish(),\n name: z.string().nullish(),\n users: z.array(PublicProfileUserSchema).nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport type PublicProfile = z.infer<typeof PublicProfileSchema>;\nexport type Profile = z.infer<typeof ProfileSchema>;\nexport type PublicProfileUser = z.infer<typeof PublicProfileUserSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { EventSchema } from './event';\nimport { ProfileSchema } from './profile';\n\nexport const SearchTagSchema = z\n .object({\n id: TagIdSchema,\n event_count: z.number().int().nullish(),\n label: z.string().nullish(),\n slug: z.string().nullish(),\n })\n .transform(({ event_count, ...rest }) => ({\n ...rest,\n eventCount: event_count,\n }));\n\nexport const SearchPaginationSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport const PublicSearchResponseSchema = z.object({\n events: z.array(EventSchema).nullish(),\n tags: z.array(SearchTagSchema).nullish(),\n profiles: z.array(ProfileSchema).nullish(),\n pagination: SearchPaginationSchema.nullish(),\n});\n\nexport type SearchTag = z.infer<typeof SearchTagSchema>;\nexport type SearchPagination = z.infer<typeof SearchPaginationSchema>;\nexport type PublicSearchResponse = z.infer<typeof PublicSearchResponseSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { TagReferenceSchema } from './common';\nimport { TemplateReferenceSchema } from './event';\n\nexport const TagSchema = TagReferenceSchema.extend({\n templates: z.array(TemplateReferenceSchema).nullish(),\n});\n\nexport const RelatedTagSchema = z\n .object({\n id: z.string(),\n tagID: z.number().int().nullish(),\n relatedTagID: z.number().int().nullish(),\n rank: z.number().int().nullish(),\n })\n .transform(({ tagID, relatedTagID, ...rest }) => ({\n ...rest,\n tagId: tagID,\n relatedTagId: relatedTagID,\n }));\n\nexport const ListTagsResponseSchema = z.array(TagSchema);\nexport const ListRelatedTagsResponseSchema = z.array(RelatedTagSchema);\nexport const ListRelatedTagResourcesResponseSchema = z.array(TagSchema);\n\nexport type Tag = z.infer<typeof TagSchema>;\nexport type RelatedTag = z.infer<typeof RelatedTagSchema>;\nexport type ListTagsResponse = z.infer<typeof ListTagsResponseSchema>;\nexport type ListRelatedTagsResponse = z.infer<\n typeof ListRelatedTagsResponseSchema\n>;\nexport type ListRelatedTagResourcesResponse = z.infer<\n typeof ListRelatedTagResourcesResponseSchema\n>;\n\nexport { TagIdSchema };\n","import { z } from 'zod';\nimport {\n CollectionReferenceSchema,\n EventSchema,\n SeriesReferenceSchema,\n} from './event';\nimport { TagSchema } from './tag';\n\nexport const SeriesSchema = SeriesReferenceSchema.extend({\n events: z.array(EventSchema).nullish(),\n collections: z.array(CollectionReferenceSchema).nullish(),\n tags: z.array(TagSchema).nullish(),\n});\n\nexport const ListSeriesResponseSchema = z.array(SeriesSchema);\n\nexport type Series = z.infer<typeof SeriesSchema>;\nexport type ListSeriesResponse = z.infer<typeof ListSeriesResponseSchema>;\n","import { z } from 'zod';\n\nexport enum WalletType {\n EOA = 0,\n POLY_PROXY = 1,\n GNOSIS_SAFE = 2,\n DEPOSIT_WALLET = 3,\n}\n\nexport const WalletTypeSchema = z.object({\n type: z.enum(WalletType),\n typeName: z.enum(['EOA', 'POLY_PROXY', 'GNOSIS_SAFE', 'DEPOSIT_WALLET']),\n});\n"]}
package/dist/index.d.ts CHANGED
@@ -27,10 +27,9 @@ type CategoryId = Tagged<string, 'CategoryId'>;
27
27
  type ChatId = Tagged<string, 'ChatId'>;
28
28
  type ClobRewardId = Tagged<string, 'ClobRewardId'>;
29
29
  type CommentId = Tagged<string, 'CommentId'>;
30
+ type ComboActivityId = Tagged<string, 'ComboActivityId'>;
30
31
  type ComboConditionId = Tagged<HexString, 'ComboConditionId'>;
31
32
  type CtfConditionId = Tagged<HexString, 'CtfConditionId'>;
32
- /** @deprecated Use {@link CtfConditionId}. */
33
- type ConditionId = CtfConditionId;
34
33
  type CollectionId = Tagged<string, 'CollectionId'>;
35
34
  type EventCreatorId = Tagged<string, 'EventCreatorId'>;
36
35
  type EventExternalPartnerMappingId = Tagged<number, 'EventExternalPartnerMappingId'>;
@@ -43,6 +42,7 @@ type IsoDateTimeString = Tagged<string, 'IsoDateTimeString'>;
43
42
  type MarketId = Tagged<string, 'MarketId'>;
44
43
  type MixedDateTimeString = Tagged<string, 'MixedDateTimeString'>;
45
44
  type NotificationId = Tagged<number, 'NotificationId'>;
45
+ type OrderId = Tagged<string, 'OrderId'>;
46
46
  type PartnerId = Tagged<number, 'PartnerId'>;
47
47
  type PaginationCursor = Tagged<string, 'PaginationCursor'>;
48
48
  type PositionId = Tagged<string, 'PositionId'>;
@@ -68,9 +68,8 @@ declare function toCategoryId(value: string): CategoryId;
68
68
  declare function toChatId(value: string): ChatId;
69
69
  declare function toClobRewardId(value: string): ClobRewardId;
70
70
  declare function toCommentId(value: string): CommentId;
71
+ declare function toComboActivityId(value: string): ComboActivityId;
71
72
  declare function toCtfConditionId(value: string): CtfConditionId;
72
- /** @deprecated Use {@link toCtfConditionId}. */
73
- declare const toConditionId: typeof toCtfConditionId;
74
73
  declare function toComboConditionId(value: string): ComboConditionId;
75
74
  declare function toCollectionId(value: string): CollectionId;
76
75
  declare function toEventCreatorId(value: string): EventCreatorId;
@@ -84,6 +83,7 @@ declare function toIsoDateTimeString(value: string): IsoDateTimeString;
84
83
  declare function toMixedDateTimeString(value: string): MixedDateTimeString;
85
84
  declare function toMarketId(value: string): MarketId;
86
85
  declare function toNotificationId(value: number): NotificationId;
86
+ declare function toOrderId(value: string): OrderId;
87
87
  declare function toPartnerId(value: number): PartnerId;
88
88
  declare function toPaginationCursor(value: string): PaginationCursor;
89
89
  declare function toPositionId(value: string): PositionId;
@@ -106,13 +106,10 @@ declare const ApiKeySchema: z.ZodPipe<z.ZodString, z.ZodTransform<ApiKey, string
106
106
  declare const BuilderCodeSchema: z.ZodPipe<z.ZodString, z.ZodTransform<BuilderCode, string>>;
107
107
  declare const ClobRewardIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ClobRewardId, string>>;
108
108
  declare const CommentIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CommentId, string>>;
109
+ declare const ComboActivityIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ComboActivityId, string>>;
109
110
  declare const ComboConditionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
110
111
  declare const CtfConditionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
111
112
  declare const OptionalCtfConditionIdSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
112
- /** @deprecated Use {@link CtfConditionIdSchema}. */
113
- declare const ConditionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
114
- /** @deprecated Use {@link OptionalCtfConditionIdSchema}. */
115
- declare const OptionalConditionIdSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
116
113
  declare const EvmAddressSchema: z.ZodPipe<z.ZodString, z.ZodTransform<EvmAddress, string>>;
117
114
  declare const EpochMillisecondsSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
118
115
  declare const EpochSecondsToMillisecondsSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
@@ -123,7 +120,7 @@ declare const OptionalDateLikeToIsoDateTimeStringSchema: z.ZodUnion<readonly [z.
123
120
  declare const EpochMillisecondsToIsoDateTimeStringSchema: 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>>]>;
124
121
  declare const OptionalEpochMillisecondsToIsoDateTimeStringSchema: 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>>]>;
125
122
  declare const EventIdSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<EventId, string>>;
126
- declare const TickSizeValueSchema: z.ZodUnion<readonly [z.ZodLiteral<0.1>, z.ZodLiteral<0.01>, z.ZodLiteral<0.001>, z.ZodLiteral<0.0001>]>;
123
+ declare const TickSizeValueSchema: 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>]>;
127
124
  declare const IsoDateTimeStringSchema: z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>;
128
125
  declare const IsoCalendarDateStringSchema: z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoCalendarDateString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoCalendarDateString, Date>>]>;
129
126
  declare const MixedDateTimeStringSchema: z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>;
@@ -134,9 +131,10 @@ declare const InternalUserIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<Intern
134
131
  declare const MarketIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
135
132
  declare const NotificationIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<NotificationId, number>>;
136
133
  declare const CommentParentEntityTypeSchema: z.ZodEnum<typeof CommentParentEntityType>;
134
+ declare const OrderIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<OrderId, string>>;
137
135
  declare const OrderSideSchema: z.ZodEnum<typeof OrderSide>;
138
136
  declare const OrderTypeSchema: z.ZodEnum<typeof OrderType>;
139
- declare const PaginationCursorSchema: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
137
+ declare const PaginationCursorSchema: z.ZodCustom<PaginationCursor, PaginationCursor>;
140
138
  declare const PositionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
141
139
  declare const QuestionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
142
140
  declare const ResolutionRequestIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ResolutionRequestId, string>>;
@@ -162,5 +160,11 @@ type TickSizeValue = z.output<typeof TickSizeValueSchema>;
162
160
  * with `.nullish()` when the field can also be absent.
163
161
  */
164
162
  declare function emptyStringToNull(value: unknown): unknown;
163
+ /**
164
+ * Optional decimal field whose upstream serialization uses an empty string
165
+ * for missing values. Normalizes `''` to `null` so consumers never receive
166
+ * an empty `DecimalString`; populated values parse as `DecimalStringSchema`.
167
+ */
168
+ declare const OptionalDecimalStringSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>>>>;
165
169
 
166
- export { type ApiKey, ApiKeySchema, type BaseUnits, BaseUnitsSchema, type BestLineId, type BuilderCode, BuilderCodeSchema, type CategoryId, CategoryIdSchema, type ChatId, type ClobRewardId, ClobRewardIdSchema, type CollectionId, type ComboConditionId, ComboConditionIdSchema, type CommentId, CommentIdSchema, CommentParentEntityType, CommentParentEntityTypeSchema, type ConditionId, ConditionIdSchema, type CtfConditionId, CtfConditionIdSchema, DateLikeToIsoDateTimeStringSchema, type DecimalString, DecimalStringSchema, DecimalishSchema, E6BigIntStringToDecimalStringSchema, EpochLikeToIsoDateTimeStringSchema, type EpochMilliseconds, EpochMillisecondsSchema, EpochMillisecondsStringSchema, EpochMillisecondsToIsoDateTimeStringSchema, EpochSecondsToMillisecondsSchema, type EventCreatorId, type EventExternalPartnerMappingId, type EventId, EventIdSchema, EvmAddressSchema, ISOCalendarDateSchema, type ISOCalendarDateString, type ISODateString, ISODateStringSchema, type ImageOptimizationId, ImageOptimizationIdSchema, type InternalUserId, InternalUserIdSchema, type IsoCalendarDateString, IsoCalendarDateStringSchema, type IsoDateTimeString, IsoDateTimeStringSchema, type MarketId, MarketIdSchema, type MixedDateTimeString, MixedDateTimeStringSchema, type NotificationId, NotificationIdSchema, OptionalConditionIdSchema, OptionalCtfConditionIdSchema, OptionalDateLikeToIsoDateTimeStringSchema, OptionalEpochMillisecondsToIsoDateTimeStringSchema, OrderSide, OrderSideSchema, OrderType, OrderTypeSchema, type PaginationCursor, PaginationCursorSchema, type PartnerId, type PositionId, PositionIdSchema, PositiveDecimalNumberSchema, type QuestionId, QuestionIdSchema, type ResolutionRequestId, ResolutionRequestIdSchema, type RfqId, RfqIdSchema, type RfqQuoteId, RfqQuoteIdSchema, type RfqRequestorPublicId, RfqRequestorPublicIdSchema, type SeriesId, type SportId, type TagId, TagIdSchema, type TeamId, type TemplateId, type TickSizeValue, TickSizeValueSchema, type TokenId, TokenIdSchema, type TransactionId, TransactionIdSchema, TxHashSchema, type Uuid, emptyStringToNull, toApiKey, toBaseUnits, toBestLineId, toBuilderCode, toCategoryId, toChatId, toClobRewardId, toCollectionId, toComboConditionId, toCommentId, toConditionId, toCtfConditionId, toDecimalString, toEpochMilliseconds, toEventCreatorId, toEventExternalPartnerMappingId, toEventId, toImageOptimizationId, toInternalUserId, toIsoCalendarDateString, toIsoDateTimeString, toMarketId, toMixedDateTimeString, toNotificationId, toPaginationCursor, toPartnerId, toPositionId, toQuestionId, toResolutionRequestId, toRfqId, toRfqQuoteId, toRfqRequestorPublicId, toSeriesId, toSportId, toTagId, toTeamId, toTemplateId, toTokenId, toTransactionId, toUuid };
170
+ export { type ApiKey, ApiKeySchema, type BaseUnits, BaseUnitsSchema, type BestLineId, type BuilderCode, BuilderCodeSchema, type CategoryId, CategoryIdSchema, type ChatId, type ClobRewardId, ClobRewardIdSchema, type CollectionId, type ComboActivityId, ComboActivityIdSchema, type ComboConditionId, ComboConditionIdSchema, type CommentId, CommentIdSchema, CommentParentEntityType, CommentParentEntityTypeSchema, type CtfConditionId, CtfConditionIdSchema, DateLikeToIsoDateTimeStringSchema, type DecimalString, DecimalStringSchema, DecimalishSchema, E6BigIntStringToDecimalStringSchema, EpochLikeToIsoDateTimeStringSchema, type EpochMilliseconds, EpochMillisecondsSchema, EpochMillisecondsStringSchema, EpochMillisecondsToIsoDateTimeStringSchema, EpochSecondsToMillisecondsSchema, type EventCreatorId, type EventExternalPartnerMappingId, type EventId, EventIdSchema, EvmAddressSchema, ISOCalendarDateSchema, type ISOCalendarDateString, type ISODateString, ISODateStringSchema, type ImageOptimizationId, ImageOptimizationIdSchema, type InternalUserId, InternalUserIdSchema, type IsoCalendarDateString, IsoCalendarDateStringSchema, type IsoDateTimeString, IsoDateTimeStringSchema, type MarketId, MarketIdSchema, type MixedDateTimeString, MixedDateTimeStringSchema, type NotificationId, NotificationIdSchema, OptionalCtfConditionIdSchema, OptionalDateLikeToIsoDateTimeStringSchema, OptionalDecimalStringSchema, OptionalEpochMillisecondsToIsoDateTimeStringSchema, type OrderId, OrderIdSchema, OrderSide, OrderSideSchema, OrderType, OrderTypeSchema, type PaginationCursor, PaginationCursorSchema, type PartnerId, type PositionId, PositionIdSchema, PositiveDecimalNumberSchema, type QuestionId, QuestionIdSchema, type ResolutionRequestId, ResolutionRequestIdSchema, type RfqId, RfqIdSchema, type RfqQuoteId, RfqQuoteIdSchema, type RfqRequestorPublicId, RfqRequestorPublicIdSchema, type SeriesId, type SportId, type TagId, TagIdSchema, type TeamId, type TemplateId, type TickSizeValue, TickSizeValueSchema, type TokenId, TokenIdSchema, type TransactionId, TransactionIdSchema, TxHashSchema, type Uuid, emptyStringToNull, toApiKey, toBaseUnits, toBestLineId, toBuilderCode, toCategoryId, toChatId, toClobRewardId, toCollectionId, toComboActivityId, toComboConditionId, toCommentId, toCtfConditionId, toDecimalString, toEpochMilliseconds, toEventCreatorId, toEventExternalPartnerMappingId, toEventId, toImageOptimizationId, toInternalUserId, toIsoCalendarDateString, toIsoDateTimeString, toMarketId, toMixedDateTimeString, toNotificationId, toOrderId, toPaginationCursor, toPartnerId, toPositionId, toQuestionId, toResolutionRequestId, toRfqId, toRfqQuoteId, toRfqRequestorPublicId, toSeriesId, toSportId, toTagId, toTeamId, toTemplateId, toTokenId, toTransactionId, toUuid };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{S as ApiKeySchema,La as BaseUnitsSchema,T as BuilderCodeSchema,R as CategoryIdSchema,U as ClobRewardIdSchema,W as ComboConditionIdSchema,V as CommentIdSchema,a as CommentParentEntityType,ta as CommentParentEntityTypeSchema,Z as ConditionIdSchema,X as CtfConditionIdSchema,da as DateLikeToIsoDateTimeStringSchema,Ha as DecimalStringSchema,Ja as DecimalishSchema,Ia as E6BigIntStringToDecimalStringSchema,ea as EpochLikeToIsoDateTimeStringSchema,aa as EpochMillisecondsSchema,ca as EpochMillisecondsStringSchema,ga as EpochMillisecondsToIsoDateTimeStringSchema,ba as EpochSecondsToMillisecondsSchema,ia as EventIdSchema,$ as EvmAddressSchema,oa as ISOCalendarDateSchema,na as ISODateStringSchema,pa as ImageOptimizationIdSchema,qa as InternalUserIdSchema,la as IsoCalendarDateStringSchema,ka as IsoDateTimeStringSchema,ra as MarketIdSchema,ma as MixedDateTimeStringSchema,sa as NotificationIdSchema,_ as OptionalConditionIdSchema,Y as OptionalCtfConditionIdSchema,fa as OptionalDateLikeToIsoDateTimeStringSchema,ha as OptionalEpochMillisecondsToIsoDateTimeStringSchema,b as OrderSide,ua as OrderSideSchema,c as OrderType,va as OrderTypeSchema,wa as PaginationCursorSchema,xa as PositionIdSchema,Ka as PositiveDecimalNumberSchema,ya as QuestionIdSchema,za as ResolutionRequestIdSchema,Aa as RfqIdSchema,Ba as RfqQuoteIdSchema,Ca as RfqRequestorPublicIdSchema,Da as TagIdSchema,ja as TickSizeValueSchema,Ea as TokenIdSchema,Fa as TransactionIdSchema,Ga as TxHashSchema,Ma as emptyStringToNull,g as toApiKey,Q as toBaseUnits,d as toBestLineId,e as toBuilderCode,h as toCategoryId,i as toChatId,j as toClobRewardId,o as toCollectionId,n as toComboConditionId,k as toCommentId,m as toConditionId,l as toCtfConditionId,P as toDecimalString,r as toEpochMilliseconds,p as toEventCreatorId,q as toEventExternalPartnerMappingId,s as toEventId,t as toImageOptimizationId,u as toInternalUserId,v as toIsoCalendarDateString,w as toIsoDateTimeString,y as toMarketId,x as toMixedDateTimeString,z as toNotificationId,B as toPaginationCursor,A as toPartnerId,C as toPositionId,D as toQuestionId,E as toResolutionRequestId,F as toRfqId,G as toRfqQuoteId,H as toRfqRequestorPublicId,I as toSeriesId,J as toSportId,K as toTagId,L as toTeamId,M as toTemplateId,O as toTokenId,N as toTransactionId,f as toUuid}from'./chunk-SB2LAVJ4.js';//# sourceMappingURL=index.js.map
1
+ export{T as ApiKeySchema,Ma as BaseUnitsSchema,U as BuilderCodeSchema,S as CategoryIdSchema,V as ClobRewardIdSchema,X as ComboActivityIdSchema,Y as ComboConditionIdSchema,W as CommentIdSchema,a as CommentParentEntityType,ta as CommentParentEntityTypeSchema,Z as CtfConditionIdSchema,da as DateLikeToIsoDateTimeStringSchema,Ia as DecimalStringSchema,Ka as DecimalishSchema,Ja as E6BigIntStringToDecimalStringSchema,ea as EpochLikeToIsoDateTimeStringSchema,aa as EpochMillisecondsSchema,ca as EpochMillisecondsStringSchema,ga as EpochMillisecondsToIsoDateTimeStringSchema,ba as EpochSecondsToMillisecondsSchema,ia as EventIdSchema,$ as EvmAddressSchema,oa as ISOCalendarDateSchema,na as ISODateStringSchema,pa as ImageOptimizationIdSchema,qa as InternalUserIdSchema,la as IsoCalendarDateStringSchema,ka as IsoDateTimeStringSchema,ra as MarketIdSchema,ma as MixedDateTimeStringSchema,sa as NotificationIdSchema,_ as OptionalCtfConditionIdSchema,fa as OptionalDateLikeToIsoDateTimeStringSchema,Oa as OptionalDecimalStringSchema,ha as OptionalEpochMillisecondsToIsoDateTimeStringSchema,ua as OrderIdSchema,b as OrderSide,va as OrderSideSchema,c as OrderType,wa as OrderTypeSchema,xa as PaginationCursorSchema,ya as PositionIdSchema,La as PositiveDecimalNumberSchema,za as QuestionIdSchema,Aa as ResolutionRequestIdSchema,Ba as RfqIdSchema,Ca as RfqQuoteIdSchema,Da as RfqRequestorPublicIdSchema,Ea as TagIdSchema,ja as TickSizeValueSchema,Fa as TokenIdSchema,Ga as TransactionIdSchema,Ha as TxHashSchema,Na as emptyStringToNull,g as toApiKey,R as toBaseUnits,d as toBestLineId,e as toBuilderCode,h as toCategoryId,i as toChatId,j as toClobRewardId,o as toCollectionId,l as toComboActivityId,n as toComboConditionId,k as toCommentId,m as toCtfConditionId,Q as toDecimalString,r as toEpochMilliseconds,p as toEventCreatorId,q as toEventExternalPartnerMappingId,s as toEventId,t as toImageOptimizationId,u as toInternalUserId,v as toIsoCalendarDateString,w as toIsoDateTimeString,y as toMarketId,x as toMixedDateTimeString,z as toNotificationId,A as toOrderId,C as toPaginationCursor,B as toPartnerId,D as toPositionId,E as toQuestionId,F as toResolutionRequestId,G as toRfqId,H as toRfqQuoteId,I as toRfqRequestorPublicId,J as toSeriesId,K as toSportId,L as toTagId,M as toTeamId,N as toTemplateId,P as toTokenId,O as toTransactionId,f as toUuid}from'./chunk-D6QJEBYH.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map