@pear-protocol/types 2.7.0 → 2.10.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 (37) hide show
  1. package/dist/bundle.d.ts +1 -0
  2. package/dist/bundle.js +1 -0
  3. package/dist/common/address.d.ts +8 -2
  4. package/dist/common/trade-legs.d.ts +33 -0
  5. package/dist/common/trade-legs.js +12 -1
  6. package/dist/execution/entities.d.ts +107 -0
  7. package/dist/execution/entities.js +25 -2
  8. package/dist/execution/responses.d.ts +62 -0
  9. package/dist/ladder/entities.d.ts +10 -10
  10. package/dist/ladder/responses.d.ts +30 -30
  11. package/dist/position/responses.d.ts +3 -2
  12. package/dist/sync/payloads.d.ts +11 -0
  13. package/dist/sync/payloads.js +6 -2
  14. package/dist/sync/responses.d.ts +1 -0
  15. package/dist/sync/responses.js +8 -1
  16. package/dist/trade/payloads.d.ts +28 -74
  17. package/dist/trade/payloads.js +17 -21
  18. package/dist/trade/responses.d.ts +155 -9
  19. package/dist/trade/responses.js +1 -9
  20. package/dist/trade-accounts/payloads.d.ts +14 -13
  21. package/dist/trigger/common/index.d.ts +1 -1
  22. package/dist/trigger/entities/index.d.ts +32 -32
  23. package/dist/trigger/payloads/index.d.ts +6 -6
  24. package/dist/trigger/responses.d.ts +20 -20
  25. package/dist/users/entities.d.ts +5 -4
  26. package/dist/users/response.d.ts +2 -2
  27. package/dist/vaults/entities.d.ts +111 -0
  28. package/dist/vaults/entities.js +96 -0
  29. package/dist/vaults/index.d.ts +4 -0
  30. package/dist/vaults/index.js +4 -0
  31. package/dist/vaults/payloads.d.ts +140 -0
  32. package/dist/vaults/payloads.js +65 -0
  33. package/dist/vaults/queries.d.ts +96 -0
  34. package/dist/vaults/queries.js +66 -0
  35. package/dist/vaults/responses.d.ts +574 -0
  36. package/dist/vaults/responses.js +359 -0
  37. package/package.json +1 -1
@@ -77,14 +77,14 @@ declare const BaseTrigger: z.ZodObject<{
77
77
  }, z.core.$strip>>;
78
78
  }, z.core.$strip>>>;
79
79
  bracketType: z.ZodEnum<{
80
+ NONE: "NONE";
80
81
  STOP_LOSS: "STOP_LOSS";
81
82
  TAKE_PROFIT: "TAKE_PROFIT";
82
- NONE: "NONE";
83
83
  }>;
84
84
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
85
+ NONE: "NONE";
85
86
  STOP_LOSS: "STOP_LOSS";
86
87
  TAKE_PROFIT: "TAKE_PROFIT";
87
- NONE: "NONE";
88
88
  }>>;
89
89
  createdAt: z.ZodString;
90
90
  updatedAt: z.ZodString;
@@ -166,14 +166,14 @@ export declare const TriggerMarketOpen: z.ZodObject<{
166
166
  }, z.core.$strip>>;
167
167
  }, z.core.$strip>>>;
168
168
  bracketType: z.ZodEnum<{
169
+ NONE: "NONE";
169
170
  STOP_LOSS: "STOP_LOSS";
170
171
  TAKE_PROFIT: "TAKE_PROFIT";
171
- NONE: "NONE";
172
172
  }>;
173
173
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
174
+ NONE: "NONE";
174
175
  STOP_LOSS: "STOP_LOSS";
175
176
  TAKE_PROFIT: "TAKE_PROFIT";
176
- NONE: "NONE";
177
177
  }>>;
178
178
  createdAt: z.ZodString;
179
179
  updatedAt: z.ZodString;
@@ -378,14 +378,14 @@ export declare const TriggerMarketAdjust: z.ZodObject<{
378
378
  }, z.core.$strip>>;
379
379
  }, z.core.$strip>>>;
380
380
  bracketType: z.ZodEnum<{
381
+ NONE: "NONE";
381
382
  STOP_LOSS: "STOP_LOSS";
382
383
  TAKE_PROFIT: "TAKE_PROFIT";
383
- NONE: "NONE";
384
384
  }>;
385
385
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
386
+ NONE: "NONE";
386
387
  STOP_LOSS: "STOP_LOSS";
387
388
  TAKE_PROFIT: "TAKE_PROFIT";
388
- NONE: "NONE";
389
389
  }>>;
390
390
  createdAt: z.ZodString;
