@compass-labs/api-sdk 1.0.4 → 1.0.6

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 (317) hide show
  1. package/README.md +11 -0
  2. package/bin/mcp-server.js +2824 -1896
  3. package/bin/mcp-server.js.map +37 -19
  4. package/dist/commonjs/funcs/aaveV3AaveHistoricalTransactions.d.ts +4 -0
  5. package/dist/commonjs/funcs/aaveV3AaveHistoricalTransactions.d.ts.map +1 -1
  6. package/dist/commonjs/funcs/aaveV3AaveHistoricalTransactions.js +4 -0
  7. package/dist/commonjs/funcs/aaveV3AaveHistoricalTransactions.js.map +1 -1
  8. package/dist/commonjs/funcs/ethenaEthenaDeposit.d.ts +27 -0
  9. package/dist/commonjs/funcs/ethenaEthenaDeposit.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/ethenaEthenaDeposit.js +127 -0
  11. package/dist/commonjs/funcs/ethenaEthenaDeposit.js.map +1 -0
  12. package/dist/commonjs/funcs/ethenaEthenaRequest.d.ts +34 -0
  13. package/dist/commonjs/funcs/ethenaEthenaRequest.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/ethenaEthenaRequest.js +134 -0
  15. package/dist/commonjs/funcs/ethenaEthenaRequest.js.map +1 -0
  16. package/dist/commonjs/funcs/ethenaEthenaVault.d.ts +16 -0
  17. package/dist/commonjs/funcs/ethenaEthenaVault.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/ethenaEthenaVault.js +121 -0
  19. package/dist/commonjs/funcs/ethenaEthenaVault.js.map +1 -0
  20. package/dist/commonjs/funcs/ethenaEthenaWithdraw.d.ts +29 -0
  21. package/dist/commonjs/funcs/ethenaEthenaWithdraw.d.ts.map +1 -0
  22. package/dist/commonjs/funcs/ethenaEthenaWithdraw.js +129 -0
  23. package/dist/commonjs/funcs/ethenaEthenaWithdraw.js.map +1 -0
  24. package/dist/commonjs/lib/config.d.ts +2 -2
  25. package/dist/commonjs/lib/config.js +2 -2
  26. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  27. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  28. package/dist/commonjs/mcp-server/server.js +9 -1
  29. package/dist/commonjs/mcp-server/server.js.map +1 -1
  30. package/dist/commonjs/mcp-server/tools/aaveV3AaveHistoricalTransactions.d.ts.map +1 -1
  31. package/dist/commonjs/mcp-server/tools/aaveV3AaveHistoricalTransactions.js +5 -1
  32. package/dist/commonjs/mcp-server/tools/aaveV3AaveHistoricalTransactions.js.map +1 -1
  33. package/dist/commonjs/mcp-server/tools/ethenaEthenaDeposit.d.ts +8 -0
  34. package/dist/commonjs/mcp-server/tools/ethenaEthenaDeposit.d.ts.map +1 -0
  35. package/dist/commonjs/mcp-server/tools/ethenaEthenaDeposit.js +74 -0
  36. package/dist/commonjs/mcp-server/tools/ethenaEthenaDeposit.js.map +1 -0
  37. package/dist/commonjs/mcp-server/tools/ethenaEthenaRequest.d.ts +8 -0
  38. package/dist/commonjs/mcp-server/tools/ethenaEthenaRequest.d.ts.map +1 -0
  39. package/dist/commonjs/mcp-server/tools/ethenaEthenaRequest.js +81 -0
  40. package/dist/commonjs/mcp-server/tools/ethenaEthenaRequest.js.map +1 -0
  41. package/dist/commonjs/mcp-server/tools/ethenaEthenaVault.d.ts +8 -0
  42. package/dist/commonjs/mcp-server/tools/ethenaEthenaVault.d.ts.map +1 -0
  43. package/dist/commonjs/mcp-server/tools/ethenaEthenaVault.js +62 -0
  44. package/dist/commonjs/mcp-server/tools/ethenaEthenaVault.js.map +1 -0
  45. package/dist/commonjs/mcp-server/tools/ethenaEthenaWithdraw.d.ts +8 -0
  46. package/dist/commonjs/mcp-server/tools/ethenaEthenaWithdraw.d.ts.map +1 -0
  47. package/dist/commonjs/mcp-server/tools/ethenaEthenaWithdraw.js +76 -0
  48. package/dist/commonjs/mcp-server/tools/ethenaEthenaWithdraw.js.map +1 -0
  49. package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts +10 -4
  50. package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts.map +1 -1
  51. package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js +8 -6
  52. package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js.map +1 -1
  53. package/dist/commonjs/models/components/cooldownposition.d.ts +66 -0
  54. package/dist/commonjs/models/components/cooldownposition.d.ts.map +1 -0
  55. package/dist/commonjs/models/components/cooldownposition.js +115 -0
  56. package/dist/commonjs/models/components/cooldownposition.js.map +1 -0
  57. package/dist/commonjs/models/components/ethenadepositparams.d.ts +63 -0
  58. package/dist/commonjs/models/components/ethenadepositparams.d.ts.map +1 -0
  59. package/dist/commonjs/models/components/ethenadepositparams.js +105 -0
  60. package/dist/commonjs/models/components/ethenadepositparams.js.map +1 -0
  61. package/dist/commonjs/models/components/ethenadepositrequest.d.ts +93 -0
  62. package/dist/commonjs/models/components/ethenadepositrequest.d.ts.map +1 -0
  63. package/dist/commonjs/models/components/ethenadepositrequest.js +127 -0
  64. package/dist/commonjs/models/components/ethenadepositrequest.js.map +1 -0
  65. package/dist/commonjs/models/components/ethenagetvaultresponse.d.ts +80 -0
  66. package/dist/commonjs/models/components/ethenagetvaultresponse.d.ts.map +1 -0
  67. package/dist/commonjs/models/components/ethenagetvaultresponse.js +114 -0
  68. package/dist/commonjs/models/components/ethenagetvaultresponse.js.map +1 -0
  69. package/dist/commonjs/models/components/ethenarequesttowithdrawparams.d.ts +34 -0
  70. package/dist/commonjs/models/components/ethenarequesttowithdrawparams.d.ts.map +1 -0
  71. package/dist/commonjs/models/components/ethenarequesttowithdrawparams.js +80 -0
  72. package/dist/commonjs/models/components/ethenarequesttowithdrawparams.js.map +1 -0
  73. package/dist/commonjs/models/components/ethenarequesttowithdrawrequest.d.ts +64 -0
  74. package/dist/commonjs/models/components/ethenarequesttowithdrawrequest.d.ts.map +1 -0
  75. package/dist/commonjs/models/components/ethenarequesttowithdrawrequest.js +102 -0
  76. package/dist/commonjs/models/components/ethenarequesttowithdrawrequest.js.map +1 -0
  77. package/dist/commonjs/models/components/ethenarequesttowithdrawtransactionresponse.d.ts +64 -0
  78. package/dist/commonjs/models/components/ethenarequesttowithdrawtransactionresponse.d.ts.map +1 -0
  79. package/dist/commonjs/models/components/ethenarequesttowithdrawtransactionresponse.js +122 -0
  80. package/dist/commonjs/models/components/ethenarequesttowithdrawtransactionresponse.js.map +1 -0
  81. package/dist/commonjs/models/components/ethenawithdrawparams.d.ts +39 -0
  82. package/dist/commonjs/models/components/ethenawithdrawparams.d.ts.map +1 -0
  83. package/dist/commonjs/models/components/ethenawithdrawparams.js +82 -0
  84. package/dist/commonjs/models/components/ethenawithdrawparams.js.map +1 -0
  85. package/dist/commonjs/models/components/ethenawithdrawrequest.d.ts +69 -0
  86. package/dist/commonjs/models/components/ethenawithdrawrequest.d.ts.map +1 -0
  87. package/dist/commonjs/models/components/ethenawithdrawrequest.js +104 -0
  88. package/dist/commonjs/models/components/ethenawithdrawrequest.js.map +1 -0
  89. package/dist/commonjs/models/components/index.d.ts +10 -1
  90. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  91. package/dist/commonjs/models/components/index.js +10 -1
  92. package/dist/commonjs/models/components/index.js.map +1 -1
  93. package/dist/commonjs/models/components/setallowanceparams.d.ts +3 -0
  94. package/dist/commonjs/models/components/setallowanceparams.d.ts.map +1 -1
  95. package/dist/commonjs/models/components/setallowanceparams.js +1 -0
  96. package/dist/commonjs/models/components/setallowanceparams.js.map +1 -1
  97. package/dist/commonjs/models/components/setallowancerequest.d.ts +3 -0
  98. package/dist/commonjs/models/components/setallowancerequest.d.ts.map +1 -1
  99. package/dist/commonjs/models/components/setallowancerequest.js +1 -0
  100. package/dist/commonjs/models/components/setallowancerequest.js.map +1 -1
  101. package/dist/commonjs/models/components/underlyingtoken.d.ts +35 -0
  102. package/dist/commonjs/models/components/underlyingtoken.d.ts.map +1 -0
  103. package/dist/commonjs/models/components/underlyingtoken.js +75 -0
  104. package/dist/commonjs/models/components/underlyingtoken.js.map +1 -0
  105. package/dist/commonjs/models/components/useroperation.d.ts +27 -0
  106. package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
  107. package/dist/commonjs/models/components/useroperation.js +27 -0
  108. package/dist/commonjs/models/components/useroperation.js.map +1 -1
  109. package/dist/commonjs/models/components/vaultgetvaultresponse.d.ts +3 -3
  110. package/dist/commonjs/models/components/vaultgetvaultresponse.d.ts.map +1 -1
  111. package/dist/commonjs/models/components/vaultgetvaultresponse.js +5 -3
  112. package/dist/commonjs/models/components/vaultgetvaultresponse.js.map +1 -1
  113. package/dist/commonjs/models/operations/index.d.ts +1 -0
  114. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  115. package/dist/commonjs/models/operations/index.js +1 -0
  116. package/dist/commonjs/models/operations/index.js.map +1 -1
  117. package/dist/commonjs/models/operations/v1ethenavault.d.ts +62 -0
  118. package/dist/commonjs/models/operations/v1ethenavault.d.ts.map +1 -0
  119. package/dist/commonjs/models/operations/v1ethenavault.js +100 -0
  120. package/dist/commonjs/models/operations/v1ethenavault.js.map +1 -0
  121. package/dist/commonjs/models/operations/v1genericallowance.d.ts +3 -0
  122. package/dist/commonjs/models/operations/v1genericallowance.d.ts.map +1 -1
  123. package/dist/commonjs/models/operations/v1genericallowance.js +1 -0
  124. package/dist/commonjs/models/operations/v1genericallowance.js.map +1 -1
  125. package/dist/commonjs/sdk/aavev3.d.ts +4 -0
  126. package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
  127. package/dist/commonjs/sdk/aavev3.js +4 -0
  128. package/dist/commonjs/sdk/aavev3.js.map +1 -1
  129. package/dist/commonjs/sdk/ethena.d.ts +67 -0
  130. package/dist/commonjs/sdk/ethena.d.ts.map +1 -0
  131. package/dist/commonjs/sdk/ethena.js +85 -0
  132. package/dist/commonjs/sdk/ethena.js.map +1 -0
  133. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  134. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  135. package/dist/commonjs/sdk/sdk.js +4 -0
  136. package/dist/commonjs/sdk/sdk.js.map +1 -1
  137. package/dist/esm/funcs/aaveV3AaveHistoricalTransactions.d.ts +4 -0
  138. package/dist/esm/funcs/aaveV3AaveHistoricalTransactions.d.ts.map +1 -1
  139. package/dist/esm/funcs/aaveV3AaveHistoricalTransactions.js +4 -0
  140. package/dist/esm/funcs/aaveV3AaveHistoricalTransactions.js.map +1 -1
  141. package/dist/esm/funcs/ethenaEthenaDeposit.d.ts +27 -0
  142. package/dist/esm/funcs/ethenaEthenaDeposit.d.ts.map +1 -0
  143. package/dist/esm/funcs/ethenaEthenaDeposit.js +91 -0
  144. package/dist/esm/funcs/ethenaEthenaDeposit.js.map +1 -0
  145. package/dist/esm/funcs/ethenaEthenaRequest.d.ts +34 -0
  146. package/dist/esm/funcs/ethenaEthenaRequest.d.ts.map +1 -0
  147. package/dist/esm/funcs/ethenaEthenaRequest.js +98 -0
  148. package/dist/esm/funcs/ethenaEthenaRequest.js.map +1 -0
  149. package/dist/esm/funcs/ethenaEthenaVault.d.ts +16 -0
  150. package/dist/esm/funcs/ethenaEthenaVault.d.ts.map +1 -0
  151. package/dist/esm/funcs/ethenaEthenaVault.js +85 -0
  152. package/dist/esm/funcs/ethenaEthenaVault.js.map +1 -0
  153. package/dist/esm/funcs/ethenaEthenaWithdraw.d.ts +29 -0
  154. package/dist/esm/funcs/ethenaEthenaWithdraw.d.ts.map +1 -0
  155. package/dist/esm/funcs/ethenaEthenaWithdraw.js +93 -0
  156. package/dist/esm/funcs/ethenaEthenaWithdraw.js.map +1 -0
  157. package/dist/esm/lib/config.d.ts +2 -2
  158. package/dist/esm/lib/config.js +2 -2
  159. package/dist/esm/mcp-server/mcp-server.js +1 -1
  160. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  161. package/dist/esm/mcp-server/server.js +9 -1
  162. package/dist/esm/mcp-server/server.js.map +1 -1
  163. package/dist/esm/mcp-server/tools/aaveV3AaveHistoricalTransactions.d.ts.map +1 -1
  164. package/dist/esm/mcp-server/tools/aaveV3AaveHistoricalTransactions.js +5 -1
  165. package/dist/esm/mcp-server/tools/aaveV3AaveHistoricalTransactions.js.map +1 -1
  166. package/dist/esm/mcp-server/tools/ethenaEthenaDeposit.d.ts +8 -0
  167. package/dist/esm/mcp-server/tools/ethenaEthenaDeposit.d.ts.map +1 -0
  168. package/dist/esm/mcp-server/tools/ethenaEthenaDeposit.js +38 -0
  169. package/dist/esm/mcp-server/tools/ethenaEthenaDeposit.js.map +1 -0
  170. package/dist/esm/mcp-server/tools/ethenaEthenaRequest.d.ts +8 -0
  171. package/dist/esm/mcp-server/tools/ethenaEthenaRequest.d.ts.map +1 -0
  172. package/dist/esm/mcp-server/tools/ethenaEthenaRequest.js +45 -0
  173. package/dist/esm/mcp-server/tools/ethenaEthenaRequest.js.map +1 -0
  174. package/dist/esm/mcp-server/tools/ethenaEthenaVault.d.ts +8 -0
  175. package/dist/esm/mcp-server/tools/ethenaEthenaVault.d.ts.map +1 -0
  176. package/dist/esm/mcp-server/tools/ethenaEthenaVault.js +26 -0
  177. package/dist/esm/mcp-server/tools/ethenaEthenaVault.js.map +1 -0
  178. package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.d.ts +8 -0
  179. package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.d.ts.map +1 -0
  180. package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.js +40 -0
  181. package/dist/esm/mcp-server/tools/ethenaEthenaWithdraw.js.map +1 -0
  182. package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts +10 -4
  183. package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.d.ts.map +1 -1
  184. package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js +8 -6
  185. package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.js.map +1 -1
  186. package/dist/esm/models/components/cooldownposition.d.ts +66 -0
  187. package/dist/esm/models/components/cooldownposition.d.ts.map +1 -0
  188. package/dist/esm/models/components/cooldownposition.js +75 -0
  189. package/dist/esm/models/components/cooldownposition.js.map +1 -0
  190. package/dist/esm/models/components/ethenadepositparams.d.ts +63 -0
  191. package/dist/esm/models/components/ethenadepositparams.d.ts.map +1 -0
  192. package/dist/esm/models/components/ethenadepositparams.js +65 -0
  193. package/dist/esm/models/components/ethenadepositparams.js.map +1 -0
  194. package/dist/esm/models/components/ethenadepositrequest.d.ts +93 -0
  195. package/dist/esm/models/components/ethenadepositrequest.d.ts.map +1 -0
  196. package/dist/esm/models/components/ethenadepositrequest.js +87 -0
  197. package/dist/esm/models/components/ethenadepositrequest.js.map +1 -0
  198. package/dist/esm/models/components/ethenagetvaultresponse.d.ts +80 -0
  199. package/dist/esm/models/components/ethenagetvaultresponse.d.ts.map +1 -0
  200. package/dist/esm/models/components/ethenagetvaultresponse.js +76 -0
  201. package/dist/esm/models/components/ethenagetvaultresponse.js.map +1 -0
  202. package/dist/esm/models/components/ethenarequesttowithdrawparams.d.ts +34 -0
  203. package/dist/esm/models/components/ethenarequesttowithdrawparams.d.ts.map +1 -0
  204. package/dist/esm/models/components/ethenarequesttowithdrawparams.js +42 -0
  205. package/dist/esm/models/components/ethenarequesttowithdrawparams.js.map +1 -0
  206. package/dist/esm/models/components/ethenarequesttowithdrawrequest.d.ts +64 -0
  207. package/dist/esm/models/components/ethenarequesttowithdrawrequest.d.ts.map +1 -0
  208. package/dist/esm/models/components/ethenarequesttowithdrawrequest.js +64 -0
  209. package/dist/esm/models/components/ethenarequesttowithdrawrequest.js.map +1 -0
  210. package/dist/esm/models/components/ethenarequesttowithdrawtransactionresponse.d.ts +64 -0
  211. package/dist/esm/models/components/ethenarequesttowithdrawtransactionresponse.d.ts.map +1 -0
  212. package/dist/esm/models/components/ethenarequesttowithdrawtransactionresponse.js +82 -0
  213. package/dist/esm/models/components/ethenarequesttowithdrawtransactionresponse.js.map +1 -0
  214. package/dist/esm/models/components/ethenawithdrawparams.d.ts +39 -0
  215. package/dist/esm/models/components/ethenawithdrawparams.d.ts.map +1 -0
  216. package/dist/esm/models/components/ethenawithdrawparams.js +44 -0
  217. package/dist/esm/models/components/ethenawithdrawparams.js.map +1 -0
  218. package/dist/esm/models/components/ethenawithdrawrequest.d.ts +69 -0
  219. package/dist/esm/models/components/ethenawithdrawrequest.d.ts.map +1 -0
  220. package/dist/esm/models/components/ethenawithdrawrequest.js +66 -0
  221. package/dist/esm/models/components/ethenawithdrawrequest.js.map +1 -0
  222. package/dist/esm/models/components/index.d.ts +10 -1
  223. package/dist/esm/models/components/index.d.ts.map +1 -1
  224. package/dist/esm/models/components/index.js +10 -1
  225. package/dist/esm/models/components/index.js.map +1 -1
  226. package/dist/esm/models/components/setallowanceparams.d.ts +3 -0
  227. package/dist/esm/models/components/setallowanceparams.d.ts.map +1 -1
  228. package/dist/esm/models/components/setallowanceparams.js +1 -0
  229. package/dist/esm/models/components/setallowanceparams.js.map +1 -1
  230. package/dist/esm/models/components/setallowancerequest.d.ts +3 -0
  231. package/dist/esm/models/components/setallowancerequest.d.ts.map +1 -1
  232. package/dist/esm/models/components/setallowancerequest.js +1 -0
  233. package/dist/esm/models/components/setallowancerequest.js.map +1 -1
  234. package/dist/esm/models/components/underlyingtoken.d.ts +35 -0
  235. package/dist/esm/models/components/underlyingtoken.d.ts.map +1 -0
  236. package/dist/esm/models/components/underlyingtoken.js +37 -0
  237. package/dist/esm/models/components/underlyingtoken.js.map +1 -0
  238. package/dist/esm/models/components/useroperation.d.ts +27 -0
  239. package/dist/esm/models/components/useroperation.d.ts.map +1 -1
  240. package/dist/esm/models/components/useroperation.js +27 -0
  241. package/dist/esm/models/components/useroperation.js.map +1 -1
  242. package/dist/esm/models/components/vaultgetvaultresponse.d.ts +3 -3
  243. package/dist/esm/models/components/vaultgetvaultresponse.d.ts.map +1 -1
  244. package/dist/esm/models/components/vaultgetvaultresponse.js +5 -3
  245. package/dist/esm/models/components/vaultgetvaultresponse.js.map +1 -1
  246. package/dist/esm/models/operations/index.d.ts +1 -0
  247. package/dist/esm/models/operations/index.d.ts.map +1 -1
  248. package/dist/esm/models/operations/index.js +1 -0
  249. package/dist/esm/models/operations/index.js.map +1 -1
  250. package/dist/esm/models/operations/v1ethenavault.d.ts +62 -0
  251. package/dist/esm/models/operations/v1ethenavault.d.ts.map +1 -0
  252. package/dist/esm/models/operations/v1ethenavault.js +62 -0
  253. package/dist/esm/models/operations/v1ethenavault.js.map +1 -0
  254. package/dist/esm/models/operations/v1genericallowance.d.ts +3 -0
  255. package/dist/esm/models/operations/v1genericallowance.d.ts.map +1 -1
  256. package/dist/esm/models/operations/v1genericallowance.js +1 -0
  257. package/dist/esm/models/operations/v1genericallowance.js.map +1 -1
  258. package/dist/esm/sdk/aavev3.d.ts +4 -0
  259. package/dist/esm/sdk/aavev3.d.ts.map +1 -1
  260. package/dist/esm/sdk/aavev3.js +4 -0
  261. package/dist/esm/sdk/aavev3.js.map +1 -1
  262. package/dist/esm/sdk/ethena.d.ts +67 -0
  263. package/dist/esm/sdk/ethena.d.ts.map +1 -0
  264. package/dist/esm/sdk/ethena.js +81 -0
  265. package/dist/esm/sdk/ethena.js.map +1 -0
  266. package/dist/esm/sdk/sdk.d.ts +3 -0
  267. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  268. package/dist/esm/sdk/sdk.js +4 -0
  269. package/dist/esm/sdk/sdk.js.map +1 -1
  270. package/docs/sdks/aavev3/README.md +4 -0
  271. package/docs/sdks/ethena/README.md +354 -0
  272. package/jsr.json +1 -1
  273. package/package.json +1 -1
  274. package/src/funcs/aaveV3AaveHistoricalTransactions.ts +4 -0
  275. package/src/funcs/ethenaEthenaDeposit.ts +178 -0
  276. package/src/funcs/ethenaEthenaRequest.ts +189 -0
  277. package/src/funcs/ethenaEthenaVault.ts +173 -0
  278. package/src/funcs/ethenaEthenaWithdraw.ts +180 -0
  279. package/src/lib/config.ts +2 -2
  280. package/src/mcp-server/mcp-server.ts +1 -1
  281. package/src/mcp-server/server.ts +9 -1
  282. package/src/mcp-server/tools/aaveV3AaveHistoricalTransactions.ts +5 -1
  283. package/src/mcp-server/tools/ethenaEthenaDeposit.ts +47 -0
  284. package/src/mcp-server/tools/ethenaEthenaRequest.ts +54 -0
  285. package/src/mcp-server/tools/ethenaEthenaVault.ts +35 -0
  286. package/src/mcp-server/tools/ethenaEthenaWithdraw.ts +49 -0
  287. package/src/models/components/compassapibackendmodelsvaultsreadresponsevaultuserposition.ts +18 -10
  288. package/src/models/components/cooldownposition.ts +151 -0
  289. package/src/models/components/ethenadepositparams.ts +142 -0
  290. package/src/models/components/ethenadepositrequest.ts +182 -0
  291. package/src/models/components/ethenagetvaultresponse.ts +188 -0
  292. package/src/models/components/ethenarequesttowithdrawparams.ts +88 -0
  293. package/src/models/components/ethenarequesttowithdrawrequest.ts +130 -0
  294. package/src/models/components/ethenarequesttowithdrawtransactionresponse.ts +208 -0
  295. package/src/models/components/ethenawithdrawparams.ts +89 -0
  296. package/src/models/components/ethenawithdrawrequest.ts +129 -0
  297. package/src/models/components/index.ts +10 -1
  298. package/src/models/components/setallowanceparams.ts +1 -0
  299. package/src/models/components/setallowancerequest.ts +1 -0
  300. package/src/models/components/underlyingtoken.ts +76 -0
  301. package/src/models/components/useroperation.ts +96 -0
  302. package/src/models/components/vaultgetvaultresponse.ts +12 -10
  303. package/src/models/operations/index.ts +1 -0
  304. package/src/models/operations/v1ethenavault.ts +116 -0
  305. package/src/models/operations/v1genericallowance.ts +1 -0
  306. package/src/sdk/aavev3.ts +4 -0
  307. package/src/sdk/ethena.ts +115 -0
  308. package/src/sdk/sdk.ts +6 -0
  309. package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.d.ts +0 -35
  310. package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.d.ts.map +0 -1
  311. package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.js +0 -75
  312. package/dist/commonjs/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.js.map +0 -1
  313. package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.d.ts +0 -35
  314. package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.d.ts.map +0 -1
  315. package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.js +0 -37
  316. package/dist/esm/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.js.map +0 -1
  317. package/src/models/components/compassapibackendmodelsvaultsreadresponsevaultasset.ts +0 -92
