@pear-protocol/types 2.15.0 → 2.17.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.
@@ -14,7 +14,29 @@ export declare const CopySizing: z.ZodDiscriminatedUnion<[z.ZodObject<{
14
14
  mode: z.ZodLiteral<"LEADER_EQUITY_FRACTION">;
15
15
  }, z.core.$strip>], "mode">;
16
16
  export type CopySizing = z.infer<typeof CopySizing>;
17
+ /** Subscription USD totals: lifetime volume and observed copy-period PnL when a baseline is available. */
18
+ export declare const CopySubscriptionMetrics: z.ZodObject<{
19
+ volume: z.ZodString;
20
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
21
+ grossUpnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
22
+ fundingPayment: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
23
+ tradeFee: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
24
+ pearFee: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
25
+ totalNetPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
26
+ }, z.core.$strip>;
27
+ export type CopySubscriptionMetrics = z.output<typeof CopySubscriptionMetrics>;
17
28
  export declare const CopySubscription: z.ZodObject<{
29
+ roi: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
30
+ provisional: z.ZodOptional<z.ZodLiteral<true>>;
31
+ latestFillAt: z.ZodOptional<z.ZodString>;
32
+ createdAt: z.ZodString;
33
+ endedAt: z.ZodOptional<z.ZodString>;
34
+ grossRealizedPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
35
+ grossUpnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
36
+ fundingPayment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
37
+ tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
38
+ pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
39
+ totalNetPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
18
40
  id: z.ZodUUID;
19
41
  leaderTradeAccountId: z.ZodUUID;
20
42
  followerTradeAccountId: z.ZodUUID;
@@ -33,23 +55,128 @@ export declare const CopySubscription: z.ZodObject<{
33
55
  sizing: z.ZodDiscriminatedUnion<[z.ZodObject<{
34
56
  mode: z.ZodLiteral<"LEADER_EQUITY_FRACTION">;
35
57
  }, z.core.$strip>], "mode">;
36
- createdAt: z.ZodString;
37
- endedAt: z.ZodOptional<z.ZodString>;
58
+ startSnapshot: z.ZodOptional<z.ZodObject<{
59
+ leader: z.ZodObject<{
60
+ tradeAccountId: z.ZodString;
61
+ capturedAt: z.ZodString;
62
+ initialEquityUsd: z.ZodString;
63
+ pnl: z.ZodObject<{
64
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
65
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
66
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
67
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
68
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
69
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
70
+ }, z.core.$strip>;
71
+ }, z.core.$strip>;
72
+ follower: z.ZodObject<{
73
+ tradeAccountId: z.ZodString;
74
+ capturedAt: z.ZodString;
75
+ initialEquityUsd: z.ZodString;
76
+ pnl: z.ZodObject<{
77
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
78
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
79
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
80
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
81
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
82
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
83
+ }, z.core.$strip>;
84
+ }, z.core.$strip>;
85
+ }, z.core.$strip>>;
86
+ endCapture: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
87
+ status: z.ZodLiteral<"PENDING">;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ status: z.ZodLiteral<"FAILED">;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ status: z.ZodLiteral<"COMPLETE">;
92
+ snapshot: z.ZodObject<{
93
+ leader: z.ZodObject<{
94
+ tradeAccountId: z.ZodString;
95
+ capturedAt: z.ZodString;
96
+ provisional: z.ZodLiteral<true>;
97
+ latestFillAt: z.ZodOptional<z.ZodString>;
98
+ pnl: z.ZodObject<{
99
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
100
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
101
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
102
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
103
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
104
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
105
+ }, z.core.$strip>;
106
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
107
+ }, z.core.$strip>;
108
+ follower: z.ZodObject<{
109
+ tradeAccountId: z.ZodString;
110
+ capturedAt: z.ZodString;
111
+ provisional: z.ZodLiteral<true>;
112
+ latestFillAt: z.ZodOptional<z.ZodString>;
113
+ pnl: z.ZodObject<{
114
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
115
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
116
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
117
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
118
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
119
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
120
+ }, z.core.$strip>;
121
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
122
+ }, z.core.$strip>;
123
+ }, z.core.$strip>;
124
+ }, z.core.$strip>], "status">>;
125
+ endReason: z.ZodOptional<z.ZodEnum<{
126
+ UNSUBSCRIBED: "UNSUBSCRIBED";
127
+ MANUAL_TRADE: "MANUAL_TRADE";
128
+ EXTERNAL_POSITION_DETECTED: "EXTERNAL_POSITION_DETECTED";
129
+ LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
130
+ FAILURE_THRESHOLD: "FAILURE_THRESHOLD";
131
+ }>>;
132
+ performance: z.ZodOptional<z.ZodObject<{
133
+ kind: z.ZodLiteral<"OBSERVED">;
134
+ boundaryAt: z.ZodString;
135
+ timing: z.ZodUnion<readonly [z.ZodLiteral<"LIVE">, z.ZodLiteral<"DELAYED">]>;
136
+ accountTimings: z.ZodOptional<z.ZodObject<{
137
+ leader: z.ZodLiteral<"DELAYED">;
138
+ follower: z.ZodLiteral<"DELAYED">;
139
+ }, z.core.$strip>>;
140
+ leader: z.ZodObject<{
141
+ tradeAccountId: z.ZodString;
142
+ capturedAt: z.ZodString;
143
+ provisional: z.ZodLiteral<true>;
144
+ latestFillAt: z.ZodOptional<z.ZodString>;
145
+ pnl: z.ZodObject<{
146
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
147
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
148
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
149
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
150
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
151
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
152
+ }, z.core.$strip>;
153
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
154
+ }, z.core.$strip>;
155
+ follower: z.ZodObject<{
156
+ tradeAccountId: z.ZodString;
157
+ capturedAt: z.ZodString;
158
+ provisional: z.ZodLiteral<true>;
159
+ latestFillAt: z.ZodOptional<z.ZodString>;
160
+ pnl: z.ZodObject<{
161
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
162
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
163
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
164
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
165
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
166
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
167
+ }, z.core.$strip>;
168
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
169
+ }, z.core.$strip>;
170
+ }, z.core.$strip>>;
38
171
  }, z.core.$strip>;