391
391
  updatedAt: z.ZodString;
@@ -636,14 +636,14 @@ export declare const TriggerMarketClose: z.ZodObject<{
636
636
  }, z.core.$strip>>;
637
637
  }, z.core.$strip>>>;
638
638
  bracketType: z.ZodEnum<{
639
+ NONE: "NONE";
639
640
  STOP_LOSS: "STOP_LOSS";
640
641
  TAKE_PROFIT: "TAKE_PROFIT";
641
- NONE: "NONE";
642
642
  }>;
643
643
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
644
+ NONE: "NONE";
644
645
  STOP_LOSS: "STOP_LOSS";
645
646
  TAKE_PROFIT: "TAKE_PROFIT";
646
- NONE: "NONE";
647
647
  }>>;
648
648
  createdAt: z.ZodString;
649
649
  updatedAt: z.ZodString;
@@ -926,14 +926,14 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
926
926
  }, z.core.$strip>>;
927
927
  }, z.core.$strip>>>;
928
928
  bracketType: z.ZodEnum<{
929
+ NONE: "NONE";
929
930
  STOP_LOSS: "STOP_LOSS";
930
931
  TAKE_PROFIT: "TAKE_PROFIT";
931
- NONE: "NONE";
932
932
  }>;
933
933
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
934
+ NONE: "NONE";
934
935
  STOP_LOSS: "STOP_LOSS";
935
936
  TAKE_PROFIT: "TAKE_PROFIT";
936
- NONE: "NONE";
937
937
  }>>;
938
938
  createdAt: z.ZodString;
939
939
  updatedAt: z.ZodString;
@@ -1137,14 +1137,14 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
1137
1137
  }, z.core.$strip>>;
1138
1138
  }, z.core.$strip>>>;
1139
1139
  bracketType: z.ZodEnum<{
1140
+ NONE: "NONE";
1140
1141
  STOP_LOSS: "STOP_LOSS";
1141
1142
  TAKE_PROFIT: "TAKE_PROFIT";
1142
- NONE: "NONE";
1143
1143
  }>;
1144
1144
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
1145
+ NONE: "NONE";
1145
1146
  STOP_LOSS: "STOP_LOSS";
1146
1147
  TAKE_PROFIT: "TAKE_PROFIT";
1147
- NONE: "NONE";
1148
1148
  }>>;
1149
1149
  createdAt: z.ZodString;
1150
1150
  updatedAt: z.ZodString;
@@ -1394,14 +1394,14 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
1394
1394
  }, z.core.$strip>>;
1395
1395
  }, z.core.$strip>>>;
1396
1396
  bracketType: z.ZodEnum<{
1397
+ NONE: "NONE";
1397
1398
  STOP_LOSS: "STOP_LOSS";
1398
1399
  TAKE_PROFIT: "TAKE_PROFIT";
1399
- NONE: "NONE";
1400
1400
  }>;
1401
1401
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
1402
+ NONE: "NONE";
1402
1403
  STOP_LOSS: "STOP_LOSS";
1403
1404
  TAKE_PROFIT: "TAKE_PROFIT";
1404
- NONE: "NONE";
1405
1405
  }>>;
1406
1406
  createdAt: z.ZodString;
1407
1407
  updatedAt: z.ZodString;
@@ -1684,14 +1684,14 @@ export declare const TriggerTWAPAdjust: z.ZodObject<{
1684
1684
  }, z.core.$strip>>;
1685
1685
  }, z.core.$strip>>>;
1686
1686
  bracketType: z.ZodEnum<{
1687
+ NONE: "NONE";
1687
1688
  STOP_LOSS: "STOP_LOSS";
1688
1689
  TAKE_PROFIT: "TAKE_PROFIT";
1689
- NONE: "NONE";
1690
1690
  }>;
1691
1691
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
1692
+ NONE: "NONE";
1692
1693
  STOP_LOSS: "STOP_LOSS";
1693
1694
  TAKE_PROFIT: "TAKE_PROFIT";
1694
- NONE: "NONE";
1695
1695
  }>>;
1696
1696
  createdAt: z.ZodString;
1697
1697
  updatedAt: z.ZodString;
@@ -1940,14 +1940,14 @@ export declare const TriggerTWAPClose: z.ZodObject<{
1940
1940
  }, z.core.$strip>>;
1941
1941
  }, z.core.$strip>>>;
1942
1942
  bracketType: z.ZodEnum<{
1943
+ NONE: "NONE";
1943
1944
  STOP_LOSS: "STOP_LOSS";
1944
1945
  TAKE_PROFIT: "TAKE_PROFIT";
1945
- NONE: "NONE";
1946
1946
  }>;