@@ -0,0 +1,129 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export const EthenaWithdrawRequestChain = {
13
+ Ethereum: "ethereum",
14
+ } as const;
15
+ export type EthenaWithdrawRequestChain = ClosedEnum<
16
+ typeof EthenaWithdrawRequestChain
17
+ >;
18
+
19
+ export type EthenaWithdrawRequest = {
20
+ actionType?: "ETHENA_WITHDRAW" | undefined;
21
+ /**
22
+ * The amount of USDe to withdraw from Ethena's vault. If set to 'ALL', your total deposited USDe amount will be withdrawn.
23
+ */
24
+ amount?: any | undefined;
25
+ /**
26
+ * The address which will receive the USDe withdrawn. Defaults to the sender.
27
+ */
28
+ receiver?: string | null | undefined;
29
+ chain: EthenaWithdrawRequestChain;
30
+ /**
31
+ * The address of the transaction sender.
32
+ */
33
+ sender: string;
34
+ };
35
+
36
+ /** @internal */
37
+ export const EthenaWithdrawRequestChain$inboundSchema: z.ZodNativeEnum<
38
+ typeof EthenaWithdrawRequestChain
39
+ > = z.nativeEnum(EthenaWithdrawRequestChain);
40
+
41
+ /** @internal */
42
+ export const EthenaWithdrawRequestChain$outboundSchema: z.ZodNativeEnum<
43
+ typeof EthenaWithdrawRequestChain
44
+ > = EthenaWithdrawRequestChain$inboundSchema;
45
+
46
+ /**
47
+ * @internal
48
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
49
+ */
50
+ export namespace EthenaWithdrawRequestChain$ {
51
+ /** @deprecated use `EthenaWithdrawRequestChain$inboundSchema` instead. */
52
+ export const inboundSchema = EthenaWithdrawRequestChain$inboundSchema;
53
+ /** @deprecated use `EthenaWithdrawRequestChain$outboundSchema` instead. */
54
+ export const outboundSchema = EthenaWithdrawRequestChain$outboundSchema;
55
+ }
56
+
57
+ /** @internal */
58
+ export const EthenaWithdrawRequest$inboundSchema: z.ZodType<
59
+ EthenaWithdrawRequest,
60
+ z.ZodTypeDef,
61
+ unknown
62
+ > = z.object({
63
+ action_type: z.literal("ETHENA_WITHDRAW").default("ETHENA_WITHDRAW"),
64
+ amount: z.any().optional(),
65
+ receiver: z.nullable(z.string()).optional(),
66
+ chain: EthenaWithdrawRequestChain$inboundSchema,
67
+ sender: z.string(),
68
+ }).transform((v) => {
69
+ return remap$(v, {
70
+ "action_type": "actionType",
71
+ });
72
+ });
73
+
74
+ /** @internal */
75
+ export type EthenaWithdrawRequest$Outbound = {
76
+ action_type: "ETHENA_WITHDRAW";
77
+ amount?: any | undefined;
78
+ receiver?: string | null | undefined;
79
+ chain: string;
80
+ sender: string;
81
+ };
82
+
83
+ /** @internal */
84
+ export const EthenaWithdrawRequest$outboundSchema: z.ZodType<
85
+ EthenaWithdrawRequest$Outbound,
86
+ z.ZodTypeDef,
87
+ EthenaWithdrawRequest
88
+ > = z.object({
89
+ actionType: z.literal("ETHENA_WITHDRAW").default("ETHENA_WITHDRAW" as const),
90
+ amount: z.any().optional(),
91
+ receiver: z.nullable(z.string()).optional(),
92
+ chain: EthenaWithdrawRequestChain$outboundSchema,
93
+ sender: z.string(),
94
+ }).transform((v) => {
95
+ return remap$(v, {
96
+ actionType: "action_type",
97
+ });
98
+ });
99
+
100
+ /**
101
+ * @internal
102
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
103
+ */
104
+ export namespace EthenaWithdrawRequest$ {
105
+ /** @deprecated use `EthenaWithdrawRequest$inboundSchema` instead. */
106
+ export const inboundSchema = EthenaWithdrawRequest$inboundSchema;
107
+ /** @deprecated use `EthenaWithdrawRequest$outboundSchema` instead. */
108
+ export const outboundSchema = EthenaWithdrawRequest$outboundSchema;
109
+ /** @deprecated use `EthenaWithdrawRequest$Outbound` instead. */
110
+ export type Outbound = EthenaWithdrawRequest$Outbound;
111
+ }
112
+
113
+ export function ethenaWithdrawRequestToJSON(
114
+ ethenaWithdrawRequest: EthenaWithdrawRequest,
115
+ ): string {
116
+ return JSON.stringify(
117
+ EthenaWithdrawRequest$outboundSchema.parse(ethenaWithdrawRequest),
118
+ );
119
+ }
120
+
121
+ export function ethenaWithdrawRequestFromJSON(
122
+ jsonString: string,
123
+ ): SafeParseResult<EthenaWithdrawRequest, SDKValidationError> {
124
+ return safeParse(
125
+ jsonString,
126
+ (x) => EthenaWithdrawRequest$inboundSchema.parse(JSON.parse(x)),
127
+ `Failed to parse 'EthenaWithdrawRequest' from JSON`,
128
+ );
129
+ }
@@ -56,11 +56,19 @@ export * from "./compassapibackendmodelsmorphoreadresponsegetvaultsasset.js";
56
56
  export * from "./compassapibackendmodelsmorphoreadresponsegetvaultsvaultstate.js";
