@compass-labs/api-sdk 2.2.18-rc.2 → 2.2.18

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 (324) hide show
  1. package/README.md +1 -16
  2. package/codeSamples_typescript.yaml +0 -36
  3. package/dist/commonjs/lib/config.d.ts +2 -2
  4. package/dist/commonjs/lib/config.js +2 -2
  5. package/dist/commonjs/models/components/index.d.ts +0 -20
  6. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  7. package/dist/commonjs/models/components/index.js +0 -20
  8. package/dist/commonjs/models/components/index.js.map +1 -1
  9. package/dist/commonjs/models/operations/index.d.ts +0 -1
  10. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  11. package/dist/commonjs/models/operations/index.js +0 -1
  12. package/dist/commonjs/models/operations/index.js.map +1 -1
  13. package/dist/commonjs/sdk/sdk.d.ts +0 -3
  14. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  15. package/dist/commonjs/sdk/sdk.js +0 -4
  16. package/dist/commonjs/sdk/sdk.js.map +1 -1
  17. package/dist/esm/lib/config.d.ts +2 -2
  18. package/dist/esm/lib/config.js +2 -2
  19. package/dist/esm/models/components/index.d.ts +0 -20
  20. package/dist/esm/models/components/index.d.ts.map +1 -1
  21. package/dist/esm/models/components/index.js +0 -20
  22. package/dist/esm/models/components/index.js.map +1 -1
  23. package/dist/esm/models/operations/index.d.ts +0 -1
  24. package/dist/esm/models/operations/index.d.ts.map +1 -1
  25. package/dist/esm/models/operations/index.js +0 -1
  26. package/dist/esm/models/operations/index.js.map +1 -1
  27. package/dist/esm/sdk/sdk.d.ts +0 -3
  28. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  29. package/dist/esm/sdk/sdk.js +0 -4
  30. package/dist/esm/sdk/sdk.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/lib/config.ts +2 -2
  33. package/src/models/components/index.ts +0 -20
  34. package/src/models/operations/index.ts +0 -1
  35. package/src/sdk/sdk.ts +0 -6
  36. package/dist/commonjs/funcs/creditCreditBorrow.d.ts +0 -25
  37. package/dist/commonjs/funcs/creditCreditBorrow.d.ts.map +0 -1
  38. package/dist/commonjs/funcs/creditCreditBorrow.js +0 -125
  39. package/dist/commonjs/funcs/creditCreditBorrow.js.map +0 -1
  40. package/dist/commonjs/funcs/creditCreditBundle.d.ts +0 -21
  41. package/dist/commonjs/funcs/creditCreditBundle.d.ts.map +0 -1
  42. package/dist/commonjs/funcs/creditCreditBundle.js +0 -121
  43. package/dist/commonjs/funcs/creditCreditBundle.js.map +0 -1
  44. package/dist/commonjs/funcs/creditCreditCreateAccount.d.ts +0 -26
  45. package/dist/commonjs/funcs/creditCreditCreateAccount.d.ts.map +0 -1
  46. package/dist/commonjs/funcs/creditCreditCreateAccount.js +0 -126
  47. package/dist/commonjs/funcs/creditCreditCreateAccount.js.map +0 -1
  48. package/dist/commonjs/funcs/creditCreditPositions.d.ts +0 -22
  49. package/dist/commonjs/funcs/creditCreditPositions.d.ts.map +0 -1
  50. package/dist/commonjs/funcs/creditCreditPositions.js +0 -126
  51. package/dist/commonjs/funcs/creditCreditPositions.js.map +0 -1
  52. package/dist/commonjs/funcs/creditCreditRepay.d.ts +0 -26
  53. package/dist/commonjs/funcs/creditCreditRepay.d.ts.map +0 -1
  54. package/dist/commonjs/funcs/creditCreditRepay.js +0 -126
  55. package/dist/commonjs/funcs/creditCreditRepay.js.map +0 -1
  56. package/dist/commonjs/funcs/creditCreditTransfer.d.ts +0 -27
  57. package/dist/commonjs/funcs/creditCreditTransfer.d.ts.map +0 -1
  58. package/dist/commonjs/funcs/creditCreditTransfer.js +0 -127
  59. package/dist/commonjs/funcs/creditCreditTransfer.js.map +0 -1
  60. package/dist/commonjs/models/components/accountsummary.d.ts +0 -40
  61. package/dist/commonjs/models/components/accountsummary.d.ts.map +0 -1
  62. package/dist/commonjs/models/components/accountsummary.js +0 -66
  63. package/dist/commonjs/models/components/accountsummary.js.map +0 -1
  64. package/dist/commonjs/models/components/collateralposition.d.ts +0 -53
  65. package/dist/commonjs/models/components/collateralposition.d.ts.map +0 -1
  66. package/dist/commonjs/models/components/collateralposition.js +0 -71
  67. package/dist/commonjs/models/components/collateralposition.js.map +0 -1
  68. package/dist/commonjs/models/components/createcreditaccountrequest.d.ts +0 -39
  69. package/dist/commonjs/models/components/createcreditaccountrequest.d.ts.map +0 -1
  70. package/dist/commonjs/models/components/createcreditaccountrequest.js +0 -64
  71. package/dist/commonjs/models/components/createcreditaccountrequest.js.map +0 -1
  72. package/dist/commonjs/models/components/createcreditaccountresponse.d.ts +0 -21
  73. package/dist/commonjs/models/components/createcreditaccountresponse.d.ts.map +0 -1
  74. package/dist/commonjs/models/components/createcreditaccountresponse.js +0 -57
  75. package/dist/commonjs/models/components/createcreditaccountresponse.js.map +0 -1
  76. package/dist/commonjs/models/components/creditborrowparams.d.ts +0 -44
  77. package/dist/commonjs/models/components/creditborrowparams.d.ts.map +0 -1
  78. package/dist/commonjs/models/components/creditborrowparams.js +0 -65
  79. package/dist/commonjs/models/components/creditborrowparams.js.map +0 -1
  80. package/dist/commonjs/models/components/creditborrowrequest.d.ts +0 -108
  81. package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +0 -1
  82. package/dist/commonjs/models/components/creditborrowrequest.js +0 -95
  83. package/dist/commonjs/models/components/creditborrowrequest.js.map +0 -1
  84. package/dist/commonjs/models/components/creditborrowresponse.d.ts +0 -23
  85. package/dist/commonjs/models/components/creditborrowresponse.d.ts.map +0 -1
  86. package/dist/commonjs/models/components/creditborrowresponse.js +0 -61
  87. package/dist/commonjs/models/components/creditborrowresponse.js.map +0 -1
  88. package/dist/commonjs/models/components/creditbundlerequest.d.ts +0 -35
  89. package/dist/commonjs/models/components/creditbundlerequest.d.ts.map +0 -1
  90. package/dist/commonjs/models/components/creditbundlerequest.js +0 -59
  91. package/dist/commonjs/models/components/creditbundlerequest.js.map +0 -1
  92. package/dist/commonjs/models/components/creditbundleresponse.d.ts +0 -23
  93. package/dist/commonjs/models/components/creditbundleresponse.d.ts.map +0 -1
  94. package/dist/commonjs/models/components/creditbundleresponse.js +0 -61
  95. package/dist/commonjs/models/components/creditbundleresponse.js.map +0 -1
  96. package/dist/commonjs/models/components/creditevent.d.ts +0 -53
  97. package/dist/commonjs/models/components/creditevent.d.ts.map +0 -1
  98. package/dist/commonjs/models/components/creditevent.js +0 -76
  99. package/dist/commonjs/models/components/creditevent.js.map +0 -1
  100. package/dist/commonjs/models/components/creditpositionsresponse.d.ts +0 -31
  101. package/dist/commonjs/models/components/creditpositionsresponse.d.ts.map +0 -1
  102. package/dist/commonjs/models/components/creditpositionsresponse.js +0 -64
  103. package/dist/commonjs/models/components/creditpositionsresponse.js.map +0 -1
  104. package/dist/commonjs/models/components/creditrepayparams.d.ts +0 -44
  105. package/dist/commonjs/models/components/creditrepayparams.d.ts.map +0 -1
  106. package/dist/commonjs/models/components/creditrepayparams.js +0 -65
  107. package/dist/commonjs/models/components/creditrepayparams.js.map +0 -1
  108. package/dist/commonjs/models/components/creditrepayrequest.d.ts +0 -108
  109. package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +0 -1
  110. package/dist/commonjs/models/components/creditrepayrequest.js +0 -95
  111. package/dist/commonjs/models/components/creditrepayrequest.js.map +0 -1
  112. package/dist/commonjs/models/components/creditrepayresponse.d.ts +0 -23
  113. package/dist/commonjs/models/components/creditrepayresponse.d.ts.map +0 -1
  114. package/dist/commonjs/models/components/creditrepayresponse.js +0 -61
  115. package/dist/commonjs/models/components/creditrepayresponse.js.map +0 -1
  116. package/dist/commonjs/models/components/creditsupplyparams.d.ts +0 -34
  117. package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +0 -1
  118. package/dist/commonjs/models/components/creditsupplyparams.js +0 -62
  119. package/dist/commonjs/models/components/creditsupplyparams.js.map +0 -1
  120. package/dist/commonjs/models/components/credittransferrequest.d.ts +0 -40
  121. package/dist/commonjs/models/components/credittransferrequest.d.ts.map +0 -1
  122. package/dist/commonjs/models/components/credittransferrequest.js +0 -59
  123. package/dist/commonjs/models/components/credittransferrequest.js.map +0 -1
  124. package/dist/commonjs/models/components/credittransferresponse.d.ts +0 -11
  125. package/dist/commonjs/models/components/credittransferresponse.d.ts.map +0 -1
  126. package/dist/commonjs/models/components/credittransferresponse.js +0 -56
  127. package/dist/commonjs/models/components/credittransferresponse.js.map +0 -1
  128. package/dist/commonjs/models/components/credituseroperation.d.ts +0 -28
  129. package/dist/commonjs/models/components/credituseroperation.d.ts.map +0 -1
  130. package/dist/commonjs/models/components/credituseroperation.js +0 -78
  131. package/dist/commonjs/models/components/credituseroperation.js.map +0 -1
  132. package/dist/commonjs/models/components/creditwithdrawparams.d.ts +0 -34
  133. package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +0 -1
  134. package/dist/commonjs/models/components/creditwithdrawparams.js +0 -62
  135. package/dist/commonjs/models/components/creditwithdrawparams.js.map +0 -1
  136. package/dist/commonjs/models/components/debtposition.d.ts +0 -49
  137. package/dist/commonjs/models/components/debtposition.d.ts.map +0 -1
  138. package/dist/commonjs/models/components/debtposition.js +0 -69
  139. package/dist/commonjs/models/components/debtposition.js.map +0 -1
  140. package/dist/commonjs/models/operations/v2creditpositions.d.ts +0 -26
  141. package/dist/commonjs/models/operations/v2creditpositions.d.ts.map +0 -1
  142. package/dist/commonjs/models/operations/v2creditpositions.js +0 -57
  143. package/dist/commonjs/models/operations/v2creditpositions.js.map +0 -1
  144. package/dist/commonjs/sdk/credit.d.ts +0 -86
  145. package/dist/commonjs/sdk/credit.d.ts.map +0 -1
  146. package/dist/commonjs/sdk/credit.js +0 -110
  147. package/dist/commonjs/sdk/credit.js.map +0 -1
  148. package/dist/esm/funcs/creditCreditBorrow.d.ts +0 -25
  149. package/dist/esm/funcs/creditCreditBorrow.d.ts.map +0 -1
  150. package/dist/esm/funcs/creditCreditBorrow.js +0 -89
  151. package/dist/esm/funcs/creditCreditBorrow.js.map +0 -1
  152. package/dist/esm/funcs/creditCreditBundle.d.ts +0 -21
  153. package/dist/esm/funcs/creditCreditBundle.d.ts.map +0 -1
  154. package/dist/esm/funcs/creditCreditBundle.js +0 -85
  155. package/dist/esm/funcs/creditCreditBundle.js.map +0 -1
  156. package/dist/esm/funcs/creditCreditCreateAccount.d.ts +0 -26
  157. package/dist/esm/funcs/creditCreditCreateAccount.d.ts.map +0 -1
  158. package/dist/esm/funcs/creditCreditCreateAccount.js +0 -90
  159. package/dist/esm/funcs/creditCreditCreateAccount.js.map +0 -1
  160. package/dist/esm/funcs/creditCreditPositions.d.ts +0 -22
  161. package/dist/esm/funcs/creditCreditPositions.d.ts.map +0 -1
  162. package/dist/esm/funcs/creditCreditPositions.js +0 -90
  163. package/dist/esm/funcs/creditCreditPositions.js.map +0 -1
  164. package/dist/esm/funcs/creditCreditRepay.d.ts +0 -26
  165. package/dist/esm/funcs/creditCreditRepay.d.ts.map +0 -1
  166. package/dist/esm/funcs/creditCreditRepay.js +0 -90
  167. package/dist/esm/funcs/creditCreditRepay.js.map +0 -1
  168. package/dist/esm/funcs/creditCreditTransfer.d.ts +0 -27
  169. package/dist/esm/funcs/creditCreditTransfer.d.ts.map +0 -1
  170. package/dist/esm/funcs/creditCreditTransfer.js +0 -91
  171. package/dist/esm/funcs/creditCreditTransfer.js.map +0 -1
  172. package/dist/esm/models/components/accountsummary.d.ts +0 -40
  173. package/dist/esm/models/components/accountsummary.d.ts.map +0 -1
  174. package/dist/esm/models/components/accountsummary.js +0 -29
  175. package/dist/esm/models/components/accountsummary.js.map +0 -1
  176. package/dist/esm/models/components/collateralposition.d.ts +0 -53
  177. package/dist/esm/models/components/collateralposition.d.ts.map +0 -1
  178. package/dist/esm/models/components/collateralposition.js +0 -34
  179. package/dist/esm/models/components/collateralposition.js.map +0 -1
  180. package/dist/esm/models/components/createcreditaccountrequest.d.ts +0 -39
  181. package/dist/esm/models/components/createcreditaccountrequest.d.ts.map +0 -1
  182. package/dist/esm/models/components/createcreditaccountrequest.js +0 -27
  183. package/dist/esm/models/components/createcreditaccountrequest.js.map +0 -1
  184. package/dist/esm/models/components/createcreditaccountresponse.d.ts +0 -21
  185. package/dist/esm/models/components/createcreditaccountresponse.d.ts.map +0 -1
  186. package/dist/esm/models/components/createcreditaccountresponse.js +0 -20
  187. package/dist/esm/models/components/createcreditaccountresponse.js.map +0 -1
  188. package/dist/esm/models/components/creditborrowparams.d.ts +0 -44
  189. package/dist/esm/models/components/creditborrowparams.d.ts.map +0 -1
  190. package/dist/esm/models/components/creditborrowparams.js +0 -27
  191. package/dist/esm/models/components/creditborrowparams.js.map +0 -1
  192. package/dist/esm/models/components/creditborrowrequest.d.ts +0 -108
  193. package/dist/esm/models/components/creditborrowrequest.d.ts.map +0 -1
  194. package/dist/esm/models/components/creditborrowrequest.js +0 -55
  195. package/dist/esm/models/components/creditborrowrequest.js.map +0 -1
  196. package/dist/esm/models/components/creditborrowresponse.d.ts +0 -23
  197. package/dist/esm/models/components/creditborrowresponse.d.ts.map +0 -1
  198. package/dist/esm/models/components/creditborrowresponse.js +0 -24
  199. package/dist/esm/models/components/creditborrowresponse.js.map +0 -1
  200. package/dist/esm/models/components/creditbundlerequest.d.ts +0 -35
  201. package/dist/esm/models/components/creditbundlerequest.d.ts.map +0 -1
  202. package/dist/esm/models/components/creditbundlerequest.js +0 -22
  203. package/dist/esm/models/components/creditbundlerequest.js.map +0 -1
  204. package/dist/esm/models/components/creditbundleresponse.d.ts +0 -23
  205. package/dist/esm/models/components/creditbundleresponse.d.ts.map +0 -1
  206. package/dist/esm/models/components/creditbundleresponse.js +0 -24
  207. package/dist/esm/models/components/creditbundleresponse.js.map +0 -1
  208. package/dist/esm/models/components/creditevent.d.ts +0 -53
  209. package/dist/esm/models/components/creditevent.d.ts.map +0 -1
  210. package/dist/esm/models/components/creditevent.js +0 -39
  211. package/dist/esm/models/components/creditevent.js.map +0 -1
  212. package/dist/esm/models/components/creditpositionsresponse.d.ts +0 -31
  213. package/dist/esm/models/components/creditpositionsresponse.d.ts.map +0 -1
  214. package/dist/esm/models/components/creditpositionsresponse.js +0 -27
  215. package/dist/esm/models/components/creditpositionsresponse.js.map +0 -1
  216. package/dist/esm/models/components/creditrepayparams.d.ts +0 -44
  217. package/dist/esm/models/components/creditrepayparams.d.ts.map +0 -1
  218. package/dist/esm/models/components/creditrepayparams.js +0 -27
  219. package/dist/esm/models/components/creditrepayparams.js.map +0 -1
  220. package/dist/esm/models/components/creditrepayrequest.d.ts +0 -108
  221. package/dist/esm/models/components/creditrepayrequest.d.ts.map +0 -1
  222. package/dist/esm/models/components/creditrepayrequest.js +0 -55
  223. package/dist/esm/models/components/creditrepayrequest.js.map +0 -1
  224. package/dist/esm/models/components/creditrepayresponse.d.ts +0 -23
  225. package/dist/esm/models/components/creditrepayresponse.d.ts.map +0 -1
  226. package/dist/esm/models/components/creditrepayresponse.js +0 -24
  227. package/dist/esm/models/components/creditrepayresponse.js.map +0 -1
  228. package/dist/esm/models/components/creditsupplyparams.d.ts +0 -34
  229. package/dist/esm/models/components/creditsupplyparams.d.ts.map +0 -1
  230. package/dist/esm/models/components/creditsupplyparams.js +0 -24
  231. package/dist/esm/models/components/creditsupplyparams.js.map +0 -1
  232. package/dist/esm/models/components/credittransferrequest.d.ts +0 -40
  233. package/dist/esm/models/components/credittransferrequest.d.ts.map +0 -1
  234. package/dist/esm/models/components/credittransferrequest.js +0 -21
  235. package/dist/esm/models/components/credittransferrequest.js.map +0 -1
  236. package/dist/esm/models/components/credittransferresponse.d.ts +0 -11
  237. package/dist/esm/models/components/credittransferresponse.d.ts.map +0 -1
  238. package/dist/esm/models/components/credittransferresponse.js +0 -19
  239. package/dist/esm/models/components/credittransferresponse.js.map +0 -1
  240. package/dist/esm/models/components/credituseroperation.d.ts +0 -28
  241. package/dist/esm/models/components/credituseroperation.d.ts.map +0 -1
  242. package/dist/esm/models/components/credituseroperation.js +0 -40
  243. package/dist/esm/models/components/credituseroperation.js.map +0 -1
  244. package/dist/esm/models/components/creditwithdrawparams.d.ts +0 -34
  245. package/dist/esm/models/components/creditwithdrawparams.d.ts.map +0 -1
  246. package/dist/esm/models/components/creditwithdrawparams.js +0 -24
  247. package/dist/esm/models/components/creditwithdrawparams.js.map +0 -1
  248. package/dist/esm/models/components/debtposition.d.ts +0 -49
  249. package/dist/esm/models/components/debtposition.d.ts.map +0 -1
  250. package/dist/esm/models/components/debtposition.js +0 -32
  251. package/dist/esm/models/components/debtposition.js.map +0 -1
  252. package/dist/esm/models/operations/v2creditpositions.d.ts +0 -26
  253. package/dist/esm/models/operations/v2creditpositions.d.ts.map +0 -1
  254. package/dist/esm/models/operations/v2creditpositions.js +0 -20
  255. package/dist/esm/models/operations/v2creditpositions.js.map +0 -1
  256. package/dist/esm/sdk/credit.d.ts +0 -86
  257. package/dist/esm/sdk/credit.d.ts.map +0 -1
  258. package/dist/esm/sdk/credit.js +0 -106
  259. package/dist/esm/sdk/credit.js.map +0 -1
  260. package/docs/models/components/accountsummary.md +0 -30
  261. package/docs/models/components/borrowamount.md +0 -19
  262. package/docs/models/components/collateralposition.md +0 -31
  263. package/docs/models/components/createcreditaccountrequest.md +0 -24
  264. package/docs/models/components/createcreditaccountrequestchain.md +0 -15
  265. package/docs/models/components/createcreditaccountresponse.md +0 -31
  266. package/docs/models/components/creditborrowparams.md +0 -24
  267. package/docs/models/components/creditborrowparamsamount.md +0 -19
  268. package/docs/models/components/creditborrowrequest.md +0 -38
  269. package/docs/models/components/creditborrowrequestamountin.md +0 -19
  270. package/docs/models/components/creditborrowrequestslippage.md +0 -19
  271. package/docs/models/components/creditborrowresponse.md +0 -17
  272. package/docs/models/components/creditbundlerequest.md +0 -25
  273. package/docs/models/components/creditbundleresponse.md +0 -19
  274. package/docs/models/components/creditevent.md +0 -29
  275. package/docs/models/components/creditpositionsresponse.md +0 -31
  276. package/docs/models/components/creditrepayparams.md +0 -24
  277. package/docs/models/components/creditrepayparamsamount.md +0 -19
  278. package/docs/models/components/creditrepayrequest.md +0 -37
  279. package/docs/models/components/creditrepayrequestslippage.md +0 -19
  280. package/docs/models/components/creditrepayresponse.md +0 -17
  281. package/docs/models/components/creditsupplyparams.md +0 -23
  282. package/docs/models/components/creditsupplyparamsamount.md +0 -19
  283. package/docs/models/components/credittransferrequest.md +0 -23
  284. package/docs/models/components/credittransferrequestamount.md +0 -19
  285. package/docs/models/components/credittransferresponse.md +0 -75
  286. package/docs/models/components/credituseroperation.md +0 -23
  287. package/docs/models/components/credituseroperationbody.md +0 -80
  288. package/docs/models/components/creditwithdrawparams.md +0 -23
  289. package/docs/models/components/creditwithdrawparamsamount.md +0 -19
  290. package/docs/models/components/debtposition.md +0 -30
  291. package/docs/models/components/eventtype.md +0 -17
  292. package/docs/models/components/repayamount.md +0 -19
  293. package/docs/models/components/withdrawamount.md +0 -19
  294. package/docs/models/operations/v2creditpositionschain.md +0 -15
  295. package/docs/models/operations/v2creditpositionsrequest.md +0 -19
  296. package/docs/sdks/credit/README.md +0 -562
  297. package/src/funcs/creditCreditBorrow.ts +0 -176
  298. package/src/funcs/creditCreditBundle.ts +0 -172
  299. package/src/funcs/creditCreditCreateAccount.ts +0 -178
  300. package/src/funcs/creditCreditPositions.ts +0 -178
  301. package/src/funcs/creditCreditRepay.ts +0 -177
  302. package/src/funcs/creditCreditTransfer.ts +0 -178
  303. package/src/models/components/accountsummary.ts +0 -77
  304. package/src/models/components/collateralposition.ts +0 -94
  305. package/src/models/components/createcreditaccountrequest.ts +0 -72
  306. package/src/models/components/createcreditaccountresponse.ts +0 -51
  307. package/src/models/components/creditborrowparams.ts +0 -89
  308. package/src/models/components/creditborrowrequest.ts +0 -198
  309. package/src/models/components/creditborrowresponse.ts +0 -59
  310. package/src/models/components/creditbundlerequest.ts +0 -66
  311. package/src/models/components/creditbundleresponse.ts +0 -59
  312. package/src/models/components/creditevent.ts +0 -92
  313. package/src/models/components/creditpositionsresponse.ts +0 -69
  314. package/src/models/components/creditrepayparams.ts +0 -89
  315. package/src/models/components/creditrepayrequest.ts +0 -190
  316. package/src/models/components/creditrepayresponse.ts +0 -59
  317. package/src/models/components/creditsupplyparams.ts +0 -74
  318. package/src/models/components/credittransferrequest.ts +0 -78
  319. package/src/models/components/credittransferresponse.ts +0 -40
  320. package/src/models/components/credituseroperation.ts +0 -133
  321. package/src/models/components/creditwithdrawparams.ts +0 -74
  322. package/src/models/components/debtposition.ts +0 -88
  323. package/src/models/operations/v2creditpositions.ts +0 -50
  324. package/src/sdk/credit.ts +0 -156
