@pear-protocol/types 1.31.0 → 1.33.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 (48) hide show
  1. package/dist/baskets/recommended/entities.d.ts +36 -0
  2. package/dist/baskets/recommended/entities.js +22 -0
  3. package/dist/baskets/recommended/index.d.ts +2 -0
  4. package/dist/baskets/recommended/index.js +2 -0
  5. package/dist/baskets/recommended/responses.d.ts +28 -0
  6. package/dist/baskets/recommended/responses.js +8 -0
  7. package/dist/{saved-baskets → baskets/saved}/entities.d.ts +3 -0
  8. package/dist/{saved-baskets → baskets/saved}/entities.js +6 -3
  9. package/dist/{saved-baskets → baskets/saved}/payloads.d.ts +4 -0
  10. package/dist/{saved-baskets → baskets/saved}/payloads.js +1 -1
  11. package/dist/{saved-baskets → baskets/saved}/responses.d.ts +6 -0
  12. package/dist/bundle.d.ts +2 -1
  13. package/dist/bundle.js +2 -1
  14. package/dist/common/refinement.d.ts +9 -0
  15. package/dist/common/refinement.js +9 -1
  16. package/dist/common/trade-legs.d.ts +2 -0
  17. package/dist/common/trade-legs.js +7 -3
  18. package/dist/execution/entities.d.ts +13 -0
  19. package/dist/execution/entities.js +2 -0
  20. package/dist/execution/responses.d.ts +8 -0
  21. package/dist/ladder/entities.d.ts +549 -0
  22. package/dist/ladder/payloads.d.ts +4 -0
  23. package/dist/ladder/responses.d.ts +2039 -392
  24. package/dist/notification/entities.d.ts +176 -3
  25. package/dist/notification/entities.js +31 -0
  26. package/dist/notification/responses.d.ts +86 -0
  27. package/dist/schedule/entities.d.ts +3 -0
  28. package/dist/schedule/entities.js +2 -0
  29. package/dist/schedule/payloads.d.ts +2 -0
  30. package/dist/schedule/payloads.js +6 -29
  31. package/dist/schedule/responses.d.ts +2 -0
  32. package/dist/schedule/twap-config.d.ts +41 -0
  33. package/dist/schedule/twap-config.js +29 -0
  34. package/dist/trade/payloads.d.ts +8 -0
  35. package/dist/trade/responses.d.ts +20 -0
  36. package/dist/trigger/entities/index.d.ts +1707 -54
  37. package/dist/trigger/entities/index.js +55 -2
  38. package/dist/trigger/payloads/index.d.ts +898 -91
  39. package/dist/trigger/payloads/index.js +68 -5
  40. package/dist/trigger/responses.d.ts +1151 -53
  41. package/dist/users/entities.d.ts +2 -0
  42. package/dist/users/entities.js +3 -1
  43. package/dist/users/response.d.ts +2 -0
  44. package/dist/users/response.js +2 -0
  45. package/package.json +1 -1
  46. /package/dist/{saved-baskets → baskets/saved}/index.d.ts +0 -0
  47. /package/dist/{saved-baskets → baskets/saved}/index.js +0 -0
  48. /package/dist/{saved-baskets → baskets/saved}/responses.js +0 -0