57
57
  export * from "./compassapibackendmodelspendlereadresponsemarketuserposition.js";
58
58
  export * from "./compassapibackendmodelspendlereadresponsepositionstokenbalance.js";
59
- export * from "./compassapibackendmodelsvaultsreadresponsevaultasset.js";
60
59
  export * from "./compassapibackendmodelsvaultsreadresponsevaultuserposition.js";
60
+ export * from "./cooldownposition.js";
61
61
  export * from "./details.js";
62
62
  export * from "./ensnameinforesponse.js";
63
63
  export * from "./erc20data.js";
64
+ export * from "./ethenadepositparams.js";
65
+ export * from "./ethenadepositrequest.js";
66
+ export * from "./ethenagetvaultresponse.js";
67
+ export * from "./ethenarequesttowithdrawparams.js";
68
+ export * from "./ethenarequesttowithdrawrequest.js";
69
+ export * from "./ethenarequesttowithdrawtransactionresponse.js";
70
+ export * from "./ethenawithdrawparams.js";
71
+ export * from "./ethenawithdrawrequest.js";
64
72
  export * from "./feeenum.js";
65
73
  export * from "./interestratemode.js";
66
74
  export * from "./liquidationcall.js";
@@ -139,6 +147,7 @@ export * from "./tokentransfererc20params.js";
139
147
  export * from "./tokentransferparams.js";