39
172
  export type CopySubscription = z.infer<typeof CopySubscription>;
40
- /** Active position-lifetime USD totals; mark, basis, or exposure gaps can leave measured PnL partial. */
41
- export declare const CopySubscriptionMetrics: z.ZodObject<{
42
- volume: z.ZodString;
43
- grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
44
- grossUpnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
45
- fundingPayment: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
46
- tradeFee: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
47
- pearFee: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
48
- totalNetPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
49
- }, z.core.$strip>;
50
- export type CopySubscriptionMetrics = z.output<typeof CopySubscriptionMetrics>;
51
173
  /** Current subscription with volume, gross PnL, attributed funding, signed fees, and net PnL. */
52
174
  export declare const CopySubscriptionWithMetrics: z.ZodObject<{
175
+ roi: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
176
+ provisional: z.ZodOptional<z.ZodLiteral<true>>;
177
+ latestFillAt: z.ZodOptional<z.ZodString>;
178
+ createdAt: z.ZodString;
179
+ endedAt: z.ZodOptional<z.ZodString>;
53
180
  id: z.ZodUUID;
54
181
  leaderTradeAccountId: z.ZodUUID;
55
182
  followerTradeAccountId: z.ZodUUID;
@@ -64,8 +191,119 @@ export declare const CopySubscriptionWithMetrics: z.ZodObject<{
64
191
  sizing: z.ZodDiscriminatedUnion<[z.ZodObject<{
65
192
  mode: z.ZodLiteral<"LEADER_EQUITY_FRACTION">;
66
193
  }, z.core.$strip>], "mode">;
67
- createdAt: z.ZodString;
68
- endedAt: z.ZodOptional<z.ZodString>;
194
+ startSnapshot: z.ZodOptional<z.ZodObject<{
195
+ leader: z.ZodObject<{
196
+ tradeAccountId: z.ZodString;
197
+ capturedAt: z.ZodString;
198
+ initialEquityUsd: z.ZodString;
199
+ pnl: z.ZodObject<{
200
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
201
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
202
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
203
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
204
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
205
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
206
+ }, z.core.$strip>;
207
+ }, z.core.$strip>;
208
+ follower: z.ZodObject<{
209
+ tradeAccountId: z.ZodString;
210
+ capturedAt: z.ZodString;
211
+ initialEquityUsd: z.ZodString;
212
+ pnl: z.ZodObject<{
213
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
214
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
215
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
216
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
217
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
218
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
219
+ }, z.core.$strip>;
220
+ }, z.core.$strip>;
221
+ }, z.core.$strip>>;
222
+ endCapture: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
223
+ status: z.ZodLiteral<"PENDING">;
224
+ }, z.core.$strip>, z.ZodObject<{
225
+ status: z.ZodLiteral<"FAILED">;
226
+ }, z.core.$strip>, z.ZodObject<{
227
+ status: z.ZodLiteral<"COMPLETE">;
228
+ snapshot: z.ZodObject<{
229
+ leader: z.ZodObject<{
230
+ tradeAccountId: z.ZodString;
231
+ capturedAt: z.ZodString;
232
+ provisional: z.ZodLiteral<true>;
233
+ latestFillAt: z.ZodOptional<z.ZodString>;
234
+ pnl: z.ZodObject<{
235
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
236
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
237
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
238
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
239
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
240
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
241
+ }, z.core.$strip>;
242
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
243
+ }, z.core.$strip>;
244
+ follower: z.ZodObject<{
245
+ tradeAccountId: z.ZodString;
246
+ capturedAt: z.ZodString;
247
+ provisional: z.ZodLiteral<true>;
248
+ latestFillAt: z.ZodOptional<z.ZodString>;
249
+ pnl: z.ZodObject<{
250
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
251
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
252
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
253
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
254
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
255
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
256
+ }, z.core.$strip>;
257
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
258
+ }, z.core.$strip>;
259
+ }, z.core.$strip>;
260
+ }, z.core.$strip>], "status">>;
261
+ endReason: z.ZodOptional<z.ZodEnum<{
262
+ UNSUBSCRIBED: "UNSUBSCRIBED";
263
+ MANUAL_TRADE: "MANUAL_TRADE";
264
+ EXTERNAL_POSITION_DETECTED: "EXTERNAL_POSITION_DETECTED";
265
+ LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
266
+ FAILURE_THRESHOLD: "FAILURE_THRESHOLD";
267
+ }>>;
268
+ performance: z.ZodOptional<z.ZodObject<{
269
+ kind: z.ZodLiteral<"OBSERVED">;
270
+ boundaryAt: z.ZodString;
271
+ timing: z.ZodUnion<readonly [z.ZodLiteral<"LIVE">, z.ZodLiteral<"DELAYED">]>;
272
+ accountTimings: z.ZodOptional<z.ZodObject<{
273
+ leader: z.ZodLiteral<"DELAYED">;
274
+ follower: z.ZodLiteral<"DELAYED">;
275
+ }, z.core.$strip>>;
276
+ leader: z.ZodObject<{
277
+ tradeAccountId: z.ZodString;
278
+ capturedAt: z.ZodString;
279
+ provisional: z.ZodLiteral<true>;
280
+ latestFillAt: z.ZodOptional<z.ZodString>;
281
+ pnl: z.ZodObject<{
282
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
283
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
284
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
285
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
286
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
287
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
288
+ }, z.core.$strip>;
289
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
290
+ }, z.core.$strip>;
291
+ follower: z.ZodObject<{
292
+ tradeAccountId: z.ZodString;
293
+ capturedAt: z.ZodString;
294
+ provisional: z.ZodLiteral<true>;
295
+ latestFillAt: z.ZodOptional<z.ZodString>;
296
+ pnl: z.ZodObject<{
297
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
298
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
299
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
300
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
301
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
302
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
303
+ }, z.core.$strip>;
304
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
305
+ }, z.core.$strip>;
306
+ }, z.core.$strip>>;
69
307
  status: z.ZodLiteral<"ACTIVE">;