@@ -395,6 +395,7 @@ export declare const CreateTriggerMarketOpen: z.ZodObject<{
395
395
  type: z.ZodLiteral<"MARKET">;
396
396
  legs: z.ZodTuple<[z.ZodObject<{
397
397
  symbol: z.ZodString;
398
+ id: z.ZodOptional<z.ZodString>;
398
399
  side: z.ZodEnum<{
399
400
  BUY: "BUY";
400
401
  SELL: "SELL";
@@ -406,6 +407,7 @@ export declare const CreateTriggerMarketOpen: z.ZodObject<{
406
407
  amount: z.ZodString;
407
408
  }, z.core.$strict>], z.ZodObject<{
408
409
  symbol: z.ZodString;
410
+ id: z.ZodOptional<z.ZodString>;
409
411
  side: z.ZodEnum<{
410
412
  BUY: "BUY";
411
413
  SELL: "SELL";
@@ -519,6 +521,7 @@ export declare const CreateTriggerMarketAdjust: z.ZodObject<{
519
521
  type: z.ZodLiteral<"MARKET">;
520
522
  legs: z.ZodTuple<[z.ZodObject<{
521
523
  symbol: z.ZodString;
524
+ id: z.ZodOptional<z.ZodString>;
522
525
  side: z.ZodEnum<{
523
526
  BUY: "BUY";
524
527
  SELL: "SELL";
@@ -530,6 +533,7 @@ export declare const CreateTriggerMarketAdjust: z.ZodObject<{
530
533
  amount: z.ZodString;
531
534
  }, z.core.$strict>], z.ZodObject<{
532
535
  symbol: z.ZodString;
536
+ id: z.ZodOptional<z.ZodString>;
533
537
  side: z.ZodEnum<{
534
538
  BUY: "BUY";
535
539
  SELL: "SELL";
@@ -543,6 +547,131 @@ export declare const CreateTriggerMarketAdjust: z.ZodObject<{
543
547
  }, z.core.$strict>;
544
548
  clientId: z.ZodOptional<z.ZodString>;
545
549
  }, z.core.$strict>;
550
+ export declare const CreateTriggerTWAPAdjust: z.ZodObject<{
551
+ intent: z.ZodLiteral<"ADJUST">;
552
+ type: z.ZodLiteral<"TWAP">;
553
+ positionId: z.ZodUUID;
554
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
555
+ type: z.ZodLiteral<"ratio">;
556
+ data: z.ZodObject<{
557
+ priceSource: z.ZodEnum<{
558
+ mid: "mid";
559
+ mark: "mark";
560
+ }>;
561
+ symbol_a: z.ZodString;
562
+ symbol_b: z.ZodString;
563
+ track: z.ZodEnum<{
564
+ PEAK: "PEAK";
565
+ TROUGH: "TROUGH";
566
+ }>;
567
+ threshold: z.ZodNumber;
568
+ }, z.core.$strip>;
569
+ }, z.core.$strip>, z.ZodObject<{
570
+ type: z.ZodLiteral<"price">;
571
+ data: z.ZodObject<{
572
+ priceSource: z.ZodEnum<{
573
+ mid: "mid";
574
+ mark: "mark";
575
+ }>;
576
+ symbol: z.ZodString;
577
+ track: z.ZodEnum<{
578
+ PEAK: "PEAK";
579
+ TROUGH: "TROUGH";
580
+ }>;
581
+ threshold: z.ZodNumber;
582
+ }, z.core.$strip>;
583
+ }, z.core.$strip>, z.ZodObject<{
584
+ type: z.ZodLiteral<"weighted_ratio">;
585
+ data: z.ZodObject<{
586
+ priceSource: z.ZodEnum<{
587
+ mid: "mid";
588
+ mark: "mark";
589
+ }>;
590
+ basket: z.ZodArray<z.ZodObject<{
591
+ symbol: z.ZodString;
592
+ side: z.ZodEnum<{
593
+ BUY: "BUY";
594
+ SELL: "SELL";
595
+ }>;
596
+ weight: z.ZodNumber;
597
+ }, z.core.$strip>>;
598
+ track: z.ZodEnum<{
599
+ PEAK: "PEAK";
600
+ TROUGH: "TROUGH";
601
+ }>;
602
+ threshold: z.ZodNumber;
603
+ }, z.core.$strip>;
604
+ }, z.core.$strip>, z.ZodObject<{
605
+ type: z.ZodLiteral<"funding_rate">;
606
+ data: z.ZodObject<{
607
+ connector: z.ZodEnum<{
608
+ hyperliquid: "hyperliquid";
609
+ binance: "binance";
610
+ bybit: "bybit";
611
+ okx: "okx";
612
+ lighter: "lighter";
613
+ }>;
614
+ symbol: z.ZodString;
615
+ track: z.ZodEnum<{
616
+ PEAK: "PEAK";
617
+ TROUGH: "TROUGH";
618
+ }>;
619
+ threshold: z.ZodNumber;
620
+ }, z.core.$strip>;
621
+ }, z.core.$strip>, z.ZodObject<{
622
+ type: z.ZodLiteral<"prediction_market">;
623
+ data: z.ZodObject<{
624
+ source: z.ZodEnum<{
625
+ kalshi: "kalshi";
626
+ polymarket: "polymarket";
627
+ }>;
628
+ marketKey: z.ZodString;
629
+ track: z.ZodEnum<{
630
+ PEAK: "PEAK";
631
+ TROUGH: "TROUGH";
632
+ }>;
633
+ threshold: z.ZodNumber;
634
+ }, z.core.$strip>;
635
+ }, z.core.$strip>, z.ZodObject<{
636
+ type: z.ZodLiteral<"btc_dominance">;
637
+ data: z.ZodObject<{
638
+ source: z.ZodLiteral<"coingecko">;
639
+ track: z.ZodEnum<{
640
+ PEAK: "PEAK";
641
+ TROUGH: "TROUGH";
642
+ }>;
643
+ threshold: z.ZodNumber;
644
+ }, z.core.$strip>;
645
+ }, z.core.$strip>], "type">;
646
+ payload: z.ZodObject<{
647
+ type: z.ZodLiteral<"TWAP">;
648
+ durationSec: z.ZodInt;
649
+ sliceIntervalSec: z.ZodInt;
650
+ randomization: z.ZodDefault<z.ZodOptional<z.ZodObject<{
651
+ timingJitterBps: z.ZodInt;
652
+ sizeJitterBps: z.ZodInt;
653
+ }, z.core.$strip>>>;
654
+ legs: z.ZodTuple<[z.ZodObject<{
655
+ id: z.ZodOptional<z.ZodString>;
656
+ symbol: z.ZodString;
657
+ side: z.ZodEnum<{
658
+ BUY: "BUY";
659
+ SELL: "SELL";
660
+ }>;
661
+ weight: z.ZodNumber;
662
+ }, z.core.$strict>], z.ZodObject<{
663
+ id: z.ZodOptional<z.ZodString>;
664
+ symbol: z.ZodString;
665
+ side: z.ZodEnum<{
666
+ BUY: "BUY";
667
+ SELL: "SELL";
668
+ }>;
669
+ weight: z.ZodNumber;
670
+ }, z.core.$strict>>;
671
+ targetNotional: z.ZodString;
672
+ }, z.core.$strict>;
673
+ clientId: z.ZodOptional<z.ZodString>;
674
+ }, z.core.$strict>;
546
675
  export declare const CreateTriggerMarketCloseStatic: z.ZodObject<{
547
676
  intent: z.ZodLiteral<"CLOSE">;
548
677
  type: z.ZodLiteral<"MARKET">;
@@ -871,10 +1000,572 @@ export declare const CreateTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
871
1000
  activationValue: z.ZodOptional<z.ZodNumber>;
872
1001
  }, z.core.$strip>;
873
1002
  clientId: z.ZodOptional<z.ZodString>;
874
- }, z.core.$strip>]>;
875
- export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
876
- intent: z.ZodLiteral<"OPEN">;
1003
+ }, z.core.$strip>]>;
1004
+ export declare const CreateTriggerTWAPCloseStatic: z.ZodObject<{
1005
+ intent: z.ZodLiteral<"CLOSE">;
1006
+ type: z.ZodLiteral<"TWAP">;
1007
+ positionId: z.ZodUUID;
1008
+ bracketType: z.ZodEnum<{
1009
+ STOP_LOSS: "STOP_LOSS";
1010
+ TAKE_PROFIT: "TAKE_PROFIT";
1011
+ NONE: "NONE";
1012
+ }>;
1013
+ semanticBracketType: z.ZodOptional<z.ZodEnum<{
1014
+ STOP_LOSS: "STOP_LOSS";
1015
+ TAKE_PROFIT: "TAKE_PROFIT";
1016
+ }>>;
1017
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1018
+ type: z.ZodLiteral<"ratio">;
1019
+ data: z.ZodObject<{
1020
+ priceSource: z.ZodEnum<{
1021
+ mid: "mid";
1022
+ mark: "mark";
1023
+ }>;
1024
+ symbol_a: z.ZodString;
1025
+ symbol_b: z.ZodString;
1026
+ threshold: z.ZodNumber;
1027
+ }, z.core.$strip>;
1028
+ }, z.core.$strip>, z.ZodObject<{
1029
+ type: z.ZodLiteral<"price">;
1030
+ data: z.ZodObject<{
1031
+ priceSource: z.ZodEnum<{
1032
+ mid: "mid";
1033
+ mark: "mark";
1034
+ }>;
1035
+ symbol: z.ZodString;
1036
+ threshold: z.ZodNumber;
1037
+ }, z.core.$strip>;
1038
+ }, z.core.$strip>, z.ZodObject<{
1039
+ type: z.ZodLiteral<"weighted_ratio">;
1040
+ data: z.ZodObject<{
1041
+ priceSource: z.ZodEnum<{
1042
+ mid: "mid";
1043
+ mark: "mark";
1044
+ }>;
1045
+ basket: z.ZodArray<z.ZodObject<{
1046
+ symbol: z.ZodString;
1047
+ side: z.ZodEnum<{
1048
+ BUY: "BUY";
1049
+ SELL: "SELL";
1050
+ }>;
1051
+ weight: z.ZodNumber;
1052
+ }, z.core.$strip>>;
1053
+ threshold: z.ZodNumber;
1054
+ }, z.core.$strip>;
1055
+ }, z.core.$strip>, z.ZodObject<{
1056
+ type: z.ZodLiteral<"notional">;
1057
+ data: z.ZodObject<{
1058
+ priceSource: z.ZodEnum<{
1059
+ mid: "mid";
1060
+ mark: "mark";
1061
+ }>;
1062
+ threshold: z.ZodNumber;
1063
+ }, z.core.$strip>;
1064
+ }, z.core.$strip>, z.ZodObject<{
1065
+ type: z.ZodLiteral<"upnl">;
1066
+ data: z.ZodObject<{
1067
+ priceSource: z.ZodEnum<{
1068
+ mid: "mid";
1069
+ mark: "mark";
1070
+ }>;
1071
+ threshold: z.ZodNumber;
1072
+ }, z.core.$strip>;
1073
+ }, z.core.$strip>, z.ZodObject<{
1074
+ type: z.ZodLiteral<"upnl_bps">;
1075
+ data: z.ZodObject<{
1076
+ priceSource: z.ZodEnum<{
1077
+ mid: "mid";
1078
+ mark: "mark";
1079
+ }>;
1080
+ threshold: z.ZodNumber;
1081
+ }, z.core.$strip>;
1082
+ }, z.core.$strip>, z.ZodObject<{
1083
+ type: z.ZodLiteral<"prediction_market">;
1084
+ data: z.ZodObject<{
1085
+ source: z.ZodEnum<{
1086
+ kalshi: "kalshi";
1087
+ polymarket: "polymarket";
1088
+ }>;
1089
+ marketKey: z.ZodString;
1090
+ threshold: z.ZodNumber;
1091
+ }, z.core.$strip>;
1092
+ }, z.core.$strip>], "type">;
1093
+ payload: z.ZodObject<{
1094
+ type: z.ZodLiteral<"TWAP">;
1095
+ durationSec: z.ZodInt;
1096
+ sliceIntervalSec: z.ZodInt;
1097
+ randomization: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1098
+ timingJitterBps: z.ZodInt;
1099
+ sizeJitterBps: z.ZodInt;
1100
+ }, z.core.$strip>>>;
1101
+ }, z.core.$strict>;
1102
+ clientId: z.ZodOptional<z.ZodString>;
1103
+ }, z.core.$strict>;
1104
+ export declare const CreateTriggerTWAPCloseTrailing: z.ZodObject<{
1105
+ intent: z.ZodLiteral<"CLOSE">;
1106
+ type: z.ZodLiteral<"TWAP">;
1107
+ positionId: z.ZodUUID;
1108
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1109
+ type: z.ZodLiteral<"ratio_trailing">;
1110
+ data: z.ZodObject<{
1111
+ priceSource: z.ZodEnum<{
1112
+ mid: "mid";
1113
+ mark: "mark";
1114
+ }>;
1115
+ symbol_a: z.ZodString;
1116
+ symbol_b: z.ZodString;
1117
+ }, z.core.$strip>;
1118
+ }, z.core.$strip>, z.ZodObject<{
1119
+ type: z.ZodLiteral<"price_trailing">;
1120
+ data: z.ZodObject<{
1121
+ priceSource: z.ZodEnum<{
1122
+ mid: "mid";
1123
+ mark: "mark";
1124
+ }>;
1125
+ symbol: z.ZodString;
1126
+ }, z.core.$strip>;
1127
+ }, z.core.$strip>, z.ZodObject<{
1128
+ type: z.ZodLiteral<"weighted_ratio_trailing">;
1129
+ data: z.ZodObject<{
1130
+ priceSource: z.ZodEnum<{
1131
+ mid: "mid";
1132
+ mark: "mark";
1133
+ }>;
1134
+ basket: z.ZodArray<z.ZodObject<{
1135
+ symbol: z.ZodString;
1136
+ side: z.ZodEnum<{
1137
+ BUY: "BUY";
1138
+ SELL: "SELL";
1139
+ }>;
1140
+ weight: z.ZodNumber;
1141
+ }, z.core.$strip>>;
1142
+ }, z.core.$strip>;
1143
+ }, z.core.$strip>, z.ZodObject<{
1144
+ type: z.ZodLiteral<"notional_trailing">;
1145
+ data: z.ZodObject<{
1146
+ priceSource: z.ZodEnum<{
1147
+ mid: "mid";
1148
+ mark: "mark";
1149
+ }>;
1150
+ }, z.core.$strip>;
1151
+ }, z.core.$strip>, z.ZodObject<{
1152
+ type: z.ZodLiteral<"upnl_trailing">;
1153
+ data: z.ZodObject<{
1154
+ priceSource: z.ZodEnum<{
1155
+ mid: "mid";
1156
+ mark: "mark";
1157
+ }>;
1158
+ }, z.core.$strip>;
1159
+ }, z.core.$strip>, z.ZodObject<{
1160
+ type: z.ZodLiteral<"upnl_bps_trailing">;
1161
+ data: z.ZodObject<{
1162
+ priceSource: z.ZodEnum<{
1163
+ mid: "mid";
1164
+ mark: "mark";
1165
+ }>;
1166
+ }, z.core.$strip>;
1167
+ }, z.core.$strip>], "type">;
1168
+ trailing: z.ZodObject<{
1169
+ mode: z.ZodEnum<{
1170
+ RELATIVE_BPS: "RELATIVE_BPS";
1171
+ ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
1172
+ }>;
1173
+ deltaValue: z.ZodNumber;
1174
+ activationValue: z.ZodOptional<z.ZodNumber>;
1175
+ }, z.core.$strip>;
1176
+ payload: z.ZodObject<{
1177
+ type: z.ZodLiteral<"TWAP">;
1178
+ durationSec: z.ZodInt;
1179
+ sliceIntervalSec: z.ZodInt;
1180
+ randomization: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1181
+ timingJitterBps: z.ZodInt;
1182
+ sizeJitterBps: z.ZodInt;
1183
+ }, z.core.$strip>>>;
1184
+ }, z.core.$strict>;
1185
+ clientId: z.ZodOptional<z.ZodString>;
1186
+ }, z.core.$strict>;
1187
+ export declare const CreateTriggerTWAPClose: z.ZodUnion<readonly [z.ZodObject<{
1188
+ intent: z.ZodLiteral<"CLOSE">;
1189
+ type: z.ZodLiteral<"TWAP">;
1190
+ positionId: z.ZodUUID;
1191
+ bracketType: z.ZodEnum<{
1192
+ STOP_LOSS: "STOP_LOSS";
1193
+ TAKE_PROFIT: "TAKE_PROFIT";
1194
+ NONE: "NONE";
1195
+ }>;
1196
+ semanticBracketType: z.ZodOptional<z.ZodEnum<{
1197
+ STOP_LOSS: "STOP_LOSS";
1198
+ TAKE_PROFIT: "TAKE_PROFIT";
1199
+ }>>;
1200
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1201
+ type: z.ZodLiteral<"ratio">;
1202
+ data: z.ZodObject<{
1203
+ priceSource: z.ZodEnum<{
1204
+ mid: "mid";
1205
+ mark: "mark";
1206
+ }>;
1207
+ symbol_a: z.ZodString;
1208
+ symbol_b: z.ZodString;
1209
+ threshold: z.ZodNumber;
1210
+ }, z.core.$strip>;
1211
+ }, z.core.$strip>, z.ZodObject<{
1212
+ type: z.ZodLiteral<"price">;
1213
+ data: z.ZodObject<{
1214
+ priceSource: z.ZodEnum<{
1215
+ mid: "mid";
1216
+ mark: "mark";
1217
+ }>;
1218
+ symbol: z.ZodString;
1219
+ threshold: z.ZodNumber;
1220
+ }, z.core.$strip>;
1221
+ }, z.core.$strip>, z.ZodObject<{
1222
+ type: z.ZodLiteral<"weighted_ratio">;
1223
+ data: z.ZodObject<{
1224
+ priceSource: z.ZodEnum<{
1225
+ mid: "mid";
1226
+ mark: "mark";
1227
+ }>;
1228
+ basket: z.ZodArray<z.ZodObject<{
1229
+ symbol: z.ZodString;
1230
+ side: z.ZodEnum<{
1231
+ BUY: "BUY";
1232
+ SELL: "SELL";
1233
+ }>;
1234
+ weight: z.ZodNumber;
1235
+ }, z.core.$strip>>;
1236
+ threshold: z.ZodNumber;
1237
+ }, z.core.$strip>;
1238
+ }, z.core.$strip>, z.ZodObject<{
1239
+ type: z.ZodLiteral<"notional">;
1240
+ data: z.ZodObject<{
1241
+ priceSource: z.ZodEnum<{
1242
+ mid: "mid";
1243
+ mark: "mark";
1244
+ }>;
1245
+ threshold: z.ZodNumber;
1246
+ }, z.core.$strip>;
1247
+ }, z.core.$strip>, z.ZodObject<{
1248
+ type: z.ZodLiteral<"upnl">;
1249
+ data: z.ZodObject<{
1250
+ priceSource: z.ZodEnum<{
1251
+ mid: "mid";
1252
+ mark: "mark";
1253
+ }>;
1254
+ threshold: z.ZodNumber;
1255
+ }, z.core.$strip>;
1256
+ }, z.core.$strip>, z.ZodObject<{
1257
+ type: z.ZodLiteral<"upnl_bps">;
1258
+ data: z.ZodObject<{
1259
+ priceSource: z.ZodEnum<{
1260
+ mid: "mid";
1261
+ mark: "mark";
1262
+ }>;
1263
+ threshold: z.ZodNumber;
1264
+ }, z.core.$strip>;
1265
+ }, z.core.$strip>, z.ZodObject<{
1266
+ type: z.ZodLiteral<"prediction_market">;
1267
+ data: z.ZodObject<{
1268
+ source: z.ZodEnum<{
1269
+ kalshi: "kalshi";
1270
+ polymarket: "polymarket";
1271
+ }>;
1272
+ marketKey: z.ZodString;
1273
+ threshold: z.ZodNumber;
1274
+ }, z.core.$strip>;
1275
+ }, z.core.$strip>], "type">;
1276
+ payload: z.ZodObject<{
1277
+ type: z.ZodLiteral<"TWAP">;
1278
+ durationSec: z.ZodInt;
1279
+ sliceIntervalSec: z.ZodInt;
1280
+ randomization: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1281
+ timingJitterBps: z.ZodInt;
1282
+ sizeJitterBps: z.ZodInt;
1283
+ }, z.core.$strip>>>;
1284
+ }, z.core.$strict>;
1285
+ clientId: z.ZodOptional<z.ZodString>;
1286
+ }, z.core.$strict>, z.ZodObject<{
1287
+ intent: z.ZodLiteral<"CLOSE">;
1288
+ type: z.ZodLiteral<"TWAP">;
1289
+ positionId: z.ZodUUID;
1290
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1291
+ type: z.ZodLiteral<"ratio_trailing">;
1292
+ data: z.ZodObject<{
1293
+ priceSource: z.ZodEnum<{
1294
+ mid: "mid";
1295
+ mark: "mark";
1296
+ }>;
1297
+ symbol_a: z.ZodString;
1298
+ symbol_b: z.ZodString;
1299
+ }, z.core.$strip>;
1300
+ }, z.core.$strip>, z.ZodObject<{
1301
+ type: z.ZodLiteral<"price_trailing">;
1302
+ data: z.ZodObject<{
1303
+ priceSource: z.ZodEnum<{
1304
+ mid: "mid";
1305
+ mark: "mark";
1306
+ }>;
1307
+ symbol: z.ZodString;
1308
+ }, z.core.$strip>;
1309
+ }, z.core.$strip>, z.ZodObject<{
1310
+ type: z.ZodLiteral<"weighted_ratio_trailing">;
1311
+ data: z.ZodObject<{
1312
+ priceSource: z.ZodEnum<{
1313
+ mid: "mid";
1314
+ mark: "mark";
1315
+ }>;
1316
+ basket: z.ZodArray<z.ZodObject<{
1317
+ symbol: z.ZodString;
1318
+ side: z.ZodEnum<{
1319
+ BUY: "BUY";
1320
+ SELL: "SELL";
1321
+ }>;
1322
+ weight: z.ZodNumber;
1323
+ }, z.core.$strip>>;
1324
+ }, z.core.$strip>;
1325
+ }, z.core.$strip>, z.ZodObject<{
1326
+ type: z.ZodLiteral<"notional_trailing">;
1327
+ data: z.ZodObject<{
1328
+ priceSource: z.ZodEnum<{
1329
+ mid: "mid";
1330
+ mark: "mark";
1331
+ }>;
1332
+ }, z.core.$strip>;
1333
+ }, z.core.$strip>, z.ZodObject<{
1334
+ type: z.ZodLiteral<"upnl_trailing">;
1335
+ data: z.ZodObject<{
1336
+ priceSource: z.ZodEnum<{
1337
+ mid: "mid";
1338
+ mark: "mark";
1339
+ }>;
1340
+ }, z.core.$strip>;
1341
+ }, z.core.$strip>, z.ZodObject<{
1342
+ type: z.ZodLiteral<"upnl_bps_trailing">;
1343
+ data: z.ZodObject<{
1344
+ priceSource: z.ZodEnum<{
1345
+ mid: "mid";
1346
+ mark: "mark";
1347
+ }>;
1348
+ }, z.core.$strip>;
1349
+ }, z.core.$strip>], "type">;
1350
+ trailing: z.ZodObject<{
1351
+ mode: z.ZodEnum<{
1352
+ RELATIVE_BPS: "RELATIVE_BPS";
1353
+ ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
1354
+ }>;
1355
+ deltaValue: z.ZodNumber;
1356
+ activationValue: z.ZodOptional<z.ZodNumber>;
1357
+ }, z.core.$strip>;
1358
+ payload: z.ZodObject<{
1359
+ type: z.ZodLiteral<"TWAP">;
1360
+ durationSec: z.ZodInt;
1361
+ sliceIntervalSec: z.ZodInt;
1362
+ randomization: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1363
+ timingJitterBps: z.ZodInt;
1364
+ sizeJitterBps: z.ZodInt;
1365
+ }, z.core.$strip>>>;
1366
+ }, z.core.$strict>;
1367
+ clientId: z.ZodOptional<z.ZodString>;
1368
+ }, z.core.$strict>]>;
1369
+ export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
1370
+ intent: z.ZodLiteral<"OPEN">;
1371
+ type: z.ZodLiteral<"MARKET">;
1372
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1373
+ type: z.ZodLiteral<"ratio">;
1374
+ data: z.ZodObject<{
1375
+ priceSource: z.ZodEnum<{
1376
+ mid: "mid";
1377
+ mark: "mark";
1378
+ }>;
1379
+ symbol_a: z.ZodString;
1380
+ symbol_b: z.ZodString;
1381
+ track: z.ZodEnum<{
1382
+ PEAK: "PEAK";
1383
+ TROUGH: "TROUGH";
1384
+ }>;
1385
+ threshold: z.ZodNumber;
1386
+ }, z.core.$strip>;
1387
+ }, z.core.$strip>, z.ZodObject<{
1388
+ type: z.ZodLiteral<"price">;
1389
+ data: z.ZodObject<{
1390
+ priceSource: z.ZodEnum<{
1391
+ mid: "mid";
1392
+ mark: "mark";
1393
+ }>;
1394
+ symbol: z.ZodString;
1395
+ track: z.ZodEnum<{
1396
+ PEAK: "PEAK";
1397
+ TROUGH: "TROUGH";
1398
+ }>;
1399
+ threshold: z.ZodNumber;
1400
+ }, z.core.$strip>;
1401
+ }, z.core.$strip>, z.ZodObject<{
1402
+ type: z.ZodLiteral<"weighted_ratio">;
1403
+ data: z.ZodObject<{
1404
+ priceSource: z.ZodEnum<{
1405
+ mid: "mid";
1406
+ mark: "mark";
1407
+ }>;
1408
+ basket: z.ZodArray<z.ZodObject<{
1409
+ symbol: z.ZodString;
1410
+ side: z.ZodEnum<{
1411
+ BUY: "BUY";
1412
+ SELL: "SELL";
1413
+ }>;
1414
+ weight: z.ZodNumber;
1415
+ }, z.core.$strip>>;
1416
+ track: z.ZodEnum<{
1417
+ PEAK: "PEAK";
1418
+ TROUGH: "TROUGH";
1419
+ }>;
1420
+ threshold: z.ZodNumber;
1421
+ }, z.core.$strip>;
1422
+ }, z.core.$strip>, z.ZodObject<{
1423
+ type: z.ZodLiteral<"funding_rate">;
1424
+ data: z.ZodObject<{
1425
+ connector: z.ZodEnum<{
1426
+ hyperliquid: "hyperliquid";
1427
+ binance: "binance";
1428
+ bybit: "bybit";
1429
+ okx: "okx";
1430
+ lighter: "lighter";
1431
+ }>;
1432
+ symbol: z.ZodString;
1433
+ track: z.ZodEnum<{
1434
+ PEAK: "PEAK";
1435
+ TROUGH: "TROUGH";
1436
+ }>;
1437
+ threshold: z.ZodNumber;
1438
+ }, z.core.$strip>;
1439
+ }, z.core.$strip>, z.ZodObject<{
1440
+ type: z.ZodLiteral<"prediction_market">;
1441
+ data: z.ZodObject<{
1442
+ source: z.ZodEnum<{
1443
+ kalshi: "kalshi";
1444
+ polymarket: "polymarket";
1445
+ }>;
1446
+ marketKey: z.ZodString;
1447
+ track: z.ZodEnum<{
1448
+ PEAK: "PEAK";
1449
+ TROUGH: "TROUGH";
1450
+ }>;
1451
+ threshold: z.ZodNumber;
1452
+ }, z.core.$strip>;
1453
+ }, z.core.$strip>, z.ZodObject<{
1454
+ type: z.ZodLiteral<"btc_dominance">;
1455
+ data: z.ZodObject<{
1456
+ source: z.ZodLiteral<"coingecko">;
1457
+ track: z.ZodEnum<{
1458
+ PEAK: "PEAK";
1459
+ TROUGH: "TROUGH";
1460
+ }>;
1461
+ threshold: z.ZodNumber;
1462
+ }, z.core.$strip>;
1463
+ }, z.core.$strip>], "type">;
1464
+ attachTriggers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1465
+ intent: z.ZodLiteral<"CLOSE">;
1466
+ type: z.ZodLiteral<"MARKET">;
1467
+ bracketType: z.ZodEnum<{
1468
+ STOP_LOSS: "STOP_LOSS";
1469
+ TAKE_PROFIT: "TAKE_PROFIT";
1470
+ }>;
1471
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1472
+ type: z.ZodLiteral<"notional">;
1473
+ data: z.ZodObject<{
1474
+ priceSource: z.ZodEnum<{
1475
+ mid: "mid";
1476
+ mark: "mark";
1477
+ }>;
1478
+ threshold: z.ZodNumber;
1479
+ }, z.core.$strip>;
1480
+ }, z.core.$strip>, z.ZodObject<{
1481
+ type: z.ZodLiteral<"upnl">;
1482
+ data: z.ZodObject<{
1483
+ priceSource: z.ZodEnum<{
1484
+ mid: "mid";
1485
+ mark: "mark";
1486
+ }>;
1487
+ threshold: z.ZodNumber;
1488
+ }, z.core.$strip>;
1489
+ }, z.core.$strip>, z.ZodObject<{
1490
+ type: z.ZodLiteral<"upnl_bps">;
1491
+ data: z.ZodObject<{
1492
+ priceSource: z.ZodEnum<{
1493
+ mid: "mid";
1494
+ mark: "mark";
1495
+ }>;
1496
+ threshold: z.ZodNumber;
1497
+ }, z.core.$strip>;
1498
+ }, z.core.$strip>], "type">;
1499
+ }, z.core.$strip>, z.ZodObject<{
1500
+ intent: z.ZodLiteral<"CLOSE">;
1501
+ type: z.ZodLiteral<"MARKET">;
1502
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1503
+ type: z.ZodLiteral<"notional_trailing">;
1504
+ data: z.ZodObject<{
1505
+ priceSource: z.ZodEnum<{
1506
+ mid: "mid";
1507
+ mark: "mark";
1508
+ }>;
1509
+ }, z.core.$strip>;
1510
+ }, z.core.$strip>, z.ZodObject<{
1511
+ type: z.ZodLiteral<"upnl_trailing">;
1512
+ data: z.ZodObject<{
1513
+ priceSource: z.ZodEnum<{
1514
+ mid: "mid";
1515
+ mark: "mark";
1516
+ }>;
1517
+ }, z.core.$strip>;
1518
+ }, z.core.$strip>, z.ZodObject<{
1519
+ type: z.ZodLiteral<"upnl_bps_trailing">;
1520
+ data: z.ZodObject<{
1521
+ priceSource: z.ZodEnum<{
1522
+ mid: "mid";
1523
+ mark: "mark";
1524
+ }>;
1525
+ }, z.core.$strip>;
1526
+ }, z.core.$strip>], "type">;
1527
+ trailing: z.ZodObject<{
1528
+ mode: z.ZodEnum<{
1529
+ RELATIVE_BPS: "RELATIVE_BPS";
1530
+ ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
1531
+ }>;
1532
+ deltaValue: z.ZodNumber;
1533
+ activationValue: z.ZodOptional<z.ZodNumber>;
1534
+ }, z.core.$strip>;
1535
+ }, z.core.$strip>]>>>;
1536
+ payload: z.ZodObject<{
1537
+ type: z.ZodLiteral<"MARKET">;
1538
+ legs: z.ZodTuple<[z.ZodObject<{
1539
+ symbol: z.ZodString;
1540
+ id: z.ZodOptional<z.ZodString>;
1541
+ side: z.ZodEnum<{
1542
+ BUY: "BUY";
1543
+ SELL: "SELL";
1544
+ }>;
1545
+ mode: z.ZodEnum<{
1546
+ QUANTITY: "QUANTITY";
1547
+ USD: "USD";
1548
+ }>;
1549
+ amount: z.ZodString;
1550
+ }, z.core.$strict>], z.ZodObject<{
1551
+ symbol: z.ZodString;
1552
+ id: z.ZodOptional<z.ZodString>;
1553
+ side: z.ZodEnum<{
1554
+ BUY: "BUY";
1555
+ SELL: "SELL";
1556
+ }>;
1557
+ mode: z.ZodEnum<{
1558
+ QUANTITY: "QUANTITY";
1559
+ USD: "USD";
1560
+ }>;
1561
+ amount: z.ZodString;
1562
+ }, z.core.$strict>>;
1563
+ }, z.core.$strict>;
1564
+ clientId: z.ZodOptional<z.ZodString>;
1565
+ }, z.core.$strict>, z.ZodObject<{
1566
+ intent: z.ZodLiteral<"ADJUST">;
877
1567
  type: z.ZodLiteral<"MARKET">;
1568
+ positionId: z.ZodUUID;
878
1569
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
879
1570
  type: z.ZodLiteral<"ratio">;
880
1571
  data: z.ZodObject<{
@@ -967,82 +1658,11 @@ export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
967
1658
  threshold: z.ZodNumber;
968
1659
  }, z.core.$strip>;
969
1660
  }, z.core.$strip>], "type">;
