@pear-protocol/types 2.23.0 → 2.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/copy/entities.d.ts +162 -10
  2. package/dist/copy/responses.d.ts +96 -11
  3. package/dist/execution/entities.d.ts +260 -43
  4. package/dist/execution/queries.d.ts +3 -2
  5. package/dist/execution/responses.d.ts +144 -24
  6. package/dist/fill/entities.d.ts +60 -1
  7. package/dist/fill/queries.d.ts +1 -0
  8. package/dist/fill/responses.d.ts +34 -4
  9. package/dist/index.js +743 -411
  10. package/dist/ladder/entities.d.ts +141 -24
  11. package/dist/ladder/payloads.d.ts +60 -24
  12. package/dist/ladder/queries.d.ts +2 -2
  13. package/dist/ladder/responses.d.ts +420 -69
  14. package/dist/leverage/payloads.d.ts +6 -1
  15. package/dist/notification/entities.d.ts +209 -7
  16. package/dist/notification/responses.d.ts +99 -2
  17. package/dist/order/entities.d.ts +3 -3
  18. package/dist/position/entities.d.ts +5 -5
  19. package/dist/position/responses.d.ts +4 -4
  20. package/dist/realtime/frames.d.ts +38 -6
  21. package/dist/realtime/public-events.d.ts +19 -3
  22. package/dist/rewards/entities.d.ts +18 -0
  23. package/dist/rewards/index.d.ts +1 -0
  24. package/dist/rewards/queries.d.ts +7 -0
  25. package/dist/rewards/responses.d.ts +52 -0
  26. package/dist/schedule/entities.d.ts +155 -19
  27. package/dist/schedule/index.d.ts +1 -0
  28. package/dist/schedule/queries.d.ts +3 -2
  29. package/dist/schedule/responses.d.ts +142 -19
  30. package/dist/sync/payloads.d.ts +56 -88
  31. package/dist/tca/responses.d.ts +12 -12
  32. package/dist/trade/payloads.d.ts +60 -24
  33. package/dist/trade/responses.d.ts +360 -60
  34. package/dist/traders/performance.d.ts +4 -0
  35. package/dist/traders/public.d.ts +537 -285
  36. package/dist/trigger/common/index.d.ts +8 -2
  37. package/dist/trigger/entities/conditions.d.ts +40 -0
  38. package/dist/trigger/entities/index.d.ts +339 -32
  39. package/dist/trigger/payloads/conditions.d.ts +70 -38
  40. package/dist/trigger/payloads/index.d.ts +408 -216
  41. package/dist/trigger/queries.d.ts +2 -2
  42. package/dist/trigger/responses.d.ts +218 -20
  43. package/dist/users/entities.d.ts +1 -0
  44. package/dist/users/payloads.d.ts +1 -0
  45. package/dist/users/response.d.ts +2 -0
  46. package/package.json +1 -1
@@ -38,6 +38,7 @@ export declare const CreateMarketOpen: z.ZodObject<{
38
38
  STOP_LOSS: "STOP_LOSS";
39
39
  TAKE_PROFIT: "TAKE_PROFIT";
40
40
  }>;
41
+ closePercent: z.ZodOptional<z.ZodNumber>;
41
42
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
42
43
  type: z.ZodLiteral<"notional">;