1947
1947
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
1948
+ NONE: "NONE";
1948
1949
  STOP_LOSS: "STOP_LOSS";
1949
1950
  TAKE_PROFIT: "TAKE_PROFIT";
1950
- NONE: "NONE";
1951
1951
  }>>;
1952
1952
  createdAt: z.ZodString;
1953
1953
  updatedAt: z.ZodString;
@@ -2237,14 +2237,14 @@ export declare const TriggerTWAP: z.ZodDiscriminatedUnion<[z.ZodObject<{
2237
2237
  }, z.core.$strip>>;
2238
2238
  }, z.core.$strip>>>;
2239
2239
  bracketType: z.ZodEnum<{
2240
+ NONE: "NONE";
2240
2241
  STOP_LOSS: "STOP_LOSS";
2241
2242
  TAKE_PROFIT: "TAKE_PROFIT";
2242
- NONE: "NONE";
2243
2243
  }>;
2244
2244
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
2245
+ NONE: "NONE";
2245
2246
  STOP_LOSS: "STOP_LOSS";
2246
2247
  TAKE_PROFIT: "TAKE_PROFIT";
2247
- NONE: "NONE";
2248
2248
  }>>;
2249
2249
  createdAt: z.ZodString;
2250
2250
  updatedAt: z.ZodString;
@@ -2492,14 +2492,14 @@ export declare const TriggerTWAP: z.ZodDiscriminatedUnion<[z.ZodObject<{
2492
2492
  }, z.core.$strip>>;
2493
2493
  }, z.core.$strip>>>;
2494
2494
  bracketType: z.ZodEnum<{
2495
+ NONE: "NONE";
2495
2496
  STOP_LOSS: "STOP_LOSS";
2496
2497
  TAKE_PROFIT: "TAKE_PROFIT";
2497
- NONE: "NONE";
2498
2498
  }>;
2499
2499
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
2500
+ NONE: "NONE";
2500
2501
  STOP_LOSS: "STOP_LOSS";
2501
2502
  TAKE_PROFIT: "TAKE_PROFIT";
2502
- NONE: "NONE";
2503
2503
  }>>;
2504
2504
  createdAt: z.ZodString;
2505
2505
  updatedAt: z.ZodString;
@@ -2789,14 +2789,14 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
2789
2789
  }, z.core.$strip>>;
2790
2790
  }, z.core.$strip>>>;
2791
2791
  bracketType: z.ZodEnum<{
2792
+ NONE: "NONE";
2792
2793
  STOP_LOSS: "STOP_LOSS";
2793
2794
  TAKE_PROFIT: "TAKE_PROFIT";
2794
- NONE: "NONE";
2795
2795
  }>;
2796
2796
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
2797
+ NONE: "NONE";
2797
2798
  STOP_LOSS: "STOP_LOSS";
2798
2799
  TAKE_PROFIT: "TAKE_PROFIT";
2799
- NONE: "NONE";
2800
2800
  }>>;
2801
2801
  createdAt: z.ZodString;
2802
2802
  updatedAt: z.ZodString;
@@ -3000,14 +3000,14 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
3000
3000
  }, z.core.$strip>>;
3001
3001
  }, z.core.$strip>>>;
3002
3002
  bracketType: z.ZodEnum<{
3003
+ NONE: "NONE";
3003
3004
  STOP_LOSS: "STOP_LOSS";
3004
3005
  TAKE_PROFIT: "TAKE_PROFIT";
3005
- NONE: "NONE";
3006
3006
  }>;
3007
3007
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
3008
+ NONE: "NONE";
3008
3009
  STOP_LOSS: "STOP_LOSS";
3009
3010
  TAKE_PROFIT: "TAKE_PROFIT";
3010
- NONE: "NONE";
3011
3011
  }>>;
3012
3012
  createdAt: z.ZodString;
3013
3013
  updatedAt: z.ZodString;
@@ -3257,14 +3257,14 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
3257
3257
  }, z.core.$strip>>;
3258
3258
  }, z.core.$strip>>>;
3259
3259
  bracketType: z.ZodEnum<{
3260
+ NONE: "NONE";
3260
3261
  STOP_LOSS: "STOP_LOSS";
3261
3262
  TAKE_PROFIT: "TAKE_PROFIT";
3262
- NONE: "NONE";
3263
3263
  }>;
3264
3264
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
3265
+ NONE: "NONE";
3265
3266
  STOP_LOSS: "STOP_LOSS";
3266
3267
  TAKE_PROFIT: "TAKE_PROFIT";
3267
- NONE: "NONE";
3268
3268
  }>>;
3269
3269
  createdAt: z.ZodString;
