@pear-protocol/types 0.0.18 → 0.0.20

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.
@@ -71,7 +71,7 @@ export declare const TriggerListResponse: z.ZodObject<{
71
71
  intent: z.ZodLiteral<"OPEN">;
72
72
  type: z.ZodLiteral<"MARKET">;
73
73
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
74
- type: z.ZodLiteral<"ratio_v1">;
74
+ type: z.ZodLiteral<"ratio">;
75
75
  data: z.ZodObject<{
76
76
  priceSource: z.ZodEnum<{
77
77
  mid: "mid";
@@ -79,45 +79,28 @@ export declare const TriggerListResponse: z.ZodObject<{
79
79
  }>;
80
80
  symbol_a: z.ZodString;
81
81
  symbol_b: z.ZodString;
82
- direction: z.ZodEnum<{
83
- ABOVE: "ABOVE";
84
- BELOW: "BELOW";
82
+ track: z.ZodEnum<{
83
+ PEAK: "PEAK";
84
+ TROUGH: "TROUGH";
85
85
  }>;
86
86
  threshold: z.ZodNumber;
87
87
  }, z.core.$strip>;
88
88
  }, z.core.$strip>, z.ZodObject<{
89
- type: z.ZodLiteral<"price_v1">;
89
+ type: z.ZodLiteral<"price">;
90
90
  data: z.ZodObject<{
91
91
  priceSource: z.ZodEnum<{
92
92
  mid: "mid";
93
93
  mark: "mark";
94
94
  }>;
95
95
  symbol: z.ZodString;
96
- direction: z.ZodEnum<{
97
- ABOVE: "ABOVE";
98
- BELOW: "BELOW";
96
+ track: z.ZodEnum<{
97
+ PEAK: "PEAK";
98
+ TROUGH: "TROUGH";
99
99
  }>;
100
100
  threshold: z.ZodNumber;
101
101
  }, z.core.$strip>;
102
102
  }, z.core.$strip>, z.ZodObject<{
103
- type: z.ZodLiteral<"index_v1">;
104
- data: z.ZodObject<{
105
- priceSource: z.ZodEnum<{
106
- mid: "mid";
107
- mark: "mark";
108
- }>;
109
- basket: z.ZodArray<z.ZodObject<{
110
- symbol: z.ZodString;
111
- weight: z.ZodNumber;
112
- }, z.core.$strip>>;
113
- direction: z.ZodEnum<{
114
- ABOVE: "ABOVE";
115
- BELOW: "BELOW";
116
- }>;
117
- threshold: z.ZodNumber;
118
- }, z.core.$strip>;
119
- }, z.core.$strip>, z.ZodObject<{
120
- type: z.ZodLiteral<"weighted_ratio_v1">;
103
+ type: z.ZodLiteral<"weighted_ratio">;
121
104
  data: z.ZodObject<{
122
105
  priceSource: z.ZodEnum<{
123
106
  mid: "mid";
@@ -131,9 +114,9 @@ export declare const TriggerListResponse: z.ZodObject<{
131
114
  }>;
132
115
  weight: z.ZodNumber;
133
116
  }, z.core.$strip>>;
134
- direction: z.ZodEnum<{
135
- ABOVE: "ABOVE";
136
- BELOW: "BELOW";
117
+ track: z.ZodEnum<{
118
+ PEAK: "PEAK";
119
+ TROUGH: "TROUGH";
137
120
  }>;
138
121
  threshold: z.ZodNumber;
139
122
  }, z.core.$strip>;
@@ -233,7 +216,7 @@ export declare const TriggerListResponse: z.ZodObject<{
233
216
  intent: z.ZodLiteral<"ADJUST">;
234
217
  type: z.ZodLiteral<"MARKET">;
235
218
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
236
- type: z.ZodLiteral<"ratio_v1">;
219
+ type: z.ZodLiteral<"ratio">;
237
220
  data: z.ZodObject<{
238
221
  priceSource: z.ZodEnum<{
239
222
  mid: "mid";
@@ -241,45 +224,28 @@ export declare const TriggerListResponse: z.ZodObject<{
241
224
  }>;
242
225
  symbol_a: z.ZodString;
243
226
  symbol_b: z.ZodString;
244
- direction: z.ZodEnum<{
245
- ABOVE: "ABOVE";
246
- BELOW: "BELOW";
227
+ track: z.ZodEnum<{
228
+ PEAK: "PEAK";
229
+ TROUGH: "TROUGH";
247
230
  }>;
248
231
  threshold: z.ZodNumber;
249
232
  }, z.core.$strip>;
250
233
  }, z.core.$strip>, z.ZodObject<{
251
- type: z.ZodLiteral<"price_v1">;
234
+ type: z.ZodLiteral<"price">;
252
235
  data: z.ZodObject<{
253
236
  priceSource: z.ZodEnum<{
254
237
  mid: "mid";
255
238
  mark: "mark";
256
239
  }>;
257
240
  symbol: z.ZodString;
258
- direction: z.ZodEnum<{
259
- ABOVE: "ABOVE";
260
- BELOW: "BELOW";
261
- }>;
262
- threshold: z.ZodNumber;
263
- }, z.core.$strip>;
264
- }, z.core.$strip>, z.ZodObject<{
265
- type: z.ZodLiteral<"index_v1">;
266
- data: z.ZodObject<{
267
- priceSource: z.ZodEnum<{
268
- mid: "mid";
269
- mark: "mark";
270
- }>;
271
- basket: z.ZodArray<z.ZodObject<{
272
- symbol: z.ZodString;
273
- weight: z.ZodNumber;
274
- }, z.core.$strip>>;
275
- direction: z.ZodEnum<{
276
- ABOVE: "ABOVE";
277
- BELOW: "BELOW";
241
+ track: z.ZodEnum<{
242
+ PEAK: "PEAK";
243
+ TROUGH: "TROUGH";
278
244
  }>;
279
245
  threshold: z.ZodNumber;
280
246
  }, z.core.$strip>;
281
247
  }, z.core.$strip>, z.ZodObject<{
282
- type: z.ZodLiteral<"weighted_ratio_v1">;
248
+ type: z.ZodLiteral<"weighted_ratio">;
283
249
  data: z.ZodObject<{
284
250
  priceSource: z.ZodEnum<{
285
251
  mid: "mid";
@@ -293,50 +259,50 @@ export declare const TriggerListResponse: z.ZodObject<{
293
259
  }>;
294
260
  weight: z.ZodNumber;
295
261
  }, z.core.$strip>>;
296
- direction: z.ZodEnum<{
297
- ABOVE: "ABOVE";
298
- BELOW: "BELOW";
262
+ track: z.ZodEnum<{
263
+ PEAK: "PEAK";
264
+ TROUGH: "TROUGH";
299
265
  }>;
300
266
  threshold: z.ZodNumber;
301
267
  }, z.core.$strip>;
302
268
  }, z.core.$strip>, z.ZodObject<{
303
- type: z.ZodLiteral<"position_value_v1">;
269
+ type: z.ZodLiteral<"notional">;
304
270
  data: z.ZodObject<{
305
271
  priceSource: z.ZodEnum<{
306
272
  mid: "mid";
307
273
  mark: "mark";
308
274
  }>;
309
- direction: z.ZodEnum<{
310
- ABOVE: "ABOVE";
311
- BELOW: "BELOW";
275
+ track: z.ZodEnum<{
276
+ PEAK: "PEAK";
277
+ TROUGH: "TROUGH";
312
278
  }>;
313
279
  threshold: z.ZodNumber;
314
280
  }, z.core.$strip>;
315
281
  }, z.core.$strip>, z.ZodObject<{
316
- type: z.ZodLiteral<"position_upnl_value_v1">;
282
+ type: z.ZodLiteral<"upnl">;
317
283
  data: z.ZodObject<{
318
284
  priceSource: z.ZodEnum<{
319
285
  mid: "mid";
320
286
  mark: "mark";
321
287
  }>;
322
- direction: z.ZodEnum<{
323
- ABOVE: "ABOVE";
324
- BELOW: "BELOW";
288
+ track: z.ZodEnum<{
289
+ PEAK: "PEAK";
290
+ TROUGH: "TROUGH";
325
291
  }>;
326
292
  threshold: z.ZodNumber;
327
293
  }, z.core.$strip>;
328
294
  }, z.core.$strip>, z.ZodObject<{
329
- type: z.ZodLiteral<"position_upnl_percentage_v1">;
295
+ type: z.ZodLiteral<"upnl_bps">;
330
296
  data: z.ZodObject<{
331
297
  priceSource: z.ZodEnum<{
332
298
  mid: "mid";
333
299
  mark: "mark";
334
300
  }>;
335
- direction: z.ZodEnum<{
336
- ABOVE: "ABOVE";
337
- BELOW: "BELOW";
301
+ track: z.ZodEnum<{
302
+ PEAK: "PEAK";
303
+ TROUGH: "TROUGH";
338
304
  }>;
339
- threshold_bps: z.ZodNumber;
305
+ threshold: z.ZodNumber;
340
306
  }, z.core.$strip>;
341
307
  }, z.core.$strip>], "type">;
342
308
  context: z.ZodObject<{
@@ -372,8 +338,15 @@ export declare const TriggerListResponse: z.ZodObject<{
372
338
  }, z.core.$strip>>;
373
339
  }, z.core.$strip>;
374
340
  trailing: z.ZodOptional<z.ZodObject<{
341
+ mode: z.ZodEnum<{
342
+ RELATIVE_BPS: "RELATIVE_BPS";
343
+ ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
344
+ }>;
375
345
  deltaValue: z.ZodNumber;
376
- activationValue: z.ZodNumber;
346
+ activationValue: z.ZodOptional<z.ZodNumber>;
347
+ bestMetricSeen: z.ZodOptional<z.ZodNumber>;
348
+ currentStopValue: z.ZodOptional<z.ZodNumber>;
349
+ stopBreachedAt: z.ZodOptional<z.ZodNumber>;
377
350
  }, z.core.$strip>>;
378
351
  }, z.core.$strip>, z.ZodObject<{
379
352
  id: z.ZodUUID;
@@ -444,7 +417,7 @@ export declare const TriggerListResponse: z.ZodObject<{
444
417
  intent: z.ZodLiteral<"CLOSE">;
445
418
  type: z.ZodLiteral<"MARKET">;
446
419
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
447
- type: z.ZodLiteral<"ratio_v1">;
420
+ type: z.ZodLiteral<"ratio">;
448
421
  data: z.ZodObject<{
449
422
  priceSource: z.ZodEnum<{
450
423
  mid: "mid";
@@ -452,28 +425,28 @@ export declare const TriggerListResponse: z.ZodObject<{
452
425
  }>;
453
426
  symbol_a: z.ZodString;
454
427
  symbol_b: z.ZodString;
455
- direction: z.ZodEnum<{
456
- ABOVE: "ABOVE";
457
- BELOW: "BELOW";
428
+ track: z.ZodEnum<{
429
+ PEAK: "PEAK";
430
+ TROUGH: "TROUGH";
458
431
  }>;
459
432
  threshold: z.ZodNumber;
460
433
  }, z.core.$strip>;
461
434
  }, z.core.$strip>, z.ZodObject<{
462
- type: z.ZodLiteral<"price_v1">;
435
+ type: z.ZodLiteral<"price">;
463
436
  data: z.ZodObject<{
464
437
  priceSource: z.ZodEnum<{
465
438
  mid: "mid";
466
439
  mark: "mark";
467
440
  }>;
468
441
  symbol: z.ZodString;
469
- direction: z.ZodEnum<{
470
- ABOVE: "ABOVE";
471
- BELOW: "BELOW";
442
+ track: z.ZodEnum<{
443
+ PEAK: "PEAK";
444
+ TROUGH: "TROUGH";
472
445
  }>;
473
446
  threshold: z.ZodNumber;
474
447
  }, z.core.$strip>;
475
448
  }, z.core.$strip>, z.ZodObject<{
476
- type: z.ZodLiteral<"index_v1">;
449
+ type: z.ZodLiteral<"weighted_ratio">;
477
450
  data: z.ZodObject<{
478
451
  priceSource: z.ZodEnum<{
479
452
  mid: "mid";
@@ -481,16 +454,78 @@ export declare const TriggerListResponse: z.ZodObject<{
481
454
  }>;
482
455
  basket: z.ZodArray<z.ZodObject<{
483
456
  symbol: z.ZodString;
457
+ side: z.ZodEnum<{
458
+ BUY: "BUY";
459
+ SELL: "SELL";
460
+ }>;
484
461
  weight: z.ZodNumber;
485
462
  }, z.core.$strip>>;
486
- direction: z.ZodEnum<{
487
- ABOVE: "ABOVE";
488
- BELOW: "BELOW";
463
+ track: z.ZodEnum<{
464
+ PEAK: "PEAK";
465
+ TROUGH: "TROUGH";
466
+ }>;
467
+ threshold: z.ZodNumber;
468
+ }, z.core.$strip>;
469
+ }, z.core.$strip>, z.ZodObject<{
470
+ type: z.ZodLiteral<"notional">;
471
+ data: z.ZodObject<{
472
+ priceSource: z.ZodEnum<{
473
+ mid: "mid";
474
+ mark: "mark";
475
+ }>;
476
+ track: z.ZodEnum<{
477
+ PEAK: "PEAK";
478
+ TROUGH: "TROUGH";
479
+ }>;
480
+ threshold: z.ZodNumber;
481
+ }, z.core.$strip>;
482
+ }, z.core.$strip>, z.ZodObject<{
483
+ type: z.ZodLiteral<"upnl">;
484
+ data: z.ZodObject<{
485
+ priceSource: z.ZodEnum<{
486
+ mid: "mid";
487
+ mark: "mark";
488
+ }>;
489
+ track: z.ZodEnum<{
490
+ PEAK: "PEAK";
491
+ TROUGH: "TROUGH";
489
492
  }>;
490
493
  threshold: z.ZodNumber;
491
494
  }, z.core.$strip>;
492
495
  }, z.core.$strip>, z.ZodObject<{
493
- type: z.ZodLiteral<"weighted_ratio_v1">;
496
+ type: z.ZodLiteral<"upnl_bps">;
497
+ data: z.ZodObject<{
498
+ priceSource: z.ZodEnum<{
499
+ mid: "mid";
500
+ mark: "mark";
501
+ }>;
502
+ track: z.ZodEnum<{
503
+ PEAK: "PEAK";
504
+ TROUGH: "TROUGH";
505
+ }>;
506
+ threshold: z.ZodNumber;
507
+ }, z.core.$strip>;
508
+ }, z.core.$strip>, z.ZodObject<{
509
+ type: z.ZodLiteral<"ratio_trailing">;
510
+ data: z.ZodObject<{
511
+ priceSource: z.ZodEnum<{
512
+ mid: "mid";
513
+ mark: "mark";
514
+ }>;
515
+ symbol_a: z.ZodString;
516
+ symbol_b: z.ZodString;
517
+ }, z.core.$strip>;
518
+ }, z.core.$strip>, z.ZodObject<{
519
+ type: z.ZodLiteral<"price_trailing">;
520
+ data: z.ZodObject<{
521
+ priceSource: z.ZodEnum<{
522
+ mid: "mid";
523
+ mark: "mark";
524
+ }>;
525
+ symbol: z.ZodString;
526
+ }, z.core.$strip>;
527
+ }, z.core.$strip>, z.ZodObject<{
528
+ type: z.ZodLiteral<"weighted_ratio_trailing">;
494
529
  data: z.ZodObject<{
495
530
  priceSource: z.ZodEnum<{
496
531
  mid: "mid";
@@ -504,50 +539,30 @@ export declare const TriggerListResponse: z.ZodObject<{
504
539
  }>;
505
540
  weight: z.ZodNumber;
506
541
  }, z.core.$strip>>;
507
- direction: z.ZodEnum<{
508
- ABOVE: "ABOVE";
509
- BELOW: "BELOW";
510
- }>;
511
- threshold: z.ZodNumber;
512
542
  }, z.core.$strip>;
513
543
  }, z.core.$strip>, z.ZodObject<{
514
- type: z.ZodLiteral<"position_value_v1">;
544
+ type: z.ZodLiteral<"notional_trailing">;
515
545
  data: z.ZodObject<{
516
546
  priceSource: z.ZodEnum<{
517
547
  mid: "mid";
518
548
  mark: "mark";
519
549
  }>;
520
- direction: z.ZodEnum<{
521
- ABOVE: "ABOVE";
522
- BELOW: "BELOW";
523
- }>;
524
- threshold: z.ZodNumber;
525
550
  }, z.core.$strip>;
526
551
  }, z.core.$strip>, z.ZodObject<{
527
- type: z.ZodLiteral<"position_upnl_value_v1">;
552
+ type: z.ZodLiteral<"upnl_trailing">;
528
553
  data: z.ZodObject<{
529
554
  priceSource: z.ZodEnum<{
530
555
  mid: "mid";
531
556
  mark: "mark";
532
557
  }>;
533
- direction: z.ZodEnum<{
534
- ABOVE: "ABOVE";
535
- BELOW: "BELOW";
536
- }>;
537
- threshold: z.ZodNumber;
538
558
  }, z.core.$strip>;
539
559
  }, z.core.$strip>, z.ZodObject<{
540
- type: z.ZodLiteral<"position_upnl_percentage_v1">;
560
+ type: z.ZodLiteral<"upnl_bps_trailing">;
541
561
  data: z.ZodObject<{
542
562
  priceSource: z.ZodEnum<{
543
563
  mid: "mid";
544
564
  mark: "mark";
545
565
  }>;
546
- direction: z.ZodEnum<{
547
- ABOVE: "ABOVE";
548
- BELOW: "BELOW";
549
- }>;
550
- threshold_bps: z.ZodNumber;
551
566
  }, z.core.$strip>;
552
567
  }, z.core.$strip>], "type">;
553
568
  context: z.ZodObject<{
@@ -558,8 +573,15 @@ export declare const TriggerListResponse: z.ZodObject<{
558
573
  }, z.core.$strip>;
559
574
  }, z.core.$strip>;
560
575
  trailing: z.ZodOptional<z.ZodObject<{
576
+ mode: z.ZodEnum<{
577
+ RELATIVE_BPS: "RELATIVE_BPS";
578
+ ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
579
+ }>;
561
580
  deltaValue: z.ZodNumber;
562
- activationValue: z.ZodNumber;
581
+ activationValue: z.ZodOptional<z.ZodNumber>;
582
+ bestMetricSeen: z.ZodOptional<z.ZodNumber>;
583
+ currentStopValue: z.ZodOptional<z.ZodNumber>;
584
+ stopBreachedAt: z.ZodOptional<z.ZodNumber>;
563
585
  }, z.core.$strip>>;
564
586
  }, z.core.$strip>], "intent">], "type">>;
565
587
  }, z.core.$strip>;
@@ -634,7 +656,7 @@ export declare const CreateTriggerResponse: z.ZodObject<{
634
656
  intent: z.ZodLiteral<"OPEN">;
635
657
  type: z.ZodLiteral<"MARKET">;
636
658
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
637
- type: z.ZodLiteral<"ratio_v1">;
659
+ type: z.ZodLiteral<"ratio">;
638
660
  data: z.ZodObject<{
639
661
  priceSource: z.ZodEnum<{
640
662
  mid: "mid";
@@ -642,45 +664,28 @@ export declare const CreateTriggerResponse: z.ZodObject<{
642
664
  }>;
643
665
  symbol_a: z.ZodString;
644
666
  symbol_b: z.ZodString;
645
- direction: z.ZodEnum<{
646
- ABOVE: "ABOVE";
647
- BELOW: "BELOW";
667
+ track: z.ZodEnum<{
668
+ PEAK: "PEAK";
669
+ TROUGH: "TROUGH";
648
670
  }>;
649
671
  threshold: z.ZodNumber;
650
672
  }, z.core.$strip>;
651
673
  }, z.core.$strip>, z.ZodObject<{
652
- type: z.ZodLiteral<"price_v1">;
674
+ type: z.ZodLiteral<"price">;
653
675
  data: z.ZodObject<{
654
676
  priceSource: z.ZodEnum<{
655
677
  mid: "mid";
656
678
  mark: "mark";
657
679
  }>;
658
680
  symbol: z.ZodString;
659
- direction: z.ZodEnum<{
660
- ABOVE: "ABOVE";
661
- BELOW: "BELOW";
681
+ track: z.ZodEnum<{
682
+ PEAK: "PEAK";
683
+ TROUGH: "TROUGH";
662
684
  }>;
663
685
  threshold: z.ZodNumber;
664
686
  }, z.core.$strip>;
665
687
  }, z.core.$strip>, z.ZodObject<{
666
- type: z.ZodLiteral<"index_v1">;
667
- data: z.ZodObject<{
668
- priceSource: z.ZodEnum<{
669
- mid: "mid";
670
- mark: "mark";
671
- }>;
672
- basket: z.ZodArray<z.ZodObject<{
673
- symbol: z.ZodString;
674
- weight: z.ZodNumber;
675
- }, z.core.$strip>>;
676
- direction: z.ZodEnum<{
677
- ABOVE: "ABOVE";
678
- BELOW: "BELOW";
679
- }>;
680
- threshold: z.ZodNumber;
681
- }, z.core.$strip>;
682
- }, z.core.$strip>, z.ZodObject<{
683
- type: z.ZodLiteral<"weighted_ratio_v1">;
688
+ type: z.ZodLiteral<"weighted_ratio">;
684
689
  data: z.ZodObject<{
685
690
  priceSource: z.ZodEnum<{
686
691
  mid: "mid";
@@ -694,9 +699,9 @@ export declare const CreateTriggerResponse: z.ZodObject<{
694
699
  }>;
695
700
  weight: z.ZodNumber;
696
701
  }, z.core.$strip>>;
697
- direction: z.ZodEnum<{
698
- ABOVE: "ABOVE";
699
- BELOW: "BELOW";
702
+ track: z.ZodEnum<{
703
+ PEAK: "PEAK";
704
+ TROUGH: "TROUGH";
700
705
  }>;
701
706
  threshold: z.ZodNumber;
702
707
  }, z.core.$strip>;
@@ -796,7 +801,7 @@ export declare const CreateTriggerResponse: z.ZodObject<{
796
801
  intent: z.ZodLiteral<"ADJUST">;
797
802
  type: z.ZodLiteral<"MARKET">;
798
803
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
799
- type: z.ZodLiteral<"ratio_v1">;
804
+ type: z.ZodLiteral<"ratio">;
800
805
  data: z.ZodObject<{
801
806
  priceSource: z.ZodEnum<{
802
807
  mid: "mid";
@@ -804,45 +809,28 @@ export declare const CreateTriggerResponse: z.ZodObject<{
804
809
  }>;
805
810
  symbol_a: z.ZodString;
806
811
  symbol_b: z.ZodString;
807
- direction: z.ZodEnum<{
808
- ABOVE: "ABOVE";
809
- BELOW: "BELOW";
812
+ track: z.ZodEnum<{
813
+ PEAK: "PEAK";
814
+ TROUGH: "TROUGH";
810
815
  }>;
811
816
  threshold: z.ZodNumber;
812
817
  }, z.core.$strip>;
813
818
  }, z.core.$strip>, z.ZodObject<{
814
- type: z.ZodLiteral<"price_v1">;
819
+ type: z.ZodLiteral<"price">;
815
820
  data: z.ZodObject<{
816
821
  priceSource: z.ZodEnum<{
817
822
  mid: "mid";
818
823
  mark: "mark";
819
824
  }>;
820
825
  symbol: z.ZodString;
821
- direction: z.ZodEnum<{
822
- ABOVE: "ABOVE";
823
- BELOW: "BELOW";
824
- }>;
825
- threshold: z.ZodNumber;
826
- }, z.core.$strip>;
827
- }, z.core.$strip>, z.ZodObject<{
828
- type: z.ZodLiteral<"index_v1">;
829
- data: z.ZodObject<{
830
- priceSource: z.ZodEnum<{
831
- mid: "mid";
832
- mark: "mark";
833
- }>;
834
- basket: z.ZodArray<z.ZodObject<{
835
- symbol: z.ZodString;
836
- weight: z.ZodNumber;
837
- }, z.core.$strip>>;
838
- direction: z.ZodEnum<{
839
- ABOVE: "ABOVE";
840
- BELOW: "BELOW";
826
+ track: z.ZodEnum<{
827
+ PEAK: "PEAK";
828
+ TROUGH: "TROUGH";
841
829
  }>;
842
830
  threshold: z.ZodNumber;
843
831
  }, z.core.$strip>;
844
832
  }, z.core.$strip>, z.ZodObject<{
845
- type: z.ZodLiteral<"weighted_ratio_v1">;
833
+ type: z.ZodLiteral<"weighted_ratio">;
846
834
  data: z.ZodObject<{
847
835
  priceSource: z.ZodEnum<{
848
836
  mid: "mid";
@@ -856,50 +844,50 @@ export declare const CreateTriggerResponse: z.ZodObject<{
856
844
  }>;
857
845
  weight: z.ZodNumber;
858
846
  }, z.core.$strip>>;
859
- direction: z.ZodEnum<{
860
- ABOVE: "ABOVE";
861
- BELOW: "BELOW";
847
+ track: z.ZodEnum<{
848
+ PEAK: "PEAK";
849
+ TROUGH: "TROUGH";
862
850
  }>;
863
851
  threshold: z.ZodNumber;
864
852
  }, z.core.$strip>;
865
853
  }, z.core.$strip>, z.ZodObject<{
866
- type: z.ZodLiteral<"position_value_v1">;
854
+ type: z.ZodLiteral<"notional">;
867
855
  data: z.ZodObject<{
868
856
  priceSource: z.ZodEnum<{
869
857
  mid: "mid";
870
858
  mark: "mark";
871
859
  }>;
872
- direction: z.ZodEnum<{
873
- ABOVE: "ABOVE";
874
- BELOW: "BELOW";
860
+ track: z.ZodEnum<{
861
+ PEAK: "PEAK";
862
+ TROUGH: "TROUGH";
875
863
  }>;
876
864
  threshold: z.ZodNumber;
877
865
  }, z.core.$strip>;
878
866
  }, z.core.$strip>, z.ZodObject<{
879
- type: z.ZodLiteral<"position_upnl_value_v1">;
867
+ type: z.ZodLiteral<"upnl">;
880
868
  data: z.ZodObject<{
881
869
  priceSource: z.ZodEnum<{
882
870
  mid: "mid";
883
871
  mark: "mark";
884
872
  }>;
885
- direction: z.ZodEnum<{
886
- ABOVE: "ABOVE";
887
- BELOW: "BELOW";
873
+ track: z.ZodEnum<{
874
+ PEAK: "PEAK";
875
+ TROUGH: "TROUGH";
888
876
  }>;
889
877
  threshold: z.ZodNumber;
890
878
  }, z.core.$strip>;
891
879
  }, z.core.$strip>, z.ZodObject<{
892
- type: z.ZodLiteral<"position_upnl_percentage_v1">;
880
+ type: z.ZodLiteral<"upnl_bps">;
893
881
  data: z.ZodObject<{
894
882
  priceSource: z.ZodEnum<{
895
883
  mid: "mid";
896
884
  mark: "mark";
897
885
  }>;
898
- direction: z.ZodEnum<{
899
- ABOVE: "ABOVE";
900
- BELOW: "BELOW";
886
+ track: z.ZodEnum<{
887
+ PEAK: "PEAK";
888
+ TROUGH: "TROUGH";
901
889
  }>;
902
- threshold_bps: z.ZodNumber;
890
+ threshold: z.ZodNumber;
903
891
  }, z.core.$strip>;
904
892
  }, z.core.$strip>], "type">;
905
893
  context: z.ZodObject<{
@@ -935,8 +923,15 @@ export declare const CreateTriggerResponse: z.ZodObject<{
935
923
  }, z.core.$strip>>;
936
924
  }, z.core.$strip>;
937
925
  trailing: z.ZodOptional<z.ZodObject<{
926
+ mode: z.ZodEnum<{
927
+ RELATIVE_BPS: "RELATIVE_BPS";
928
+ ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
929
+ }>;
938
930
  deltaValue: z.ZodNumber;
939
- activationValue: z.ZodNumber;
931
+ activationValue: z.ZodOptional<z.ZodNumber>;
932
+ bestMetricSeen: z.ZodOptional<z.ZodNumber>;
933
+ currentStopValue: z.ZodOptional<z.ZodNumber>;
934
+ stopBreachedAt: z.ZodOptional<z.ZodNumber>;
940
935
  }, z.core.$strip>>;
941
936
  }, z.core.$strip>, z.ZodObject<{
942
937
  id: z.ZodUUID;
@@ -1007,7 +1002,7 @@ export declare const CreateTriggerResponse: z.ZodObject<{
1007
1002
  intent: z.ZodLiteral<"CLOSE">;
1008
1003
  type: z.ZodLiteral<"MARKET">;
1009
1004
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1010
- type: z.ZodLiteral<"ratio_v1">;
1005
+ type: z.ZodLiteral<"ratio">;
1011
1006
  data: z.ZodObject<{
1012
1007
  priceSource: z.ZodEnum<{
1013
1008
  mid: "mid";
@@ -1015,28 +1010,28 @@ export declare const CreateTriggerResponse: z.ZodObject<{
1015
1010
  }>;
1016
1011
  symbol_a: z.ZodString;
1017
1012
  symbol_b: z.ZodString;
1018
- direction: z.ZodEnum<{
1019
- ABOVE: "ABOVE";
1020
- BELOW: "BELOW";
1013
+ track: z.ZodEnum<{
1014
+ PEAK: "PEAK";
1015
+ TROUGH: "TROUGH";
1021
1016
  }>;
1022
1017
  threshold: z.ZodNumber;
1023
1018
  }, z.core.$strip>;
1024
1019
  }, z.core.$strip>, z.ZodObject<{
1025
- type: z.ZodLiteral<"price_v1">;
1020
+ type: z.ZodLiteral<"price">;
1026
1021
  data: z.ZodObject<{
1027
1022
  priceSource: z.ZodEnum<{
1028
1023
  mid: "mid";
1029
1024
  mark: "mark";
1030
1025
  }>;
1031
1026
  symbol: z.ZodString;
1032
- direction: z.ZodEnum<{
1033
- ABOVE: "ABOVE";
1034
- BELOW: "BELOW";
1027
+ track: z.ZodEnum<{
1028
+ PEAK: "PEAK";
1029
+ TROUGH: "TROUGH";
1035
1030
  }>;
1036
1031
  threshold: z.ZodNumber;
1037
1032
  }, z.core.$strip>;
1038
1033
  }, z.core.$strip>, z.ZodObject<{
1039
- type: z.ZodLiteral<"index_v1">;
1034
+ type: z.ZodLiteral<"weighted_ratio">;
1040
1035
  data: z.ZodObject<{
1041
1036
  priceSource: z.ZodEnum<{
1042
1037
  mid: "mid";
@@ -1044,16 +1039,78 @@ export declare const CreateTriggerResponse: z.ZodObject<{
1044
1039
  }>;
1045
1040
  basket: z.ZodArray<z.ZodObject<{
1046
1041
  symbol: z.ZodString;
1042
+ side: z.ZodEnum<{
1043
+ BUY: "BUY";
1044
+ SELL: "SELL";
1045
+ }>;
1047
1046
  weight: z.ZodNumber;
1048
1047
  }, z.core.$strip>>;
1049
- direction: z.ZodEnum<{
1050
- ABOVE: "ABOVE";
1051
- BELOW: "BELOW";
1048
+ track: z.ZodEnum<{
1049
+ PEAK: "PEAK";
1050
+ TROUGH: "TROUGH";
1051
+ }>;
1052
+ threshold: z.ZodNumber;
1053
+ }, z.core.$strip>;
1054
+ }, z.core.$strip>, z.ZodObject<{
1055
+ type: z.ZodLiteral<"notional">;
1056
+ data: z.ZodObject<{
1057
+ priceSource: z.ZodEnum<{
1058
+ mid: "mid";
1059
+ mark: "mark";
1060
+ }>;
1061
+ track: z.ZodEnum<{
1062
+ PEAK: "PEAK";
1063
+ TROUGH: "TROUGH";
1064
+ }>;
1065
+ threshold: z.ZodNumber;
1066
+ }, z.core.$strip>;
1067
+ }, z.core.$strip>, z.ZodObject<{
1068
+ type: z.ZodLiteral<"upnl">;
1069
+ data: z.ZodObject<{
1070
+ priceSource: z.ZodEnum<{
1071
+ mid: "mid";
1072
+ mark: "mark";
1073
+ }>;
1074
+ track: z.ZodEnum<{
1075
+ PEAK: "PEAK";
1076
+ TROUGH: "TROUGH";
1052
1077
  }>;
1053
1078
  threshold: z.ZodNumber;
1054
1079
  }, z.core.$strip>;
1055
1080
  }, z.core.$strip>, z.ZodObject<{
1056
- type: z.ZodLiteral<"weighted_ratio_v1">;
1081
+ type: z.ZodLiteral<"upnl_bps">;
1082
+ data: z.ZodObject<{
1083
+ priceSource: z.ZodEnum<{
1084
+ mid: "mid";
1085
+ mark: "mark";
1086
+ }>;
1087
+ track: z.ZodEnum<{
1088
+ PEAK: "PEAK";
1089
+ TROUGH: "TROUGH";
1090
+ }>;
1091
+ threshold: z.ZodNumber;
1092
+ }, z.core.$strip>;
1093
+ }, z.core.$strip>, z.ZodObject<{
1094
+ type: z.ZodLiteral<"ratio_trailing">;
1095
+ data: z.ZodObject<{
1096
+ priceSource: z.ZodEnum<{
1097
+ mid: "mid";
1098
+ mark: "mark";
1099
+ }>;
1100
+ symbol_a: z.ZodString;
1101
+ symbol_b: z.ZodString;
1102
+ }, z.core.$strip>;
1103
+ }, z.core.$strip>, z.ZodObject<{
1104
+ type: z.ZodLiteral<"price_trailing">;
1105
+ data: z.ZodObject<{
1106
+ priceSource: z.ZodEnum<{
1107
+ mid: "mid";
1108
+ mark: "mark";
1109
+ }>;
1110
+ symbol: z.ZodString;
1111
+ }, z.core.$strip>;
1112
+ }, z.core.$strip>, z.ZodObject<{
1113
+ type: z.ZodLiteral<"weighted_ratio_trailing">;
1057
1114
  data: z.ZodObject<{
1058
1115
  priceSource: z.ZodEnum<{
1059
1116
  mid: "mid";
@@ -1067,50 +1124,30 @@ export declare const CreateTriggerResponse: z.ZodObject<{
1067
1124
  }>;
1068
1125
  weight: z.ZodNumber;
1069
1126
  }, z.core.$strip>>;
1070
- direction: z.ZodEnum<{
1071
- ABOVE: "ABOVE";
1072
- BELOW: "BELOW";
1073
- }>;
1074
- threshold: z.ZodNumber;
1075
1127
  }, z.core.$strip>;
1076
1128
  }, z.core.$strip>, z.ZodObject<{
1077
- type: z.ZodLiteral<"position_value_v1">;
1129
+ type: z.ZodLiteral<"notional_trailing">;
1078
1130
  data: z.ZodObject<{
1079
1131
  priceSource: z.ZodEnum<{
1080
1132
  mid: "mid";
1081
1133
  mark: "mark";
1082
1134
  }>;
1083
- direction: z.ZodEnum<{
1084
- ABOVE: "ABOVE";
1085
- BELOW: "BELOW";
1086
- }>;
1087
- threshold: z.ZodNumber;
1088
1135
  }, z.core.$strip>;
1089
1136
  }, z.core.$strip>, z.ZodObject<{
1090
- type: z.ZodLiteral<"position_upnl_value_v1">;
1137
+ type: z.ZodLiteral<"upnl_trailing">;
1091
1138
  data: z.ZodObject<{
1092
1139
  priceSource: z.ZodEnum<{
1093
1140
  mid: "mid";
1094
1141
  mark: "mark";
1095
1142
  }>;
1096
- direction: z.ZodEnum<{
1097
- ABOVE: "ABOVE";
1098
- BELOW: "BELOW";
1099
- }>;
1100
- threshold: z.ZodNumber;
1101
1143
  }, z.core.$strip>;
1102
1144
  }, z.core.$strip>, z.ZodObject<{
1103
- type: z.ZodLiteral<"position_upnl_percentage_v1">;
1145
+ type: z.ZodLiteral<"upnl_bps_trailing">;
1104
1146
  data: z.ZodObject<{
1105
1147
  priceSource: z.ZodEnum<{
1106
1148
  mid: "mid";
1107
1149
  mark: "mark";
1108
1150
  }>;
1109
- direction: z.ZodEnum<{
1110
- ABOVE: "ABOVE";
1111
- BELOW: "BELOW";
1112
- }>;
1113
- threshold_bps: z.ZodNumber;
1114
1151
  }, z.core.$strip>;
1115
1152
  }, z.core.$strip>], "type">;
1116
1153
  context: z.ZodObject<{
@@ -1121,8 +1158,15 @@ export declare const CreateTriggerResponse: z.ZodObject<{
1121
1158
  }, z.core.$strip>;
1122
1159
  }, z.core.$strip>;
1123
1160
  trailing: z.ZodOptional<z.ZodObject<{
1161
+ mode: z.ZodEnum<{
1162
+ RELATIVE_BPS: "RELATIVE_BPS";
1163
+ ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
1164
+ }>;
1124
1165
  deltaValue: z.ZodNumber;
1125
- activationValue: z.ZodNumber;
1166
+ activationValue: z.ZodOptional<z.ZodNumber>;
1167
+ bestMetricSeen: z.ZodOptional<z.ZodNumber>;
1168
+ currentStopValue: z.ZodOptional<z.ZodNumber>;
1169
+ stopBreachedAt: z.ZodOptional<z.ZodNumber>;
1126
1170
  }, z.core.$strip>>;
1127
1171
  }, z.core.$strip>], "intent">], "type">;
1128
1172
  }, z.core.$strip>;