@pear-protocol/types 2.11.0 → 2.12.1
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.
- package/dist/auth/payloads.d.ts +3 -3
- package/dist/auth/payloads.js +1 -1
- package/dist/baskets/saved/entities.js +1 -1
- package/dist/bundle.d.ts +2 -0
- package/dist/bundle.js +2 -0
- package/dist/common/refinement.d.ts +3 -3
- package/dist/common/trade-legs.js +1 -1
- package/dist/copy/entities.d.ts +186 -0
- package/dist/copy/entities.js +113 -0
- package/dist/copy/index.d.ts +4 -0
- package/dist/copy/index.js +4 -0
- package/dist/copy/payloads.d.ts +14 -0
- package/dist/copy/payloads.js +8 -0
- package/dist/copy/queries.d.ts +13 -0
- package/dist/copy/queries.js +16 -0
- package/dist/copy/responses.d.ts +332 -0
- package/dist/copy/responses.js +91 -0
- package/dist/execution/entities.d.ts +71 -71
- package/dist/execution/entities.js +1 -1
- package/dist/execution/queries.d.ts +2 -2
- package/dist/execution/responses.d.ts +40 -40
- package/dist/ladder/entities.d.ts +22 -17
- package/dist/ladder/queries.d.ts +5 -0
- package/dist/ladder/queries.js +6 -2
- package/dist/ladder/responses.d.ts +63 -48
- package/dist/misc/payloads.d.ts +26 -0
- package/dist/misc/payloads.js +27 -1
- package/dist/misc/responses.d.ts +8 -0
- package/dist/misc/responses.js +7 -1
- package/dist/notification/entities.d.ts +120 -0
- package/dist/notification/entities.js +59 -3
- package/dist/notification/responses.d.ts +60 -0
- package/dist/order/entities.d.ts +3 -3
- package/dist/position/entities.d.ts +1 -1
- package/dist/position/responses.d.ts +3 -1
- package/dist/position/responses.js +2 -0
- package/dist/schedule/entities.d.ts +18 -12
- package/dist/schedule/entities.js +2 -1
- package/dist/schedule/queries.d.ts +2 -2
- package/dist/schedule/responses.d.ts +12 -8
- package/dist/schedule/twap-config.js +1 -1
- package/dist/statistics/entities.d.ts +10 -0
- package/dist/statistics/entities.js +4 -0
- package/dist/statistics/responses.d.ts +10 -0
- package/dist/sync/payloads.d.ts +12 -0
- package/dist/sync/payloads.js +31 -3
- package/dist/tca/responses.d.ts +12 -12
- package/dist/trade/responses.d.ts +100 -100
- package/dist/trade-accounts/entities.d.ts +136 -12
- package/dist/trade-accounts/entities.js +41 -9
- package/dist/trade-accounts/payloads.d.ts +12 -0
- package/dist/trade-accounts/payloads.js +7 -1
- package/dist/trade-accounts/response.d.ts +963 -223
- package/dist/traders/index.d.ts +1 -0
- package/dist/traders/index.js +1 -0
- package/dist/traders/public.d.ts +5053 -0
- package/dist/traders/public.js +161 -0
- package/dist/trigger/common/index.d.ts +3 -2
- package/dist/trigger/common/index.js +1 -0
- package/dist/trigger/entities/index.d.ts +64 -48
- package/dist/trigger/entities/index.js +3 -3
- package/dist/trigger/queries.d.ts +2 -2
- package/dist/trigger/responses.d.ts +40 -30
- package/dist/vaults/entities.d.ts +1 -1
- package/dist/vaults/responses.d.ts +2 -2
- package/package.json +2 -2
|
@@ -88,10 +88,10 @@ const BaseTrigger = z.object({
|
|
|
88
88
|
/**
|
|
89
89
|
* User-facing bracket semantics. `bracketType` is the crossing encoding the gateway
|
|
90
90
|
* fires on (wire-flipped for a price bracket on a short watched leg); this field is
|
|
91
|
-
* what the user asked for
|
|
92
|
-
* unknowable
|
|
91
|
+
* what the user asked for, so present this one as intent. Always stated: where a
|
|
92
|
+
* legacy client's encoding was unknowable, it carries `bracketType` as a best guess.
|
|
93
93
|
*/
|
|
94
|
-
semanticBracketType: BracketType
|
|
94
|
+
semanticBracketType: BracketType,
|
|
95
95
|
/**
|
|
96
96
|
* Created at timestamp
|
|
97
97
|
*/
|
|
@@ -10,9 +10,9 @@ export declare const TriggerListParams: z.ZodObject<{
|
|
|
10
10
|
lighter: "lighter";
|
|
11
11
|
lighter_rhc: "lighter_rhc";
|
|
12
12
|
}>>;
|
|
13
|
-
status: z.ZodOptional<z.ZodPipe<z.ZodTransform<string[] | (("
|
|
14
|
-
CANCELLED: "CANCELLED";
|
|
13
|
+
status: z.ZodOptional<z.ZodPipe<z.ZodTransform<string[] | (("ACTIVE" | "CANCELLED" | "COMPLETED")[] & any[]) | undefined, ("ACTIVE" | "CANCELLED" | "COMPLETED")[]>, z.ZodArray<z.ZodEnum<{
|
|
15
14
|
ACTIVE: "ACTIVE";
|
|
15
|
+
CANCELLED: "CANCELLED";
|
|
16
16
|
COMPLETED: "COMPLETED";
|
|
17
17
|
}>>>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
@@ -14,8 +14,8 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
14
14
|
lighter_rhc: "lighter_rhc";
|
|
15
15
|
}>;
|
|
16
16
|
status: z.ZodEnum<{
|
|
17
|
-
CANCELLED: "CANCELLED";
|
|
18
17
|
ACTIVE: "ACTIVE";
|
|
18
|
+
CANCELLED: "CANCELLED";
|
|
19
19
|
TRIGGERED: "TRIGGERED";
|
|
20
20
|
}>;
|
|
21
21
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -28,6 +28,7 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
28
28
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
29
29
|
SYSTEM: "SYSTEM";
|
|
30
30
|
POSITION_NETTED: "POSITION_NETTED";
|
|
31
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
31
32
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
32
33
|
}>>;
|
|
33
34
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -73,11 +74,11 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
73
74
|
STOP_LOSS: "STOP_LOSS";
|
|
74
75
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
75
76
|
}>;
|
|
76
|
-
semanticBracketType: z.
|
|
77
|
+
semanticBracketType: z.ZodEnum<{
|
|
77
78
|
NONE: "NONE";
|
|
78
79
|
STOP_LOSS: "STOP_LOSS";
|
|
79
80
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
80
|
-
}
|
|
81
|
+
}>;
|
|
81
82
|
createdAt: z.ZodString;
|
|
82
83
|
updatedAt: z.ZodString;
|
|
83
84
|
intent: z.ZodLiteral<"OPEN">;
|
|
@@ -225,8 +226,8 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
225
226
|
lighter_rhc: "lighter_rhc";
|
|
226
227
|
}>;
|
|
227
228
|
status: z.ZodEnum<{
|
|
228
|
-
CANCELLED: "CANCELLED";
|
|
229
229
|
ACTIVE: "ACTIVE";
|
|
230
|
+
CANCELLED: "CANCELLED";
|
|
230
231
|
TRIGGERED: "TRIGGERED";
|
|
231
232
|
}>;
|
|
232
233
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -239,6 +240,7 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
239
240
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
240
241
|
SYSTEM: "SYSTEM";
|
|
241
242
|
POSITION_NETTED: "POSITION_NETTED";
|
|
243
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
242
244
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
243
245
|
}>>;
|
|
244
246
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -284,11 +286,11 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
284
286
|
STOP_LOSS: "STOP_LOSS";
|
|
285
287
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
286
288
|
}>;
|
|
287
|
-
semanticBracketType: z.
|
|
289
|
+
semanticBracketType: z.ZodEnum<{
|
|
288
290
|
NONE: "NONE";
|
|
289
291
|
STOP_LOSS: "STOP_LOSS";
|
|
290
292
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
291
|
-
}
|
|
293
|
+
}>;
|
|
292
294
|
createdAt: z.ZodString;
|
|
293
295
|
updatedAt: z.ZodString;
|
|
294
296
|
intent: z.ZodLiteral<"ADJUST">;
|
|
@@ -482,8 +484,8 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
482
484
|
lighter_rhc: "lighter_rhc";
|
|
483
485
|
}>;
|
|
484
486
|
status: z.ZodEnum<{
|
|
485
|
-
CANCELLED: "CANCELLED";
|
|
486
487
|
ACTIVE: "ACTIVE";
|
|
488
|
+
CANCELLED: "CANCELLED";
|
|
487
489
|
TRIGGERED: "TRIGGERED";
|
|
488
490
|
}>;
|
|
489
491
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -496,6 +498,7 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
496
498
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
497
499
|
SYSTEM: "SYSTEM";
|
|
498
500
|
POSITION_NETTED: "POSITION_NETTED";
|
|
501
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
499
502
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
500
503
|
}>>;
|
|
501
504
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -541,11 +544,11 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
541
544
|
STOP_LOSS: "STOP_LOSS";
|
|
542
545
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
543
546
|
}>;
|
|
544
|
-
semanticBracketType: z.
|
|
547
|
+
semanticBracketType: z.ZodEnum<{
|
|
545
548
|
NONE: "NONE";
|
|
546
549
|
STOP_LOSS: "STOP_LOSS";
|
|
547
550
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
548
|
-
}
|
|
551
|
+
}>;
|
|
549
552
|
createdAt: z.ZodString;
|
|
550
553
|
updatedAt: z.ZodString;
|
|
551
554
|
intent: z.ZodLiteral<"CLOSE">;
|
|
@@ -771,8 +774,8 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
771
774
|
lighter_rhc: "lighter_rhc";
|
|
772
775
|
}>;
|
|
773
776
|
status: z.ZodEnum<{
|
|
774
|
-
CANCELLED: "CANCELLED";
|
|
775
777
|
ACTIVE: "ACTIVE";
|
|
778
|
+
CANCELLED: "CANCELLED";
|
|
776
779
|
TRIGGERED: "TRIGGERED";
|
|
777
780
|
}>;
|
|
778
781
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -785,6 +788,7 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
785
788
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
786
789
|
SYSTEM: "SYSTEM";
|
|
787
790
|
POSITION_NETTED: "POSITION_NETTED";
|
|
791
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
788
792
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
789
793
|
}>>;
|
|
790
794
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -830,11 +834,11 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
830
834
|
STOP_LOSS: "STOP_LOSS";
|
|
831
835
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
832
836
|
}>;
|
|
833
|
-
semanticBracketType: z.
|
|
837
|
+
semanticBracketType: z.ZodEnum<{
|
|
834
838
|
NONE: "NONE";
|
|
835
839
|
STOP_LOSS: "STOP_LOSS";
|
|
836
840
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
837
|
-
}
|
|
841
|
+
}>;
|
|
838
842
|
createdAt: z.ZodString;
|
|
839
843
|
updatedAt: z.ZodString;
|
|
840
844
|
intent: z.ZodLiteral<"ADJUST">;
|
|
@@ -1026,8 +1030,8 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
1026
1030
|
lighter_rhc: "lighter_rhc";
|
|
1027
1031
|
}>;
|
|
1028
1032
|
status: z.ZodEnum<{
|
|
1029
|
-
CANCELLED: "CANCELLED";
|
|
1030
1033
|
ACTIVE: "ACTIVE";
|
|
1034
|
+
CANCELLED: "CANCELLED";
|
|
1031
1035
|
TRIGGERED: "TRIGGERED";
|
|
1032
1036
|
}>;
|
|
1033
1037
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -1040,6 +1044,7 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
1040
1044
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1041
1045
|
SYSTEM: "SYSTEM";
|
|
1042
1046
|
POSITION_NETTED: "POSITION_NETTED";
|
|
1047
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1043
1048
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1044
1049
|
}>>;
|
|
1045
1050
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1085,11 +1090,11 @@ export declare const TriggerListResponse: z.ZodObject<{
|
|
|
1085
1090
|
STOP_LOSS: "STOP_LOSS";
|
|
1086
1091
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1087
1092
|
}>;
|
|
1088
|
-
semanticBracketType: z.
|
|
1093
|
+
semanticBracketType: z.ZodEnum<{
|
|
1089
1094
|
NONE: "NONE";
|
|
1090
1095
|
STOP_LOSS: "STOP_LOSS";
|
|
1091
1096
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1092
|
-
}
|
|
1097
|
+
}>;
|
|
1093
1098
|
createdAt: z.ZodString;
|
|
1094
1099
|
updatedAt: z.ZodString;
|
|
1095
1100
|
intent: z.ZodLiteral<"CLOSE">;
|
|
@@ -1326,8 +1331,8 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
1326
1331
|
lighter_rhc: "lighter_rhc";
|
|
1327
1332
|
}>;
|
|
1328
1333
|
status: z.ZodEnum<{
|
|
1329
|
-
CANCELLED: "CANCELLED";
|
|
1330
1334
|
ACTIVE: "ACTIVE";
|
|
1335
|
+
CANCELLED: "CANCELLED";
|
|
1331
1336
|
TRIGGERED: "TRIGGERED";
|
|
1332
1337
|
}>;
|
|
1333
1338
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -1340,6 +1345,7 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
1340
1345
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1341
1346
|
SYSTEM: "SYSTEM";
|
|
1342
1347
|
POSITION_NETTED: "POSITION_NETTED";
|
|
1348
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1343
1349
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1344
1350
|
}>>;
|
|
1345
1351
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1385,11 +1391,11 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
1385
1391
|
STOP_LOSS: "STOP_LOSS";
|
|
1386
1392
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1387
1393
|
}>;
|
|
1388
|
-
semanticBracketType: z.
|
|
1394
|
+
semanticBracketType: z.ZodEnum<{
|
|
1389
1395
|
NONE: "NONE";
|
|
1390
1396
|
STOP_LOSS: "STOP_LOSS";
|
|
1391
1397
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1392
|
-
}
|
|
1398
|
+
}>;
|
|
1393
1399
|
createdAt: z.ZodString;
|
|
1394
1400
|
updatedAt: z.ZodString;
|
|
1395
1401
|
intent: z.ZodLiteral<"OPEN">;
|
|
@@ -1537,8 +1543,8 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
1537
1543
|
lighter_rhc: "lighter_rhc";
|
|
1538
1544
|
}>;
|
|
1539
1545
|
status: z.ZodEnum<{
|
|
1540
|
-
CANCELLED: "CANCELLED";
|
|
1541
1546
|
ACTIVE: "ACTIVE";
|
|
1547
|
+
CANCELLED: "CANCELLED";
|
|
1542
1548
|
TRIGGERED: "TRIGGERED";
|
|
1543
1549
|
}>;
|
|
1544
1550
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -1551,6 +1557,7 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
1551
1557
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1552
1558
|
SYSTEM: "SYSTEM";
|
|
1553
1559
|
POSITION_NETTED: "POSITION_NETTED";
|
|
1560
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1554
1561
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1555
1562
|
}>>;
|
|
1556
1563
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1596,11 +1603,11 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
1596
1603
|
STOP_LOSS: "STOP_LOSS";
|
|
1597
1604
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1598
1605
|
}>;
|
|
1599
|
-
semanticBracketType: z.
|
|
1606
|
+
semanticBracketType: z.ZodEnum<{
|
|
1600
1607
|
NONE: "NONE";
|
|
1601
1608
|
STOP_LOSS: "STOP_LOSS";
|
|
1602
1609
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1603
|
-
}
|
|
1610
|
+
}>;
|
|
1604
1611
|
createdAt: z.ZodString;
|
|
1605
1612
|
updatedAt: z.ZodString;
|
|
1606
1613
|
intent: z.ZodLiteral<"ADJUST">;
|
|
@@ -1794,8 +1801,8 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
1794
1801
|
lighter_rhc: "lighter_rhc";
|
|
1795
1802
|
}>;
|
|
1796
1803
|
status: z.ZodEnum<{
|
|
1797
|
-
CANCELLED: "CANCELLED";
|
|
1798
1804
|
ACTIVE: "ACTIVE";
|
|
1805
|
+
CANCELLED: "CANCELLED";
|
|
1799
1806
|
TRIGGERED: "TRIGGERED";
|
|
1800
1807
|
}>;
|
|
1801
1808
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -1808,6 +1815,7 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
1808
1815
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
1809
1816
|
SYSTEM: "SYSTEM";
|
|
1810
1817
|
POSITION_NETTED: "POSITION_NETTED";
|
|
1818
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
1811
1819
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
1812
1820
|
}>>;
|
|
1813
1821
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1853,11 +1861,11 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
1853
1861
|
STOP_LOSS: "STOP_LOSS";
|
|
1854
1862
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1855
1863
|
}>;
|
|
1856
|
-
semanticBracketType: z.
|
|
1864
|
+
semanticBracketType: z.ZodEnum<{
|
|
1857
1865
|
NONE: "NONE";
|
|
1858
1866
|
STOP_LOSS: "STOP_LOSS";
|
|
1859
1867
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
1860
|
-
}
|
|
1868
|
+
}>;
|
|
1861
1869
|
createdAt: z.ZodString;
|
|
1862
1870
|
updatedAt: z.ZodString;
|
|
1863
1871
|
intent: z.ZodLiteral<"CLOSE">;
|
|
@@ -2083,8 +2091,8 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
2083
2091
|
lighter_rhc: "lighter_rhc";
|
|
2084
2092
|
}>;
|
|
2085
2093
|
status: z.ZodEnum<{
|
|
2086
|
-
CANCELLED: "CANCELLED";
|
|
2087
2094
|
ACTIVE: "ACTIVE";
|
|
2095
|
+
CANCELLED: "CANCELLED";
|
|
2088
2096
|
TRIGGERED: "TRIGGERED";
|
|
2089
2097
|
}>;
|
|
2090
2098
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -2097,6 +2105,7 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
2097
2105
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2098
2106
|
SYSTEM: "SYSTEM";
|
|
2099
2107
|
POSITION_NETTED: "POSITION_NETTED";
|
|
2108
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2100
2109
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2101
2110
|
}>>;
|
|
2102
2111
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2142,11 +2151,11 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
2142
2151
|
STOP_LOSS: "STOP_LOSS";
|
|
2143
2152
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2144
2153
|
}>;
|
|
2145
|
-
semanticBracketType: z.
|
|
2154
|
+
semanticBracketType: z.ZodEnum<{
|
|
2146
2155
|
NONE: "NONE";
|
|
2147
2156
|
STOP_LOSS: "STOP_LOSS";
|
|
2148
2157
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2149
|
-
}
|
|
2158
|
+
}>;
|
|
2150
2159
|
createdAt: z.ZodString;
|
|
2151
2160
|
updatedAt: z.ZodString;
|
|
2152
2161
|
intent: z.ZodLiteral<"ADJUST">;
|
|
@@ -2338,8 +2347,8 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
2338
2347
|
lighter_rhc: "lighter_rhc";
|
|
2339
2348
|
}>;
|
|
2340
2349
|
status: z.ZodEnum<{
|
|
2341
|
-
CANCELLED: "CANCELLED";
|
|
2342
2350
|
ACTIVE: "ACTIVE";
|
|
2351
|
+
CANCELLED: "CANCELLED";
|
|
2343
2352
|
TRIGGERED: "TRIGGERED";
|
|
2344
2353
|
}>;
|
|
2345
2354
|
ladderId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -2352,6 +2361,7 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
2352
2361
|
POSITION_CLOSED: "POSITION_CLOSED";
|
|
2353
2362
|
SYSTEM: "SYSTEM";
|
|
2354
2363
|
POSITION_NETTED: "POSITION_NETTED";
|
|
2364
|
+
POSITION_LIQUIDATED: "POSITION_LIQUIDATED";
|
|
2355
2365
|
POSITION_REVERSED: "POSITION_REVERSED";
|
|
2356
2366
|
}>>;
|
|
2357
2367
|
fills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2397,11 +2407,11 @@ export declare const CreateTriggerResponse: z.ZodObject<{
|
|
|
2397
2407
|
STOP_LOSS: "STOP_LOSS";
|
|
2398
2408
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2399
2409
|
}>;
|
|
2400
|
-
semanticBracketType: z.
|
|
2410
|
+
semanticBracketType: z.ZodEnum<{
|
|
2401
2411
|
NONE: "NONE";
|
|
2402
2412
|
STOP_LOSS: "STOP_LOSS";
|
|
2403
2413
|
TAKE_PROFIT: "TAKE_PROFIT";
|
|
2404
|
-
}
|
|
2414
|
+
}>;
|
|
2405
2415
|
createdAt: z.ZodString;
|
|
2406
2416
|
updatedAt: z.ZodString;
|
|
2407
2417
|
intent: z.ZodLiteral<"CLOSE">;
|
|
@@ -40,8 +40,8 @@ export declare const Activity: z.ZodObject<{
|
|
|
40
40
|
"bridge.withdraw_to_evm": "bridge.withdraw_to_evm";
|
|
41
41
|
}>;
|
|
42
42
|
status: z.ZodEnum<{
|
|
43
|
-
failed: "failed";
|
|
44
43
|
pending: "pending";
|
|
44
|
+
failed: "failed";
|
|
45
45
|
succeeded: "succeeded";
|
|
46
46
|
}>;
|
|
47
47
|
txHash: z.ZodOptional<z.ZodString>;
|
|
@@ -321,8 +321,8 @@ export declare const ActivityResponse: z.ZodObject<{
|
|
|
321
321
|
"bridge.withdraw_to_evm": "bridge.withdraw_to_evm";
|
|
322
322
|
}>;
|
|
323
323
|
status: z.ZodEnum<{
|
|
324
|
-
failed: "failed";
|
|
325
324
|
pending: "pending";
|
|
325
|
+
failed: "failed";
|
|
326
326
|
succeeded: "succeeded";
|
|
327
327
|
}>;
|
|
328
328
|
txHash: z.ZodOptional<z.ZodString>;
|
|
@@ -343,8 +343,8 @@ export declare const ActivityItemResponse: z.ZodObject<{
|
|
|
343
343
|
"bridge.withdraw_to_evm": "bridge.withdraw_to_evm";
|
|
344
344
|
}>;
|
|
345
345
|
status: z.ZodEnum<{
|
|
346
|
-
failed: "failed";
|
|
347
346
|
pending: "pending";
|
|
347
|
+
failed: "failed";
|
|
348
348
|
succeeded: "succeeded";
|
|
349
349
|
}>;
|
|
350
350
|
txHash: z.ZodOptional<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pear-protocol/types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.1",
|
|
4
4
|
"description": "Pear Protocol Types definitions",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"scripts": {
|
|
23
|
-
"test": "vitest run",
|
|
23
|
+
"test": "vitest run --typecheck",
|
|
24
24
|
"build": "tsup && tsc -p tsconfig.build.json",
|
|
25
25
|
"clean": "rm -rf dist .turbo",
|
|
26
26
|
"typecheck": "tsc --noEmit"
|