3270
3270
  updatedAt: z.ZodString;
@@ -3546,14 +3546,14 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
3546
3546
  }, z.core.$strip>>;
3547
3547
  }, z.core.$strip>>>;
3548
3548
  bracketType: z.ZodEnum<{
3549
+ NONE: "NONE";
3549
3550
  STOP_LOSS: "STOP_LOSS";
3550
3551
  TAKE_PROFIT: "TAKE_PROFIT";
3551
- NONE: "NONE";
3552
3552
  }>;
3553
3553
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
3554
+ NONE: "NONE";
3554
3555
  STOP_LOSS: "STOP_LOSS";
3555
3556
  TAKE_PROFIT: "TAKE_PROFIT";
3556
- NONE: "NONE";
3557
3557
  }>>;
3558
3558
  createdAt: z.ZodString;
3559
3559
  updatedAt: z.ZodString;
@@ -3801,14 +3801,14 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
3801
3801
  }, z.core.$strip>>;
3802
3802
  }, z.core.$strip>>>;
3803
3803
  bracketType: z.ZodEnum<{
3804
+ NONE: "NONE";
3804
3805
  STOP_LOSS: "STOP_LOSS";
3805
3806
  TAKE_PROFIT: "TAKE_PROFIT";
3806
- NONE: "NONE";
3807
3807
  }>;
3808
3808
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
3809
+ NONE: "NONE";
3809
3810
  STOP_LOSS: "STOP_LOSS";
3810
3811
  TAKE_PROFIT: "TAKE_PROFIT";
3811
- NONE: "NONE";
3812
3812
  }>>;
3813
3813
  createdAt: z.ZodString;
3814
3814
  updatedAt: z.ZodString;