@@ -1,86 +0,0 @@
1
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
- import * as components from "../models/components/index.js";
3
- import * as operations from "../models/operations/index.js";
4
- export declare class Credit extends ClientSDK {
5
- /**
6
- * List credit positions
7
- *
8
- * @remarks
9
- * List all Credit positions for a given owner.
10
- *
11
- * Returns a unified list of positions (collateral and debt) and an account summary
12
- * with health factor and LTV. Each position includes event history.
13
- */
14
- creditPositions(request: operations.V2CreditPositionsRequest, options?: RequestOptions): Promise<components.CreditPositionsResponse>;
15
- /**
16
- * Create credit account
17
- *
18
- * @remarks
19
- * Create a Credit Account for a wallet address.
20
- *
21
- * Before using credit features, the owner must create a Credit Account. Each wallet address has one Credit Account per chain.
22
- *
23
- * Returns an unsigned transaction to create the account. The `sender` signs and broadcasts this transaction.
24
- *
25
- * **If owner pays gas:** Set `sender` to the owner's address.
26
- *
27
- * **If someone else pays gas:** Set `sender` to the wallet that will sign and broadcast the transaction on behalf of the owner.
28
- */
29
- creditCreateAccount(request: components.CreateCreditAccountRequest, options?: RequestOptions): Promise<components.CreateCreditAccountResponse>;
30
- /**
31
- * Borrow against collateral
32
- *
33
- * @remarks
34
- * Borrow an asset from Aave using a Credit Account.
35
- *
36
- * Bundles an optional swap, collateral supply, and borrow into a single atomic Safe transaction.
37
- *
38
- * - If `token_in` equals `collateral_token`, the tokens are supplied directly as collateral.
39
- * - If `token_in` differs from `collateral_token`, a swap is performed first via 1inch.
40
- *
41
- * The Credit Account must already be created via `/v2/credit/create_account` and funded with `token_in`.
42
- */
43
- creditBorrow(request: components.CreditBorrowRequest, options?: RequestOptions): Promise<components.CreditBorrowResponse>;
44
- /**
45
- * Get Permit2 signature data for Credit Account transfer
46
- *
47
- * @remarks
48
- * Generate Permit2 EIP-712 typed data for transferring tokens from the owner's EOA
49
- * to a Credit Account.
50
- *
51
- * The owner signs the returned EIP-712 data, then includes the signature in a `/v2/credit/borrow`
52
- * or `/v2/credit/repay` request to atomically pull tokens from their EOA as part of the bundle.
53
- *
54
- * **Flow:**
55
- * 1. Call this endpoint to get the Permit2 typed data
56
- * 2. Sign the typed data with the owner's wallet
57
- * 3. Call `/v2/credit/borrow` or `/v2/credit/repay` with the `permit2_signature`, `permit2_nonce`, and `permit2_deadline` fields
58
- */
59
- creditTransfer(request: components.CreditTransferRequest, options?: RequestOptions): Promise<components.CreditTransferResponse>;
60
- /**
61
- * Repay debt and withdraw collateral
62
- *
63
- * @remarks
64
- * Repay an Aave debt and withdraw collateral from a Credit Account.
65
- *
66
- * Bundles repayment, collateral withdrawal, and an optional swap into a single atomic Safe transaction.
67
- *
68
- * - If `token_out` is None or equals `withdraw_token`, the withdrawn collateral is kept as-is.
69
- * - If `token_out` differs from `withdraw_token`, a swap is performed after withdrawal via 1inch.
70
- *
71
- * The Credit Account must already have a borrow position created via `/v2/credit/borrow`.
72
- * The repay_token must be available in the Credit Account (or pulled from EOA via Permit2).
73
- */
74
- creditRepay(request: components.CreditRepayRequest, options?: RequestOptions): Promise<components.CreditRepayResponse>;
75
- /**
76
- * Execute multiple credit actions atomically
77
- *
78
- * @remarks
79
- * Compose individual credit operations (supply, withdraw, borrow, repay, swap, transfer)
80
- * into a single atomic Safe transaction.
81
- *
82
- * The Credit Account must already be created via `/v2/credit/create_account`.
83
- */
84
- creditBundle(request: components.CreditBundleRequest, options?: RequestOptions): Promise<components.CreditBundleResponse>;
85
- }
86
- //# sourceMappingURL=credit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"credit.d.ts","sourceRoot":"","sources":["../../../src/sdk/credit.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,MAAO,SAAQ,SAAS;IACnC;;;;;;;;OAQG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;;;;;;;;;;;;OAaG;IACG,mBAAmB,CACvB,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAQlD;;;;;;;;;;;;OAYG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;;;;;;;;;;OAcG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;;;;;;;;;OAaG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;;;;OAQG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;CAO5C"}
@@ -1,106 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import { creditCreditBorrow } from "../funcs/creditCreditBorrow.js";
5
- import { creditCreditBundle } from "../funcs/creditCreditBundle.js";
6
- import { creditCreditCreateAccount } from "../funcs/creditCreditCreateAccount.js";
7
- import { creditCreditPositions } from "../funcs/creditCreditPositions.js";
8
- import { creditCreditRepay } from "../funcs/creditCreditRepay.js";
9
- import { creditCreditTransfer } from "../funcs/creditCreditTransfer.js";
10
- import { ClientSDK } from "../lib/sdks.js";
11
- import { unwrapAsync } from "../types/fp.js";
12
- export class Credit extends ClientSDK {
13
- /**
14
- * List credit positions
15
- *
16
- * @remarks
17
- * List all Credit positions for a given owner.
18
- *
19
- * Returns a unified list of positions (collateral and debt) and an account summary
20
- * with health factor and LTV. Each position includes event history.
21
- */
22
- async creditPositions(request, options) {
23
- return unwrapAsync(creditCreditPositions(this, request, options));
24
- }
25
- /**
26
- * Create credit account
27
- *
28
- * @remarks
29
- * Create a Credit Account for a wallet address.
30
- *
31
- * Before using credit features, the owner must create a Credit Account. Each wallet address has one Credit Account per chain.
32
- *
33
- * Returns an unsigned transaction to create the account. The `sender` signs and broadcasts this transaction.
34
- *
35
- * **If owner pays gas:** Set `sender` to the owner's address.
36
- *
37
- * **If someone else pays gas:** Set `sender` to the wallet that will sign and broadcast the transaction on behalf of the owner.
38
- */
39
- async creditCreateAccount(request, options) {
40
- return unwrapAsync(creditCreditCreateAccount(this, request, options));
41
- }
42
- /**
43
- * Borrow against collateral
44
- *
45
- * @remarks
46
- * Borrow an asset from Aave using a Credit Account.
47
- *
48
- * Bundles an optional swap, collateral supply, and borrow into a single atomic Safe transaction.
49
- *
50
- * - If `token_in` equals `collateral_token`, the tokens are supplied directly as collateral.
51
- * - If `token_in` differs from `collateral_token`, a swap is performed first via 1inch.
52
- *
53
- * The Credit Account must already be created via `/v2/credit/create_account` and funded with `token_in`.
54
- */
55
- async creditBorrow(request, options) {
56
- return unwrapAsync(creditCreditBorrow(this, request, options));
57
- }
58
- /**
59
- * Get Permit2 signature data for Credit Account transfer
60
- *
61
- * @remarks
62
- * Generate Permit2 EIP-712 typed data for transferring tokens from the owner's EOA
63
- * to a Credit Account.
64
- *
65
- * The owner signs the returned EIP-712 data, then includes the signature in a `/v2/credit/borrow`
66
- * or `/v2/credit/repay` request to atomically pull tokens from their EOA as part of the bundle.
67
- *
68
- * **Flow:**
69
- * 1. Call this endpoint to get the Permit2 typed data
70
- * 2. Sign the typed data with the owner's wallet
71
- * 3. Call `/v2/credit/borrow` or `/v2/credit/repay` with the `permit2_signature`, `permit2_nonce`, and `permit2_deadline` fields
72
- */
73
- async creditTransfer(request, options) {
74
- return unwrapAsync(creditCreditTransfer(this, request, options));
75
- }
76
- /**
77
- * Repay debt and withdraw collateral
78
- *
79
- * @remarks
80
- * Repay an Aave debt and withdraw collateral from a Credit Account.
81
- *
82
- * Bundles repayment, collateral withdrawal, and an optional swap into a single atomic Safe transaction.
83
- *
84
- * - If `token_out` is None or equals `withdraw_token`, the withdrawn collateral is kept as-is.
85
- * - If `token_out` differs from `withdraw_token`, a swap is performed after withdrawal via 1inch.
86
- *
87
- * The Credit Account must already have a borrow position created via `/v2/credit/borrow`.
88
- * The repay_token must be available in the Credit Account (or pulled from EOA via Permit2).
89
- */
90
- async creditRepay(request, options) {
91
- return unwrapAsync(creditCreditRepay(this, request, options));
92
- }
93
- /**
94
- * Execute multiple credit actions atomically
95
- *
96
- * @remarks
97
- * Compose individual credit operations (supply, withdraw, borrow, repay, swap, transfer)
98
- * into a single atomic Safe transaction.
99
- *
100
- * The Credit Account must already be created via `/v2/credit/create_account`.
101
- */
102
- async creditBundle(request, options) {
103
- return unwrapAsync(creditCreditBundle(this, request, options));
104
- }
105
- }
106
- //# sourceMappingURL=credit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"credit.js","sourceRoot":"","sources":["../../../src/sdk/credit.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,MAAO,SAAQ,SAAS;IACnC;;;;;;;;OAQG;IACH,KAAK,CAAC,eAAe,CACnB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,WAAW,CAAC,qBAAqB,CACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,WAAW,CAAC,yBAAyB,CAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuC,EACvC,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,oBAAoB,CACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuC,EACvC,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,30 +0,0 @@
1
- # AccountSummary
2
-
3
- Aave account-level summary from getUserAccountData().
4
-
5
- ## Example Usage
6
-
7
- ```typescript
8
- import { AccountSummary } from "@compass-labs/api-sdk/models/components";
9
-
10
- let value: AccountSummary = {
11
- healthFactor: "<value>",
12
- totalCollateralUsd: "<value>",
13
- totalDebtUsd: "<value>",
14
- availableBorrowsUsd: "<value>",
15
- ltv: "<value>",
16
- emodeCategoryId: 0,
17
- };
18
- ```
19
-
20
- ## Fields
21
-
22
- | Field | Type | Required | Description | Example |
23
- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
24
- | `healthFactor` | *string* | :heavy_check_mark: | Health factor. Above 1 is safe; below 1 risks liquidation. | |
25
- | `totalCollateralUsd` | *string* | :heavy_check_mark: | Total collateral value in USD. | |
26
- | `totalDebtUsd` | *string* | :heavy_check_mark: | Total debt value in USD. | |
27
- | `availableBorrowsUsd` | *string* | :heavy_check_mark: | Available borrow capacity in USD. | |
28
- | `ltv` | *string* | :heavy_check_mark: | Current loan-to-value ratio. | |
29
- | `emodeCategoryId` | *number* | :heavy_minus_sign: | E-Mode category ID. 0 = disabled. E-Mode gives higher LTV when collateral and debt are price-correlated (e.g. stablecoin-to-stablecoin or ETH-to-ETH-derivative). | 0 |
30
- | `emodeLabel` | *string* | :heavy_minus_sign: | Human-readable E-Mode category name (e.g. 'Stablecoins', 'ETH correlated'). Null when E-Mode is disabled (category 0). | |
@@ -1,19 +0,0 @@
1
- # BorrowAmount
2
-
3
- Amount to borrow (in token units, not wei).
4
-
5
-
6
- ## Supported Types
7
-
8
- ### `number`
9
-
10
- ```typescript
11
- const value: number = 0.01;
12
- ```
13
-
14
- ### `string`
15
-
16
- ```typescript
17
- const value: string = "<value>";
18
- ```
19
-
@@ -1,31 +0,0 @@
1
- # CollateralPosition
2
-
3
- A per-reserve collateral position.
4
-
5
- ## Example Usage
6
-
7
- ```typescript
8
- import { CollateralPosition } from "@compass-labs/api-sdk/models/components";
9
-
10
- let value: CollateralPosition = {
11
- token: "<value>",
12
- symbol: "<value>",
13
- amountSupplied: "<value>",
14
- events: [],
15
- };
16
- ```
17
-
18
- ## Fields
19
-
20
- | Field | Type | Required | Description | Example |
21
- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
22
- | `token` | *string* | :heavy_check_mark: | Address of the collateral token. | |
23
- | `symbol` | *string* | :heavy_check_mark: | Symbol of the collateral token (e.g. USDC). | |
24
- | `amountSupplied` | *string* | :heavy_check_mark: | Current on-chain aToken balance for the collateral. | |
25
- | `usdValue` | *string* | :heavy_minus_sign: | Collateral value in USD. | |
26
- | `supplyApy` | *string* | :heavy_minus_sign: | Current supply APY in percentage (e.g. 4.5 means 4.5%). | |
27
- | `totalDeposited` | *string* | :heavy_minus_sign: | Total collateral deposited over all time. | |
28
- | `totalWithdrawn` | *string* | :heavy_minus_sign: | Total collateral withdrawn over all time. | |
29
- | `interestEarned` | *string* | :heavy_minus_sign: | Interest earned on collateral: on_chain_balance + total_withdrawn - total_deposited. | |
30
- | `maxLtv` | *string* | :heavy_minus_sign: | Maximum loan-to-value ratio for this collateral in percentage (e.g. 80 means 80%). | |
31
- | `events` | [components.CreditEvent](../../models/components/creditevent.md)[] | :heavy_minus_sign: | All historical events for this collateral reserve. | [] |
@@ -1,24 +0,0 @@
1
- # CreateCreditAccountRequest
2
-
3
- Request to create a compass credit account.
4
-
5
- ## Example Usage
6
-
7
- ```typescript
8
- import { CreateCreditAccountRequest } from "@compass-labs/api-sdk/models/components";
9
-
10
- let value: CreateCreditAccountRequest = {
11
- chain: "base",
12
- sender: "0xc98949522db2eE403d6c75E91DDEe875a824bB10",
13
- owner: "0xc98949522db2eE403d6c75E91DDEe875a824bB10",
14
- };
15
- ```
16
-
17
- ## Fields
18
-
19
- | Field | Type | Required | Description | Example |
20
- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
21
- | `chain` | [components.CreateCreditAccountRequestChain](../../models/components/createcreditaccountrequestchain.md) | :heavy_check_mark: | N/A | base |
22
- | `sender` | *string* | :heavy_check_mark: | The address of the transaction sender. | 0xc98949522db2eE403d6c75E91DDEe875a824bB10 |
23
- | `estimateGas` | *boolean* | :heavy_minus_sign: | Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed. | true |
24
- | `owner` | *string* | :heavy_check_mark: | The address that will own and control the compass credit account | 0xc98949522db2eE403d6c75E91DDEe875a824bB10 |
@@ -1,15 +0,0 @@
1
- # CreateCreditAccountRequestChain
2
-
3
- ## Example Usage
4
-
5
- ```typescript
6
- import { CreateCreditAccountRequestChain } from "@compass-labs/api-sdk/models/components";
7
-
8
- let value: CreateCreditAccountRequestChain = "base";
9
- ```
10
-
11
- ## Values
12
-
13
- ```typescript
14
- "arbitrum" | "base" | "ethereum"
15
- ```
@@ -1,31 +0,0 @@
1
- # CreateCreditAccountResponse
2
-
3
- Response containing unsigned transaction to create compass Credit account.
4
-
5
- ## Example Usage
6
-
7
- ```typescript
8
- import { CreateCreditAccountResponse } from "@compass-labs/api-sdk/models/components";
9
-
10
- let value: CreateCreditAccountResponse = {
11
- transaction: {
12
- chainId: "<id>",
13
- data: "<value>",
14
- from: "<value>",
15
- gas: "<value>",
16
- to: "<value>",
17
- value: "<value>",
18
- nonce: "<value>",
19
- maxFeePerGas: "<value>",
20
- maxPriorityFeePerGas: "<value>",
21
- },
22
- creditAccountAddress: "<value>",
23
- };
24
- ```
25
-
26
- ## Fields
27
-
28
- | Field | Type | Required | Description |
29
- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
30
- | `transaction` | [components.UnsignedTransaction](../../models/components/unsignedtransaction.md) | :heavy_check_mark: | Transaction to create compass credit account |
31
- | `creditAccountAddress` | *string* | :heavy_check_mark: | Predicted address of the compass credit account that will be deployed |
@@ -1,24 +0,0 @@
1
- # CreditBorrowParams
2
-
3
- Borrow from Aave via Credit Account.
4
-
5
- ## Example Usage
6
-
7
- ```typescript
8
- import { CreditBorrowParams } from "@compass-labs/api-sdk/models/components";
9
-
10
- let value: CreditBorrowParams = {
11
- actionType: "CREDIT_BORROW",
12
- token: "<value>",
13
- amount: "528.33",
14
- };
15
- ```
16
-
17
- ## Fields
18
-
19
- | Field | Type | Required | Description | Example |
20
- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
21
- | `actionType` | *"CREDIT_BORROW"* | :heavy_check_mark: | N/A | CREDIT_BORROW |
22
- | `token` | *string* | :heavy_check_mark: | Token to borrow from Aave. | |
23
- | `amount` | *components.CreditBorrowParamsAmount* | :heavy_check_mark: | Amount in token units to borrow. | |
24
- | `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. | |
@@ -1,19 +0,0 @@
1
- # CreditBorrowParamsAmount
2
-
3
- Amount in token units to borrow.
4
-
5
-
6
- ## Supported Types
7
-
8
- ### `number`
9
-
10
- ```typescript
11
- const value: number = 1284.03;
12
- ```
13
-
14
- ### `string`
15
-
16
- ```typescript
17
- const value: string = "<value>";
18
- ```
19
-
@@ -1,38 +0,0 @@
1
- # CreditBorrowRequest
2
-
3
- ## Example Usage
4
-
5
- ```typescript
6
- import { CreditBorrowRequest } from "@compass-labs/api-sdk/models/components";
7
-
8
- let value: CreditBorrowRequest = {
9
- owner: "0xfeEb60eBf707DAA8248277058eb8D28EaeCF5425",
10
- chain: "base",
11
- tokenIn: "USDC",
12
- amountIn: 100,
13
- collateralToken: "USDC",
14
- borrowToken: "WETH",
15
- borrowAmount: 0.01,
16
- interestRateMode: "variable",
17
- slippage: 0.5,
18
- gasSponsorship: false,
19
- };
20
- ```
21
-
22
- ## Fields
23
-
24
- | Field | Type | Required | Description | Example |
25
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
26
- | `owner` | *string* | :heavy_check_mark: | The address that owns the Credit Account. | 0xfeEb60eBf707DAA8248277058eb8D28EaeCF5425 |
27
- | `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
28
- | `tokenIn` | *string* | :heavy_check_mark: | Token currently held in the Credit Account to use as input. If the same as collateral_token, no swap is performed. | USDC |
29
- | `amountIn` | *components.CreditBorrowRequestAmountIn* | :heavy_check_mark: | Amount of token_in to use (in token units, not wei). | 100 |
30
- | `collateralToken` | *string* | :heavy_check_mark: | Aave reserve token to supply as collateral. | USDC |
31
- | `borrowToken` | *string* | :heavy_check_mark: | Asset to borrow from Aave. | WETH |
32
- | `borrowAmount` | *components.BorrowAmount* | :heavy_check_mark: | Amount to borrow (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
- | `slippage` | *components.CreditBorrowRequestSlippage* | :heavy_minus_sign: | Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%). Only used when a swap is needed. | 0.5 |
35
- | `gasSponsorship` | *boolean* | :heavy_minus_sign: | If true, returns EIP-712 signature data instead of an unsigned transaction. | false |
36
- | `permit2Signature` | *string* | :heavy_minus_sign: | The EOA owner's signature of the Permit2 PermitTransferFrom typed data. When provided, the borrow bundle will first pull token_in from the owner's EOA into the Credit Account via Permit2. Obtain by calling /v2/credit/transfer and signing the returned EIP-712 data. | |
37
- | `permit2Nonce` | *number* | :heavy_minus_sign: | The nonce used in the Permit2 signature (from the signed typed data). | |
38
- | `permit2Deadline` | *number* | :heavy_minus_sign: | The deadline timestamp used in the Permit2 signature (from the signed typed data). | |
@@ -1,19 +0,0 @@
1
- # CreditBorrowRequestAmountIn
2
-
3
- Amount of token_in to use (in token units, not wei).
4
-
5
-
6
- ## Supported Types
7
-
8
- ### `number`
9
-
10
- ```typescript
11
- const value: number = 100;
12
- ```
13
-
14
- ### `string`
15
-
16
- ```typescript
17
- const value: string = "<value>";
18
- ```
19
-
@@ -1,19 +0,0 @@
1
- # CreditBorrowRequestSlippage
2
-
3
- Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%). Only used when a swap is needed.
4
-
5
-
6
- ## Supported Types
7
-
8
- ### `number`
9
-
10
- ```typescript
11
- const value: number = 1284.03;
12
- ```
13
-
14
- ### `string`
15
-
16
- ```typescript
17
- const value: string = "0.5";
18
- ```
19
-
@@ -1,17 +0,0 @@
1
- # CreditBorrowResponse
2
-
3
- ## Example Usage
4
-
5
- ```typescript
6
- import { CreditBorrowResponse } from "@compass-labs/api-sdk/models/components";
7
-
8
- let value: CreditBorrowResponse = {};
9
- ```
10
-
11
- ## Fields
12
-
13
- | Field | Type | Required | Description |
14
- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
15
- | `transaction` | [components.UnsignedTransaction](../../models/components/unsignedtransaction.md) | :heavy_minus_sign: | Unsigned transaction to execute the borrow bundle. Present when gas_sponsorship is false. |
16
- | `eip712` | [components.BatchedSafeOperationsResponseOutput](../../models/components/batchedsafeoperationsresponseoutput.md) | :heavy_minus_sign: | EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship is true. |
17
- | `estimatedCollateralAmount` | *string* | :heavy_minus_sign: | Estimated amount of collateral token received from swap. Only present when token_in differs from collateral_token. |
@@ -1,25 +0,0 @@
1
- # CreditBundleRequest
2
-
3
- Request to execute multiple credit actions in a single atomic transaction.
4
-
5
- ## Example Usage
6
-
7
- ```typescript
8
- import { CreditBundleRequest } from "@compass-labs/api-sdk/models/components";
9
-
10
- let value: CreditBundleRequest = {
11
- owner: "<value>",
12
- chain: "base",
13
- actions: [],
14
- gasSponsorship: false,
15
- };
16
- ```
17
-
18
- ## Fields
19
-
20
- | Field | Type | Required | Description | Example |
21
- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
22
- | `owner` | *string* | :heavy_check_mark: | The owner's wallet address that controls the Credit Account. | |
23
- | `chain` | [components.Chain](../../models/components/chain.md) | :heavy_check_mark: | The chain to use. | |
24
- | `actions` | [components.CreditUserOperation](../../models/components/credituseroperation.md)[] | :heavy_check_mark: | List of actions to bundle. Actions are executed in order. | |
25
- | `gasSponsorship` | *boolean* | :heavy_minus_sign: | If true, returns EIP-712 typed data for gas-sponsored execution. | false |
@@ -1,19 +0,0 @@
1
- # CreditBundleResponse
2
-
3
- ## Example Usage
4
-
5
- ```typescript
6
- import { CreditBundleResponse } from "@compass-labs/api-sdk/models/components";
7
-
8
- let value: CreditBundleResponse = {
9
- actionsCount: 957599,
10
- };
11
- ```
12
-
13
- ## Fields
14
-
15
- | Field | Type | Required | Description |
16
- | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ |
17
- | `transaction` | [components.UnsignedTransaction](../../models/components/unsignedtransaction.md) | :heavy_minus_sign: | Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false. |
18
- | `eip712` | [components.BatchedSafeOperationsResponseOutput](../../models/components/batchedsafeoperationsresponseoutput.md) | :heavy_minus_sign: | EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship=true. Owner must sign and submit to /gas_sponsorship/prepare. |
19
- | `actionsCount` | *number* | :heavy_check_mark: | Number of individual transactions bundled in this execution. |