140
148
  export * from "./tokentransferrequest.js";
141
149
  export * from "./transactionresponse.js";
150
+ export * from "./underlyingtoken.js";
142
151
  export * from "./uniswapbuyexactlyparams.js";
143
152
  export * from "./uniswapbuyexactlyrequest.js";
144
153
  export * from "./uniswapbuyexactlytransactionresponse.js";
@@ -33,6 +33,7 @@ export const SetAllowanceParamsContractEnum = {
33
33
  SkyUsdsVault: "SkyUsdsVault",
34
34
  PendleRouter: "PendleRouter",
35
35
  OdosRouter: "OdosRouter",
36
+ EthenaVault: "EthenaVault",
36
37
  } as const;
37
38
  export type SetAllowanceParamsContractEnum = ClosedEnum<
38
39
  typeof SetAllowanceParamsContractEnum
@@ -33,6 +33,7 @@ export const SetAllowanceRequestContractEnum = {
33
33
  SkyUsdsVault: "SkyUsdsVault",
34
34
  PendleRouter: "PendleRouter",
35
35
  OdosRouter: "OdosRouter",
36
+ EthenaVault: "EthenaVault",
36
37
  } as const;
37
38
  export type SetAllowanceRequestContractEnum = ClosedEnum<
38
39
  typeof SetAllowanceRequestContractEnum
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type UnderlyingToken = {
11
+ address: string;
12
+ name: string;
13
+ symbol: string;
14
+ decimals: number;
15
+ };
16
+
17
+ /** @internal */
18
+ export const UnderlyingToken$inboundSchema: z.ZodType<
19
+ UnderlyingToken,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z.object({
23
+ address: z.string(),
24
+ name: z.string(),
25
+ symbol: z.string(),
26
+ decimals: z.number().int(),
27
+ });
28
+
29
+ /** @internal */
30
+ export type UnderlyingToken$Outbound = {
31
+ address: string;
32
+ name: string;
33
+ symbol: string;
34
+ decimals: number;
35
+ };
36
+
37
+ /** @internal */
38
+ export const UnderlyingToken$outboundSchema: z.ZodType<
39
+ UnderlyingToken$Outbound,
40
+ z.ZodTypeDef,
41
+ UnderlyingToken
42
+ > = z.object({
43
+ address: z.string(),
44
+ name: z.string(),
45
+ symbol: z.string(),
46
+ decimals: z.number().int(),
47
+ });
48
+
49
+ /**
50
+ * @internal
51
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
+ */
53
+ export namespace UnderlyingToken$ {
54
+ /** @deprecated use `UnderlyingToken$inboundSchema` instead. */
55
+ export const inboundSchema = UnderlyingToken$inboundSchema;
56
+ /** @deprecated use `UnderlyingToken$outboundSchema` instead. */
57
+ export const outboundSchema = UnderlyingToken$outboundSchema;
58
+ /** @deprecated use `UnderlyingToken$Outbound` instead. */
59
+ export type Outbound = UnderlyingToken$Outbound;
60
+ }
61
+
62
+ export function underlyingTokenToJSON(
63
+ underlyingToken: UnderlyingToken,
64
+ ): string {
65
+ return JSON.stringify(UnderlyingToken$outboundSchema.parse(underlyingToken));
66
+ }
67
+
68
+ export function underlyingTokenFromJSON(
69
+ jsonString: string,
70
+ ): SafeParseResult<UnderlyingToken, SDKValidationError> {
71
+ return safeParse(
72
+ jsonString,
73
+ (x) => UnderlyingToken$inboundSchema.parse(JSON.parse(x)),
74
+ `Failed to parse 'UnderlyingToken' from JSON`,
75
+ );
76
+ }
@@ -60,6 +60,24 @@ import {
60
60
  AerodromeSlipstreamWithdrawLiquidityProvisionParams$Outbound,
61
61
  AerodromeSlipstreamWithdrawLiquidityProvisionParams$outboundSchema,
62
62
  } from "./aerodromeslipstreamwithdrawliquidityprovisionparams.js";