70
308
  volume: z.ZodString;
71
309
  grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
@@ -76,8 +314,19 @@ export declare const CopySubscriptionWithMetrics: z.ZodObject<{
76
314
  totalNetPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
77
315
  }, z.core.$strip>;
78
316
  export type CopySubscriptionWithMetrics = z.output<typeof CopySubscriptionWithMetrics>;
79
- /** Ended subscription with lifetime turnover only. */
317
+ /** Ended subscription with lifetime turnover and captured period performance when available. */
80
318
  export declare const CopyEndedSubscriptionWithVolume: z.ZodObject<{
319
+ roi: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
320
+ provisional: z.ZodOptional<z.ZodLiteral<true>>;
321
+ latestFillAt: z.ZodOptional<z.ZodString>;
322
+ createdAt: z.ZodString;
323
+ endedAt: z.ZodOptional<z.ZodString>;
324
+ grossRealizedPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
325
+ grossUpnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
326
+ fundingPayment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
327
+ tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
328
+ pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
329
+ totalNetPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
81
330
  id: z.ZodUUID;
82
331
  leaderTradeAccountId: z.ZodUUID;
83
332
  followerTradeAccountId: z.ZodUUID;
@@ -92,14 +341,130 @@ export declare const CopyEndedSubscriptionWithVolume: z.ZodObject<{
92
341
  sizing: z.ZodDiscriminatedUnion<[z.ZodObject<{
93
342
  mode: z.ZodLiteral<"LEADER_EQUITY_FRACTION">;
94
343
  }, z.core.$strip>], "mode">;
95
- createdAt: z.ZodString;
96
- endedAt: z.ZodOptional<z.ZodString>;
344
+ startSnapshot: z.ZodOptional<z.ZodObject<{
345
+ leader: z.ZodObject<{
346
+ tradeAccountId: z.ZodString;
347
+ capturedAt: z.ZodString;
348
+ initialEquityUsd: z.ZodString;
349
+ pnl: z.ZodObject<{
350
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
351
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
352
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
353
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
354
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
355
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
356
+ }, z.core.$strip>;
357
+ }, z.core.$strip>;
358
+ follower: z.ZodObject<{
359
+ tradeAccountId: z.ZodString;
360
+ capturedAt: z.ZodString;
361
+ initialEquityUsd: z.ZodString;
362
+ pnl: z.ZodObject<{
363
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
364
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
365
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
366
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
367
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
368
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
369
+ }, z.core.$strip>;
370
+ }, z.core.$strip>;
371
+ }, z.core.$strip>>;
372
+ endCapture: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
373
+ status: z.ZodLiteral<"PENDING">;
374
+ }, z.core.$strip>, z.ZodObject<{
375
+ status: z.ZodLiteral<"FAILED">;
376
+ }, z.core.$strip>, z.ZodObject<{
377
+ status: z.ZodLiteral<"COMPLETE">;
378
+ snapshot: z.ZodObject<{
379
+ leader: z.ZodObject<{
380
+ tradeAccountId: z.ZodString;
381
+ capturedAt: z.ZodString;
382
+ provisional: z.ZodLiteral<true>;
383
+ latestFillAt: z.ZodOptional<z.ZodString>;
384
+ pnl: z.ZodObject<{
385
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
386
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
387
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
388
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
389
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
390
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
391
+ }, z.core.$strip>;
392
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
393
+ }, z.core.$strip>;
394
+ follower: z.ZodObject<{
395
+ tradeAccountId: z.ZodString;
396
+ capturedAt: z.ZodString;
397
+ provisional: z.ZodLiteral<true>;
398
+ latestFillAt: z.ZodOptional<z.ZodString>;
399
+ pnl: z.ZodObject<{
400
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
401
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
402
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
403
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
404
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
405
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
406
+ }, z.core.$strip>;
407
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
408
+ }, z.core.$strip>;
409
+ }, z.core.$strip>;
410
+ }, z.core.$strip>], "status">>;
411
+ endReason: z.ZodOptional<z.ZodEnum<{
412
+ UNSUBSCRIBED: "UNSUBSCRIBED";
413
+ MANUAL_TRADE: "MANUAL_TRADE";
414
+ EXTERNAL_POSITION_DETECTED: "EXTERNAL_POSITION_DETECTED";
415
+ LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
416
+ FAILURE_THRESHOLD: "FAILURE_THRESHOLD";
417
+ }>>;
418
+ performance: z.ZodOptional<z.ZodObject<{
419
+ kind: z.ZodLiteral<"OBSERVED">;
420
+ boundaryAt: z.ZodString;
421
+ timing: z.ZodUnion<readonly [z.ZodLiteral<"LIVE">, z.ZodLiteral<"DELAYED">]>;
422
+ accountTimings: z.ZodOptional<z.ZodObject<{
423
+ leader: z.ZodLiteral<"DELAYED">;
424
+ follower: z.ZodLiteral<"DELAYED">;
425
+ }, z.core.$strip>>;
426
+ leader: z.ZodObject<{
427
+ tradeAccountId: z.ZodString;
428
+ capturedAt: z.ZodString;
429
+ provisional: z.ZodLiteral<true>;
430
+ latestFillAt: z.ZodOptional<z.ZodString>;
431
+ pnl: z.ZodObject<{
432
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
433
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
434
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
435
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
436
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
437
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
438
+ }, z.core.$strip>;
439
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
440
+ }, z.core.$strip>;
441
+ follower: z.ZodObject<{
442
+ tradeAccountId: z.ZodString;
443
+ capturedAt: z.ZodString;
444
+ provisional: z.ZodLiteral<true>;
445
+ latestFillAt: z.ZodOptional<z.ZodString>;
446
+ pnl: z.ZodObject<{
447
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
448
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
449
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
450
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
451
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
452
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
453
+ }, z.core.$strip>;
454
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
455
+ }, z.core.$strip>;
456
+ }, z.core.$strip>>;
97
457
  status: z.ZodLiteral<"ENDED">;