@@ -680,9 +680,9 @@ export declare const CreateTriggerMarketCloseStatic: z.ZodObject<{
680
680
  type: z.ZodLiteral<"MARKET">;
681
681
  positionId: z.ZodUUID;
682
682
  bracketType: z.ZodEnum<{
683
+ NONE: "NONE";
683
684
  STOP_LOSS: "STOP_LOSS";
684
685
  TAKE_PROFIT: "TAKE_PROFIT";
685
- NONE: "NONE";
686
686
  }>;
687
687
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
688
688
  STOP_LOSS: "STOP_LOSS";
@@ -845,9 +845,9 @@ export declare const CreateTriggerMarketClose: z.ZodUnion<readonly [z.ZodObject<
845
845
  type: z.ZodLiteral<"MARKET">;
846
846
  positionId: z.ZodUUID;
847
847
  bracketType: z.ZodEnum<{
848
+ NONE: "NONE";
848
849
  STOP_LOSS: "STOP_LOSS";
849
850
  TAKE_PROFIT: "TAKE_PROFIT";
850
- NONE: "NONE";
851
851
  }>;
852
852
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
853
853
  STOP_LOSS: "STOP_LOSS";
@@ -1009,9 +1009,9 @@ export declare const CreateTriggerTWAPCloseStatic: z.ZodObject<{
1009
1009
  type: z.ZodLiteral<"TWAP">;
1010
1010
  positionId: z.ZodUUID;
1011
1011
  bracketType: z.ZodEnum<{
1012
+ NONE: "NONE";
1012
1013
  STOP_LOSS: "STOP_LOSS";
1013
1014
  TAKE_PROFIT: "TAKE_PROFIT";
1014
- NONE: "NONE";
1015
1015
  }>;
1016
1016
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
1017
1017
  STOP_LOSS: "STOP_LOSS";
@@ -1192,9 +1192,9 @@ export declare const CreateTriggerTWAPClose: z.ZodUnion<readonly [z.ZodObject<{
1192
1192
  type: z.ZodLiteral<"TWAP">;
1193
1193
  positionId: z.ZodUUID;
1194
1194
  bracketType: z.ZodEnum<{
1195
+ NONE: "NONE";
1195
1196
  STOP_LOSS: "STOP_LOSS";
1196
1197
  TAKE_PROFIT: "TAKE_PROFIT";
1197
- NONE: "NONE";
1198
1198
  }>;
1199
1199
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
1200
1200
  STOP_LOSS: "STOP_LOSS";
@@ -1823,9 +1823,9 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
1823
1823
  type: z.ZodLiteral<"MARKET">;
1824
1824
  positionId: z.ZodUUID;
1825
1825
  bracketType: z.ZodEnum<{
1826
+ NONE: "NONE";
1826
1827
  STOP_LOSS: "STOP_LOSS";
1827
1828
  TAKE_PROFIT: "TAKE_PROFIT";
1828
- NONE: "NONE";
1829
1829
  }>;
1830
1830
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
1831
1831
  STOP_LOSS: "STOP_LOSS";
@@ -1986,9 +1986,9 @@ export declare const CreateTriggerClose: z.ZodUnion<readonly [z.ZodUnion<readonl
1986
1986
  type: z.ZodLiteral<"TWAP">;
1987
1987
  positionId: z.ZodUUID;
1988
1988
  bracketType: z.ZodEnum<{
1989
+ NONE: "NONE";
1989
1990
  STOP_LOSS: "STOP_LOSS";
1990
1991
  TAKE_PROFIT: "TAKE_PROFIT";
1991
- NONE: "NONE";
1992
1992
  }>;
1993
1993
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
1994
1994
  STOP_LOSS: "STOP_LOSS";
@@ -69,14 +69,14 @@ export declare const TriggerListResponse: z.ZodObject<{
69
69
  }, z.core.$strip>>;
70
70
  }, z.core.$strip>>>;
71
71
  bracketType: z.ZodEnum<{
72
+ NONE: "NONE";
72
73
  STOP_LOSS: "STOP_LOSS";
73
74
  TAKE_PROFIT: "TAKE_PROFIT";
74
- NONE: "NONE";
75
75
  }>;
76
76
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
77
+ NONE: "NONE";
77
78
  STOP_LOSS: "STOP_LOSS";
78
79
  TAKE_PROFIT: "TAKE_PROFIT";
79
- NONE: "NONE";
80
80
  }>>;
81
81
  createdAt: z.ZodString;
82
82
  updatedAt: z.ZodString;
@@ -280,14 +280,14 @@ export declare const TriggerListResponse: z.ZodObject<{
280
280
  }, z.core.$strip>>;
281
281
  }, z.core.$strip>>>;
282
282
  bracketType: z.ZodEnum<{
283
+ NONE: "NONE";
283
284
  STOP_LOSS: "STOP_LOSS";
284
285
  TAKE_PROFIT: "TAKE_PROFIT";
285
- NONE: "NONE";
286
286
  }>;
287
287
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
288
+ NONE: "NONE";
288
289
  STOP_LOSS: "STOP_LOSS";
289
290
  TAKE_PROFIT: "TAKE_PROFIT";
290
- NONE: "NONE";
291
291
  }>>;
292
292
  createdAt: z.ZodString;
293
293
  updatedAt: z.ZodString;
@@ -537,14 +537,14 @@ export declare const TriggerListResponse: z.ZodObject<{
537
537
  }, z.core.$strip>>;
538
538
  }, z.core.$strip>>>;
539
539
  bracketType: z.ZodEnum<{
540
+ NONE: "NONE";
540
541
  STOP_LOSS: "STOP_LOSS";
541
542
  TAKE_PROFIT: "TAKE_PROFIT";
542
- NONE: "NONE";
543
543
  }>;
544
544
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
545
+ NONE: "NONE";
545
546
  STOP_LOSS: "STOP_LOSS";
546
547
  TAKE_PROFIT: "TAKE_PROFIT";
547
- NONE: "NONE";
548
548
  }>>;
549
549
  createdAt: z.ZodString;
550
550
  updatedAt: z.ZodString;
@@ -826,14 +826,14 @@ export declare const TriggerListResponse: z.ZodObject<{
826
826
  }, z.core.$strip>>;
827
827
  }, z.core.$strip>>>;
828
828
  bracketType: z.ZodEnum<{
829
+ NONE: "NONE";
829
830
  STOP_LOSS: "STOP_LOSS";
830
831
  TAKE_PROFIT: "TAKE_PROFIT";
831
- NONE: "NONE";
832
832
  }>;
833
833
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
834
+ NONE: "NONE";
834
835
  STOP_LOSS: "STOP_LOSS";
835
836
  TAKE_PROFIT: "TAKE_PROFIT";
836
- NONE: "NONE";
837
837
  }>>;
838
838
  createdAt: z.ZodString;
839
839
  updatedAt: z.ZodString;
@@ -1081,14 +1081,14 @@ export declare const TriggerListResponse: z.ZodObject<{
1081
1081
  }, z.core.$strip>>;
1082
1082
  }, z.core.$strip>>>;
1083
1083
  bracketType: z.ZodEnum<{
1084
+ NONE: "NONE";
1084
1085
  STOP_LOSS: "STOP_LOSS";
1085
1086
  TAKE_PROFIT: "TAKE_PROFIT";
1086
- NONE: "NONE";
1087
1087
  }>;
1088
1088
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
1089
+ NONE: "NONE";
1089
1090
  STOP_LOSS: "STOP_LOSS";
1090
1091
  TAKE_PROFIT: "TAKE_PROFIT";
