@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,127 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.EthenaDepositRequest$ = exports.EthenaDepositRequest$outboundSchema = exports.EthenaDepositRequest$inboundSchema = exports.EthenaDepositRequestChain$ = exports.EthenaDepositRequestChain$outboundSchema = exports.EthenaDepositRequestChain$inboundSchema = exports.EthenaDepositRequestAmount$ = exports.EthenaDepositRequestAmount$outboundSchema = exports.EthenaDepositRequestAmount$inboundSchema = exports.EthenaDepositRequestChain = void 0;
40
+ exports.ethenaDepositRequestAmountToJSON = ethenaDepositRequestAmountToJSON;
41
+ exports.ethenaDepositRequestAmountFromJSON = ethenaDepositRequestAmountFromJSON;
42
+ exports.ethenaDepositRequestToJSON = ethenaDepositRequestToJSON;
43
+ exports.ethenaDepositRequestFromJSON = ethenaDepositRequestFromJSON;
44
+ const z = __importStar(require("zod"));
45
+ const primitives_js_1 = require("../../lib/primitives.js");
46
+ const schemas_js_1 = require("../../lib/schemas.js");
47
+ exports.EthenaDepositRequestChain = {
48
+ Ethereum: "ethereum",
49
+ };
50
+ /** @internal */
51
+ exports.EthenaDepositRequestAmount$inboundSchema = z.union([z.number(), z.string()]);
52
+ /** @internal */
53
+ exports.EthenaDepositRequestAmount$outboundSchema = z.union([z.number(), z.string()]);
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ var EthenaDepositRequestAmount$;
59
+ (function (EthenaDepositRequestAmount$) {
60
+ /** @deprecated use `EthenaDepositRequestAmount$inboundSchema` instead. */
61
+ EthenaDepositRequestAmount$.inboundSchema = exports.EthenaDepositRequestAmount$inboundSchema;
62
+ /** @deprecated use `EthenaDepositRequestAmount$outboundSchema` instead. */
63
+ EthenaDepositRequestAmount$.outboundSchema = exports.EthenaDepositRequestAmount$outboundSchema;
64
+ })(EthenaDepositRequestAmount$ || (exports.EthenaDepositRequestAmount$ = EthenaDepositRequestAmount$ = {}));
65
+ function ethenaDepositRequestAmountToJSON(ethenaDepositRequestAmount) {
66
+ return JSON.stringify(exports.EthenaDepositRequestAmount$outboundSchema.parse(ethenaDepositRequestAmount));
67
+ }
68
+ function ethenaDepositRequestAmountFromJSON(jsonString) {
69
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EthenaDepositRequestAmount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EthenaDepositRequestAmount' from JSON`);
70
+ }
71
+ /** @internal */
72
+ exports.EthenaDepositRequestChain$inboundSchema = z.nativeEnum(exports.EthenaDepositRequestChain);
73
+ /** @internal */
74
+ exports.EthenaDepositRequestChain$outboundSchema = exports.EthenaDepositRequestChain$inboundSchema;
75
+ /**
76
+ * @internal
77
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
78
+ */
79
+ var EthenaDepositRequestChain$;
80
+ (function (EthenaDepositRequestChain$) {
81
+ /** @deprecated use `EthenaDepositRequestChain$inboundSchema` instead. */
82
+ EthenaDepositRequestChain$.inboundSchema = exports.EthenaDepositRequestChain$inboundSchema;
83
+ /** @deprecated use `EthenaDepositRequestChain$outboundSchema` instead. */
84
+ EthenaDepositRequestChain$.outboundSchema = exports.EthenaDepositRequestChain$outboundSchema;
85
+ })(EthenaDepositRequestChain$ || (exports.EthenaDepositRequestChain$ = EthenaDepositRequestChain$ = {}));
86
+ /** @internal */
87
+ exports.EthenaDepositRequest$inboundSchema = z.object({
88
+ action_type: z.literal("ETHENA_DEPOSIT").default("ETHENA_DEPOSIT"),
89
+ amount: z.union([z.number(), z.string()]),
90
+ receiver: z.nullable(z.string()).optional(),
91
+ chain: exports.EthenaDepositRequestChain$inboundSchema,
92
+ sender: z.string(),
93
+ }).transform((v) => {
94
+ return (0, primitives_js_1.remap)(v, {
95
+ "action_type": "actionType",
96
+ });
97
+ });
98
+ /** @internal */
99
+ exports.EthenaDepositRequest$outboundSchema = z.object({
100
+ actionType: z.literal("ETHENA_DEPOSIT").default("ETHENA_DEPOSIT"),
101
+ amount: z.union([z.number(), z.string()]),
102
+ receiver: z.nullable(z.string()).optional(),
103
+ chain: exports.EthenaDepositRequestChain$outboundSchema,
104
+ sender: z.string(),
105
+ }).transform((v) => {
106
+ return (0, primitives_js_1.remap)(v, {
107
+ actionType: "action_type",
108
+ });
109
+ });
110
+ /**
111
+ * @internal
112
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
113
+ */
114
+ var EthenaDepositRequest$;
115
+ (function (EthenaDepositRequest$) {
116
+ /** @deprecated use `EthenaDepositRequest$inboundSchema` instead. */
117
+ EthenaDepositRequest$.inboundSchema = exports.EthenaDepositRequest$inboundSchema;
118
+ /** @deprecated use `EthenaDepositRequest$outboundSchema` instead. */
119
+ EthenaDepositRequest$.outboundSchema = exports.EthenaDepositRequest$outboundSchema;
120
+ })(EthenaDepositRequest$ || (exports.EthenaDepositRequest$ = EthenaDepositRequest$ = {}));
121
+ function ethenaDepositRequestToJSON(ethenaDepositRequest) {
122
+ return JSON.stringify(exports.EthenaDepositRequest$outboundSchema.parse(ethenaDepositRequest));
123
+ }
124
+ function ethenaDepositRequestFromJSON(jsonString) {
125
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EthenaDepositRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EthenaDepositRequest' from JSON`);
126
+ }
127
+ //# sourceMappingURL=ethenadepositrequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethenadepositrequest.js","sourceRoot":"","sources":["../../../../src/models/components/ethenadepositrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEH,4EAMC;AAED,gFAQC;AA+ED,gEAMC;AAED,oEAQC;AAjLD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAUpC,QAAA,yBAAyB,GAAG;IACvC,QAAQ,EAAE,UAAU;CACZ,CAAC;AAsBX,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,KAAK,CAAC,C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,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC;AAED,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAED,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,80 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { Apy, Apy$Outbound } from "./apy.js";
5
+ import { CompassApiBackendModelsVaultsReadResponseVaultUserPosition, CompassApiBackendModelsVaultsReadResponseVaultUserPosition$Outbound } from "./compassapibackendmodelsvaultsreadresponsevaultuserposition.js";
6
+ import { CooldownPosition, CooldownPosition$Outbound } from "./cooldownposition.js";
7
+ import { UnderlyingToken, UnderlyingToken$Outbound } from "./underlyingtoken.js";
8
+ export type EthenaGetVaultResponse = {
9
+ /**
10
+ * Name of the vault.
11
+ */
12
+ name: string;
13
+ /**
14
+ * Symbol of the vault.
15
+ */
16
+ symbol: string;
17
+ /**
18
+ * Number of decimals used for the vault's share precision.
19
+ */
20
+ decimals: number;
21
+ /**
22
+ * Total amount of assets deposited in the vault.
23
+ */
24
+ totalAssets: string;
25
+ /**
26
+ * Total amount of shares issued from the vault.
27
+ */
28
+ totalSupply: string;
29
+ /**
30
+ * The price of one vault share in terms of the underlying asset.
31
+ */
32
+ sharePrice: string;
33
+ underlyingToken: UnderlyingToken;
34
+ apy: Apy;
35
+ /**
36
+ * The user's position in the vault.
37
+ */
38
+ userPosition?: CompassApiBackendModelsVaultsReadResponseVaultUserPosition | null | undefined;
39
+ /**
40
+ * The duration of days that must pass before a position can be withdrawn from the Ethena vault after a request to withdraw has been made.
41
+ */
42
+ cooldownDurationDays: number;
43
+ /**
44
+ * The user's cooldown position.
45
+ */
46
+ cooldownPosition?: CooldownPosition | null | undefined;
47
+ };
48
+ /** @internal */
49
+ export declare const EthenaGetVaultResponse$inboundSchema: z.ZodType<EthenaGetVaultResponse, z.ZodTypeDef, unknown>;
50
+ /** @internal */
51
+ export type EthenaGetVaultResponse$Outbound = {
52
+ name: string;
53
+ symbol: string;
54
+ decimals: number;
55
+ total_assets: string;
56
+ total_supply: string;
57
+ share_price: string;
58
+ underlying_token: UnderlyingToken$Outbound;
59
+ apy: Apy$Outbound;
60
+ user_position?: CompassApiBackendModelsVaultsReadResponseVaultUserPosition$Outbound | null | undefined;
61
+ cooldown_duration_days: number;
62
+ cooldown_position?: CooldownPosition$Outbound | null | undefined;
63
+ };
64
+ /** @internal */
65
+ export declare const EthenaGetVaultResponse$outboundSchema: z.ZodType<EthenaGetVaultResponse$Outbound, z.ZodTypeDef, EthenaGetVaultResponse>;
66
+ /**
67
+ * @internal
68
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
69
+ */
70
+ export declare namespace EthenaGetVaultResponse$ {
71
+ /** @deprecated use `EthenaGetVaultResponse$inboundSchema` instead. */
72
+ const inboundSchema: z.ZodType<EthenaGetVaultResponse, z.ZodTypeDef, unknown>;
73
+ /** @deprecated use `EthenaGetVaultResponse$outboundSchema` instead. */
74
+ const outboundSchema: z.ZodType<EthenaGetVaultResponse$Outbound, z.ZodTypeDef, EthenaGetVaultResponse>;
75
+ /** @deprecated use `EthenaGetVaultResponse$Outbound` instead. */
76
+ type Outbound = EthenaGetVaultResponse$Outbound;
77
+ }
78
+ export declare function ethenaGetVaultResponseToJSON(ethenaGetVaultResponse: EthenaGetVaultResponse): string;
79
+ export declare function ethenaGetVaultResponseFromJSON(jsonString: string): SafeParseResult<EthenaGetVaultResponse, SDKValidationError>;
80
+ //# sourceMappingURL=ethenagetvaultresponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethenagetvaultresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/ethenagetvaultresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,GAAG,EAEH,YAAY,EAEb,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,0DAA0D,EAE1D,mEAAmE,EAEpE,MAAM,iEAAiE,CAAC;AACzE,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,eAAe,CAAC;IACjC,GAAG,EAAE,GAAG,CAAC;IACT;;OAEG;IACH,YAAY,CAAC,EACT,0DAA0D,GAC1D,IAAI,GACJ,SAAS,CAAC;IACd;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAyBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,wBAAwB,CAAC;IAC3C,GAAG,EAAE,YAAY,CAAC;IAClB,aAAa,CAAC,EACV,mEAAmE,GACnE,IAAI,GACJ,SAAS,CAAC;IACd,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,yBAAyB,GAAG,IAAI,GAAG,SAAS,CAAC;CAClE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAyBtB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,uBAAuB,CAAC;IACvC,sEAAsE;IAC/D,MAAM,aAAa,0DAAuC,CAAC;IAClE,uEAAuE;IAChE,MAAM,cAAc,kFAAwC,CAAC;IACpE,iEAAiE;IACjE,KAAY,QAAQ,GAAG,+BAA+B,CAAC;CACxD;AAED,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AAED,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.EthenaGetVaultResponse$ = exports.EthenaGetVaultResponse$outboundSchema = exports.EthenaGetVaultResponse$inboundSchema = void 0;
40
+ exports.ethenaGetVaultResponseToJSON = ethenaGetVaultResponseToJSON;
41
+ exports.ethenaGetVaultResponseFromJSON = ethenaGetVaultResponseFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ const apy_js_1 = require("./apy.js");
46
+ const compassapibackendmodelsvaultsreadresponsevaultuserposition_js_1 = require("./compassapibackendmodelsvaultsreadresponsevaultuserposition.js");
47
+ const cooldownposition_js_1 = require("./cooldownposition.js");
48
+ const underlyingtoken_js_1 = require("./underlyingtoken.js");
49
+ /** @internal */
50
+ exports.EthenaGetVaultResponse$inboundSchema = z.object({
51
+ name: z.string(),
52
+ symbol: z.string(),
53
+ decimals: z.number().int(),
54
+ total_assets: z.string(),
55
+ total_supply: z.string(),
56
+ share_price: z.string(),
57
+ underlying_token: underlyingtoken_js_1.UnderlyingToken$inboundSchema,
58
+ apy: apy_js_1.Apy$inboundSchema,
59
+ user_position: z.nullable(compassapibackendmodelsvaultsreadresponsevaultuserposition_js_1.CompassApiBackendModelsVaultsReadResponseVaultUserPosition$inboundSchema).optional(),
60
+ cooldown_duration_days: z.number().int(),
61
+ cooldown_position: z.nullable(cooldownposition_js_1.CooldownPosition$inboundSchema).optional(),
62
+ }).transform((v) => {
63
+ return (0, primitives_js_1.remap)(v, {
64
+ "total_assets": "totalAssets",
65
+ "total_supply": "totalSupply",
66
+ "share_price": "sharePrice",
67
+ "underlying_token": "underlyingToken",
68
+ "user_position": "userPosition",
69
+ "cooldown_duration_days": "cooldownDurationDays",
70
+ "cooldown_position": "cooldownPosition",
71
+ });
72
+ });
73
+ /** @internal */
74
+ exports.EthenaGetVaultResponse$outboundSchema = z.object({
75
+ name: z.string(),
76
+ symbol: z.string(),
77
+ decimals: z.number().int(),
78
+ totalAssets: z.string(),
79
+ totalSupply: z.string(),
80
+ sharePrice: z.string(),
81
+ underlyingToken: underlyingtoken_js_1.UnderlyingToken$outboundSchema,
82
+ apy: apy_js_1.Apy$outboundSchema,
83
+ userPosition: z.nullable(compassapibackendmodelsvaultsreadresponsevaultuserposition_js_1.CompassApiBackendModelsVaultsReadResponseVaultUserPosition$outboundSchema).optional(),
84
+ cooldownDurationDays: z.number().int(),
85
+ cooldownPosition: z.nullable(cooldownposition_js_1.CooldownPosition$outboundSchema).optional(),
86
+ }).transform((v) => {
87
+ return (0, primitives_js_1.remap)(v, {
88
+ totalAssets: "total_assets",
89
+ totalSupply: "total_supply",
90
+ sharePrice: "share_price",
91
+ underlyingToken: "underlying_token",
92
+ userPosition: "user_position",
93
+ cooldownDurationDays: "cooldown_duration_days",
94
+ cooldownPosition: "cooldown_position",
95
+ });
96
+ });
97
+ /**
98
+ * @internal
99
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
100
+ */
101
+ var EthenaGetVaultResponse$;
102
+ (function (EthenaGetVaultResponse$) {
103
+ /** @deprecated use `EthenaGetVaultResponse$inboundSchema` instead. */
104
+ EthenaGetVaultResponse$.inboundSchema = exports.EthenaGetVaultResponse$inboundSchema;
105
+ /** @deprecated use `EthenaGetVaultResponse$outboundSchema` instead. */
106
+ EthenaGetVaultResponse$.outboundSchema = exports.EthenaGetVaultResponse$outboundSchema;
107
+ })(EthenaGetVaultResponse$ || (exports.EthenaGetVaultResponse$ = EthenaGetVaultResponse$ = {}));
108
+ function ethenaGetVaultResponseToJSON(ethenaGetVaultResponse) {
109
+ return JSON.stringify(exports.EthenaGetVaultResponse$outboundSchema.parse(ethenaGetVaultResponse));
110
+ }
111
+ function ethenaGetVaultResponseFromJSON(jsonString) {
112
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EthenaGetVaultResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EthenaGetVaultResponse' from JSON`);
113
+ }
114
+ //# sourceMappingURL=ethenagetvaultresponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethenagetvaultresponse.js","sourceRoot":"","sources":["../../../../src/models/components/ethenagetvaultresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyKH,oEAMC;AAED,wEAQC;AAvLD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,qCAKkB;AAClB,mJAKyE;AACzE,+DAK+B;AAC/B,6DAK8B;AA8C9B,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,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,QAAQ,EAAE;IACZ,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACtC,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,qDAA+B,CAAC,CAAC,QAAQ,EAAE;CACzE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,WAAW,EAAE,cAAc;QAC3B,UAAU,EAAE,aAAa;QACzB,eAAe,EAAE,kBAAkB;QACnC,YAAY,EAAE,eAAe;QAC7B,oBAAoB,EAAE,wBAAwB;QAC9C,gBAAgB,EAAE,mBAAmB;KACtC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,uBAAuB,CAOvC;AAPD,WAAiB,uBAAuB;IACtC,sEAAsE;IACzD,qCAAa,GAAG,4CAAoC,CAAC;IAClE,uEAAuE;IAC1D,sCAAc,GAAG,6CAAqC,CAAC;AAGtE,CAAC,EAPgB,uBAAuB,uCAAvB,uBAAuB,QAOvC;AAED,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AAED,SAAgB,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4CAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,34 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type EthenaRequestToWithdrawParams = {
5
+ actionType?: "ETHENA_REQUEST_WITHDRAW" | undefined;
6
+ /**
7
+ * The amount of USDe to request to withdraw from Ethena's vault. If set to 'ALL', your total deposited USDe amount will be requested to be withdrawn.
8
+ */
9
+ amount?: any | undefined;
10
+ };
11
+ /** @internal */
12
+ export declare const EthenaRequestToWithdrawParams$inboundSchema: z.ZodType<EthenaRequestToWithdrawParams, z.ZodTypeDef, unknown>;
13
+ /** @internal */
14
+ export type EthenaRequestToWithdrawParams$Outbound = {
15
+ action_type: "ETHENA_REQUEST_WITHDRAW";
16
+ amount?: any | undefined;
17
+ };
18
+ /** @internal */
19
+ export declare const EthenaRequestToWithdrawParams$outboundSchema: z.ZodType<EthenaRequestToWithdrawParams$Outbound, z.ZodTypeDef, EthenaRequestToWithdrawParams>;
20
+ /**
21
+ * @internal
22
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
23
+ */
24
+ export declare namespace EthenaRequestToWithdrawParams$ {
25
+ /** @deprecated use `EthenaRequestToWithdrawParams$inboundSchema` instead. */
26
+ const inboundSchema: z.ZodType<EthenaRequestToWithdrawParams, z.ZodTypeDef, unknown>;
27
+ /** @deprecated use `EthenaRequestToWithdrawParams$outboundSchema` instead. */
28
+ const outboundSchema: z.ZodType<EthenaRequestToWithdrawParams$Outbound, z.ZodTypeDef, EthenaRequestToWithdrawParams>;
29
+ /** @deprecated use `EthenaRequestToWithdrawParams$Outbound` instead. */
30
+ type Outbound = EthenaRequestToWithdrawParams$Outbound;
31
+ }
32
+ export declare function ethenaRequestToWithdrawParamsToJSON(ethenaRequestToWithdrawParams: EthenaRequestToWithdrawParams): string;
33
+ export declare function ethenaRequestToWithdrawParamsFromJSON(jsonString: string): SafeParseResult<EthenaRequestToWithdrawParams, SDKValidationError>;
34
+ //# sourceMappingURL=ethenarequesttowithdrawparams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethenarequesttowithdrawparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/ethenarequesttowithdrawparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,6BAA6B,GAAG;IAC1C,UAAU,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;IACnD;;OAEG;IACH,MAAM,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,sCAAsC,GAAG;IACnD,WAAW,EAAE,yBAAyB,CAAC;IACvC,MAAM,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,6BAA6B,CAU7B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,8BAA8B,CAAC;IAC9C,6EAA6E;IACtE,MAAM,aAAa,iEAA8C,CAAC;IACzE,8EAA8E;IACvE,MAAM,cAAc,gGAA+C,CAAC;IAC3E,wEAAwE;IACxE,KAAY,QAAQ,GAAG,sCAAsC,CAAC;CAC/D;AAED,wBAAgB,mCAAmC,CACjD,6BAA6B,EAAE,6BAA6B,GAC3D,MAAM,CAMR;AAED,wBAAgB,qCAAqC,CACnD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,6BAA6B,EAAE,kBAAkB,CAAC,CAMpE"}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.EthenaRequestToWithdrawParams$ = exports.EthenaRequestToWithdrawParams$outboundSchema = exports.EthenaRequestToWithdrawParams$inboundSchema = void 0;
40
+ exports.ethenaRequestToWithdrawParamsToJSON = ethenaRequestToWithdrawParamsToJSON;
41
+ exports.ethenaRequestToWithdrawParamsFromJSON = ethenaRequestToWithdrawParamsFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ /** @internal */
46
+ exports.EthenaRequestToWithdrawParams$inboundSchema = z.object({
47
+ action_type: z.literal("ETHENA_REQUEST_WITHDRAW").default("ETHENA_REQUEST_WITHDRAW"),
48
+ amount: z.any().optional(),
49
+ }).transform((v) => {
50
+ return (0, primitives_js_1.remap)(v, {
51
+ "action_type": "actionType",
52
+ });
53
+ });
54
+ /** @internal */
55
+ exports.EthenaRequestToWithdrawParams$outboundSchema = z.object({
56
+ actionType: z.literal("ETHENA_REQUEST_WITHDRAW").default("ETHENA_REQUEST_WITHDRAW"),
57
+ amount: z.any().optional(),
58
+ }).transform((v) => {
59
+ return (0, primitives_js_1.remap)(v, {
60
+ actionType: "action_type",
61
+ });
62
+ });
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ var EthenaRequestToWithdrawParams$;
68
+ (function (EthenaRequestToWithdrawParams$) {
69
+ /** @deprecated use `EthenaRequestToWithdrawParams$inboundSchema` instead. */
70
+ EthenaRequestToWithdrawParams$.inboundSchema = exports.EthenaRequestToWithdrawParams$inboundSchema;
71
+ /** @deprecated use `EthenaRequestToWithdrawParams$outboundSchema` instead. */
72
+ EthenaRequestToWithdrawParams$.outboundSchema = exports.EthenaRequestToWithdrawParams$outboundSchema;
73
+ })(EthenaRequestToWithdrawParams$ || (exports.EthenaRequestToWithdrawParams$ = EthenaRequestToWithdrawParams$ = {}));
74
+ function ethenaRequestToWithdrawParamsToJSON(ethenaRequestToWithdrawParams) {
75
+ return JSON.stringify(exports.EthenaRequestToWithdrawParams$outboundSchema.parse(ethenaRequestToWithdrawParams));
76
+ }
77
+ function ethenaRequestToWithdrawParamsFromJSON(jsonString) {
78
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EthenaRequestToWithdrawParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EthenaRequestToWithdrawParams' from JSON`);
79
+ }
80
+ //# sourceMappingURL=ethenarequesttowithdrawparams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethenarequesttowithdrawparams.js","sourceRoot":"","sources":["../../../../src/models/components/ethenarequesttowithdrawparams.ts"],"names":[],"mappings":";AAAA;;GA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AgB,qCAAqC,CACnD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mDAA2C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,64 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export declare const EthenaRequestToWithdrawRequestChain: {
6
+ readonly Ethereum: "ethereum";
7
+ };
8
+ export type EthenaRequestToWithdrawRequestChain = ClosedEnum<typeof EthenaRequestToWithdrawRequestChain>;
9
+ export type EthenaRequestToWithdrawRequest = {
10
+ actionType?: "ETHENA_REQUEST_WITHDRAW" | undefined;
11
+ /**
12
+ * The amount of USDe to request to withdraw from Ethena's vault. If set to 'ALL', your total deposited USDe amount will be requested to be withdrawn.
13
+ */
14
+ amount?: any | undefined;
15
+ chain: EthenaRequestToWithdrawRequestChain;
16
+ /**
17
+ * The address of the transaction sender.
18
+ */
19
+ sender: string;
20
+ };
21
+ /** @internal */
22
+ export declare const EthenaRequestToWithdrawRequestChain$inboundSchema: z.ZodNativeEnum<typeof EthenaRequestToWithdrawRequestChain>;
23
+ /** @internal */
24
+ export declare const EthenaRequestToWithdrawRequestChain$outboundSchema: z.ZodNativeEnum<typeof EthenaRequestToWithdrawRequestChain>;
25
+ /**
26
+ * @internal
27
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
28
+ */
29
+ export declare namespace EthenaRequestToWithdrawRequestChain$ {
30
+ /** @deprecated use `EthenaRequestToWithdrawRequestChain$inboundSchema` instead. */
31
+ const inboundSchema: z.ZodNativeEnum<{
32
+ readonly Ethereum: "ethereum";
33
+ }>;
34
+ /** @deprecated use `EthenaRequestToWithdrawRequestChain$outboundSchema` instead. */
35
+ const outboundSchema: z.ZodNativeEnum<{
36
+ readonly Ethereum: "ethereum";
37
+ }>;
38
+ }
39
+ /** @internal */
40
+ export declare const EthenaRequestToWithdrawRequest$inboundSchema: z.ZodType<EthenaRequestToWithdrawRequest, z.ZodTypeDef, unknown>;
41
+ /** @internal */
42
+ export type EthenaRequestToWithdrawRequest$Outbound = {
43
+ action_type: "ETHENA_REQUEST_WITHDRAW";
44
+ amount?: any | undefined;
45
+ chain: string;
46
+ sender: string;
47
+ };
48
+ /** @internal */
49
+ export declare const EthenaRequestToWithdrawRequest$outboundSchema: z.ZodType<EthenaRequestToWithdrawRequest$Outbound, z.ZodTypeDef, EthenaRequestToWithdrawRequest>;
50
+ /**
51
+ * @internal
52
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
+ */
54
+ export declare namespace EthenaRequestToWithdrawRequest$ {
55
+ /** @deprecated use `EthenaRequestToWithdrawRequest$inboundSchema` instead. */
56
+ const inboundSchema: z.ZodType<EthenaRequestToWithdrawRequest, z.ZodTypeDef, unknown>;
57
+ /** @deprecated use `EthenaRequestToWithdrawRequest$outboundSchema` instead. */
58
+ const outboundSchema: z.ZodType<EthenaRequestToWithdrawRequest$Outbound, z.ZodTypeDef, EthenaRequestToWithdrawRequest>;
59
+ /** @deprecated use `EthenaRequestToWithdrawRequest$Outbound` instead. */
60
+ type Outbound = EthenaRequestToWithdrawRequest$Outbound;
61
+ }
62
+ export declare function ethenaRequestToWithdrawRequestToJSON(ethenaRequestToWithdrawRequest: EthenaRequestToWithdrawRequest): string;
63
+ export declare function ethenaRequestToWithdrawRequestFromJSON(jsonString: string): SafeParseResult<EthenaRequestToWithdrawRequest, SDKValidationError>;
64
+ //# sourceMappingURL=ethenarequesttowithdrawrequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethenarequesttowithdrawrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/ethenarequesttowithdrawrequest.ts"],"names":[],"mappings":"AAIA,OAA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eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,uCAAuC,EACvC,CAAC,CAAC,UAAU,EACZ,8BAA8B,CAY9B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,+BAA+B,CAAC;IAC/C,8EAA8E;IACvE,MAAM,aAAa,kEAA+C,CAAC;IAC1E,+EAA+E;IACxE,MAAM,cAAc,kGAAgD,CAAC;IAC5E,yEAAyE;IACzE,KAAY,QAAQ,GAAG,uCAAuC,CAAC;CAChE;AAED,wBAAgB,oCAAoC,CAClD,8BAA8B,EAAE,8BAA8B,GAC7D,MAAM,CAMR;AAED,wBAAgB,sCAAsC,CACpD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,CAMrE"}
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.EthenaRequestToWithdrawRequest$ = exports.EthenaRequestToWithdrawRequest$outboundSchema = exports.EthenaRequestToWithdrawRequest$inboundSchema = exports.EthenaRequestToWithdrawRequestChain$ = exports.EthenaRequestToWithdrawRequestChain$outboundSchema = exports.EthenaRequestToWithdrawRequestChain$inboundSchema = exports.EthenaRequestToWithdrawRequestChain = void 0;
40
+ exports.ethenaRequestToWithdrawRequestToJSON = ethenaRequestToWithdrawRequestToJSON;
41
+ exports.ethenaRequestToWithdrawRequestFromJSON = ethenaRequestToWithdrawRequestFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ exports.EthenaRequestToWithdrawRequestChain = {
46
+ Ethereum: "ethereum",
47
+ };
48
+ /** @internal */
49
+ exports.EthenaRequestToWithdrawRequestChain$inboundSchema = z.nativeEnum(exports.EthenaRequestToWithdrawRequestChain);
50
+ /** @internal */
51
+ exports.EthenaRequestToWithdrawRequestChain$outboundSchema = exports.EthenaRequestToWithdrawRequestChain$inboundSchema;
52
+ /**
53
+ * @internal
54
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
55
+ */
56
+ var EthenaRequestToWithdrawRequestChain$;
57
+ (function (EthenaRequestToWithdrawRequestChain$) {
58
+ /** @deprecated use `EthenaRequestToWithdrawRequestChain$inboundSchema` instead. */
59
+ EthenaRequestToWithdrawRequestChain$.inboundSchema = exports.EthenaRequestToWithdrawRequestChain$inboundSchema;
60
+ /** @deprecated use `EthenaRequestToWithdrawRequestChain$outboundSchema` instead. */
61
+ EthenaRequestToWithdrawRequestChain$.outboundSchema = exports.EthenaRequestToWithdrawRequestChain$outboundSchema;
62
+ })(EthenaRequestToWithdrawRequestChain$ || (exports.EthenaRequestToWithdrawRequestChain$ = EthenaRequestToWithdrawRequestChain$ = {}));
63
+ /** @internal */
64
+ exports.EthenaRequestToWithdrawRequest$inboundSchema = z.object({
65
+ action_type: z.literal("ETHENA_REQUEST_WITHDRAW").default("ETHENA_REQUEST_WITHDRAW"),
66
+ amount: z.any().optional(),
67
+ chain: exports.EthenaRequestToWithdrawRequestChain$inboundSchema,
68
+ sender: z.string(),
69
+ }).transform((v) => {
70
+ return (0, primitives_js_1.remap)(v, {
71
+ "action_type": "actionType",
72
+ });
73
+ });
74
+ /** @internal */
75
+ exports.EthenaRequestToWithdrawRequest$outboundSchema = z.object({
76
+ actionType: z.literal("ETHENA_REQUEST_WITHDRAW").default("ETHENA_REQUEST_WITHDRAW"),
77
+ amount: z.any().optional(),
78
+ chain: exports.EthenaRequestToWithdrawRequestChain$outboundSchema,
79
+ sender: z.string(),
80
+ }).transform((v) => {
81
+ return (0, primitives_js_1.remap)(v, {
82
+ actionType: "action_type",
83
+ });
84
+ });
85
+ /**
86
+ * @internal
87
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
88
+ */
89
+ var EthenaRequestToWithdrawRequest$;
90
+ (function (EthenaRequestToWithdrawRequest$) {
91
+ /** @deprecated use `EthenaRequestToWithdrawRequest$inboundSchema` instead. */
92
+ EthenaRequestToWithdrawRequest$.inboundSchema = exports.EthenaRequestToWithdrawRequest$inboundSchema;
93
+ /** @deprecated use `EthenaRequestToWithdrawRequest$outboundSchema` instead. */
94
+ EthenaRequestToWithdrawRequest$.outboundSchema = exports.EthenaRequestToWithdrawRequest$outboundSchema;
95
+ })(EthenaRequestToWithdrawRequest$ || (exports.EthenaRequestToWithdrawRequest$ = EthenaRequestToWithdrawRequest$ = {}));
96
+ function ethenaRequestToWithdrawRequestToJSON(ethenaRequestToWithdrawRequest) {
97
+ return JSON.stringify(exports.EthenaRequestToWithdrawRequest$outboundSchema.parse(ethenaRequestToWithdrawRequest));
98
+ }
99
+ function ethenaRequestToWithdrawRequestFromJSON(jsonString) {
100
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EthenaRequestToWithdrawRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EthenaRequestToWithdrawRequest' from JSON`);
101
+ }
102
+ //# sourceMappingURL=ethenarequesttowithdrawrequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethenarequesttowithdrawrequest.js","sourceRoot":"","sources":["../../../../src/models/components/ethenarequesttowithdrawrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6GH,oFAQC;AAED,wFAQC;AA7HD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAKpC,QAAA,mCAAmC,GAAG;IACjD,QAAQ,EAAE,UAAU;CACZ,CAAC;AAkBX,gBAAgB;AACH,QAAA,iDAAiD,GAE1D,CAAC,CAAC,UAAU,CAAC,2CAAmC,CAAC,CAAC;AAEtD,gBAAgB;AACH,QAAA,kDAAkD,GAE3D,yDAAiD,CAAC;AAEtD;;;GAGG;AACH,IAAiB,oCAAoC,CAOpD;AAPD,WAAiB,oCAAoC;IACnD,mFAAmF;IACtE,kDAAa,GACxB,yDAAiD,CAAC;IACpD,oFAAoF;IACvE,mDAAc,GACzB,0DAAkD,CAAC;AACvD,CAAC,EAPgB,oCAAoC,oDAApC,oCAAoC,QAOpD;AAED,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC,OAAO,CACvD,yBAAyB,CAC1B;IACD,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC1B,KAAK,EAAE,yDAAiD;IACxD,MAAM,EAAE,CAAC,CAAC,MAAM,EAA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