63
+ import {
64
+ EthenaDepositParams,
65
+ EthenaDepositParams$inboundSchema,
66
+ EthenaDepositParams$Outbound,
67
+ EthenaDepositParams$outboundSchema,
68
+ } from "./ethenadepositparams.js";
69
+ import {
70
+ EthenaRequestToWithdrawParams,
71
+ EthenaRequestToWithdrawParams$inboundSchema,
72
+ EthenaRequestToWithdrawParams$Outbound,
73
+ EthenaRequestToWithdrawParams$outboundSchema,
74
+ } from "./ethenarequesttowithdrawparams.js";
75
+ import {
76
+ EthenaWithdrawParams,
77
+ EthenaWithdrawParams$inboundSchema,
78
+ EthenaWithdrawParams$Outbound,
79
+ EthenaWithdrawParams$outboundSchema,
80
+ } from "./ethenawithdrawparams.js";
63
81
  import {
64
82
  MorphoBorrowParams,
65
83
  MorphoBorrowParams$inboundSchema,
@@ -273,6 +291,9 @@ export type Body =
273
291
  })
274
292
  | (VaultDepositParams & { actionType: "VAULT_DEPOSIT" })
275
293
  | (VaultWithdrawParams & { actionType: "VAULT_WITHDRAW" })