1091
- NONE: "NONE";
1092
1092
  }>>;
1093
1093
  createdAt: z.ZodString;
1094
1094
  updatedAt: z.ZodString;
@@ -1381,14 +1381,14 @@ export declare const CreateTriggerResponse: z.ZodObject<{
1381
1381
  }, z.core.$strip>>;
1382
1382
  }, z.core.$strip>>>;
1383
1383
  bracketType: z.ZodEnum<{
1384
+ NONE: "NONE";
1384
1385
  STOP_LOSS: "STOP_LOSS";
1385
1386
  TAKE_PROFIT: "TAKE_PROFIT";
1386
- NONE: "NONE";
1387
1387
  }>;
1388
1388
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
1389
+ NONE: "NONE";
1389
1390
  STOP_LOSS: "STOP_LOSS";
1390
1391
  TAKE_PROFIT: "TAKE_PROFIT";
1391
- NONE: "NONE";
1392
1392
  }>>;
1393
1393
  createdAt: z.ZodString;
1394
1394
  updatedAt: z.ZodString;
@@ -1592,14 +1592,14 @@ export declare const CreateTriggerResponse: z.ZodObject<{
1592
1592
  }, z.core.$strip>>;
1593
1593
  }, z.core.$strip>>>;
1594
1594
  bracketType: z.ZodEnum<{
1595
+ NONE: "NONE";
1595
1596
  STOP_LOSS: "STOP_LOSS";
1596
1597
  TAKE_PROFIT: "TAKE_PROFIT";
1597
- NONE: "NONE";
1598
1598
  }>;
1599
1599
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
1600
+ NONE: "NONE";
1600
1601
  STOP_LOSS: "STOP_LOSS";
1601
1602
  TAKE_PROFIT: "TAKE_PROFIT";
1602
- NONE: "NONE";
1603
1603
  }>>;
1604
1604
  createdAt: z.ZodString;
1605
1605
  updatedAt: z.ZodString;
@@ -1849,14 +1849,14 @@ export declare const CreateTriggerResponse: z.ZodObject<{
1849
1849
  }, z.core.$strip>>;
1850
1850
  }, z.core.$strip>>>;
1851
1851
  bracketType: z.ZodEnum<{
1852
+ NONE: "NONE";
1852
1853
  STOP_LOSS: "STOP_LOSS";
1853
1854
  TAKE_PROFIT: "TAKE_PROFIT";
1854
- NONE: "NONE";
1855
1855
  }>;
1856
1856
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
1857
+ NONE: "NONE";
1857
1858
  STOP_LOSS: "STOP_LOSS";
1858
1859
  TAKE_PROFIT: "TAKE_PROFIT";
1859
- NONE: "NONE";
1860
1860
  }>>;
1861
1861
  createdAt: z.ZodString;
1862
1862
  updatedAt: z.ZodString;
@@ -2138,14 +2138,14 @@ export declare const CreateTriggerResponse: z.ZodObject<{
2138
2138
  }, z.core.$strip>>;
2139
2139
  }, z.core.$strip>>>;
2140
2140
  bracketType: z.ZodEnum<{
2141
+ NONE: "NONE";
2141
2142
  STOP_LOSS: "STOP_LOSS";
2142
2143
  TAKE_PROFIT: "TAKE_PROFIT";
2143
- NONE: "NONE";
2144
2144
  }>;
2145
2145
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
2146
+ NONE: "NONE";
2146
2147
  STOP_LOSS: "STOP_LOSS";
2147
2148
  TAKE_PROFIT: "TAKE_PROFIT";
2148
- NONE: "NONE";
2149
2149
  }>>;
2150
2150
  createdAt: z.ZodString;
2151
2151
  updatedAt: z.ZodString;
@@ -2393,14 +2393,14 @@ export declare const CreateTriggerResponse: z.ZodObject<{
2393
2393
  }, z.core.$strip>>;
2394
2394
  }, z.core.$strip>>>;
2395
2395
  bracketType: z.ZodEnum<{
2396
+ NONE: "NONE";
2396
2397
  STOP_LOSS: "STOP_LOSS";
2397
2398
  TAKE_PROFIT: "TAKE_PROFIT";
2398
- NONE: "NONE";
2399
2399
  }>;
2400
2400
  semanticBracketType: z.ZodOptional<z.ZodEnum<{
2401
+ NONE: "NONE";
2401
2402
  STOP_LOSS: "STOP_LOSS";
2402
2403
  TAKE_PROFIT: "TAKE_PROFIT";
2403
- NONE: "NONE";
2404
2404
  }>>;
2405
2405
  createdAt: z.ZodString;
