@polymarket/bindings 0.1.0-beta.8 → 0.1.0-beta.9

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;
@@ -6595,7 +6595,7 @@ declare const PublicSearchResponseSchema: z.ZodObject<{
6595
6595
  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
6596
  umaEndDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
6597
6597
  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>]>>>;
6598
+ 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
6599
  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
6600
  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
6601
  curationOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -6828,7 +6828,7 @@ declare const PublicSearchResponseSchema: z.ZodObject<{
6828
6828
  groupItemThreshold?: DecimalString | null | undefined;
6829
6829
  umaEndDate?: MixedDateTimeString | null | undefined;
6830
6830
  enableOrderBook?: boolean | null | undefined;
6831
- orderPriceMinTickSize?: 0.1 | 0.01 | 0.001 | 0.0001 | null | undefined;
6831
+ orderPriceMinTickSize?: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001 | null | undefined;
6832
6832
  orderMinSize?: DecimalString | null | undefined;
6833
6833
  curationOrder?: number | null | undefined;
6834
6834
  volumeNum?: DecimalString | null | undefined;
@@ -7864,7 +7864,7 @@ declare const SeriesSchema: z.ZodObject<{
7864
7864
  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
7865
  umaEndDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
7866
7866
  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>]>>>;
7867
+ 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
7868
  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
7869
  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
7870
  curationOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -8097,7 +8097,7 @@ declare const SeriesSchema: z.ZodObject<{
8097
8097
  groupItemThreshold?: DecimalString | null | undefined;
8098
8098
  umaEndDate?: MixedDateTimeString | null | undefined;
8099
8099
  enableOrderBook?: boolean | null | undefined;
8100
- orderPriceMinTickSize?: 0.1 | 0.01 | 0.001 | 0.0001 | null | undefined;
8100
+ orderPriceMinTickSize?: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001 | null | undefined;
8101
8101
  orderMinSize?: DecimalString | null | undefined;
8102
8102
  curationOrder?: number | null | undefined;
8103
8103
  volumeNum?: DecimalString | null | undefined;
@@ -9043,7 +9043,7 @@ declare const ListSeriesResponseSchema: z.ZodArray<z.ZodObject<{
9043
9043
  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
9044
  umaEndDate: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>>>;
9045
9045
  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>]>>>;
9046
+ 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
9047
  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
9048
  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
9049
  curationOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -9276,7 +9276,7 @@ declare const ListSeriesResponseSchema: z.ZodArray<z.ZodObject<{
9276
9276
  groupItemThreshold?: DecimalString | null | undefined;
9277
9277
  umaEndDate?: MixedDateTimeString | null | undefined;
9278
9278
  enableOrderBook?: boolean | null | undefined;
9279
- orderPriceMinTickSize?: 0.1 | 0.01 | 0.001 | 0.0001 | null | undefined;
9279
+ orderPriceMinTickSize?: 0.1 | 0.01 | 0.005 | 0.0025 | 0.001 | 0.0001 | null | undefined;
9280
9280
  orderMinSize?: DecimalString | null | undefined;
9281
9281
  curationOrder?: number | null | undefined;
9282
9282
  volumeNum?: DecimalString | null | undefined;
@@ -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 as a$1,F,e,t,s,r}from'../chunk-GYP7YNXL.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-GYP7YNXL.js';import {ka,$,Da}from'../chunk-VBHCYSM7.js';export{Da as TagIdSchema}from'../chunk-VBHCYSM7.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
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.d.ts CHANGED
@@ -123,7 +123,7 @@ declare const OptionalDateLikeToIsoDateTimeStringSchema: z.ZodUnion<readonly [z.
123
123
  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
124
  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
125
  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>]>;
126
+ 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
127
  declare const IsoDateTimeStringSchema: z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>;
128
128
  declare const IsoCalendarDateStringSchema: z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoCalendarDateString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoCalendarDateString, Date>>]>;
129
129
  declare const MixedDateTimeStringSchema: z.ZodPipe<z.ZodString, z.ZodTransform<MixedDateTimeString, string>>;
@@ -136,7 +136,7 @@ declare const NotificationIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<Notifi
136
136
  declare const CommentParentEntityTypeSchema: z.ZodEnum<typeof CommentParentEntityType>;
137
137
  declare const OrderSideSchema: z.ZodEnum<typeof OrderSide>;
138
138
  declare const OrderTypeSchema: z.ZodEnum<typeof OrderType>;
139
- declare const PaginationCursorSchema: z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>;
139
+ declare const PaginationCursorSchema: z.ZodCustom<PaginationCursor, PaginationCursor>;
140
140
  declare const PositionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
141
141
  declare const QuestionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<QuestionId, string>>;
142
142
  declare const ResolutionRequestIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<ResolutionRequestId, string>>;
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{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-VBHCYSM7.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  import * as _polymarket_types from '@polymarket/types';
2
2
  import { EvmAddress, PrivateKey, TxHash } from '@polymarket/types';
3
- import { DecimalString, BaseUnits, EpochMilliseconds } from './index.js';
3
+ import { DecimalString, BaseUnits, EpochMilliseconds, OrderSide } from './index.js';
4
4
  import { z } from 'zod';
5
5
 
6
6
  type Tagged<T, Tag extends string> = T & {
@@ -188,6 +188,23 @@ declare const PerpsCancelOrderResultSchema: z.ZodPipe<z.ZodObject<{
188
188
  error?: string | undefined;
189
189
  }>>;
190
190
  type PerpsCancelOrderResult = z.infer<typeof PerpsCancelOrderResultSchema>;
191
+ declare const PerpsUpdateLeverageResultSchema: z.ZodPipe<z.ZodObject<{
192
+ status: z.ZodLiteral<"ok">;
193
+ instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
194
+ leverage: z.ZodNumber;
195
+ cross: z.ZodBoolean;
196
+ }, z.core.$strip>, z.ZodTransform<{
197
+ status: "ok";
198
+ instrumentId: PerpsInstrumentId;
199
+ leverage: number;
200
+ crossMargin: boolean;
201
+ }, {
202
+ status: "ok";
203
+ instrument_id: PerpsInstrumentId;
204
+ leverage: number;
205
+ cross: boolean;
206
+ }>>;
207
+ type PerpsUpdateLeverageResult = z.infer<typeof PerpsUpdateLeverageResultSchema>;
191
208
  declare const PerpsOrderSchema: z.ZodPipe<z.ZodObject<{
192
209
  order_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
193
210
  instrument_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
@@ -205,7 +222,7 @@ declare const PerpsOrderSchema: z.ZodPipe<z.ZodObject<{
205
222
  }, z.core.$strip>, z.ZodTransform<{
206
223
  id: PerpsOrderId;
207
224
  instrumentId: PerpsInstrumentId;
208
- buy: boolean;
225
+ side: OrderSide;
209
226
  price: DecimalString;
210
227
  quantity: DecimalString;
211
228
  timeInForce: PerpsTimeInForce;
@@ -249,7 +266,7 @@ declare const FetchPerpsOrdersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
249
266
  }, z.core.$strip>, z.ZodTransform<{
250
267
  id: PerpsOrderId;
251
268
  instrumentId: PerpsInstrumentId;
252
- buy: boolean;
269
+ side: OrderSide;
253
270
  price: DecimalString;
254
271
  quantity: DecimalString;
255
272
  timeInForce: PerpsTimeInForce;
@@ -292,7 +309,7 @@ declare const FetchPerpsOpenOrdersResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObje
292
309
  }, z.core.$strip>, z.ZodTransform<{
293
310
  id: PerpsOrderId;
294
311
  instrumentId: PerpsInstrumentId;
295
- buy: boolean;
312
+ side: OrderSide;
296
313
  price: DecimalString;
297
314
  quantity: DecimalString;
298
315
  timeInForce: PerpsTimeInForce;
@@ -335,7 +352,7 @@ declare const PerpsOrderUpdateSchema: z.ZodPipe<z.ZodObject<{
335
352
  }, z.core.$strip>, z.ZodTransform<{
336
353
  id: PerpsOrderId;
337
354
  instrumentId: PerpsInstrumentId;
338
- buy: boolean;
355
+ side: OrderSide;
339
356
  price: DecimalString;
340
357
  quantity: DecimalString;
341
358
  timeInForce: PerpsTimeInForce;
@@ -513,4 +530,4 @@ declare const PerpsAccountFillUpdateSchema: z.ZodPipe<z.ZodObject<{
513
530
  coid?: string | undefined;
514
531
  }>>;
515
532
 
516
- export { PerpsTimeInForceSchema as $, type PerpsDepositAmount as A, PerpsDepositStatusSchema as B, type PerpsFundingInterval as C, PerpsFundingIntervalSchema as D, PerpsInstrumentCategorySchema as E, FetchPerpsOpenOrdersResponseSchema as F, PerpsInstrumentIdSchema as G, PerpsInstrumentTypeSchema as H, PerpsInternalTransferDirectionSchema as I, PerpsInternalTransferIdSchema as J, PerpsKlineInterval as K, ListPerpsFillsResponseSchema as L, PerpsKlineIntervalSchema as M, type PerpsOrder as N, type PerpsOrderId as O, type PerpsInstrumentId as P, PerpsOrderIdSchema as Q, PerpsOrderSchema as R, PerpsOrderStatus as S, PerpsOrderStatusSchema as T, PerpsOrderUpdateSchema as U, PerpsPnlInterval as V, PerpsPnlIntervalSchema as W, type PerpsPostOrderAck as X, PerpsPostOrderAckSchema as Y, PerpsSideSchema as Z, PerpsTimeInForce as _, PerpsDepositStatus as a, PerpsTradeIdSchema as a0, type PerpsTxHash as a1, PerpsTxHashSchema as a2, type PerpsWithdrawalAmount as a3, PerpsWithdrawalIdSchema as a4, PerpsWithdrawalStatusSchema as a5, decimalString as a6, perpsBaseUnits as a7, perpsDecimal as a8, type PerpsWithdrawalId as b, PerpsWithdrawalStatus as c, type PerpsInternalTransferId as d, PerpsInternalTransferDirection as e, PerpsInstrumentType as f, PerpsInstrumentCategory as g, type PerpsTradeId as h, PerpsSide as i, FetchPerpsOrdersResponseSchema as j, type PerpsAccountFill as k, PerpsAccountFillSchema as l, PerpsAccountFillUpdateSchema as m, PerpsAssetSchema as n, type PerpsCancelOrderResult as o, PerpsCancelOrderResultSchema as p, type PerpsClientOrderId as q, PerpsClientOrderIdSchema as r, type PerpsCommandAck as s, PerpsCommandAckSchema as t, PerpsCommandStatusSchema as u, type PerpsCredentials as v, PerpsDataResponseSchema as w, type PerpsDecimal as x, type PerpsDecimalInput as y, PerpsDecimalInputSchema as z };
533
+ export { PerpsTimeInForceSchema as $, type PerpsDepositAmount as A, PerpsDepositStatusSchema as B, type PerpsFundingInterval as C, PerpsFundingIntervalSchema as D, PerpsInstrumentCategorySchema as E, FetchPerpsOpenOrdersResponseSchema as F, PerpsInstrumentIdSchema as G, PerpsInstrumentTypeSchema as H, PerpsInternalTransferDirectionSchema as I, PerpsInternalTransferIdSchema as J, PerpsKlineInterval as K, ListPerpsFillsResponseSchema as L, PerpsKlineIntervalSchema as M, type PerpsOrder as N, type PerpsOrderId as O, type PerpsInstrumentId as P, PerpsOrderIdSchema as Q, PerpsOrderSchema as R, PerpsOrderStatus as S, PerpsOrderStatusSchema as T, PerpsOrderUpdateSchema as U, PerpsPnlInterval as V, PerpsPnlIntervalSchema as W, type PerpsPostOrderAck as X, PerpsPostOrderAckSchema as Y, PerpsSideSchema as Z, PerpsTimeInForce as _, PerpsDepositStatus as a, PerpsTradeIdSchema as a0, type PerpsTxHash as a1, PerpsTxHashSchema as a2, type PerpsUpdateLeverageResult as a3, PerpsUpdateLeverageResultSchema as a4, type PerpsWithdrawalAmount as a5, PerpsWithdrawalIdSchema as a6, PerpsWithdrawalStatusSchema as a7, decimalString as a8, perpsBaseUnits as a9, perpsDecimal as aa, type PerpsWithdrawalId as b, PerpsWithdrawalStatus as c, type PerpsInternalTransferId as d, PerpsInternalTransferDirection as e, PerpsInstrumentType as f, PerpsInstrumentCategory as g, type PerpsTradeId as h, PerpsSide as i, FetchPerpsOrdersResponseSchema as j, type PerpsAccountFill as k, PerpsAccountFillSchema as l, PerpsAccountFillUpdateSchema as m, PerpsAssetSchema as n, type PerpsCancelOrderResult as o, PerpsCancelOrderResultSchema as p, type PerpsClientOrderId as q, PerpsClientOrderIdSchema as r, type PerpsCommandAck as s, PerpsCommandAckSchema as t, PerpsCommandStatusSchema as u, type PerpsCredentials as v, PerpsDataResponseSchema as w, type PerpsDecimal as x, type PerpsDecimalInput as y, PerpsDecimalInputSchema as z };
@@ -1,6 +1,6 @@
1
1
  import * as _polymarket_types from '@polymarket/types';
2
- import { P as PerpsInstrumentId, a as PerpsDepositStatus, b as PerpsWithdrawalId, c as PerpsWithdrawalStatus, d as PerpsInternalTransferId, e as PerpsInternalTransferDirection, f as PerpsInstrumentType, g as PerpsInstrumentCategory, h as PerpsTradeId, i as PerpsSide } from '../orders-ByouGgI5.js';
3
- export { F as FetchPerpsOpenOrdersResponseSchema, j as FetchPerpsOrdersResponseSchema, L as ListPerpsFillsResponseSchema, k as PerpsAccountFill, l as PerpsAccountFillSchema, m as PerpsAccountFillUpdateSchema, n as PerpsAssetSchema, o as PerpsCancelOrderResult, p as PerpsCancelOrderResultSchema, q as PerpsClientOrderId, r as PerpsClientOrderIdSchema, s as PerpsCommandAck, t as PerpsCommandAckSchema, u as PerpsCommandStatusSchema, v as PerpsCredentials, w as PerpsDataResponseSchema, x as PerpsDecimal, y as PerpsDecimalInput, z as PerpsDecimalInputSchema, A as PerpsDepositAmount, B as PerpsDepositStatusSchema, C as PerpsFundingInterval, D as PerpsFundingIntervalSchema, E as PerpsInstrumentCategorySchema, G as PerpsInstrumentIdSchema, H as PerpsInstrumentTypeSchema, I as PerpsInternalTransferDirectionSchema, J as PerpsInternalTransferIdSchema, K as PerpsKlineInterval, M as PerpsKlineIntervalSchema, N as PerpsOrder, O as PerpsOrderId, Q as PerpsOrderIdSchema, R as PerpsOrderSchema, S as PerpsOrderStatus, T as PerpsOrderStatusSchema, U as PerpsOrderUpdateSchema, V as PerpsPnlInterval, W as PerpsPnlIntervalSchema, X as PerpsPostOrderAck, Y as PerpsPostOrderAckSchema, Z as PerpsSideSchema, _ as PerpsTimeInForce, $ as PerpsTimeInForceSchema, a0 as PerpsTradeIdSchema, a1 as PerpsTxHash, a2 as PerpsTxHashSchema, a3 as PerpsWithdrawalAmount, a4 as PerpsWithdrawalIdSchema, a5 as PerpsWithdrawalStatusSchema, a6 as decimalString, a7 as perpsBaseUnits, a8 as perpsDecimal } from '../orders-ByouGgI5.js';
2
+ import { P as PerpsInstrumentId, a as PerpsDepositStatus, b as PerpsWithdrawalId, c as PerpsWithdrawalStatus, d as PerpsInternalTransferId, e as PerpsInternalTransferDirection, f as PerpsInstrumentType, g as PerpsInstrumentCategory, h as PerpsTradeId, i as PerpsSide } from '../orders-B7JX0nMz.js';
3
+ export { F as FetchPerpsOpenOrdersResponseSchema, j as FetchPerpsOrdersResponseSchema, L as ListPerpsFillsResponseSchema, k as PerpsAccountFill, l as PerpsAccountFillSchema, m as PerpsAccountFillUpdateSchema, n as PerpsAssetSchema, o as PerpsCancelOrderResult, p as PerpsCancelOrderResultSchema, q as PerpsClientOrderId, r as PerpsClientOrderIdSchema, s as PerpsCommandAck, t as PerpsCommandAckSchema, u as PerpsCommandStatusSchema, v as PerpsCredentials, w as PerpsDataResponseSchema, x as PerpsDecimal, y as PerpsDecimalInput, z as PerpsDecimalInputSchema, A as PerpsDepositAmount, B as PerpsDepositStatusSchema, C as PerpsFundingInterval, D as PerpsFundingIntervalSchema, E as PerpsInstrumentCategorySchema, G as PerpsInstrumentIdSchema, H as PerpsInstrumentTypeSchema, I as PerpsInternalTransferDirectionSchema, J as PerpsInternalTransferIdSchema, K as PerpsKlineInterval, M as PerpsKlineIntervalSchema, N as PerpsOrder, O as PerpsOrderId, Q as PerpsOrderIdSchema, R as PerpsOrderSchema, S as PerpsOrderStatus, T as PerpsOrderStatusSchema, U as PerpsOrderUpdateSchema, V as PerpsPnlInterval, W as PerpsPnlIntervalSchema, X as PerpsPostOrderAck, Y as PerpsPostOrderAckSchema, Z as PerpsSideSchema, _ as PerpsTimeInForce, $ as PerpsTimeInForceSchema, a0 as PerpsTradeIdSchema, a1 as PerpsTxHash, a2 as PerpsTxHashSchema, a3 as PerpsUpdateLeverageResult, a4 as PerpsUpdateLeverageResultSchema, a5 as PerpsWithdrawalAmount, a6 as PerpsWithdrawalIdSchema, a7 as PerpsWithdrawalStatusSchema, a8 as decimalString, a9 as perpsBaseUnits, aa as perpsDecimal } from '../orders-B7JX0nMz.js';
4
4
  import { DecimalString, EpochMilliseconds, BaseUnits } from '../index.js';
5
5
  import { z } from 'zod';
6
6
 
@@ -1,2 +1,2 @@
1
- export{Q as FetchPerpsAccountConfigResponseSchema,H as FetchPerpsBalancesResponseSchema,Ca as FetchPerpsCandlesResponseSchema,Ba as FetchPerpsFeesResponseSchema,ya as FetchPerpsFundingHistoryResponseSchema,ha as FetchPerpsInstrumentsResponseSchema,La as FetchPerpsOpenOrdersResponseSchema,Ka as FetchPerpsOrdersResponseSchema,L as FetchPerpsPortfolioResponseSchema,na as FetchPerpsStatisticsResponseSchema,ja as FetchPerpsTickersResponseSchema,wa as FetchPerpsTradesResponseSchema,_ as ListPerpsDepositsResponseSchema,S as ListPerpsEquityHistoryResponseSchema,Oa as ListPerpsFillsResponseSchema,N as ListPerpsFundingPaymentsResponseSchema,U as ListPerpsPnlHistoryResponseSchema,ba as ListPerpsWithdrawalsResponseSchema,P as PerpsAccountConfigSchema,Na as PerpsAccountFillSchema,Pa as PerpsAccountFillUpdateSchema,O as PerpsAccountFundingPaymentEntrySchema,M as PerpsAccountFundingPaymentSchema,A as PerpsAssetSchema,G as PerpsBalanceSchema,sa as PerpsBboSchema,ta as PerpsBboUpdateSchema,pa as PerpsBookLevelSchema,qa as PerpsBookSchema,ra as PerpsBookUpdateSchema,Ia as PerpsCancelOrderResultSchema,la as PerpsCandleSchema,c as PerpsClientOrderIdSchema,Ga as PerpsCommandAckSchema,Fa as PerpsCommandStatusSchema,X as PerpsCreateProxyResponseSchema,W as PerpsCredentialsResponseSchema,C as PerpsDataResponseSchema,h as PerpsDecimalInputSchema,Y as PerpsDeleteProxyResponseSchema,Z as PerpsDepositSchema,m as PerpsDepositStatus,v as PerpsDepositStatusSchema,$ as PerpsDepositUpdateSchema,R as PerpsEquityPointSchema,za as PerpsFeeScheduleEntrySchema,Aa as PerpsFeesInfoSchema,g as PerpsFundingIntervalSchema,xa as PerpsFundingRateSchema,j as PerpsInstrumentCategory,s as PerpsInstrumentCategorySchema,a as PerpsInstrumentIdSchema,ga as PerpsInstrumentSchema,i as PerpsInstrumentType,r as PerpsInstrumentTypeSchema,o as PerpsInternalTransferDirection,x as PerpsInternalTransferDirectionSchema,f as PerpsInternalTransferIdSchema,ea as PerpsInternalTransferSchema,p as PerpsKlineInterval,y as PerpsKlineIntervalSchema,J as PerpsMarginSummarySchema,b as PerpsOrderIdSchema,Ja as PerpsOrderSchema,Da as PerpsOrderStatus,Ea as PerpsOrderStatusSchema,Ma as PerpsOrderUpdateSchema,q as PerpsPnlInterval,z as PerpsPnlIntervalSchema,T as PerpsPnlPointSchema,I as PerpsPortfolioPositionSchema,K as PerpsPortfolioSchema,Ha as PerpsPostOrderAckSchema,V as PerpsProxyKeySchema,ua as PerpsPublicTradeSchema,va as PerpsPublicTradeUpdateSchema,fa as PerpsRiskTierSchema,k as PerpsSide,t as PerpsSideSchema,ma as PerpsStatisticSchema,oa as PerpsStatisticUpdateSchema,ka as PerpsTickerEntrySchema,ia as PerpsTickerSchema,l as PerpsTimeInForce,u as PerpsTimeInForceSchema,d as PerpsTradeIdSchema,B as PerpsTxHashSchema,ca as PerpsWithdrawResponseSchema,e as PerpsWithdrawalIdSchema,aa as PerpsWithdrawalSchema,n as PerpsWithdrawalStatus,w as PerpsWithdrawalStatusSchema,da as PerpsWithdrawalUpdateSchema,F as decimalString,E as perpsBaseUnits,D as perpsDecimal}from'../chunk-WZTOZWYR.js';import'../chunk-SB2LAVJ4.js';//# sourceMappingURL=index.js.map
1
+ export{Q as FetchPerpsAccountConfigResponseSchema,H as FetchPerpsBalancesResponseSchema,Ca as FetchPerpsCandlesResponseSchema,Ba as FetchPerpsFeesResponseSchema,ya as FetchPerpsFundingHistoryResponseSchema,ha as FetchPerpsInstrumentsResponseSchema,Ma as FetchPerpsOpenOrdersResponseSchema,La as FetchPerpsOrdersResponseSchema,L as FetchPerpsPortfolioResponseSchema,na as FetchPerpsStatisticsResponseSchema,ja as FetchPerpsTickersResponseSchema,wa as FetchPerpsTradesResponseSchema,_ as ListPerpsDepositsResponseSchema,S as ListPerpsEquityHistoryResponseSchema,Pa as ListPerpsFillsResponseSchema,N as ListPerpsFundingPaymentsResponseSchema,U as ListPerpsPnlHistoryResponseSchema,ba as ListPerpsWithdrawalsResponseSchema,P as PerpsAccountConfigSchema,Oa as PerpsAccountFillSchema,Qa as PerpsAccountFillUpdateSchema,O as PerpsAccountFundingPaymentEntrySchema,M as PerpsAccountFundingPaymentSchema,A as PerpsAssetSchema,G as PerpsBalanceSchema,sa as PerpsBboSchema,ta as PerpsBboUpdateSchema,pa as PerpsBookLevelSchema,qa as PerpsBookSchema,ra as PerpsBookUpdateSchema,Ia as PerpsCancelOrderResultSchema,la as PerpsCandleSchema,c as PerpsClientOrderIdSchema,Ga as PerpsCommandAckSchema,Fa as PerpsCommandStatusSchema,X as PerpsCreateProxyResponseSchema,W as PerpsCredentialsResponseSchema,C as PerpsDataResponseSchema,h as PerpsDecimalInputSchema,Y as PerpsDeleteProxyResponseSchema,Z as PerpsDepositSchema,m as PerpsDepositStatus,v as PerpsDepositStatusSchema,$ as PerpsDepositUpdateSchema,R as PerpsEquityPointSchema,za as PerpsFeeScheduleEntrySchema,Aa as PerpsFeesInfoSchema,g as PerpsFundingIntervalSchema,xa as PerpsFundingRateSchema,j as PerpsInstrumentCategory,s as PerpsInstrumentCategorySchema,a as PerpsInstrumentIdSchema,ga as PerpsInstrumentSchema,i as PerpsInstrumentType,r as PerpsInstrumentTypeSchema,o as PerpsInternalTransferDirection,x as PerpsInternalTransferDirectionSchema,f as PerpsInternalTransferIdSchema,ea as PerpsInternalTransferSchema,p as PerpsKlineInterval,y as PerpsKlineIntervalSchema,J as PerpsMarginSummarySchema,b as PerpsOrderIdSchema,Ka as PerpsOrderSchema,Da as PerpsOrderStatus,Ea as PerpsOrderStatusSchema,Na as PerpsOrderUpdateSchema,q as PerpsPnlInterval,z as PerpsPnlIntervalSchema,T as PerpsPnlPointSchema,I as PerpsPortfolioPositionSchema,K as PerpsPortfolioSchema,Ha as PerpsPostOrderAckSchema,V as PerpsProxyKeySchema,ua as PerpsPublicTradeSchema,va as PerpsPublicTradeUpdateSchema,fa as PerpsRiskTierSchema,k as PerpsSide,t as PerpsSideSchema,ma as PerpsStatisticSchema,oa as PerpsStatisticUpdateSchema,ka as PerpsTickerEntrySchema,ia as PerpsTickerSchema,l as PerpsTimeInForce,u as PerpsTimeInForceSchema,d as PerpsTradeIdSchema,B as PerpsTxHashSchema,Ja as PerpsUpdateLeverageResultSchema,ca as PerpsWithdrawResponseSchema,e as PerpsWithdrawalIdSchema,aa as PerpsWithdrawalSchema,n as PerpsWithdrawalStatus,w as PerpsWithdrawalStatusSchema,da as PerpsWithdrawalUpdateSchema,F as decimalString,E as perpsBaseUnits,D as perpsDecimal}from'../chunk-KYFSCD3H.js';import'../chunk-VBHCYSM7.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import {$,Fa,Ga}from'../chunk-SB2LAVJ4.js';import {z}from'zod';var i=(n=>(n.SAFE="SAFE",n.PROXY="PROXY",n.SAFE_CREATE="SAFE-CREATE",n.WALLET="WALLET",n.WALLET_CREATE="WALLET-CREATE",n))(i||{}),D=z.enum(i),u=z.enum(["PROXY","SAFE","SAFE-CREATE"]),c=(o=>(o.STATE_NEW="STATE_NEW",o.STATE_EXECUTED="STATE_EXECUTED",o.STATE_MINED="STATE_MINED",o.STATE_CONFIRMED="STATE_CONFIRMED",o.STATE_INVALID="STATE_INVALID",o.STATE_FAILED="STATE_FAILED",o))(c||{}),m=z.enum(c),y=z.object({baseGas:z.string().optional(),gasLimit:z.string().optional(),gasPrice:z.string().optional(),gasToken:$.optional(),operation:z.string().optional(),payment:z.string().optional(),paymentReceiver:$.optional(),paymentToken:$.optional(),refundReceiver:$.optional(),relay:$.optional(),relayHub:$.optional(),relayerFee:z.string().optional(),safeTxnGas:z.string().optional()}),d=z.object({address:$,nonce:z.string().min(1)}),R=z.object({data:z.string().min(1),from:$,metadata:z.string().optional(),nonce:z.string().min(1).optional(),proxyWallet:$,signature:z.string().min(1),signatureParams:y,to:$,type:u,value:z.string().optional()}),T=z.object({data:z.string().min(1),target:$,value:z.string().min(1)}),x=z.object({calls:z.array(T).min(1),deadline:z.string().min(1),depositWallet:$}),S=z.object({depositWalletParams:x,from:$,metadata:z.string().optional(),nonce:z.string().min(1),signature:z.string().min(1),to:$,type:z.literal("WALLET")}),g=z.object({from:$,metadata:z.string().optional(),to:$,type:z.literal("WALLET-CREATE")}),W=z.union([R,S,g]),f=z.object({state:m,transactionHash:Ga.nullish().transform(a=>a??null),transactionID:Fa}).transform(({transactionHash:a,transactionID:s,...r})=>({...r,transactionHash:a??null,transactionId:s})),L=z.object({deployed:z.boolean()}),_=z.object({error_msg:z.string().nullish(),state:m,transaction_hash:z.union([z.literal(""),Ga]).transform(a=>a===""?null:a),transaction_id:Fa}).transform(({error_msg:a,transaction_hash:s,transaction_id:r,...E})=>({...E,errorMsg:a??null,transactionHash:s??null,transactionId:r}));export{T as DepositWalletCallSchema,x as DepositWalletParamsSchema,_ as GaslessTransactionSchema,L as RelayerDeployedResponseSchema,g as RelayerDepositWalletCreateRequestSchema,S as RelayerDepositWalletExecuteRequestSchema,d as RelayerExecuteParamsSchema,W as RelayerExecuteRequestSchema,f as RelayerExecuteResponseSchema,R as RelayerLegacyExecuteRequestSchema,c as RelayerTransactionState,i as RelayerTransactionType,D as RelayerTransactionTypeSchema};//# sourceMappingURL=index.js.map
1
+ import {$,Fa,Ga}from'../chunk-VBHCYSM7.js';import {z}from'zod';var i=(n=>(n.SAFE="SAFE",n.PROXY="PROXY",n.SAFE_CREATE="SAFE-CREATE",n.WALLET="WALLET",n.WALLET_CREATE="WALLET-CREATE",n))(i||{}),D=z.enum(i),u=z.enum(["PROXY","SAFE","SAFE-CREATE"]),c=(o=>(o.STATE_NEW="STATE_NEW",o.STATE_EXECUTED="STATE_EXECUTED",o.STATE_MINED="STATE_MINED",o.STATE_CONFIRMED="STATE_CONFIRMED",o.STATE_INVALID="STATE_INVALID",o.STATE_FAILED="STATE_FAILED",o))(c||{}),m=z.enum(c),y=z.object({baseGas:z.string().optional(),gasLimit:z.string().optional(),gasPrice:z.string().optional(),gasToken:$.optional(),operation:z.string().optional(),payment:z.string().optional(),paymentReceiver:$.optional(),paymentToken:$.optional(),refundReceiver:$.optional(),relay:$.optional(),relayHub:$.optional(),relayerFee:z.string().optional(),safeTxnGas:z.string().optional()}),d=z.object({address:$,nonce:z.string().min(1)}),R=z.object({data:z.string().min(1),from:$,metadata:z.string().optional(),nonce:z.string().min(1).optional(),proxyWallet:$,signature:z.string().min(1),signatureParams:y,to:$,type:u,value:z.string().optional()}),T=z.object({data:z.string().min(1),target:$,value:z.string().min(1)}),x=z.object({calls:z.array(T).min(1),deadline:z.string().min(1),depositWallet:$}),S=z.object({depositWalletParams:x,from:$,metadata:z.string().optional(),nonce:z.string().min(1),signature:z.string().min(1),to:$,type:z.literal("WALLET")}),g=z.object({from:$,metadata:z.string().optional(),to:$,type:z.literal("WALLET-CREATE")}),W=z.union([R,S,g]),f=z.object({state:m,transactionHash:Ga.nullish().transform(a=>a??null),transactionID:Fa}).transform(({transactionHash:a,transactionID:s,...r})=>({...r,transactionHash:a??null,transactionId:s})),L=z.object({deployed:z.boolean()}),_=z.object({error_msg:z.string().nullish(),state:m,transaction_hash:z.union([z.literal(""),Ga]).transform(a=>a===""?null:a),transaction_id:Fa}).transform(({error_msg:a,transaction_hash:s,transaction_id:r,...E})=>({...E,errorMsg:a??null,transactionHash:s??null,transactionId:r}));export{T as DepositWalletCallSchema,x as DepositWalletParamsSchema,_ as GaslessTransactionSchema,L as RelayerDeployedResponseSchema,g as RelayerDepositWalletCreateRequestSchema,S as RelayerDepositWalletExecuteRequestSchema,d as RelayerExecuteParamsSchema,W as RelayerExecuteRequestSchema,f as RelayerExecuteResponseSchema,R as RelayerLegacyExecuteRequestSchema,c as RelayerTransactionState,i as RelayerTransactionType,D as RelayerTransactionTypeSchema};//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
package/dist/rfq.d.ts CHANGED
@@ -131,7 +131,7 @@ declare const ListComboMarketsResponseSchema: z.ZodPipe<z.ZodObject<{
131
131
  volume: number;
132
132
  tags: string[];
133
133
  }>>>;
134
- next_cursor: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<PaginationCursor, string>>>>;
134
+ next_cursor: z.ZodOptional<z.ZodNullable<z.ZodCustom<PaginationCursor, PaginationCursor>>>;
135
135
  }, z.core.$strip>, z.ZodTransform<{
136
136
  markets: ComboMarket[];
137
137
  nextCursor: PaginationCursor | undefined;
package/dist/rfq.js CHANGED
@@ -1,2 +1,2 @@
1
- import {b as b$1}from'./chunk-HOD4LKZU.js';import {X as X$1,ra,Ha,xa,wa,Ia,$,aa,W as W$1,Ca,Aa,Ba,Ga}from'./chunk-SB2LAVJ4.js';import {z as z$1}from'zod';var x=(o=>(o.Buy="BUY",o.Sell="SELL",o))(x||{}),O=(o=>(o.Yes="YES",o.No="NO",o))(O||{}),g=(o=>(o.Confirm="CONFIRM",o.Decline="DECLINE",o))(g||{}),T=(u=>(u.Matched="MATCHED",u.Mined="MINED",u.Confirmed="CONFIRMED",u.Retrying="RETRYING",u.Failed="FAILED",u))(T||{}),N=(o=>(o.Notional="notional",o.Shares="shares",o))(N||{}),M=(i=>(i.AddressMismatch="ADDRESS_MISMATCH",i.AllowanceValidationFailed="ALLOWANCE_VALIDATION_FAILED",i.BalanceValidationFailed="BALANCE_VALIDATION_FAILED",i.ContradictoryLegs="CONTRADICTORY_LEGS",i.ExpiredRfq="EXPIRED_RFQ",i.InvalidAcceptance="INVALID_ACCEPTANCE",i.InvalidConfirmation="INVALID_CONFIRMATION",i.InvalidExecutionResult="INVALID_EXECUTION_RESULT",i.InvalidIdentity="INVALID_IDENTITY",i.InvalidMessage="INVALID_MESSAGE",i.InvalidQuote="INVALID_QUOTE",i.InvalidRfq="INVALID_RFQ",i.InvalidRfqState="INVALID_RFQ_STATE",i.InvalidRole="INVALID_ROLE",i.InvalidSignature="INVALID_SIGNATURE",i.InternalError="INTERNAL_ERROR",i.LegMetadataUnavailable="LEG_METADATA_UNAVAILABLE",i.MakerAlreadyResponded="MAKER_ALREADY_RESPONDED",i.MakerNotRequired="MAKER_NOT_REQUIRED",i.PreExecutionBalanceReservationFailed="PRE_EXECUTION_BALANCE_RESERVATION_FAILED",i.QuoteMismatch="QUOTE_MISMATCH",i.QuoteUnavailable="QUOTE_UNAVAILABLE",i.RateLimited="RATE_LIMITED",i.RequestFailed="REQUEST_FAILED",i.ServiceUnavailable="SERVICE_UNAVAILABLE",i.SubmissionWindowClosed="SUBMISSION_WINDOW_CLOSED",i.TradeSubmissionFailed="TRADE_SUBMISSION_FAILED",i.Unauthenticated="UNAUTHENTICATED",i.UnauthorizedRole="UNAUTHORIZED_ROLE",i.UnknownRfq="UNKNOWN_RFQ",i))(M||{}),f=z$1.enum(x),R=z$1.literal("YES"),D=z$1.enum(g),L=z$1.enum(T),G=z$1.enum(N),C=z$1.enum(M),U=z$1.object({id:ra,condition_id:X$1,position_ids:z$1.array(xa),slug:z$1.string(),title:z$1.string(),outcomes:z$1.array(z$1.string()),outcome_prices:z$1.array(Ha),image:z$1.string(),volume:z$1.number(),tags:z$1.array(z$1.string())}).superRefine((e,I)=>{e.outcomes.length!==2&&I.addIssue({code:"custom",message:`Expected binary combo market outcomes, received ${e.outcomes.length}.`,path:["outcomes"]}),e.position_ids.length!==e.outcomes.length&&I.addIssue({code:"custom",message:"Expected position_ids and outcomes to have matching lengths.",path:["position_ids"]}),e.outcome_prices.length!==e.outcomes.length&&I.addIssue({code:"custom",message:"Expected outcome_prices and outcomes to have matching lengths.",path:["outcome_prices"]});}).transform(e=>({conditionId:e.condition_id,id:e.id,image:e.image,outcomes:{yes:{label:e.outcomes[0],positionId:e.position_ids[0],price:e.outcome_prices[0]},no:{label:e.outcomes[1],positionId:e.position_ids[1],price:e.outcome_prices[1]}},slug:e.slug,tags:e.tags,title:e.title,volume:e.volume})),W=z$1.object({markets:z$1.array(U),next_cursor:wa.nullish()}).transform(e=>({markets:e.markets,nextCursor:e.next_cursor??void 0})),b=z$1.discriminatedUnion("unit",[z$1.object({unit:z$1.literal("notional"),value_e6:Ia}),z$1.object({unit:z$1.literal("shares"),value_e6:Ia})]).transform(e=>({unit:e.unit,value:e.value_e6})),Q=(n=>(n.Auth="auth",n.QuoteRequest="RFQ_REQUEST",n.QuoteAck="ACK_RFQ_QUOTE",n.QuoteCancelAck="ACK_RFQ_QUOTE_CANCEL",n.ConfirmationRequest="RFQ_CONFIRMATION_REQUEST",n.ConfirmationAck="ACK_RFQ_CONFIRMATION_RESPONSE",n.ExecutionUpdate="RFQ_EXECUTION_UPDATE",n.Trade="RFQ_TRADE",n.Error="RFQ_ERROR",n))(Q||{}),d=z$1.object({type:z$1.enum(Q)}),v=d.extend({type:z$1.literal("auth"),success:z$1.boolean(),address:$.optional(),role:z$1.string().optional(),error:z$1.string().optional()}),k=d.extend({type:z$1.literal("RFQ_REQUEST"),rfq_id:Aa,requestor_public_id:Ca,leg_position_ids:z$1.array(xa),condition_id:W$1,yes_position_id:xa,no_position_id:xa,direction:f,side:R,requested_size:b,submission_deadline:aa}).transform(e=>({conditionId:e.condition_id,direction:e.direction,legPositionIds:e.leg_position_ids,noPositionId:e.no_position_id,requestorPublicId:e.requestor_public_id,requestedSize:e.requested_size,rfqId:e.rfq_id,side:e.side,submissionDeadline:e.submission_deadline,type:"quote_request",yesPositionId:e.yes_position_id})),F=d.extend({type:z$1.literal("ACK_RFQ_QUOTE"),rfq_id:Aa,quote_id:Ba}).transform(e=>({quoteId:e.quote_id,rfqId:e.rfq_id,type:"quote_ack"})),z=d.extend({type:z$1.literal("ACK_RFQ_QUOTE_CANCEL"),rfq_id:Aa,quote_id:Ba}).transform(e=>({quoteId:e.quote_id,rfqId:e.rfq_id,type:"quote_cancel_ack"})),P=d.extend({type:z$1.literal("RFQ_CONFIRMATION_REQUEST"),rfq_id:Aa,quote_id:Ba,signer_address:$,maker_address:$,signature_type:b$1,leg_position_ids:z$1.array(xa),condition_id:W$1,yes_position_id:xa,no_position_id:xa,direction:f,side:R,fill_size_e6:Ia,price_e6:Ia,confirm_by:aa}).transform(e=>({conditionId:e.condition_id,confirmBy:e.confirm_by,direction:e.direction,fillSize:e.fill_size_e6,legPositionIds:e.leg_position_ids,makerAddress:e.maker_address,noPositionId:e.no_position_id,price:e.price_e6,quoteId:e.quote_id,rfqId:e.rfq_id,side:e.side,signatureType:e.signature_type,signerAddress:e.signer_address,type:"confirmation_request",yesPositionId:e.yes_position_id})),V=d.extend({type:z$1.literal("ACK_RFQ_CONFIRMATION_RESPONSE"),rfq_id:Aa,quote_id:Ba,decision:D}).transform(e=>({decision:e.decision,quoteId:e.quote_id,rfqId:e.rfq_id,type:"confirmation_ack"})),B=d.extend({type:z$1.literal("RFQ_EXECUTION_UPDATE"),rfq_id:Aa,status:L,tx_hash:Ga.optional()}).transform(e=>({rfqId:e.rfq_id,status:e.status,...e.tx_hash===void 0?{}:{txHash:e.tx_hash},type:"execution_update"})),H=d.extend({type:z$1.literal("RFQ_TRADE"),rfq_id:Aa,requester_id:Ca,condition_id:W$1,leg_position_ids:z$1.array(xa),direction:f,side:R,price_e6:Ia,size_e6:Ia,executed_at:aa}).transform(e=>({conditionId:e.condition_id,direction:e.direction,executedAt:e.executed_at,legPositionIds:e.leg_position_ids,price:e.price_e6,requesterId:e.requester_id,rfqId:e.rfq_id,side:e.side,size:e.size_e6,type:"trade"})),K=d.extend({type:z$1.literal("RFQ_ERROR"),error_id:z$1.string().optional(),request_type:z$1.string().optional(),rfq_id:Aa.optional(),quote_id:Ba.optional(),code:C,error:z$1.string(),request:z$1.unknown().optional()}).transform(e=>({code:e.code,errorId:e.error_id,message:e.error,quoteId:e.quote_id,requestType:e.request_type,rfqId:e.rfq_id,type:"rfq_error"})),X=z$1.discriminatedUnion("type",[v,k,F,z,P,V,B,H,K]);export{U as ComboMarketSchema,W as ListComboMarketsResponseSchema,v as RfqAuthResponseMessageSchema,V as RfqConfirmationAckSchema,g as RfqConfirmationDecision,D as RfqConfirmationDecisionSchema,P as RfqConfirmationRequestSchema,x as RfqDirection,f as RfqDirectionSchema,M as RfqErrorCode,C as RfqErrorCodeSchema,K as RfqErrorMessageSchema,T as RfqExecutionStatus,L as RfqExecutionStatusSchema,B as RfqExecutionUpdateSchema,d as RfqKnownInboundMessageSchema,Q as RfqKnownInboundType,F as RfqQuoteAckSchema,z as RfqQuoteCancelAckSchema,k as RfqQuoteRequestSchema,X as RfqQuoterInboundMessageSchema,N as RfqRequestedSizeUnit,G as RfqRequestedSizeUnitSchema,O as RfqSide,R as RfqSideSchema,H as RfqTradeSchema};//# sourceMappingURL=rfq.js.map
1
+ import {b as b$1}from'./chunk-HOD4LKZU.js';import {X as X$1,ra,Ha,xa,wa,Ia,$,aa,W as W$1,Ca,Aa,Ba,Ga}from'./chunk-VBHCYSM7.js';import {z as z$1}from'zod';var x=(o=>(o.Buy="BUY",o.Sell="SELL",o))(x||{}),O=(o=>(o.Yes="YES",o.No="NO",o))(O||{}),g=(o=>(o.Confirm="CONFIRM",o.Decline="DECLINE",o))(g||{}),T=(u=>(u.Matched="MATCHED",u.Mined="MINED",u.Confirmed="CONFIRMED",u.Retrying="RETRYING",u.Failed="FAILED",u))(T||{}),N=(o=>(o.Notional="notional",o.Shares="shares",o))(N||{}),M=(i=>(i.AddressMismatch="ADDRESS_MISMATCH",i.AllowanceValidationFailed="ALLOWANCE_VALIDATION_FAILED",i.BalanceValidationFailed="BALANCE_VALIDATION_FAILED",i.ContradictoryLegs="CONTRADICTORY_LEGS",i.ExpiredRfq="EXPIRED_RFQ",i.InvalidAcceptance="INVALID_ACCEPTANCE",i.InvalidConfirmation="INVALID_CONFIRMATION",i.InvalidExecutionResult="INVALID_EXECUTION_RESULT",i.InvalidIdentity="INVALID_IDENTITY",i.InvalidMessage="INVALID_MESSAGE",i.InvalidQuote="INVALID_QUOTE",i.InvalidRfq="INVALID_RFQ",i.InvalidRfqState="INVALID_RFQ_STATE",i.InvalidRole="INVALID_ROLE",i.InvalidSignature="INVALID_SIGNATURE",i.InternalError="INTERNAL_ERROR",i.LegMetadataUnavailable="LEG_METADATA_UNAVAILABLE",i.MakerAlreadyResponded="MAKER_ALREADY_RESPONDED",i.MakerNotRequired="MAKER_NOT_REQUIRED",i.PreExecutionBalanceReservationFailed="PRE_EXECUTION_BALANCE_RESERVATION_FAILED",i.QuoteMismatch="QUOTE_MISMATCH",i.QuoteUnavailable="QUOTE_UNAVAILABLE",i.RateLimited="RATE_LIMITED",i.RequestFailed="REQUEST_FAILED",i.ServiceUnavailable="SERVICE_UNAVAILABLE",i.SubmissionWindowClosed="SUBMISSION_WINDOW_CLOSED",i.TradeSubmissionFailed="TRADE_SUBMISSION_FAILED",i.Unauthenticated="UNAUTHENTICATED",i.UnauthorizedRole="UNAUTHORIZED_ROLE",i.UnknownRfq="UNKNOWN_RFQ",i))(M||{}),f=z$1.enum(x),R=z$1.literal("YES"),D=z$1.enum(g),L=z$1.enum(T),G=z$1.enum(N),C=z$1.enum(M),U=z$1.object({id:ra,condition_id:X$1,position_ids:z$1.array(xa),slug:z$1.string(),title:z$1.string(),outcomes:z$1.array(z$1.string()),outcome_prices:z$1.array(Ha),image:z$1.string(),volume:z$1.number(),tags:z$1.array(z$1.string())}).superRefine((e,I)=>{e.outcomes.length!==2&&I.addIssue({code:"custom",message:`Expected binary combo market outcomes, received ${e.outcomes.length}.`,path:["outcomes"]}),e.position_ids.length!==e.outcomes.length&&I.addIssue({code:"custom",message:"Expected position_ids and outcomes to have matching lengths.",path:["position_ids"]}),e.outcome_prices.length!==e.outcomes.length&&I.addIssue({code:"custom",message:"Expected outcome_prices and outcomes to have matching lengths.",path:["outcome_prices"]});}).transform(e=>({conditionId:e.condition_id,id:e.id,image:e.image,outcomes:{yes:{label:e.outcomes[0],positionId:e.position_ids[0],price:e.outcome_prices[0]},no:{label:e.outcomes[1],positionId:e.position_ids[1],price:e.outcome_prices[1]}},slug:e.slug,tags:e.tags,title:e.title,volume:e.volume})),W=z$1.object({markets:z$1.array(U),next_cursor:wa.nullish()}).transform(e=>({markets:e.markets,nextCursor:e.next_cursor??void 0})),b=z$1.discriminatedUnion("unit",[z$1.object({unit:z$1.literal("notional"),value_e6:Ia}),z$1.object({unit:z$1.literal("shares"),value_e6:Ia})]).transform(e=>({unit:e.unit,value:e.value_e6})),Q=(n=>(n.Auth="auth",n.QuoteRequest="RFQ_REQUEST",n.QuoteAck="ACK_RFQ_QUOTE",n.QuoteCancelAck="ACK_RFQ_QUOTE_CANCEL",n.ConfirmationRequest="RFQ_CONFIRMATION_REQUEST",n.ConfirmationAck="ACK_RFQ_CONFIRMATION_RESPONSE",n.ExecutionUpdate="RFQ_EXECUTION_UPDATE",n.Trade="RFQ_TRADE",n.Error="RFQ_ERROR",n))(Q||{}),d=z$1.object({type:z$1.enum(Q)}),v=d.extend({type:z$1.literal("auth"),success:z$1.boolean(),address:$.optional(),role:z$1.string().optional(),error:z$1.string().optional()}),k=d.extend({type:z$1.literal("RFQ_REQUEST"),rfq_id:Aa,requestor_public_id:Ca,leg_position_ids:z$1.array(xa),condition_id:W$1,yes_position_id:xa,no_position_id:xa,direction:f,side:R,requested_size:b,submission_deadline:aa}).transform(e=>({conditionId:e.condition_id,direction:e.direction,legPositionIds:e.leg_position_ids,noPositionId:e.no_position_id,requestorPublicId:e.requestor_public_id,requestedSize:e.requested_size,rfqId:e.rfq_id,side:e.side,submissionDeadline:e.submission_deadline,type:"quote_request",yesPositionId:e.yes_position_id})),F=d.extend({type:z$1.literal("ACK_RFQ_QUOTE"),rfq_id:Aa,quote_id:Ba}).transform(e=>({quoteId:e.quote_id,rfqId:e.rfq_id,type:"quote_ack"})),z=d.extend({type:z$1.literal("ACK_RFQ_QUOTE_CANCEL"),rfq_id:Aa,quote_id:Ba}).transform(e=>({quoteId:e.quote_id,rfqId:e.rfq_id,type:"quote_cancel_ack"})),P=d.extend({type:z$1.literal("RFQ_CONFIRMATION_REQUEST"),rfq_id:Aa,quote_id:Ba,signer_address:$,maker_address:$,signature_type:b$1,leg_position_ids:z$1.array(xa),condition_id:W$1,yes_position_id:xa,no_position_id:xa,direction:f,side:R,fill_size_e6:Ia,price_e6:Ia,confirm_by:aa}).transform(e=>({conditionId:e.condition_id,confirmBy:e.confirm_by,direction:e.direction,fillSize:e.fill_size_e6,legPositionIds:e.leg_position_ids,makerAddress:e.maker_address,noPositionId:e.no_position_id,price:e.price_e6,quoteId:e.quote_id,rfqId:e.rfq_id,side:e.side,signatureType:e.signature_type,signerAddress:e.signer_address,type:"confirmation_request",yesPositionId:e.yes_position_id})),V=d.extend({type:z$1.literal("ACK_RFQ_CONFIRMATION_RESPONSE"),rfq_id:Aa,quote_id:Ba,decision:D}).transform(e=>({decision:e.decision,quoteId:e.quote_id,rfqId:e.rfq_id,type:"confirmation_ack"})),B=d.extend({type:z$1.literal("RFQ_EXECUTION_UPDATE"),rfq_id:Aa,status:L,tx_hash:Ga.optional()}).transform(e=>({rfqId:e.rfq_id,status:e.status,...e.tx_hash===void 0?{}:{txHash:e.tx_hash},type:"execution_update"})),H=d.extend({type:z$1.literal("RFQ_TRADE"),rfq_id:Aa,requester_id:Ca,condition_id:W$1,leg_position_ids:z$1.array(xa),direction:f,side:R,price_e6:Ia,size_e6:Ia,executed_at:aa}).transform(e=>({conditionId:e.condition_id,direction:e.direction,executedAt:e.executed_at,legPositionIds:e.leg_position_ids,price:e.price_e6,requesterId:e.requester_id,rfqId:e.rfq_id,side:e.side,size:e.size_e6,type:"trade"})),K=d.extend({type:z$1.literal("RFQ_ERROR"),error_id:z$1.string().optional(),request_type:z$1.string().optional(),rfq_id:Aa.optional(),quote_id:Ba.optional(),code:C,error:z$1.string(),request:z$1.unknown().optional()}).transform(e=>({code:e.code,errorId:e.error_id,message:e.error,quoteId:e.quote_id,requestType:e.request_type,rfqId:e.rfq_id,type:"rfq_error"})),X=z$1.discriminatedUnion("type",[v,k,F,z,P,V,B,H,K]);export{U as ComboMarketSchema,W as ListComboMarketsResponseSchema,v as RfqAuthResponseMessageSchema,V as RfqConfirmationAckSchema,g as RfqConfirmationDecision,D as RfqConfirmationDecisionSchema,P as RfqConfirmationRequestSchema,x as RfqDirection,f as RfqDirectionSchema,M as RfqErrorCode,C as RfqErrorCodeSchema,K as RfqErrorMessageSchema,T as RfqExecutionStatus,L as RfqExecutionStatusSchema,B as RfqExecutionUpdateSchema,d as RfqKnownInboundMessageSchema,Q as RfqKnownInboundType,F as RfqQuoteAckSchema,z as RfqQuoteCancelAckSchema,k as RfqQuoteRequestSchema,X as RfqQuoterInboundMessageSchema,N as RfqRequestedSizeUnit,G as RfqRequestedSizeUnitSchema,O as RfqSide,R as RfqSideSchema,H as RfqTradeSchema};//# sourceMappingURL=rfq.js.map
2
2
  //# sourceMappingURL=rfq.js.map
@@ -1,6 +1,6 @@
1
1
  import { TokenId, DecimalString, EpochMilliseconds, CtfConditionId, IsoDateTimeString, OrderSide, OrderType, BaseUnits, CommentId, CommentParentEntityType, EventId, SeriesId, ImageOptimizationId } from '../index.js';
2
2
  import { z } from 'zod';
3
- import { P as PerpsInstrumentId, K as PerpsKlineInterval, a as PerpsDepositStatus, h as PerpsTradeId, O as PerpsOrderId, i as PerpsSide, _ as PerpsTimeInForce, S as PerpsOrderStatus, b as PerpsWithdrawalId, c as PerpsWithdrawalStatus } from '../orders-ByouGgI5.js';
3
+ import { P as PerpsInstrumentId, K as PerpsKlineInterval, a as PerpsDepositStatus, h as PerpsTradeId, O as PerpsOrderId, i as PerpsSide, _ as PerpsTimeInForce, S as PerpsOrderStatus, b as PerpsWithdrawalId, c as PerpsWithdrawalStatus } from '../orders-B7JX0nMz.js';
4
4
  import * as _polymarket_types from '@polymarket/types';
5
5
  import { R as ReactionType } from '../comment-C-jBbhp7.js';
6
6
 
@@ -2485,7 +2485,7 @@ declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2485
2485
  }, z.core.$strip>, z.ZodTransform<{
2486
2486
  id: PerpsOrderId;
2487
2487
  instrumentId: PerpsInstrumentId;
2488
- buy: boolean;
2488
+ side: OrderSide;
2489
2489
  price: DecimalString;
2490
2490
  quantity: DecimalString;
2491
2491
  timeInForce: PerpsTimeInForce;
@@ -2519,7 +2519,7 @@ declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2519
2519
  payload: {
2520
2520
  id: PerpsOrderId;
2521
2521
  instrumentId: PerpsInstrumentId;
2522
- buy: boolean;
2522
+ side: OrderSide;
2523
2523
  price: DecimalString;
2524
2524
  quantity: DecimalString;
2525
2525
  timeInForce: PerpsTimeInForce;
@@ -2538,7 +2538,7 @@ declare const PerpsOrderUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2538
2538
  data: {
2539
2539
  id: PerpsOrderId;
2540
2540
  instrumentId: PerpsInstrumentId;
2541
- buy: boolean;
2541
+ side: OrderSide;
2542
2542
  price: DecimalString;
2543
2543
  quantity: DecimalString;
2544
2544
  timeInForce: PerpsTimeInForce;
@@ -3032,7 +3032,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3032
3032
  }, z.core.$strip>, z.ZodTransform<{
3033
3033
  id: PerpsOrderId;
3034
3034
  instrumentId: PerpsInstrumentId;
3035
- buy: boolean;
3035
+ side: OrderSide;
3036
3036
  price: DecimalString;
3037
3037
  quantity: DecimalString;
3038
3038
  timeInForce: PerpsTimeInForce;
@@ -3066,7 +3066,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3066
3066
  payload: {
3067
3067
  id: PerpsOrderId;
3068
3068
  instrumentId: PerpsInstrumentId;
3069
- buy: boolean;
3069
+ side: OrderSide;
3070
3070
  price: DecimalString;
3071
3071
  quantity: DecimalString;
3072
3072
  timeInForce: PerpsTimeInForce;
@@ -3085,7 +3085,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3085
3085
  data: {
3086
3086
  id: PerpsOrderId;
3087
3087
  instrumentId: PerpsInstrumentId;
3088
- buy: boolean;
3088
+ side: OrderSide;
3089
3089
  price: DecimalString;
3090
3090
  quantity: DecimalString;
3091
3091
  timeInForce: PerpsTimeInForce;
@@ -1,2 +1,2 @@
1
- import {N,K,O,P}from'../chunk-PJWPI2GS.js';import {va as va$1,ta,ra,ka,oa,la,a,G,K as K$1,Ma,Pa,O as O$1,$,da}from'../chunk-WZTOZWYR.js';import {ua,Ha,w,Ea,ca,ga,X as X$1,va,aa,ta as ta$1,Ja}from'../chunk-SB2LAVJ4.js';import {z}from'zod';var k=z.preprocess(t=>typeof t=="string"?t.toUpperCase():t,ua),U=(c=>(c.Matched="TRADE_STATUS_MATCHED",c.MatchedNotBroadcasted="TRADE_STATUS_MATCHED_NOT_BROADCASTED",c.Mined="TRADE_STATUS_MINED",c.Confirmed="TRADE_STATUS_CONFIRMED",c.Retrying="TRADE_STATUS_RETRYING",c.Failed="TRADE_STATUS_FAILED",c))(U||{}),he=z.preprocess(t=>typeof t!="string"||t.startsWith("TRADE_STATUS_")?t:Object.values(U).find(a=>a.slice(13)===t)??t,z.enum(U)),J=(p=>(p.Live="LIVE",p.Matched="MATCHED",p.Delayed="DELAYED",p.Unmatched="UNMATCHED",p.Canceled="CANCELED",p))(J||{}),ye=z.enum(J),V=z.object({price:Ha,size:Ha}),T=z.string().regex(/^\d+$/).transform(t=>w(new Date(Number(t)*1e3).toISOString())),ue=z.string().regex(/^\d+$/).transform(t=>t==="0"?void 0:w(new Date(Number(t)*1e3).toISOString())),X=z.object({event_type:z.literal("book"),market:z.string(),asset_id:Ea,bids:z.array(V),asks:z.array(V),hash:z.string().nullish(),timestamp:ca.nullish(),min_order_size:Ha.nullish(),tick_size:Ha.nullish(),neg_risk:z.boolean().nullish(),last_trade_price:Ha.nullish()}).transform(({event_type:t,asset_id:r,min_order_size:a,tick_size:s,neg_risk:o,last_trade_price:p,...c})=>({topic:"market",type:t,payload:{...c,tokenId:r,minOrderSize:a,tickSize:s,negRisk:o,lastTradePrice:p}})),Se=z.object({asset_id:Ea,price:Ha,size:Ha,side:k,hash:z.string().nullish(),best_bid:Ha.nullish(),best_ask:Ha.nullish()}).transform(({asset_id:t,best_bid:r,best_ask:a,...s})=>({...s,tokenId:t,bestBid:r,bestAsk:a})),ee=z.object({event_type:z.literal("price_change"),market:z.string(),price_changes:z.array(Se),timestamp:ca.nullish()}).transform(({event_type:t,price_changes:r,...a})=>({topic:"market",type:t,payload:{...a,priceChanges:r}})),te=z.object({event_type:z.literal("last_trade_price"),market:z.string(),asset_id:Ea,price:Ha,size:Ha.nullish(),fee_rate_bps:Ha.nullish(),side:k,timestamp:ca.nullish(),transaction_hash:z.string().nullish()}).transform(({event_type:t,asset_id:r,fee_rate_bps:a,transaction_hash:s,...o})=>({topic:"market",type:t,payload:{...o,tokenId:r,feeRateBps:a,transactionHash:s}})),ne=z.object({event_type:z.literal("tick_size_change"),market:z.string(),asset_id:Ea,old_tick_size:Ha.nullish(),new_tick_size:Ha,timestamp:ca.nullish()}).transform(({event_type:t,asset_id:r,old_tick_size:a,new_tick_size:s,...o})=>({topic:"market",type:t,payload:{...o,tokenId:r,oldTickSize:a,newTickSize:s}})),re=z.object({event_type:z.literal("best_bid_ask"),market:z.string(),asset_id:Ea,best_bid:Ha.nullish(),best_ask:Ha.nullish(),spread:Ha.nullish(),timestamp:ca.nullish()}).transform(({event_type:t,asset_id:r,best_bid:a,best_ask:s,...o})=>({topic:"market",type:t,payload:{...o,tokenId:r,bestBid:a,bestAsk:s}})),ae=z.object({id:z.string(),ticker:z.string().nullish(),slug:z.string().nullish(),title:z.string().nullish(),description:z.string().nullish()}),se=z.object({event_type:z.literal("new_market"),id:z.string(),question:z.string().nullish(),market:z.string(),slug:z.string().nullish(),description:z.string().nullish(),assets_ids:z.array(Ea).nullish(),outcomes:z.array(z.string()).nullish(),event_message:ae.nullish(),timestamp:ca.nullish(),tags:z.array(z.string()).nullish(),condition_id:X$1.nullish(),active:z.boolean().nullish(),clob_token_ids:z.array(z.string()).nullish(),sports_market_type:z.string().nullish(),line:Ha.nullish(),game_start_time:ga.nullish(),order_price_min_tick_size:Ha.nullish(),group_item_title:z.string().nullish(),taker_base_fee:Ha.nullish(),fees_enabled:z.boolean().nullish(),fee_schedule:z.unknown().nullish()}).transform(({event_type:t,assets_ids:r,event_message:a,condition_id:s,clob_token_ids:o,sports_market_type:p,game_start_time:c,order_price_min_tick_size:E,group_item_title:f,taker_base_fee:v,fees_enabled:P,fee_schedule:g,...b})=>({topic:"market",type:t,payload:{...b,tokenIds:r,eventMessage:a,conditionId:s,clobTokenIds:o,sportsMarketType:p,gameStartTime:c,orderPriceMinTickSize:E,groupItemTitle:f,takerBaseFee:v,feesEnabled:P,feeSchedule:g}})),ie=z.object({event_type:z.literal("market_resolved"),id:z.string(),market:z.string(),assets_ids:z.array(Ea).nullish(),winning_asset_id:Ea.nullish(),winning_outcome:z.string().nullish(),event_message:ae.nullish(),timestamp:ca.nullish(),tags:z.array(z.string()).nullish()}).transform(({event_type:t,assets_ids:r,winning_asset_id:a,winning_outcome:s,event_message:o,...p})=>({topic:"market",type:t,payload:{...p,tokenIds:r,winningTokenId:a,winningOutcome:s,eventMessage:o}})),oe=(s=>(s.Placement="PLACEMENT",s.Update="UPDATE",s.Cancellation="CANCELLATION",s))(oe||{}),Ee=z.enum(oe),fe=z.object({event_type:z.literal("order"),id:z.string(),owner:z.string(),market:z.string(),asset_id:Ea,side:k,order_owner:z.string().nullish(),original_size:Ha,size_matched:Ha,price:Ha,associate_trades:z.array(z.string()).nullish(),outcome:z.string().nullish(),type:Ee,created_at:T.nullish(),expiration:ue.nullish(),order_type:va.nullish(),status:ye.nullish(),maker_address:z.string().nullish(),timestamp:ca}).transform(({event_type:t,type:r,asset_id:a,order_owner:s,original_size:o,size_matched:p,associate_trades:c,created_at:E,expiration:f,order_type:v,maker_address:P,...g})=>({topic:"user",type:t,payload:{...g,orderEventType:r,tokenId:a,orderOwner:s,originalSize:o,sizeMatched:p,associateTrades:c,createdAt:E,expiresAt:f,orderType:v,makerAddress:P}})),ve=z.object({order_id:z.string(),owner:z.string(),maker_address:z.string().nullish(),matched_amount:Ha,price:Ha,fee_rate_bps:Ha.nullish(),asset_id:Ea,outcome:z.string().nullish(),outcome_index:z.number().int().nullish(),side:k}).transform(({order_id:t,maker_address:r,matched_amount:a,fee_rate_bps:s,asset_id:o,outcome_index:p,...c})=>({...c,orderId:t,makerAddress:r,matchedAmount:a,feeRateBps:s,tokenId:o,outcomeIndex:p})),Pe=z.object({event_type:z.literal("trade"),type:z.literal("TRADE"),id:z.string(),taker_order_id:z.string(),market:z.string(),asset_id:Ea,side:k,size:Ha,fee_rate_bps:Ha.nullish(),price:Ha,status:he,match_time:T.nullish(),matchtime:T.nullish(),last_update:T.nullish(),outcome:z.string().nullish(),owner:z.string(),trade_owner:z.string().nullish(),maker_address:z.string().nullish(),transaction_hash:z.string().nullish(),bucket_index:z.number().int().nullish(),maker_orders:z.array(ve).nullish(),trader_side:z.union([z.literal("TAKER"),z.literal("MAKER")]).nullish(),timestamp:ca}).transform(({event_type:t,type:r,taker_order_id:a,asset_id:s,fee_rate_bps:o,match_time:p,matchtime:c,last_update:E,trade_owner:f,maker_address:v,transaction_hash:P,bucket_index:g,maker_orders:b,trader_side:me,...de})=>({topic:"user",type:t,payload:{...de,takerOrderId:a,tokenId:s,feeRateBps:o,matchedAt:p??c,updatedAt:E,tradeOwner:f,makerAddress:v,transactionHash:P,bucketIndex:g,makerOrders:b,traderSide:me}})),St=z.discriminatedUnion("event_type",[X,ee,te,ne]),Et=z.discriminatedUnion("event_type",[re,se,ie]),ft=z.discriminatedUnion("event_type",[X,ee,te,ne,re,se,ie]),vt=z.discriminatedUnion("event_type",[fe,Pe]);var ge=z.number().int().nonnegative(),_e=z.string().regex(/^trades::\d+$/),ke=z.string().regex(/^bbo::\d+$/),xe=z.string().regex(/^book::\d+$/),Ce=z.string().regex(/^tickers::(all|\d+)$/),Te=z.string().regex(/^statistics::(all|\d+)$/),be=z.string().regex(/^klines::\d+::(1m|5m|15m|1h|4h|1d|1w)$/),ze=z.enum(["balances","portfolio","orders","fills","funding","deposits","withdrawals"]),u=z.object({ts:aa,sq:ge}),Ue=u.extend({ch:_e,data:va$1}).transform(({ch:t,ts:r,sq:a,data:s})=>({topic:"perps.trades",type:"trade",channel:t,timestamp:r,sequence:a,payload:s})),Ie=u.extend({ch:ke,data:ta}).transform(({ch:t,ts:r,sq:a,data:s})=>({topic:"perps.bbo",type:"bbo",channel:t,timestamp:r,sequence:a,payload:s})),Me=u.extend({ch:xe,data:ra}).transform(({ch:t,ts:r,sq:a,data:s})=>({topic:"perps.book",type:"book",channel:t,timestamp:r,sequence:a,payload:{instrumentId:pe(t),...s}})),Re=u.extend({ch:Ce,data:ka}).transform(({ch:t,ts:r,sq:a,data:s})=>({topic:"perps.tickers",type:"ticker",channel:t,timestamp:r,sequence:a,payload:s})),Ae=u.extend({ch:Te,data:oa}).transform(({ch:t,ts:r,sq:a,data:s})=>({topic:"perps.statistics",type:"statistic",channel:t,timestamp:r,sequence:a,payload:s})),Be=u.extend({ch:be,data:z.array(la)}).transform(({ch:t,ts:r,sq:a,data:s})=>({topic:"perps.candles",type:"candle",channel:t,timestamp:r,sequence:a,payload:{instrumentId:pe(t),interval:He(t),candles:s}})),zt=z.union([Ue,Ie,Me,Re,Ae,Be]),De=u.extend({ch:ze});function S(t,r,a){return De.extend({ch:z.literal(r),data:a}).transform(s=>{let o=s;return {type:t,channel:o.ch,timestamp:o.ts,sequence:o.sq,payload:o.data}})}var qe=S("balance","balances",G),we=S("portfolio","portfolio",K$1),Oe=S("order","orders",Ma),je=S("fill","fills",Pa),Ne=S("funding","funding",O$1),Le=S("deposit","deposits",$),Fe=S("withdrawal","withdrawals",da),Ut=z.union([qe,we,Oe,je,Ne,Le,Fe]);function pe(t){let[,r]=t.split("::");return a.parse(Number(r))}function He(t){let[,,r]=t.split("::");return r}var Ye=z.object({id:z.string(),body:z.string().nullish(),parentEntityType:ta$1.nullish(),parentEntityID:z.number().int().nullish(),parentCommentID:z.string().nullish(),userAddress:z.string().nullish(),replyAddress:z.string().nullish(),createdAt:z.string().nullish(),updatedAt:z.string().nullish(),media:z.array(O).nullish(),profile:K.nullish(),reactions:z.array(N).nullish(),reportCount:z.number().int().nullish(),reactionCount:z.number().int().nullish(),tradeAsset:z.string().nullish()}),$e=z.object({topic:z.literal("comments"),type:z.literal("comment_created"),timestamp:aa,payload:P}),Ke=z.object({topic:z.literal("comments"),type:z.literal("comment_removed"),timestamp:aa,payload:Ye}),We=z.object({topic:z.literal("comments"),type:z.literal("reaction_created"),timestamp:aa,payload:N}),Ze=z.object({topic:z.literal("comments"),type:z.literal("reaction_removed"),timestamp:aa,payload:N}),ce=z.object({symbol:z.string(),timestamp:aa,value:Ja}),Ge="prices.crypto.binance",Qe="prices.crypto.chainlink",Ve=z.literal("crypto_prices"),Je=z.literal("crypto_prices_chainlink"),Xe=Ve.transform(()=>Ge),et=Je.transform(()=>Qe),tt=z.object({topic:Xe,type:z.literal("update"),timestamp:aa,payload:ce}),nt=z.object({topic:et,type:z.literal("update"),timestamp:aa,payload:ce}),rt=z.discriminatedUnion("topic",[tt,nt]),at=z.object({symbol:z.string(),value:Ja,full_accuracy_value:Ha.nullish(),timestamp:aa,received_at:aa.nullish(),is_carried_forward:z.boolean().nullish()}).transform(({full_accuracy_value:t,received_at:r,is_carried_forward:a,value:s,...o})=>({...o,value:t??s,receivedAt:r,isCarriedForward:a})),st=z.object({timestamp:z.number(),value:Ja}),it=z.object({symbol:z.string(),data:z.array(st)}),ot=z.literal("equity_prices"),pt="prices.equity.pyth",le=ot.transform(()=>pt),ct=z.object({topic:le,type:z.literal("update"),timestamp:aa,payload:at}),lt=z.object({topic:le,type:z.literal("subscribe"),timestamp:aa,payload:it}),mt=z.discriminatedUnion("type",[ct,lt]),dt=z.discriminatedUnion("type",[$e,Ke,We,Ze]),Bt=z.discriminatedUnion("topic",[dt,rt,mt]);var ht=z.object({gameId:z.number().int(),sportradarGameId:z.string().nullish(),slug:z.string().nullish(),leagueAbbreviation:z.string(),homeTeam:z.string().nullish(),awayTeam:z.string().nullish(),status:z.string(),live:z.boolean(),ended:z.boolean(),score:z.string(),period:z.string().nullish(),elapsed:z.string().nullish(),finishedTimestamp:ga.nullish(),finished_timestamp:ga.nullish(),turn:z.string().nullish()}).transform(({finishedTimestamp:t,finished_timestamp:r,...a})=>({...a,finishedAt:t??r})),Ot=ht.transform(t=>({topic:"sports",type:"sport_result",payload:t}));export{$e as CommentCreatedEventSchema,Ke as CommentRemovedEventSchema,dt as CommentsEventSchema,tt as CryptoPricesBinanceEventSchema,nt as CryptoPricesChainlinkEventSchema,rt as CryptoPricesEventSchema,Et as CustomMarketEventSchema,mt as EquityPricesEventSchema,lt as EquityPricesSubscribeEventSchema,ct as EquityPricesUpdateEventSchema,re as MarketBestBidAskEventSchema,X as MarketBookEventSchema,ft as MarketEventSchema,te as MarketLastTradePriceEventSchema,ee as MarketPriceChangeEventSchema,ie as MarketResolvedEventSchema,ne as MarketTickSizeChangeEventSchema,se as NewMarketEventSchema,qe as PerpsBalanceUpdateEventSchema,Ie as PerpsBboEventSchema,Me as PerpsBookEventSchema,Be as PerpsCandleEventSchema,Le as PerpsDepositUpdateEventSchema,je as PerpsFillUpdateEventSchema,Ne as PerpsFundingUpdateEventSchema,zt as PerpsMarketDataEventSchema,Oe as PerpsOrderUpdateEventSchema,we as PerpsPortfolioUpdateEventSchema,Ut as PerpsSessionUpdateEventSchema,Ae as PerpsStatisticEventSchema,Re as PerpsTickerEventSchema,Ue as PerpsTradeEventSchema,Fe as PerpsWithdrawalUpdateEventSchema,We as ReactionCreatedEventSchema,Ze as ReactionRemovedEventSchema,Bt as RealtimeEventSchema,Ot as SportsResultEventSchema,St as StandardMarketEventSchema,U as TradeStatus,vt as UserEventSchema,fe as UserOrderEventSchema,oe as UserOrderEventType,J as UserOrderStatus,Pe as UserTradeEventSchema};//# sourceMappingURL=index.js.map
1
+ import {N,K,O,P}from'../chunk-GYP7YNXL.js';import {va as va$1,ta,ra,ka,oa,la,a,G,K as K$1,Na,Qa,O as O$1,$,da}from'../chunk-KYFSCD3H.js';import {ua,Ha,w,Ea,ca,ga,X as X$1,va,aa,ta as ta$1,Ja}from'../chunk-VBHCYSM7.js';import {z}from'zod';var k=z.preprocess(t=>typeof t=="string"?t.toUpperCase():t,ua),U=(c=>(c.Matched="TRADE_STATUS_MATCHED",c.MatchedNotBroadcasted="TRADE_STATUS_MATCHED_NOT_BROADCASTED",c.Mined="TRADE_STATUS_MINED",c.Confirmed="TRADE_STATUS_CONFIRMED",c.Retrying="TRADE_STATUS_RETRYING",c.Failed="TRADE_STATUS_FAILED",c))(U||{}),he=z.preprocess(t=>typeof t!="string"||t.startsWith("TRADE_STATUS_")?t:Object.values(U).find(a=>a.slice(13)===t)??t,z.enum(U)),J=(p=>(p.Live="LIVE",p.Matched="MATCHED",p.Delayed="DELAYED",p.Unmatched="UNMATCHED",p.Canceled="CANCELED",p))(J||{}),ye=z.enum(J),V=z.object({price:Ha,size:Ha}),T=z.string().regex(/^\d+$/).transform(t=>w(new Date(Number(t)*1e3).toISOString())),ue=z.string().regex(/^\d+$/).transform(t=>t==="0"?void 0:w(new Date(Number(t)*1e3).toISOString())),X=z.object({event_type:z.literal("book"),market:z.string(),asset_id:Ea,bids:z.array(V),asks:z.array(V),hash:z.string().nullish(),timestamp:ca.nullish(),min_order_size:Ha.nullish(),tick_size:Ha.nullish(),neg_risk:z.boolean().nullish(),last_trade_price:Ha.nullish()}).transform(({event_type:t,asset_id:r,min_order_size:a,tick_size:s,neg_risk:o,last_trade_price:p,...c})=>({topic:"market",type:t,payload:{...c,tokenId:r,minOrderSize:a,tickSize:s,negRisk:o,lastTradePrice:p}})),Se=z.object({asset_id:Ea,price:Ha,size:Ha,side:k,hash:z.string().nullish(),best_bid:Ha.nullish(),best_ask:Ha.nullish()}).transform(({asset_id:t,best_bid:r,best_ask:a,...s})=>({...s,tokenId:t,bestBid:r,bestAsk:a})),ee=z.object({event_type:z.literal("price_change"),market:z.string(),price_changes:z.array(Se),timestamp:ca.nullish()}).transform(({event_type:t,price_changes:r,...a})=>({topic:"market",type:t,payload:{...a,priceChanges:r}})),te=z.object({event_type:z.literal("last_trade_price"),market:z.string(),asset_id:Ea,price:Ha,size:Ha.nullish(),fee_rate_bps:Ha.nullish(),side:k,timestamp:ca.nullish(),transaction_hash:z.string().nullish()}).transform(({event_type:t,asset_id:r,fee_rate_bps:a,transaction_hash:s,...o})=>({topic:"market",type:t,payload:{...o,tokenId:r,feeRateBps:a,transactionHash:s}})),ne=z.object({event_type:z.literal("tick_size_change"),market:z.string(),asset_id:Ea,old_tick_size:Ha.nullish(),new_tick_size:Ha,timestamp:ca.nullish()}).transform(({event_type:t,asset_id:r,old_tick_size:a,new_tick_size:s,...o})=>({topic:"market",type:t,payload:{...o,tokenId:r,oldTickSize:a,newTickSize:s}})),re=z.object({event_type:z.literal("best_bid_ask"),market:z.string(),asset_id:Ea,best_bid:Ha.nullish(),best_ask:Ha.nullish(),spread:Ha.nullish(),timestamp:ca.nullish()}).transform(({event_type:t,asset_id:r,best_bid:a,best_ask:s,...o})=>({topic:"market",type:t,payload:{...o,tokenId:r,bestBid:a,bestAsk:s}})),ae=z.object({id:z.string(),ticker:z.string().nullish(),slug:z.string().nullish(),title:z.string().nullish(),description:z.string().nullish()}),se=z.object({event_type:z.literal("new_market"),id:z.string(),question:z.string().nullish(),market:z.string(),slug:z.string().nullish(),description:z.string().nullish(),assets_ids:z.array(Ea).nullish(),outcomes:z.array(z.string()).nullish(),event_message:ae.nullish(),timestamp:ca.nullish(),tags:z.array(z.string()).nullish(),condition_id:X$1.nullish(),active:z.boolean().nullish(),clob_token_ids:z.array(z.string()).nullish(),sports_market_type:z.string().nullish(),line:Ha.nullish(),game_start_time:ga.nullish(),order_price_min_tick_size:Ha.nullish(),group_item_title:z.string().nullish(),taker_base_fee:Ha.nullish(),fees_enabled:z.boolean().nullish(),fee_schedule:z.unknown().nullish()}).transform(({event_type:t,assets_ids:r,event_message:a,condition_id:s,clob_token_ids:o,sports_market_type:p,game_start_time:c,order_price_min_tick_size:E,group_item_title:f,taker_base_fee:v,fees_enabled:P,fee_schedule:g,...b})=>({topic:"market",type:t,payload:{...b,tokenIds:r,eventMessage:a,conditionId:s,clobTokenIds:o,sportsMarketType:p,gameStartTime:c,orderPriceMinTickSize:E,groupItemTitle:f,takerBaseFee:v,feesEnabled:P,feeSchedule:g}})),ie=z.object({event_type:z.literal("market_resolved"),id:z.string(),market:z.string(),assets_ids:z.array(Ea).nullish(),winning_asset_id:Ea.nullish(),winning_outcome:z.string().nullish(),event_message:ae.nullish(),timestamp:ca.nullish(),tags:z.array(z.string()).nullish()}).transform(({event_type:t,assets_ids:r,winning_asset_id:a,winning_outcome:s,event_message:o,...p})=>({topic:"market",type:t,payload:{...p,tokenIds:r,winningTokenId:a,winningOutcome:s,eventMessage:o}})),oe=(s=>(s.Placement="PLACEMENT",s.Update="UPDATE",s.Cancellation="CANCELLATION",s))(oe||{}),Ee=z.enum(oe),fe=z.object({event_type:z.literal("order"),id:z.string(),owner:z.string(),market:z.string(),asset_id:Ea,side:k,order_owner:z.string().nullish(),original_size:Ha,size_matched:Ha,price:Ha,associate_trades:z.array(z.string()).nullish(),outcome:z.string().nullish(),type:Ee,created_at:T.nullish(),expiration:ue.nullish(),order_type:va.nullish(),status:ye.nullish(),maker_address:z.string().nullish(),timestamp:ca}).transform(({event_type:t,type:r,asset_id:a,order_owner:s,original_size:o,size_matched:p,associate_trades:c,created_at:E,expiration:f,order_type:v,maker_address:P,...g})=>({topic:"user",type:t,payload:{...g,orderEventType:r,tokenId:a,orderOwner:s,originalSize:o,sizeMatched:p,associateTrades:c,createdAt:E,expiresAt:f,orderType:v,makerAddress:P}})),ve=z.object({order_id:z.string(),owner:z.string(),maker_address:z.string().nullish(),matched_amount:Ha,price:Ha,fee_rate_bps:Ha.nullish(),asset_id:Ea,outcome:z.string().nullish(),outcome_index:z.number().int().nullish(),side:k}).transform(({order_id:t,maker_address:r,matched_amount:a,fee_rate_bps:s,asset_id:o,outcome_index:p,...c})=>({...c,orderId:t,makerAddress:r,matchedAmount:a,feeRateBps:s,tokenId:o,outcomeIndex:p})),Pe=z.object({event_type:z.literal("trade"),type:z.literal("TRADE"),id:z.string(),taker_order_id:z.string(),market:z.string(),asset_id:Ea,side:k,size:Ha,fee_rate_bps:Ha.nullish(),price:Ha,status:he,match_time:T.nullish(),matchtime:T.nullish(),last_update:T.nullish(),outcome:z.string().nullish(),owner:z.string(),trade_owner:z.string().nullish(),maker_address:z.string().nullish(),transaction_hash:z.string().nullish(),bucket_index:z.number().int().nullish(),maker_orders:z.array(ve).nullish(),trader_side:z.union([z.literal("TAKER"),z.literal("MAKER")]).nullish(),timestamp:ca}).transform(({event_type:t,type:r,taker_order_id:a,asset_id:s,fee_rate_bps:o,match_time:p,matchtime:c,last_update:E,trade_owner:f,maker_address:v,transaction_hash:P,bucket_index:g,maker_orders:b,trader_side:me,...de})=>({topic:"user",type:t,payload:{...de,takerOrderId:a,tokenId:s,feeRateBps:o,matchedAt:p??c,updatedAt:E,tradeOwner:f,makerAddress:v,transactionHash:P,bucketIndex:g,makerOrders:b,traderSide:me}})),St=z.discriminatedUnion("event_type",[X,ee,te,ne]),Et=z.discriminatedUnion("event_type",[re,se,ie]),ft=z.discriminatedUnion("event_type",[X,ee,te,ne,re,se,ie]),vt=z.discriminatedUnion("event_type",[fe,Pe]);var ge=z.number().int().nonnegative(),_e=z.string().regex(/^trades::\d+$/),ke=z.string().regex(/^bbo::\d+$/),xe=z.string().regex(/^book::\d+$/),Ce=z.string().regex(/^tickers::(all|\d+)$/),Te=z.string().regex(/^statistics::(all|\d+)$/),be=z.string().regex(/^klines::\d+::(1m|5m|15m|1h|4h|1d|1w)$/),ze=z.enum(["balances","portfolio","orders","fills","funding","deposits","withdrawals"]),u=z.object({ts:aa,sq:ge}),Ue=u.extend({ch:_e,data:va$1}).transform(({ch:t,ts:r,sq:a,data:s})=>({topic:"perps.trades",type:"trade",channel:t,timestamp:r,sequence:a,payload:s})),Ie=u.extend({ch:ke,data:ta}).transform(({ch:t,ts:r,sq:a,data:s})=>({topic:"perps.bbo",type:"bbo",channel:t,timestamp:r,sequence:a,payload:s})),Me=u.extend({ch:xe,data:ra}).transform(({ch:t,ts:r,sq:a,data:s})=>({topic:"perps.book",type:"book",channel:t,timestamp:r,sequence:a,payload:{instrumentId:pe(t),...s}})),Re=u.extend({ch:Ce,data:ka}).transform(({ch:t,ts:r,sq:a,data:s})=>({topic:"perps.tickers",type:"ticker",channel:t,timestamp:r,sequence:a,payload:s})),Ae=u.extend({ch:Te,data:oa}).transform(({ch:t,ts:r,sq:a,data:s})=>({topic:"perps.statistics",type:"statistic",channel:t,timestamp:r,sequence:a,payload:s})),Be=u.extend({ch:be,data:z.array(la)}).transform(({ch:t,ts:r,sq:a,data:s})=>({topic:"perps.candles",type:"candle",channel:t,timestamp:r,sequence:a,payload:{instrumentId:pe(t),interval:He(t),candles:s}})),zt=z.union([Ue,Ie,Me,Re,Ae,Be]),De=u.extend({ch:ze});function S(t,r,a){return De.extend({ch:z.literal(r),data:a}).transform(s=>{let o=s;return {type:t,channel:o.ch,timestamp:o.ts,sequence:o.sq,payload:o.data}})}var qe=S("balance","balances",G),we=S("portfolio","portfolio",K$1),Oe=S("order","orders",Na),je=S("fill","fills",Qa),Ne=S("funding","funding",O$1),Le=S("deposit","deposits",$),Fe=S("withdrawal","withdrawals",da),Ut=z.union([qe,we,Oe,je,Ne,Le,Fe]);function pe(t){let[,r]=t.split("::");return a.parse(Number(r))}function He(t){let[,,r]=t.split("::");return r}var Ye=z.object({id:z.string(),body:z.string().nullish(),parentEntityType:ta$1.nullish(),parentEntityID:z.number().int().nullish(),parentCommentID:z.string().nullish(),userAddress:z.string().nullish(),replyAddress:z.string().nullish(),createdAt:z.string().nullish(),updatedAt:z.string().nullish(),media:z.array(O).nullish(),profile:K.nullish(),reactions:z.array(N).nullish(),reportCount:z.number().int().nullish(),reactionCount:z.number().int().nullish(),tradeAsset:z.string().nullish()}),$e=z.object({topic:z.literal("comments"),type:z.literal("comment_created"),timestamp:aa,payload:P}),Ke=z.object({topic:z.literal("comments"),type:z.literal("comment_removed"),timestamp:aa,payload:Ye}),We=z.object({topic:z.literal("comments"),type:z.literal("reaction_created"),timestamp:aa,payload:N}),Ze=z.object({topic:z.literal("comments"),type:z.literal("reaction_removed"),timestamp:aa,payload:N}),ce=z.object({symbol:z.string(),timestamp:aa,value:Ja}),Ge="prices.crypto.binance",Qe="prices.crypto.chainlink",Ve=z.literal("crypto_prices"),Je=z.literal("crypto_prices_chainlink"),Xe=Ve.transform(()=>Ge),et=Je.transform(()=>Qe),tt=z.object({topic:Xe,type:z.literal("update"),timestamp:aa,payload:ce}),nt=z.object({topic:et,type:z.literal("update"),timestamp:aa,payload:ce}),rt=z.discriminatedUnion("topic",[tt,nt]),at=z.object({symbol:z.string(),value:Ja,full_accuracy_value:Ha.nullish(),timestamp:aa,received_at:aa.nullish(),is_carried_forward:z.boolean().nullish()}).transform(({full_accuracy_value:t,received_at:r,is_carried_forward:a,value:s,...o})=>({...o,value:t??s,receivedAt:r,isCarriedForward:a})),st=z.object({timestamp:z.number(),value:Ja}),it=z.object({symbol:z.string(),data:z.array(st)}),ot=z.literal("equity_prices"),pt="prices.equity.pyth",le=ot.transform(()=>pt),ct=z.object({topic:le,type:z.literal("update"),timestamp:aa,payload:at}),lt=z.object({topic:le,type:z.literal("subscribe"),timestamp:aa,payload:it}),mt=z.discriminatedUnion("type",[ct,lt]),dt=z.discriminatedUnion("type",[$e,Ke,We,Ze]),Bt=z.discriminatedUnion("topic",[dt,rt,mt]);var ht=z.object({gameId:z.number().int(),sportradarGameId:z.string().nullish(),slug:z.string().nullish(),leagueAbbreviation:z.string(),homeTeam:z.string().nullish(),awayTeam:z.string().nullish(),status:z.string(),live:z.boolean(),ended:z.boolean(),score:z.string(),period:z.string().nullish(),elapsed:z.string().nullish(),finishedTimestamp:ga.nullish(),finished_timestamp:ga.nullish(),turn:z.string().nullish()}).transform(({finishedTimestamp:t,finished_timestamp:r,...a})=>({...a,finishedAt:t??r})),Ot=ht.transform(t=>({topic:"sports",type:"sport_result",payload:t}));export{$e as CommentCreatedEventSchema,Ke as CommentRemovedEventSchema,dt as CommentsEventSchema,tt as CryptoPricesBinanceEventSchema,nt as CryptoPricesChainlinkEventSchema,rt as CryptoPricesEventSchema,Et as CustomMarketEventSchema,mt as EquityPricesEventSchema,lt as EquityPricesSubscribeEventSchema,ct as EquityPricesUpdateEventSchema,re as MarketBestBidAskEventSchema,X as MarketBookEventSchema,ft as MarketEventSchema,te as MarketLastTradePriceEventSchema,ee as MarketPriceChangeEventSchema,ie as MarketResolvedEventSchema,ne as MarketTickSizeChangeEventSchema,se as NewMarketEventSchema,qe as PerpsBalanceUpdateEventSchema,Ie as PerpsBboEventSchema,Me as PerpsBookEventSchema,Be as PerpsCandleEventSchema,Le as PerpsDepositUpdateEventSchema,je as PerpsFillUpdateEventSchema,Ne as PerpsFundingUpdateEventSchema,zt as PerpsMarketDataEventSchema,Oe as PerpsOrderUpdateEventSchema,we as PerpsPortfolioUpdateEventSchema,Ut as PerpsSessionUpdateEventSchema,Ae as PerpsStatisticEventSchema,Re as PerpsTickerEventSchema,Ue as PerpsTradeEventSchema,Fe as PerpsWithdrawalUpdateEventSchema,We as ReactionCreatedEventSchema,Ze as ReactionRemovedEventSchema,Bt as RealtimeEventSchema,Ot as SportsResultEventSchema,St as StandardMarketEventSchema,U as TradeStatus,vt as UserEventSchema,fe as UserOrderEventSchema,oe as UserOrderEventType,J as UserOrderStatus,Pe as UserTradeEventSchema};//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polymarket/bindings",
3
- "version": "0.1.0-beta.8",
3
+ "version": "0.1.0-beta.9",
4
4
  "description": "Internal package. Contains generated bindings for the Polymarket API. Not intended for direct use.",
5
5
  "repository": {
6
6
  "type": "git",