294
+ | (EthenaDepositParams & { actionType: "ETHENA_DEPOSIT" })
295
+ | (EthenaRequestToWithdrawParams & { actionType: "ETHENA_REQUEST_WITHDRAW" })
296
+ | (EthenaWithdrawParams & { actionType: "ETHENA_WITHDRAW" })
276
297
  | (PendleRedeemYieldParams & { actionType: "PENDLE_REDEEM_YIELD" })
277
298
  | (SkyDepositParams & { actionType: "SKY_DEPOSIT" })
278
299
  | (SkyWithdrawParams & { actionType: "SKY_WITHDRAW" })
@@ -332,6 +353,11 @@ export type UserOperation = {
332
353
  })
333
354
  | (VaultDepositParams & { actionType: "VAULT_DEPOSIT" })
334
355
  | (VaultWithdrawParams & { actionType: "VAULT_WITHDRAW" })
356
+ | (EthenaDepositParams & { actionType: "ETHENA_DEPOSIT" })
357
+ | (EthenaRequestToWithdrawParams & {
358
+ actionType: "ETHENA_REQUEST_WITHDRAW";
359
+ })
360
+ | (EthenaWithdrawParams & { actionType: "ETHENA_WITHDRAW" })
335
361
  | (PendleRedeemYieldParams & { actionType: "PENDLE_REDEEM_YIELD" })
336
362
  | (SkyDepositParams & { actionType: "SKY_DEPOSIT" })
337
363
  | (SkyWithdrawParams & { actionType: "SKY_WITHDRAW" })
@@ -496,6 +522,21 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
496
522
  actionType: v.action_type,
497
523
  })),
498
524
  ),
525
+ EthenaDepositParams$inboundSchema.and(
526
+ z.object({ action_type: z.literal("ETHENA_DEPOSIT") }).transform((v) => ({
527
+ actionType: v.action_type,
528
+ })),
529
+ ),
530
+ EthenaRequestToWithdrawParams$inboundSchema.and(
531
+ z.object({ action_type: z.literal("ETHENA_REQUEST_WITHDRAW") }).transform(
532
+ (v) => ({ actionType: v.action_type })
533
+ ),
534
+ ),
535
+ EthenaWithdrawParams$inboundSchema.and(
536
+ z.object({ action_type: z.literal("ETHENA_WITHDRAW") }).transform((
537
+ v,
538
+ ) => ({ actionType: v.action_type })),
539
+ ),
499
540
  PendleRedeemYieldParams$inboundSchema.and(
500
541
  z.object({ action_type: z.literal("PENDLE_REDEEM_YIELD") }).transform((
501
542
  v,
@@ -582,6 +623,11 @@ export type Body$Outbound =
582
623
  })
583
624
  | (VaultDepositParams$Outbound & { action_type: "VAULT_DEPOSIT" })
584
625
  | (VaultWithdrawParams$Outbound & { action_type: "VAULT_WITHDRAW" })
626
+ | (EthenaDepositParams$Outbound & { action_type: "ETHENA_DEPOSIT" })
627
+ | (EthenaRequestToWithdrawParams$Outbound & {
628
+ action_type: "ETHENA_REQUEST_WITHDRAW";
629
+ })
630
+ | (EthenaWithdrawParams$Outbound & { action_type: "ETHENA_WITHDRAW" })
585
631
  | (PendleRedeemYieldParams$Outbound & { action_type: "PENDLE_REDEEM_YIELD" })
586
632
  | (SkyDepositParams$Outbound & { action_type: "SKY_DEPOSIT" })
587
633
  | (SkyWithdrawParams$Outbound & { action_type: "SKY_WITHDRAW" })
@@ -746,6 +792,21 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
746
792
  action_type: v.actionType,
747
793
  })),
748
794
  ),
795
+ EthenaDepositParams$outboundSchema.and(
796
+ z.object({ actionType: z.literal("ETHENA_DEPOSIT") }).transform((v) => ({
797
+ action_type: v.actionType,
798
+ })),
799
+ ),
800
+ EthenaRequestToWithdrawParams$outboundSchema.and(
801
+ z.object({ actionType: z.literal("ETHENA_REQUEST_WITHDRAW") }).transform((
802
+ v,
803
+ ) => ({ action_type: v.actionType })),
804
+ ),
805
+ EthenaWithdrawParams$outboundSchema.and(
806
+ z.object({ actionType: z.literal("ETHENA_WITHDRAW") }).transform((v) => ({
807
+ action_type: v.actionType,
808
+ })),
809
+ ),
749
810
  PendleRedeemYieldParams$outboundSchema.and(
750
811
  z.object({ actionType: z.literal("PENDLE_REDEEM_YIELD") }).transform((
751
812
  v,
@@ -961,6 +1022,21 @@ export const UserOperation$inboundSchema: z.ZodType<
961
1022
  actionType: v.action_type,
962
1023
  })),