2406
2406
  updatedAt: z.ZodString;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { EthereumAddress } from '../common/address';
2
3
  export declare const UserPreferences: z.ZodObject<{
3
4
  slippageToleranceBps: z.ZodInt;
4
5
  }, z.core.$strip>;
@@ -22,24 +23,24 @@ export type UserPreferences = z.infer<typeof UserPreferences>;
22
23
  export type UserProfile = z.infer<typeof UserProfile>;
23
24
  export declare const BoundReferralReferee: z.ZodObject<{
24
25
  status: z.ZodLiteral<"BOUND">;
25
- address: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
26
+ address: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<EthereumAddress, string>>>;
26
27
  referredAt: z.ZodOptional<z.ZodNumber>;
27
28
  tradeCount: z.ZodNumber;
28
29
  volumeUsd: z.ZodString;
29
30
  }, z.core.$strip>;
30
31
  export declare const PendingReferralReferee: z.ZodObject<{
31
32
  status: z.ZodLiteral<"PENDING">;
32
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
33
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<EthereumAddress, string>>;
33
34
  }, z.core.$strip>;
34
35
  export declare const ReferralReferee: z.ZodDiscriminatedUnion<[z.ZodObject<{
35
36
  status: z.ZodLiteral<"BOUND">;
36
- address: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
37
+ address: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<EthereumAddress, string>>>;
37
38
  referredAt: z.ZodOptional<z.ZodNumber>;
38
39
  tradeCount: z.ZodNumber;
39
40
  volumeUsd: z.ZodString;
40
41
  }, z.core.$strip>, z.ZodObject<{
41
42
  status: z.ZodLiteral<"PENDING">;
42
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
43
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<EthereumAddress, string>>;
43
44
  }, z.core.$strip>], "status">;
44
45
  export type BoundReferralReferee = z.infer<typeof BoundReferralReferee>;
45
46
  export type PendingReferralReferee = z.infer<typeof PendingReferralReferee>;
@@ -44,13 +44,13 @@ export declare const ReferralRefereeListResponse: z.ZodObject<{
44
44
  totalVolumeUsd: z.ZodString;
45
45
  referees: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
46
46
  status: z.ZodLiteral<"BOUND">;
47
- address: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
47
+ address: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("..").EthereumAddress, string>>>;
48
48
  referredAt: z.ZodOptional<z.ZodNumber>;
49
49
  tradeCount: z.ZodNumber;
50
50
  volumeUsd: z.ZodString;
51
51
  }, z.core.$strip>, z.ZodObject<{
52
52
  status: z.ZodLiteral<"PENDING">;
53
- address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
53
+ address: z.ZodPipe<z.ZodString, z.ZodTransform<import("..").EthereumAddress, string>>;
54
54
  }, z.core.$strip>], "status">>;
55
55
  }, z.core.$strip>;
56
56
  export type ReferralRefereeListResponse = z.infer<typeof ReferralRefereeListResponse>;