970
- attachTriggers: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
971
- intent: z.ZodLiteral<"CLOSE">;
972
- type: z.ZodLiteral<"MARKET">;
973
- bracketType: z.ZodEnum<{
974
- STOP_LOSS: "STOP_LOSS";
975
- TAKE_PROFIT: "TAKE_PROFIT";
976
- }>;
977
- condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
978
- type: z.ZodLiteral<"notional">;
979
- data: z.ZodObject<{
980
- priceSource: z.ZodEnum<{
981
- mid: "mid";
982
- mark: "mark";
983
- }>;
984
- threshold: z.ZodNumber;
985
- }, z.core.$strip>;
986
- }, z.core.$strip>, z.ZodObject<{
987
- type: z.ZodLiteral<"upnl">;
988
- data: z.ZodObject<{
989
- priceSource: z.ZodEnum<{
990
- mid: "mid";
991
- mark: "mark";
992
- }>;
993
- threshold: z.ZodNumber;
994
- }, z.core.$strip>;
995
- }, z.core.$strip>, z.ZodObject<{
996
- type: z.ZodLiteral<"upnl_bps">;
997
- data: z.ZodObject<{
998
- priceSource: z.ZodEnum<{
999
- mid: "mid";
1000
- mark: "mark";
1001
- }>;
1002
- threshold: z.ZodNumber;
1003
- }, z.core.$strip>;
1004
- }, z.core.$strip>], "type">;
1005
- }, z.core.$strip>, z.ZodObject<{
1006
- intent: z.ZodLiteral<"CLOSE">;
1007
- type: z.ZodLiteral<"MARKET">;
1008
- condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1009
- type: z.ZodLiteral<"notional_trailing">;
1010
- data: z.ZodObject<{
1011
- priceSource: z.ZodEnum<{
1012
- mid: "mid";
1013
- mark: "mark";
1014
- }>;
1015
- }, z.core.$strip>;
1016
- }, z.core.$strip>, z.ZodObject<{
1017
- type: z.ZodLiteral<"upnl_trailing">;
1018
- data: z.ZodObject<{
1019
- priceSource: z.ZodEnum<{
1020
- mid: "mid";
1021
- mark: "mark";
1022
- }>;
1023
- }, z.core.$strip>;
1024
- }, z.core.$strip>, z.ZodObject<{
1025
- type: z.ZodLiteral<"upnl_bps_trailing">;
1026
- data: z.ZodObject<{
1027
- priceSource: z.ZodEnum<{
1028
- mid: "mid";
1029
- mark: "mark";
1030
- }>;
1031
- }, z.core.$strip>;
1032
- }, z.core.$strip>], "type">;
1033
- trailing: z.ZodObject<{
1034
- mode: z.ZodEnum<{
1035
- RELATIVE_BPS: "RELATIVE_BPS";
1036
- ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
1037
- }>;
1038
- deltaValue: z.ZodNumber;
1039
- activationValue: z.ZodOptional<z.ZodNumber>;
1040
- }, z.core.$strip>;
1041
- }, z.core.$strip>]>>>;
1042
1661
  payload: z.ZodObject<{
1043
1662
  type: z.ZodLiteral<"MARKET">;
1044
1663
  legs: z.ZodTuple<[z.ZodObject<{
1045
1664
  symbol: z.ZodString;
1665
+ id: z.ZodOptional<z.ZodString>;
1046
1666
  side: z.ZodEnum<{
1047
1667
  BUY: "BUY";
1048
1668
  SELL: "SELL";
@@ -1054,6 +1674,7 @@ export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
1054
1674
  amount: z.ZodString;
1055
1675
  }, z.core.$strict>], z.ZodObject<{
1056
1676
  symbol: z.ZodString;
1677
+ id: z.ZodOptional<z.ZodString>;
1057
1678
  side: z.ZodEnum<{
1058
1679
  BUY: "BUY";
1059
1680
  SELL: "SELL";
@@ -1066,9 +1687,9 @@ export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
1066
1687
  }, z.core.$strict>>;
1067
1688
  }, z.core.$strict>;
1068
1689
  clientId: z.ZodOptional<z.ZodString>;
1069
- }, z.core.$strict>, z.ZodObject<{
1690
+ }, z.core.$strict>], "intent">, z.ZodObject<{
1070
1691
  intent: z.ZodLiteral<"ADJUST">;
1071
- type: z.ZodLiteral<"MARKET">;
1692
+ type: z.ZodLiteral<"TWAP">;
1072
1693
  positionId: z.ZodUUID;
1073
1694
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1074
1695
  type: z.ZodLiteral<"ratio">;
@@ -1163,34 +1784,35 @@ export declare const CreateTriggerOpen: z.ZodDiscriminatedUnion<[z.ZodObject<{
1163
1784
  }, z.core.$strip>;
1164
1785
  }, z.core.$strip>], "type">;
