@polymarket/bindings 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/chunk-JPPG656Y.js +2 -0
  2. package/dist/chunk-JPPG656Y.js.map +1 -0
  3. package/dist/chunk-YXNKEMRF.js +2 -0
  4. package/dist/chunk-YXNKEMRF.js.map +1 -0
  5. package/dist/chunk-ZMJTXTXA.js +2 -0
  6. package/dist/chunk-ZMJTXTXA.js.map +1 -0
  7. package/dist/clob/index.d.ts +489 -8
  8. package/dist/clob/index.js +1 -1
  9. package/dist/clob/index.js.map +1 -1
  10. package/dist/combos/index.d.ts +1 -1
  11. package/dist/combos/index.js +1 -1
  12. package/dist/combos/index.js.map +1 -1
  13. package/dist/{comment-CKJIqOZS.d.ts → comment-tQ-L48Di.d.ts} +2 -2
  14. package/dist/data/index.d.ts +276 -9
  15. package/dist/data/index.js +1 -1
  16. package/dist/data/index.js.map +1 -1
  17. package/dist/gamma/index.d.ts +79 -4
  18. package/dist/gamma/index.js +1 -1
  19. package/dist/gamma/index.js.map +1 -1
  20. package/dist/index.d.ts +108 -213
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/{orders-BV68_6ST.d.ts → orders-SIFuRgWc.d.ts} +114 -2
  24. package/dist/perps/index.d.ts +76 -3
  25. package/dist/perps/index.js +1 -1
  26. package/dist/perps/index.js.map +1 -1
  27. package/dist/relayer/index.d.ts +1 -1
  28. package/dist/relayer/index.js +1 -1
  29. package/dist/shared-QrXQ5O6x.d.ts +223 -0
  30. package/dist/subscriptions/index.d.ts +316 -23
  31. package/dist/subscriptions/index.js +1 -1
  32. package/dist/subscriptions/index.js.map +1 -1
  33. package/package.json +2 -2
  34. package/dist/chunk-2FRDSBWY.js +0 -2
  35. package/dist/chunk-2FRDSBWY.js.map +0 -1
  36. package/dist/chunk-3IZ4N7C2.js +0 -2
  37. package/dist/chunk-3IZ4N7C2.js.map +0 -1
  38. package/dist/chunk-Z6SGQXSJ.js +0 -2
  39. package/dist/chunk-Z6SGQXSJ.js.map +0 -1
@@ -1,6 +1,6 @@
1
- export { C as Comment, a as CommentMedia, b as CommentMediaSchema, c as CommentPosition, d as CommentPositionSchema, e as CommentProfile, f as CommentProfileSchema, g as CommentSchema, L as ListCommentsKeysetResponse, h as ListCommentsKeysetResponseSchema, i as ListCommentsResponse, j as ListCommentsResponseSchema, k as Reaction, l as ReactionSchema, R as ReactionType, m as ReactionTypeSchema } from '../comment-CKJIqOZS.js';
2
- import { CategoryId, IsoDateTimeString, ClobRewardId, ConditionId, DecimalString, IsoCalendarDateString, ImageOptimizationId, EventId, InternalUserId, MarketId, TagId, TokenId, PositionId, TickSizeValue, QuestionId, ResolutionRequestId, MixedDateTimeString, PaginationCursor, BestLineId, ChatId, CollectionId, TeamId, SportId, EventExternalPartnerMappingId, PartnerId, SeriesId, EventCreatorId, TemplateId } from '../index.js';
3
- export { TagIdSchema } from '../index.js';
1
+ export { C as Comment, a as CommentMedia, b as CommentMediaSchema, c as CommentPosition, d as CommentPositionSchema, e as CommentProfile, f as CommentProfileSchema, g as CommentSchema, L as ListCommentsKeysetResponse, h as ListCommentsKeysetResponseSchema, i as ListCommentsResponse, j as ListCommentsResponseSchema, R as Reaction, k as ReactionSchema, l as ReactionType, m as ReactionTypeSchema } from '../comment-tQ-L48Di.js';
2
+ import { C as CategoryId, $ as IsoDateTimeString, j as ClobRewardId, u as ConditionId, y as DecimalString, Z as IsoCalendarDateString, V as ImageOptimizationId, O as EventId, X as InternalUserId, a1 as MarketId, aE as TagId, aK as TokenId, am as PositionId, aI as TickSizeValue, ar as ResolutionRequestId, ap as QuestionId, a3 as MixedDateTimeString, aj as PaginationCursor, c as BestLineId, g as ChatId, l as CollectionId, aG as TeamId, aD as SportId, N as EventExternalPartnerMappingId, al as PartnerId, az as SeriesId, M as EventCreatorId, aH as TemplateId } from '../shared-QrXQ5O6x.js';
3
+ export { aF as TagIdSchema } from '../shared-QrXQ5O6x.js';
4
4
  import { z } from 'zod';
5
5
  import * as _polymarket_types from '@polymarket/types';
6
6
  import { EvmAddress } from '@polymarket/types';
@@ -113,6 +113,12 @@ declare enum UmaResolutionStatus {
113
113
  Resolved = "resolved",
114
114
  Settled = "settled"
115
115
  }
