@compass-labs/api-sdk 2.2.76 → 2.2.77-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (403) hide show
  1. package/README.md +9 -3
  2. package/codeSamples_typescript.yaml +18 -0
  3. package/dist/commonjs/funcs/creditCreditLoop.d.ts +31 -0
  4. package/dist/commonjs/funcs/creditCreditLoop.d.ts.map +1 -0
  5. package/dist/commonjs/funcs/creditCreditLoop.js +132 -0
  6. package/dist/commonjs/funcs/creditCreditLoop.js.map +1 -0
  7. package/dist/commonjs/funcs/creditCreditLoopedPositions.d.ts +26 -0
  8. package/dist/commonjs/funcs/creditCreditLoopedPositions.d.ts.map +1 -0
  9. package/dist/commonjs/funcs/creditCreditLoopedPositions.js +131 -0
  10. package/dist/commonjs/funcs/creditCreditLoopedPositions.js.map +1 -0
  11. package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts +24 -0
  12. package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts.map +1 -0
  13. package/dist/commonjs/funcs/creditCreditMorphoMarkets.js +128 -0
  14. package/dist/commonjs/funcs/creditCreditMorphoMarkets.js.map +1 -0
  15. package/dist/commonjs/lib/config.d.ts +2 -2
  16. package/dist/commonjs/lib/config.js +2 -2
  17. package/dist/commonjs/models/components/aavelooprequest.d.ts +16 -16
  18. package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -1
  19. package/dist/commonjs/models/components/aavelooprequest.js +17 -17
  20. package/dist/commonjs/models/components/aavelooprequest.js.map +1 -1
  21. package/dist/commonjs/models/components/accountsummary.d.ts +4 -0
  22. package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
  23. package/dist/commonjs/models/components/accountsummary.js.map +1 -1
  24. package/dist/commonjs/models/components/collateralposition.d.ts +12 -0
  25. package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
  26. package/dist/commonjs/models/components/collateralposition.js +4 -0
  27. package/dist/commonjs/models/components/collateralposition.js.map +1 -1
  28. package/dist/commonjs/models/components/createaccountrequest.d.ts +1 -0
  29. package/dist/commonjs/models/components/createaccountrequest.d.ts.map +1 -1
  30. package/dist/commonjs/models/components/createaccountrequest.js +1 -0
  31. package/dist/commonjs/models/components/createaccountrequest.js.map +1 -1
  32. package/dist/commonjs/models/components/createcreditaccountrequest.d.ts +1 -0
  33. package/dist/commonjs/models/components/createcreditaccountrequest.d.ts.map +1 -1
  34. package/dist/commonjs/models/components/createcreditaccountrequest.js +1 -0
  35. package/dist/commonjs/models/components/createcreditaccountrequest.js.map +1 -1
  36. package/dist/commonjs/models/components/creditborrowparams.d.ts +9 -0
  37. package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
  38. package/dist/commonjs/models/components/creditborrowparams.js +2 -0
  39. package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
  40. package/dist/commonjs/models/components/creditborrowrequest.d.ts +9 -0
  41. package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
  42. package/dist/commonjs/models/components/creditborrowrequest.js +2 -0
  43. package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
  44. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +4 -0
  45. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
  46. package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
  47. package/dist/commonjs/models/components/creditloopedpositionsresponse.d.ts +26 -0
  48. package/dist/commonjs/models/components/creditloopedpositionsresponse.d.ts.map +1 -0
  49. package/dist/commonjs/models/components/creditloopedpositionsresponse.js +60 -0
  50. package/dist/commonjs/models/components/creditloopedpositionsresponse.js.map +1 -0
  51. package/dist/commonjs/models/components/creditlooppreview.d.ts +45 -0
  52. package/dist/commonjs/models/components/creditlooppreview.d.ts.map +1 -0
  53. package/dist/commonjs/models/components/creditlooppreview.js +68 -0
  54. package/dist/commonjs/models/components/creditlooppreview.js.map +1 -0
  55. package/dist/commonjs/models/components/creditlooprequest.d.ts +125 -0
  56. package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -0
  57. package/dist/commonjs/models/components/creditlooprequest.js +98 -0
  58. package/dist/commonjs/models/components/creditlooprequest.js.map +1 -0
  59. package/dist/commonjs/models/components/creditloopresponse.d.ts +27 -0
  60. package/dist/commonjs/models/components/creditloopresponse.d.ts.map +1 -0
  61. package/dist/commonjs/models/components/creditloopresponse.js +61 -0
  62. package/dist/commonjs/models/components/creditloopresponse.js.map +1 -0
  63. package/dist/commonjs/models/components/creditprotocol.d.ts +9 -0
  64. package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
  65. package/dist/commonjs/models/components/creditprotocol.js +5 -0
  66. package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
  67. package/dist/commonjs/models/components/creditrepayparams.d.ts +9 -0
  68. package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
  69. package/dist/commonjs/models/components/creditrepayparams.js +2 -0
  70. package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
  71. package/dist/commonjs/models/components/creditrepayrequest.d.ts +9 -0
  72. package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
  73. package/dist/commonjs/models/components/creditrepayrequest.js +2 -0
  74. package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
  75. package/dist/commonjs/models/components/creditsupplyparams.d.ts +9 -0
  76. package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
  77. package/dist/commonjs/models/components/creditsupplyparams.js +2 -0
  78. package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
  79. package/dist/commonjs/models/components/creditwithdrawparams.d.ts +9 -0
  80. package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
  81. package/dist/commonjs/models/components/creditwithdrawparams.js +2 -0
  82. package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
  83. package/dist/commonjs/models/components/debtposition.d.ts +12 -0
  84. package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
  85. package/dist/commonjs/models/components/debtposition.js +4 -0
  86. package/dist/commonjs/models/components/debtposition.js.map +1 -1
  87. package/dist/commonjs/models/components/index.d.ts +12 -0
  88. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  89. package/dist/commonjs/models/components/index.js +12 -0
  90. package/dist/commonjs/models/components/index.js.map +1 -1
  91. package/dist/commonjs/models/components/loopedposition.d.ts +88 -0
  92. package/dist/commonjs/models/components/loopedposition.d.ts.map +1 -0
  93. package/dist/commonjs/models/components/loopedposition.js +85 -0
  94. package/dist/commonjs/models/components/loopedposition.js.map +1 -0
  95. package/dist/commonjs/models/components/loopedpositioncurrentstate.d.ts +58 -0
  96. package/dist/commonjs/models/components/loopedpositioncurrentstate.d.ts.map +1 -0
  97. package/dist/commonjs/models/components/loopedpositioncurrentstate.js +77 -0
  98. package/dist/commonjs/models/components/loopedpositioncurrentstate.js.map +1 -0
  99. package/dist/commonjs/models/components/loopedpositionhistoryentry.d.ts +71 -0
  100. package/dist/commonjs/models/components/loopedpositionhistoryentry.d.ts.map +1 -0
  101. package/dist/commonjs/models/components/loopedpositionhistoryentry.js +85 -0
  102. package/dist/commonjs/models/components/loopedpositionhistoryentry.js.map +1 -0
  103. package/dist/commonjs/models/components/loopedpositiontotals.d.ts +40 -0
  104. package/dist/commonjs/models/components/loopedpositiontotals.d.ts.map +1 -0
  105. package/dist/commonjs/models/components/loopedpositiontotals.js +67 -0
  106. package/dist/commonjs/models/components/loopedpositiontotals.js.map +1 -0
  107. package/dist/commonjs/models/components/looplegpreview.d.ts +24 -0
  108. package/dist/commonjs/models/components/looplegpreview.d.ts.map +1 -0
  109. package/dist/commonjs/models/components/looplegpreview.js +59 -0
  110. package/dist/commonjs/models/components/looplegpreview.js.map +1 -0
  111. package/dist/commonjs/models/components/morpholendingmarket.d.ts +80 -0
  112. package/dist/commonjs/models/components/morpholendingmarket.d.ts.map +1 -0
  113. package/dist/commonjs/models/components/morpholendingmarket.js +82 -0
  114. package/dist/commonjs/models/components/morpholendingmarket.js.map +1 -0
  115. package/dist/commonjs/models/components/morphomarketsresponse.d.ts +21 -0
  116. package/dist/commonjs/models/components/morphomarketsresponse.d.ts.map +1 -0
  117. package/dist/commonjs/models/components/morphomarketsresponse.js +52 -0
  118. package/dist/commonjs/models/components/morphomarketsresponse.js.map +1 -0
  119. package/dist/commonjs/models/components/swapinfo.d.ts +48 -0
  120. package/dist/commonjs/models/components/swapinfo.d.ts.map +1 -0
  121. package/dist/commonjs/models/components/swapinfo.js +66 -0
  122. package/dist/commonjs/models/components/swapinfo.js.map +1 -0
  123. package/dist/commonjs/models/operations/index.d.ts +2 -0
  124. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  125. package/dist/commonjs/models/operations/index.js +2 -0
  126. package/dist/commonjs/models/operations/index.js.map +1 -1
  127. package/dist/commonjs/models/operations/v2creditbalances.d.ts +1 -0
  128. package/dist/commonjs/models/operations/v2creditbalances.d.ts.map +1 -1
  129. package/dist/commonjs/models/operations/v2creditbalances.js +1 -0
  130. package/dist/commonjs/models/operations/v2creditbalances.js.map +1 -1
  131. package/dist/commonjs/models/operations/v2crediteulermarkets.d.ts +1 -0
  132. package/dist/commonjs/models/operations/v2crediteulermarkets.d.ts.map +1 -1
  133. package/dist/commonjs/models/operations/v2crediteulermarkets.js +1 -0
  134. package/dist/commonjs/models/operations/v2crediteulermarkets.js.map +1 -1
  135. package/dist/commonjs/models/operations/v2creditloopedpositions.d.ts +28 -0
  136. package/dist/commonjs/models/operations/v2creditloopedpositions.d.ts.map +1 -0
  137. package/dist/commonjs/models/operations/v2creditloopedpositions.js +59 -0
  138. package/dist/commonjs/models/operations/v2creditloopedpositions.js.map +1 -0
  139. package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts +23 -0
  140. package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts.map +1 -0
  141. package/dist/commonjs/models/operations/v2creditmorphomarkets.js +58 -0
  142. package/dist/commonjs/models/operations/v2creditmorphomarkets.js.map +1 -0
  143. package/dist/commonjs/models/operations/v2creditpositions.d.ts +1 -0
  144. package/dist/commonjs/models/operations/v2creditpositions.d.ts.map +1 -1
  145. package/dist/commonjs/models/operations/v2creditpositions.js +1 -0
  146. package/dist/commonjs/models/operations/v2creditpositions.js.map +1 -1
  147. package/dist/commonjs/models/operations/v2earnbalances.d.ts +1 -0
  148. package/dist/commonjs/models/operations/v2earnbalances.d.ts.map +1 -1
  149. package/dist/commonjs/models/operations/v2earnbalances.js +1 -0
  150. package/dist/commonjs/models/operations/v2earnbalances.js.map +1 -1
  151. package/dist/commonjs/models/operations/v2earnpositions.d.ts +1 -0
  152. package/dist/commonjs/models/operations/v2earnpositions.d.ts.map +1 -1
  153. package/dist/commonjs/models/operations/v2earnpositions.js +1 -0
  154. package/dist/commonjs/models/operations/v2earnpositions.js.map +1 -1
  155. package/dist/commonjs/sdk/credit.d.ts +46 -0
  156. package/dist/commonjs/sdk/credit.d.ts.map +1 -1
  157. package/dist/commonjs/sdk/credit.js +55 -0
  158. package/dist/commonjs/sdk/credit.js.map +1 -1
  159. package/dist/esm/funcs/creditCreditLoop.d.ts +31 -0
  160. package/dist/esm/funcs/creditCreditLoop.d.ts.map +1 -0
  161. package/dist/esm/funcs/creditCreditLoop.js +96 -0
  162. package/dist/esm/funcs/creditCreditLoop.js.map +1 -0
  163. package/dist/esm/funcs/creditCreditLoopedPositions.d.ts +26 -0
  164. package/dist/esm/funcs/creditCreditLoopedPositions.d.ts.map +1 -0
  165. package/dist/esm/funcs/creditCreditLoopedPositions.js +95 -0
  166. package/dist/esm/funcs/creditCreditLoopedPositions.js.map +1 -0
  167. package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts +24 -0
  168. package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts.map +1 -0
  169. package/dist/esm/funcs/creditCreditMorphoMarkets.js +92 -0
  170. package/dist/esm/funcs/creditCreditMorphoMarkets.js.map +1 -0
  171. package/dist/esm/lib/config.d.ts +2 -2
  172. package/dist/esm/lib/config.js +2 -2
  173. package/dist/esm/models/components/aavelooprequest.d.ts +16 -16
  174. package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -1
  175. package/dist/esm/models/components/aavelooprequest.js +12 -12
  176. package/dist/esm/models/components/aavelooprequest.js.map +1 -1
  177. package/dist/esm/models/components/accountsummary.d.ts +4 -0
  178. package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
  179. package/dist/esm/models/components/accountsummary.js.map +1 -1
  180. package/dist/esm/models/components/collateralposition.d.ts +12 -0
  181. package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
  182. package/dist/esm/models/components/collateralposition.js +4 -0
  183. package/dist/esm/models/components/collateralposition.js.map +1 -1
  184. package/dist/esm/models/components/createaccountrequest.d.ts +1 -0
  185. package/dist/esm/models/components/createaccountrequest.d.ts.map +1 -1
  186. package/dist/esm/models/components/createaccountrequest.js +1 -0
  187. package/dist/esm/models/components/createaccountrequest.js.map +1 -1
  188. package/dist/esm/models/components/createcreditaccountrequest.d.ts +1 -0
  189. package/dist/esm/models/components/createcreditaccountrequest.d.ts.map +1 -1
  190. package/dist/esm/models/components/createcreditaccountrequest.js +1 -0
  191. package/dist/esm/models/components/createcreditaccountrequest.js.map +1 -1
  192. package/dist/esm/models/components/creditborrowparams.d.ts +9 -0
  193. package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
  194. package/dist/esm/models/components/creditborrowparams.js +2 -0
  195. package/dist/esm/models/components/creditborrowparams.js.map +1 -1
  196. package/dist/esm/models/components/creditborrowrequest.d.ts +9 -0
  197. package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
  198. package/dist/esm/models/components/creditborrowrequest.js +2 -0
  199. package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
  200. package/dist/esm/models/components/creditenablecollateralparams.d.ts +4 -0
  201. package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
  202. package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
  203. package/dist/esm/models/components/creditloopedpositionsresponse.d.ts +26 -0
  204. package/dist/esm/models/components/creditloopedpositionsresponse.d.ts.map +1 -0
  205. package/dist/esm/models/components/creditloopedpositionsresponse.js +23 -0
  206. package/dist/esm/models/components/creditloopedpositionsresponse.js.map +1 -0
  207. package/dist/esm/models/components/creditlooppreview.d.ts +45 -0
  208. package/dist/esm/models/components/creditlooppreview.d.ts.map +1 -0
  209. package/dist/esm/models/components/creditlooppreview.js +31 -0
  210. package/dist/esm/models/components/creditlooppreview.js.map +1 -0
  211. package/dist/esm/models/components/creditlooprequest.d.ts +125 -0
  212. package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -0
  213. package/dist/esm/models/components/creditlooprequest.js +57 -0
  214. package/dist/esm/models/components/creditlooprequest.js.map +1 -0
  215. package/dist/esm/models/components/creditloopresponse.d.ts +27 -0
  216. package/dist/esm/models/components/creditloopresponse.d.ts.map +1 -0
  217. package/dist/esm/models/components/creditloopresponse.js +24 -0
  218. package/dist/esm/models/components/creditloopresponse.js.map +1 -0
  219. package/dist/esm/models/components/creditprotocol.d.ts +9 -0
  220. package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
  221. package/dist/esm/models/components/creditprotocol.js +5 -0
  222. package/dist/esm/models/components/creditprotocol.js.map +1 -1
  223. package/dist/esm/models/components/creditrepayparams.d.ts +9 -0
  224. package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
  225. package/dist/esm/models/components/creditrepayparams.js +2 -0
  226. package/dist/esm/models/components/creditrepayparams.js.map +1 -1
  227. package/dist/esm/models/components/creditrepayrequest.d.ts +9 -0
  228. package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
  229. package/dist/esm/models/components/creditrepayrequest.js +2 -0
  230. package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
  231. package/dist/esm/models/components/creditsupplyparams.d.ts +9 -0
  232. package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
  233. package/dist/esm/models/components/creditsupplyparams.js +2 -0
  234. package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
  235. package/dist/esm/models/components/creditwithdrawparams.d.ts +9 -0
  236. package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
  237. package/dist/esm/models/components/creditwithdrawparams.js +2 -0
  238. package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
  239. package/dist/esm/models/components/debtposition.d.ts +12 -0
  240. package/dist/esm/models/components/debtposition.d.ts.map +1 -1
  241. package/dist/esm/models/components/debtposition.js +4 -0
  242. package/dist/esm/models/components/debtposition.js.map +1 -1
  243. package/dist/esm/models/components/index.d.ts +12 -0
  244. package/dist/esm/models/components/index.d.ts.map +1 -1
  245. package/dist/esm/models/components/index.js +12 -0
  246. package/dist/esm/models/components/index.js.map +1 -1
  247. package/dist/esm/models/components/loopedposition.d.ts +88 -0
  248. package/dist/esm/models/components/loopedposition.d.ts.map +1 -0
  249. package/dist/esm/models/components/loopedposition.js +48 -0
  250. package/dist/esm/models/components/loopedposition.js.map +1 -0
  251. package/dist/esm/models/components/loopedpositioncurrentstate.d.ts +58 -0
  252. package/dist/esm/models/components/loopedpositioncurrentstate.d.ts.map +1 -0
  253. package/dist/esm/models/components/loopedpositioncurrentstate.js +40 -0
  254. package/dist/esm/models/components/loopedpositioncurrentstate.js.map +1 -0
  255. package/dist/esm/models/components/loopedpositionhistoryentry.d.ts +71 -0
  256. package/dist/esm/models/components/loopedpositionhistoryentry.d.ts.map +1 -0
  257. package/dist/esm/models/components/loopedpositionhistoryentry.js +48 -0
  258. package/dist/esm/models/components/loopedpositionhistoryentry.js.map +1 -0
  259. package/dist/esm/models/components/loopedpositiontotals.d.ts +40 -0
  260. package/dist/esm/models/components/loopedpositiontotals.d.ts.map +1 -0
  261. package/dist/esm/models/components/loopedpositiontotals.js +30 -0
  262. package/dist/esm/models/components/loopedpositiontotals.js.map +1 -0
  263. package/dist/esm/models/components/looplegpreview.d.ts +24 -0
  264. package/dist/esm/models/components/looplegpreview.d.ts.map +1 -0
  265. package/dist/esm/models/components/looplegpreview.js +22 -0
  266. package/dist/esm/models/components/looplegpreview.js.map +1 -0
  267. package/dist/esm/models/components/morpholendingmarket.d.ts +80 -0
  268. package/dist/esm/models/components/morpholendingmarket.d.ts.map +1 -0
  269. package/dist/esm/models/components/morpholendingmarket.js +45 -0
  270. package/dist/esm/models/components/morpholendingmarket.js.map +1 -0
  271. package/dist/esm/models/components/morphomarketsresponse.d.ts +21 -0
  272. package/dist/esm/models/components/morphomarketsresponse.d.ts.map +1 -0
  273. package/dist/esm/models/components/morphomarketsresponse.js +15 -0
  274. package/dist/esm/models/components/morphomarketsresponse.js.map +1 -0
  275. package/dist/esm/models/components/swapinfo.d.ts +48 -0
  276. package/dist/esm/models/components/swapinfo.d.ts.map +1 -0
  277. package/dist/esm/models/components/swapinfo.js +29 -0
  278. package/dist/esm/models/components/swapinfo.js.map +1 -0
  279. package/dist/esm/models/operations/index.d.ts +2 -0
  280. package/dist/esm/models/operations/index.d.ts.map +1 -1
  281. package/dist/esm/models/operations/index.js +2 -0
  282. package/dist/esm/models/operations/index.js.map +1 -1
  283. package/dist/esm/models/operations/v2creditbalances.d.ts +1 -0
  284. package/dist/esm/models/operations/v2creditbalances.d.ts.map +1 -1
  285. package/dist/esm/models/operations/v2creditbalances.js +1 -0
  286. package/dist/esm/models/operations/v2creditbalances.js.map +1 -1
  287. package/dist/esm/models/operations/v2crediteulermarkets.d.ts +1 -0
  288. package/dist/esm/models/operations/v2crediteulermarkets.d.ts.map +1 -1
  289. package/dist/esm/models/operations/v2crediteulermarkets.js +1 -0
  290. package/dist/esm/models/operations/v2crediteulermarkets.js.map +1 -1
  291. package/dist/esm/models/operations/v2creditloopedpositions.d.ts +28 -0
  292. package/dist/esm/models/operations/v2creditloopedpositions.d.ts.map +1 -0
  293. package/dist/esm/models/operations/v2creditloopedpositions.js +22 -0
  294. package/dist/esm/models/operations/v2creditloopedpositions.js.map +1 -0
  295. package/dist/esm/models/operations/v2creditmorphomarkets.d.ts +23 -0
  296. package/dist/esm/models/operations/v2creditmorphomarkets.d.ts.map +1 -0
  297. package/dist/esm/models/operations/v2creditmorphomarkets.js +21 -0
  298. package/dist/esm/models/operations/v2creditmorphomarkets.js.map +1 -0
  299. package/dist/esm/models/operations/v2creditpositions.d.ts +1 -0
  300. package/dist/esm/models/operations/v2creditpositions.d.ts.map +1 -1
  301. package/dist/esm/models/operations/v2creditpositions.js +1 -0
  302. package/dist/esm/models/operations/v2creditpositions.js.map +1 -1
  303. package/dist/esm/models/operations/v2earnbalances.d.ts +1 -0
  304. package/dist/esm/models/operations/v2earnbalances.d.ts.map +1 -1
  305. package/dist/esm/models/operations/v2earnbalances.js +1 -0
  306. package/dist/esm/models/operations/v2earnbalances.js.map +1 -1
  307. package/dist/esm/models/operations/v2earnpositions.d.ts +1 -0
  308. package/dist/esm/models/operations/v2earnpositions.d.ts.map +1 -1
  309. package/dist/esm/models/operations/v2earnpositions.js +1 -0
  310. package/dist/esm/models/operations/v2earnpositions.js.map +1 -1
  311. package/dist/esm/sdk/credit.d.ts +46 -0
  312. package/dist/esm/sdk/credit.d.ts.map +1 -1
  313. package/dist/esm/sdk/credit.js +55 -0
  314. package/dist/esm/sdk/credit.js.map +1 -1
  315. package/docs/models/components/aavelooprequest.md +4 -4
  316. package/docs/models/components/{initialcollateralamount.md → aavelooprequestinitialcollateralamount.md} +1 -1
  317. package/docs/models/components/{loantovalue.md → aavelooprequestloantovalue.md} +1 -1
  318. package/docs/models/components/{maxslippagepercent.md → aavelooprequestmaxslippagepercent.md} +1 -1
  319. package/docs/models/components/{multiplier.md → aavelooprequestmultiplier.md} +1 -1
  320. package/docs/models/components/accountsummary.md +10 -10
  321. package/docs/models/components/classification.md +17 -0
  322. package/docs/models/components/collateralposition.md +16 -14
  323. package/docs/models/components/createaccountrequestchain.md +1 -1
  324. package/docs/models/components/createcreditaccountrequestchain.md +1 -1
  325. package/docs/models/components/creditborrowparams.md +10 -9
  326. package/docs/models/components/creditborrowrequest.md +20 -19
  327. package/docs/models/components/creditenablecollateralparams.md +6 -6
  328. package/docs/models/components/creditloopedpositionsresponse.md +30 -0
  329. package/docs/models/components/creditlooppreview.md +33 -0
  330. package/docs/models/components/creditlooprequest.md +41 -0
  331. package/docs/models/components/creditlooprequestinitialcollateralamount.md +19 -0
  332. package/docs/models/components/creditlooprequestloantovalue.md +19 -0
  333. package/docs/models/components/creditlooprequestmaxslippagepercent.md +19 -0
  334. package/docs/models/components/creditlooprequestmultiplier.md +19 -0
  335. package/docs/models/components/creditloopresponse.md +30 -0
  336. package/docs/models/components/creditprotocol.md +5 -1
  337. package/docs/models/components/creditrepayparams.md +9 -8
  338. package/docs/models/components/creditrepayrequest.md +19 -18
  339. package/docs/models/components/creditsupplyparams.md +8 -7
  340. package/docs/models/components/creditwithdrawparams.md +8 -7
  341. package/docs/models/components/debtposition.md +15 -13
  342. package/docs/models/components/healthfactorscope.md +17 -0
  343. package/docs/models/components/loopedposition.md +46 -0
  344. package/docs/models/components/loopedpositioncurrentstate.md +28 -0
  345. package/docs/models/components/loopedpositionhistoryentry.md +33 -0
  346. package/docs/models/components/loopedpositionstatus.md +17 -0
  347. package/docs/models/components/loopedpositiontotals.md +31 -0
  348. package/docs/models/components/looplegpreview.md +21 -0
  349. package/docs/models/components/morpholendingmarket.md +49 -0
  350. package/docs/models/components/morphomarketsresponse.md +21 -0
  351. package/docs/models/components/swapinfo.md +36 -0
  352. package/docs/models/operations/v2creditbalanceschain.md +1 -1
  353. package/docs/models/operations/v2crediteulermarketschain.md +1 -1
  354. package/docs/models/operations/v2creditloopedpositionschain.md +15 -0
  355. package/docs/models/operations/v2creditloopedpositionsrequest.md +19 -0
  356. package/docs/models/operations/v2creditmorphomarketschain.md +15 -0
  357. package/docs/models/operations/v2creditmorphomarketsrequest.md +17 -0
  358. package/docs/models/operations/v2creditpositionschain.md +1 -1
  359. package/docs/models/operations/v2earnbalanceschain.md +1 -1
  360. package/docs/models/operations/v2earnpositionschain.md +1 -1
  361. package/docs/sdks/credit/README.md +270 -0
  362. package/openapi_prepped_for_speakeasy.json +1331 -157
  363. package/package.json +1 -1
  364. package/src/funcs/creditCreditLoop.ts +184 -0
  365. package/src/funcs/creditCreditLoopedPositions.ts +185 -0
  366. package/src/funcs/creditCreditMorphoMarkets.ts +182 -0
  367. package/src/lib/config.ts +2 -2
  368. package/src/models/components/aavelooprequest.ts +43 -30
  369. package/src/models/components/accountsummary.ts +4 -0
  370. package/src/models/components/collateralposition.ts +16 -0
  371. package/src/models/components/createaccountrequest.ts +1 -0
  372. package/src/models/components/createcreditaccountrequest.ts +1 -0
  373. package/src/models/components/creditborrowparams.ts +11 -0
  374. package/src/models/components/creditborrowrequest.ts +11 -0
  375. package/src/models/components/creditenablecollateralparams.ts +4 -0
  376. package/src/models/components/creditloopedpositionsresponse.ts +61 -0
  377. package/src/models/components/creditlooppreview.ts +86 -0
  378. package/src/models/components/creditlooprequest.ts +235 -0
  379. package/src/models/components/creditloopresponse.ts +65 -0
  380. package/src/models/components/creditprotocol.ts +9 -0
  381. package/src/models/components/creditrepayparams.ts +11 -0
  382. package/src/models/components/creditrepayrequest.ts +11 -0
  383. package/src/models/components/creditsupplyparams.ts +11 -0
  384. package/src/models/components/creditwithdrawparams.ts +11 -0
  385. package/src/models/components/debtposition.ts +16 -0
  386. package/src/models/components/index.ts +12 -0
  387. package/src/models/components/loopedposition.ts +149 -0
  388. package/src/models/components/loopedpositioncurrentstate.ts +101 -0
  389. package/src/models/components/loopedpositionhistoryentry.ts +115 -0
  390. package/src/models/components/loopedpositiontotals.ts +78 -0
  391. package/src/models/components/looplegpreview.ts +54 -0
  392. package/src/models/components/morpholendingmarket.ts +133 -0
  393. package/src/models/components/morphomarketsresponse.ts +46 -0
  394. package/src/models/components/swapinfo.ts +85 -0
  395. package/src/models/operations/index.ts +2 -0
  396. package/src/models/operations/v2creditbalances.ts +1 -0
  397. package/src/models/operations/v2crediteulermarkets.ts +1 -0
  398. package/src/models/operations/v2creditloopedpositions.ts +56 -0
  399. package/src/models/operations/v2creditmorphomarkets.ts +50 -0
  400. package/src/models/operations/v2creditpositions.ts +1 -0
  401. package/src/models/operations/v2earnbalances.ts +1 -0
  402. package/src/models/operations/v2earnpositions.ts +1 -0
  403. package/src/sdk/credit.ts +79 -0
