@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,55 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- import { Chain$outboundSchema } from "./chain.js";
7
- import { InterestRateMode$outboundSchema, } from "./interestratemode.js";
8
- /** @internal */
9
- export const CreditBorrowRequestAmountIn$outboundSchema = z.union([z.number(), z.string()]);
10
- export function creditBorrowRequestAmountInToJSON(creditBorrowRequestAmountIn) {
11
- return JSON.stringify(CreditBorrowRequestAmountIn$outboundSchema.parse(creditBorrowRequestAmountIn));
12
- }
13
- /** @internal */
14
- export const BorrowAmount$outboundSchema = z.union([z.number(), z.string()]);
15
- export function borrowAmountToJSON(borrowAmount) {
16
- return JSON.stringify(BorrowAmount$outboundSchema.parse(borrowAmount));
17
- }
18
- /** @internal */
19
- export const CreditBorrowRequestSlippage$outboundSchema = z.union([z.number(), z.string()]);
20
- export function creditBorrowRequestSlippageToJSON(creditBorrowRequestSlippage) {
21
- return JSON.stringify(CreditBorrowRequestSlippage$outboundSchema.parse(creditBorrowRequestSlippage));
22
- }
23
- /** @internal */
24
- export const CreditBorrowRequest$outboundSchema = z.object({
25
- owner: z.string(),
26
- chain: Chain$outboundSchema,
27
- tokenIn: z.string(),
28
- amountIn: z.union([z.number(), z.string()]),
29
- collateralToken: z.string(),
30
- borrowToken: z.string(),
31
- borrowAmount: z.union([z.number(), z.string()]),
32
- interestRateMode: InterestRateMode$outboundSchema.optional(),
33
- slippage: z.union([z.number(), z.string()]).optional(),
34
- gasSponsorship: z.boolean().optional(),
35
- permit2Signature: z.nullable(z.string()).optional(),
36
- permit2Nonce: z.nullable(z.number().int()).optional(),
37
- permit2Deadline: z.nullable(z.number().int()).optional(),
38
- }).transform((v) => {
39
- return remap$(v, {
40
- tokenIn: "token_in",
41
- amountIn: "amount_in",
42
- collateralToken: "collateral_token",
43
- borrowToken: "borrow_token",
44
- borrowAmount: "borrow_amount",
45
- interestRateMode: "interest_rate_mode",
46
- gasSponsorship: "gas_sponsorship",
47
- permit2Signature: "permit2_signature",
48
- permit2Nonce: "permit2_nonce",
49
- permit2Deadline: "permit2_deadline",
50
- });
51
- });
52
- export function creditBorrowRequestToJSON(creditBorrowRequest) {
53
- return JSON.stringify(CreditBorrowRequest$outboundSchema.parse(creditBorrowRequest));
54
- }
55
- //# sourceMappingURL=creditborrowrequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creditborrowrequest.js","sourceRoot":"","sources":["../../../../src/models/components/creditborrowrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAS,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAEL,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AA+E/B,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AAKD,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GAIpC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC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AAE,CAAC,QAAQ,EAAE;IACtC,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrD,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,OAAO,EAAE,UAAU;QACnB,QAAQ,EAAE,WAAW;QACrB,eAAe,EAAE,kBAAkB;QACnC,WAAW,EAAE,cAAc;QAC3B,YAAY,EAAE,eAAe;QAC7B,gBAAgB,EAAE,oBAAoB;QACtC,cAAc,EAAE,iBAAiB;QACjC,gBAAgB,EAAE,mBAAmB;QACrC,YAAY,EAAE,eAAe;QAC7B,eAAe,EAAE,kBAAkB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,kCAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
@@ -1,23 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { BatchedSafeOperationsResponseOutput } from "./batchedsafeoperationsresponseoutput.js";
5
- import { UnsignedTransaction } from "./unsignedtransaction.js";
6
- export type CreditBorrowResponse = {
7
- /**
8
- * Unsigned transaction to execute the borrow bundle. Present when gas_sponsorship is false.
9
- */
10
- transaction?: UnsignedTransaction | null | undefined;
11
- /**
12
- * EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship is true.
13
- */
14
- eip712?: BatchedSafeOperationsResponseOutput | null | undefined;
15
- /**
16
- * Estimated amount of collateral token received from swap. Only present when token_in differs from collateral_token.
17
- */
18
- estimatedCollateralAmount?: string | null | undefined;
19
- };
20
- /** @internal */
21
- export declare const CreditBorrowResponse$inboundSchema: z.ZodType<CreditBorrowResponse, z.ZodTypeDef, unknown>;
22
- export declare function creditBorrowResponseFromJSON(jsonString: string): SafeParseResult<CreditBorrowResponse, SDKValidationError>;
23
- //# sourceMappingURL=creditborrowresponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creditborrowresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditborrowresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,MAAM,CAAC,EAAE,mCAAmC,GAAG,IAAI,GAAG,SAAS,CAAC;IAChE;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
@@ -1,24 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { BatchedSafeOperationsResponseOutput$inboundSchema, } from "./batchedsafeoperationsresponseoutput.js";
8
- import { UnsignedTransaction$inboundSchema, } from "./unsignedtransaction.js";
9
- /** @internal */
10
- export const CreditBorrowResponse$inboundSchema = z.object({
11
- transaction: z.nullable(UnsignedTransaction$inboundSchema).optional(),
12
- eip_712: z.nullable(BatchedSafeOperationsResponseOutput$inboundSchema)
13
- .optional(),
14
- estimated_collateral_amount: z.nullable(z.string()).optional(),
15
- }).transform((v) => {
16
- return remap$(v, {
17
- "eip_712": "eip712",
18
- "estimated_collateral_amount": "estimatedCollateralAmount",
19
- });
20
- });
21
- export function creditBorrowResponseFromJSON(jsonString) {
22
- return safeParse(jsonString, (x) => CreditBorrowResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreditBorrowResponse' from JSON`);
23
- }
24
- //# sourceMappingURL=creditborrowresponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creditborrowresponse.js","sourceRoot":"","sources":["../../../../src/models/components/creditborrowresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,iDAAiD,GAClD,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAEL,iCAAiC,GAClC,MAAM,0BAA0B,CAAC;AAiBlC,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAAC,QAAQ,EAAE;IACrE,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,iDAAiD,CAAC;SACnE,QAAQ,EAAE;IACb,2BAA2B,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,SAAS,EAAE,QAAQ;QACnB,6BAA6B,EAAE,2BAA2B;KAC3D,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
@@ -1,35 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Chain } from "./chain.js";
3
- import { CreditUserOperation, CreditUserOperation$Outbound } from "./credituseroperation.js";
4
- /**
5
- * Request to execute multiple credit actions in a single atomic transaction.
6
- */
7
- export type CreditBundleRequest = {
8
- /**
9
- * The owner's wallet address that controls the Credit Account.
10
- */
11
- owner: string;
12
- /**
13
- * The chain to use.
14
- */
15
- chain: Chain;
16
- /**
17
- * List of actions to bundle. Actions are executed in order.
18
- */
19
- actions: Array<CreditUserOperation>;
20
- /**
21
- * If true, returns EIP-712 typed data for gas-sponsored execution.
22
- */
23
- gasSponsorship?: boolean | undefined;
24
- };
25
- /** @internal */
26
- export type CreditBundleRequest$Outbound = {
27
- owner: string;
28
- chain: string;
29
- actions: Array<CreditUserOperation$Outbound>;
30
- gas_sponsorship?: boolean | undefined;
31
- };
32
- /** @internal */
33
- export declare const CreditBundleRequest$outboundSchema: z.ZodType<CreditBundleRequest$Outbound, z.ZodTypeDef, CreditBundleRequest>;
34
- export declare function creditBundleRequestToJSON(creditBundleRequest: CreditBundleRequest): string;
35
- //# sourceMappingURL=creditbundlerequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creditbundlerequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditbundlerequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,KAAK,EAAwB,MAAM,YAAY,CAAC;AACzD,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACpC;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAC7C,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAUnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR"}
@@ -1,22 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- import { Chain$outboundSchema } from "./chain.js";
7
- import { CreditUserOperation$outboundSchema, } from "./credituseroperation.js";
8
- /** @internal */
9
- export const CreditBundleRequest$outboundSchema = z.object({
10
- owner: z.string(),
11
- chain: Chain$outboundSchema,
12
- actions: z.array(CreditUserOperation$outboundSchema),
13
- gasSponsorship: z.boolean().optional(),
14
- }).transform((v) => {
15
- return remap$(v, {
16
- gasSponsorship: "gas_sponsorship",
17
- });
18
- });
19
- export function creditBundleRequestToJSON(creditBundleRequest) {
20
- return JSON.stringify(CreditBundleRequest$outboundSchema.parse(creditBundleRequest));
21
- }
22
- //# sourceMappingURL=creditbundlerequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creditbundlerequest.js","sourceRoot":"","sources":["../../../../src/models/components/creditbundlerequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAS,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAGL,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAgClC,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,oBAAoB;IAC3B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,kCAAkC,CAAC;IACpD,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,kCAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
@@ -1,23 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { BatchedSafeOperationsResponseOutput } from "./batchedsafeoperationsresponseoutput.js";
5
- import { UnsignedTransaction } from "./unsignedtransaction.js";
6
- export type CreditBundleResponse = {
7
- /**
8
- * Unsigned transaction for direct execution by the owner. Present when gas_sponsorship=false.
9
- */
10
- transaction?: UnsignedTransaction | null | undefined;
11
- /**
12
- * EIP-712 typed data for gas-sponsored execution. Present when gas_sponsorship=true. Owner must sign and submit to /gas_sponsorship/prepare.
13
- */
14
- eip712?: BatchedSafeOperationsResponseOutput | null | undefined;
15
- /**
16
- * Number of individual transactions bundled in this execution.
17
- */
18
- actionsCount: number;
19
- };
20
- /** @internal */
21
- export declare const CreditBundleResponse$inboundSchema: z.ZodType<CreditBundleResponse, z.ZodTypeDef, unknown>;
22
- export declare function creditBundleResponseFromJSON(jsonString: string): SafeParseResult<CreditBundleResponse, SDKValidationError>;
23
- //# sourceMappingURL=creditbundleresponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creditbundleresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditbundleresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,MAAM,CAAC,EAAE,mCAAmC,GAAG,IAAI,GAAG,SAAS,CAAC;IAChE;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
@@ -1,24 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { BatchedSafeOperationsResponseOutput$inboundSchema, } from "./batchedsafeoperationsresponseoutput.js";
8
- import { UnsignedTransaction$inboundSchema, } from "./unsignedtransaction.js";
9
- /** @internal */
10
- export const CreditBundleResponse$inboundSchema = z.object({
11
- transaction: z.nullable(UnsignedTransaction$inboundSchema).optional(),
12
- eip_712: z.nullable(BatchedSafeOperationsResponseOutput$inboundSchema)
13
- .optional(),
14
- actions_count: z.number().int(),
15
- }).transform((v) => {
16
- return remap$(v, {
17
- "eip_712": "eip712",
18
- "actions_count": "actionsCount",
19
- });
20
- });
21
- export function creditBundleResponseFromJSON(jsonString) {
22
- return safeParse(jsonString, (x) => CreditBundleResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreditBundleResponse' from JSON`);
23
- }
24
- //# sourceMappingURL=creditbundleresponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creditbundleresponse.js","sourceRoot":"","sources":["../../../../src/models/components/creditbundleresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,iDAAiD,GAClD,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAEL,iCAAiC,GAClC,MAAM,0BAA0B,CAAC;AAiBlC,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAAC,QAAQ,EAAE;IACrE,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,iDAAiD,CAAC;SACnE,QAAQ,EAAE;IACb,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAChC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,SAAS,EAAE,QAAQ;QACnB,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
@@ -1,53 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- import { Result as SafeParseResult } from "../../types/fp.js";
4
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- /**
6
- * Type of credit event.
7
- */
8
- export declare const EventType: {
9
- readonly Supply: "supply";
10
- readonly Withdraw: "withdraw";
11
- readonly Borrow: "borrow";
12
- readonly Repay: "repay";
13
- readonly Liquidation: "liquidation";
14
- };
15
- /**
16
- * Type of credit event.
17
- */
18
- export type EventType = ClosedEnum<typeof EventType>;
19
- /**
20
- * A single historical event in a credit position.
21
- */
22
- export type CreditEvent = {
23
- /**
24
- * Type of credit event.
25
- */
26
- eventType: EventType;
27
- /**
28
- * Block number when the event occurred
29
- */
30
- blockNumber: number;
31
- /**
32
- * Timestamp when the event occurred
33
- */
34
- blockTimestamp: Date;
35
- /**
36
- * Transaction hash of the event
37
- */
38
- transactionHash: string;
39
- /**
40
- * Amount involved in the event
41
- */
42
- amount: string;
43
- /**
44
- * Symbol of the token
45
- */
46
- symbol: string;
47
- };
48
- /** @internal */
49
- export declare const EventType$inboundSchema: z.ZodNativeEnum<typeof EventType>;
50
- /** @internal */
51
- export declare const CreditEvent$inboundSchema: z.ZodType<CreditEvent, z.ZodTypeDef, unknown>;
52
- export declare function creditEventFromJSON(jsonString: string): SafeParseResult<CreditEvent, SDKValidationError>;
53
- //# sourceMappingURL=creditevent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creditevent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;CAMZ,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,EAAE,IAAI,CAAC;IACrB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,SAAS,CAC9C,CAAC;AAEzB,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CAiBP,CAAC;AAEH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
@@ -1,39 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- import { safeParse } from "../../lib/schemas.js";
7
- /**
8
- * Type of credit event.
9
- */
10
- export const EventType = {
11
- Supply: "supply",
12
- Withdraw: "withdraw",
13
- Borrow: "borrow",
14
- Repay: "repay",
15
- Liquidation: "liquidation",
16
- };
17
- /** @internal */
18
- export const EventType$inboundSchema = z
19
- .nativeEnum(EventType);
20
- /** @internal */
21
- export const CreditEvent$inboundSchema = z.object({
22
- event_type: EventType$inboundSchema,
23
- block_number: z.number().int(),
24
- block_timestamp: z.string().datetime({ offset: true }).transform(v => new Date(v)),
25
- transaction_hash: z.string(),
26
- amount: z.string(),
27
- symbol: z.string(),
28
- }).transform((v) => {
29
- return remap$(v, {
30
- "event_type": "eventType",
31
- "block_number": "blockNumber",
32
- "block_timestamp": "blockTimestamp",
33
- "transaction_hash": "transactionHash",
34
- });
35
- });
36
- export function creditEventFromJSON(jsonString) {
37
- return safeParse(jsonString, (x) => CreditEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreditEvent' from JSON`);
38
- }
39
- //# sourceMappingURL=creditevent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creditevent.js","sourceRoot":"","sources":["../../../../src/models/components/creditevent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,I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CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
@@ -1,31 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { AccountSummary } from "./accountsummary.js";
5
- import { CollateralPosition } from "./collateralposition.js";
6
- import { DebtPosition } from "./debtposition.js";
7
- /**
8
- * Credit account positions response with per-reserve positions and account summary.
9
- */
10
- export type CreditPositionsResponse = {
11
- /**
12
- * All collateral positions, one per reserve.
13
- */
14
- collateralPositions?: Array<CollateralPosition> | undefined;
15
- /**
16
- * All debt positions, one per reserve.
17
- */
18
- debtPositions?: Array<DebtPosition> | undefined;
19
- /**
20
- * Aave account-level summary from getUserAccountData().
21
- */
22
- accountSummary: AccountSummary;
23
- /**
24
- * Net position value in USD (total collateral - total debt). Null if prices unavailable.
25
- */
26
- totalUsdValue?: string | null | undefined;
27
- };
28
- /** @internal */
29
- export declare const CreditPositionsResponse$inboundSchema: z.ZodType<CreditPositionsResponse, z.ZodTypeDef, unknown>;
30
- export declare function creditPositionsResponseFromJSON(jsonString: string): SafeParseResult<CreditPositionsResponse, SDKValidationError>;
31
- //# sourceMappingURL=creditpositionsresponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creditpositionsresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditpositionsresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;IAC5D;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
@@ -1,27 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { AccountSummary$inboundSchema, } from "./accountsummary.js";
8
- import { CollateralPosition$inboundSchema, } from "./collateralposition.js";
9
- import { DebtPosition$inboundSchema } from "./debtposition.js";
10
- /** @internal */
11
- export const CreditPositionsResponse$inboundSchema = z.object({
12
- collateral_positions: z.array(CollateralPosition$inboundSchema).optional(),
13
- debt_positions: z.array(DebtPosition$inboundSchema).optional(),
14
- account_summary: AccountSummary$inboundSchema,
15
- total_usd_value: z.nullable(z.string()).optional(),
16
- }).transform((v) => {
17
- return remap$(v, {
18
- "collateral_positions": "collateralPositions",
19
- "debt_positions": "debtPositions",
20
- "account_summary": "accountSummary",
21
- "total_usd_value": "totalUsdValue",
22
- });
23
- });
24
- export function creditPositionsResponseFromJSON(jsonString) {
25
- return safeParse(jsonString, (x) => CreditPositionsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreditPositionsResponse' from JSON`);
26
- }
27
- //# sourceMappingURL=creditpositionsresponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creditpositionsresponse.js","sourceRoot":"","sources":["../../../../src/models/components/creditpositionsresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,gCAAgC,GACjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAgB,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAwB7E,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,oBAAoB,EAAE,CAAC,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC,QAAQ,EAAE;IAC1E,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,QAAQ,EAAE;IAC9D,eAAe,EAAE,4BAA4B;IAC7C,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,sBAAsB,EAAE,qBAAqB;QAC7C,gBAAgB,EAAE,eAAe;QACjC,iBAAiB,EAAE,gBAAgB;QACnC,iBAAiB,EAAE,eAAe;KACnC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
@@ -1,44 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { InterestRateMode } from "./interestratemode.js";
3
- /**
4
- * Amount in token units to repay.
5
- */
6
- export type CreditRepayParamsAmount = number | string;
7
- /**
8
- * Repay debt to Aave via Credit Account.
9
- */
10
- export type CreditRepayParams = {
11
- actionType: "CREDIT_REPAY";
12
- /**
13
- * Token to repay to Aave.
14
- */
15
- token: string;
16
- /**
17
- * Amount in token units to repay.
18
- */
19
- amount: number | string;
20
- /**
21
- * On AAVE there are 2 different interest modes.
22
- *
23
- * @remarks
24
- *
25
- * A stable (but typically higher rate), or a variable rate.
26
- */
27
- interestRateMode?: InterestRateMode | undefined;
28
- };
29
- /** @internal */
30
- export type CreditRepayParamsAmount$Outbound = number | string;
31
- /** @internal */
32
- export declare const CreditRepayParamsAmount$outboundSchema: z.ZodType<CreditRepayParamsAmount$Outbound, z.ZodTypeDef, CreditRepayParamsAmount>;
33
- export declare function creditRepayParamsAmountToJSON(creditRepayParamsAmount: CreditRepayParamsAmount): string;
34
- /** @internal */
35
- export type CreditRepayParams$Outbound = {
36
- action_type: "CREDIT_REPAY";
37
- token: string;
38
- amount: number | string;
39
- interest_rate_mode?: string | undefined;
40
- };
41
- /** @internal */
42
- export declare const CreditRepayParams$outboundSchema: z.ZodType<CreditRepayParams$Outbound, z.ZodTypeDef, CreditRepayParams>;
43
- export declare function creditRepayParamsToJSON(creditRepayParams: CreditRepayParams): string;
44
- //# sourceMappingURL=creditrepayparams.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creditrepayparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditrepayparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,cAAc,CAAC;IAC3B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACjD,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GAAG,MAAM,GAAG,MAAM,CAAC;AAE/D,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CACY,CAAC;AAEtC,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,WAAW,EAAE,cAAc,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAWjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
@@ -1,27 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- import { InterestRateMode$outboundSchema, } from "./interestratemode.js";
7
- /** @internal */
8
- export const CreditRepayParamsAmount$outboundSchema = z.union([z.number(), z.string()]);
9
- export function creditRepayParamsAmountToJSON(creditRepayParamsAmount) {
10
- return JSON.stringify(CreditRepayParamsAmount$outboundSchema.parse(creditRepayParamsAmount));
11
- }
12
- /** @internal */
13
- export const CreditRepayParams$outboundSchema = z.object({
14
- actionType: z.literal("CREDIT_REPAY"),
15
- token: z.string(),
16
- amount: z.union([z.number(), z.string()]),
17
- interestRateMode: InterestRateMode$outboundSchema.optional(),
18
- }).transform((v) => {
19
- return remap$(v, {
20
- actionType: "action_type",
21
- interestRateMode: "interest_rate_mode",
22
- });
23
- });
24
- export function creditRepayParamsToJSON(creditRepayParams) {
25
- return JSON.stringify(CreditRepayParams$outboundSchema.parse(creditRepayParams));
26
- }
27
- //# sourceMappingURL=creditrepayparams.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creditrepayparams.js","sourceRoot":"","sources":["../../../../src/models/components/creditrepayparams.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAEL,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAiC/B,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtC,MAAM,UAAU,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,sCAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAUD,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IACrC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,gBAAgB,EAAE,+BAA+B,CAAC,QAAQ,EAAE;CAC7D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,gBAAgB,EAAE,oBAAoB;KACvC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,gCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC"}
@@ -1,108 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Chain } from "./chain.js";
3
- import { InterestRateMode } from "./interestratemode.js";
4
- /**
5
- * Amount of repay_token to repay (in token units, not wei).
6
- */
7
- export type RepayAmount = number | string;
8
- /**
9
- * Amount of collateral to withdraw (in token units, not wei).
10
- */
11
- export type WithdrawAmount = number | string;
12
- /**
13
- * Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%). Only used when a swap is needed.
14
- */
15
- export type CreditRepayRequestSlippage = number | string;
16
- export type CreditRepayRequest = {
17
- /**
18
- * The address that owns the Credit Account.
19
- */
20
- owner: string;
21
- /**
22
- * The chain to use.
23
- */
24
- chain: Chain;
25
- /**
26
- * The borrowed asset to repay (e.g. WETH). Must match the debt position's token.
27
- */
28
- repayToken: string;
29
- /**
30
- * Amount of repay_token to repay (in token units, not wei).
31
- */
32
- repayAmount: number | string;
33
- /**
34
- * On AAVE there are 2 different interest modes.
35
- *
36
- * @remarks
37
- *
38
- * A stable (but typically higher rate), or a variable rate.
39
- */
40
- interestRateMode?: InterestRateMode | undefined;
41
- /**
42
- * Collateral token to withdraw from Aave after repaying debt.
43
- */
44
- withdrawToken: string;
45
- /**
46
- * Amount of collateral to withdraw (in token units, not wei).
47
- */
48
- withdrawAmount: number | string;
49
- /**
50
- * Desired output token. If different from withdraw_token, a swap is performed after withdrawal. If None, the withdrawn collateral is kept as-is.
51
- */
52
- tokenOut?: string | null | undefined;
53
- /**
54
- * Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%). Only used when a swap is needed.
55
- */
56
- slippage?: number | string | undefined;
57
- /**
58
- * If true, returns EIP-712 signature data instead of an unsigned transaction.
59
- */
60
- gasSponsorship?: boolean | undefined;
61
- /**
62
- * 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.
63
- */
64
- permit2Signature?: string | null | undefined;
65
- /**
66
- * The nonce used in the Permit2 signature (from the signed typed data).
67
- */
68
- permit2Nonce?: number | null | undefined;
69
- /**
70
- * The deadline timestamp used in the Permit2 signature (from the signed typed data).
71
- */
72
- permit2Deadline?: number | null | undefined;
73
- };
74
- /** @internal */
75
- export type RepayAmount$Outbound = number | string;
76
- /** @internal */
77
- export declare const RepayAmount$outboundSchema: z.ZodType<RepayAmount$Outbound, z.ZodTypeDef, RepayAmount>;
78
- export declare function repayAmountToJSON(repayAmount: RepayAmount): string;
79
- /** @internal */
80
- export type WithdrawAmount$Outbound = number | string;
81
- /** @internal */
82
- export declare const WithdrawAmount$outboundSchema: z.ZodType<WithdrawAmount$Outbound, z.ZodTypeDef, WithdrawAmount>;
83
- export declare function withdrawAmountToJSON(withdrawAmount: WithdrawAmount): string;
84
- /** @internal */
85
- export type CreditRepayRequestSlippage$Outbound = number | string;
86
- /** @internal */
87
- export declare const CreditRepayRequestSlippage$outboundSchema: z.ZodType<CreditRepayRequestSlippage$Outbound, z.ZodTypeDef, CreditRepayRequestSlippage>;
88
- export declare function creditRepayRequestSlippageToJSON(creditRepayRequestSlippage: CreditRepayRequestSlippage): string;
89
- /** @internal */
90
- export type CreditRepayRequest$Outbound = {
91
- owner: string;
92
- chain: string;
93
- repay_token: string;
94
- repay_amount: number | string;
95
- interest_rate_mode?: string | undefined;
96
- withdraw_token: string;
97
- withdraw_amount: number | string;
98
- token_out?: string | null | undefined;
99
- slippage?: number | string | undefined;
100
- gas_sponsorship?: boolean | undefined;
101
- permit2_signature?: string | null | undefined;
102
- permit2_nonce?: number | null | undefined;
103
- permit2_deadline?: number | null | undefined;
104
- };
105
- /** @internal */
106
- export declare const CreditRepayRequest$outboundSchema: z.ZodType<CreditRepayRequest$Outbound, z.ZodTypeDef, CreditRepayRequest>;
107
- export declare function creditRepayRequestToJSON(creditRepayRequest: CreditRepayRequest): string;
108
- //# sourceMappingURL=creditrepayrequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"creditrepayrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/creditrepayrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,KAAK,EAAwB,MAAM,YAAY,CAAC;AACzD,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzD,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,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