43
44
  data: z.ZodObject<{
@@ -46,8 +47,12 @@ export declare const CreateMarketOpen: z.ZodObject<{
46
47
  mark: "mark";
47
48
  }>;
48
49
  threshold: z.ZodNumber;
49
- }, z.core.$strip>;
50
- }, z.core.$strip>, z.ZodObject<{
50
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
51
+ cancel: "cancel";
52
+ keep: "keep";
53
+ }>>;
54
+ }, z.core.$strict>;
55
+ }, z.core.$strict>, z.ZodObject<{
51
56
  type: z.ZodLiteral<"upnl">;
52
57
  data: z.ZodObject<{
53
58
  priceSource: z.ZodEnum<{
@@ -55,8 +60,12 @@ export declare const CreateMarketOpen: z.ZodObject<{
55
60
  mark: "mark";
56
61
  }>;
57
62
  threshold: z.ZodNumber;
58
- }, z.core.$strip>;
59
- }, z.core.$strip>, z.ZodObject<{
63
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
64
+ cancel: "cancel";
65
+ keep: "keep";
66
+ }>>;
67
+ }, z.core.$strict>;
68
+ }, z.core.$strict>, z.ZodObject<{
60
69
  type: z.ZodLiteral<"upnl_bps">;
61
70
  data: z.ZodObject<{
62
71
  priceSource: z.ZodEnum<{
@@ -64,11 +73,12 @@ export declare const CreateMarketOpen: z.ZodObject<{
64
73
  mark: "mark";
65
74
  }>;
66
75
  threshold: z.ZodNumber;
67
- }, z.core.$strip>;
68
- }, z.core.$strip>], "type">;
76
+ }, z.core.$strict>;
77
+ }, z.core.$strict>], "type">;
69
78
  }, z.core.$strip>, z.ZodObject<{
70
79
  intent: z.ZodLiteral<"CLOSE">;
71
80
  type: z.ZodLiteral<"MARKET">;
81
+ closePercent: z.ZodOptional<z.ZodNumber>;
72
82
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
73
83
  type: z.ZodLiteral<"notional_trailing">;
74
84
  data: z.ZodObject<{
@@ -76,24 +86,32 @@ export declare const CreateMarketOpen: z.ZodObject<{
76
86
  mid: "mid";
77
87
  mark: "mark";
78
88
  }>;
79
- }, z.core.$strip>;
80
- }, z.core.$strip>, z.ZodObject<{
89
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
90
+ cancel: "cancel";
91
+ keep: "keep";
92
+ }>>;
93
+ }, z.core.$strict>;
94
+ }, z.core.$strict>, z.ZodObject<{
81
95
  type: z.ZodLiteral<"upnl_trailing">;
82
96
  data: z.ZodObject<{
83
97
  priceSource: z.ZodEnum<{
84
98
  mid: "mid";
85
99
  mark: "mark";
86
100
  }>;
87
- }, z.core.$strip>;
88
- }, z.core.$strip>, z.ZodObject<{
101
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
102
+ cancel: "cancel";
103
+ keep: "keep";
104
+ }>>;
105
+ }, z.core.$strict>;
106
+ }, z.core.$strict>, z.ZodObject<{
89
107
  type: z.ZodLiteral<"upnl_bps_trailing">;
90
108
  data: z.ZodObject<{
91
109
  priceSource: z.ZodEnum<{
92
110
  mid: "mid";
93
111
  mark: "mark";
94
112
  }>;
95
- }, z.core.$strip>;
96
- }, z.core.$strip>], "type">;
113
+ }, z.core.$strict>;
114
+ }, z.core.$strict>], "type">;
97
115
  trailing: z.ZodObject<{
98
116
  mode: z.ZodEnum<{
99
117
  RELATIVE_BPS: "RELATIVE_BPS";
@@ -192,6 +210,7 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
192
210
  STOP_LOSS: "STOP_LOSS";
193
211
  TAKE_PROFIT: "TAKE_PROFIT";
194
212
  }>;
213
+ closePercent: z.ZodOptional<z.ZodNumber>;
195
214
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
196
215
  type: z.ZodLiteral<"notional">;
197
216
  data: z.ZodObject<{
@@ -200,8 +219,12 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
200
219
  mark: "mark";
201
220
  }>;
202
221
  threshold: z.ZodNumber;
203
- }, z.core.$strip>;
204
- }, z.core.$strip>, z.ZodObject<{
222
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
223
+ cancel: "cancel";
224
+ keep: "keep";
225
+ }>>;
226
+ }, z.core.$strict>;
227
+ }, z.core.$strict>, z.ZodObject<{
205
228
  type: z.ZodLiteral<"upnl">;
206
229
  data: z.ZodObject<{
207
230
  priceSource: z.ZodEnum<{
@@ -209,8 +232,12 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
209
232
  mark: "mark";
210
233
  }>;
211
234
  threshold: z.ZodNumber;
212
- }, z.core.$strip>;
213
- }, z.core.$strip>, z.ZodObject<{
235
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
236
+ cancel: "cancel";
237
+ keep: "keep";
238
+ }>>;
239
+ }, z.core.$strict>;
240
+ }, z.core.$strict>, z.ZodObject<{
214
241
  type: z.ZodLiteral<"upnl_bps">;
215
242
  data: z.ZodObject<{
216
243
  priceSource: z.ZodEnum<{
@@ -218,11 +245,12 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
218
245
  mark: "mark";
219
246
  }>;
220
247
  threshold: z.ZodNumber;
221
- }, z.core.$strip>;
222
- }, z.core.$strip>], "type">;
248
+ }, z.core.$strict>;
249
+ }, z.core.$strict>], "type">;
223
250
  }, z.core.$strip>, z.ZodObject<{
224
251
  intent: z.ZodLiteral<"CLOSE">;
225
252
  type: z.ZodLiteral<"MARKET">;
253
+ closePercent: z.ZodOptional<z.ZodNumber>;
226
254
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
227
255
  type: z.ZodLiteral<"notional_trailing">;
228
256
  data: z.ZodObject<{
@@ -230,24 +258,32 @@ export declare const CreateTradeOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
230
258
  mid: "mid";
231
259
  mark: "mark";
232
260
  }>;
233
- }, z.core.$strip>;
234
- }, z.core.$strip>, z.ZodObject<{
261
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
262
+ cancel: "cancel";
263
+ keep: "keep";
264
+ }>>;
265
+ }, z.core.$strict>;
266
+ }, z.core.$strict>, z.ZodObject<{
235
267
  type: z.ZodLiteral<"upnl_trailing">;
236
268
  data: z.ZodObject<{
237
269
  priceSource: z.ZodEnum<{
238
270
  mid: "mid";
239
271
  mark: "mark";
240
272
  }>;
241
- }, z.core.$strip>;
242
- }, z.core.$strip>, z.ZodObject<{
273
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
274
+ cancel: "cancel";
275
+ keep: "keep";
276
+ }>>;
277
+ }, z.core.$strict>;
278
+ }, z.core.$strict>, z.ZodObject<{
243
279
  type: z.ZodLiteral<"upnl_bps_trailing">;
244
280
  data: z.ZodObject<{
245
281
  priceSource: z.ZodEnum<{
246
282
  mid: "mid";
247
283
  mark: "mark";
248
284
  }>;
249
- }, z.core.$strip>;
250
- }, z.core.$strip>], "type">;
285
+ }, z.core.$strict>;
286
+ }, z.core.$strict>], "type">;
251
287
  trailing: z.ZodObject<{
252
288
  mode: z.ZodEnum<{
253
289
  RELATIVE_BPS: "RELATIVE_BPS";