98
458
  volume: z.ZodString;
99
459
  }, z.core.$strip>;
100
460
  export type CopyEndedSubscriptionWithVolume = z.output<typeof CopyEndedSubscriptionWithVolume>;
101
461
  /** Read shape selected by subscription status. */
102
462
  export declare const CopySubscriptionRead: z.ZodDiscriminatedUnion<[z.ZodObject<{
463
+ roi: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
464
+ provisional: z.ZodOptional<z.ZodLiteral<true>>;
465
+ latestFillAt: z.ZodOptional<z.ZodString>;
466
+ createdAt: z.ZodString;
467
+ endedAt: z.ZodOptional<z.ZodString>;
103
468
  id: z.ZodUUID;
104
469
  leaderTradeAccountId: z.ZodUUID;
105
470
  followerTradeAccountId: z.ZodUUID;
@@ -114,8 +479,119 @@ export declare const CopySubscriptionRead: z.ZodDiscriminatedUnion<[z.ZodObject<
114
479
  sizing: z.ZodDiscriminatedUnion<[z.ZodObject<{
115
480
  mode: z.ZodLiteral<"LEADER_EQUITY_FRACTION">;
116
481
  }, z.core.$strip>], "mode">;
117
- createdAt: z.ZodString;
118
- endedAt: z.ZodOptional<z.ZodString>;
482
+ startSnapshot: z.ZodOptional<z.ZodObject<{
483
+ leader: z.ZodObject<{
484
+ tradeAccountId: z.ZodString;
485
+ capturedAt: z.ZodString;
486
+ initialEquityUsd: z.ZodString;
487
+ pnl: z.ZodObject<{
488
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
489
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
490
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
491
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
492
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
493
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
494
+ }, z.core.$strip>;
495
+ }, z.core.$strip>;
496
+ follower: z.ZodObject<{
497
+ tradeAccountId: z.ZodString;
498
+ capturedAt: z.ZodString;
499
+ initialEquityUsd: z.ZodString;
500
+ pnl: z.ZodObject<{
501
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
502
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
503
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
504
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
505
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
506
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
507
+ }, z.core.$strip>;
508
+ }, z.core.$strip>;
509
+ }, z.core.$strip>>;
510
+ endCapture: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
511
+ status: z.ZodLiteral<"PENDING">;
512
+ }, z.core.$strip>, z.ZodObject<{
513
+ status: z.ZodLiteral<"FAILED">;
514
+ }, z.core.$strip>, z.ZodObject<{
515
+ status: z.ZodLiteral<"COMPLETE">;
516
+ snapshot: z.ZodObject<{
517
+ leader: z.ZodObject<{
518
+ tradeAccountId: z.ZodString;
519
+ capturedAt: z.ZodString;
520
+ provisional: z.ZodLiteral<true>;
521
+ latestFillAt: z.ZodOptional<z.ZodString>;
522
+ pnl: z.ZodObject<{
523
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
524
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
525
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
526
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
527
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
528
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
529
+ }, z.core.$strip>;
530
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
531
+ }, z.core.$strip>;
532
+ follower: z.ZodObject<{
533
+ tradeAccountId: z.ZodString;
534
+ capturedAt: z.ZodString;
535
+ provisional: z.ZodLiteral<true>;
536
+ latestFillAt: z.ZodOptional<z.ZodString>;
537
+ pnl: z.ZodObject<{
538
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
539
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
540
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
541
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
542
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
543
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
544
+ }, z.core.$strip>;
545
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
546
+ }, z.core.$strip>;
547
+ }, z.core.$strip>;
548
+ }, z.core.$strip>], "status">>;
549
+ endReason: z.ZodOptional<z.ZodEnum<{
550
+ UNSUBSCRIBED: "UNSUBSCRIBED";
551
+ MANUAL_TRADE: "MANUAL_TRADE";
552
+ EXTERNAL_POSITION_DETECTED: "EXTERNAL_POSITION_DETECTED";
553
+ LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
554
+ FAILURE_THRESHOLD: "FAILURE_THRESHOLD";
555
+ }>>;
556
+ performance: z.ZodOptional<z.ZodObject<{
557
+ kind: z.ZodLiteral<"OBSERVED">;
558
+ boundaryAt: z.ZodString;
559
+ timing: z.ZodUnion<readonly [z.ZodLiteral<"LIVE">, z.ZodLiteral<"DELAYED">]>;
560
+ accountTimings: z.ZodOptional<z.ZodObject<{
561
+ leader: z.ZodLiteral<"DELAYED">;
562
+ follower: z.ZodLiteral<"DELAYED">;
563
+ }, z.core.$strip>>;
564
+ leader: z.ZodObject<{
565
+ tradeAccountId: z.ZodString;
566
+ capturedAt: z.ZodString;
567
+ provisional: z.ZodLiteral<true>;
568
+ latestFillAt: z.ZodOptional<z.ZodString>;
569
+ pnl: z.ZodObject<{
570
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
571
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
572
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
573
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
574
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
575
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
576
+ }, z.core.$strip>;
577
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
578
+ }, z.core.$strip>;
579
+ follower: z.ZodObject<{
580
+ tradeAccountId: z.ZodString;
581
+ capturedAt: z.ZodString;
582
+ provisional: z.ZodLiteral<true>;
583
+ latestFillAt: z.ZodOptional<z.ZodString>;
584
+ pnl: z.ZodObject<{
585
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
586
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
587
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
588
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
589
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
590
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
591
+ }, z.core.$strip>;
592
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
593
+ }, z.core.$strip>;
594
+ }, z.core.$strip>>;
119
595
  status: z.ZodLiteral<"ACTIVE">;
120
596
  volume: z.ZodString;
121
597
  grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
@@ -125,6 +601,17 @@ export declare const CopySubscriptionRead: z.ZodDiscriminatedUnion<[z.ZodObject<
125
601
  pearFee: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
126
602
  totalNetPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
127
603
  }, z.core.$strip>, z.ZodObject<{
604
+ roi: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
605
+ provisional: z.ZodOptional<z.ZodLiteral<true>>;
606
+ latestFillAt: z.ZodOptional<z.ZodString>;
607
+ createdAt: z.ZodString;
608
+ endedAt: z.ZodOptional<z.ZodString>;
609
+ grossRealizedPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
610
+ grossUpnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
611
+ fundingPayment: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
612
+ tradeFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
613
+ pearFee: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
614
+ totalNetPnl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
128
615
  id: z.ZodUUID;
129
616
  leaderTradeAccountId: z.ZodUUID;
130
617
  followerTradeAccountId: z.ZodUUID;
@@ -139,17 +626,128 @@ export declare const CopySubscriptionRead: z.ZodDiscriminatedUnion<[z.ZodObject<
139
626
  sizing: z.ZodDiscriminatedUnion<[z.ZodObject<{
140
627
  mode: z.ZodLiteral<"LEADER_EQUITY_FRACTION">;
141
628
  }, z.core.$strip>], "mode">;
142
- createdAt: z.ZodString;
143
- endedAt: z.ZodOptional<z.ZodString>;
629
+ startSnapshot: z.ZodOptional<z.ZodObject<{
630
+ leader: z.ZodObject<{
631
+ tradeAccountId: z.ZodString;
632
+ capturedAt: z.ZodString;
633
+ initialEquityUsd: z.ZodString;
634
+ pnl: z.ZodObject<{
635
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
636
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
637
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
638
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
639
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
640
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
641
+ }, z.core.$strip>;
642
+ }, z.core.$strip>;
643
+ follower: z.ZodObject<{
644
+ tradeAccountId: z.ZodString;
645
+ capturedAt: z.ZodString;
646
+ initialEquityUsd: z.ZodString;
647
+ pnl: z.ZodObject<{
648
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
649
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
650
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
651
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
652
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
653
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
654
+ }, z.core.$strip>;
655
+ }, z.core.$strip>;
656
+ }, z.core.$strip>>;
657
+ endCapture: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
658
+ status: z.ZodLiteral<"PENDING">;
659
+ }, z.core.$strip>, z.ZodObject<{
660
+ status: z.ZodLiteral<"FAILED">;
661
+ }, z.core.$strip>, z.ZodObject<{
662
+ status: z.ZodLiteral<"COMPLETE">;
663
+ snapshot: z.ZodObject<{
664
+ leader: z.ZodObject<{
665
+ tradeAccountId: z.ZodString;
666
+ capturedAt: z.ZodString;
667
+ provisional: z.ZodLiteral<true>;
668
+ latestFillAt: z.ZodOptional<z.ZodString>;
669
+ pnl: z.ZodObject<{
670
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
671
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
672
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
673
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
674
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
675
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
676
+ }, z.core.$strip>;
677
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
678
+ }, z.core.$strip>;
679
+ follower: z.ZodObject<{
680
+ tradeAccountId: z.ZodString;
681
+ capturedAt: z.ZodString;
682
+ provisional: z.ZodLiteral<true>;
683
+ latestFillAt: z.ZodOptional<z.ZodString>;
684
+ pnl: z.ZodObject<{
685
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
686
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
687
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
688
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
689
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
690
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
691
+ }, z.core.$strip>;
692
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
693
+ }, z.core.$strip>;
694
+ }, z.core.$strip>;
695
+ }, z.core.$strip>], "status">>;
696
+ endReason: z.ZodOptional<z.ZodEnum<{
697
+ UNSUBSCRIBED: "UNSUBSCRIBED";
698
+ MANUAL_TRADE: "MANUAL_TRADE";
699
+ EXTERNAL_POSITION_DETECTED: "EXTERNAL_POSITION_DETECTED";
700
+ LEADER_EXTERNAL_ACTIVITY: "LEADER_EXTERNAL_ACTIVITY";
701
+ FAILURE_THRESHOLD: "FAILURE_THRESHOLD";
702
+ }>>;
703
+ performance: z.ZodOptional<z.ZodObject<{
704
+ kind: z.ZodLiteral<"OBSERVED">;
705
+ boundaryAt: z.ZodString;
706
+ timing: z.ZodUnion<readonly [z.ZodLiteral<"LIVE">, z.ZodLiteral<"DELAYED">]>;
707
+ accountTimings: z.ZodOptional<z.ZodObject<{
708
+ leader: z.ZodLiteral<"DELAYED">;
709
+ follower: z.ZodLiteral<"DELAYED">;
710
+ }, z.core.$strip>>;
711
+ leader: z.ZodObject<{
712
+ tradeAccountId: z.ZodString;
713
+ capturedAt: z.ZodString;
714
+ provisional: z.ZodLiteral<true>;
715
+ latestFillAt: z.ZodOptional<z.ZodString>;
716
+ pnl: z.ZodObject<{
717
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
718
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
719
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
720
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
721
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
722
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
723
+ }, z.core.$strip>;
724
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
725
+ }, z.core.$strip>;
726
+ follower: z.ZodObject<{
727
+ tradeAccountId: z.ZodString;
728
+ capturedAt: z.ZodString;
729
+ provisional: z.ZodLiteral<true>;
730
+ latestFillAt: z.ZodOptional<z.ZodString>;
731
+ pnl: z.ZodObject<{
732
+ grossRealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
733
+ unrealizedPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
734
+ funding: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
735
+ tradingFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
736
+ platformFees: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
737
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
738
+ }, z.core.$strip>;
739
+ returnOnStartingEquityPercent: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>>;
740
+ }, z.core.$strip>;
741
+ }, z.core.$strip>>;
144
742
  status: z.ZodLiteral<"ENDED">;
145
743
  volume: z.ZodString;
146
744
  }, z.core.$strip>], "status">;
147
745
  export type CopySubscriptionRead = z.output<typeof CopySubscriptionRead>;
148
746
  export declare const CopyActivityOutcome: z.ZodEnum<{
747
+ FAILED: "FAILED";
149
748
  COPIED: "COPIED";
150
749
  PARTIAL: "PARTIAL";
151
750
  SKIPPED: "SKIPPED";
152
- FAILED: "FAILED";
153
751
  }>;
154
752
  export type CopyActivityOutcome = z.infer<typeof CopyActivityOutcome>;
155
753
  export declare const CopyActivityState: z.ZodEnum<{
@@ -250,10 +848,10 @@ export declare const CopyActivity: z.ZodObject<{
250
848
  SETTLED: "SETTLED";
251
849
  }>;
252
850
  outcome: z.ZodOptional<z.ZodEnum<{
851
+ FAILED: "FAILED";
253
852
  COPIED: "COPIED";
254
853
  PARTIAL: "PARTIAL";
255
854
  SKIPPED: "SKIPPED";
256
- FAILED: "FAILED";
257
855
  }>>;
258
856
  skipReason: z.ZodOptional<z.ZodEnum<{
259
857
  SUBSCRIPTION_NOT_ACTIVE: "SUBSCRIPTION_NOT_ACTIVE";