@@ -0,0 +1,111 @@
1
+ import { z } from 'zod';
2
+ import { EthereumAddress } from '../common/address';
3
+ /** Lifecycle state of a vault. */
4
+ export declare const VaultStatus: z.ZodEnum<{
5
+ active: "active";
6
+ inactive: "inactive";
7
+ pending_activation: "pending_activation";
8
+ }>;
9
+ export type VaultStatus = z.infer<typeof VaultStatus>;
10
+ /** Browser-facing projection of a vault row, matching core's public camelCase API. */
11
+ export declare const Vault: z.ZodObject<{
12
+ id: z.ZodString;
13
+ vaultAddress: z.ZodPipe<z.ZodString, z.ZodTransform<EthereumAddress, string>>;
14
+ ownerAddress: z.ZodPipe<z.ZodString, z.ZodTransform<EthereumAddress, string>>;
15
+ traderAddress: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<EthereumAddress, string>>>;
16
+ agentAddress: z.ZodPipe<z.ZodString, z.ZodTransform<EthereumAddress, string>>;
17
+ status: z.ZodEnum<{
18
+ active: "active";
19
+ inactive: "inactive";
20
+ pending_activation: "pending_activation";
21
+ }>;
22
+ isApproved: z.ZodBoolean;
23
+ name: z.ZodNullable<z.ZodString>;
24
+ about: z.ZodNullable<z.ZodString>;
25
+ imageUrl: z.ZodNullable<z.ZodString>;
26
+ transactionHash: z.ZodNullable<z.ZodString>;
27
+ maxWithdrawalPeriodDays: z.ZodNumber;
28
+ createdAt: z.ZodString;
29
+ updatedAt: z.ZodString;
30
+ }, z.core.$strip>;
31
+ export type Vault = z.infer<typeof Vault>;
32
+ /** One durable operation row in a vault's activity ledger. */
33
+ export declare const Activity: z.ZodObject<{
34
+ id: z.ZodString;
35
+ vaultAddress: z.ZodOptional<z.ZodString>;
36
+ type: z.ZodEnum<{
37
+ "vault.create": "vault.create";
38
+ "vault.set_trader": "vault.set_trader";
39
+ "vault.update_metadata": "vault.update_metadata";
40
+ "bridge.withdraw_to_evm": "bridge.withdraw_to_evm";
41
+ }>;
42
+ status: z.ZodEnum<{
43
+ failed: "failed";
44
+ pending: "pending";
45
+ succeeded: "succeeded";
46
+ }>;
47
+ txHash: z.ZodOptional<z.ZodString>;
48
+ error: z.ZodOptional<z.ZodString>;
49
+ createdAt: z.ZodISODateTime;
50
+ updatedAt: z.ZodISODateTime;
51
+ }, z.core.$strip>;
52
+ export type Activity = z.infer<typeof Activity>;
53
+ /** Indexed on-chain deposit/withdrawal event for a vault. */
54
+ export declare const VaultEvent: z.ZodObject<{
55
+ id: z.ZodString;
56
+ vaultAddress: z.ZodPipe<z.ZodString, z.ZodTransform<EthereumAddress, string>>;
57
+ eventType: z.ZodEnum<{
58
+ DEPOSIT: "DEPOSIT";
59
+ WITHDRAWAL: "WITHDRAWAL";
60
+ }>;
61
+ userAddress: z.ZodPipe<z.ZodString, z.ZodTransform<EthereumAddress, string>>;
62
+ receiver: z.ZodPipe<z.ZodString, z.ZodTransform<EthereumAddress, string>>;
63
+ assets: z.ZodString;
64
+ shares: z.ZodString;
65
+ fee: z.ZodString;
66
+ withdrawalId: z.ZodNullable<z.ZodString>;
67
+ txHash: z.ZodString;
68
+ blockNumber: z.ZodString;
69
+ logIndex: z.ZodNumber;
70
+ createdAt: z.ZodString;
71
+ }, z.core.$strip>;
72
+ export type VaultEvent = z.infer<typeof VaultEvent>;
73
+ /** Most recent NAV snapshot of a vault. */
74
+ export declare const NavSnapshot: z.ZodObject<{
75
+ vaultAddress: z.ZodPipe<z.ZodString, z.ZodTransform<EthereumAddress, string>>;
76
+ takenAt: z.ZodString;
77
+ totalAssets: z.ZodString;
78
+ totalSupply: z.ZodString;
79
+ sharePrice: z.ZodString;
80
+ blockNumber: z.ZodString;
81
+ }, z.core.$strip>;
82
+ export type NavSnapshot = z.infer<typeof NavSnapshot>;
83
+ /** One fixed-resolution NAV point in a range read. */
84
+ export declare const NavBucketPoint: z.ZodObject<{
85
+ bucket: z.ZodISODateTime;
86
+ totalAssets: z.ZodString;
87
+ totalSupply: z.ZodString;
88
+ sharePrice: z.ZodString;
89
+ blockNumber: z.ZodString;
90
+ }, z.core.$strip>;
91
+ export type NavBucketPoint = z.infer<typeof NavBucketPoint>;
92
+ /** Sparse bulk-read NAV point; only the requested fields carry values. */
93
+ export declare const BulkSnapshotPoint: z.ZodObject<{
94
+ timestamp: z.ZodNumber;
95
+ createdAt: z.ZodString;
96
+ tvl: z.ZodOptional<z.ZodString>;
97
+ sharePrice: z.ZodOptional<z.ZodString>;
98
+ accountValue: z.ZodOptional<z.ZodNull>;
99
+ unrealizedPnl: z.ZodOptional<z.ZodNull>;
100
+ cumulativeRealizedPnl: z.ZodOptional<z.ZodNull>;
101
+ leaderSharePct: z.ZodOptional<z.ZodNull>;
102
+ }, z.core.$strip>;
103
+ export type BulkSnapshotPoint = z.infer<typeof BulkSnapshotPoint>;
104
+ /** One sparkline point in the overview projection. */
105
+ export declare const SparklinePoint: z.ZodObject<{
106
+ timestamp: z.ZodNumber;
107
+ createdAt: z.ZodString;
108
+ tvl: z.ZodString;
109
+ sharePrice: z.ZodString;
110
+ }, z.core.$strip>;
111
+ export type SparklinePoint = z.infer<typeof SparklinePoint>;