@@ -20,21 +20,22 @@ let value: CreditRepayRequest = {
20
20
 
21
21
  ## Fields
22
22
 
23
- | Field | Type | Required | Description | Example |
24
- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
25
- | `owner` | *string* | :heavy_check_mark: | The address that owns the Credit Account. | 0x831Ad0C52C77708DA5D49dc8278C966dfdD4ddA1 |
26
- | `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
27
- | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es). | |
28
- | `borrowVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault the debt is owed to (repay target). Required when protocol=EULER. | |
29
- | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to withdraw from. Required when protocol=EULER and withdrawing collateral. | |
30
- | `repayToken` | *string* | :heavy_check_mark: | The borrowed asset to repay (e.g. WETH). Must match the debt position's token. | WETH |
31
- | `repayAmount` | *components.RepayAmount* | :heavy_check_mark: | Amount of repay_token to repay (in token units, not wei). | 0.01 |
32
- | `interestRateMode` | [components.InterestRateMode](../../models/components/interestratemode.md) | :heavy_minus_sign: | On AAVE there are 2 different interest modes.<br/><br/>A stable (but typically higher rate), or a variable rate. | |
33
- | `withdrawToken` | *string* | :heavy_minus_sign: | Collateral token to withdraw from Aave after repaying debt. Omit together with withdraw_amount for repay-only mode. | USDC |
34
- | `withdrawAmount` | *components.WithdrawAmount* | :heavy_minus_sign: | Amount of collateral to withdraw (in token units, not wei). Omit together with withdraw_token for repay-only mode. | 100 |
35
- | `tokenOut` | *string* | :heavy_minus_sign: | Desired output token. If different from withdraw_token, a swap is performed after withdrawal. If None, the withdrawn collateral is kept as-is. | |
36
- | `slippage` | *components.CreditRepayRequestSlippage* | :heavy_minus_sign: | Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%). Only used when a swap is needed. | 0.5 |
37
- | `gasSponsorship` | *boolean* | :heavy_minus_sign: | If true, returns EIP-712 signature data instead of an unsigned transaction. | false |
38
- | `permit2Signature` | *string* | :heavy_minus_sign: | The EOA owner's signature of the Permit2 PermitTransferFrom typed data. When provided, the repay bundle will first pull repay_token from the owner's EOA into the Credit Account via Permit2. Obtain by calling /v2/credit/transfer and signing the returned EIP-712 data. | |
39
- | `permit2Nonce` | *number* | :heavy_minus_sign: | The nonce used in the Permit2 signature (from the signed typed data). | |
40
- | `permit2Deadline` | *number* | :heavy_minus_sign: | The deadline timestamp used in the Permit2 signature (from the signed typed data). | |
23
+ | Field | Type | Required | Description | Example |
24
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
25
+ | `owner` | *string* | :heavy_check_mark: | The address that owns the Credit Account. | 0x831Ad0C52C77708DA5D49dc8278C966dfdD4ddA1 |
26
+ | `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
27
+ | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
28
+ | `borrowVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault the debt is owed to (repay target). Required when protocol=EULER. | |
29
+ | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO. | |
30
+ | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to withdraw from. Required when protocol=EULER and withdrawing collateral. | |
31
+ | `repayToken` | *string* | :heavy_check_mark: | The borrowed asset to repay (e.g. WETH). Must match the debt position's token. | WETH |
32
+ | `repayAmount` | *components.RepayAmount* | :heavy_check_mark: | Amount of repay_token to repay (in token units, not wei). | 0.01 |
33
+ | `interestRateMode` | [components.InterestRateMode](../../models/components/interestratemode.md) | :heavy_minus_sign: | On AAVE there are 2 different interest modes.<br/><br/>A stable (but typically higher rate), or a variable rate. | |
34
+ | `withdrawToken` | *string* | :heavy_minus_sign: | Collateral token to withdraw from Aave after repaying debt. Omit together with withdraw_amount for repay-only mode. | USDC |
35
+ | `withdrawAmount` | *components.WithdrawAmount* | :heavy_minus_sign: | Amount of collateral to withdraw (in token units, not wei). Omit together with withdraw_token for repay-only mode. | 100 |
36
+ | `tokenOut` | *string* | :heavy_minus_sign: | Desired output token. If different from withdraw_token, a swap is performed after withdrawal. If None, the withdrawn collateral is kept as-is. | |
37
+ | `slippage` | *components.CreditRepayRequestSlippage* | :heavy_minus_sign: | Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%). Only used when a swap is needed. | 0.5 |
38
+ | `gasSponsorship` | *boolean* | :heavy_minus_sign: | If true, returns EIP-712 signature data instead of an unsigned transaction. | false |
39
+ | `permit2Signature` | *string* | :heavy_minus_sign: | The EOA owner's signature of the Permit2 PermitTransferFrom typed data. When provided, the repay bundle will first pull repay_token from the owner's EOA into the Credit Account via Permit2. Obtain by calling /v2/credit/transfer and signing the returned EIP-712 data. | |
40
+ | `permit2Nonce` | *number* | :heavy_minus_sign: | The nonce used in the Permit2 signature (from the signed typed data). | |
41
+ | `permit2Deadline` | *number* | :heavy_minus_sign: | The deadline timestamp used in the Permit2 signature (from the signed typed data). | |
@@ -16,10 +16,11 @@ let value: CreditSupplyParams = {
16
16
 
17
17
  ## Fields
18
18
 
19
- | Field | Type | Required | Description | Example |
20
- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
- | `actionType` | *"CREDIT_SUPPLY"* | :heavy_check_mark: | N/A | CREDIT_SUPPLY |
22
- | `token` | *string* | :heavy_check_mark: | Collateral token to supply. | |
23
- | `amount` | *components.CreditSupplyParamsAmount* | :heavy_check_mark: | Amount in token units to supply. | |
24
- | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es). | |
25
- | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to supply into. Required when protocol=EULER. | |
19
+ | Field | Type | Required | Description | Example |
20
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
21
+ | `actionType` | *"CREDIT_SUPPLY"* | :heavy_check_mark: | N/A | CREDIT_SUPPLY |
22
+ | `token` | *string* | :heavy_check_mark: | Collateral token to supply. | |
23
+ | `amount` | *components.CreditSupplyParamsAmount* | :heavy_check_mark: | Amount in token units to supply. | |
24
+ | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
25
+ | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to supply into. Required when protocol=EULER. | |
26
+ | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO. | |
@@ -16,10 +16,11 @@ let value: CreditWithdrawParams = {
16
16
 
17
17
  ## Fields
18
18
 
19
- | Field | Type | Required | Description | Example |
20
- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
- | `actionType` | *"CREDIT_WITHDRAW"* | :heavy_check_mark: | N/A | CREDIT_WITHDRAW |
22
- | `token` | *string* | :heavy_check_mark: | Collateral token to withdraw. | |
23
- | `amount` | *components.CreditWithdrawParamsAmount* | :heavy_check_mark: | Amount in token units to withdraw. | |
24
- | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es). | |
25
- | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to withdraw from. Required when protocol=EULER. | |
19
+ | Field | Type | Required | Description | Example |
20
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
21
+ | `actionType` | *"CREDIT_WITHDRAW"* | :heavy_check_mark: | N/A | CREDIT_WITHDRAW |
22
+ | `token` | *string* | :heavy_check_mark: | Collateral token to withdraw. | |
23
+ | `amount` | *components.CreditWithdrawParamsAmount* | :heavy_check_mark: | Amount in token units to withdraw. | |
24
+ | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
25
+ | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to withdraw from. Required when protocol=EULER. | |
26
+ | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO. | |
@@ -17,16 +17,18 @@ let value: DebtPosition = {
17
17
 
18
18
  ## Fields
19
19
 
20
- | Field | Type | Required | Description | Example |
21
- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
22
- | `token` | *string* | :heavy_check_mark: | Address of the borrow token. | |
23
- | `symbol` | *string* | :heavy_check_mark: | Symbol of the borrow token (e.g. WETH). | |
24
- | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es). | |
25
- | `vault` | *string* | :heavy_minus_sign: | Euler only: the EVK borrow vault this debt is owed to. | |
26
- | `amountBorrowed` | *string* | :heavy_check_mark: | Current on-chain debt balance (the vault's underlying asset for Euler). | |
27
- | `usdValue` | *string* | :heavy_minus_sign: | Debt value in USD. | |
28
- | `borrowApy` | *string* | :heavy_minus_sign: | Current borrow APY in percentage (e.g. 4.5 means 4.5%). | |
29
- | `totalBorrowed` | *string* | :heavy_minus_sign: | Total amount borrowed across all borrow events. | |
30
- | `totalRepaid` | *string* | :heavy_minus_sign: | Total amount repaid across all repay events. | |
31
- | `interestPaid` | *string* | :heavy_minus_sign: | Interest paid on debt: on_chain_balance + total_repaid - total_borrowed. | |
32
- | `events` | [components.CreditEvent](../../models/components/creditevent.md)[] | :heavy_minus_sign: | All historical events for this debt reserve. | [] |
20
+ | Field | Type | Required | Description | Example |
21
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
22
+ | `token` | *string* | :heavy_check_mark: | Address of the borrow token. | |
23
+ | `symbol` | *string* | :heavy_check_mark: | Symbol of the borrow token (e.g. WETH). | |
24
+ | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
25
+ | `vault` | *string* | :heavy_minus_sign: | Euler only: the EVK borrow vault this debt is owed to. | |
26
+ | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 id of the isolated market this debt is owed to. | |
27
+ | `healthFactor` | *string* | :heavy_minus_sign: | Morpho only: this market's health factor (markets are isolated, so health is per market — below 1 the position is liquidatable). Null for other protocols and when the oracle read fails. | |
28
+ | `amountBorrowed` | *string* | :heavy_check_mark: | Current on-chain debt balance (the vault's underlying asset for Euler). | |
29
+ | `usdValue` | *string* | :heavy_minus_sign: | Debt value in USD. | |
30
+ | `borrowApy` | *string* | :heavy_minus_sign: | Current borrow APY in percentage (e.g. 4.5 means 4.5%). | |
31
+ | `totalBorrowed` | *string* | :heavy_minus_sign: | Total amount borrowed across all borrow events. | |
32
+ | `totalRepaid` | *string* | :heavy_minus_sign: | Total amount repaid across all repay events. | |
33
+ | `interestPaid` | *string* | :heavy_minus_sign: | Interest paid on debt: on_chain_balance + total_repaid - total_borrowed. | |
34
+ | `events` | [components.CreditEvent](../../models/components/creditevent.md)[] | :heavy_minus_sign: | All historical events for this debt reserve. | [] |
@@ -0,0 +1,17 @@
1
+ # HealthFactorScope
2
+
3
+ 'market' for Morpho (isolated per-market health). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account — see aave_account_summary for the account-level figures.
4
+
5
+ ## Example Usage
6
+
7
+ ```typescript
8
+ import { HealthFactorScope } from "@compass-labs/api-sdk/models/components";
9
+
10
+ let value: HealthFactorScope = "market";
11
+ ```
12
+
13
+ ## Values
14
+
15
+ ```typescript
16
+ "market" | "account"
17
+ ```