1165
1786
  payload: z.ZodObject<{
1166
- type: z.ZodLiteral<"MARKET">;
1787
+ type: z.ZodLiteral<"TWAP">;
1788
+ durationSec: z.ZodInt;
1789
+ sliceIntervalSec: z.ZodInt;
1790
+ randomization: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1791
+ timingJitterBps: z.ZodInt;
1792
+ sizeJitterBps: z.ZodInt;
1793
+ }, z.core.$strip>>>;
1167
1794
  legs: z.ZodTuple<[z.ZodObject<{
1795
+ id: z.ZodOptional<z.ZodString>;
1168
1796
  symbol: z.ZodString;
1169
1797
  side: z.ZodEnum<{
1170
1798
  BUY: "BUY";
1171
1799
  SELL: "SELL";
1172
1800
  }>;
1173
- mode: z.ZodEnum<{
1174
- QUANTITY: "QUANTITY";
1175
- USD: "USD";
1176
- }>;
1177
- amount: z.ZodString;
1801
+ weight: z.ZodNumber;
1178
1802
  }, z.core.$strict>], z.ZodObject<{
1803
+ id: z.ZodOptional<z.ZodString>;
1179
1804
  symbol: z.ZodString;
1180
1805
  side: z.ZodEnum<{
1181
1806
  BUY: "BUY";
1182
1807
  SELL: "SELL";
1183
1808
  }>;
1184
- mode: z.ZodEnum<{
1185
- QUANTITY: "QUANTITY";
1186
- USD: "USD";
1187
- }>;
1188
- amount: z.ZodString;
1809
+ weight: z.ZodNumber;
1189
1810
  }, z.core.$strict>>;
