@polymarket/bindings 0.1.0-beta.5 → 0.1.0-beta.7

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.
@@ -425,6 +425,12 @@ declare const GammaMarketSchema: z.ZodObject<{
425
425
  rebateRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
426
426
  }, z.core.$strip>>>;
427
427
  }, z.core.$strip>;
428
+ /**
429
+ * Parses a single market into the normalized binary {@link Market} model.
430
+ *
431
+ * Markets without exactly two outcomes cannot be represented by the binary
432
+ * model and fail validation instead of throwing during normalization.
433
+ */
428
434
  declare const MarketSchema: z.ZodPipe<z.ZodObject<{
429
435
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
430
436
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -884,7 +890,7 @@ declare const MarketSchema: z.ZodPipe<z.ZodObject<{
884
890
  rebateRate: DecimalString;
885
891
  } | null | undefined;
886
892
  }>>;
887
- declare const ListMarketsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
893
+ declare const ListMarketsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
888
894
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
889
895
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
890
896
  conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>>, z.ZodTransform<CtfConditionId | null, CtfConditionId | null | undefined>>;
@@ -1113,7 +1119,7 @@ declare const ListMarketsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
1113
1119
  takerOnly: z.ZodBoolean;
1114
1120
  rebateRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1115
1121
  }, z.core.$strip>>>;
1116
- }, z.core.$strip>, z.ZodTransform<Market, {
1122
+ }, z.core.$strip>, z.ZodTransform<Market | null, {
1117
1123
  id: MarketId;
1118
1124
  conditionId: CtfConditionId | null;
1119
1125
  outcomes: string[];
@@ -1342,7 +1348,7 @@ declare const ListMarketsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
1342
1348
  takerOnly: boolean;
1343
1349
  rebateRate: DecimalString;
1344
1350
  } | null | undefined;
1345
- }>>>;
1351
+ }>>>, z.ZodTransform<Market[], (Market | null)[]>>;
1346
1352
  declare const ListMarketsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
1347
1353
  markets: z.ZodArray<z.ZodPipe<z.ZodObject<{
1348
1354
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
@@ -1573,7 +1579,7 @@ declare const ListMarketsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
1573
1579
  takerOnly: z.ZodBoolean;
1574
1580
  rebateRate: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1575
1581
  }, z.core.$strip>>>;
1576
- }, z.core.$strip>, z.ZodTransform<Market, {
1582
+ }, z.core.$strip>, z.ZodTransform<Market | null, {
1577
1583
  id: MarketId;
1578
1584
  conditionId: CtfConditionId | null;
1579
1585
  outcomes: string[];
@@ -1808,7 +1814,7 @@ declare const ListMarketsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
1808
1814
  items: Market[];
1809
1815
  nextCursor: PaginationCursor | undefined;
1810
1816
  }, {
1811
- markets: Market[];
1817
+ markets: (Market | null)[];
1812
1818
  next_cursor?: PaginationCursor | undefined;
1813
1819
  }>>;
