@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
@@ -7,8 +7,11 @@ import { z } from 'zod';
7
7
  * an auto-rebalance config acting on, or stopping itself over, the position it
8
8
  * watches; the `TRIGGER_TWAP_*` categories describe a fired trigger starting,
9
9
  * skipping, failing, or cancelling its TWAP; `TRIGGER_CANCELLED_MIS_SCALED`
10
- * means the remediation sweep cancelled an unreachable stop loss. Outcome lives
11
- * here in the category; display details live in the `parameters` payload below.
10
+ * means the remediation sweep cancelled an unreachable stop loss;
11
+ * `TRIGGER_CANCELLED_POSITION_RESIZED` means a size-dependent close trigger was
12
+ * cancelled because the position was partially closed and the trigger's threshold
13
+ * is no longer valid against the new position size. Outcome lives here in the
14
+ * category; display details live in the `parameters` payload below.
12
15
  */
13
16
  export declare const NotificationCategory: z.ZodEnum<{
14
17
  TAKE_PROFIT_HIT: "TAKE_PROFIT_HIT";
@@ -31,6 +34,7 @@ export declare const NotificationCategory: z.ZodEnum<{
31
34
  COPY_SUBSCRIPTION_STOPPED: "COPY_SUBSCRIPTION_STOPPED";
32
35
  COPY_LEVERAGE_NOT_APPLIED: "COPY_LEVERAGE_NOT_APPLIED";
33
36
  POSITION_LIQUIDATION: "POSITION_LIQUIDATION";
37
+ TRIGGER_CANCELLED_POSITION_RESIZED: "TRIGGER_CANCELLED_POSITION_RESIZED";
34
38
  }>;
35
39
  export type NotificationCategory = z.infer<typeof NotificationCategory>;
36
40
  export declare const NotificationMetric: z.ZodEnum<{
@@ -475,10 +479,13 @@ export declare const NotificationParameters: z.ZodDiscriminatedUnion<[z.ZodObjec
475
479
  type: z.ZodLiteral<"copy_placed">;
476
480
  subscriptionId: z.ZodUUID;
477
481
  activityId: z.ZodUUID;
478
- resource: z.ZodObject<{
482
+ resource: z.ZodDiscriminatedUnion<[z.ZodObject<{
479
483
  kind: z.ZodLiteral<"POSITION">;
480
484
  id: z.ZodUUID;
481
- }, z.core.$strip>;
485
+ }, z.core.$strip>, z.ZodObject<{
486
+ kind: z.ZodLiteral<"SCHEDULE">;
487
+ id: z.ZodUUID;
488
+ }, z.core.$strip>], "kind">;
482
489
  leaderTradeAccountId: z.ZodUUID;
483
490
  }, z.core.$strip>, z.ZodObject<{
484
491
  type: z.ZodLiteral<"copy_failed">;
@@ -498,6 +505,24 @@ export declare const NotificationParameters: z.ZodDiscriminatedUnion<[z.ZodObjec
498
505
  type: z.ZodLiteral<"copy_leverage_not_applied">;
499
506
  subscriptionId: z.ZodUUID;
500
507
  activityId: z.ZodUUID;
508
+ }, z.core.$strip>, z.ZodObject<{
509
+ type: z.ZodLiteral<"trigger_cancelled_position_resized">;
510
+ triggerId: z.ZodUUID;
511
+ positionId: z.ZodUUID;
512
+ connector: z.ZodEnum<{
513
+ hyperliquid: "hyperliquid";
514
+ binance: "binance";
515
+ bybit: "bybit";
516
+ okx: "okx";
517
+ lighter: "lighter";
518
+ lighter_rhc: "lighter_rhc";
519
+ }>;
520
+ metric: z.ZodEnum<{
521
+ notional: "notional";
522
+ upnl: "upnl";
523
+ notional_trailing: "notional_trailing";
524
+ upnl_trailing: "upnl_trailing";
525
+ }>;
501
526
  }, z.core.$strip>], "type">;
502
527
  export type NotificationParameters = z.output<typeof NotificationParameters>;
503
528
  export declare const Notification: z.ZodObject<{
@@ -523,6 +548,7 @@ export declare const Notification: z.ZodObject<{
523
548
  COPY_SUBSCRIPTION_STOPPED: "COPY_SUBSCRIPTION_STOPPED";
524
549
  COPY_LEVERAGE_NOT_APPLIED: "COPY_LEVERAGE_NOT_APPLIED";
525
550
  POSITION_LIQUIDATION: "POSITION_LIQUIDATION";
551
+ TRIGGER_CANCELLED_POSITION_RESIZED: "TRIGGER_CANCELLED_POSITION_RESIZED";
526
552
  }>;
527
553
  parameters: z.ZodDiscriminatedUnion<[z.ZodObject<{
528
554
  type: z.ZodLiteral<"position_liquidation">;
@@ -948,10 +974,13 @@ export declare const Notification: z.ZodObject<{
948
974
  type: z.ZodLiteral<"copy_placed">;
949
975
  subscriptionId: z.ZodUUID;
950
976
  activityId: z.ZodUUID;
951
- resource: z.ZodObject<{
977
+ resource: z.ZodDiscriminatedUnion<[z.ZodObject<{
952
978
  kind: z.ZodLiteral<"POSITION">;
953
979
  id: z.ZodUUID;
954
- }, z.core.$strip>;
980
+ }, z.core.$strip>, z.ZodObject<{
981
+ kind: z.ZodLiteral<"SCHEDULE">;
982
+ id: z.ZodUUID;
983
+ }, z.core.$strip>], "kind">;
955
984
  leaderTradeAccountId: z.ZodUUID;
956
985
  }, z.core.$strip>, z.ZodObject<{
957
986
  type: z.ZodLiteral<"copy_failed">;
@@ -971,6 +1000,24 @@ export declare const Notification: z.ZodObject<{
971
1000
  type: z.ZodLiteral<"copy_leverage_not_applied">;
972
1001
  subscriptionId: z.ZodUUID;
973
1002
  activityId: z.ZodUUID;
1003
+ }, z.core.$strip>, z.ZodObject<{
1004
+ type: z.ZodLiteral<"trigger_cancelled_position_resized">;
1005
+ triggerId: z.ZodUUID;
1006
+ positionId: z.ZodUUID;
1007
+ connector: z.ZodEnum<{
1008
+ hyperliquid: "hyperliquid";
1009
+ binance: "binance";
1010
+ bybit: "bybit";
1011
+ okx: "okx";
1012
+ lighter: "lighter";
1013
+ lighter_rhc: "lighter_rhc";
1014
+ }>;
1015
+ metric: z.ZodEnum<{
1016
+ notional: "notional";
1017
+ upnl: "upnl";
1018
+ notional_trailing: "notional_trailing";
1019
+ upnl_trailing: "upnl_trailing";
1020
+ }>;
974
1021
  }, z.core.$strip>], "type">;
975
1022
  isRead: z.ZodBoolean;
976
1023
  createdAt: z.ZodString;
@@ -23,6 +23,7 @@ export declare const NotificationListResponse: z.ZodObject<{
23
23
  COPY_SUBSCRIPTION_STOPPED: "COPY_SUBSCRIPTION_STOPPED";
24
24
  COPY_LEVERAGE_NOT_APPLIED: "COPY_LEVERAGE_NOT_APPLIED";
25
25
  POSITION_LIQUIDATION: "POSITION_LIQUIDATION";
26
+ TRIGGER_CANCELLED_POSITION_RESIZED: "TRIGGER_CANCELLED_POSITION_RESIZED";
26
27
  }>;
27
28
  parameters: z.ZodDiscriminatedUnion<[z.ZodObject<{
28
29
  type: z.ZodLiteral<"position_liquidation">;
@@ -448,10 +449,13 @@ export declare const NotificationListResponse: z.ZodObject<{
448
449
  type: z.ZodLiteral<"copy_placed">;
449
450
  subscriptionId: z.ZodUUID;
450
451
  activityId: z.ZodUUID;
451
- resource: z.ZodObject<{
452
+ resource: z.ZodDiscriminatedUnion<[z.ZodObject<{
452
453
  kind: z.ZodLiteral<"POSITION">;
453
454
  id: z.ZodUUID;
454
- }, z.core.$strip>;
455
+ }, z.core.$strip>, z.ZodObject<{
456
+ kind: z.ZodLiteral<"SCHEDULE">;
457
+ id: z.ZodUUID;
458
+ }, z.core.$strip>], "kind">;
455
459
  leaderTradeAccountId: z.ZodUUID;
456
460
  }, z.core.$strip>, z.ZodObject<{
457
461
  type: z.ZodLiteral<"copy_failed">;
@@ -471,6 +475,24 @@ export declare const NotificationListResponse: z.ZodObject<{
471
475
  type: z.ZodLiteral<"copy_leverage_not_applied">;
472
476
  subscriptionId: z.ZodUUID;
473
477
  activityId: z.ZodUUID;
478
+ }, z.core.$strip>, z.ZodObject<{
479
+ type: z.ZodLiteral<"trigger_cancelled_position_resized">;
480
+ triggerId: z.ZodUUID;
481
+ positionId: z.ZodUUID;
482
+ connector: z.ZodEnum<{
483
+ hyperliquid: "hyperliquid";
484
+ binance: "binance";
485
+ bybit: "bybit";
486
+ okx: "okx";
487
+ lighter: "lighter";
488
+ lighter_rhc: "lighter_rhc";
489
+ }>;
490
+ metric: z.ZodEnum<{
491
+ notional: "notional";
492
+ upnl: "upnl";
493
+ notional_trailing: "notional_trailing";
494
+ upnl_trailing: "upnl_trailing";
495
+ }>;
474
496
  }, z.core.$strip>], "type">;
475
497
  isRead: z.ZodBoolean;
476
498
  createdAt: z.ZodString;
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  export declare const OrderStatus: z.ZodEnum<{
3
+ CANCELLED: "CANCELLED";
3
4
  PENDING: "PENDING";
4
5
  PARTIAL: "PARTIAL";
5
6
  FILLED: "FILLED";
6
- CANCELLED: "CANCELLED";
7
7
  REJECTED: "REJECTED";
8
8
  }>;
9
9
  export type OrderStatus = z.infer<typeof OrderStatus>;
@@ -18,10 +18,10 @@ export declare const MarketOrder: z.ZodObject<{
18
18
  lighter_rhc: "lighter_rhc";
19
19
  }>;
20
20
  status: z.ZodEnum<{
21
+ CANCELLED: "CANCELLED";
21
22
  PENDING: "PENDING";
22
23
  PARTIAL: "PARTIAL";
23
24
  FILLED: "FILLED";
24
- CANCELLED: "CANCELLED";
25
25
  REJECTED: "REJECTED";
26
26
  }>;
27
27
  error: z.ZodOptional<z.ZodString>;
@@ -51,10 +51,10 @@ export declare const Order: z.ZodDiscriminatedUnion<[z.ZodObject<{
51
51
  lighter_rhc: "lighter_rhc";
52
52
  }>;
53
53
  status: z.ZodEnum<{
54
+ CANCELLED: "CANCELLED";
54
55
  PENDING: "PENDING";
55
56
  PARTIAL: "PARTIAL";
56
57
  FILLED: "FILLED";
57
- CANCELLED: "CANCELLED";
58
58
  REJECTED: "REJECTED";
59
59
  }>;
60
60
  error: z.ZodOptional<z.ZodString>;
@@ -5,9 +5,9 @@ export declare const PositionStatus: z.ZodEnum<{
5
5
  }>;
6
6
  export type PositionStatus = z.infer<typeof PositionStatus>;
7
7
  export declare const PositionClosedReason: z.ZodEnum<{
8
- NETTED: "NETTED";
9
8
  USER: "USER";
10
9
  LIQUIDATED: "LIQUIDATED";
10
+ NETTED: "NETTED";
11
11
  }>;
12
12
  export type PositionClosedReason = z.infer<typeof PositionClosedReason>;
13
13
  /**
@@ -74,9 +74,9 @@ export declare const Position: z.ZodObject<{
74
74
  CLOSED: "CLOSED";
75
75
  }>;
76
76
  closedReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
77
- NETTED: "NETTED";
78
77
  USER: "USER";
79
78
  LIQUIDATED: "LIQUIDATED";
79
+ NETTED: "NETTED";
80
80
  }>>>;
81
81
  origin: z.ZodEnum<{
82
82
  PARTIAL: "PARTIAL";
@@ -242,9 +242,9 @@ export declare const ClosedPosition: z.ZodObject<{
242
242
  openedAt: z.ZodString;
243
243
  closedAt: z.ZodString;
244
244
  closedReason: z.ZodOptional<z.ZodEnum<{
245
- NETTED: "NETTED";
246
245
  USER: "USER";
247
246
  LIQUIDATED: "LIQUIDATED";
247
+ NETTED: "NETTED";
248
248
  }>>;
249
249
  origin: z.ZodEnum<{
250
250
  PARTIAL: "PARTIAL";
@@ -568,12 +568,12 @@ export declare const VaultClosedPosition: z.ZodObject<{
568
568
  lighter: "lighter";
569
569
  lighter_rhc: "lighter_rhc";
570
570
  }>;
571
- netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
572
571
  positionId: z.ZodUUID;
572
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
573
573
  closedReason: z.ZodOptional<z.ZodEnum<{
574
- NETTED: "NETTED";
575
574
  USER: "USER";
576
575
  LIQUIDATED: "LIQUIDATED";
576
+ NETTED: "NETTED";
577
577
  }>>;
578
578
  closedAt: z.ZodString;
579
579
  grossPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
@@ -19,9 +19,9 @@ export declare const PositionListResponse: z.ZodObject<{
19
19
  CLOSED: "CLOSED";
20
20
  }>;
21
21
  closedReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
22
- NETTED: "NETTED";
23
22
  USER: "USER";
24
23
  LIQUIDATED: "LIQUIDATED";
24
+ NETTED: "NETTED";
25
25
  }>>>;
26
26
  origin: z.ZodEnum<{
27
27
  PARTIAL: "PARTIAL";
@@ -112,9 +112,9 @@ export declare const ClosedPositionListResponse: z.ZodObject<{
112
112
  openedAt: z.ZodString;
113
113
  closedAt: z.ZodString;
114
114
  closedReason: z.ZodOptional<z.ZodEnum<{
115
- NETTED: "NETTED";
116
115
  USER: "USER";
117
116
  LIQUIDATED: "LIQUIDATED";
117
+ NETTED: "NETTED";
118
118
  }>>;
119
119
  origin: z.ZodEnum<{
120
120
  PARTIAL: "PARTIAL";
@@ -373,12 +373,12 @@ export declare const VaultClosedPositionListResponse: z.ZodObject<{
373
373
  lighter: "lighter";
374
374
  lighter_rhc: "lighter_rhc";
375
375
  }>;
376
- netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
377
376
  positionId: z.ZodUUID;
377
+ netPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
378
378
  closedReason: z.ZodOptional<z.ZodEnum<{
379
- NETTED: "NETTED";
380
379
  USER: "USER";
381
380
  LIQUIDATED: "LIQUIDATED";
381
+ NETTED: "NETTED";
382
382
  }>>;
383
383
  closedAt: z.ZodString;
384
384
  grossPnl: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
@@ -156,14 +156,14 @@ export declare const WebsocketEventFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
156
156
  lighter_rhc: "lighter_rhc";
157
157
  }>;
158
158
  source: z.ZodEnum<{
159
+ TWAP: "TWAP";
159
160
  DIRECT: "DIRECT";
160
161
  TRIGGER: "TRIGGER";
161
- TWAP: "TWAP";
162
162
  }>;
163
163
  intent: z.ZodEnum<{
164
164
  OPEN: "OPEN";
165
- ADJUST: "ADJUST";
166
165
  CLOSE: "CLOSE";
166
+ ADJUST: "ADJUST";
167
167
  REVERSE: "REVERSE";
168
168
  }>;
169
169
  orderType: z.ZodEnum<{
@@ -208,8 +208,8 @@ export declare const WebsocketEventFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
208
208
  }>;
209
209
  intent: z.ZodEnum<{
210
210
  OPEN: "OPEN";
211
- ADJUST: "ADJUST";
212
211
  CLOSE: "CLOSE";
212
+ ADJUST: "ADJUST";
213
213
  }>;
214
214
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
215
215
  type: z.ZodLiteral<"ratio">;
@@ -273,6 +273,10 @@ export declare const WebsocketEventFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
273
273
  TROUGH: "TROUGH";
274
274
  }>;
275
275
  threshold: z.ZodNumber;
276
+ onPositionResize: z.ZodEnum<{
277
+ cancel: "cancel";
278
+ keep: "keep";
279
+ }>;
276
280
  }, z.core.$strip>;
277
281
  }, z.core.$strip>, z.ZodObject<{
278
282
  type: z.ZodLiteral<"upnl">;
@@ -286,6 +290,10 @@ export declare const WebsocketEventFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
286
290
  TROUGH: "TROUGH";
287
291
  }>;
288
292
  threshold: z.ZodNumber;
293
+ onPositionResize: z.ZodEnum<{
294
+ cancel: "cancel";
295
+ keep: "keep";
296
+ }>;
289
297
  }, z.core.$strip>;
290
298
  }, z.core.$strip>, z.ZodObject<{
291
299
  type: z.ZodLiteral<"upnl_bps">;
@@ -342,6 +350,10 @@ export declare const WebsocketEventFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
342
350
  mid: "mid";
343
351
  mark: "mark";
344
352
  }>;
353
+ onPositionResize: z.ZodEnum<{
354
+ cancel: "cancel";
355
+ keep: "keep";
356
+ }>;
345
357
  }, z.core.$strip>;
346
358
  }, z.core.$strip>, z.ZodObject<{
347
359
  type: z.ZodLiteral<"upnl_trailing">;
@@ -350,6 +362,10 @@ export declare const WebsocketEventFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
350
362
  mid: "mid";
351
363
  mark: "mark";
352
364
  }>;
365
+ onPositionResize: z.ZodEnum<{
366
+ cancel: "cancel";
367
+ keep: "keep";
368
+ }>;
353
369
  }, z.core.$strip>;
354
370
  }, z.core.$strip>, z.ZodObject<{
355
371
  type: z.ZodLiteral<"upnl_bps_trailing">;
@@ -596,14 +612,14 @@ export declare const WebsocketFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
596
612
  lighter_rhc: "lighter_rhc";
597
613
  }>;
598
614
  source: z.ZodEnum<{
615
+ TWAP: "TWAP";
599
616
  DIRECT: "DIRECT";
600
617
  TRIGGER: "TRIGGER";
601
- TWAP: "TWAP";
602
618
  }>;
603
619
  intent: z.ZodEnum<{
604
620
  OPEN: "OPEN";
605
- ADJUST: "ADJUST";
606
621
  CLOSE: "CLOSE";
622
+ ADJUST: "ADJUST";
607
623
  REVERSE: "REVERSE";
608
624
  }>;
609
625
  orderType: z.ZodEnum<{
@@ -648,8 +664,8 @@ export declare const WebsocketFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
648
664
  }>;
649
665
  intent: z.ZodEnum<{
650
666
  OPEN: "OPEN";
651
- ADJUST: "ADJUST";
652
667
  CLOSE: "CLOSE";
668
+ ADJUST: "ADJUST";
653
669
  }>;
654
670
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
655
671
  type: z.ZodLiteral<"ratio">;
@@ -713,6 +729,10 @@ export declare const WebsocketFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
713
729
  TROUGH: "TROUGH";
714
730
  }>;
715
731
  threshold: z.ZodNumber;
732
+ onPositionResize: z.ZodEnum<{
733
+ cancel: "cancel";
734
+ keep: "keep";
735
+ }>;
716
736
  }, z.core.$strip>;
717
737
  }, z.core.$strip>, z.ZodObject<{
718
738
  type: z.ZodLiteral<"upnl">;
@@ -726,6 +746,10 @@ export declare const WebsocketFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
726
746
  TROUGH: "TROUGH";
727
747
  }>;
728
748
  threshold: z.ZodNumber;
749
+ onPositionResize: z.ZodEnum<{
750
+ cancel: "cancel";
751
+ keep: "keep";
752
+ }>;
729
753
  }, z.core.$strip>;
730
754
  }, z.core.$strip>, z.ZodObject<{
731
755
  type: z.ZodLiteral<"upnl_bps">;
@@ -782,6 +806,10 @@ export declare const WebsocketFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
782
806
  mid: "mid";
783
807
  mark: "mark";
784
808
  }>;
809
+ onPositionResize: z.ZodEnum<{
810
+ cancel: "cancel";
811
+ keep: "keep";
812
+ }>;
785
813
  }, z.core.$strip>;
786
814
  }, z.core.$strip>, z.ZodObject<{
787
815
  type: z.ZodLiteral<"upnl_trailing">;
@@ -790,6 +818,10 @@ export declare const WebsocketFrame: z.ZodDiscriminatedUnion<[z.ZodObject<{
790
818
  mid: "mid";
791
819
  mark: "mark";
792
820
  }>;
821
+ onPositionResize: z.ZodEnum<{
822
+ cancel: "cancel";
823
+ keep: "keep";
824
+ }>;
793
825
  }, z.core.$strip>;
794
826
  }, z.core.$strip>, z.ZodObject<{
795
827
  type: z.ZodLiteral<"upnl_bps_trailing">;
@@ -81,14 +81,14 @@ export declare const TradeExecutedData: z.ZodObject<{
81
81
  lighter_rhc: "lighter_rhc";
82
82
  }>;
83
83
  source: z.ZodEnum<{
84
+ TWAP: "TWAP";
84
85
  DIRECT: "DIRECT";
85
86
  TRIGGER: "TRIGGER";
86
- TWAP: "TWAP";
87
87
  }>;
88
88
  intent: z.ZodEnum<{
89
89
  OPEN: "OPEN";
90
- ADJUST: "ADJUST";
91
90
  CLOSE: "CLOSE";
91
+ ADJUST: "ADJUST";
92
92
  REVERSE: "REVERSE";
93
93
  }>;
94
94
  orderType: z.ZodEnum<{
@@ -131,8 +131,8 @@ export declare const TriggerTriggeredPublicData: z.ZodObject<{
131
131
  }>;
132
132
  intent: z.ZodEnum<{
133
133
  OPEN: "OPEN";
134
- ADJUST: "ADJUST";
135
134
  CLOSE: "CLOSE";
135
+ ADJUST: "ADJUST";
136
136
  }>;
137
137
  condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
138
138
  type: z.ZodLiteral<"ratio">;
@@ -196,6 +196,10 @@ export declare const TriggerTriggeredPublicData: z.ZodObject<{
196
196
  TROUGH: "TROUGH";
197
197
  }>;
198
198
  threshold: z.ZodNumber;
199
+ onPositionResize: z.ZodEnum<{
200
+ cancel: "cancel";
201
+ keep: "keep";
202
+ }>;
199
203
  }, z.core.$strip>;
200
204
  }, z.core.$strip>, z.ZodObject<{
201
205
  type: z.ZodLiteral<"upnl">;
@@ -209,6 +213,10 @@ export declare const TriggerTriggeredPublicData: z.ZodObject<{
209
213
  TROUGH: "TROUGH";
210
214
  }>;
211
215
  threshold: z.ZodNumber;
216
+ onPositionResize: z.ZodEnum<{
217
+ cancel: "cancel";
218
+ keep: "keep";
219
+ }>;
212
220
  }, z.core.$strip>;
213
221
  }, z.core.$strip>, z.ZodObject<{
214
222
  type: z.ZodLiteral<"upnl_bps">;
@@ -265,6 +273,10 @@ export declare const TriggerTriggeredPublicData: z.ZodObject<{
265
273
  mid: "mid";
266
274
  mark: "mark";
267
275
  }>;
276
+ onPositionResize: z.ZodEnum<{
277
+ cancel: "cancel";
278
+ keep: "keep";
279
+ }>;
268
280
  }, z.core.$strip>;
269
281
  }, z.core.$strip>, z.ZodObject<{
270
282
  type: z.ZodLiteral<"upnl_trailing">;
@@ -273,6 +285,10 @@ export declare const TriggerTriggeredPublicData: z.ZodObject<{
273
285
  mid: "mid";
274
286
  mark: "mark";
275
287
  }>;
288
+ onPositionResize: z.ZodEnum<{
289
+ cancel: "cancel";
290
+ keep: "keep";
291
+ }>;
276
292
  }, z.core.$strip>;
277
293
  }, z.core.$strip>, z.ZodObject<{
278
294
  type: z.ZodLiteral<"upnl_bps_trailing">;
@@ -1,10 +1,28 @@
1
1
  import { z } from 'zod';
2
+ export declare const RewardSourceAccrual: z.ZodObject<{
3
+ earned: z.ZodString;
4
+ pendingMaturity: z.ZodString;
5
+ pendingFunding: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export type RewardSourceAccrual = z.output<typeof RewardSourceAccrual>;
2
8
  export declare const RewardAccrual: z.ZodObject<{
3
9
  earned: z.ZodString;
4
10
  pendingMaturity: z.ZodString;
5
11
  pendingFunding: z.ZodString;
6
12
  claimable: z.ZodString;
7
13
  paid: z.ZodString;
14
+ sources: z.ZodObject<{
15
+ referral: z.ZodObject<{
16
+ earned: z.ZodString;
17
+ pendingMaturity: z.ZodString;
18
+ pendingFunding: z.ZodString;
19
+ }, z.core.$strip>;
20
+ copy: z.ZodObject<{
21
+ earned: z.ZodString;
22
+ pendingMaturity: z.ZodString;
23
+ pendingFunding: z.ZodString;
24
+ }, z.core.$strip>;
25
+ }, z.core.$strip>;
8
26
  }, z.core.$strip>;
9
27
  export type RewardAccrual = z.output<typeof RewardAccrual>;
10
28
  export declare const RewardClaimStatus: z.ZodEnum<{
@@ -1,3 +1,4 @@
1
1
  export * from './entities';
2
2
  export * from './payloads';
3
+ export * from './queries';
3
4
  export * from './responses';
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export declare const ListRewardClaimsQuery: z.ZodObject<{
3
+ cursor: z.ZodOptional<z.ZodString>;
4
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
5
+ }, z.core.$strip>;
6
+ export type ListRewardClaimsQueryInput = z.input<typeof ListRewardClaimsQuery>;
7
+ export type ListRewardClaimsQuery = z.output<typeof ListRewardClaimsQuery>;
@@ -9,6 +9,18 @@ export declare const RewardAccrualResponse: z.ZodDiscriminatedUnion<[z.ZodObject
9
9
  pendingFunding: z.ZodString;
10
10
  claimable: z.ZodString;
11
11
  paid: z.ZodString;
12
+ sources: z.ZodObject<{
13
+ referral: z.ZodObject<{
14
+ earned: z.ZodString;
15
+ pendingMaturity: z.ZodString;
16
+ pendingFunding: z.ZodString;
17
+ }, z.core.$strip>;
18
+ copy: z.ZodObject<{
19
+ earned: z.ZodString;
20
+ pendingMaturity: z.ZodString;
21
+ pendingFunding: z.ZodString;
22
+ }, z.core.$strip>;
23
+ }, z.core.$strip>;
12
24
  }, z.core.$strip>;
13
25
  }, z.core.$strip>], "status">;
14
26
  export type RewardAccrualResponse = z.output<typeof RewardAccrualResponse>;
@@ -23,6 +35,18 @@ export declare const RewardSummaryResponse: z.ZodObject<{
23
35
  pendingFunding: z.ZodString;
24
36
  claimable: z.ZodString;
25
37
  paid: z.ZodString;
38
+ sources: z.ZodObject<{
39
+ referral: z.ZodObject<{
40
+ earned: z.ZodString;
41
+ pendingMaturity: z.ZodString;
42
+ pendingFunding: z.ZodString;
43
+ }, z.core.$strip>;
44
+ copy: z.ZodObject<{
45
+ earned: z.ZodString;
46
+ pendingMaturity: z.ZodString;
47
+ pendingFunding: z.ZodString;
48
+ }, z.core.$strip>;
49
+ }, z.core.$strip>;
26
50
  }, z.core.$strip>;
27
51
  }, z.core.$strip>], "status">;
28
52
  payout: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -56,6 +80,34 @@ export declare const RewardClaimStatusResponse: z.ZodObject<{
56
80
  transactionHash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
57
81
  }, z.core.$strip>;
58
82
  export type RewardClaimStatusResponse = z.output<typeof RewardClaimStatusResponse>;
83
+ export declare const RewardClaimListResponse: z.ZodObject<{
84
+ limit: z.ZodNumber;
85
+ nextCursor: z.ZodOptional<z.ZodString>;
86
+ items: z.ZodArray<z.ZodObject<{
87
+ claimId: z.ZodUUID;
88
+ status: z.ZodEnum<{
89
+ TRANSFER_INTENT_READY: "TRANSFER_INTENT_READY";
90
+ PAYOUT_PENDING: "PAYOUT_PENDING";
91
+ PAID: "PAID";
92
+ RELEASED: "RELEASED";
93
+ NO_CLAIMABLE_BALANCE: "NO_CLAIMABLE_BALANCE";
94
+ CLAIMABILITY_DISABLED: "CLAIMABILITY_DISABLED";
95
+ NO_CAPACITY: "NO_CAPACITY";
96
+ MISSING_BALANCE: "MISSING_BALANCE";
97
+ STALE_BALANCE: "STALE_BALANCE";
98
+ PAYOUT_DISABLED: "PAYOUT_DISABLED";
99
+ }>;
100
+ payoutDestination: z.ZodString;
101
+ entitledAmount: z.ZodString;
102
+ reservedAmount: z.ZodOptional<z.ZodString>;
103
+ transferIntentCreatedAt: z.ZodOptional<z.ZodISODateTime>;
104
+ verifiedAt: z.ZodOptional<z.ZodISODateTime>;
105
+ createdAt: z.ZodISODateTime;
106
+ updatedAt: z.ZodISODateTime;
107
+ transactionHash: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
108
+ }, z.core.$strip>>;
109
+ }, z.core.$strip>;
110
+ export type RewardClaimListResponse = z.output<typeof RewardClaimListResponse>;
59
111
  export declare const RewardClaimResponse: z.ZodObject<{
60
112
  claimId: z.ZodOptional<z.ZodUUID>;
61
113
  status: z.ZodEnum<{