963
1024
  ),
1025
+ EthenaDepositParams$inboundSchema.and(
1026
+ z.object({ action_type: z.literal("ETHENA_DEPOSIT") }).transform((v) => ({
1027
+ actionType: v.action_type,
1028
+ })),
1029
+ ),
1030
+ EthenaRequestToWithdrawParams$inboundSchema.and(
1031
+ z.object({ action_type: z.literal("ETHENA_REQUEST_WITHDRAW") }).transform(
1032
+ (v) => ({ actionType: v.action_type })
1033
+ ),
1034
+ ),
1035
+ EthenaWithdrawParams$inboundSchema.and(
1036
+ z.object({ action_type: z.literal("ETHENA_WITHDRAW") }).transform((
1037
+ v,
1038
+ ) => ({ actionType: v.action_type })),
1039
+ ),
964
1040
  PendleRedeemYieldParams$inboundSchema.and(
965
1041
  z.object({ action_type: z.literal("PENDLE_REDEEM_YIELD") }).transform((
966
1042
  v,
@@ -1051,6 +1127,11 @@ export type UserOperation$Outbound = {
1051
1127
  })
1052
1128
  | (VaultDepositParams$Outbound & { action_type: "VAULT_DEPOSIT" })
1053
1129
  | (VaultWithdrawParams$Outbound & { action_type: "VAULT_WITHDRAW" })
1130
+ | (EthenaDepositParams$Outbound & { action_type: "ETHENA_DEPOSIT" })
1131
+ | (EthenaRequestToWithdrawParams$Outbound & {
1132
+ action_type: "ETHENA_REQUEST_WITHDRAW";
1133
+ })
1134
+ | (EthenaWithdrawParams$Outbound & { action_type: "ETHENA_WITHDRAW" })
1054
1135
  | (PendleRedeemYieldParams$Outbound & {
1055
1136
  action_type: "PENDLE_REDEEM_YIELD";
1056
1137
  })
@@ -1222,6 +1303,21 @@ export const UserOperation$outboundSchema: z.ZodType<
1222
1303
  action_type: v.actionType,
1223
1304
  })),
1224
1305
  ),