1811
+ targetNotional: z.ZodString;
1190
1812
  }, z.core.$strict>;
1191
1813
  clientId: z.ZodOptional<z.ZodString>;
1192
- }, z.core.$strict>], "intent">;
1193
- export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodObject<{
1814
+ }, z.core.$strict>], "type">;
1815
+ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1194
1816
  intent: z.ZodLiteral<"CLOSE">;
1195
1817
  type: z.ZodLiteral<"MARKET">;
1196
1818
  positionId: z.ZodUUID;
@@ -1353,12 +1975,197 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodObject<{
1353
1975
  activationValue: z.ZodOptional<z.ZodNumber>;
1354
1976
  }, z.core.$strip>;
1355
1977
  clientId: z.ZodOptional<z.ZodString>;
1356
- }, z.core.$strip>]>;
1978
+ }, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
1979
+ intent: z.ZodLiteral<"CLOSE">;
1980
+ type: z.ZodLiteral<"TWAP">;
1981
+ positionId: z.ZodUUID;
1982
+ bracketType: z.ZodEnum<{
1983
+ STOP_LOSS: "STOP_LOSS";
1984
+ TAKE_PROFIT: "TAKE_PROFIT";
1985
+ NONE: "NONE";
1986
+ }>;
1987
+ semanticBracketType: z.ZodOptional<z.ZodEnum<{
1988
+ STOP_LOSS: "STOP_LOSS";
1989
+ TAKE_PROFIT: "TAKE_PROFIT";
1990
+ }>>;
1991
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
1992
+ type: z.ZodLiteral<"ratio">;
1993
+ data: z.ZodObject<{
1994
+ priceSource: z.ZodEnum<{
1995
+ mid: "mid";
1996
+ mark: "mark";
1997
+ }>;
1998
+ symbol_a: z.ZodString;
1999
+ symbol_b: z.ZodString;
2000
+ threshold: z.ZodNumber;
2001
+ }, z.core.$strip>;
2002
+ }, z.core.$strip>, z.ZodObject<{
2003
+ type: z.ZodLiteral<"price">;
2004
+ data: z.ZodObject<{
2005
+ priceSource: z.ZodEnum<{
2006
+ mid: "mid";
2007
+ mark: "mark";
2008
+ }>;
2009
+ symbol: z.ZodString;
2010
+ threshold: z.ZodNumber;
2011
+ }, z.core.$strip>;
2012
+ }, z.core.$strip>, z.ZodObject<{
2013
+ type: z.ZodLiteral<"weighted_ratio">;
2014
+ data: z.ZodObject<{
2015
+ priceSource: z.ZodEnum<{
2016
+ mid: "mid";
2017
+ mark: "mark";
2018
+ }>;
2019
+ basket: z.ZodArray<z.ZodObject<{
2020
+ symbol: z.ZodString;
2021
+ side: z.ZodEnum<{
2022
+ BUY: "BUY";
2023
+ SELL: "SELL";
2024
+ }>;
2025
+ weight: z.ZodNumber;
2026
+ }, z.core.$strip>>;
2027
+ threshold: z.ZodNumber;
2028
+ }, z.core.$strip>;
2029
+ }, z.core.$strip>, z.ZodObject<{
2030
+ type: z.ZodLiteral<"notional">;
2031
+ data: z.ZodObject<{
2032
+ priceSource: z.ZodEnum<{
2033
+ mid: "mid";
2034
+ mark: "mark";
2035
+ }>;
2036
+ threshold: z.ZodNumber;
2037
+ }, z.core.$strip>;
2038
+ }, z.core.$strip>, z.ZodObject<{
2039
+ type: z.ZodLiteral<"upnl">;
2040
+ data: z.ZodObject<{
2041
+ priceSource: z.ZodEnum<{
2042
+ mid: "mid";
2043
+ mark: "mark";
2044
+ }>;
2045
+ threshold: z.ZodNumber;
2046
+ }, z.core.$strip>;
2047
+ }, z.core.$strip>, z.ZodObject<{
2048
+ type: z.ZodLiteral<"upnl_bps">;
2049
+ data: z.ZodObject<{
2050
+ priceSource: z.ZodEnum<{
2051
+ mid: "mid";
2052
+ mark: "mark";
2053
+ }>;
2054
+ threshold: z.ZodNumber;
2055
+ }, z.core.$strip>;
2056
+ }, z.core.$strip>, z.ZodObject<{
2057
+ type: z.ZodLiteral<"prediction_market">;
2058
+ data: z.ZodObject<{
2059
+ source: z.ZodEnum<{
2060
+ kalshi: "kalshi";
2061
+ polymarket: "polymarket";
2062
+ }>;
2063
+ marketKey: z.ZodString;
2064
+ threshold: z.ZodNumber;
2065
+ }, z.core.$strip>;
2066
+ }, z.core.$strip>], "type">;
2067
+ payload: z.ZodObject<{
2068
+ type: z.ZodLiteral<"TWAP">;
2069
+ durationSec: z.ZodInt;
2070
+ sliceIntervalSec: z.ZodInt;
2071
+ randomization: z.ZodDefault<z.ZodOptional<z.ZodObject<{
2072
+ timingJitterBps: z.ZodInt;
2073
+ sizeJitterBps: z.ZodInt;
2074
+ }, z.core.$strip>>>;
2075
+ }, z.core.$strict>;
2076
+ clientId: z.ZodOptional<z.ZodString>;
2077
+ }, z.core.$strict>, z.ZodObject<{
2078
+ intent: z.ZodLiteral<"CLOSE">;
2079
+ type: z.ZodLiteral<"TWAP">;
2080
+ positionId: z.ZodUUID;
2081
+ condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
2082
+ type: z.ZodLiteral<"ratio_trailing">;
2083
+ data: z.ZodObject<{
2084
+ priceSource: z.ZodEnum<{
2085
+ mid: "mid";
2086
+ mark: "mark";
2087
+ }>;
2088
+ symbol_a: z.ZodString;
2089
+ symbol_b: z.ZodString;
2090
+ }, z.core.$strip>;
2091
+ }, z.core.$strip>, z.ZodObject<{
2092
+ type: z.ZodLiteral<"price_trailing">;
2093
+ data: z.ZodObject<{
2094
+ priceSource: z.ZodEnum<{
2095
+ mid: "mid";
2096
+ mark: "mark";
2097
+ }>;
2098
+ symbol: z.ZodString;
2099
+ }, z.core.$strip>;
2100
+ }, z.core.$strip>, z.ZodObject<{
2101
+ type: z.ZodLiteral<"weighted_ratio_trailing">;
2102
+ data: z.ZodObject<{
2103
+ priceSource: z.ZodEnum<{
2104
+ mid: "mid";
2105
+ mark: "mark";
2106
+ }>;
2107
+ basket: z.ZodArray<z.ZodObject<{
2108
+ symbol: z.ZodString;
2109
+ side: z.ZodEnum<{
2110
+ BUY: "BUY";
2111
+ SELL: "SELL";
2112
+ }>;
2113
+ weight: z.ZodNumber;
2114
+ }, z.core.$strip>>;
2115
+ }, z.core.$strip>;
2116
+ }, z.core.$strip>, z.ZodObject<{
2117
+ type: z.ZodLiteral<"notional_trailing">;
2118
+ data: z.ZodObject<{
2119
+ priceSource: z.ZodEnum<{
2120
+ mid: "mid";
2121
+ mark: "mark";
2122
+ }>;
2123
+ }, z.core.$strip>;
2124
+ }, z.core.$strip>, z.ZodObject<{
2125
+ type: z.ZodLiteral<"upnl_trailing">;
2126
+ data: z.ZodObject<{
2127
+ priceSource: z.ZodEnum<{
2128
+ mid: "mid";
2129
+ mark: "mark";
2130
+ }>;
2131
+ }, z.core.$strip>;
2132
+ }, z.core.$strip>, z.ZodObject<{
2133
+ type: z.ZodLiteral<"upnl_bps_trailing">;
2134
+ data: z.ZodObject<{
2135
+ priceSource: z.ZodEnum<{
2136
+ mid: "mid";
2137
+ mark: "mark";
2138
+ }>;
2139
+ }, z.core.$strip>;
2140
+ }, z.core.$strip>], "type">;
2141
+ trailing: z.ZodObject<{
2142
+ mode: z.ZodEnum<{
2143
+ RELATIVE_BPS: "RELATIVE_BPS";
2144
+ ABSOLUTE_POINTS: "ABSOLUTE_POINTS";
2145
+ }>;
2146
+ deltaValue: z.ZodNumber;
2147
+ activationValue: z.ZodOptional<z.ZodNumber>;
2148
+ }, z.core.$strip>;
2149
+ payload: z.ZodObject<{
2150
+ type: z.ZodLiteral<"TWAP">;
2151
+ durationSec: z.ZodInt;
2152
+ sliceIntervalSec: z.ZodInt;
2153
+ randomization: z.ZodDefault<z.ZodOptional<z.ZodObject<{
2154
+ timingJitterBps: z.ZodInt;
2155
+ sizeJitterBps: z.ZodInt;
2156
+ }, z.core.$strip>>>;
2157
+ }, z.core.$strict>;
2158
+ clientId: z.ZodOptional<z.ZodString>;
2159
+ }, z.core.$strict>]>]>;
1357
2160
  export type CreateTriggerMarketOpen = z.output<typeof CreateTriggerMarketOpen>;
