@polymarket/bindings 0.1.0-beta.1 → 0.1.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { EpochMilliseconds, ConditionId, TokenId, DecimalString, IsoDateTimeString, MixedDateTimeString, IsoCalendarDateString } from '../index.js';
2
+ import { EpochMilliseconds, DecimalString, CtfConditionId, TokenId, ComboConditionId, PositionId, IsoDateTimeString, MixedDateTimeString, PaginationCursor, IsoCalendarDateString } from '../index.js';
3
3
  import { TxHash } from '@polymarket/types';
4
4
 
5
5
  declare const AddressSchema: z.ZodString;
@@ -67,47 +67,62 @@ type ActivityBase = {
67
67
  /** Optimized profile image URL for the wallet owner. */
68
68
  profileImageOptimized: string | null;
69
69
  };
70
- type TradeActivity = ActivityBase & {
70
+ type TradeActivityBase = ActivityBase & {
71
71
  /** A directional outcome-token trade. */
72
- type: 'TRADE';
73
- /** Condition id of the market traded by the wallet. */
74
- conditionId: ConditionId;
75
- /** Outcome token id bought or sold by the wallet. */
76
- tokenId: TokenId;
77
- /** Direction of the wallet's trade in the outcome token. */
72
+ type: ActivityType.TRADE;
73
+ /** Whether this trade is for a Combo position instead of a binary market token. */
74
+ isCombo: boolean;
75
+ /** Direction of the wallet's trade. */
78
76
  side: Side;
79
- /** Number of outcome-token shares traded by the wallet. */
77
+ /** Number of shares traded by the wallet. */
80
78
  shares: DecimalString;
81
79
  /** The notional value of the traded shares in USD. */
82
80
  amount: DecimalString;
83
- /** The execution price per outcome-token share in USD. */
81
+ /** The execution price per share in USD. */
84
82
  price: DecimalString;
83
+ /** Human-readable title of the traded market or Combo. */
84
+ title: string;
85
+ /** Icon URL for the traded market or Combo, when available. */
86
+ icon: string | null;
87
+ };
88
+ type ClobTradeActivity = TradeActivityBase & {
89
+ /** CLOB market trades are binary market outcome-token trades. */
90
+ isCombo: false;
91
+ /** Condition id of the market traded by the wallet. */
92
+ conditionId: CtfConditionId;
93
+ /** Outcome token id bought or sold by the wallet. */
94
+ tokenId: TokenId;
85
95
  /** Display label of the outcome token traded by the wallet. */
86
96
  outcome: string;
87
97
  /** Zero-based index of the outcome token in the market's outcome list. */
88
98
  outcomeIndex: number;
89
- /** Human-readable title of the market traded by the wallet. */
90
- title: string;
91
99
  /** URL slug of the market traded by the wallet. */
92
100
  slug: string;
93
- /** Icon URL for the market traded by the wallet. */
94
- icon: string;
95
101
  /** URL slug of the event containing the traded market. */
96
102
  eventSlug: string;
97
103
  };
104
+ type ComboTradeActivity = TradeActivityBase & {
105
+ /** Combo trades are protocol v2 Combo position trades. */
106
+ isCombo: true;
107
+ /** Combo condition id traded by the wallet. */
108
+ conditionId: ComboConditionId;
109
+ /** Combo position id bought or sold by the wallet. */
110
+ positionId: PositionId;
111
+ };
112
+ type TradeActivity = ClobTradeActivity | ComboTradeActivity;
98
113
  type SplitActivity = ActivityBase & {
99
114
  /** Splitting collateral into a complete market set. */
100
115
  type: 'SPLIT';
101
116
  /** Condition id of the market whose complete set was created. */
102
- conditionId: ConditionId;
117
+ conditionId: CtfConditionId;
103
118
  /** The collateral amount split into the complete set in USD. */
104
119
  amount: DecimalString;
105
120
  /** Human-readable title of the market whose complete set was created. */
106
121
  title: string;
107
122
  /** URL slug of the market whose complete set was created. */
108
123
  slug: string;
109
- /** Icon URL for the market whose complete set was created. */
110
- icon: string;
124
+ /** Icon URL for the market whose complete set was created, when available. */
125
+ icon: string | null;
111
126
  /** URL slug of the event containing the split market. */
112
127
  eventSlug: string;
113
128
  };
@@ -115,15 +130,15 @@ type MergeActivity = ActivityBase & {
115
130
  /** Merging a complete market set into collateral. */
116
131
  type: 'MERGE';
117
132
  /** Condition id of the market whose complete set was merged. */
118
- conditionId: ConditionId;
133
+ conditionId: CtfConditionId;
119
134
  /** The collateral amount received from merging the complete set in USD. */
120
135
  amount: DecimalString;
121
136
  /** Human-readable title of the market whose complete set was merged. */
122
137
  title: string;
123
138
  /** URL slug of the market whose complete set was merged. */
124
139
  slug: string;
125
- /** Icon URL for the market whose complete set was merged. */
126
- icon: string;
140
+ /** Icon URL for the market whose complete set was merged, when available. */
141
+ icon: string | null;
127
142
  /** URL slug of the event containing the merged market. */
128
143
  eventSlug: string;
129
144
  };
@@ -131,15 +146,15 @@ type RedeemActivity = ActivityBase & {
131
146
  /** Redeeming resolved market proceeds. */
132
147
  type: 'REDEEM';
133
148
  /** Condition id of the market redeemed by the wallet. */
134
- conditionId: ConditionId;
149
+ conditionId: CtfConditionId;
135
150
  /** The proceeds redeemed from the resolved market in USD. */
136
151
  amount: DecimalString;
137
152
  /** Human-readable title of the market redeemed by the wallet. */
138
153
  title: string;
139
154
  /** URL slug of the market redeemed by the wallet. */
140
155
  slug: string;
141
- /** Icon URL for the market redeemed by the wallet. */
142
- icon: string;
156
+ /** Icon URL for the market redeemed by the wallet, when available. */
157
+ icon: string | null;
143
158
  /** URL slug of the event containing the redeemed market. */
144
159
  eventSlug: string;
145
160
  };
@@ -147,15 +162,15 @@ type ConversionActivity = ActivityBase & {
147
162
  /** A market conversion or migration activity. */
148
163
  type: 'CONVERSION';
149
164
  /** Condition id of the market involved in the conversion. */
150
- conditionId: ConditionId;
165
+ conditionId: CtfConditionId;
151
166
  /** The amount converted or migrated for the market in USD. */
152
167
  amount: DecimalString;
153
168
  /** Human-readable title of the market involved in the conversion. */
154
169
  title: string;
155
170
  /** URL slug of the market involved in the conversion. */
156
171
  slug: string;
157
- /** Icon URL for the market involved in the conversion. */
158
- icon: string;
172
+ /** Icon URL for the market involved in the conversion, when available. */
173
+ icon: string | null;
159
174
  /** URL slug of the event containing the converted market. */
160
175
  eventSlug: string;
161
176
  };
@@ -191,13 +206,13 @@ declare const TradeSchema: z.ZodPipe<z.ZodObject<{
191
206
  SELL: "SELL";
192
207
  }>>>;
193
208
  asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
194
- conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
209
+ conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
195
210
  size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
196
211
  price: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
197
212
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>>;
198
213
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
214
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
- icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
+ icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
201
216
  eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
202
217
  outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
218
  outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -211,7 +226,7 @@ declare const TradeSchema: z.ZodPipe<z.ZodObject<{
211
226
  wallet: string | null | undefined;
212
227
  tokenId: TokenId | null | undefined;
213
228
  side?: "BUY" | "SELL" | null | undefined;
214
- conditionId?: ConditionId | null | undefined;
229
+ conditionId?: CtfConditionId | null | undefined;
215
230
  size?: DecimalString | null | undefined;
216
231
  price?: DecimalString | null | undefined;
217
232
  timestamp?: EpochMilliseconds | null | undefined;
@@ -231,7 +246,7 @@ declare const TradeSchema: z.ZodPipe<z.ZodObject<{
231
246
  proxyWallet?: string | null | undefined;
232
247
  side?: "BUY" | "SELL" | null | undefined;
233
248
  asset?: TokenId | null | undefined;
234
- conditionId?: ConditionId | null | undefined;
249
+ conditionId?: CtfConditionId | null | undefined;
235
250
  size?: DecimalString | null | undefined;
236
251
  price?: DecimalString | null | undefined;
237
252
  timestamp?: EpochMilliseconds | null | undefined;
@@ -260,13 +275,13 @@ declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
260
275
  SELL: "SELL";
261
276
  }>>>;
262
277
  asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
263
- conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
278
+ conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
264
279
  size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
265
280
  price: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
266
281
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>>;
267
282
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
268
283
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
269
- icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
284
+ icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
270
285
  eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
271
286
  outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
272
287
  outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -280,7 +295,7 @@ declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
280
295
  wallet: string | null | undefined;
281
296
  tokenId: TokenId | null | undefined;
282
297
  side?: "BUY" | "SELL" | null | undefined;
283
- conditionId?: ConditionId | null | undefined;
298
+ conditionId?: CtfConditionId | null | undefined;
284
299
  size?: DecimalString | null | undefined;
285
300
  price?: DecimalString | null | undefined;
286
301
  timestamp?: EpochMilliseconds | null | undefined;
@@ -300,7 +315,7 @@ declare const ListTradesResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
300
315
  proxyWallet?: string | null | undefined;
301
316
  side?: "BUY" | "SELL" | null | undefined;
302
317
  asset?: TokenId | null | undefined;
303
- conditionId?: ConditionId | null | undefined;
318
+ conditionId?: CtfConditionId | null | undefined;
304
319
  size?: DecimalString | null | undefined;
305
320
  price?: DecimalString | null | undefined;
306
321
  timestamp?: EpochMilliseconds | null | undefined;
@@ -595,10 +610,17 @@ type ListBuilderLeaderboardResponse = z.infer<typeof ListBuilderLeaderboardRespo
595
610
  type ListBuilderVolumeResponse = z.infer<typeof ListBuilderVolumeResponseSchema>;
596
611
  type ListTraderLeaderboardResponse = z.infer<typeof ListTraderLeaderboardResponseSchema>;
597
612
 
613
+ declare enum ComboPositionStatus {
614
+ Open = "OPEN",
615
+ Partial = "PARTIAL",
616
+ ResolvedWin = "RESOLVED_WIN",
617
+ ResolvedLoss = "RESOLVED_LOSS"
618
+ }
619
+ declare const ComboPositionStatusSchema: z.ZodEnum<typeof ComboPositionStatus>;
598
620
  declare const PositionSchema: z.ZodPipe<z.ZodObject<{
599
621
  proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
600
622
  asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
601
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
623
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
602
624
  size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
603
625
  avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
604
626
  initialValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
@@ -613,7 +635,7 @@ declare const PositionSchema: z.ZodPipe<z.ZodObject<{
613
635
  mergeable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
614
636
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
615
637
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
- icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
638
+ icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
617
639
  eventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
618
640
  eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
619
641
  outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -626,7 +648,7 @@ declare const PositionSchema: z.ZodPipe<z.ZodObject<{
626
648
  wallet: string | null | undefined;
627
649
  tokenId: TokenId | null | undefined;
628
650
  oppositeTokenId: TokenId | null | undefined;
629
- conditionId: ConditionId;
651
+ conditionId: CtfConditionId;
630
652
  size?: DecimalString | null | undefined;
631
653
  avgPrice?: DecimalString | null | undefined;
632
654
  initialValue?: DecimalString | null | undefined;
@@ -650,7 +672,7 @@ declare const PositionSchema: z.ZodPipe<z.ZodObject<{
650
672
  endDate?: IsoCalendarDateString | null | undefined;
651
673
  negativeRisk?: boolean | null | undefined;
652
674
  }, {
653
- conditionId: ConditionId;
675
+ conditionId: CtfConditionId;
654
676
  proxyWallet?: string | null | undefined;
655
677
  asset?: TokenId | null | undefined;
656
678
  size?: DecimalString | null | undefined;
@@ -680,7 +702,7 @@ declare const PositionSchema: z.ZodPipe<z.ZodObject<{
680
702
  declare const ClosedPositionSchema: z.ZodPipe<z.ZodObject<{
681
703
  proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
682
704
  asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
683
- conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
705
+ conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
684
706
  avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
685
707
  totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
686
708
  realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
@@ -688,7 +710,7 @@ declare const ClosedPositionSchema: z.ZodPipe<z.ZodObject<{
688
710
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>>;
689
711
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
690
712
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
691
- icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
713
+ icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
692
714
  eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
693
715
  outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
694
716
  outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -699,7 +721,7 @@ declare const ClosedPositionSchema: z.ZodPipe<z.ZodObject<{
699
721
  wallet: string | null | undefined;
700
722
  tokenId: TokenId | null | undefined;
701
723
  oppositeTokenId: TokenId | null | undefined;
702
- conditionId?: ConditionId | null | undefined;
724
+ conditionId?: CtfConditionId | null | undefined;
703
725
  avgPrice?: DecimalString | null | undefined;
704
726
  totalBought?: DecimalString | null | undefined;
705
727
  realizedPnl?: DecimalString | null | undefined;
@@ -716,7 +738,7 @@ declare const ClosedPositionSchema: z.ZodPipe<z.ZodObject<{
716
738
  }, {
717
739
  proxyWallet?: string | null | undefined;
718
740
  asset?: TokenId | null | undefined;
719
- conditionId?: ConditionId | null | undefined;
741
+ conditionId?: CtfConditionId | null | undefined;
720
742
  avgPrice?: DecimalString | null | undefined;
721
743
  totalBought?: DecimalString | null | undefined;
722
744
  realizedPnl?: DecimalString | null | undefined;
@@ -742,7 +764,7 @@ declare const MarketPositionSchema: z.ZodPipe<z.ZodObject<{
742
764
  profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
743
765
  verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
744
766
  asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
745
- conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
767
+ conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
746
768
  avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
747
769
  size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
748
770
  currPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
@@ -759,7 +781,7 @@ declare const MarketPositionSchema: z.ZodPipe<z.ZodObject<{
759
781
  name?: string | null | undefined;
760
782
  profileImage?: string | null | undefined;
761
783
  verified?: boolean | null | undefined;
762
- conditionId?: ConditionId | null | undefined;
784
+ conditionId?: CtfConditionId | null | undefined;
763
785
  avgPrice?: DecimalString | null | undefined;
764
786
  size?: DecimalString | null | undefined;
765
787
  currPrice?: DecimalString | null | undefined;
@@ -776,7 +798,7 @@ declare const MarketPositionSchema: z.ZodPipe<z.ZodObject<{
776
798
  profileImage?: string | null | undefined;
777
799
  verified?: boolean | null | undefined;
778
800
  asset?: TokenId | null | undefined;
779
- conditionId?: ConditionId | null | undefined;
801
+ conditionId?: CtfConditionId | null | undefined;
780
802
  avgPrice?: DecimalString | null | undefined;
781
803
  size?: DecimalString | null | undefined;
782
804
  currPrice?: DecimalString | null | undefined;
@@ -796,7 +818,7 @@ declare const MetaMarketPositionSchema: z.ZodObject<{
796
818
  profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
797
819
  verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
798
820
  asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
799
- conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
821
+ conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
800
822
  avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
801
823
  size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
802
824
  currPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
@@ -813,7 +835,7 @@ declare const MetaMarketPositionSchema: z.ZodObject<{
813
835
  name?: string | null | undefined;
814
836
  profileImage?: string | null | undefined;
815
837
  verified?: boolean | null | undefined;
816
- conditionId?: ConditionId | null | undefined;
838
+ conditionId?: CtfConditionId | null | undefined;
817
839
  avgPrice?: DecimalString | null | undefined;
818
840
  size?: DecimalString | null | undefined;
819
841
  currPrice?: DecimalString | null | undefined;
@@ -830,7 +852,7 @@ declare const MetaMarketPositionSchema: z.ZodObject<{
830
852
  profileImage?: string | null | undefined;
831
853
  verified?: boolean | null | undefined;
832
854
  asset?: TokenId | null | undefined;
833
- conditionId?: ConditionId | null | undefined;
855
+ conditionId?: CtfConditionId | null | undefined;
834
856
  avgPrice?: DecimalString | null | undefined;
835
857
  size?: DecimalString | null | undefined;
836
858
  currPrice?: DecimalString | null | undefined;
@@ -843,10 +865,772 @@ declare const MetaMarketPositionSchema: z.ZodObject<{
843
865
  outcomeIndex?: number | null | undefined;
844
866
  }>>>>>;
845
867
  }, z.core.$strip>;
868
+ declare const ComboPositionMarketEventSchema: z.ZodPipe<z.ZodObject<{
869
+ event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
870
+ event_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
871
+ event_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
872
+ event_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
873
+ }, z.core.$strip>, z.ZodTransform<{
874
+ eventId: string | null | undefined;
875
+ eventSlug: string | null | undefined;
876
+ eventTitle: string | null | undefined;
877
+ eventImage: string | null | undefined;
878
+ }, {
879
+ event_id?: string | null | undefined;
880
+ event_slug?: string | null | undefined;
881
+ event_title?: string | null | undefined;
882
+ event_image?: string | null | undefined;
883
+ }>>;
884
+ declare const ComboPositionMarketSchema: z.ZodPipe<z.ZodObject<{
885
+ market_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
886
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
887
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
888
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
889
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
890
+ icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
891
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
892
+ subcategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
893
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
894
+ end_date: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
895
+ event: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
896
+ event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
897
+ event_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
898
+ event_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
899
+ event_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
900
+ }, z.core.$strip>, z.ZodTransform<{
901
+ eventId: string | null | undefined;
902
+ eventSlug: string | null | undefined;
903
+ eventTitle: string | null | undefined;
904
+ eventImage: string | null | undefined;
905
+ }, {
906
+ event_id?: string | null | undefined;
907
+ event_slug?: string | null | undefined;
908
+ event_title?: string | null | undefined;
909
+ event_image?: string | null | undefined;
910
+ }>>>>;
911
+ }, z.core.$strip>, z.ZodTransform<{
912
+ marketId: string | null | undefined;
913
+ imageUrl: string | null | undefined;
914
+ iconUrl: string | null | undefined;
915
+ endDate: IsoDateTimeString | null | undefined;
916
+ slug?: string | null | undefined;
917
+ title?: string | null | undefined;
918
+ outcome?: string | null | undefined;
919
+ category?: string | null | undefined;
920
+ subcategory?: string | null | undefined;
921
+ tags?: string[] | null | undefined;
922
+ event?: {
923
+ eventId: string | null | undefined;
924
+ eventSlug: string | null | undefined;
925
+ eventTitle: string | null | undefined;
926
+ eventImage: string | null | undefined;
927
+ } | null | undefined;
928
+ }, {
929
+ market_id?: string | null | undefined;
930
+ slug?: string | null | undefined;
931
+ title?: string | null | undefined;
932
+ outcome?: string | null | undefined;
933
+ image_url?: string | null | undefined;
934
+ icon_url?: string | null | undefined;
935
+ category?: string | null | undefined;
936
+ subcategory?: string | null | undefined;
937
+ tags?: string[] | null | undefined;
938
+ end_date?: IsoDateTimeString | null | undefined;
939
+ event?: {
940
+ eventId: string | null | undefined;
941
+ eventSlug: string | null | undefined;
942
+ eventTitle: string | null | undefined;
943
+ eventImage: string | null | undefined;
944
+ } | null | undefined;
945
+ }>>;
946
+ declare const ComboPositionLegSchema: z.ZodPipe<z.ZodObject<{
947
+ leg_index: z.ZodNumber;
948
+ leg_position_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
949
+ leg_condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
950
+ leg_outcome_index: z.ZodNumber;
951
+ leg_outcome_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
952
+ leg_status: z.ZodEnum<typeof ComboPositionStatus>;
953
+ leg_resolved_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
954
+ leg_current_price: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
955
+ market: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
956
+ market_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
957
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
958
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
959
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
960
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
961
+ icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
962
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
963
+ subcategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
964
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
965
+ end_date: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
966
+ event: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
967
+ event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
968
+ event_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
969
+ event_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
970
+ event_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
971
+ }, z.core.$strip>, z.ZodTransform<{
972
+ eventId: string | null | undefined;
973
+ eventSlug: string | null | undefined;
974
+ eventTitle: string | null | undefined;
975
+ eventImage: string | null | undefined;
976
+ }, {
977
+ event_id?: string | null | undefined;
978
+ event_slug?: string | null | undefined;
979
+ event_title?: string | null | undefined;
980
+ event_image?: string | null | undefined;
981
+ }>>>>;
982
+ }, z.core.$strip>, z.ZodTransform<{
983
+ marketId: string | null | undefined;
984
+ imageUrl: string | null | undefined;
985
+ iconUrl: string | null | undefined;
986
+ endDate: IsoDateTimeString | null | undefined;
987
+ slug?: string | null | undefined;
988
+ title?: string | null | undefined;
989
+ outcome?: string | null | undefined;
990
+ category?: string | null | undefined;
991
+ subcategory?: string | null | undefined;
992
+ tags?: string[] | null | undefined;
993
+ event?: {
994
+ eventId: string | null | undefined;
995
+ eventSlug: string | null | undefined;
996
+ eventTitle: string | null | undefined;
997
+ eventImage: string | null | undefined;
998
+ } | null | undefined;
999
+ }, {
1000
+ market_id?: string | null | undefined;
1001
+ slug?: string | null | undefined;
1002
+ title?: string | null | undefined;
1003
+ outcome?: string | null | undefined;
1004
+ image_url?: string | null | undefined;
1005
+ icon_url?: string | null | undefined;
1006
+ category?: string | null | undefined;
1007
+ subcategory?: string | null | undefined;
1008
+ tags?: string[] | null | undefined;
1009
+ end_date?: IsoDateTimeString | null | undefined;
1010
+ event?: {
1011
+ eventId: string | null | undefined;
1012
+ eventSlug: string | null | undefined;
1013
+ eventTitle: string | null | undefined;
1014
+ eventImage: string | null | undefined;
1015
+ } | null | undefined;
1016
+ }>>>>;
1017
+ }, z.core.$strip>, z.ZodTransform<{
1018
+ legIndex: number;
1019
+ legPositionId: PositionId;
1020
+ legConditionId: CtfConditionId;
1021
+ legOutcomeIndex: number;
1022
+ legOutcomeLabel: string | null | undefined;
1023
+ legStatus: ComboPositionStatus;
1024
+ legResolvedAt: IsoDateTimeString | null | undefined;
1025
+ legCurrentPrice: DecimalString | null | undefined;
1026
+ market?: {
1027
+ marketId: string | null | undefined;
1028
+ imageUrl: string | null | undefined;
1029
+ iconUrl: string | null | undefined;
1030
+ endDate: IsoDateTimeString | null | undefined;
1031
+ slug?: string | null | undefined;
1032
+ title?: string | null | undefined;
1033
+ outcome?: string | null | undefined;
1034
+ category?: string | null | undefined;
1035
+ subcategory?: string | null | undefined;
1036
+ tags?: string[] | null | undefined;
1037
+ event?: {
1038
+ eventId: string | null | undefined;
1039
+ eventSlug: string | null | undefined;
1040
+ eventTitle: string | null | undefined;
1041
+ eventImage: string | null | undefined;
1042
+ } | null | undefined;
1043
+ } | null | undefined;
1044
+ }, {
1045
+ leg_index: number;
1046
+ leg_position_id: PositionId;
1047
+ leg_condition_id: CtfConditionId;
1048
+ leg_outcome_index: number;
1049
+ leg_status: ComboPositionStatus;
1050
+ leg_outcome_label?: string | null | undefined;
1051
+ leg_resolved_at?: IsoDateTimeString | null | undefined;
1052
+ leg_current_price?: DecimalString | null | undefined;
1053
+ market?: {
1054
+ marketId: string | null | undefined;
1055
+ imageUrl: string | null | undefined;
1056
+ iconUrl: string | null | undefined;
1057
+ endDate: IsoDateTimeString | null | undefined;
1058
+ slug?: string | null | undefined;
1059
+ title?: string | null | undefined;
1060
+ outcome?: string | null | undefined;
1061
+ category?: string | null | undefined;
1062
+ subcategory?: string | null | undefined;
1063
+ tags?: string[] | null | undefined;
1064
+ event?: {
1065
+ eventId: string | null | undefined;
1066
+ eventSlug: string | null | undefined;
1067
+ eventTitle: string | null | undefined;
1068
+ eventImage: string | null | undefined;
1069
+ } | null | undefined;
1070
+ } | null | undefined;
1071
+ }>>;
1072
+ declare const ComboPositionSchema: z.ZodPipe<z.ZodObject<{
1073
+ combo_condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
1074
+ combo_position_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
1075
+ module_id: z.ZodNumber;
1076
+ user_address: z.ZodString;
1077
+ shares_balance: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1078
+ entry_avg_price_usdc: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
1079
+ entry_cost_usdc: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
1080
+ status: z.ZodEnum<typeof ComboPositionStatus>;
1081
+ first_entry_at: z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>;
1082
+ resolved_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
1083
+ legs_total: z.ZodNumber;
1084
+ legs_resolved: z.ZodNumber;
1085
+ legs_pending: z.ZodNumber;
1086
+ legs: z.ZodArray<z.ZodPipe<z.ZodObject<{
1087
+ leg_index: z.ZodNumber;
1088
+ leg_position_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
1089
+ leg_condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
1090
+ leg_outcome_index: z.ZodNumber;
1091
+ leg_outcome_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1092
+ leg_status: z.ZodEnum<typeof ComboPositionStatus>;
1093
+ leg_resolved_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
1094
+ leg_current_price: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
1095
+ market: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
1096
+ market_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1097
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1098
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1099
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1100
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1101
+ icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1102
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1103
+ subcategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1104
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1105
+ end_date: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
1106
+ event: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
1107
+ event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1108
+ event_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1109
+ event_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1110
+ event_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1111
+ }, z.core.$strip>, z.ZodTransform<{
1112
+ eventId: string | null | undefined;
1113
+ eventSlug: string | null | undefined;
1114
+ eventTitle: string | null | undefined;
1115
+ eventImage: string | null | undefined;
1116
+ }, {
1117
+ event_id?: string | null | undefined;
1118
+ event_slug?: string | null | undefined;
1119
+ event_title?: string | null | undefined;
1120
+ event_image?: string | null | undefined;
1121
+ }>>>>;
1122
+ }, z.core.$strip>, z.ZodTransform<{
1123
+ marketId: string | null | undefined;
1124
+ imageUrl: string | null | undefined;
1125
+ iconUrl: string | null | undefined;
1126
+ endDate: IsoDateTimeString | null | undefined;
1127
+ slug?: string | null | undefined;
1128
+ title?: string | null | undefined;
1129
+ outcome?: string | null | undefined;
1130
+ category?: string | null | undefined;
1131
+ subcategory?: string | null | undefined;
1132
+ tags?: string[] | null | undefined;
1133
+ event?: {
1134
+ eventId: string | null | undefined;
1135
+ eventSlug: string | null | undefined;
1136
+ eventTitle: string | null | undefined;
1137
+ eventImage: string | null | undefined;
1138
+ } | null | undefined;
1139
+ }, {
1140
+ market_id?: string | null | undefined;
1141
+ slug?: string | null | undefined;
1142
+ title?: string | null | undefined;
1143
+ outcome?: string | null | undefined;
1144
+ image_url?: string | null | undefined;
1145
+ icon_url?: string | null | undefined;
1146
+ category?: string | null | undefined;
1147
+ subcategory?: string | null | undefined;
1148
+ tags?: string[] | null | undefined;
1149
+ end_date?: IsoDateTimeString | null | undefined;
1150
+ event?: {
1151
+ eventId: string | null | undefined;
1152
+ eventSlug: string | null | undefined;
1153
+ eventTitle: string | null | undefined;
1154
+ eventImage: string | null | undefined;
1155
+ } | null | undefined;
1156
+ }>>>>;
1157
+ }, z.core.$strip>, z.ZodTransform<{
1158
+ legIndex: number;
1159
+ legPositionId: PositionId;
1160
+ legConditionId: CtfConditionId;
1161
+ legOutcomeIndex: number;
1162
+ legOutcomeLabel: string | null | undefined;
1163
+ legStatus: ComboPositionStatus;
1164
+ legResolvedAt: IsoDateTimeString | null | undefined;
1165
+ legCurrentPrice: DecimalString | null | undefined;
1166
+ market?: {
1167
+ marketId: string | null | undefined;
1168
+ imageUrl: string | null | undefined;
1169
+ iconUrl: string | null | undefined;
1170
+ endDate: IsoDateTimeString | null | undefined;
1171
+ slug?: string | null | undefined;
1172
+ title?: string | null | undefined;
1173
+ outcome?: string | null | undefined;
1174
+ category?: string | null | undefined;
1175
+ subcategory?: string | null | undefined;
1176
+ tags?: string[] | null | undefined;
1177
+ event?: {
1178
+ eventId: string | null | undefined;
1179
+ eventSlug: string | null | undefined;
1180
+ eventTitle: string | null | undefined;
1181
+ eventImage: string | null | undefined;
1182
+ } | null | undefined;
1183
+ } | null | undefined;
1184
+ }, {
1185
+ leg_index: number;
1186
+ leg_position_id: PositionId;
1187
+ leg_condition_id: CtfConditionId;
1188
+ leg_outcome_index: number;
1189
+ leg_status: ComboPositionStatus;
1190
+ leg_outcome_label?: string | null | undefined;
1191
+ leg_resolved_at?: IsoDateTimeString | null | undefined;
1192
+ leg_current_price?: DecimalString | null | undefined;
1193
+ market?: {
1194
+ marketId: string | null | undefined;
1195
+ imageUrl: string | null | undefined;
1196
+ iconUrl: string | null | undefined;
1197
+ endDate: IsoDateTimeString | null | undefined;
1198
+ slug?: string | null | undefined;
1199
+ title?: string | null | undefined;
1200
+ outcome?: string | null | undefined;
1201
+ category?: string | null | undefined;
1202
+ subcategory?: string | null | undefined;
1203
+ tags?: string[] | null | undefined;
1204
+ event?: {
1205
+ eventId: string | null | undefined;
1206
+ eventSlug: string | null | undefined;
1207
+ eventTitle: string | null | undefined;
1208
+ eventImage: string | null | undefined;
1209
+ } | null | undefined;
1210
+ } | null | undefined;
1211
+ }>>>;
1212
+ }, z.core.$strip>, z.ZodTransform<{
1213
+ conditionId: ComboConditionId;
1214
+ positionId: PositionId;
1215
+ moduleId: number;
1216
+ userAddress: string;
1217
+ shares: DecimalString;
1218
+ entryAvgPriceUsdc: DecimalString | null | undefined;
1219
+ entryCostUsdc: DecimalString | null | undefined;
1220
+ firstEntryAt: IsoDateTimeString;
1221
+ resolvedAt: IsoDateTimeString | null | undefined;
1222
+ legsTotal: number;
1223
+ legsResolved: number;
1224
+ legsPending: number;
1225
+ status: ComboPositionStatus;
1226
+ legs: {
1227
+ legIndex: number;
1228
+ legPositionId: PositionId;
1229
+ legConditionId: CtfConditionId;
1230
+ legOutcomeIndex: number;
1231
+ legOutcomeLabel: string | null | undefined;
1232
+ legStatus: ComboPositionStatus;
1233
+ legResolvedAt: IsoDateTimeString | null | undefined;
1234
+ legCurrentPrice: DecimalString | null | undefined;
1235
+ market?: {
1236
+ marketId: string | null | undefined;
1237
+ imageUrl: string | null | undefined;
1238
+ iconUrl: string | null | undefined;
1239
+ endDate: IsoDateTimeString | null | undefined;
1240
+ slug?: string | null | undefined;
1241
+ title?: string | null | undefined;
1242
+ outcome?: string | null | undefined;
1243
+ category?: string | null | undefined;
1244
+ subcategory?: string | null | undefined;
1245
+ tags?: string[] | null | undefined;
1246
+ event?: {
1247
+ eventId: string | null | undefined;
1248
+ eventSlug: string | null | undefined;
1249
+ eventTitle: string | null | undefined;
1250
+ eventImage: string | null | undefined;
1251
+ } | null | undefined;
1252
+ } | null | undefined;
1253
+ }[];
1254
+ }, {
1255
+ combo_condition_id: ComboConditionId;
1256
+ combo_position_id: PositionId;
1257
+ module_id: number;
1258
+ user_address: string;
1259
+ shares_balance: DecimalString;
1260
+ status: ComboPositionStatus;
1261
+ first_entry_at: IsoDateTimeString;
1262
+ legs_total: number;
1263
+ legs_resolved: number;
1264
+ legs_pending: number;
1265
+ legs: {
1266
+ legIndex: number;
1267
+ legPositionId: PositionId;
1268
+ legConditionId: CtfConditionId;
1269
+ legOutcomeIndex: number;
1270
+ legOutcomeLabel: string | null | undefined;
1271
+ legStatus: ComboPositionStatus;
1272
+ legResolvedAt: IsoDateTimeString | null | undefined;
1273
+ legCurrentPrice: DecimalString | null | undefined;
1274
+ market?: {
1275
+ marketId: string | null | undefined;
1276
+ imageUrl: string | null | undefined;
1277
+ iconUrl: string | null | undefined;
1278
+ endDate: IsoDateTimeString | null | undefined;
1279
+ slug?: string | null | undefined;
1280
+ title?: string | null | undefined;
1281
+ outcome?: string | null | undefined;
1282
+ category?: string | null | undefined;
1283
+ subcategory?: string | null | undefined;
1284
+ tags?: string[] | null | undefined;
1285
+ event?: {
1286
+ eventId: string | null | undefined;
1287
+ eventSlug: string | null | undefined;
1288
+ eventTitle: string | null | undefined;
1289
+ eventImage: string | null | undefined;
1290
+ } | null | undefined;
1291
+ } | null | undefined;
1292
+ }[];
1293
+ entry_avg_price_usdc?: DecimalString | null | undefined;
1294
+ entry_cost_usdc?: DecimalString | null | undefined;
1295
+ resolved_at?: IsoDateTimeString | null | undefined;
1296
+ }>>;
1297
+ declare const ListComboPositionsResponseSchema: z.ZodPipe<z.ZodObject<{
1298
+ combos: z.ZodArray<z.ZodPipe<z.ZodObject<{
1299
+ combo_condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<ComboConditionId, string>>;
1300
+ combo_position_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
1301
+ module_id: z.ZodNumber;
1302
+ user_address: z.ZodString;
1303
+ shares_balance: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
1304
+ entry_avg_price_usdc: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
1305
+ entry_cost_usdc: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
1306
+ status: z.ZodEnum<typeof ComboPositionStatus>;
1307
+ first_entry_at: z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>;
1308
+ resolved_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
1309
+ legs_total: z.ZodNumber;
1310
+ legs_resolved: z.ZodNumber;
1311
+ legs_pending: z.ZodNumber;
1312
+ legs: z.ZodArray<z.ZodPipe<z.ZodObject<{
1313
+ leg_index: z.ZodNumber;
1314
+ leg_position_id: z.ZodPipe<z.ZodString, z.ZodTransform<PositionId, string>>;
1315
+ leg_condition_id: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
1316
+ leg_outcome_index: z.ZodNumber;
1317
+ leg_outcome_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1318
+ leg_status: z.ZodEnum<typeof ComboPositionStatus>;
1319
+ leg_resolved_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
1320
+ leg_current_price: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
1321
+ market: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
1322
+ market_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1323
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1324
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1325
+ outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1326
+ image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1327
+ icon_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1328
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1329
+ subcategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1330
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1331
+ end_date: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodPipe<z.ZodString, z.ZodTransform<IsoDateTimeString, string>>, z.ZodPipe<z.ZodDate, z.ZodTransform<IsoDateTimeString, Date>>]>>>;
1332
+ event: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
1333
+ event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1334
+ event_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1335
+ event_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1336
+ event_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1337
+ }, z.core.$strip>, z.ZodTransform<{
1338
+ eventId: string | null | undefined;
1339
+ eventSlug: string | null | undefined;
1340
+ eventTitle: string | null | undefined;
1341
+ eventImage: string | null | undefined;
1342
+ }, {
1343
+ event_id?: string | null | undefined;
1344
+ event_slug?: string | null | undefined;
1345
+ event_title?: string | null | undefined;
1346
+ event_image?: string | null | undefined;
1347
+ }>>>>;
1348
+ }, z.core.$strip>, z.ZodTransform<{
1349
+ marketId: string | null | undefined;
1350
+ imageUrl: string | null | undefined;
1351
+ iconUrl: string | null | undefined;
1352
+ endDate: IsoDateTimeString | null | undefined;
1353
+ slug?: string | null | undefined;
1354
+ title?: string | null | undefined;
1355
+ outcome?: string | null | undefined;
1356
+ category?: string | null | undefined;
1357
+ subcategory?: string | null | undefined;
1358
+ tags?: string[] | null | undefined;
1359
+ event?: {
1360
+ eventId: string | null | undefined;
1361
+ eventSlug: string | null | undefined;
1362
+ eventTitle: string | null | undefined;
1363
+ eventImage: string | null | undefined;
1364
+ } | null | undefined;
1365
+ }, {
1366
+ market_id?: string | null | undefined;
1367
+ slug?: string | null | undefined;
1368
+ title?: string | null | undefined;
1369
+ outcome?: string | null | undefined;
1370
+ image_url?: string | null | undefined;
1371
+ icon_url?: string | null | undefined;
1372
+ category?: string | null | undefined;
1373
+ subcategory?: string | null | undefined;
1374
+ tags?: string[] | null | undefined;
1375
+ end_date?: IsoDateTimeString | null | undefined;
1376
+ event?: {
1377
+ eventId: string | null | undefined;
1378
+ eventSlug: string | null | undefined;
1379
+ eventTitle: string | null | undefined;
1380
+ eventImage: string | null | undefined;
1381
+ } | null | undefined;
1382
+ }>>>>;
1383
+ }, z.core.$strip>, z.ZodTransform<{
1384
+ legIndex: number;
1385
+ legPositionId: PositionId;
1386
+ legConditionId: CtfConditionId;
1387
+ legOutcomeIndex: number;
1388
+ legOutcomeLabel: string | null | undefined;
1389
+ legStatus: ComboPositionStatus;
1390
+ legResolvedAt: IsoDateTimeString | null | undefined;
1391
+ legCurrentPrice: DecimalString | null | undefined;
1392
+ market?: {
1393
+ marketId: string | null | undefined;
1394
+ imageUrl: string | null | undefined;
1395
+ iconUrl: string | null | undefined;
1396
+ endDate: IsoDateTimeString | null | undefined;
1397
+ slug?: string | null | undefined;
1398
+ title?: string | null | undefined;
1399
+ outcome?: string | null | undefined;
1400
+ category?: string | null | undefined;
1401
+ subcategory?: string | null | undefined;
1402
+ tags?: string[] | null | undefined;
1403
+ event?: {
1404
+ eventId: string | null | undefined;
1405
+ eventSlug: string | null | undefined;
1406
+ eventTitle: string | null | undefined;
1407
+ eventImage: string | null | undefined;
1408
+ } | null | undefined;
1409
+ } | null | undefined;
1410
+ }, {
1411
+ leg_index: number;
1412
+ leg_position_id: PositionId;
1413
+ leg_condition_id: CtfConditionId;
1414
+ leg_outcome_index: number;
1415
+ leg_status: ComboPositionStatus;
1416
+ leg_outcome_label?: string | null | undefined;
1417
+ leg_resolved_at?: IsoDateTimeString | null | undefined;
1418
+ leg_current_price?: DecimalString | null | undefined;
1419
+ market?: {
1420
+ marketId: string | null | undefined;
1421
+ imageUrl: string | null | undefined;
1422
+ iconUrl: string | null | undefined;
1423
+ endDate: IsoDateTimeString | null | undefined;
1424
+ slug?: string | null | undefined;
1425
+ title?: string | null | undefined;
1426
+ outcome?: string | null | undefined;
1427
+ category?: string | null | undefined;
1428
+ subcategory?: string | null | undefined;
1429
+ tags?: string[] | null | undefined;
1430
+ event?: {
1431
+ eventId: string | null | undefined;
1432
+ eventSlug: string | null | undefined;
1433
+ eventTitle: string | null | undefined;
1434
+ eventImage: string | null | undefined;
1435
+ } | null | undefined;
1436
+ } | null | undefined;
1437
+ }>>>;
1438
+ }, z.core.$strip>, z.ZodTransform<{
1439
+ conditionId: ComboConditionId;
1440
+ positionId: PositionId;
1441
+ moduleId: number;
1442
+ userAddress: string;
1443
+ shares: DecimalString;
1444
+ entryAvgPriceUsdc: DecimalString | null | undefined;
1445
+ entryCostUsdc: DecimalString | null | undefined;
1446
+ firstEntryAt: IsoDateTimeString;
1447
+ resolvedAt: IsoDateTimeString | null | undefined;
1448
+ legsTotal: number;
1449
+ legsResolved: number;
1450
+ legsPending: number;
1451
+ status: ComboPositionStatus;
1452
+ legs: {
1453
+ legIndex: number;
1454
+ legPositionId: PositionId;
1455
+ legConditionId: CtfConditionId;
1456
+ legOutcomeIndex: number;
1457
+ legOutcomeLabel: string | null | undefined;
1458
+ legStatus: ComboPositionStatus;
1459
+ legResolvedAt: IsoDateTimeString | null | undefined;
1460
+ legCurrentPrice: DecimalString | null | undefined;
1461
+ market?: {
1462
+ marketId: string | null | undefined;
1463
+ imageUrl: string | null | undefined;
1464
+ iconUrl: string | null | undefined;
1465
+ endDate: IsoDateTimeString | null | undefined;
1466
+ slug?: string | null | undefined;
1467
+ title?: string | null | undefined;
1468
+ outcome?: string | null | undefined;
1469
+ category?: string | null | undefined;
1470
+ subcategory?: string | null | undefined;
1471
+ tags?: string[] | null | undefined;
1472
+ event?: {
1473
+ eventId: string | null | undefined;
1474
+ eventSlug: string | null | undefined;
1475
+ eventTitle: string | null | undefined;
1476
+ eventImage: string | null | undefined;
1477
+ } | null | undefined;
1478
+ } | null | undefined;
1479
+ }[];
1480
+ }, {
1481
+ combo_condition_id: ComboConditionId;
1482
+ combo_position_id: PositionId;
1483
+ module_id: number;
1484
+ user_address: string;
1485
+ shares_balance: DecimalString;
1486
+ status: ComboPositionStatus;
1487
+ first_entry_at: IsoDateTimeString;
1488
+ legs_total: number;
1489
+ legs_resolved: number;
1490
+ legs_pending: number;
1491
+ legs: {
1492
+ legIndex: number;
1493
+ legPositionId: PositionId;
1494
+ legConditionId: CtfConditionId;
1495
+ legOutcomeIndex: number;
1496
+ legOutcomeLabel: string | null | undefined;
1497
+ legStatus: ComboPositionStatus;
1498
+ legResolvedAt: IsoDateTimeString | null | undefined;
1499
+ legCurrentPrice: DecimalString | null | undefined;
1500
+ market?: {
1501
+ marketId: string | null | undefined;
1502
+ imageUrl: string | null | undefined;
1503
+ iconUrl: string | null | undefined;
1504
+ endDate: IsoDateTimeString | null | undefined;
1505
+ slug?: string | null | undefined;
1506
+ title?: string | null | undefined;
1507
+ outcome?: string | null | undefined;
1508
+ category?: string | null | undefined;
1509
+ subcategory?: string | null | undefined;
1510
+ tags?: string[] | null | undefined;
1511
+ event?: {
1512
+ eventId: string | null | undefined;
1513
+ eventSlug: string | null | undefined;
1514
+ eventTitle: string | null | undefined;
1515
+ eventImage: string | null | undefined;
1516
+ } | null | undefined;
1517
+ } | null | undefined;
1518
+ }[];
1519
+ entry_avg_price_usdc?: DecimalString | null | undefined;
1520
+ entry_cost_usdc?: DecimalString | null | undefined;
1521
+ resolved_at?: IsoDateTimeString | null | undefined;
1522
+ }>>>;
1523
+ pagination: z.ZodObject<{
1524
+ limit: z.ZodNumber;
1525
+ offset: z.ZodNumber;
1526
+ has_more: z.ZodBoolean;
1527
+ next_cursor: z.ZodOptional<z.ZodNullable<z.ZodCustom<PaginationCursor, PaginationCursor>>>;
1528
+ }, z.core.$strip>;
1529
+ }, z.core.$strip>, z.ZodTransform<{
1530
+ pagination: {
1531
+ limit: number;
1532
+ offset: number;
1533
+ hasMore: boolean;
1534
+ nextCursor: PaginationCursor | null | undefined;
1535
+ };
1536
+ combos: {
1537
+ conditionId: ComboConditionId;
1538
+ positionId: PositionId;
1539
+ moduleId: number;
1540
+ userAddress: string;
1541
+ shares: DecimalString;
1542
+ entryAvgPriceUsdc: DecimalString | null | undefined;
1543
+ entryCostUsdc: DecimalString | null | undefined;
1544
+ firstEntryAt: IsoDateTimeString;
1545
+ resolvedAt: IsoDateTimeString | null | undefined;
1546
+ legsTotal: number;
1547
+ legsResolved: number;
1548
+ legsPending: number;
1549
+ status: ComboPositionStatus;
1550
+ legs: {
1551
+ legIndex: number;
1552
+ legPositionId: PositionId;
1553
+ legConditionId: CtfConditionId;
1554
+ legOutcomeIndex: number;
1555
+ legOutcomeLabel: string | null | undefined;
1556
+ legStatus: ComboPositionStatus;
1557
+ legResolvedAt: IsoDateTimeString | null | undefined;
1558
+ legCurrentPrice: DecimalString | null | undefined;
1559
+ market?: {
1560
+ marketId: string | null | undefined;
1561
+ imageUrl: string | null | undefined;
1562
+ iconUrl: string | null | undefined;
1563
+ endDate: IsoDateTimeString | null | undefined;
1564
+ slug?: string | null | undefined;
1565
+ title?: string | null | undefined;
1566
+ outcome?: string | null | undefined;
1567
+ category?: string | null | undefined;
1568
+ subcategory?: string | null | undefined;
1569
+ tags?: string[] | null | undefined;
1570
+ event?: {
1571
+ eventId: string | null | undefined;
1572
+ eventSlug: string | null | undefined;
1573
+ eventTitle: string | null | undefined;
1574
+ eventImage: string | null | undefined;
1575
+ } | null | undefined;
1576
+ } | null | undefined;
1577
+ }[];
1578
+ }[];
1579
+ }, {
1580
+ combos: {
1581
+ conditionId: ComboConditionId;
1582
+ positionId: PositionId;
1583
+ moduleId: number;
1584
+ userAddress: string;
1585
+ shares: DecimalString;
1586
+ entryAvgPriceUsdc: DecimalString | null | undefined;
1587
+ entryCostUsdc: DecimalString | null | undefined;
1588
+ firstEntryAt: IsoDateTimeString;
1589
+ resolvedAt: IsoDateTimeString | null | undefined;
1590
+ legsTotal: number;
1591
+ legsResolved: number;
1592
+ legsPending: number;
1593
+ status: ComboPositionStatus;
1594
+ legs: {
1595
+ legIndex: number;
1596
+ legPositionId: PositionId;
1597
+ legConditionId: CtfConditionId;
1598
+ legOutcomeIndex: number;
1599
+ legOutcomeLabel: string | null | undefined;
1600
+ legStatus: ComboPositionStatus;
1601
+ legResolvedAt: IsoDateTimeString | null | undefined;
1602
+ legCurrentPrice: DecimalString | null | undefined;
1603
+ market?: {
1604
+ marketId: string | null | undefined;
1605
+ imageUrl: string | null | undefined;
1606
+ iconUrl: string | null | undefined;
1607
+ endDate: IsoDateTimeString | null | undefined;
1608
+ slug?: string | null | undefined;
1609
+ title?: string | null | undefined;
1610
+ outcome?: string | null | undefined;
1611
+ category?: string | null | undefined;
1612
+ subcategory?: string | null | undefined;
1613
+ tags?: string[] | null | undefined;
1614
+ event?: {
1615
+ eventId: string | null | undefined;
1616
+ eventSlug: string | null | undefined;
1617
+ eventTitle: string | null | undefined;
1618
+ eventImage: string | null | undefined;
1619
+ } | null | undefined;
1620
+ } | null | undefined;
1621
+ }[];
1622
+ }[];
1623
+ pagination: {
1624
+ limit: number;
1625
+ offset: number;
1626
+ has_more: boolean;
1627
+ next_cursor?: PaginationCursor | null | undefined;
1628
+ };
1629
+ }>>;
846
1630
  declare const ListPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
847
1631
  proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
848
1632
  asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
849
- conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>;
1633
+ conditionId: z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>;
850
1634
  size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
851
1635
  avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
852
1636
  initialValue: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
@@ -861,7 +1645,7 @@ declare const ListPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
861
1645
  mergeable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
862
1646
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
863
1647
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
864
- icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1648
+ icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
865
1649
  eventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
866
1650
  eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
867
1651
  outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -874,7 +1658,7 @@ declare const ListPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
874
1658
  wallet: string | null | undefined;
875
1659
  tokenId: TokenId | null | undefined;
876
1660
  oppositeTokenId: TokenId | null | undefined;
877
- conditionId: ConditionId;
1661
+ conditionId: CtfConditionId;
878
1662
  size?: DecimalString | null | undefined;
879
1663
  avgPrice?: DecimalString | null | undefined;
880
1664
  initialValue?: DecimalString | null | undefined;
@@ -898,7 +1682,7 @@ declare const ListPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
898
1682
  endDate?: IsoCalendarDateString | null | undefined;
899
1683
  negativeRisk?: boolean | null | undefined;
900
1684
  }, {
901
- conditionId: ConditionId;
1685
+ conditionId: CtfConditionId;
902
1686
  proxyWallet?: string | null | undefined;
903
1687
  asset?: TokenId | null | undefined;
904
1688
  size?: DecimalString | null | undefined;
@@ -928,7 +1712,7 @@ declare const ListPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
928
1712
  declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObject<{
929
1713
  proxyWallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
930
1714
  asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
931
- conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
1715
+ conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
932
1716
  avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
933
1717
  totalBought: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
934
1718
  realizedPnl: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
@@ -936,7 +1720,7 @@ declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObjec
936
1720
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>>>;
937
1721
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
938
1722
  slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
939
- icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1723
+ icon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodNullable<z.ZodString>>>;
940
1724
  eventSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
941
1725
  outcome: z.ZodOptional<z.ZodNullable<z.ZodString>>;
942
1726
  outcomeIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -947,7 +1731,7 @@ declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObjec
947
1731
  wallet: string | null | undefined;
948
1732
  tokenId: TokenId | null | undefined;
949
1733
  oppositeTokenId: TokenId | null | undefined;
950
- conditionId?: ConditionId | null | undefined;
1734
+ conditionId?: CtfConditionId | null | undefined;
951
1735
  avgPrice?: DecimalString | null | undefined;
952
1736
  totalBought?: DecimalString | null | undefined;
953
1737
  realizedPnl?: DecimalString | null | undefined;
@@ -964,7 +1748,7 @@ declare const ListClosedPositionsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObjec
964
1748
  }, {
965
1749
  proxyWallet?: string | null | undefined;
966
1750
  asset?: TokenId | null | undefined;
967
- conditionId?: ConditionId | null | undefined;
1751
+ conditionId?: CtfConditionId | null | undefined;
968
1752
  avgPrice?: DecimalString | null | undefined;
969
1753
  totalBought?: DecimalString | null | undefined;
970
1754
  realizedPnl?: DecimalString | null | undefined;
@@ -992,7 +1776,7 @@ declare const ListMarketPositionsResponseSchema: z.ZodArray<z.ZodObject<{
992
1776
  profileImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
993
1777
  verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
994
1778
  asset: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<TokenId, string>>>>;
995
- conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ConditionId, string>>>>;
1779
+ conditionId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<CtfConditionId, string>>>>;
996
1780
  avgPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
997
1781
  size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
998
1782
  currPrice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>>>;
@@ -1009,7 +1793,7 @@ declare const ListMarketPositionsResponseSchema: z.ZodArray<z.ZodObject<{
1009
1793
  name?: string | null | undefined;
1010
1794
  profileImage?: string | null | undefined;
1011
1795
  verified?: boolean | null | undefined;
1012
- conditionId?: ConditionId | null | undefined;
1796
+ conditionId?: CtfConditionId | null | undefined;
1013
1797
  avgPrice?: DecimalString | null | undefined;
1014
1798
  size?: DecimalString | null | undefined;
1015
1799
  currPrice?: DecimalString | null | undefined;
@@ -1026,7 +1810,7 @@ declare const ListMarketPositionsResponseSchema: z.ZodArray<z.ZodObject<{
1026
1810
  profileImage?: string | null | undefined;
1027
1811
  verified?: boolean | null | undefined;
1028
1812
  asset?: TokenId | null | undefined;
1029
- conditionId?: ConditionId | null | undefined;
1813
+ conditionId?: CtfConditionId | null | undefined;
1030
1814
  avgPrice?: DecimalString | null | undefined;
1031
1815
  size?: DecimalString | null | undefined;
1032
1816
  currPrice?: DecimalString | null | undefined;
@@ -1044,9 +1828,14 @@ type ClosedPosition = z.infer<typeof ClosedPositionSchema>;
1044
1828
  type Value = z.infer<typeof ValueSchema>;
1045
1829
  type MarketPosition = z.infer<typeof MarketPositionSchema>;
1046
1830
  type MetaMarketPosition = z.infer<typeof MetaMarketPositionSchema>;
1831
+ type ComboPositionMarketEvent = z.infer<typeof ComboPositionMarketEventSchema>;
1832
+ type ComboPositionMarket = z.infer<typeof ComboPositionMarketSchema>;
1833
+ type ComboPositionLeg = z.infer<typeof ComboPositionLegSchema>;
1834
+ type ComboPosition = z.infer<typeof ComboPositionSchema>;
1047
1835
  type ListPositionsResponse = z.infer<typeof ListPositionsResponseSchema>;
1048
1836
  type ListClosedPositionsResponse = z.infer<typeof ListClosedPositionsResponseSchema>;
1049
1837
  type FetchPortfolioValueResponse = z.infer<typeof FetchPortfolioValueResponseSchema>;
1050
1838
  type ListMarketPositionsResponse = z.infer<typeof ListMarketPositionsResponseSchema>;
1839
+ type ListComboPositionsResponse = z.infer<typeof ListComboPositionsResponseSchema>;
1051
1840
 
1052
- export { type Activity, type ActivityBase, ActivitySchema, ActivityType, ActivityTypeSchema, type Address, AddressSchema, type BuilderVolumeEntry, BuilderVolumeEntrySchema, type ClosedPosition, ClosedPositionSchema, type ConversionActivity, type FetchEventLiveVolumeResponse, FetchEventLiveVolumeResponseSchema, type FetchPortfolioValueResponse, FetchPortfolioValueResponseSchema, type Hash64, Hash64Schema, type Holder, HolderSchema, type LeaderboardCategory, LeaderboardCategorySchema, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardOrderBy, LeaderboardOrderBySchema, type ListActivityResponse, ListActivityResponseSchema, type ListBuilderLeaderboardResponse, ListBuilderLeaderboardResponseSchema, type ListBuilderVolumeResponse, ListBuilderVolumeResponseSchema, type ListClosedPositionsResponse, ListClosedPositionsResponseSchema, type ListMarketHoldersResponse, ListMarketHoldersResponseSchema, type ListMarketPositionsResponse, ListMarketPositionsResponseSchema, type ListOpenInterestResponse, ListOpenInterestResponseSchema, type ListPositionsResponse, ListPositionsResponseSchema, type ListTraderLeaderboardResponse, ListTraderLeaderboardResponseSchema, type ListTradesResponse, ListTradesResponseSchema, type LiveVolume, LiveVolumeSchema, type MakerRebateActivity, type MarketPosition, MarketPositionSchema, type MarketVolume, MarketVolumeSchema, type MergeActivity, type MetaHolder, MetaHolderSchema, type MetaMarketPosition, MetaMarketPositionSchema, type OpenInterest, OpenInterestSchema, type Position, PositionSchema, type RedeemActivity, type ReferralRewardActivity, type RewardActivity, type Side, SideSchema, type SplitActivity, type TimePeriod, TimePeriodSchema, type Trade, type TradeActivity, TradeSchema, type Traded, TradedSchema, type TraderLeaderboardEntry, TraderLeaderboardEntrySchema, type Value, ValueSchema, type YieldActivity };
1841
+ export { type Activity, type ActivityBase, ActivitySchema, ActivityType, ActivityTypeSchema, type Address, AddressSchema, type BuilderVolumeEntry, BuilderVolumeEntrySchema, type ClobTradeActivity, type ClosedPosition, ClosedPositionSchema, type ComboPosition, type ComboPositionLeg, ComboPositionLegSchema, type ComboPositionMarket, type ComboPositionMarketEvent, ComboPositionMarketEventSchema, ComboPositionMarketSchema, ComboPositionSchema, ComboPositionStatus, ComboPositionStatusSchema, type ComboTradeActivity, type ConversionActivity, type FetchEventLiveVolumeResponse, FetchEventLiveVolumeResponseSchema, type FetchPortfolioValueResponse, FetchPortfolioValueResponseSchema, type Hash64, Hash64Schema, type Holder, HolderSchema, type LeaderboardCategory, LeaderboardCategorySchema, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardOrderBy, LeaderboardOrderBySchema, type ListActivityResponse, ListActivityResponseSchema, type ListBuilderLeaderboardResponse, ListBuilderLeaderboardResponseSchema, type ListBuilderVolumeResponse, ListBuilderVolumeResponseSchema, type ListClosedPositionsResponse, ListClosedPositionsResponseSchema, type ListComboPositionsResponse, ListComboPositionsResponseSchema, type ListMarketHoldersResponse, ListMarketHoldersResponseSchema, type ListMarketPositionsResponse, ListMarketPositionsResponseSchema, type ListOpenInterestResponse, ListOpenInterestResponseSchema, type ListPositionsResponse, ListPositionsResponseSchema, type ListTraderLeaderboardResponse, ListTraderLeaderboardResponseSchema, type ListTradesResponse, ListTradesResponseSchema, type LiveVolume, LiveVolumeSchema, type MakerRebateActivity, type MarketPosition, MarketPositionSchema, type MarketVolume, MarketVolumeSchema, type MergeActivity, type MetaHolder, MetaHolderSchema, type MetaMarketPosition, MetaMarketPositionSchema, type OpenInterest, OpenInterestSchema, type Position, PositionSchema, type RedeemActivity, type ReferralRewardActivity, type RewardActivity, type Side, SideSchema, type SplitActivity, type TimePeriod, TimePeriodSchema, type Trade, type TradeActivity, TradeSchema, type Traded, TradedSchema, type TraderLeaderboardEntry, TraderLeaderboardEntrySchema, type Value, ValueSchema, type YieldActivity };