@pear-protocol/types 2.22.1 → 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 (44) hide show
  1. package/dist/bundle.d.ts +1 -0
  2. package/dist/common/transaction-hash.d.ts +7 -0
  3. package/dist/copy/entities.d.ts +160 -10
  4. package/dist/copy/responses.d.ts +95 -11
  5. package/dist/execution/entities.d.ts +43 -43
  6. package/dist/execution/queries.d.ts +3 -2
  7. package/dist/execution/responses.d.ts +24 -24
  8. package/dist/fill/entities.d.ts +60 -1
  9. package/dist/fill/queries.d.ts +1 -0
  10. package/dist/fill/responses.d.ts +34 -4
  11. package/dist/index.js +668 -410
  12. package/dist/ladder/entities.d.ts +141 -24
  13. package/dist/ladder/payloads.d.ts +60 -24
  14. package/dist/ladder/queries.d.ts +2 -2
  15. package/dist/ladder/responses.d.ts +420 -69
  16. package/dist/notification/entities.d.ts +53 -6
  17. package/dist/notification/responses.d.ts +24 -2
  18. package/dist/order/entities.d.ts +3 -3
  19. package/dist/position/entities.d.ts +5 -5
  20. package/dist/position/responses.d.ts +4 -4
  21. package/dist/realtime/frames.d.ts +38 -6
  22. package/dist/realtime/public-events.d.ts +19 -3
  23. package/dist/rewards/entities.d.ts +18 -0
  24. package/dist/rewards/index.d.ts +1 -0
  25. package/dist/rewards/queries.d.ts +7 -0
  26. package/dist/rewards/responses.d.ts +54 -0
  27. package/dist/schedule/entities.d.ts +155 -19
  28. package/dist/schedule/index.d.ts +1 -0
  29. package/dist/schedule/queries.d.ts +3 -2
  30. package/dist/schedule/responses.d.ts +142 -19
  31. package/dist/sync/payloads.d.ts +56 -88
  32. package/dist/tca/responses.d.ts +12 -12
  33. package/dist/trade/payloads.d.ts +60 -24
  34. package/dist/trade/responses.d.ts +60 -60
  35. package/dist/traders/performance.d.ts +4 -0
  36. package/dist/traders/public.d.ts +537 -285
  37. package/dist/trigger/common/index.d.ts +8 -2
  38. package/dist/trigger/entities/conditions.d.ts +40 -0
  39. package/dist/trigger/entities/index.d.ts +339 -32
  40. package/dist/trigger/payloads/conditions.d.ts +70 -38
  41. package/dist/trigger/payloads/index.d.ts +408 -216
  42. package/dist/trigger/queries.d.ts +2 -2
  43. package/dist/trigger/responses.d.ts +218 -20
  44. package/package.json +1 -1
@@ -13,7 +13,9 @@ export declare const FillListResponse: z.ZodObject<{
13
13
  }>;
14
14
  tradeAccountId: z.ZodUUID;
15
15
  symbol: z.ZodString;
16
- positionId: z.ZodUUID;
16
+ executionId: z.ZodOptional<z.ZodUUID>;
17
+ scheduleId: z.ZodOptional<z.ZodUUID>;
18
+ triggerId: z.ZodOptional<z.ZodUUID>;
17
19
  connector: z.ZodEnum<{
18
20
  hyperliquid: "hyperliquid";
19
21
  binance: "binance";
@@ -39,6 +41,13 @@ export declare const FillListResponse: z.ZodObject<{
39
41
  exchangeFillId: z.ZodString;
40
42
  quantity: z.ZodString;
41
43
  }, z.core.$strip>>;
44
+ assignments: z.ZodArray<z.ZodObject<{
45
+ positionId: z.ZodUUID;
46
+ quantity: z.ZodString;
47
+ usd: z.ZodString;
48
+ tradeFee: z.ZodOptional<z.ZodString>;
49
+ pearFee: z.ZodOptional<z.ZodString>;
50
+ }, z.core.$strip>>;
42
51
  }, z.core.$strip>>;
43
52
  }, z.core.$strip>;
44
53
  export type FillListResponse = z.output<typeof FillListResponse>;
@@ -54,7 +63,9 @@ export declare const PositionFillListResponse: z.ZodObject<{
54
63
  }>;
55
64
  tradeAccountId: z.ZodUUID;
56
65
  symbol: z.ZodString;
57
- positionId: z.ZodUUID;
66
+ executionId: z.ZodOptional<z.ZodUUID>;
67
+ scheduleId: z.ZodOptional<z.ZodUUID>;
68
+ triggerId: z.ZodOptional<z.ZodUUID>;
58
69
  connector: z.ZodEnum<{
59
70
  hyperliquid: "hyperliquid";
60
71
  binance: "binance";
@@ -80,12 +91,22 @@ export declare const PositionFillListResponse: z.ZodObject<{
80
91
  exchangeFillId: z.ZodString;
81
92
  quantity: z.ZodString;
82
93
  }, z.core.$strip>>;
94
+ positionId: z.ZodUUID;
83
95
  }, z.core.$strip>>;
84
96
  }, z.core.$strip>;
85
97
  export type PositionFillListResponse = z.output<typeof PositionFillListResponse>;
86
98
  export declare const ProvisionalFill: z.ZodObject<{
87
99
  id: z.ZodUUID;
88
- positionId: z.ZodUUID;
100
+ tradeAccountId: z.ZodUUID;
101
+ connector: z.ZodEnum<{
102
+ hyperliquid: "hyperliquid";
103
+ binance: "binance";
104
+ bybit: "bybit";
105
+ okx: "okx";
106
+ lighter: "lighter";
107
+ lighter_rhc: "lighter_rhc";
108
+ }>;
109
+ executionId: z.ZodOptional<z.ZodUUID>;
89
110
  symbol: z.ZodString;
90
111
  cloid: z.ZodOptional<z.ZodString>;
91
112
  status: z.ZodLiteral<"PROVISIONAL">;
@@ -93,7 +114,16 @@ export declare const ProvisionalFill: z.ZodObject<{
93
114
  export declare const ProvisionalFillListResponse: z.ZodObject<{
94
115
  fills: z.ZodArray<z.ZodObject<{
95
116
  id: z.ZodUUID;
96
- positionId: z.ZodUUID;
117
+ tradeAccountId: z.ZodUUID;
118
+ connector: z.ZodEnum<{
119
+ hyperliquid: "hyperliquid";
120
+ binance: "binance";
121
+ bybit: "bybit";
122
+ okx: "okx";
123
+ lighter: "lighter";
124
+ lighter_rhc: "lighter_rhc";
125
+ }>;
126
+ executionId: z.ZodOptional<z.ZodUUID>;
97
127
  symbol: z.ZodString;
98
128
  cloid: z.ZodOptional<z.ZodString>;
99
129
  status: z.ZodLiteral<"PROVISIONAL">;