@pear-protocol/types 2.23.0 → 2.24.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 (42) hide show
  1. package/dist/copy/entities.d.ts +160 -10
  2. package/dist/copy/responses.d.ts +95 -11
  3. package/dist/execution/entities.d.ts +43 -43
  4. package/dist/execution/queries.d.ts +3 -2
  5. package/dist/execution/responses.d.ts +24 -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 +658 -408
  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/notification/entities.d.ts +53 -6
  15. package/dist/notification/responses.d.ts +24 -2
  16. package/dist/order/entities.d.ts +3 -3
  17. package/dist/position/entities.d.ts +5 -5
  18. package/dist/position/responses.d.ts +4 -4
  19. package/dist/realtime/frames.d.ts +38 -6
  20. package/dist/realtime/public-events.d.ts +19 -3
  21. package/dist/rewards/entities.d.ts +18 -0
  22. package/dist/rewards/index.d.ts +1 -0
  23. package/dist/rewards/queries.d.ts +7 -0
  24. package/dist/rewards/responses.d.ts +52 -0
  25. package/dist/schedule/entities.d.ts +155 -19
  26. package/dist/schedule/index.d.ts +1 -0
  27. package/dist/schedule/queries.d.ts +3 -2
  28. package/dist/schedule/responses.d.ts +142 -19
  29. package/dist/sync/payloads.d.ts +56 -88
  30. package/dist/tca/responses.d.ts +12 -12
  31. package/dist/trade/payloads.d.ts +60 -24
  32. package/dist/trade/responses.d.ts +60 -60
  33. package/dist/traders/performance.d.ts +4 -0
  34. package/dist/traders/public.d.ts +537 -285
  35. package/dist/trigger/common/index.d.ts +8 -2
  36. package/dist/trigger/entities/conditions.d.ts +40 -0
  37. package/dist/trigger/entities/index.d.ts +339 -32
  38. package/dist/trigger/payloads/conditions.d.ts +70 -38
  39. package/dist/trigger/payloads/index.d.ts +408 -216
  40. package/dist/trigger/queries.d.ts +2 -2
  41. package/dist/trigger/responses.d.ts +218 -20
  42. package/package.json +1 -1
@@ -102,8 +102,8 @@ export declare const CreateTriggerConditionCloseStatic: z.ZodDiscriminatedUnion<
102
102
  symbol_a: z.ZodString;
103
103
  symbol_b: z.ZodString;
104
104
  threshold: z.ZodNumber;