1358
2161
  export type CreateTriggerMarketAdjust = z.output<typeof CreateTriggerMarketAdjust>;
1359
2162
  export type CreateTriggerMarketCloseStatic = z.output<typeof CreateTriggerMarketCloseStatic>;
1360
2163
  export type CreateTriggerMarketCloseTrailing = z.output<typeof CreateTriggerMarketCloseTrailing>;
1361
2164
  export type CreateTriggerMarketClose = z.output<typeof CreateTriggerMarketClose>;
2165
+ export type CreateTriggerTWAPAdjust = z.output<typeof CreateTriggerTWAPAdjust>;
2166
+ export type CreateTriggerTWAPCloseStatic = z.output<typeof CreateTriggerTWAPCloseStatic>;
2167
+ export type CreateTriggerTWAPCloseTrailing = z.output<typeof CreateTriggerTWAPCloseTrailing>;
2168
+ export type CreateTriggerTWAPClose = z.output<typeof CreateTriggerTWAPClose>;
1362
2169
  export type AttachTriggerMarketCloseStatic = z.output<typeof AttachTriggerMarketCloseStatic>;
1363
2170
  export type AttachTriggerMarketCloseTrailing = z.output<typeof AttachTriggerMarketCloseTrailing>;
1364
2171
  export type AttachTriggerMarketClose = z.output<typeof AttachTriggerMarketClose>;