1306
+ EthenaDepositParams$outboundSchema.and(
1307
+ z.object({ actionType: z.literal("ETHENA_DEPOSIT") }).transform((v) => ({
1308
+ action_type: v.actionType,
1309
+ })),
1310
+ ),
1311
+ EthenaRequestToWithdrawParams$outboundSchema.and(
1312
+ z.object({ actionType: z.literal("ETHENA_REQUEST_WITHDRAW") }).transform((
1313
+ v,
1314
+ ) => ({ action_type: v.actionType })),
1315
+ ),
1316
+ EthenaWithdrawParams$outboundSchema.and(
1317
+ z.object({ actionType: z.literal("ETHENA_WITHDRAW") }).transform((v) => ({
1318
+ action_type: v.actionType,
1319
+ })),
1320
+ ),
1225
1321
  PendleRedeemYieldParams$outboundSchema.and(
1226
1322
  z.object({ actionType: z.literal("PENDLE_REDEEM_YIELD") }).transform((
1227
1323
  v,
@@ -13,18 +13,18 @@ import {
13
13
  Apy$Outbound,
14
14
  Apy$outboundSchema,
15
15
  } from "./apy.js";
16
- import {
17
- CompassApiBackendModelsVaultsReadResponseVaultAsset,
18
- CompassApiBackendModelsVaultsReadResponseVaultAsset$inboundSchema,
19
- CompassApiBackendModelsVaultsReadResponseVaultAsset$Outbound,
20
- CompassApiBackendModelsVaultsReadResponseVaultAsset$outboundSchema,
21
- } from "./compassapibackendmodelsvaultsreadresponsevaultasset.js";
22
16
  import {
23
17
  CompassApiBackendModelsVaultsReadResponseVaultUserPosition,
24
18
  CompassApiBackendModelsVaultsReadResponseVaultUserPosition$inboundSchema,
25
19
  CompassApiBackendModelsVaultsReadResponseVaultUserPosition$Outbound,
26
20
  CompassApiBackendModelsVaultsReadResponseVaultUserPosition$outboundSchema,
27
21
  } from "./compassapibackendmodelsvaultsreadresponsevaultuserposition.js";
22
+ import {
23
+ UnderlyingToken,
24
+ UnderlyingToken$inboundSchema,
25
+ UnderlyingToken$Outbound,
26
+ UnderlyingToken$outboundSchema,
27
+ } from "./underlyingtoken.js";
28
28
 
29
29
  export type VaultGetVaultResponse = {
30
30
  /**
@@ -51,7 +51,7 @@ export type VaultGetVaultResponse = {
51
51
  * The price of one vault share in terms of the underlying asset.
52
52
  */
53
53
  sharePrice: string;
54
- asset: CompassApiBackendModelsVaultsReadResponseVaultAsset;
54
+ underlyingToken: UnderlyingToken;
55
55
  apy: Apy;
56
56
  /**
57
57
  * The user's position in the vault.
@@ -74,7 +74,7 @@ export const VaultGetVaultResponse$inboundSchema: z.ZodType<
74
74
  total_assets: z.string(),
75
75
  total_supply: z.string(),
76
76
  share_price: z.string(),
77
- asset: CompassApiBackendModelsVaultsReadResponseVaultAsset$inboundSchema,
77
+ underlying_token: UnderlyingToken$inboundSchema,
78
78
  apy: Apy$inboundSchema,
79
79
  user_position: z.nullable(
80
80
  CompassApiBackendModelsVaultsReadResponseVaultUserPosition$inboundSchema,
@@ -84,6 +84,7 @@ export const VaultGetVaultResponse$inboundSchema: z.ZodType<
84
84
  "total_assets": "totalAssets",
85
85
  "total_supply": "totalSupply",
86
86
  "share_price": "sharePrice",
87
+ "underlying_token": "underlyingToken",
87
88
  "user_position": "userPosition",
88
89
  });
89
90
  });
@@ -96,7 +97,7 @@ export type VaultGetVaultResponse$Outbound = {
96
97
  total_assets: string;
97
98
  total_supply: string;
98
99
  share_price: string;
99
- asset: CompassApiBackendModelsVaultsReadResponseVaultAsset$Outbound;
100
+ underlying_token: UnderlyingToken$Outbound;
100
101
  apy: Apy$Outbound;
101
102
  user_position?:
102
103
  | CompassApiBackendModelsVaultsReadResponseVaultUserPosition$Outbound
@@ -116,7 +117,7 @@ export const VaultGetVaultResponse$outboundSchema: z.ZodType<
116
117
  totalAssets: z.string(),
117
118
  totalSupply: z.string(),
118
119
  sharePrice: z.string(),
119
- asset: CompassApiBackendModelsVaultsReadResponseVaultAsset$outboundSchema,
120
+ underlyingToken: UnderlyingToken$outboundSchema,
120
121
  apy: Apy$outboundSchema,
121
122
  userPosition: z.nullable(
122
123
  CompassApiBackendModelsVaultsReadResponseVaultUserPosition$outboundSchema,
@@ -126,6 +127,7 @@ export const VaultGetVaultResponse$outboundSchema: z.ZodType<
126
127
  totalAssets: "total_assets",
127
128
  totalSupply: "total_supply",
128
129
  sharePrice: "share_price",
130
+ underlyingToken: "underlying_token",
129
131
  userPosition: "user_position",
130
132
  });
131
133
  });
@@ -14,6 +14,7 @@ export * from "./v1aaveuserpositionpertoken.js";
14
14
  export * from "./v1aaveuserpositionsummary.js";
15
15
  export * from "./v1aerodromeslipstreamliquidityprovisionpositions.js";
16
16
  export * from "./v1aerodromeslipstreampoolprice.js";
17
+ export * from "./v1ethenavault.js";
17
18
  export * from "./v1genericallowance.js";
18
19
  export * from "./v1genericens.js";
19
20
  export * from "./v1genericportfolio.js";
@@ -0,0 +1,116 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export const V1EthenaVaultChain = {
13
+ Ethereum: "ethereum",
14
+ } as const;
15
+ export type V1EthenaVaultChain = ClosedEnum<typeof V1EthenaVaultChain>;
16
+
17
+ export type V1EthenaVaultRequest = {
18
+ chain?: V1EthenaVaultChain | undefined;
19
+ /**
20
+ * Optional block number (defaults to latest).
21
+ */
22
+ block?: number | null | undefined;
23
+ /**
24
+ * The user address of the desired vault position. Only include if you would like the user position included in the response. Defaults to `None`.
25
+ */
26
+ userAddress?: string | null | undefined;
27
+ };
28
+
29
+ /** @internal */
30
+ export const V1EthenaVaultChain$inboundSchema: z.ZodNativeEnum<
31
+ typeof V1EthenaVaultChain
32
+ > = z.nativeEnum(V1EthenaVaultChain);
33
+
34
+ /** @internal */
35
+ export const V1EthenaVaultChain$outboundSchema: z.ZodNativeEnum<
36
+ typeof V1EthenaVaultChain
37
+ > = V1EthenaVaultChain$inboundSchema;
38
+
39
+ /**
40
+ * @internal
41
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
42
+ */
43
+ export namespace V1EthenaVaultChain$ {
44
+ /** @deprecated use `V1EthenaVaultChain$inboundSchema` instead. */
45
+ export const inboundSchema = V1EthenaVaultChain$inboundSchema;
46
+ /** @deprecated use `V1EthenaVaultChain$outboundSchema` instead. */
47
+ export const outboundSchema = V1EthenaVaultChain$outboundSchema;
48
+ }
49
+
50
+ /** @internal */
51
+ export const V1EthenaVaultRequest$inboundSchema: z.ZodType<
52
+ V1EthenaVaultRequest,
53
+ z.ZodTypeDef,
54
+ unknown
55
+ > = z.object({
56
+ chain: V1EthenaVaultChain$inboundSchema.default("ethereum"),
57
+ block: z.nullable(z.number().int()).optional(),
58
+ user_address: z.nullable(z.string()).optional(),
59
+ }).transform((v) => {
60
+ return remap$(v, {
61
+ "user_address": "userAddress",
62
+ });
63
+ });
64
+
65
+ /** @internal */
66
+ export type V1EthenaVaultRequest$Outbound = {
67
+ chain: string;
68
+ block?: number | null | undefined;
69
+ user_address?: string | null | undefined;
70
+ };
71
+
72
+ /** @internal */
73
+ export const V1EthenaVaultRequest$outboundSchema: z.ZodType<
74
+ V1EthenaVaultRequest$Outbound,
75
+ z.ZodTypeDef,
76
+ V1EthenaVaultRequest
77
+ > = z.object({
78
+ chain: V1EthenaVaultChain$outboundSchema.default("ethereum"),
79
+ block: z.nullable(z.number().int()).optional(),
80
+ userAddress: z.nullable(z.string()).optional(),
81
+ }).transform((v) => {
82
+ return remap$(v, {
83
+ userAddress: "user_address",
84
+ });
85
+ });
86
+
87
+ /**
88
+ * @internal
89
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
+ */
91
+ export namespace V1EthenaVaultRequest$ {
92
+ /** @deprecated use `V1EthenaVaultRequest$inboundSchema` instead. */
93
+ export const inboundSchema = V1EthenaVaultRequest$inboundSchema;
94
+ /** @deprecated use `V1EthenaVaultRequest$outboundSchema` instead. */
95
+ export const outboundSchema = V1EthenaVaultRequest$outboundSchema;
96
+ /** @deprecated use `V1EthenaVaultRequest$Outbound` instead. */
97
+ export type Outbound = V1EthenaVaultRequest$Outbound;
98
+ }
99
+
100
+ export function v1EthenaVaultRequestToJSON(
101
+ v1EthenaVaultRequest: V1EthenaVaultRequest,
102
+ ): string {
103
+ return JSON.stringify(
104
+ V1EthenaVaultRequest$outboundSchema.parse(v1EthenaVaultRequest),
105
+ );
106
+ }
107
+
108
+ export function v1EthenaVaultRequestFromJSON(
109
+ jsonString: string,
110
+ ): SafeParseResult<V1EthenaVaultRequest, SDKValidationError> {
111
+ return safeParse(
112
+ jsonString,
113
+ (x) => V1EthenaVaultRequest$inboundSchema.parse(JSON.parse(x)),
114
+ `Failed to parse 'V1EthenaVaultRequest' from JSON`,
115
+ );
116
+ }
@@ -37,6 +37,7 @@ export const ContractEnum = {
37
37
  SkyUsdsVault: "SkyUsdsVault",
38
38
  PendleRouter: "PendleRouter",
39
39
  OdosRouter: "OdosRouter",
40
+ EthenaVault: "EthenaVault",
40
41
  } as const;
41
42
  export type ContractEnum = ClosedEnum<typeof ContractEnum>;
42
43
 
package/src/sdk/aavev3.ts CHANGED
@@ -242,6 +242,10 @@ export class AaveV3 extends ClientSDK {
242
242
  * repayments. Each transaction includes details such as the token, amount, timestamp,
243
243
  * and transaction type. This provides a comprehensive view of the user's historical
244
244
  * activity within the AAVE protocol.
245
+ *
246
+ * ⚠️ Data comes from the official Aave subgraph (
247
+ * https://github.com/aave/protocol-subgraphs)
248
+ * and thus this particular endpoint may be less reliable than our other endpoints. ⚠️
245
249
  */
246
250
  async aaveHistoricalTransactions(
247
251
  request: operations.V1AaveHistoricalTransactionsRequest,