105
- }, z.core.$strip>;
106
- }, z.core.$strip>, z.ZodObject<{
105
+ }, z.core.$strict>;
106
+ }, z.core.$strict>, z.ZodObject<{
107
107
  type: z.ZodLiteral<"price">;
108
108
  data: z.ZodObject<{
109
109
  priceSource: z.ZodEnum<{
@@ -112,8 +112,8 @@ export declare const CreateTriggerConditionCloseStatic: z.ZodDiscriminatedUnion<
112
112
  }>;
113
113
  symbol: z.ZodString;
114
114
  threshold: z.ZodNumber;
115
- }, z.core.$strip>;
116
- }, z.core.$strip>, z.ZodObject<{
115
+ }, z.core.$strict>;
116
+ }, z.core.$strict>, z.ZodObject<{
117
117
  type: z.ZodLiteral<"weighted_ratio">;
118
118
  data: z.ZodObject<{
119
119
  priceSource: z.ZodEnum<{
@@ -129,8 +129,8 @@ export declare const CreateTriggerConditionCloseStatic: z.ZodDiscriminatedUnion<
129
129
  weight: z.ZodNumber;
130
130
  }, z.core.$strip>>;
131
131
  threshold: z.ZodNumber;
132
- }, z.core.$strip>;
133
- }, z.core.$strip>, z.ZodObject<{
132
+ }, z.core.$strict>;
133
+ }, z.core.$strict>, z.ZodObject<{
134
134
  type: z.ZodLiteral<"notional">;
135
135
  data: z.ZodObject<{
136
136
  priceSource: z.ZodEnum<{
@@ -138,8 +138,12 @@ export declare const CreateTriggerConditionCloseStatic: z.ZodDiscriminatedUnion<
138
138
  mark: "mark";
139
139
  }>;
140
140
  threshold: z.ZodNumber;
141
- }, z.core.$strip>;
142
- }, z.core.$strip>, z.ZodObject<{
141
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
142
+ cancel: "cancel";
143
+ keep: "keep";
144
+ }>>;
145
+ }, z.core.$strict>;
146
+ }, z.core.$strict>, z.ZodObject<{
143
147
  type: z.ZodLiteral<"upnl">;
144
148
  data: z.ZodObject<{
145
149
  priceSource: z.ZodEnum<{
@@ -147,8 +151,12 @@ export declare const CreateTriggerConditionCloseStatic: z.ZodDiscriminatedUnion<
147
151
  mark: "mark";
148
152
  }>;
149
153
  threshold: z.ZodNumber;
150
- }, z.core.$strip>;
151
- }, z.core.$strip>, z.ZodObject<{
154
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
155
+ cancel: "cancel";
156
+ keep: "keep";
157
+ }>>;
158
+ }, z.core.$strict>;
159
+ }, z.core.$strict>, z.ZodObject<{
152
160
  type: z.ZodLiteral<"upnl_bps">;
153
161
  data: z.ZodObject<{
154
162
  priceSource: z.ZodEnum<{
@@ -156,8 +164,8 @@ export declare const CreateTriggerConditionCloseStatic: z.ZodDiscriminatedUnion<
156
164
  mark: "mark";
157
165
  }>;
158
166
  threshold: z.ZodNumber;
159
- }, z.core.$strip>;
160
- }, z.core.$strip>, z.ZodObject<{
167
+ }, z.core.$strict>;
168
+ }, z.core.$strict>, z.ZodObject<{
161
169
  type: z.ZodLiteral<"prediction_market">;
162
170
  data: z.ZodObject<{
163
171
  source: z.ZodEnum<{
@@ -166,8 +174,8 @@ export declare const CreateTriggerConditionCloseStatic: z.ZodDiscriminatedUnion<
166
174
  }>;
167
175
  marketKey: z.ZodString;
168
176
  threshold: z.ZodNumber;
169
- }, z.core.$strip>;
170
- }, z.core.$strip>], "type">;
177
+ }, z.core.$strict>;
178
+ }, z.core.$strict>], "type">;
171
179
  export declare const CreateTriggerConditionCloseTrailing: z.ZodDiscriminatedUnion<[z.ZodObject<{
172
180
  type: z.ZodLiteral<"ratio_trailing">;
173
181
  data: z.ZodObject<{
@@ -177,8 +185,8 @@ export declare const CreateTriggerConditionCloseTrailing: z.ZodDiscriminatedUnio
177
185
  }>;
178
186
  symbol_a: z.ZodString;
179
187
  symbol_b: z.ZodString;
180
- }, z.core.$strip>;
181
- }, z.core.$strip>, z.ZodObject<{
188
+ }, z.core.$strict>;
189
+ }, z.core.$strict>, z.ZodObject<{
182
190
  type: z.ZodLiteral<"price_trailing">;
183
191
  data: z.ZodObject<{
184
192
  priceSource: z.ZodEnum<{
@@ -186,8 +194,8 @@ export declare const CreateTriggerConditionCloseTrailing: z.ZodDiscriminatedUnio
186
194
  mark: "mark";
187
195
  }>;
188
196
  symbol: z.ZodString;
189
- }, z.core.$strip>;
190
- }, z.core.$strip>, z.ZodObject<{
197
+ }, z.core.$strict>;
198
+ }, z.core.$strict>, z.ZodObject<{
191
199
  type: z.ZodLiteral<"weighted_ratio_trailing">;
192
200
  data: z.ZodObject<{
193
201
  priceSource: z.ZodEnum<{
@@ -202,32 +210,40 @@ export declare const CreateTriggerConditionCloseTrailing: z.ZodDiscriminatedUnio
202
210
  }>;
203
211
  weight: z.ZodNumber;
204
212
  }, z.core.$strip>>;
205
- }, z.core.$strip>;
206
- }, z.core.$strip>, z.ZodObject<{
213
+ }, z.core.$strict>;
214
+ }, z.core.$strict>, z.ZodObject<{
207
215
  type: z.ZodLiteral<"notional_trailing">;
208
216
  data: z.ZodObject<{
209
217
  priceSource: z.ZodEnum<{
210
218
  mid: "mid";
211
219
  mark: "mark";
212
220
  }>;
213
- }, z.core.$strip>;
214
- }, z.core.$strip>, z.ZodObject<{
221
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
222
+ cancel: "cancel";
223
+ keep: "keep";
224
+ }>>;
225
+ }, z.core.$strict>;
226
+ }, z.core.$strict>, z.ZodObject<{
215
227
  type: z.ZodLiteral<"upnl_trailing">;
216
228
  data: z.ZodObject<{
217
229
  priceSource: z.ZodEnum<{
218
230
  mid: "mid";
219
231
  mark: "mark";
220
232
  }>;
221
- }, z.core.$strip>;
222
- }, z.core.$strip>, z.ZodObject<{
233
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
234
+ cancel: "cancel";
235
+ keep: "keep";
236
+ }>>;
237
+ }, z.core.$strict>;
238
+ }, z.core.$strict>, z.ZodObject<{
223
239
  type: z.ZodLiteral<"upnl_bps_trailing">;
224
240
  data: z.ZodObject<{
225
241
  priceSource: z.ZodEnum<{
226
242
  mid: "mid";
227
243
  mark: "mark";
228
244
  }>;
229
- }, z.core.$strip>;
230
- }, z.core.$strip>], "type">;
245
+ }, z.core.$strict>;
246
+ }, z.core.$strict>], "type">;
231
247
  export declare const CreateTriggerConditionAttachStatic: z.ZodDiscriminatedUnion<[z.ZodObject<{
232
248
  type: z.ZodLiteral<"notional">;
233
249
  data: z.ZodObject<{
@@ -236,8 +252,12 @@ export declare const CreateTriggerConditionAttachStatic: z.ZodDiscriminatedUnion
236
252
  mark: "mark";
237
253
  }>;
238
254
  threshold: z.ZodNumber;
239
- }, z.core.$strip>;
240
- }, z.core.$strip>, z.ZodObject<{
255
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
256
+ cancel: "cancel";
257
+ keep: "keep";
258
+ }>>;
259
+ }, z.core.$strict>;
260
+ }, z.core.$strict>, z.ZodObject<{
241
261
  type: z.ZodLiteral<"upnl">;
242
262
  data: z.ZodObject<{
243
263
  priceSource: z.ZodEnum<{
@@ -245,8 +265,12 @@ export declare const CreateTriggerConditionAttachStatic: z.ZodDiscriminatedUnion
245
265
  mark: "mark";
246
266
  }>;
247
267
  threshold: z.ZodNumber;
248
- }, z.core.$strip>;
249
- }, z.core.$strip>, z.ZodObject<{
268
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
269
+ cancel: "cancel";
270
+ keep: "keep";
271
+ }>>;
272
+ }, z.core.$strict>;
273
+ }, z.core.$strict>, z.ZodObject<{
250
274
  type: z.ZodLiteral<"upnl_bps">;
251
275
  data: z.ZodObject<{
252
276
  priceSource: z.ZodEnum<{
@@ -254,8 +278,8 @@ export declare const CreateTriggerConditionAttachStatic: z.ZodDiscriminatedUnion
254
278
  mark: "mark";
255
279
  }>;
256
280
  threshold: z.ZodNumber;
257
- }, z.core.$strip>;
258
- }, z.core.$strip>], "type">;
281
+ }, z.core.$strict>;
282
+ }, z.core.$strict>], "type">;
259
283
  export declare const CreateTriggerConditionAttachTrailing: z.ZodDiscriminatedUnion<[z.ZodObject<{
260
284
  type: z.ZodLiteral<"notional_trailing">;
261
285
  data: z.ZodObject<{
@@ -263,24 +287,32 @@ export declare const CreateTriggerConditionAttachTrailing: z.ZodDiscriminatedUni
263
287
  mid: "mid";
264
288
  mark: "mark";
265
289
  }>;
266
- }, z.core.$strip>;
267
- }, z.core.$strip>, z.ZodObject<{
290
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
291
+ cancel: "cancel";
292
+ keep: "keep";
293
+ }>>;
294
+ }, z.core.$strict>;
295
+ }, z.core.$strict>, z.ZodObject<{
268
296
  type: z.ZodLiteral<"upnl_trailing">;
269
297
  data: z.ZodObject<{
270
298
  priceSource: z.ZodEnum<{
271
299
  mid: "mid";
272
300
  mark: "mark";
273
301
  }>;
274
- }, z.core.$strip>;
275
- }, z.core.$strip>, z.ZodObject<{
302
+ onPositionResize: z.ZodDefault<z.ZodEnum<{
303
+ cancel: "cancel";
304
+ keep: "keep";
305
+ }>>;
306
+ }, z.core.$strict>;
307
+ }, z.core.$strict>, z.ZodObject<{
276
308
  type: z.ZodLiteral<"upnl_bps_trailing">;
277
309
  data: z.ZodObject<{
278
310
  priceSource: z.ZodEnum<{
279
311
  mid: "mid";
280
312
  mark: "mark";
281
313
  }>;
282
- }, z.core.$strip>;
283
- }, z.core.$strip>], "type">;
314
+ }, z.core.$strict>;
315
+ }, z.core.$strict>], "type">;
284
316
  export type CreateTriggerConditionOpen = z.output<typeof CreateTriggerConditionOpen>;
285
317
  export type CreateTriggerConditionRatioOpen = Extract<CreateTriggerConditionOpen, {
286
318
  type: 'ratio';