1814
1820
  declare const FetchMarketTagsResponseSchema: z.ZodArray<z.ZodObject<{
@@ -1831,6 +1837,11 @@ type ListMarketsResponse = z.infer<typeof ListMarketsResponseSchema>;
1831
1837
  type ListMarketsKeysetResponse = z.infer<typeof ListMarketsKeysetResponseSchema>;
1832
1838
  type FetchMarketTagsResponse = z.infer<typeof FetchMarketTagsResponseSchema>;
1833
1839
  declare function normalizeMarket(market: GammaMarket): Market;
1840
+ /**
1841
+ * Whether a raw market has exactly the two outcomes required by the binary
1842
+ * {@link Market} model. Callers must check this before {@link normalizeMarket}.
1843
+ */
1844
+ declare function hasBinaryOutcomes(market: GammaMarket): boolean;
1834
1845
 
1835
1846
  declare const SeriesIdSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<SeriesId, string>>;
1836
1847
  declare const CollectionReferenceSchema: z.ZodObject<{
@@ -2144,6 +2155,7 @@ type EventPartner = {
2144
2155
  };
2145
2156
  type Event = {
2146
2157
  id: EventId;
2158
+ parentEventId?: EventId | null;
2147
2159
  ticker?: string | null;
2148
2160
  slug?: string | null;
2149
2161
  title?: string | null;
@@ -2212,7 +2224,7 @@ declare const GammaEventSchema: z.ZodObject<{
2212
2224
  volume1yr: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
2213
2225
  featuredImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2214
2226
  disqusThread: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2215
- parentEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2227
+ parentEventId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<EventId, string>>>>;
2216
2228
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2217
2229
  liquidityAmm: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
2218
2230
  liquidityClob: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
@@ -2982,7 +2994,7 @@ declare const EventSchema: z.ZodPipe<z.ZodObject<{
2982
2994
  volume1yr: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
2983
2995
  featuredImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2984
2996
  disqusThread: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2985
- parentEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2997
+ parentEventId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<EventId, string>>>>;
2986
2998
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2987
2999
  liquidityAmm: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
2988
3000
  liquidityClob: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
@@ -3751,7 +3763,7 @@ declare const EventSchema: z.ZodPipe<z.ZodObject<{
3751
3763
  volume1yr?: DecimalString | null | undefined;
3752
3764
  featuredImage?: string | null | undefined;
3753
3765
  disqusThread?: string | null | undefined;
3754
- parentEventId?: number | null | undefined;
3766
+ parentEventId?: EventId | null | undefined;
3755
3767
  enableOrderBook?: boolean | null | undefined;
3756
3768
  liquidityAmm?: DecimalString | null | undefined;
3757
3769
  liquidityClob?: DecimalString | null | undefined;
@@ -4063,7 +4075,7 @@ declare const ListEventsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4063
4075
  volume1yr: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
4064
4076
  featuredImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4065
4077
  disqusThread: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4066
- parentEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4078
+ parentEventId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<EventId, string>>>>;
4067
4079
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4068
4080
  liquidityAmm: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
4069
4081
  liquidityClob: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
@@ -4832,7 +4844,7 @@ declare const ListEventsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4832
4844
  volume1yr?: DecimalString | null | undefined;
4833
4845
  featuredImage?: string | null | undefined;
4834
4846
  disqusThread?: string | null | undefined;
4835
- parentEventId?: number | null | undefined;
4847
+ parentEventId?: EventId | null | undefined;
4836
4848
  enableOrderBook?: boolean | null | undefined;
4837
4849
  liquidityAmm?: DecimalString | null | undefined;
4838
4850
  liquidityClob?: DecimalString | null | undefined;
@@ -5145,7 +5157,7 @@ declare const ListEventsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
5145
5157
  volume1yr: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
5146
5158
  featuredImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5147
5159
  disqusThread: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5148
- parentEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5160
+ parentEventId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<EventId, string>>>>;
5149
5161
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5150
5162
  liquidityAmm: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
5151
5163
  liquidityClob: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
@@ -5914,7 +5926,7 @@ declare const ListEventsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
5914
5926
  volume1yr?: DecimalString | null | undefined;
5915
5927
  featuredImage?: string | null | undefined;
5916
5928
  disqusThread?: string | null | undefined;
5917
- parentEventId?: number | null | undefined;
5929
+ parentEventId?: EventId | null | undefined;
5918
5930
  enableOrderBook?: boolean | null | undefined;
5919
5931
  liquidityAmm?: DecimalString | null | undefined;
5920
5932
  liquidityClob?: DecimalString | null | undefined;
@@ -6479,7 +6491,7 @@ declare const PublicSearchResponseSchema: z.ZodObject<{
6479
6491
  volume1yr: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
6480
6492
  featuredImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6481
6493
  disqusThread: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6482
- parentEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6494
+ parentEventId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<EventId, string>>>>;
6483
6495
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6484
6496
  liquidityAmm: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
6485
6497
  liquidityClob: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
@@ -7248,7 +7260,7 @@ declare const PublicSearchResponseSchema: z.ZodObject<{
7248
7260
  volume1yr?: DecimalString | null | undefined;
7249
7261
  featuredImage?: string | null | undefined;
7250
7262
  disqusThread?: string | null | undefined;
7251
- parentEventId?: number | null | undefined;
7263
+ parentEventId?: EventId | null | undefined;
7252
7264
  enableOrderBook?: boolean | null | undefined;
7253
7265
  liquidityAmm?: DecimalString | null | undefined;
7254
7266
  liquidityClob?: DecimalString | null | undefined;
@@ -7748,7 +7760,7 @@ declare const SeriesSchema: z.ZodObject<{
7748
7760
  volume1yr: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
7749
7761
  featuredImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7750
7762
  disqusThread: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7751
- parentEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7763
+ parentEventId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<EventId, string>>>>;
7752
7764
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7753
7765
  liquidityAmm: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
7754
7766
  liquidityClob: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
@@ -8517,7 +8529,7 @@ declare const SeriesSchema: z.ZodObject<{
8517
8529
  volume1yr?: DecimalString | null | undefined;
8518
8530
  featuredImage?: string | null | undefined;
8519
8531
  disqusThread?: string | null | undefined;
8520
- parentEventId?: number | null | undefined;
8532
+ parentEventId?: EventId | null | undefined;
8521
8533
  enableOrderBook?: boolean | null | undefined;
8522
8534
  liquidityAmm?: DecimalString | null | undefined;
8523
8535
  liquidityClob?: DecimalString | null | undefined;
@@ -8927,7 +8939,7 @@ declare const ListSeriesResponseSchema: z.ZodArray<z.ZodObject<{
8927
8939
  volume1yr: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
8928
8940
  featuredImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8929
8941
  disqusThread: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8930
- parentEventId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8942
+ parentEventId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<EventId, string>>>>;
8931
8943
  enableOrderBook: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
8932
8944
  liquidityAmm: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
8933
8945
  liquidityClob: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
@@ -9696,7 +9708,7 @@ declare const ListSeriesResponseSchema: z.ZodArray<z.ZodObject<{
9696
9708
  volume1yr?: DecimalString | null | undefined;
9697
9709
  featuredImage?: string | null | undefined;
9698
9710
  disqusThread?: string | null | undefined;
9699
- parentEventId?: number | null | undefined;
9711
+ parentEventId?: EventId | null | undefined;
9700
9712
  enableOrderBook?: boolean | null | undefined;
9701
9713
  liquidityAmm?: DecimalString | null | undefined;
9702
9714
  liquidityClob?: DecimalString | null | undefined;
@@ -10183,4 +10195,4 @@ declare const WalletTypeSchema: z.ZodObject<{
10183
10195
  }>;
10184
10196
  }, z.core.$strip>;
10185
10197
 
10186
- export { type BestLine, BestLineSchema, type CategoryReference, CategoryReferenceSchema, type Chat, ChatSchema, type ClobRewards, ClobRewardsSchema, type CollectionReference, CollectionReferenceSchema, type Event, type EventCreator, EventCreatorSchema, type EventDisplay, type EventEstimation, type EventExternalPartnerMapping, EventExternalPartnerMappingSchema, type EventMetrics, type EventPartner, type EventReference, EventReferenceSchema, type EventResolution, type EventSchedule, EventSchema, type EventSeries, type EventSportsMetadata, type EventState, type EventTag, type EventTrading, type FeeSchedule, FeeScheduleSchema, type FetchEventTagsResponse, FetchEventTagsResponseSchema, type FetchMarketTagsResponse, FetchMarketTagsResponseSchema, type GammaEvent, GammaEventSchema, type GammaMarket, GammaMarketSchema, type ImageOptimization, ImageOptimizationSchema, type InternalUser, InternalUserSchema, type ListEventsKeysetResponse, ListEventsKeysetResponseSchema, type ListEventsResponse, ListEventsResponseSchema, type ListMarketsKeysetResponse, ListMarketsKeysetResponseSchema, type ListMarketsResponse, ListMarketsResponseSchema, type ListRelatedTagResourcesResponse, ListRelatedTagResourcesResponseSchema, type ListRelatedTagsResponse, ListRelatedTagsResponseSchema, type ListSeriesResponse, ListSeriesResponseSchema, type ListSportsMetadataResponse, ListSportsMetadataResponseSchema, type ListTagsResponse, ListTagsResponseSchema, type ListTeamsResponse, ListTeamsResponseSchema, type Market, type MarketEvent, type MarketMetrics, type MarketOutcome, type MarketOutcomes, type MarketPrices, type MarketResolution, type MarketRewards, MarketSchema, type MarketSportsMetadata, type MarketState, type MarketTag, type MarketTrading, type PaginationEnvelope, PaginationEnvelopeSchema, type Partner, PartnerSchema, type Profile, ProfileSchema, type PublicProfile, PublicProfileSchema, type PublicProfileUser, PublicProfileUserSchema, type PublicSearchResponse, PublicSearchResponseSchema, type RelatedMarket, RelatedMarketSchema, type RelatedTag, RelatedTagSchema, type SearchPagination, SearchPaginationSchema, type SearchTag, SearchTagSchema, type Series, SeriesIdSchema, type SeriesReference, SeriesReferenceSchema, SeriesSchema, type SportsMarketTypesResponse, SportsMarketTypesResponseSchema, type SportsMetadata, SportsMetadataSchema, type Tag, type TagReference, TagReferenceSchema, TagSchema, type Team, TeamSchema, type TemplateReference, TemplateReferenceSchema, UmaResolutionStatus, WalletType, WalletTypeSchema, normalizeMarket };
10198
+ export { type BestLine, BestLineSchema, type CategoryReference, CategoryReferenceSchema, type Chat, ChatSchema, type ClobRewards, ClobRewardsSchema, type CollectionReference, CollectionReferenceSchema, type Event, type EventCreator, EventCreatorSchema, type EventDisplay, type EventEstimation, type EventExternalPartnerMapping, EventExternalPartnerMappingSchema, type EventMetrics, type EventPartner, type EventReference, EventReferenceSchema, type EventResolution, type EventSchedule, EventSchema, type EventSeries, type EventSportsMetadata, type EventState, type EventTag, type EventTrading, type FeeSchedule, FeeScheduleSchema, type FetchEventTagsResponse, FetchEventTagsResponseSchema, type FetchMarketTagsResponse, FetchMarketTagsResponseSchema, type GammaEvent, GammaEventSchema, type GammaMarket, GammaMarketSchema, type ImageOptimization, ImageOptimizationSchema, type InternalUser, InternalUserSchema, type ListEventsKeysetResponse, ListEventsKeysetResponseSchema, type ListEventsResponse, ListEventsResponseSchema, type ListMarketsKeysetResponse, ListMarketsKeysetResponseSchema, type ListMarketsResponse, ListMarketsResponseSchema, type ListRelatedTagResourcesResponse, ListRelatedTagResourcesResponseSchema, type ListRelatedTagsResponse, ListRelatedTagsResponseSchema, type ListSeriesResponse, ListSeriesResponseSchema, type ListSportsMetadataResponse, ListSportsMetadataResponseSchema, type ListTagsResponse, ListTagsResponseSchema, type ListTeamsResponse, ListTeamsResponseSchema, type Market, type MarketEvent, type MarketMetrics, type MarketOutcome, type MarketOutcomes, type MarketPrices, type MarketResolution, type MarketRewards, MarketSchema, type MarketSportsMetadata, type MarketState, type MarketTag, type MarketTrading, type PaginationEnvelope, PaginationEnvelopeSchema, type Partner, PartnerSchema, type Profile, ProfileSchema, type PublicProfile, PublicProfileSchema, type PublicProfileUser, PublicProfileUserSchema, type PublicSearchResponse, PublicSearchResponseSchema, type RelatedMarket, RelatedMarketSchema, type RelatedTag, RelatedTagSchema, type SearchPagination, SearchPaginationSchema, type SearchTag, SearchTagSchema, type Series, SeriesIdSchema, type SeriesReference, SeriesReferenceSchema, SeriesSchema, type SportsMarketTypesResponse, SportsMarketTypesResponseSchema, type SportsMetadata, SportsMetadataSchema, type Tag, type TagReference, TagReferenceSchema, TagSchema, type Team, TeamSchema, type TemplateReference, TemplateReferenceSchema, UmaResolutionStatus, WalletType, WalletTypeSchema, hasBinaryOutcomes, normalizeMarket };
@@ -1,2 +1,2 @@
1
- import {a as a$1,E,e,s,r,q}from'../chunk-YJ7M6UHS.js';export{x as BestLineSchema,d as CategoryReferenceSchema,t as ChatSchema,g as ClobRewardsSchema,q as CollectionReferenceSchema,N as CommentMediaSchema,I as CommentPositionSchema,J as CommentProfileSchema,O as CommentSchema,u as EventCreatorSchema,w as EventExternalPartnerMappingSchema,c as EventReferenceSchema,E as EventSchema,b as FeeScheduleSchema,H as FetchEventTagsResponseSchema,n as FetchMarketTagsResponseSchema,D as GammaEventSchema,j as GammaMarketSchema,a as ImageOptimizationSchema,h as InternalUserSchema,P as ListCommentsResponseSchema,G as ListEventsKeysetResponseSchema,F as ListEventsResponseSchema,m as ListMarketsKeysetResponseSchema,l as ListMarketsResponseSchema,B as ListSportsMetadataResponseSchema,A as ListTeamsResponseSchema,k as MarketSchema,v as PartnerSchema,M as ReactionSchema,K as ReactionType,L as ReactionTypeSchema,f as RelatedMarketSchema,p as SeriesIdSchema,r as SeriesReferenceSchema,C as SportsMarketTypesResponseSchema,z as SportsMetadataSchema,e as TagReferenceSchema,y as TeamSchema,s as TemplateReferenceSchema,i as UmaResolutionStatus,o as normalizeMarket}from'../chunk-YJ7M6UHS.js';import {ka,$,Da}from'../chunk-IHJYHHWK.js';export{Da as TagIdSchema}from'../chunk-IHJYHHWK.js';import {z as z$1}from'zod';var pe=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})),ge=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()}),Re=z$1.object({events:z$1.array(E).nullish(),tags:z$1.array(T).nullish(),profiles:z$1.array(b).nullish(),pagination:z.nullish()});var a=e.extend({templates:z$1.array(s).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})),Ae=z$1.array(a),ve=z$1.array(L),Ee=z$1.array(a);var I=r.extend({events:z$1.array(E).nullish(),collections:z$1.array(q).nullish(),tags:z$1.array(a).nullish()}),Ce=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||{}),Be=z$1.object({type:z$1.enum(y),typeName:z$1.enum(["EOA","POLY_PROXY","GNOSIS_SAFE","DEPOSIT_WALLET"])});export{Ee as ListRelatedTagResourcesResponseSchema,ve as ListRelatedTagsResponseSchema,Ce as ListSeriesResponseSchema,Ae as ListTagsResponseSchema,pe as PaginationEnvelopeSchema,b as ProfileSchema,ge as PublicProfileSchema,P as PublicProfileUserSchema,Re as PublicSearchResponseSchema,L as RelatedTagSchema,z as SearchPaginationSchema,T as SearchTagSchema,I as SeriesSchema,a as TagSchema,y as WalletType,Be as WalletTypeSchema};//# sourceMappingURL=index.js.map
1
+ import {a as a$1,F,e,t,s,r}from'../chunk-RN5EPAZQ.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-RN5EPAZQ.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
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/gamma/pagination.ts","../../src/gamma/profile.ts","../../src/gamma/search.ts","../../src/gamma/tag.ts","../../src/gamma/series.ts","../../src/gamma/wallet.ts"],"names":["PaginationEnvelopeSchema","z","PublicProfileUserSchema","ProfileSchema","IsoDateTimeStringSchema","ImageOptimizationSchema","proxyWallet","rest","PublicProfileSchema","EvmAddressSchema","SearchTagSchema","TagIdSchema","event_count","SearchPaginationSchema","PublicSearchResponseSchema","EventSchema","TagSchema","TagReferenceSchema","TemplateReferenceSchema","RelatedTagSchema","tagID","relatedTagID","ListTagsResponseSchema","ListRelatedTagsResponseSchema","ListRelatedTagResourcesResponseSchema","SeriesSchema","SeriesReferenceSchema","CollectionReferenceSchema","ListSeriesResponseSchema","WalletType","WalletTypeSchema"],"mappings":"uxCAEO,IAAMA,GAA2BC,GAAAA,CAAE,MAAA,CAAO,CAC/C,OAAA,CAASA,GAAAA,CAAE,OAAA,EAAQ,CAAE,OAAA,GACrB,YAAA,CAAcA,GAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAAE,OAAA,EACjC,CAAC,ECDM,IAAMC,CAAAA,CAA0BD,GAAAA,CAAE,MAAA,CAAO,CAC9C,EAAA,CAAIA,GAAAA,CAAE,MAAA,EAAO,CACb,YAAA,CAAcA,GAAAA,CAAE,OAAA,EAAQ,CAAE,SAAQ,CAClC,OAAA,CAASA,GAAAA,CAAE,OAAA,EAAQ,CAAE,OAAA,EAAQ,CAC7B,GAAA,CAAKA,IAAE,OAAA,EAAQ,CAAE,OAAA,EACnB,CAAC,CAAA,CAEYE,CAAAA,CAAgBF,GAAAA,CAC1B,OAAO,CACN,EAAA,CAAIA,GAAAA,CAAE,MAAA,GAAS,OAAA,EAAQ,CACvB,IAAA,CAAMA,GAAAA,CAAE,QAAO,CAAE,OAAA,EAAQ,CACzB,IAAA,CAAMA,GAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,GAAM,OAAA,EAAQ,CAC/B,QAAA,CAAUA,GAAAA,CAAE,MAAA,EAAO,CAAE,OAAA,EAAQ,CAC7B,UAAWA,GAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAAE,OAAA,EAAQ,CACpC,SAAA,CAAWA,IAAE,MAAA,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velopeSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport type PaginationEnvelope = z.infer<typeof PaginationEnvelopeSchema>;\n","import { z } from 'zod';\nimport { EvmAddressSchema, IsoDateTimeStringSchema } from '../shared';\nimport { ImageOptimizationSchema } from './common';\n\nexport const PublicProfileUserSchema = z.object({\n id: z.string(),\n communityMod: z.boolean().nullish(),\n creator: z.boolean().nullish(),\n mod: z.boolean().nullish(),\n});\n\nexport const ProfileSchema = z\n .object({\n id: z.string().nullish(),\n name: z.string().nullish(),\n user: z.number().int().nullish(),\n referral: z.string().nullish(),\n createdBy: z.number().int().nullish(),\n updatedBy: z.number().int().nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n updatedAt: IsoDateTimeStringSchema.nullish(),\n utmSource: z.string().nullish(),\n utmMedium: z.string().nullish(),\n utmCampaign: z.string().nullish(),\n utmContent: z.string().nullish(),\n utmTerm: z.string().nullish(),\n walletActivated: z.boolean().nullish(),\n pseudonym: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n profileImage: z.string().nullish(),\n bio: z.string().nullish(),\n proxyWallet: z.string().nullish(),\n profileImageOptimized: ImageOptimizationSchema.nullish(),\n isCloseOnly: z.boolean().nullish(),\n isCertReq: z.boolean().nullish(),\n certReqDate: IsoDateTimeStringSchema.nullish(),\n discordUsername: z.string().nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n dubPartnerId: z.string().nullish(),\n termsAcceptedAt: IsoDateTimeStringSchema.nullish(),\n viewOnlyAcknowledgedAt: IsoDateTimeStringSchema.nullish(),\n isReferralRestricted: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport const PublicProfileSchema = z\n .object({\n createdAt: IsoDateTimeStringSchema.nullish(),\n proxyWallet: EvmAddressSchema.nullish(),\n profileImage: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n bio: z.string().nullish(),\n pseudonym: z.string().nullish(),\n name: z.string().nullish(),\n users: z.array(PublicProfileUserSchema).nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport type PublicProfile = z.infer<typeof PublicProfileSchema>;\nexport type Profile = z.infer<typeof ProfileSchema>;\nexport type PublicProfileUser = z.infer<typeof PublicProfileUserSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { EventSchema } from './event';\nimport { ProfileSchema } from './profile';\n\nexport const SearchTagSchema = z\n .object({\n id: TagIdSchema,\n event_count: z.number().int().nullish(),\n label: z.string().nullish(),\n slug: z.string().nullish(),\n })\n .transform(({ event_count, ...rest }) => ({\n ...rest,\n eventCount: event_count,\n }));\n\nexport const SearchPaginationSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport const PublicSearchResponseSchema = z.object({\n events: z.array(EventSchema).nullish(),\n tags: z.array(SearchTagSchema).nullish(),\n profiles: z.array(ProfileSchema).nullish(),\n pagination: SearchPaginationSchema.nullish(),\n});\n\nexport type SearchTag = z.infer<typeof SearchTagSchema>;\nexport type SearchPagination = z.infer<typeof SearchPaginationSchema>;\nexport type PublicSearchResponse = z.infer<typeof PublicSearchResponseSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { TagReferenceSchema } from './common';\nimport { TemplateReferenceSchema } from './event';\n\nexport const TagSchema = TagReferenceSchema.extend({\n templates: z.array(TemplateReferenceSchema).nullish(),\n});\n\nexport const RelatedTagSchema = z\n .object({\n id: z.string(),\n tagID: z.number().int().nullish(),\n relatedTagID: z.number().int().nullish(),\n rank: z.number().int().nullish(),\n })\n .transform(({ tagID, relatedTagID, ...rest }) => ({\n ...rest,\n tagId: tagID,\n relatedTagId: relatedTagID,\n }));\n\nexport const ListTagsResponseSchema = z.array(TagSchema);\nexport const ListRelatedTagsResponseSchema = z.array(RelatedTagSchema);\nexport const ListRelatedTagResourcesResponseSchema = z.array(TagSchema);\n\nexport type Tag = z.infer<typeof TagSchema>;\nexport type RelatedTag = z.infer<typeof RelatedTagSchema>;\nexport type ListTagsResponse = z.infer<typeof ListTagsResponseSchema>;\nexport type ListRelatedTagsResponse = z.infer<\n typeof ListRelatedTagsResponseSchema\n>;\nexport type ListRelatedTagResourcesResponse = z.infer<\n typeof ListRelatedTagResourcesResponseSchema\n>;\n\nexport { TagIdSchema };\n","import { z } from 'zod';\nimport {\n CollectionReferenceSchema,\n EventSchema,\n SeriesReferenceSchema,\n} from './event';\nimport { TagSchema } from './tag';\n\nexport const SeriesSchema = SeriesReferenceSchema.extend({\n events: z.array(EventSchema).nullish(),\n collections: z.array(CollectionReferenceSchema).nullish(),\n tags: z.array(TagSchema).nullish(),\n});\n\nexport const ListSeriesResponseSchema = z.array(SeriesSchema);\n\nexport type Series = z.infer<typeof SeriesSchema>;\nexport type ListSeriesResponse = z.infer<typeof ListSeriesResponseSchema>;\n","import { z } from 'zod';\n\nexport enum WalletType {\n EOA = 0,\n POLY_PROXY = 1,\n GNOSIS_SAFE = 2,\n DEPOSIT_WALLET = 3,\n}\n\nexport const WalletTypeSchema = z.object({\n type: z.enum(WalletType),\n typeName: z.enum(['EOA', 'POLY_PROXY', 'GNOSIS_SAFE', 'DEPOSIT_WALLET']),\n});\n"]}
1
+ {"version":3,"sources":["../../src/gamma/pagination.ts","../../src/gamma/profile.ts","../../src/gamma/search.ts","../../src/gamma/tag.ts","../../src/gamma/series.ts","../../src/gamma/wallet.ts"],"names":["PaginationEnvelopeSchema","z","PublicProfileUserSchema","ProfileSchema","IsoDateTimeStringSchema","ImageOptimizationSchema","proxyWallet","rest","PublicProfileSchema","EvmAddressSchema","SearchTagSchema","TagIdSchema","event_count","SearchPaginationSchema","PublicSearchResponseSchema","EventSchema","TagSchema","TagReferenceSchema","TemplateReferenceSchema","RelatedTagSchema","tagID","relatedTagID","ListTagsResponseSchema","ListRelatedTagsResponseSchema","ListRelatedTagResourcesResponseSchema","SeriesSchema","SeriesReferenceSchema","CollectionReferenceSchema","ListSeriesResponseSchema","WalletType","WalletTypeSchema"],"mappings":"8yCAEO,IAAMA,GAA2BC,GAAAA,CAAE,MAAA,CAAO,CAC/C,OAAA,CAASA,GAAAA,CAAE,OAAA,EAAQ,CAAE,OAAA,GACrB,YAAA,CAAcA,GAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAAE,OAAA,EACjC,CAAC,ECDM,IAAMC,CAAAA,CAA0BD,GAAAA,CAAE,MAAA,CAAO,CAC9C,EAAA,CAAIA,GAAAA,CAAE,MAAA,EAAO,CACb,YAAA,CAAcA,GAAAA,CAAE,OAAA,EAAQ,CAAE,SAAQ,CAClC,OAAA,CAASA,GAAAA,CAAE,OAAA,EAAQ,CAAE,OAAA,EAAQ,CAC7B,GAAA,CAAKA,IAAE,OAAA,EAAQ,CAAE,OAAA,EACnB,CAAC,CAAA,CAEYE,CAAAA,CAAgBF,GAAAA,CAC1B,OAAO,CACN,EAAA,CAAIA,GAAAA,CAAE,MAAA,GAAS,OAAA,EAAQ,CACvB,IAAA,CAAMA,GAAAA,CAAE,QAAO,CAAE,OAAA,EAAQ,CACzB,IAAA,CAAMA,GAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,GAAM,OAAA,EAAQ,CAC/B,QAAA,CAAUA,GAAAA,CAAE,MAAA,EAAO,CAAE,OAAA,EAAQ,CAC7B,UAAWA,GAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAAE,OAAA,EAAQ,CACpC,SAAA,CAAWA,IAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAAE,SAAQ,CACpC,SAAA,CAAWG,EAAAA,CAAwB,OAAA,GACnC,SAAA,CAAWA,EAAAA,CAAwB,OAAA,EAAQ,CAC3C,SAAA,CAAWH,GAAAA,CAAE,MAAA,EAAO,CAAE,SAAQ,CAC9B,SAAA,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A,CAC1CO,GAAgCtB,GAAAA,CAAE,KAAA,CAAMkB,CAAgB,CAAA,CACxDK,GAAwCvB,GAAAA,CAAE,KAAA,CAAMe,CAAS,MChBzDS,CAAAA,CAAeC,CAAAA,CAAsB,MAAA,CAAO,CACvD,MAAA,CAAQzB,GAAAA,CAAE,KAAA,CAAMc,CAAW,EAAE,OAAA,EAAQ,CACrC,WAAA,CAAad,GAAAA,CAAE,KAAA,CAAM0B,CAAyB,CAAA,CAAE,OAAA,GAChD,IAAA,CAAM1B,GAAAA,CAAE,KAAA,CAAMe,CAAS,CAAA,CAAE,OAAA,EAC3B,CAAC,EAEYY,EAAAA,CAA2B3B,GAAAA,CAAE,KAAA,CAAMwB,CAAY,MCZhDI,CAAAA,CAAAA,CAAAA,CAAAA,GACVA,CAAAA,CAAAA,CAAAA,CAAA,GAAA,CAAM,CAAA,CAAA,CAAN,KAAA,CACAA,CAAAA,CAAAA,CAAAA,CAAA,UAAA,CAAa,CAAA,CAAA,CAAb,aACAA,CAAAA,CAAAA,CAAAA,CAAA,WAAA,CAAc,CAAA,CAAA,CAAd,aAAA,CACAA,IAAA,cAAA,CAAiB,CAAA,CAAA,CAAjB,gBAAA,CAJUA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,IAOCC,EAAAA,CAAmB7B,GAAAA,CAAE,MAAA,CAAO,CACvC,IAAA,CAAMA,GAAAA,CAAE,IAAA,CAAK4B,CAAU,EACvB,QAAA,CAAU5B,GAAAA,CAAE,IAAA,CAAK,CAAC,MAAO,YAAA,CAAc,aAAA,CAAe,gBAAgB,CAAC,CACzE,CAAC","file":"index.js","sourcesContent":["import { z } from 'zod';\n\nexport const PaginationEnvelopeSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport type PaginationEnvelope = z.infer<typeof PaginationEnvelopeSchema>;\n","import { z } from 'zod';\nimport { EvmAddressSchema, IsoDateTimeStringSchema } from '../shared';\nimport { ImageOptimizationSchema } from './common';\n\nexport const PublicProfileUserSchema = z.object({\n id: z.string(),\n communityMod: z.boolean().nullish(),\n creator: z.boolean().nullish(),\n mod: z.boolean().nullish(),\n});\n\nexport const ProfileSchema = z\n .object({\n id: z.string().nullish(),\n name: z.string().nullish(),\n user: z.number().int().nullish(),\n referral: z.string().nullish(),\n createdBy: z.number().int().nullish(),\n updatedBy: z.number().int().nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n updatedAt: IsoDateTimeStringSchema.nullish(),\n utmSource: z.string().nullish(),\n utmMedium: z.string().nullish(),\n utmCampaign: z.string().nullish(),\n utmContent: z.string().nullish(),\n utmTerm: z.string().nullish(),\n walletActivated: z.boolean().nullish(),\n pseudonym: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n profileImage: z.string().nullish(),\n bio: z.string().nullish(),\n proxyWallet: z.string().nullish(),\n profileImageOptimized: ImageOptimizationSchema.nullish(),\n isCloseOnly: z.boolean().nullish(),\n isCertReq: z.boolean().nullish(),\n certReqDate: IsoDateTimeStringSchema.nullish(),\n discordUsername: z.string().nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n dubPartnerId: z.string().nullish(),\n termsAcceptedAt: IsoDateTimeStringSchema.nullish(),\n viewOnlyAcknowledgedAt: IsoDateTimeStringSchema.nullish(),\n isReferralRestricted: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport const PublicProfileSchema = z\n .object({\n createdAt: IsoDateTimeStringSchema.nullish(),\n proxyWallet: EvmAddressSchema.nullish(),\n profileImage: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n bio: z.string().nullish(),\n pseudonym: z.string().nullish(),\n name: z.string().nullish(),\n users: z.array(PublicProfileUserSchema).nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport type PublicProfile = z.infer<typeof PublicProfileSchema>;\nexport type Profile = z.infer<typeof ProfileSchema>;\nexport type PublicProfileUser = z.infer<typeof PublicProfileUserSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { EventSchema } from './event';\nimport { ProfileSchema } from './profile';\n\nexport const SearchTagSchema = z\n .object({\n id: TagIdSchema,\n event_count: z.number().int().nullish(),\n label: z.string().nullish(),\n slug: z.string().nullish(),\n })\n .transform(({ event_count, ...rest }) => ({\n ...rest,\n eventCount: event_count,\n }));\n\nexport const SearchPaginationSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport const PublicSearchResponseSchema = z.object({\n events: z.array(EventSchema).nullish(),\n tags: z.array(SearchTagSchema).nullish(),\n profiles: z.array(ProfileSchema).nullish(),\n pagination: SearchPaginationSchema.nullish(),\n});\n\nexport type SearchTag = z.infer<typeof SearchTagSchema>;\nexport type SearchPagination = z.infer<typeof SearchPaginationSchema>;\nexport type PublicSearchResponse = z.infer<typeof PublicSearchResponseSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { TagReferenceSchema } from './common';\nimport { TemplateReferenceSchema } from './event';\n\nexport const TagSchema = TagReferenceSchema.extend({\n templates: z.array(TemplateReferenceSchema).nullish(),\n});\n\nexport const RelatedTagSchema = z\n .object({\n id: z.string(),\n tagID: z.number().int().nullish(),\n relatedTagID: z.number().int().nullish(),\n rank: z.number().int().nullish(),\n })\n .transform(({ tagID, relatedTagID, ...rest }) => ({\n ...rest,\n tagId: tagID,\n relatedTagId: relatedTagID,\n }));\n\nexport const ListTagsResponseSchema = z.array(TagSchema);\nexport const ListRelatedTagsResponseSchema = z.array(RelatedTagSchema);\nexport const ListRelatedTagResourcesResponseSchema = z.array(TagSchema);\n\nexport type Tag = z.infer<typeof TagSchema>;\nexport type RelatedTag = z.infer<typeof RelatedTagSchema>;\nexport type ListTagsResponse = z.infer<typeof ListTagsResponseSchema>;\nexport type ListRelatedTagsResponse = z.infer<\n typeof ListRelatedTagsResponseSchema\n>;\nexport type ListRelatedTagResourcesResponse = z.infer<\n typeof ListRelatedTagResourcesResponseSchema\n>;\n\nexport { TagIdSchema };\n","import { z } from 'zod';\nimport {\n CollectionReferenceSchema,\n EventSchema,\n SeriesReferenceSchema,\n} from './event';\nimport { TagSchema } from './tag';\n\nexport const SeriesSchema = SeriesReferenceSchema.extend({\n events: z.array(EventSchema).nullish(),\n collections: z.array(CollectionReferenceSchema).nullish(),\n tags: z.array(TagSchema).nullish(),\n});\n\nexport const ListSeriesResponseSchema = z.array(SeriesSchema);\n\nexport type Series = z.infer<typeof SeriesSchema>;\nexport type ListSeriesResponse = z.infer<typeof ListSeriesResponseSchema>;\n","import { z } from 'zod';\n\nexport enum WalletType {\n EOA = 0,\n POLY_PROXY = 1,\n GNOSIS_SAFE = 2,\n DEPOSIT_WALLET = 3,\n}\n\nexport const WalletTypeSchema = z.object({\n type: z.enum(WalletType),\n typeName: z.enum(['EOA', 'POLY_PROXY', 'GNOSIS_SAFE', 'DEPOSIT_WALLET']),\n});\n"]}
package/dist/index.d.ts CHANGED
@@ -148,6 +148,7 @@ declare const TokenIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, stri
148
148
  declare const TransactionIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<TransactionId, string>>;
149
149
  declare const TxHashSchema: z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>;
150
150
  declare const DecimalStringSchema: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
151
+ declare const E6BigIntStringToDecimalStringSchema: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
151
152
  declare const DecimalishSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
152
153
  declare const PositiveDecimalNumberSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodNumber>;
153
154
  declare const BaseUnitsSchema: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
@@ -155,4 +156,11 @@ type ISODateString = IsoDateTimeString;
155
156
  type ISOCalendarDateString = IsoCalendarDateString;
156
157
  type TickSizeValue = z.output<typeof TickSizeValueSchema>;
157
158
 
158
- export { type ApiKey, ApiKeySchema, type BaseUnits, BaseUnitsSchema, type BestLineId, type BuilderCode, BuilderCodeSchema, type CategoryId, CategoryIdSchema, type ChatId, type ClobRewardId, ClobRewardIdSchema, type CollectionId, type ComboConditionId, ComboConditionIdSchema, type CommentId, CommentIdSchema, CommentParentEntityType, CommentParentEntityTypeSchema, type ConditionId, ConditionIdSchema, type CtfConditionId, CtfConditionIdSchema, DateLikeToIsoDateTimeStringSchema, type DecimalString, DecimalStringSchema, DecimalishSchema, EpochLikeToIsoDateTimeStringSchema, type EpochMilliseconds, EpochMillisecondsSchema, EpochMillisecondsStringSchema, EpochMillisecondsToIsoDateTimeStringSchema, EpochSecondsToMillisecondsSchema, type EventCreatorId, type EventExternalPartnerMappingId, type EventId, EventIdSchema, EvmAddressSchema, ISOCalendarDateSchema, type ISOCalendarDateString, type ISODateString, ISODateStringSchema, type ImageOptimizationId, ImageOptimizationIdSchema, type InternalUserId, InternalUserIdSchema, type IsoCalendarDateString, IsoCalendarDateStringSchema, type IsoDateTimeString, IsoDateTimeStringSchema, type MarketId, MarketIdSchema, type MixedDateTimeString, MixedDateTimeStringSchema, type NotificationId, NotificationIdSchema, OptionalConditionIdSchema, OptionalCtfConditionIdSchema, OptionalDateLikeToIsoDateTimeStringSchema, OptionalEpochMillisecondsToIsoDateTimeStringSchema, OrderSide, OrderSideSchema, OrderType, OrderTypeSchema, type PaginationCursor, PaginationCursorSchema, type PartnerId, type PositionId, PositionIdSchema, PositiveDecimalNumberSchema, type QuestionId, QuestionIdSchema, type ResolutionRequestId, ResolutionRequestIdSchema, type RfqId, RfqIdSchema, type RfqQuoteId, RfqQuoteIdSchema, type RfqRequestorPublicId, RfqRequestorPublicIdSchema, type SeriesId, type SportId, type TagId, TagIdSchema, type TeamId, type TemplateId, type TickSizeValue, TickSizeValueSchema, type TokenId, TokenIdSchema, type TransactionId, TransactionIdSchema, TxHashSchema, type Uuid, toApiKey, toBaseUnits, toBestLineId, toBuilderCode, toCategoryId, toChatId, toClobRewardId, toCollectionId, toComboConditionId, toCommentId, toConditionId, toCtfConditionId, toDecimalString, toEpochMilliseconds, toEventCreatorId, toEventExternalPartnerMappingId, toEventId, toImageOptimizationId, toInternalUserId, toIsoCalendarDateString, toIsoDateTimeString, toMarketId, toMixedDateTimeString, toNotificationId, toPaginationCursor, toPartnerId, toPositionId, toQuestionId, toResolutionRequestId, toRfqId, toRfqQuoteId, toRfqRequestorPublicId, toSeriesId, toSportId, toTagId, toTeamId, toTemplateId, toTokenId, toTransactionId, toUuid };
159
+ /**
160
+ * Preprocess helper for upstream fields that serialize missing values as empty
161
+ * strings. Use as `z.preprocess(emptyStringToNull, Schema.nullable())`, or
162
+ * with `.nullish()` when the field can also be absent.
163
+ */
164
+ declare function emptyStringToNull(value: unknown): unknown;
165
+
166
+ export { type ApiKey, ApiKeySchema, type BaseUnits, BaseUnitsSchema, type BestLineId, type BuilderCode, BuilderCodeSchema, type CategoryId, CategoryIdSchema, type ChatId, type ClobRewardId, ClobRewardIdSchema, type CollectionId, type ComboConditionId, ComboConditionIdSchema, type CommentId, CommentIdSchema, CommentParentEntityType, CommentParentEntityTypeSchema, type ConditionId, ConditionIdSchema, type CtfConditionId, CtfConditionIdSchema, DateLikeToIsoDateTimeStringSchema, type DecimalString, DecimalStringSchema, DecimalishSchema, E6BigIntStringToDecimalStringSchema, EpochLikeToIsoDateTimeStringSchema, type EpochMilliseconds, EpochMillisecondsSchema, EpochMillisecondsStringSchema, EpochMillisecondsToIsoDateTimeStringSchema, EpochSecondsToMillisecondsSchema, type EventCreatorId, type EventExternalPartnerMappingId, type EventId, EventIdSchema, EvmAddressSchema, ISOCalendarDateSchema, type ISOCalendarDateString, type ISODateString, ISODateStringSchema, type ImageOptimizationId, ImageOptimizationIdSchema, type InternalUserId, InternalUserIdSchema, type IsoCalendarDateString, IsoCalendarDateStringSchema, type IsoDateTimeString, IsoDateTimeStringSchema, type MarketId, MarketIdSchema, type MixedDateTimeString, MixedDateTimeStringSchema, type NotificationId, NotificationIdSchema, OptionalConditionIdSchema, OptionalCtfConditionIdSchema, OptionalDateLikeToIsoDateTimeStringSchema, OptionalEpochMillisecondsToIsoDateTimeStringSchema, OrderSide, OrderSideSchema, OrderType, OrderTypeSchema, type PaginationCursor, PaginationCursorSchema, type PartnerId, type PositionId, PositionIdSchema, PositiveDecimalNumberSchema, type QuestionId, QuestionIdSchema, type ResolutionRequestId, ResolutionRequestIdSchema, type RfqId, RfqIdSchema, type RfqQuoteId, RfqQuoteIdSchema, type RfqRequestorPublicId, RfqRequestorPublicIdSchema, type SeriesId, type SportId, type TagId, TagIdSchema, type TeamId, type TemplateId, type TickSizeValue, TickSizeValueSchema, type TokenId, TokenIdSchema, type TransactionId, TransactionIdSchema, TxHashSchema, type Uuid, emptyStringToNull, toApiKey, toBaseUnits, toBestLineId, toBuilderCode, toCategoryId, toChatId, toClobRewardId, toCollectionId, toComboConditionId, toCommentId, toConditionId, toCtfConditionId, toDecimalString, toEpochMilliseconds, toEventCreatorId, toEventExternalPartnerMappingId, toEventId, toImageOptimizationId, toInternalUserId, toIsoCalendarDateString, toIsoDateTimeString, toMarketId, toMixedDateTimeString, toNotificationId, toPaginationCursor, toPartnerId, toPositionId, toQuestionId, toResolutionRequestId, toRfqId, toRfqQuoteId, toRfqRequestorPublicId, toSeriesId, toSportId, toTagId, toTeamId, toTemplateId, toTokenId, toTransactionId, toUuid };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{S as ApiKeySchema,Ka 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,Ia as DecimalishSchema,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,Ja 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,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-IHJYHHWK.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-SB2LAVJ4.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map