116
+ /** Resolution state for a market using the v2 protocol. */
117
+ declare enum MarketResolutionStatus {
118
+ Inactive = "inactive",
119
+ Active = "active",
120
+ Resolved = "resolved"
121
+ }
116
122
  type MarketState = {
117
123
  active?: boolean | null;
118
124
  closed?: boolean | null;
@@ -176,6 +182,12 @@ type MarketTrading = {
176
182
  feeSchedule?: FeeSchedule | null;
177
183
  };
178
184
  type MarketResolution = {
185
+ /** Parent v2 on-chain event ID, shared by markets in a neg-risk event. */
186
+ onchainEventId?: string | null;
187
+ /** Oracle request ID: a condition ID or the parent event ID. */
188
+ requestId?: ResolutionRequestId | null;
189
+ /** V2 resolution state, distinct from the legacy UMA lifecycle. */
190
+ resolutionStatus?: MarketResolutionStatus | null;
179
191
  questionId: QuestionId | null;
180
192
  negRiskRequestId: ResolutionRequestId | null;
181
193
  umaResolutionStatus: UmaResolutionStatus | null;
@@ -232,6 +244,9 @@ type Market = {
232
244
  declare const GammaMarketSchema: z.ZodObject<{
233
245
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
234
246
  version: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof ProtocolVersion>>>;
247
+ onchainEventId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
248
+ requestId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<ResolutionRequestId, string>>>>>>;
249
+ resolutionStatus: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof MarketResolutionStatus>>>>;
235
250
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
251
  conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
237
252
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -458,6 +473,9 @@ declare const GammaMarketSchema: z.ZodObject<{
458
473
  declare const MarketSchema: z.ZodPipe<z.ZodObject<{
459
474
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
460
475
  version: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof ProtocolVersion>>>;
476
+ onchainEventId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
477
+ requestId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<ResolutionRequestId, string>>>>>>;
478
+ resolutionStatus: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof MarketResolutionStatus>>>>;
461
479
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
462
480
  conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
463
481
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -686,6 +704,9 @@ declare const MarketSchema: z.ZodPipe<z.ZodObject<{
686
704
  positionIds: PositionId[];
687
705
  negRiskRequestID: ResolutionRequestId | null;
688
706
  version?: ProtocolVersion | null | undefined;
707
+ onchainEventId?: string | null | undefined;
708
+ requestId?: ResolutionRequestId | null | undefined;
709
+ resolutionStatus?: MarketResolutionStatus | null | undefined;
689
710
  question?: string | null | undefined;
690
711
  slug?: string | null | undefined;
691
712
  twitterCardImage?: string | null | undefined;
@@ -897,6 +918,9 @@ declare const MarketSchema: z.ZodPipe<z.ZodObject<{
897
918
  declare const ListMarketsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
898
919
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
899
920
  version: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof ProtocolVersion>>>;
921
+ onchainEventId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
922
+ requestId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<ResolutionRequestId, string>>>>>>;
923
+ resolutionStatus: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof MarketResolutionStatus>>>>;
900
924
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
901
925
  conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
902
926
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1125,6 +1149,9 @@ declare const ListMarketsResponseSchema: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObj
1125
1149
  positionIds: PositionId[];
1126
1150
  negRiskRequestID: ResolutionRequestId | null;
1127
1151
  version?: ProtocolVersion | null | undefined;
1152
+ onchainEventId?: string | null | undefined;
1153
+ requestId?: ResolutionRequestId | null | undefined;
1154
+ resolutionStatus?: MarketResolutionStatus | null | undefined;
1128
1155
  question?: string | null | undefined;
1129
1156
  slug?: string | null | undefined;
1130
1157
  twitterCardImage?: string | null | undefined;
@@ -1337,6 +1364,9 @@ declare const ListMarketsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
1337
1364
  markets: z.ZodArray<z.ZodPipe<z.ZodObject<{
1338
1365
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
1339
1366
  version: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof ProtocolVersion>>>;
1367
+ onchainEventId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1368
+ requestId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<ResolutionRequestId, string>>>>>>;
1369
+ resolutionStatus: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof MarketResolutionStatus>>>>;
1340
1370
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1341
1371
  conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
1342
1372
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1565,6 +1595,9 @@ declare const ListMarketsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
1565
1595
  positionIds: PositionId[];
1566
1596
  negRiskRequestID: ResolutionRequestId | null;
1567
1597
  version?: ProtocolVersion | null | undefined;
1598
+ onchainEventId?: string | null | undefined;
1599
+ requestId?: ResolutionRequestId | null | undefined;
1600
+ resolutionStatus?: MarketResolutionStatus | null | undefined;
1568
1601
  question?: string | null | undefined;
1569
1602
  slug?: string | null | undefined;
1570
1603
  twitterCardImage?: string | null | undefined;
@@ -2242,6 +2275,9 @@ declare const GammaEventSchema: z.ZodObject<{
2242
2275
  markets: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
2243
2276
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
2244
2277
  version: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof ProtocolVersion>>>;
2278
+ onchainEventId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2279
+ requestId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<ResolutionRequestId, string>>>>>>;
2280
+ resolutionStatus: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof MarketResolutionStatus>>>>;
2245
2281
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2246
2282
  conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
2247
2283
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2470,6 +2506,9 @@ declare const GammaEventSchema: z.ZodObject<{
2470
2506
  positionIds: PositionId[];
2471
2507
  negRiskRequestID: ResolutionRequestId | null;
2472
2508
  version?: ProtocolVersion | null | undefined;
2509
+ onchainEventId?: string | null | undefined;
2510
+ requestId?: ResolutionRequestId | null | undefined;
2511
+ resolutionStatus?: MarketResolutionStatus | null | undefined;
2473
2512
  question?: string | null | undefined;
2474
2513
  slug?: string | null | undefined;
2475
2514
  twitterCardImage?: string | null | undefined;
@@ -2991,6 +3030,9 @@ declare const EventSchema: z.ZodPipe<z.ZodObject<{
2991
3030
  markets: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
2992
3031
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
2993
3032
  version: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof ProtocolVersion>>>;
3033
+ onchainEventId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3034
+ requestId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<ResolutionRequestId, string>>>>>>;
3035
+ resolutionStatus: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof MarketResolutionStatus>>>>;
2994
3036
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2995
3037
  conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
2996
3038
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3219,6 +3261,9 @@ declare const EventSchema: z.ZodPipe<z.ZodObject<{
3219
3261
  positionIds: PositionId[];
3220
3262
  negRiskRequestID: ResolutionRequestId | null;
3221
3263
  version?: ProtocolVersion | null | undefined;
3264
+ onchainEventId?: string | null | undefined;
3265
+ requestId?: ResolutionRequestId | null | undefined;
3266
+ resolutionStatus?: MarketResolutionStatus | null | undefined;
3222
3267
  question?: string | null | undefined;
3223
3268
  slug?: string | null | undefined;
3224
3269
  twitterCardImage?: string | null | undefined;
@@ -4050,6 +4095,9 @@ declare const ListEventsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4050
4095
  markets: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
4051
4096
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
4052
4097
  version: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof ProtocolVersion>>>;
4098
+ onchainEventId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
4099
+ requestId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<ResolutionRequestId, string>>>>>>;
4100
+ resolutionStatus: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof MarketResolutionStatus>>>>;
4053
4101
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4054
4102
  conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
4055
4103
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4278,6 +4326,9 @@ declare const ListEventsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
4278
4326
  positionIds: PositionId[];
4279
4327
  negRiskRequestID: ResolutionRequestId | null;
4280
4328
  version?: ProtocolVersion | null | undefined;
4329
+ onchainEventId?: string | null | undefined;
4330
+ requestId?: ResolutionRequestId | null | undefined;
4331
+ resolutionStatus?: MarketResolutionStatus | null | undefined;
4281
4332
  question?: string | null | undefined;
4282
4333
  slug?: string | null | undefined;
4283
4334
  twitterCardImage?: string | null | undefined;
@@ -5110,6 +5161,9 @@ declare const ListEventsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
5110
5161
  markets: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
5111
5162
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
5112
5163
  version: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof ProtocolVersion>>>;
5164
+ onchainEventId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5165
+ requestId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<ResolutionRequestId, string>>>>>>;
5166
+ resolutionStatus: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof MarketResolutionStatus>>>>;
5113
5167
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5114
5168
  conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
5115
5169
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5338,6 +5392,9 @@ declare const ListEventsKeysetResponseSchema: z.ZodPipe<z.ZodObject<{
5338
5392
  positionIds: PositionId[];
5339
5393
  negRiskRequestID: ResolutionRequestId | null;
5340
5394
  version?: ProtocolVersion | null | undefined;
5395
+ onchainEventId?: string | null | undefined;
5396
+ requestId?: ResolutionRequestId | null | undefined;
5397
+ resolutionStatus?: MarketResolutionStatus | null | undefined;
5341
5398
  question?: string | null | undefined;
5342
5399
  slug?: string | null | undefined;
5343
5400
  twitterCardImage?: string | null | undefined;
@@ -6468,6 +6525,9 @@ declare const PublicSearchResponseSchema: z.ZodObject<{
6468
6525
  markets: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
6469
6526
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
6470
6527
  version: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof ProtocolVersion>>>;
6528
+ onchainEventId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
6529
+ requestId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<ResolutionRequestId, string>>>>>>;
6530
+ resolutionStatus: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof MarketResolutionStatus>>>>;
6471
6531
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6472
6532
  conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
6473
6533
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6696,6 +6756,9 @@ declare const PublicSearchResponseSchema: z.ZodObject<{
6696
6756
  positionIds: PositionId[];
6697
6757
  negRiskRequestID: ResolutionRequestId | null;
6698
6758
  version?: ProtocolVersion | null | undefined;
6759
+ onchainEventId?: string | null | undefined;
6760
+ requestId?: ResolutionRequestId | null | undefined;
6761
+ resolutionStatus?: MarketResolutionStatus | null | undefined;
6699
6762
  question?: string | null | undefined;
6700
6763
  slug?: string | null | undefined;
6701
6764
  twitterCardImage?: string | null | undefined;
@@ -7714,6 +7777,9 @@ declare const SeriesSchema: z.ZodObject<{
7714
7777
  markets: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
7715
7778
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
7716
7779
  version: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof ProtocolVersion>>>;
7780
+ onchainEventId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
7781
+ requestId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<ResolutionRequestId, string>>>>>>;
7782
+ resolutionStatus: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof MarketResolutionStatus>>>>;
7717
7783
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7718
7784
  conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
7719
7785
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7942,6 +8008,9 @@ declare const SeriesSchema: z.ZodObject<{
7942
8008
  positionIds: PositionId[];
7943
8009
  negRiskRequestID: ResolutionRequestId | null;
7944
8010
  version?: ProtocolVersion | null | undefined;
8011
+ onchainEventId?: string | null | undefined;
8012
+ requestId?: ResolutionRequestId | null | undefined;
8013
+ resolutionStatus?: MarketResolutionStatus | null | undefined;
7945
8014
  question?: string | null | undefined;
7946
8015
  slug?: string | null | undefined;
7947
8016
  twitterCardImage?: string | null | undefined;
@@ -8869,6 +8938,9 @@ declare const ListSeriesResponseSchema: z.ZodArray<z.ZodObject<{
8869
8938
  markets: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodObject<{
8870
8939
  id: z.ZodPipe<z.ZodString, z.ZodTransform<MarketId, string>>;
8871
8940
  version: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof ProtocolVersion>>>;
8941
+ onchainEventId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
8942
+ requestId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodPipe<z.ZodString, z.ZodTransform<ResolutionRequestId, string>>>>>>;
8943
+ resolutionStatus: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof MarketResolutionStatus>>>>;
8872
8944
  question: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8873
8945
  conditionId: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodCustom<ConditionId, ConditionId>>>>, z.ZodTransform<ConditionId | null, ConditionId | null | undefined>>;
8874
8946
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -9097,6 +9169,9 @@ declare const ListSeriesResponseSchema: z.ZodArray<z.ZodObject<{
9097
9169
  positionIds: PositionId[];
9098
9170
  negRiskRequestID: ResolutionRequestId | null;
9099
9171
  version?: ProtocolVersion | null | undefined;
9172
+ onchainEventId?: string | null | undefined;
9173
+ requestId?: ResolutionRequestId | null | undefined;
9174
+ resolutionStatus?: MarketResolutionStatus | null | undefined;
9100
9175
  question?: string | null | undefined;
9101
9176
  slug?: string | null | undefined;
9102
9177
  twitterCardImage?: string | null | undefined;
@@ -10051,4 +10126,4 @@ declare const WalletTypeSchema: z.ZodObject<{
10051
10126
  }>;
10052
10127
  }, z.core.$strip>;
10053
10128
 
10054
- export { type BestLine, BestLineSchema, type CategoryReference, CategoryReferenceSchema, type Chat, ChatSchema, type ClobRewards, ClobRewardsSchema, type CollectionReference, CollectionReferenceSchema, ComboKnownStatus, type ComboStatus, type Event, type EventCreator, EventCreatorSchema, type EventDisplay, type EventEstimation, type EventExternalPartnerMapping, EventExternalPartnerMappingSchema, type EventMetrics, type EventPartner, type EventReference, EventReferenceSchema, type EventResolution, type EventSchedule, EventSchema, type EventSeries, type EventSportsMetadata, type EventState, type EventTag, type EventTrading, type FeeSchedule, FeeScheduleSchema, type FetchEventTagsResponse, FetchEventTagsResponseSchema, type FetchMarketTagsResponse, FetchMarketTagsResponseSchema, type GammaEvent, GammaEventSchema, type GammaMarket, GammaMarketSchema, type ImageOptimization, ImageOptimizationSchema, type InternalUser, InternalUserSchema, type ListEventsKeysetResponse, ListEventsKeysetResponseSchema, type ListEventsResponse, ListEventsResponseSchema, type ListMarketClarificationsResponse, ListMarketClarificationsResponseSchema, type ListMarketsKeysetResponse, ListMarketsKeysetResponseSchema, type ListMarketsResponse, ListMarketsResponseSchema, type ListRelatedTagResourcesResponse, ListRelatedTagResourcesResponseSchema, type ListRelatedTagsResponse, ListRelatedTagsResponseSchema, type ListSeriesResponse, ListSeriesResponseSchema, type ListSportsMetadataResponse, ListSportsMetadataResponseSchema, type ListTagsResponse, ListTagsResponseSchema, type ListTeamsResponse, ListTeamsResponseSchema, type Market, type MarketClarification, MarketClarificationSchema, MarketClarificationState, type MarketEvent, type MarketMetrics, type MarketOutcome, type MarketOutcomes, type MarketPrices, type MarketResolution, type MarketRewards, MarketSchema, type MarketSportsMetadata, type MarketState, type MarketTag, type MarketTrading, type PaginationEnvelope, PaginationEnvelopeSchema, type Partner, PartnerSchema, type Profile, ProfileSchema, ProtocolVersion, 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, TeamOrdering, TeamSchema, type TemplateReference, TemplateReferenceSchema, UmaResolutionStatus, WalletType, WalletTypeSchema, hasBinaryOutcomes, normalizeMarket };
10129
+ export { type BestLine, BestLineSchema, type CategoryReference, CategoryReferenceSchema, type Chat, ChatSchema, type ClobRewards, ClobRewardsSchema, type CollectionReference, CollectionReferenceSchema, ComboKnownStatus, type ComboStatus, type Event, type EventCreator, EventCreatorSchema, type EventDisplay, type EventEstimation, type EventExternalPartnerMapping, EventExternalPartnerMappingSchema, type EventMetrics, type EventPartner, type EventReference, EventReferenceSchema, type EventResolution, type EventSchedule, EventSchema, type EventSeries, type EventSportsMetadata, type EventState, type EventTag, type EventTrading, type FeeSchedule, FeeScheduleSchema, type FetchEventTagsResponse, FetchEventTagsResponseSchema, type FetchMarketTagsResponse, FetchMarketTagsResponseSchema, type GammaEvent, GammaEventSchema, type GammaMarket, GammaMarketSchema, type ImageOptimization, ImageOptimizationSchema, type InternalUser, InternalUserSchema, type ListEventsKeysetResponse, ListEventsKeysetResponseSchema, type ListEventsResponse, ListEventsResponseSchema, type ListMarketClarificationsResponse, ListMarketClarificationsResponseSchema, type ListMarketsKeysetResponse, ListMarketsKeysetResponseSchema, type ListMarketsResponse, ListMarketsResponseSchema, type ListRelatedTagResourcesResponse, ListRelatedTagResourcesResponseSchema, type ListRelatedTagsResponse, ListRelatedTagsResponseSchema, type ListSeriesResponse, ListSeriesResponseSchema, type ListSportsMetadataResponse, ListSportsMetadataResponseSchema, type ListTagsResponse, ListTagsResponseSchema, type ListTeamsResponse, ListTeamsResponseSchema, type Market, type MarketClarification, MarketClarificationSchema, MarketClarificationState, type MarketEvent, type MarketMetrics, type MarketOutcome, type MarketOutcomes, type MarketPrices, type MarketResolution, MarketResolutionStatus, type MarketRewards, MarketSchema, type MarketSportsMetadata, type MarketState, type MarketTag, type MarketTrading, type PaginationEnvelope, PaginationEnvelopeSchema, type Partner, PartnerSchema, type Profile, ProfileSchema, ProtocolVersion, 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, TeamOrdering, TeamSchema, type TemplateReference, TemplateReferenceSchema, UmaResolutionStatus, WalletType, WalletTypeSchema, hasBinaryOutcomes, normalizeMarket };
@@ -1,2 +1,2 @@
1
- import {a,I,e,v,u as u$1,t}from'../chunk-2FRDSBWY.js';export{A as BestLineSchema,d as CategoryReferenceSchema,w as ChatSchema,g as ClobRewardsSchema,t as CollectionReferenceSchema,i as ComboKnownStatus,R as CommentMediaSchema,M as CommentPositionSchema,N as CommentProfileSchema,S as CommentSchema,x as EventCreatorSchema,z as EventExternalPartnerMappingSchema,c as EventReferenceSchema,I as EventSchema,b as FeeScheduleSchema,L as FetchEventTagsResponseSchema,p as FetchMarketTagsResponseSchema,H as GammaEventSchema,l as GammaMarketSchema,a as ImageOptimizationSchema,h as InternalUserSchema,U as ListCommentsKeysetResponseSchema,T as ListCommentsResponseSchema,K as ListEventsKeysetResponseSchema,J as ListEventsResponseSchema,o as ListMarketsKeysetResponseSchema,n as ListMarketsResponseSchema,F as ListSportsMetadataResponseSchema,E as ListTeamsResponseSchema,m as MarketSchema,y as PartnerSchema,j as ProtocolVersion,Q as ReactionSchema,O as ReactionType,P as ReactionTypeSchema,f as RelatedMarketSchema,s as SeriesIdSchema,u as SeriesReferenceSchema,G as SportsMarketTypesResponseSchema,D as SportsMetadataSchema,e as TagReferenceSchema,B as TeamOrdering,C as TeamSchema,v as TemplateReferenceSchema,k as UmaResolutionStatus,r as hasBinaryOutcomes,q as normalizeMarket}from'../chunk-2FRDSBWY.js';import {B,oa,Na,ca,Fa,ma,Ka}from'../chunk-3IZ4N7C2.js';export{Ka as TagIdSchema}from'../chunk-3IZ4N7C2.js';import {z as z$1}from'zod';var z=(a=>(a.Pending="pending",a.Queued="queued",a.Success="success",a.Failed="failed",a.Cancelled="cancelled",a))(z||{}),E=z$1.union([z$1.string(),z$1.number().int().transform(String)]).transform(B),O=z$1.object({id:z$1.number().int(),marketId:E.nullish(),eventId:ma.nullish(),questionId:Fa.nullish(),content:z$1.string().nullish(),state:z$1.enum(z).nullish(),clearBook:z$1.boolean().nullish(),notifyDiscord:z$1.boolean().nullish(),showInFrontend:z$1.boolean().nullish(),adapterAddress:ca.nullish(),negRiskRequestId:z$1.string().nullish(),txHash:Na.nullish(),createdAt:oa.nullish(),queuedAt:oa.nullish(),scheduledFor:oa.nullish(),txTimestamp:oa.nullish()}),ze=z$1.array(O);var ve=z$1.object({hasMore:z$1.boolean().nullish(),totalResults:z$1.number().int().nullish()});var j=z$1.object({id:z$1.string(),communityMod:z$1.boolean().nullish(),creator:z$1.boolean().nullish(),mod:z$1.boolean().nullish()}),L=z$1.object({id:z$1.string().nullish(),name:z$1.string().nullish(),user:z$1.number().int().nullish(),referral:z$1.string().nullish(),createdBy:z$1.number().int().nullish(),updatedBy:z$1.number().int().nullish(),createdAt:oa.nullish(),updatedAt:oa.nullish(),utmSource:z$1.string().nullish(),utmMedium:z$1.string().nullish(),utmCampaign:z$1.string().nullish(),utmContent:z$1.string().nullish(),utmTerm:z$1.string().nullish(),walletActivated:z$1.boolean().nullish(),pseudonym:z$1.string().nullish(),displayUsernamePublic:z$1.boolean().nullish(),profileImage:z$1.string().nullish(),bio:z$1.string().nullish(),proxyWallet:z$1.string().nullish(),profileImageOptimized:a.nullish(),isCloseOnly:z$1.boolean().nullish(),isCertReq:z$1.boolean().nullish(),certReqDate:oa.nullish(),discordUsername:z$1.string().nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish(),dubPartnerId:z$1.string().nullish(),termsAcceptedAt:oa.nullish(),viewOnlyAcknowledgedAt:oa.nullish(),isReferralRestricted:z$1.boolean().nullish()}).transform(({proxyWallet:i,...l})=>({...l,wallet:i})),Ce=z$1.object({createdAt:oa.nullish(),proxyWallet:ca.nullish(),profileImage:z$1.string().nullish(),displayUsernamePublic:z$1.boolean().nullish(),bio:z$1.string().nullish(),pseudonym:z$1.string().nullish(),name:z$1.string().nullish(),users:z$1.array(j).nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish()}).transform(({proxyWallet:i,...l})=>({...l,wallet:i}));var k=z$1.object({id:Ka,event_count:z$1.number().int().nullish(),label:z$1.string().nullish(),slug:z$1.string().nullish()}).transform(({event_count:i,...l})=>({...l,eventCount:i})),C=z$1.object({hasMore:z$1.boolean().nullish(),totalResults:z$1.number().int().nullish()}),we=z$1.object({events:z$1.array(I).nullish(),tags:z$1.array(k).nullish(),profiles:z$1.array(L).nullish(),pagination:C.nullish()});var u=e.extend({templates:z$1.array(v).nullish()}),D=z$1.object({id:z$1.string(),tagID:z$1.number().int().nullish(),relatedTagID:z$1.number().int().nullish(),rank:z$1.number().int().nullish()}).transform(({tagID:i,relatedTagID:l,...v})=>({...v,tagId:i,relatedTagId:l})),He=z$1.array(u),Qe=z$1.array(D),Xe=z$1.array(u);var U=u$1.extend({events:z$1.array(I).nullish(),collections:z$1.array(t).nullish(),tags:z$1.array(u).nullish()}),$e=z$1.array(U);var A=(s=>(s[s.EOA=0]="EOA",s[s.POLY_PROXY=1]="POLY_PROXY",s[s.GNOSIS_SAFE=2]="GNOSIS_SAFE",s[s.DEPOSIT_WALLET=3]="DEPOSIT_WALLET",s))(A||{}),rr=z$1.object({type:z$1.enum(A),typeName:z$1.enum(["EOA","POLY_PROXY","GNOSIS_SAFE","DEPOSIT_WALLET"])});export{ze as ListMarketClarificationsResponseSchema,Xe as ListRelatedTagResourcesResponseSchema,Qe as ListRelatedTagsResponseSchema,$e as ListSeriesResponseSchema,He as ListTagsResponseSchema,O as MarketClarificationSchema,z as MarketClarificationState,ve as PaginationEnvelopeSchema,L as ProfileSchema,Ce as PublicProfileSchema,j as PublicProfileUserSchema,we as PublicSearchResponseSchema,D as RelatedTagSchema,C as SearchPaginationSchema,k as SearchTagSchema,U as SeriesSchema,u as TagSchema,A as WalletType,rr as WalletTypeSchema};//# sourceMappingURL=index.js.map
1
+ import {a,J,e,w,v,u as u$1}from'../chunk-YXNKEMRF.js';export{B as BestLineSchema,d as CategoryReferenceSchema,x as ChatSchema,g as ClobRewardsSchema,u as CollectionReferenceSchema,i as ComboKnownStatus,S as CommentMediaSchema,N as CommentPositionSchema,O as CommentProfileSchema,T as CommentSchema,y as EventCreatorSchema,A as EventExternalPartnerMappingSchema,c as EventReferenceSchema,J as EventSchema,b as FeeScheduleSchema,M as FetchEventTagsResponseSchema,q as FetchMarketTagsResponseSchema,I as GammaEventSchema,m as GammaMarketSchema,a as ImageOptimizationSchema,h as InternalUserSchema,V as ListCommentsKeysetResponseSchema,U as ListCommentsResponseSchema,L as ListEventsKeysetResponseSchema,K as ListEventsResponseSchema,p as ListMarketsKeysetResponseSchema,o as ListMarketsResponseSchema,G as ListSportsMetadataResponseSchema,F as ListTeamsResponseSchema,l as MarketResolutionStatus,n as MarketSchema,z as PartnerSchema,j as ProtocolVersion,R as ReactionSchema,P as ReactionType,Q as ReactionTypeSchema,f as RelatedMarketSchema,t as SeriesIdSchema,v as SeriesReferenceSchema,H as SportsMarketTypesResponseSchema,E as SportsMetadataSchema,e as TagReferenceSchema,C as TeamOrdering,D as TeamSchema,w as TemplateReferenceSchema,k as UmaResolutionStatus,s as hasBinaryOutcomes,r as normalizeMarket}from'../chunk-YXNKEMRF.js';import {C as C$1,pa,Oa,da,Ga,na,La}from'../chunk-JPPG656Y.js';export{La as TagIdSchema}from'../chunk-JPPG656Y.js';import {z as z$1}from'zod';var z=(a=>(a.Pending="pending",a.Queued="queued",a.Success="success",a.Failed="failed",a.Cancelled="cancelled",a))(z||{}),E=z$1.union([z$1.string(),z$1.number().int().transform(String)]).transform(C$1),O=z$1.object({id:z$1.number().int(),marketId:E.nullish(),eventId:na.nullish(),questionId:Ga.nullish(),content:z$1.string().nullish(),state:z$1.enum(z).nullish(),clearBook:z$1.boolean().nullish(),notifyDiscord:z$1.boolean().nullish(),showInFrontend:z$1.boolean().nullish(),adapterAddress:da.nullish(),negRiskRequestId:z$1.string().nullish(),txHash:Oa.nullish(),createdAt:pa.nullish(),queuedAt:pa.nullish(),scheduledFor:pa.nullish(),txTimestamp:pa.nullish()}),Le=z$1.array(O);var Ee=z$1.object({hasMore:z$1.boolean().nullish(),totalResults:z$1.number().int().nullish()});var j=z$1.object({id:z$1.string(),communityMod:z$1.boolean().nullish(),creator:z$1.boolean().nullish(),mod:z$1.boolean().nullish()}),L=z$1.object({id:z$1.string().nullish(),name:z$1.string().nullish(),user:z$1.number().int().nullish(),referral:z$1.string().nullish(),createdBy:z$1.number().int().nullish(),updatedBy:z$1.number().int().nullish(),createdAt:pa.nullish(),updatedAt:pa.nullish(),utmSource:z$1.string().nullish(),utmMedium:z$1.string().nullish(),utmCampaign:z$1.string().nullish(),utmContent:z$1.string().nullish(),utmTerm:z$1.string().nullish(),walletActivated:z$1.boolean().nullish(),pseudonym:z$1.string().nullish(),displayUsernamePublic:z$1.boolean().nullish(),profileImage:z$1.string().nullish(),bio:z$1.string().nullish(),proxyWallet:z$1.string().nullish(),profileImageOptimized:a.nullish(),isCloseOnly:z$1.boolean().nullish(),isCertReq:z$1.boolean().nullish(),certReqDate:pa.nullish(),discordUsername:z$1.string().nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish(),dubPartnerId:z$1.string().nullish(),termsAcceptedAt:pa.nullish(),viewOnlyAcknowledgedAt:pa.nullish(),isReferralRestricted:z$1.boolean().nullish()}).transform(({proxyWallet:i,...l})=>({...l,wallet:i})),De=z$1.object({createdAt:pa.nullish(),proxyWallet:da.nullish(),profileImage:z$1.string().nullish(),displayUsernamePublic:z$1.boolean().nullish(),bio:z$1.string().nullish(),pseudonym:z$1.string().nullish(),name:z$1.string().nullish(),users:z$1.array(j).nullish(),xUsername:z$1.string().nullish(),verifiedBadge:z$1.boolean().nullish()}).transform(({proxyWallet:i,...l})=>({...l,wallet:i}));var k=z$1.object({id:La,event_count:z$1.number().int().nullish(),label:z$1.string().nullish(),slug:z$1.string().nullish()}).transform(({event_count:i,...l})=>({...l,eventCount:i})),C=z$1.object({hasMore:z$1.boolean().nullish(),totalResults:z$1.number().int().nullish()}),Fe=z$1.object({events:z$1.array(J).nullish(),tags:z$1.array(k).nullish(),profiles:z$1.array(L).nullish(),pagination:C.nullish()});var u=e.extend({templates:z$1.array(w).nullish()}),D=z$1.object({id:z$1.string(),tagID:z$1.number().int().nullish(),relatedTagID:z$1.number().int().nullish(),rank:z$1.number().int().nullish()}).transform(({tagID:i,relatedTagID:l,...v})=>({...v,tagId:i,relatedTagId:l})),Qe=z$1.array(u),Xe=z$1.array(D),Je=z$1.array(u);var U=v.extend({events:z$1.array(J).nullish(),collections:z$1.array(u$1).nullish(),tags:z$1.array(u).nullish()}),We=z$1.array(U);var A=(s=>(s[s.EOA=0]="EOA",s[s.POLY_PROXY=1]="POLY_PROXY",s[s.GNOSIS_SAFE=2]="GNOSIS_SAFE",s[s.DEPOSIT_WALLET=3]="DEPOSIT_WALLET",s))(A||{}),nr=z$1.object({type:z$1.enum(A),typeName:z$1.enum(["EOA","POLY_PROXY","GNOSIS_SAFE","DEPOSIT_WALLET"])});export{Le as ListMarketClarificationsResponseSchema,Je as ListRelatedTagResourcesResponseSchema,Xe as ListRelatedTagsResponseSchema,We as ListSeriesResponseSchema,Qe as ListTagsResponseSchema,O as MarketClarificationSchema,z as MarketClarificationState,Ee as PaginationEnvelopeSchema,L as ProfileSchema,De as PublicProfileSchema,j as PublicProfileUserSchema,Fe as PublicSearchResponseSchema,D as RelatedTagSchema,C as SearchPaginationSchema,k as SearchTagSchema,U as SeriesSchema,u as TagSchema,A as WalletType,nr as WalletTypeSchema};//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/gamma/market-clarification.ts","../../src/gamma/pagination.ts","../../src/gamma/profile.ts","../../src/gamma/search.ts","../../src/gamma/tag.ts","../../src/gamma/series.ts","../../src/gamma/wallet.ts"],"names":["MarketClarificationState","MarketIdFromWireSchema","z","toMarketId","MarketClarificationSchema","EventIdSchema","QuestionIdSchema","EvmAddressSchema","TxHashSchema","IsoDateTimeStringSchema","ListMarketClarificationsResponseSchema","PaginationEnvelopeSchema","PublicProfileUserSchema","ProfileSchema","ImageOptimizationSchema","proxyWallet","rest","PublicProfileSchema","SearchTagSchema","TagIdSchema","event_count","SearchPaginationSchema","PublicSearchResponseSchema","EventSchema","TagSchema","TagReferenceSchema","TemplateReferenceSchema","RelatedTagSchema","tagID","relatedTagID","ListTagsResponseSchema","ListRelatedTagsResponseSchema","ListRelatedTagResourcesResponseSchema","SeriesSchema","SeriesReferen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AA,CAAA,IAAM,CAAA,CAAA,CAAN,KAAA,CACAA,IAAA,UAAA,CAAa,CAAA,CAAA,CAAb,aACAA,CAAAA,CAAAA,CAAAA,CAAA,WAAA,CAAc,GAAd,aAAA,CACAA,CAAAA,CAAAA,CAAAA,CAAA,eAAiB,CAAA,CAAA,CAAjB,gBAAA,CAJUA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,EAAA,CAAA,CAOCC,GAAmBpC,GAAAA,CAAE,MAAA,CAAO,CACvC,IAAA,CAAMA,GAAAA,CAAE,KAAKmC,CAAU,CAAA,CACvB,SAAUnC,GAAAA,CAAE,IAAA,CAAK,CAAC,KAAA,CAAO,YAAA,CAAc,cAAe,gBAAgB,CAAC,CACzE,CAAC","file":"index.js","sourcesContent":["import { z } from 'zod';\nimport {\n EventIdSchema,\n EvmAddressSchema,\n IsoDateTimeStringSchema,\n QuestionIdSchema,\n TxHashSchema,\n toMarketId,\n} from '../shared';\n\n/** Lifecycle state of a clarification as it is scheduled and posted on-chain. */\nexport enum MarketClarificationState {\n Pending = 'pending',\n Queued = 'queued',\n Success = 'success',\n Failed = 'failed',\n Cancelled = 'cancelled',\n}\n\n// The upstream payload returns `marketId` as a JSON number, but the `MarketId`\n// brand is string-valued, so accept number-or-string here (mirrors `EventIdSchema`).\nconst MarketIdFromWireSchema = z\n .union([z.string(), z.number().int().transform(String)])\n .transform(toMarketId);\n\nexport const MarketClarificationSchema = z.object({\n id: z.number().int(),\n marketId: MarketIdFromWireSchema.nullish(),\n eventId: EventIdSchema.nullish(),\n questionId: QuestionIdSchema.nullish(),\n content: z.string().nullish(),\n state: z.enum(MarketClarificationState).nullish(),\n clearBook: z.boolean().nullish(),\n notifyDiscord: z.boolean().nullish(),\n showInFrontend: z.boolean().nullish(),\n adapterAddress: EvmAddressSchema.nullish(),\n negRiskRequestId: z.string().nullish(),\n txHash: TxHashSchema.nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n queuedAt: IsoDateTimeStringSchema.nullish(),\n scheduledFor: IsoDateTimeStringSchema.nullish(),\n txTimestamp: IsoDateTimeStringSchema.nullish(),\n});\n\nexport const ListMarketClarificationsResponseSchema = z.array(\n MarketClarificationSchema,\n);\n\nexport type MarketClarification = z.infer<typeof MarketClarificationSchema>;\nexport type ListMarketClarificationsResponse = z.infer<\n typeof ListMarketClarificationsResponseSchema\n>;\n","import { z } from 'zod';\n\nexport const PaginationEnvelopeSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport type PaginationEnvelope = z.infer<typeof PaginationEnvelopeSchema>;\n","import { z } from 'zod';\nimport { EvmAddressSchema, IsoDateTimeStringSchema } from '../shared';\nimport { ImageOptimizationSchema } from './common';\n\nexport const PublicProfileUserSchema = z.object({\n id: z.string(),\n communityMod: z.boolean().nullish(),\n creator: z.boolean().nullish(),\n mod: z.boolean().nullish(),\n});\n\nexport const ProfileSchema = z\n .object({\n id: z.string().nullish(),\n name: z.string().nullish(),\n user: z.number().int().nullish(),\n referral: z.string().nullish(),\n createdBy: z.number().int().nullish(),\n updatedBy: z.number().int().nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n updatedAt: IsoDateTimeStringSchema.nullish(),\n utmSource: z.string().nullish(),\n utmMedium: z.string().nullish(),\n utmCampaign: z.string().nullish(),\n utmContent: z.string().nullish(),\n utmTerm: z.string().nullish(),\n walletActivated: z.boolean().nullish(),\n pseudonym: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n profileImage: z.string().nullish(),\n bio: z.string().nullish(),\n proxyWallet: z.string().nullish(),\n profileImageOptimized: ImageOptimizationSchema.nullish(),\n isCloseOnly: z.boolean().nullish(),\n isCertReq: z.boolean().nullish(),\n certReqDate: IsoDateTimeStringSchema.nullish(),\n discordUsername: z.string().nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n dubPartnerId: z.string().nullish(),\n termsAcceptedAt: IsoDateTimeStringSchema.nullish(),\n viewOnlyAcknowledgedAt: IsoDateTimeStringSchema.nullish(),\n isReferralRestricted: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport const PublicProfileSchema = z\n .object({\n createdAt: IsoDateTimeStringSchema.nullish(),\n proxyWallet: EvmAddressSchema.nullish(),\n profileImage: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n bio: z.string().nullish(),\n pseudonym: z.string().nullish(),\n name: z.string().nullish(),\n users: z.array(PublicProfileUserSchema).nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport type PublicProfile = z.infer<typeof PublicProfileSchema>;\nexport type Profile = z.infer<typeof ProfileSchema>;\nexport type PublicProfileUser = z.infer<typeof PublicProfileUserSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { EventSchema } from './event';\nimport { ProfileSchema } from './profile';\n\nexport const SearchTagSchema = z\n .object({\n id: TagIdSchema,\n event_count: z.number().int().nullish(),\n label: z.string().nullish(),\n slug: z.string().nullish(),\n })\n .transform(({ event_count, ...rest }) => ({\n ...rest,\n eventCount: event_count,\n }));\n\nexport const SearchPaginationSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport const PublicSearchResponseSchema = z.object({\n events: z.array(EventSchema).nullish(),\n tags: z.array(SearchTagSchema).nullish(),\n profiles: z.array(ProfileSchema).nullish(),\n pagination: SearchPaginationSchema.nullish(),\n});\n\nexport type SearchTag = z.infer<typeof SearchTagSchema>;\nexport type SearchPagination = z.infer<typeof SearchPaginationSchema>;\nexport type PublicSearchResponse = z.infer<typeof PublicSearchResponseSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { TagReferenceSchema } from './common';\nimport { TemplateReferenceSchema } from './event';\n\nexport const TagSchema = TagReferenceSchema.extend({\n templates: z.array(TemplateReferenceSchema).nullish(),\n});\n\nexport const RelatedTagSchema = z\n .object({\n id: z.string(),\n tagID: z.number().int().nullish(),\n relatedTagID: z.number().int().nullish(),\n rank: z.number().int().nullish(),\n })\n .transform(({ tagID, relatedTagID, ...rest }) => ({\n ...rest,\n tagId: tagID,\n relatedTagId: relatedTagID,\n }));\n\nexport const ListTagsResponseSchema = z.array(TagSchema);\nexport const ListRelatedTagsResponseSchema = z.array(RelatedTagSchema);\nexport const ListRelatedTagResourcesResponseSchema = z.array(TagSchema);\n\nexport type Tag = z.infer<typeof TagSchema>;\nexport type RelatedTag = z.infer<typeof RelatedTagSchema>;\nexport type ListTagsResponse = z.infer<typeof ListTagsResponseSchema>;\nexport type ListRelatedTagsResponse = z.infer<\n typeof ListRelatedTagsResponseSchema\n>;\nexport type ListRelatedTagResourcesResponse = z.infer<\n typeof ListRelatedTagResourcesResponseSchema\n>;\n\nexport { TagIdSchema };\n","import { z } from 'zod';\nimport {\n CollectionReferenceSchema,\n EventSchema,\n SeriesReferenceSchema,\n} from './event';\nimport { TagSchema } from './tag';\n\nexport const SeriesSchema = SeriesReferenceSchema.extend({\n events: z.array(EventSchema).nullish(),\n collections: z.array(CollectionReferenceSchema).nullish(),\n tags: z.array(TagSchema).nullish(),\n});\n\nexport const ListSeriesResponseSchema = z.array(SeriesSchema);\n\nexport type Series = z.infer<typeof SeriesSchema>;\nexport type ListSeriesResponse = z.infer<typeof ListSeriesResponseSchema>;\n","import { z } from 'zod';\n\nexport enum WalletType {\n EOA = 0,\n POLY_PROXY = 1,\n GNOSIS_SAFE = 2,\n DEPOSIT_WALLET = 3,\n}\n\nexport const WalletTypeSchema = z.object({\n type: z.enum(WalletType),\n typeName: z.enum(['EOA', 'POLY_PROXY', 'GNOSIS_SAFE', 'DEPOSIT_WALLET']),\n});\n"]}
1
+ {"version":3,"sources":["../../src/gamma/market-clarification.ts","../../src/gamma/pagination.ts","../../src/gamma/profile.ts","../../src/gamma/search.ts","../../src/gamma/tag.ts","../../src/gamma/series.ts","../../src/gamma/wallet.ts"],"names":["MarketClarificationState","MarketIdFromWireSchema","z","toMarketId","MarketClarificationSchema","EventIdSchema","QuestionIdSchema","EvmAddressSchema","TxHashSchema","IsoDateTimeStringSchema","ListMarketClarificationsResponseSchema","PaginationEnvelopeSchema","PublicProfileUserSchema","ProfileSchema","ImageOptimizationSchema","proxyWallet","rest","PublicProfileSchema","SearchTagSchema","TagIdSchema","event_count","SearchPaginationSchema","PublicSearchResponseSchema","EventSchema","TagSchema","TagReferenceSchema","TemplateReferenceSchema","RelatedTagSchema","tagID","relatedTagID","ListTagsResponseSchema","ListRelatedTagsResponseSchema","ListRelatedTagResourcesResponseSchema","SeriesSchema","SeriesReferenceSchema","CollectionReferenceSchema","ListSeriesResponseSchema","WalletType","WalletTypeSchema"],"mappings":"o8CAWYA,CAAAA,CAAAA,CAAAA,CAAAA,GACVA,CAAAA,CAAA,QAAU,SAAA,CACVA,CAAAA,CAAA,MAAA,CAAS,QAAA,CACTA,EAAA,OAAA,CAAU,SAAA,CACVA,EAAA,MAAA,CAAS,QAAA,CACTA,EAAA,SAAA,CAAY,WAAA,CALFA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,EAAA,CAAA,CAUNC,EAAyBC,GAAAA,CAC5B,KAAA,CAAM,CAACA,GAAAA,CAAE,MAAA,GAAUA,GAAAA,CAAE,MAAA,GAAS,GAAA,EAAI,CAAE,UAAU,MAAM,CAAC,CAAC,CAAA,CACtD,SAAA,CAAUC,GAAU,CAAA,CAEVC,CAAAA,CAA4BF,GAAAA,CAAE,MAAA,CAAO,CAChD,EAAA,CAAIA,GAAAA,CAAE,QAAO,CAAE,GAAA,GACf,QAAA,CAAUD,CAAAA,CAAuB,SAAQ,CACzC,OAAA,CAASI,GAAc,OAAA,EAAQ,CAC/B,WAAYC,EAAAA,CAAiB,OAAA,GAC7B,OAAA,CAASJ,GAAAA,CAAE,MAAA,EAAO,CAAE,SAAQ,CAC5B,KAAA,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,CAAgC7B,IAAE,KAAA,CAAMyB,CAAgB,EACxDK,EAAAA,CAAwC9B,GAAAA,CAAE,MAAMsB,CAAS,MChBzDS,CAAAA,CAAeC,CAAAA,CAAsB,OAAO,CACvD,MAAA,CAAQhC,IAAE,KAAA,CAAMqB,CAAW,CAAA,CAAE,OAAA,GAC7B,WAAA,CAAarB,GAAAA,CAAE,MAAMiC,GAAyB,CAAA,CAAE,SAAQ,CACxD,IAAA,CAAMjC,IAAE,KAAA,CAAMsB,CAAS,EAAE,OAAA,EAC3B,CAAC,CAAA,CAEYY,EAAAA,CAA2BlC,IAAE,KAAA,CAAM+B,CAAY,MCZhDI,CAAAA,CAAAA,CAAAA,CAAAA,GACVA,CAAAA,CAAAA,CAAAA,CAAA,IAAM,CAAA,CAAA,CAAN,KAAA,CACAA,IAAA,UAAA,CAAa,CAAA,CAAA,CAAb,aACAA,CAAAA,CAAAA,CAAAA,CAAA,WAAA,CAAc,GAAd,aAAA,CACAA,CAAAA,CAAAA,CAAAA,CAAA,eAAiB,CAAA,CAAA,CAAjB,gBAAA,CAJUA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,EAAA,CAAA,CAOCC,GAAmBpC,GAAAA,CAAE,MAAA,CAAO,CACvC,IAAA,CAAMA,GAAAA,CAAE,KAAKmC,CAAU,CAAA,CACvB,SAAUnC,GAAAA,CAAE,IAAA,CAAK,CAAC,KAAA,CAAO,YAAA,CAAc,cAAe,gBAAgB,CAAC,CACzE,CAAC","file":"index.js","sourcesContent":["import { z } from 'zod';\nimport {\n EventIdSchema,\n EvmAddressSchema,\n IsoDateTimeStringSchema,\n QuestionIdSchema,\n TxHashSchema,\n toMarketId,\n} from '../shared';\n\n/** Lifecycle state of a clarification as it is scheduled and posted on-chain. */\nexport enum MarketClarificationState {\n Pending = 'pending',\n Queued = 'queued',\n Success = 'success',\n Failed = 'failed',\n Cancelled = 'cancelled',\n}\n\n// The upstream payload returns `marketId` as a JSON number, but the `MarketId`\n// brand is string-valued, so accept number-or-string here (mirrors `EventIdSchema`).\nconst MarketIdFromWireSchema = z\n .union([z.string(), z.number().int().transform(String)])\n .transform(toMarketId);\n\nexport const MarketClarificationSchema = z.object({\n id: z.number().int(),\n marketId: MarketIdFromWireSchema.nullish(),\n eventId: EventIdSchema.nullish(),\n questionId: QuestionIdSchema.nullish(),\n content: z.string().nullish(),\n state: z.enum(MarketClarificationState).nullish(),\n clearBook: z.boolean().nullish(),\n notifyDiscord: z.boolean().nullish(),\n showInFrontend: z.boolean().nullish(),\n adapterAddress: EvmAddressSchema.nullish(),\n negRiskRequestId: z.string().nullish(),\n txHash: TxHashSchema.nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n queuedAt: IsoDateTimeStringSchema.nullish(),\n scheduledFor: IsoDateTimeStringSchema.nullish(),\n txTimestamp: IsoDateTimeStringSchema.nullish(),\n});\n\nexport const ListMarketClarificationsResponseSchema = z.array(\n MarketClarificationSchema,\n);\n\nexport type MarketClarification = z.infer<typeof MarketClarificationSchema>;\nexport type ListMarketClarificationsResponse = z.infer<\n typeof ListMarketClarificationsResponseSchema\n>;\n","import { z } from 'zod';\n\nexport const PaginationEnvelopeSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport type PaginationEnvelope = z.infer<typeof PaginationEnvelopeSchema>;\n","import { z } from 'zod';\nimport { EvmAddressSchema, IsoDateTimeStringSchema } from '../shared';\nimport { ImageOptimizationSchema } from './common';\n\nexport const PublicProfileUserSchema = z.object({\n id: z.string(),\n communityMod: z.boolean().nullish(),\n creator: z.boolean().nullish(),\n mod: z.boolean().nullish(),\n});\n\nexport const ProfileSchema = z\n .object({\n id: z.string().nullish(),\n name: z.string().nullish(),\n user: z.number().int().nullish(),\n referral: z.string().nullish(),\n createdBy: z.number().int().nullish(),\n updatedBy: z.number().int().nullish(),\n createdAt: IsoDateTimeStringSchema.nullish(),\n updatedAt: IsoDateTimeStringSchema.nullish(),\n utmSource: z.string().nullish(),\n utmMedium: z.string().nullish(),\n utmCampaign: z.string().nullish(),\n utmContent: z.string().nullish(),\n utmTerm: z.string().nullish(),\n walletActivated: z.boolean().nullish(),\n pseudonym: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n profileImage: z.string().nullish(),\n bio: z.string().nullish(),\n proxyWallet: z.string().nullish(),\n profileImageOptimized: ImageOptimizationSchema.nullish(),\n isCloseOnly: z.boolean().nullish(),\n isCertReq: z.boolean().nullish(),\n certReqDate: IsoDateTimeStringSchema.nullish(),\n discordUsername: z.string().nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n dubPartnerId: z.string().nullish(),\n termsAcceptedAt: IsoDateTimeStringSchema.nullish(),\n viewOnlyAcknowledgedAt: IsoDateTimeStringSchema.nullish(),\n isReferralRestricted: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport const PublicProfileSchema = z\n .object({\n createdAt: IsoDateTimeStringSchema.nullish(),\n proxyWallet: EvmAddressSchema.nullish(),\n profileImage: z.string().nullish(),\n displayUsernamePublic: z.boolean().nullish(),\n bio: z.string().nullish(),\n pseudonym: z.string().nullish(),\n name: z.string().nullish(),\n users: z.array(PublicProfileUserSchema).nullish(),\n xUsername: z.string().nullish(),\n verifiedBadge: z.boolean().nullish(),\n })\n .transform(({ proxyWallet, ...rest }) => ({\n ...rest,\n wallet: proxyWallet,\n }));\n\nexport type PublicProfile = z.infer<typeof PublicProfileSchema>;\nexport type Profile = z.infer<typeof ProfileSchema>;\nexport type PublicProfileUser = z.infer<typeof PublicProfileUserSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { EventSchema } from './event';\nimport { ProfileSchema } from './profile';\n\nexport const SearchTagSchema = z\n .object({\n id: TagIdSchema,\n event_count: z.number().int().nullish(),\n label: z.string().nullish(),\n slug: z.string().nullish(),\n })\n .transform(({ event_count, ...rest }) => ({\n ...rest,\n eventCount: event_count,\n }));\n\nexport const SearchPaginationSchema = z.object({\n hasMore: z.boolean().nullish(),\n totalResults: z.number().int().nullish(),\n});\n\nexport const PublicSearchResponseSchema = z.object({\n events: z.array(EventSchema).nullish(),\n tags: z.array(SearchTagSchema).nullish(),\n profiles: z.array(ProfileSchema).nullish(),\n pagination: SearchPaginationSchema.nullish(),\n});\n\nexport type SearchTag = z.infer<typeof SearchTagSchema>;\nexport type SearchPagination = z.infer<typeof SearchPaginationSchema>;\nexport type PublicSearchResponse = z.infer<typeof PublicSearchResponseSchema>;\n","import { z } from 'zod';\nimport { TagIdSchema } from '../shared';\nimport { TagReferenceSchema } from './common';\nimport { TemplateReferenceSchema } from './event';\n\nexport const TagSchema = TagReferenceSchema.extend({\n templates: z.array(TemplateReferenceSchema).nullish(),\n});\n\nexport const RelatedTagSchema = z\n .object({\n id: z.string(),\n tagID: z.number().int().nullish(),\n relatedTagID: z.number().int().nullish(),\n rank: z.number().int().nullish(),\n })\n .transform(({ tagID, relatedTagID, ...rest }) => ({\n ...rest,\n tagId: tagID,\n relatedTagId: relatedTagID,\n }));\n\nexport const ListTagsResponseSchema = z.array(TagSchema);\nexport const ListRelatedTagsResponseSchema = z.array(RelatedTagSchema);\nexport const ListRelatedTagResourcesResponseSchema = z.array(TagSchema);\n\nexport type Tag = z.infer<typeof TagSchema>;\nexport type RelatedTag = z.infer<typeof RelatedTagSchema>;\nexport type ListTagsResponse = z.infer<typeof ListTagsResponseSchema>;\nexport type ListRelatedTagsResponse = z.infer<\n typeof ListRelatedTagsResponseSchema\n>;\nexport type ListRelatedTagResourcesResponse = z.infer<\n typeof ListRelatedTagResourcesResponseSchema\n>;\n\nexport { TagIdSchema };\n","import { z } from 'zod';\nimport {\n CollectionReferenceSchema,\n EventSchema,\n SeriesReferenceSchema,\n} from './event';\nimport { TagSchema } from './tag';\n\nexport const SeriesSchema = SeriesReferenceSchema.extend({\n events: z.array(EventSchema).nullish(),\n collections: z.array(CollectionReferenceSchema).nullish(),\n tags: z.array(TagSchema).nullish(),\n});\n\nexport const ListSeriesResponseSchema = z.array(SeriesSchema);\n\nexport type Series = z.infer<typeof SeriesSchema>;\nexport type ListSeriesResponse = z.infer<typeof ListSeriesResponseSchema>;\n","import { z } from 'zod';\n\nexport enum WalletType {\n EOA = 0,\n POLY_PROXY = 1,\n GNOSIS_SAFE = 2,\n DEPOSIT_WALLET = 3,\n}\n\nexport const WalletTypeSchema = z.object({\n type: z.enum(WalletType),\n typeName: z.enum(['EOA', 'POLY_PROXY', 'GNOSIS_SAFE', 'DEPOSIT_WALLET']),\n});\n"]}