@compass-labs/api-sdk 2.2.103 → 2.2.105-rc.0

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 (350) hide show
  1. package/README.md +3 -13
  2. package/codeSamples_typescript.yaml +0 -18
  3. package/dist/commonjs/lib/config.d.ts +2 -2
  4. package/dist/commonjs/lib/config.js +2 -2
  5. package/dist/commonjs/lib/encodings.d.ts +10 -9
  6. package/dist/commonjs/lib/encodings.d.ts.map +1 -1
  7. package/dist/commonjs/lib/encodings.js +29 -13
  8. package/dist/commonjs/lib/encodings.js.map +1 -1
  9. package/dist/commonjs/models/components/accountsummary.d.ts +3 -7
  10. package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
  11. package/dist/commonjs/models/components/accountsummary.js.map +1 -1
  12. package/dist/commonjs/models/components/builder.d.ts +1 -1
  13. package/dist/commonjs/models/components/collateralposition.d.ts +3 -7
  14. package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
  15. package/dist/commonjs/models/components/collateralposition.js.map +1 -1
  16. package/dist/commonjs/models/components/creditborrowparams.d.ts +3 -7
  17. package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
  18. package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
  19. package/dist/commonjs/models/components/creditborrowrequest.d.ts +3 -7
  20. package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
  22. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +3 -7
  23. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
  24. package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
  25. package/dist/commonjs/models/components/creditloopedpositionsresponse.d.ts +3 -3
  26. package/dist/commonjs/models/components/creditlooprequest.d.ts +3 -7
  27. package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/creditlooprequest.js.map +1 -1
  29. package/dist/commonjs/models/components/creditprotocol.d.ts +6 -14
  30. package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
  31. package/dist/commonjs/models/components/creditprotocol.js +3 -7
  32. package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
  33. package/dist/commonjs/models/components/creditrepayparams.d.ts +3 -7
  34. package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
  35. package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
  36. package/dist/commonjs/models/components/creditrepayrequest.d.ts +3 -7
  37. package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
  38. package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
  39. package/dist/commonjs/models/components/creditsupplyparams.d.ts +3 -7
  40. package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
  41. package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
  42. package/dist/commonjs/models/components/creditunlooprequest.d.ts +3 -7
  43. package/dist/commonjs/models/components/creditunlooprequest.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/creditunlooprequest.js.map +1 -1
  45. package/dist/commonjs/models/components/creditwithdrawparams.d.ts +3 -7
  46. package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
  47. package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
  48. package/dist/commonjs/models/components/debtposition.d.ts +3 -7
  49. package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
  50. package/dist/commonjs/models/components/debtposition.js.map +1 -1
  51. package/dist/commonjs/models/components/index.d.ts +0 -6
  52. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/index.js +0 -6
  54. package/dist/commonjs/models/components/index.js.map +1 -1
  55. package/dist/commonjs/models/components/loopedposition.d.ts +15 -7
  56. package/dist/commonjs/models/components/loopedposition.d.ts.map +1 -1
  57. package/dist/commonjs/models/components/loopedposition.js +6 -0
  58. package/dist/commonjs/models/components/loopedposition.js.map +1 -1
  59. package/dist/commonjs/models/components/loopedpositioncurrentstate.d.ts +3 -3
  60. package/dist/commonjs/models/components/loopedpositioncurrentstate.js +1 -1
  61. package/dist/commonjs/models/components/rebalancetarget.d.ts +3 -7
  62. package/dist/commonjs/models/components/rebalancetarget.d.ts.map +1 -1
  63. package/dist/commonjs/models/components/rebalancetarget.js.map +1 -1
  64. package/dist/commonjs/models/components/rebalancetargetpreview.d.ts +3 -7
  65. package/dist/commonjs/models/components/rebalancetargetpreview.d.ts.map +1 -1
  66. package/dist/commonjs/models/components/rebalancetargetpreview.js.map +1 -1
  67. package/dist/commonjs/models/errors/index.d.ts +0 -1
  68. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  69. package/dist/commonjs/models/errors/index.js +0 -1
  70. package/dist/commonjs/models/errors/index.js.map +1 -1
  71. package/dist/commonjs/models/operations/index.d.ts +0 -1
  72. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  73. package/dist/commonjs/models/operations/index.js +0 -1
  74. package/dist/commonjs/models/operations/index.js.map +1 -1
  75. package/dist/commonjs/sdk/sdk.d.ts +0 -3
  76. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  77. package/dist/commonjs/sdk/sdk.js +0 -4
  78. package/dist/commonjs/sdk/sdk.js.map +1 -1
  79. package/dist/esm/lib/config.d.ts +2 -2
  80. package/dist/esm/lib/config.js +2 -2
  81. package/dist/esm/lib/encodings.d.ts +10 -9
  82. package/dist/esm/lib/encodings.d.ts.map +1 -1
  83. package/dist/esm/lib/encodings.js +29 -13
  84. package/dist/esm/lib/encodings.js.map +1 -1
  85. package/dist/esm/models/components/accountsummary.d.ts +3 -7
  86. package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
  87. package/dist/esm/models/components/accountsummary.js.map +1 -1
  88. package/dist/esm/models/components/builder.d.ts +1 -1
  89. package/dist/esm/models/components/collateralposition.d.ts +3 -7
  90. package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
  91. package/dist/esm/models/components/collateralposition.js.map +1 -1
  92. package/dist/esm/models/components/creditborrowparams.d.ts +3 -7
  93. package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
  94. package/dist/esm/models/components/creditborrowparams.js.map +1 -1
  95. package/dist/esm/models/components/creditborrowrequest.d.ts +3 -7
  96. package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
  97. package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
  98. package/dist/esm/models/components/creditenablecollateralparams.d.ts +3 -7
  99. package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
  100. package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
  101. package/dist/esm/models/components/creditloopedpositionsresponse.d.ts +3 -3
  102. package/dist/esm/models/components/creditlooprequest.d.ts +3 -7
  103. package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -1
  104. package/dist/esm/models/components/creditlooprequest.js.map +1 -1
  105. package/dist/esm/models/components/creditprotocol.d.ts +6 -14
  106. package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
  107. package/dist/esm/models/components/creditprotocol.js +3 -7
  108. package/dist/esm/models/components/creditprotocol.js.map +1 -1
  109. package/dist/esm/models/components/creditrepayparams.d.ts +3 -7
  110. package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
  111. package/dist/esm/models/components/creditrepayparams.js.map +1 -1
  112. package/dist/esm/models/components/creditrepayrequest.d.ts +3 -7
  113. package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
  114. package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
  115. package/dist/esm/models/components/creditsupplyparams.d.ts +3 -7
  116. package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
  117. package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
  118. package/dist/esm/models/components/creditunlooprequest.d.ts +3 -7
  119. package/dist/esm/models/components/creditunlooprequest.d.ts.map +1 -1
  120. package/dist/esm/models/components/creditunlooprequest.js.map +1 -1
  121. package/dist/esm/models/components/creditwithdrawparams.d.ts +3 -7
  122. package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
  123. package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
  124. package/dist/esm/models/components/debtposition.d.ts +3 -7
  125. package/dist/esm/models/components/debtposition.d.ts.map +1 -1
  126. package/dist/esm/models/components/debtposition.js.map +1 -1
  127. package/dist/esm/models/components/index.d.ts +0 -6
  128. package/dist/esm/models/components/index.d.ts.map +1 -1
  129. package/dist/esm/models/components/index.js +0 -6
  130. package/dist/esm/models/components/index.js.map +1 -1
  131. package/dist/esm/models/components/loopedposition.d.ts +15 -7
  132. package/dist/esm/models/components/loopedposition.d.ts.map +1 -1
  133. package/dist/esm/models/components/loopedposition.js +6 -0
  134. package/dist/esm/models/components/loopedposition.js.map +1 -1
  135. package/dist/esm/models/components/loopedpositioncurrentstate.d.ts +3 -3
  136. package/dist/esm/models/components/loopedpositioncurrentstate.js +1 -1
  137. package/dist/esm/models/components/rebalancetarget.d.ts +3 -7
  138. package/dist/esm/models/components/rebalancetarget.d.ts.map +1 -1
  139. package/dist/esm/models/components/rebalancetarget.js.map +1 -1
  140. package/dist/esm/models/components/rebalancetargetpreview.d.ts +3 -7
  141. package/dist/esm/models/components/rebalancetargetpreview.d.ts.map +1 -1
  142. package/dist/esm/models/components/rebalancetargetpreview.js.map +1 -1
  143. package/dist/esm/models/errors/index.d.ts +0 -1
  144. package/dist/esm/models/errors/index.d.ts.map +1 -1
  145. package/dist/esm/models/errors/index.js +0 -1
  146. package/dist/esm/models/errors/index.js.map +1 -1
  147. package/dist/esm/models/operations/index.d.ts +0 -1
  148. package/dist/esm/models/operations/index.d.ts.map +1 -1
  149. package/dist/esm/models/operations/index.js +0 -1
  150. package/dist/esm/models/operations/index.js.map +1 -1
  151. package/dist/esm/sdk/sdk.d.ts +0 -3
  152. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  153. package/dist/esm/sdk/sdk.js +0 -4
  154. package/dist/esm/sdk/sdk.js.map +1 -1
  155. package/docs/models/components/accountsummary.md +11 -11
  156. package/docs/models/components/builder.md +4 -4
  157. package/docs/models/components/collateralposition.md +17 -17
  158. package/docs/models/components/creditborrowparams.md +11 -11
  159. package/docs/models/components/creditborrowrequest.md +21 -21
  160. package/docs/models/components/creditenablecollateralparams.md +7 -7
  161. package/docs/models/components/creditloopedpositionsresponse.md +6 -6
  162. package/docs/models/components/creditlooprequest.md +19 -19
  163. package/docs/models/components/creditprotocol.md +3 -7
  164. package/docs/models/components/creditrepayparams.md +10 -10
  165. package/docs/models/components/creditrepayrequest.md +20 -20
  166. package/docs/models/components/creditsupplyparams.md +9 -9
  167. package/docs/models/components/creditunlooprequest.md +17 -17
  168. package/docs/models/components/creditwithdrawparams.md +9 -9
  169. package/docs/models/components/debtposition.md +16 -16
  170. package/docs/models/components/loopedposition.md +17 -14
  171. package/docs/models/components/loopedpositioncurrentstate.md +1 -1
  172. package/docs/models/components/loopedpositioncurrentstatehealthfactorscope.md +1 -1
  173. package/docs/models/components/rebalancetarget.md +10 -10
  174. package/docs/models/components/rebalancetargetpreview.md +16 -16
  175. package/examples/node_modules/tsx/dist/cjs/api/index.cjs +1 -1
  176. package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -1
  177. package/examples/node_modules/tsx/dist/cjs/index.cjs +1 -1
  178. package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -1
  179. package/examples/node_modules/tsx/dist/cli.cjs +1 -1
  180. package/examples/node_modules/tsx/dist/cli.mjs +1 -1
  181. package/examples/node_modules/tsx/dist/esm/api/index.cjs +1 -1
  182. package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -1
  183. package/examples/node_modules/tsx/dist/esm/index.cjs +1 -1
  184. package/examples/node_modules/tsx/dist/esm/index.mjs +1 -1
  185. package/examples/node_modules/tsx/dist/index-D1vYaNWZ.cjs +14 -0
  186. package/examples/node_modules/tsx/dist/index-DCefr8NP.mjs +14 -0
  187. package/examples/node_modules/tsx/dist/loader.cjs +1 -1
  188. package/examples/node_modules/tsx/dist/loader.mjs +1 -1
  189. package/examples/node_modules/tsx/dist/package-B1lIY_Tn.cjs +1 -0
  190. package/examples/node_modules/tsx/dist/package-BL7Whz21.mjs +1 -0
  191. package/examples/node_modules/tsx/dist/{register-C9AniqUt.mjs → register-DHgpdRjs.mjs} +1 -1
  192. package/examples/node_modules/tsx/dist/{register-Ciecs-Zx.cjs → register-DjPW2kSr.cjs} +2 -2
  193. package/examples/node_modules/tsx/dist/{register-C557imBs.cjs → register-OY9cqBEN.cjs} +1 -1
  194. package/examples/node_modules/tsx/dist/{register-C4vWVmug.mjs → register-SoqaU4rg.mjs} +1 -1
  195. package/examples/node_modules/tsx/dist/repl.cjs +1 -1
  196. package/examples/node_modules/tsx/dist/repl.mjs +1 -1
  197. package/examples/node_modules/tsx/dist/{require-DDxgG93A.cjs → require-Blr_8TcJ.cjs} +1 -1
  198. package/examples/node_modules/tsx/dist/{require-CywAB2e6.mjs → require-Cuv-0BLU.mjs} +1 -1
  199. package/examples/node_modules/tsx/package.json +1 -1
  200. package/examples/package-lock.json +3 -3
  201. package/openapi_prepped_for_speakeasy.json +43 -546
  202. package/package.json +1 -1
  203. package/src/lib/config.ts +2 -2
  204. package/src/lib/encodings.ts +58 -23
  205. package/src/models/components/accountsummary.ts +3 -7
  206. package/src/models/components/builder.ts +1 -1
  207. package/src/models/components/collateralposition.ts +3 -7
  208. package/src/models/components/creditborrowparams.ts +3 -7
  209. package/src/models/components/creditborrowrequest.ts +3 -7
  210. package/src/models/components/creditenablecollateralparams.ts +3 -7
  211. package/src/models/components/creditloopedpositionsresponse.ts +3 -3
  212. package/src/models/components/creditlooprequest.ts +3 -7
  213. package/src/models/components/creditprotocol.ts +6 -14
  214. package/src/models/components/creditrepayparams.ts +3 -7
  215. package/src/models/components/creditrepayrequest.ts +3 -7
  216. package/src/models/components/creditsupplyparams.ts +3 -7
  217. package/src/models/components/creditunlooprequest.ts +3 -7
  218. package/src/models/components/creditwithdrawparams.ts +3 -7
  219. package/src/models/components/debtposition.ts +3 -7
  220. package/src/models/components/index.ts +0 -6
  221. package/src/models/components/loopedposition.ts +21 -7
  222. package/src/models/components/loopedpositioncurrentstate.ts +3 -3
  223. package/src/models/components/rebalancetarget.ts +3 -7
  224. package/src/models/components/rebalancetargetpreview.ts +3 -7
  225. package/src/models/errors/index.ts +0 -1
  226. package/src/models/operations/index.ts +0 -1
  227. package/src/sdk/sdk.ts +0 -6
  228. package/dist/commonjs/funcs/onrampOnrampCreate.d.ts +0 -38
  229. package/dist/commonjs/funcs/onrampOnrampCreate.d.ts.map +0 -1
  230. package/dist/commonjs/funcs/onrampOnrampCreate.js +0 -139
  231. package/dist/commonjs/funcs/onrampOnrampCreate.js.map +0 -1
  232. package/dist/commonjs/funcs/onrampOnrampQuote.d.ts +0 -27
  233. package/dist/commonjs/funcs/onrampOnrampQuote.d.ts.map +0 -1
  234. package/dist/commonjs/funcs/onrampOnrampQuote.js +0 -128
  235. package/dist/commonjs/funcs/onrampOnrampQuote.js.map +0 -1
  236. package/dist/commonjs/funcs/onrampOnrampStatus.d.ts +0 -31
  237. package/dist/commonjs/funcs/onrampOnrampStatus.d.ts.map +0 -1
  238. package/dist/commonjs/funcs/onrampOnrampStatus.js +0 -135
  239. package/dist/commonjs/funcs/onrampOnrampStatus.js.map +0 -1
  240. package/dist/commonjs/models/components/onrampcreate.d.ts +0 -59
  241. package/dist/commonjs/models/components/onrampcreate.d.ts.map +0 -1
  242. package/dist/commonjs/models/components/onrampcreate.js +0 -75
  243. package/dist/commonjs/models/components/onrampcreate.js.map +0 -1
  244. package/dist/commonjs/models/components/onrampcreaterequest.d.ts +0 -40
  245. package/dist/commonjs/models/components/onrampcreaterequest.d.ts.map +0 -1
  246. package/dist/commonjs/models/components/onrampcreaterequest.js +0 -60
  247. package/dist/commonjs/models/components/onrampcreaterequest.js.map +0 -1
  248. package/dist/commonjs/models/components/onrampfees.d.ts +0 -29
  249. package/dist/commonjs/models/components/onrampfees.d.ts.map +0 -1
  250. package/dist/commonjs/models/components/onrampfees.js +0 -59
  251. package/dist/commonjs/models/components/onrampfees.js.map +0 -1
  252. package/dist/commonjs/models/components/onrampquote.d.ts +0 -58
  253. package/dist/commonjs/models/components/onrampquote.d.ts.map +0 -1
  254. package/dist/commonjs/models/components/onrampquote.js +0 -73
  255. package/dist/commonjs/models/components/onrampquote.js.map +0 -1
  256. package/dist/commonjs/models/components/onrampquoterequest.d.ts +0 -34
  257. package/dist/commonjs/models/components/onrampquoterequest.d.ts.map +0 -1
  258. package/dist/commonjs/models/components/onrampquoterequest.js +0 -58
  259. package/dist/commonjs/models/components/onrampquoterequest.js.map +0 -1
  260. package/dist/commonjs/models/components/onrampstatus.d.ts +0 -57
  261. package/dist/commonjs/models/components/onrampstatus.d.ts.map +0 -1
  262. package/dist/commonjs/models/components/onrampstatus.js +0 -75
  263. package/dist/commonjs/models/components/onrampstatus.js.map +0 -1
  264. package/dist/commonjs/models/errors/onramperrorresponse.d.ts +0 -44
  265. package/dist/commonjs/models/errors/onramperrorresponse.d.ts.map +0 -1
  266. package/dist/commonjs/models/errors/onramperrorresponse.js +0 -75
  267. package/dist/commonjs/models/errors/onramperrorresponse.js.map +0 -1
  268. package/dist/commonjs/models/operations/v2onrampstatus.d.ts +0 -15
  269. package/dist/commonjs/models/operations/v2onrampstatus.d.ts.map +0 -1
  270. package/dist/commonjs/models/operations/v2onrampstatus.js +0 -54
  271. package/dist/commonjs/models/operations/v2onrampstatus.js.map +0 -1
  272. package/dist/commonjs/sdk/onramp.d.ts +0 -68
  273. package/dist/commonjs/sdk/onramp.d.ts.map +0 -1
  274. package/dist/commonjs/sdk/onramp.js +0 -83
  275. package/dist/commonjs/sdk/onramp.js.map +0 -1
  276. package/dist/esm/funcs/onrampOnrampCreate.d.ts +0 -38
  277. package/dist/esm/funcs/onrampOnrampCreate.d.ts.map +0 -1
  278. package/dist/esm/funcs/onrampOnrampCreate.js +0 -103
  279. package/dist/esm/funcs/onrampOnrampCreate.js.map +0 -1
  280. package/dist/esm/funcs/onrampOnrampQuote.d.ts +0 -27
  281. package/dist/esm/funcs/onrampOnrampQuote.d.ts.map +0 -1
  282. package/dist/esm/funcs/onrampOnrampQuote.js +0 -92
  283. package/dist/esm/funcs/onrampOnrampQuote.js.map +0 -1
  284. package/dist/esm/funcs/onrampOnrampStatus.d.ts +0 -31
  285. package/dist/esm/funcs/onrampOnrampStatus.d.ts.map +0 -1
  286. package/dist/esm/funcs/onrampOnrampStatus.js +0 -99
  287. package/dist/esm/funcs/onrampOnrampStatus.js.map +0 -1
  288. package/dist/esm/models/components/onrampcreate.d.ts +0 -59
  289. package/dist/esm/models/components/onrampcreate.d.ts.map +0 -1
  290. package/dist/esm/models/components/onrampcreate.js +0 -38
  291. package/dist/esm/models/components/onrampcreate.js.map +0 -1
  292. package/dist/esm/models/components/onrampcreaterequest.d.ts +0 -40
  293. package/dist/esm/models/components/onrampcreaterequest.d.ts.map +0 -1
  294. package/dist/esm/models/components/onrampcreaterequest.js +0 -23
  295. package/dist/esm/models/components/onrampcreaterequest.js.map +0 -1
  296. package/dist/esm/models/components/onrampfees.d.ts +0 -29
  297. package/dist/esm/models/components/onrampfees.d.ts.map +0 -1
  298. package/dist/esm/models/components/onrampfees.js +0 -22
  299. package/dist/esm/models/components/onrampfees.js.map +0 -1
  300. package/dist/esm/models/components/onrampquote.d.ts +0 -58
  301. package/dist/esm/models/components/onrampquote.d.ts.map +0 -1
  302. package/dist/esm/models/components/onrampquote.js +0 -36
  303. package/dist/esm/models/components/onrampquote.js.map +0 -1
  304. package/dist/esm/models/components/onrampquoterequest.d.ts +0 -34
  305. package/dist/esm/models/components/onrampquoterequest.d.ts.map +0 -1
  306. package/dist/esm/models/components/onrampquoterequest.js +0 -21
  307. package/dist/esm/models/components/onrampquoterequest.js.map +0 -1
  308. package/dist/esm/models/components/onrampstatus.d.ts +0 -57
  309. package/dist/esm/models/components/onrampstatus.d.ts.map +0 -1
  310. package/dist/esm/models/components/onrampstatus.js +0 -38
  311. package/dist/esm/models/components/onrampstatus.js.map +0 -1
  312. package/dist/esm/models/errors/onramperrorresponse.d.ts +0 -44
  313. package/dist/esm/models/errors/onramperrorresponse.d.ts.map +0 -1
  314. package/dist/esm/models/errors/onramperrorresponse.js +0 -38
  315. package/dist/esm/models/errors/onramperrorresponse.js.map +0 -1
  316. package/dist/esm/models/operations/v2onrampstatus.d.ts +0 -15
  317. package/dist/esm/models/operations/v2onrampstatus.d.ts.map +0 -1
  318. package/dist/esm/models/operations/v2onrampstatus.js +0 -17
  319. package/dist/esm/models/operations/v2onrampstatus.js.map +0 -1
  320. package/dist/esm/sdk/onramp.d.ts +0 -68
  321. package/dist/esm/sdk/onramp.d.ts.map +0 -1
  322. package/dist/esm/sdk/onramp.js +0 -79
  323. package/dist/esm/sdk/onramp.js.map +0 -1
  324. package/docs/models/components/onrampcreate.md +0 -43
  325. package/docs/models/components/onrampcreaterequest.md +0 -29
  326. package/docs/models/components/onrampcreatestatus.md +0 -17
  327. package/docs/models/components/onrampfees.md +0 -26
  328. package/docs/models/components/onrampquote.md +0 -36
  329. package/docs/models/components/onrampquoterequest.md +0 -27
  330. package/docs/models/components/onrampstatus.md +0 -28
  331. package/docs/models/components/onrampstatusstatus.md +0 -17
  332. package/docs/models/errors/onramperrorresponse.md +0 -21
  333. package/docs/models/operations/v2onrampstatusrequest.md +0 -17
  334. package/docs/sdks/onramp/README.md +0 -283
  335. package/examples/node_modules/tsx/dist/index-6kqi0x0U.cjs +0 -14
  336. package/examples/node_modules/tsx/dist/index-DQtFPMc2.mjs +0 -14
  337. package/examples/node_modules/tsx/dist/package-B13bX4zz.mjs +0 -1
  338. package/examples/node_modules/tsx/dist/package-sd2gMcZx.cjs +0 -1
  339. package/src/funcs/onrampOnrampCreate.ts +0 -192
  340. package/src/funcs/onrampOnrampQuote.ts +0 -181
  341. package/src/funcs/onrampOnrampStatus.ts +0 -189
  342. package/src/models/components/onrampcreate.ts +0 -97
  343. package/src/models/components/onrampcreaterequest.ts +0 -70
  344. package/src/models/components/onrampfees.ts +0 -59
  345. package/src/models/components/onrampquote.ts +0 -101
  346. package/src/models/components/onrampquoterequest.ts +0 -62
  347. package/src/models/components/onrampstatus.ts +0 -96
  348. package/src/models/errors/onramperrorresponse.ts +0 -75
  349. package/src/models/operations/v2onrampstatus.ts +0 -39
  350. package/src/sdk/onramp.ts +0 -105
@@ -8577,218 +8577,6 @@
8577
8577
  },
8578
8578
  "x-speakeasy-name-override": "tokenized_assets_transact_sell"
8579
8579
  }
8580
- },
8581
- "/v2/onramp/quote": {
8582
- "post": {
8583
- "tags": [
8584
- "Onramp"
8585
- ],
8586
- "summary": "Get a fiat on-ramp quote (card -> USDC on Ethereum)",
8587
- "description": "Get an indicative quote for buying USDC on Ethereum with a card.\n\nReturns the estimated USDC the user will receive for a given fiat amount,\nthe exchange rate, fee breakdown (`business_fees` is `0`), and the provider\nmin/max limits. The output is always **USDC on Ethereum** delivered to the\n`destination_address` \u2014 this is a non-custodial on-ramp, so Compass never\nholds the funds.\n\nThis quote is indicative and may expire (`expires_at`). To actually start a\npayment, call `POST /v2/onramp/create`.",
8588
- "operationId": "v2_onramp_quote",
8589
- "requestBody": {
8590
- "content": {
8591
- "application/json": {
8592
- "schema": {
8593
- "$ref": "#/components/schemas/OnrampQuoteRequest"
8594
- }
8595
- }
8596
- },
8597
- "required": true
8598
- },
8599
- "responses": {
8600
- "200": {
8601
- "description": "Successful Response",
8602
- "content": {
8603
- "application/json": {
8604
- "schema": {
8605
- "$ref": "#/components/schemas/OnrampQuote"
8606
- }
8607
- }
8608
- }
8609
- },
8610
- "400": {
8611
- "description": "`INVALID_ONRAMP_REQUEST` \u2014 bad fiat amount or unsupported currency.",
8612
- "content": {
8613
- "application/json": {
8614
- "schema": {
8615
- "$ref": "#/components/schemas/OnrampErrorResponse"
8616
- }
8617
- }
8618
- }
8619
- },
8620
- "422": {
8621
- "description": "`UNSUPPORTED_ONRAMP_OUTPUT` \u2014 delivery is limited to USDC on Ethereum.",
8622
- "content": {
8623
- "application/json": {
8624
- "schema": {
8625
- "$ref": "#/components/schemas/OnrampErrorResponse"
8626
- }
8627
- }
8628
- }
8629
- },
8630
- "502": {
8631
- "description": "`HALLIDAY_API_UNAVAILABLE` \u2014 the on-ramp provider is unavailable.",
8632
- "content": {
8633
- "application/json": {
8634
- "schema": {
8635
- "$ref": "#/components/schemas/OnrampErrorResponse"
8636
- }
8637
- }
8638
- }
8639
- }
8640
- },
8641
- "x-speakeasy-name-override": "onramp_quote"
8642
- }
8643
- },
8644
- "/v2/onramp/create": {
8645
- "post": {
8646
- "tags": [
8647
- "Onramp"
8648
- ],
8649
- "summary": "Create a fiat on-ramp payment + get the checkout link",
8650
- "description": "Create a fiat on-ramp payment and return the browser-checkout handoff.\n\nA fiat card + identity-verification flow can only render in a browser, so\nthis endpoint returns a **`checkout_url`** (a Compass-hosted page) together\nwith `payment_id`, the one-time-wallet `deposit_address`, an initial\n`status`, and a `user_instructions` string.\n\n**How to drive this (CLI / MCP agent / UI):**\n\n1. **Present `checkout_url` to the user and open it in a browser.** It\n renders the card payment + identity verification and delivers USDC on\n Ethereum to the destination wallet. (An MCP agent cannot open a browser\n itself \u2014 show the link and ask the user to open it.)\n2. **Poll `GET /v2/onramp/status?payment_id=...`** until `status` becomes\n `delivered` (or `failed`). `pending` = awaiting payment, `processing` =\n payment received and bridging/swapping to USDC.\n3. Once `delivered`, the USDC is in the user's own wallet \u2014 continue with\n the tokenized buy.\n\nFunds are never held by Compass: the `deposit_address` is a one-time wallet\nowned solely by the user's wallet.",
8651
- "operationId": "v2_onramp_create",
8652
- "requestBody": {
8653
- "content": {
8654
- "application/json": {
8655
- "schema": {
8656
- "$ref": "#/components/schemas/OnrampCreateRequest"
8657
- }
8658
- }
8659
- },
8660
- "required": true
8661
- },
8662
- "responses": {
8663
- "200": {
8664
- "description": "Successful Response",
8665
- "content": {
8666
- "application/json": {
8667
- "schema": {
8668
- "$ref": "#/components/schemas/OnrampCreate"
8669
- }
8670
- }
8671
- }
8672
- },
8673
- "400": {
8674
- "description": "`INVALID_ONRAMP_REQUEST` \u2014 bad fiat amount or unsupported currency.",
8675
- "content": {
8676
- "application/json": {
8677
- "schema": {
8678
- "$ref": "#/components/schemas/OnrampErrorResponse"
8679
- }
8680
- }
8681
- }
8682
- },
8683
- "402": {
8684
- "description": "`KYC_REQUIRED` \u2014 identity verification is required; complete it in the hosted checkout (`checkout_url`).",
8685
- "content": {
8686
- "application/json": {
8687
- "schema": {
8688
- "$ref": "#/components/schemas/OnrampErrorResponse"
8689
- }
8690
- }
8691
- }
8692
- },
8693
- "410": {
8694
- "description": "`QUOTE_EXPIRED` \u2014 the quote is stale; re-quote and retry.",
8695
- "content": {
8696
- "application/json": {
8697
- "schema": {
8698
- "$ref": "#/components/schemas/OnrampErrorResponse"
8699
- }
8700
- }
8701
- }
8702
- },
8703
- "422": {
8704
- "description": "`UNSUPPORTED_ONRAMP_OUTPUT` \u2014 delivery is limited to USDC on Ethereum.",
8705
- "content": {
8706
- "application/json": {
8707
- "schema": {
8708
- "$ref": "#/components/schemas/OnrampErrorResponse"
8709
- }
8710
- }
8711
- }
8712
- },
8713
- "502": {
8714
- "description": "`HALLIDAY_API_UNAVAILABLE` \u2014 the on-ramp provider is unavailable.",
8715
- "content": {
8716
- "application/json": {
8717
- "schema": {
8718
- "$ref": "#/components/schemas/OnrampErrorResponse"
8719
- }
8720
- }
8721
- }
8722
- }
8723
- },
8724
- "x-speakeasy-name-override": "onramp_create"
8725
- }
8726
- },
8727
- "/v2/onramp/status": {
8728
- "get": {
8729
- "tags": [
8730
- "Onramp"
8731
- ],
8732
- "summary": "Get the status of a fiat on-ramp payment",
8733
- "description": "Get the current status of a fiat on-ramp payment.\n\nPoll this after `create` until `status` is `delivered`. The `status` field\nis one of:\n\n- `pending` \u2014 awaiting the card payment in the hosted checkout.\n- `processing` \u2014 payment received; bridging/swapping the proceeds to USDC.\n- `delivered` \u2014 USDC has been delivered to the destination wallet\n (`delivery_tx_hash` and `output_amount_delivered` are populated).\n- `failed` \u2014 the payment failed, expired, or was refunded.\n\nState is re-read live from the on-ramp provider on every call \u2014 Compass\nstores nothing of its own.",
8734
- "operationId": "v2_onramp_status",
8735
- "parameters": [
8736
- {
8737
- "name": "payment_id",
8738
- "in": "query",
8739
- "required": true,
8740
- "schema": {
8741
- "type": "string",
8742
- "description": "The `payment_id` returned by `POST /v2/onramp/create`.",
8743
- "title": "Payment Id"
8744
- },
8745
- "description": "The `payment_id` returned by `POST /v2/onramp/create`."
8746
- }
8747
- ],
8748
- "responses": {
8749
- "200": {
8750
- "description": "Successful Response",
8751
- "content": {
8752
- "application/json": {
8753
- "schema": {
8754
- "$ref": "#/components/schemas/OnrampStatus"
8755
- }
8756
- }
8757
- }
8758
- },
8759
- "404": {
8760
- "description": "`PAYMENT_NOT_FOUND` \u2014 no payment matches the provided id.",
8761
- "content": {
8762
- "application/json": {
8763
- "schema": {
8764
- "$ref": "#/components/schemas/OnrampErrorResponse"
8765
- }
8766
- }
8767
- }
8768
- },
8769
- "422": {
8770
- "description": "`UNSUPPORTED_ONRAMP_OUTPUT` \u2014 delivery is limited to USDC on Ethereum.",
8771
- "content": {
8772
- "application/json": {
8773
- "schema": {
8774
- "$ref": "#/components/schemas/OnrampErrorResponse"
8775
- }
8776
- }
8777
- }
8778
- },
8779
- "502": {
8780
- "description": "`HALLIDAY_API_UNAVAILABLE` \u2014 the on-ramp provider is unavailable.",
8781
- "content": {
8782
- "application/json": {
8783
- "schema": {
8784
- "$ref": "#/components/schemas/OnrampErrorResponse"
8785
- }
8786
- }
8787
- }
8788
- }
8789
- },
8790
- "x-speakeasy-name-override": "onramp_status"
8791
- }
8792
8580
  }
8793
8581
  },
8794
8582
  "components": {
@@ -11771,7 +11559,7 @@
11771
11559
  "max_fee_rate": {
11772
11560
  "type": "string",
11773
11561
  "title": "Max Fee Rate",
11774
- "description": "Maximum fee rate the end-user authorizes for this builder, in Hyperliquid grammar (e.g. '0.01%'). Must end with '%' and parse to a value in [0, 100]."
11562
+ "description": "Maximum fee rate the end-user authorizes for this builder, in Hyperliquid grammar (e.g. '0.01%'). Must end with '%', use at most 0.001% precision (one tenth of a basis point) and be at most 0.1%, Hyperliquid's cap on perps builder fees. The fee is charged on top of Hyperliquid's own trading fee."
11775
11563
  }
11776
11564
  },
11777
11565
  "type": "object",
@@ -13417,7 +13205,7 @@
13417
13205
  },
13418
13206
  "type": "array",
13419
13207
  "title": "Positions",
13420
- "description": "All looped positions, on both Aave and Morpho.",
13208
+ "description": "Every leveraged position the account holds, across Aave, Morpho and Euler \u2014 each with its live state, lifetime totals and full transaction history, whether it is still open or already closed.",
13421
13209
  "example": []
13422
13210
  },
13423
13211
  "aave_account_summary": {
@@ -13429,7 +13217,7 @@
13429
13217
  "type": "null"
13430
13218
  }
13431
13219
  ],
13432
- "description": "Aave account-level summary (health factor, LTV, borrow capacity). Present when the account holds any open Aave looped position, since Aave collateral is pooled and health is account-level. Null for Morpho-only accounts."
13220
+ "description": "Aave account-level summary (health factor, LTV, borrow capacity). Present when the account holds any open Aave looped position, since Aave collateral is pooled and health is account-level. Null for accounts with no open Aave loop \u2014 Morpho and Euler positions carry their own isolated health factor on each position instead."
13433
13221
  }
13434
13222
  },
13435
13223
  "type": "object",
@@ -13437,7 +13225,7 @@
13437
13225
  "credit_account_address"
13438
13226
  ],
13439
13227
  "title": "CreditLoopedPositionsResponse",
13440
- "description": "Looped positions across Aave V3 and Morpho Blue for a credit account."
13228
+ "description": "Looped positions across Aave V3, Morpho Blue and Euler V2 for a credit account."
13441
13229
  },
13442
13230
  "CreditPositionsResponse": {
13443
13231
  "properties": {
@@ -13529,7 +13317,7 @@
13529
13317
  "MORPHO"
13530
13318
  ],
13531
13319
  "title": "CreditProtocol",
13532
- "description": "Which lending protocol a credit action targets.\n\n``AAVE`` is the default so existing callers (which never send a ``protocol``\nfield) keep hitting the unchanged Aave code path; markets are named by token\nsymbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32\n``market_id``. ``EULER`` identifies Euler V2 markets by their EVK\n``collateral_vault`` + ``borrow_vault`` addresses and supports isolated\nper-sub-account positions (``sub_account_id``).\n\nDeployment is per chain, so a valid protocol can still 422 on a given chain:\nAAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the\nchain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM\n(where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.\n\nAll three support ``/v2/credit/loop`` and ``/v2/credit/unloop``. EULER does\nNOT: ``/v2/credit/rebalance`` rejects it with a 422, and\n``/v2/credit/looped_positions`` covers only AAVE and MORPHO \u2014 an Euler loop is\nsilently absent there rather than an error, so read it from\n``/v2/credit/positions`` instead. (EULER still appears in the\n``looped_positions`` response enum because this enum is shared; it is never\nemitted.)"
13320
+ "description": "Which lending protocol a credit action targets.\n\n``AAVE`` is the default so existing callers (which never send a ``protocol``\nfield) keep hitting the unchanged Aave code path; markets are named by token\nsymbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32\n``market_id``. ``EULER`` identifies Euler V2 markets by their EVK\n``collateral_vault`` + ``borrow_vault`` addresses and supports isolated\nper-sub-account positions (``sub_account_id``).\n\nDeployment is per chain, so a valid protocol can still 422 on a given chain:\nAAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the\nchain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM\n(where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.\n\nAll three support ``/v2/credit/loop``, ``/v2/credit/unloop`` and\n``/v2/credit/looped_positions``. The one gap is ``/v2/credit/rebalance``,\nwhich rejects EULER with a 422."
13533
13321
  },
13534
13322
  "CreditRebalancePreview": {
13535
13323
  "properties": {
@@ -16906,7 +16694,7 @@
16906
16694
  "properties": {
16907
16695
  "protocol": {
16908
16696
  "$ref": "#/components/schemas/CreditProtocol",
16909
- "description": "Lending protocol this position is on. Only AAVE and MORPHO are ever returned; EULER is present in the enum because it is shared with the transact endpoints, but Euler loops are not listed here \u2014 read them from /v2/credit/positions."
16697
+ "description": "Lending protocol this position is on: AAVE, MORPHO or EULER."
16910
16698
  },
16911
16699
  "market_id": {
16912
16700
  "anyOf": [
@@ -16920,6 +16708,42 @@
16920
16708
  "title": "Market Id",
16921
16709
  "description": "Morpho only: the bytes32 id of the isolated market."
16922
16710
  },
16711
+ "sub_account_id": {
16712
+ "anyOf": [
16713
+ {
16714
+ "type": "integer"
16715
+ },
16716
+ {
16717
+ "type": "null"
16718
+ }
16719
+ ],
16720
+ "title": "Sub Account Id",
16721
+ "description": "Euler only: the EVC sub-account (0-255) holding this position. Euler isolates each loop in its own sub-account, so this is part of the position's identity \u2014 two loops on the same vault pair in different sub-accounts are two separate positions."
16722
+ },
16723
+ "collateral_vault": {
16724
+ "anyOf": [
16725
+ {
16726
+ "type": "string"
16727
+ },
16728
+ {
16729
+ "type": "null"
16730
+ }
16731
+ ],
16732
+ "title": "Collateral Vault",
16733
+ "description": "Euler only: the EVK vault holding the collateral. Euler markets are identified by their vault pair rather than by a market id, and the same underlying token can back several different vaults."
16734
+ },
16735
+ "borrow_vault": {
16736
+ "anyOf": [
16737
+ {
16738
+ "type": "string"
16739
+ },
16740
+ {
16741
+ "type": "null"
16742
+ }
16743
+ ],
16744
+ "title": "Borrow Vault",
16745
+ "description": "Euler only: the EVK controller vault the debt is owed to."
16746
+ },
16923
16747
  "collateral_token": {
16924
16748
  "type": "string",
16925
16749
  "title": "Collateral Token",
@@ -17101,7 +16925,7 @@
17101
16925
  "account"
17102
16926
  ],
17103
16927
  "title": "Health Factor Scope",
17104
- "description": "'market' for Morpho (isolated per-market health). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account \u2014 see aave_account_summary for the account-level figures."
16928
+ "description": "How widely this health factor applies. 'market' means it is isolated rather than account-wide: a Morpho market's collateral backs only that market's debt, and an Euler sub-account's collateral backs only its own controller's debt. Note that an Euler figure is scoped to the SUB-ACCOUNT, so if several positions share one sub-account they all report the same health factor and are liquidated together \u2014 it is not each position's independent health. 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account \u2014 see aave_account_summary for the account-level figures."
17105
16929
  },
17106
16930
  "collateral_apy": {
17107
16931
  "anyOf": [
@@ -19954,333 +19778,6 @@
19954
19778
  "title": "OneInchSwapParams",
19955
19779
  "description": "Parameters for 1inch swap operations."
19956
19780
  },
19957
- "OnrampCreate": {
19958
- "properties": {
19959
- "payment_id": {
19960
- "type": "string",
19961
- "title": "Payment Id",
19962
- "description": "Halliday's payment id. Use it to poll status."
19963
- },
19964
- "deposit_address": {
19965
- "type": "string",
19966
- "title": "Deposit Address",
19967
- "description": "The one-time-wallet (OTW) deposit address for this payment, owned solely by the user's wallet (non-custodial)."
19968
- },
19969
- "checkout_url": {
19970
- "type": "string",
19971
- "title": "Checkout Url",
19972
- "description": "Compass-hosted checkout page to open in a browser. It renders the card + identity-verification flow and delivers USDC to the destination wallet."
19973
- },
19974
- "user_instructions": {
19975
- "type": "string",
19976
- "title": "User Instructions",
19977
- "description": "Short, agent-actionable guidance: open the checkout link, pay, then poll status until delivered."
19978
- },
19979
- "status": {
19980
- "type": "string",
19981
- "enum": [
19982
- "pending",
19983
- "processing",
19984
- "delivered",
19985
- "failed"
19986
- ],
19987
- "title": "Status",
19988
- "description": "Initial lifecycle state (typically `pending`)."
19989
- },
19990
- "quote": {
19991
- "$ref": "#/components/schemas/OnrampQuote",
19992
- "description": "The resolved quote this payment was created against."
19993
- }
19994
- },
19995
- "type": "object",
19996
- "required": [
19997
- "payment_id",
19998
- "deposit_address",
19999
- "checkout_url",
20000
- "user_instructions",
20001
- "status",
20002
- "quote"
20003
- ],
20004
- "title": "OnrampCreate",
20005
- "description": "A created on-ramp payment, with the browser-handoff affordances.\n\nThe caller (CLI / MCP agent / UI) presents ``checkout_url`` to the user to\npay by card and complete identity verification, then polls\n``GET /v2/onramp/status`` until ``status`` is ``delivered``."
20006
- },
20007
- "OnrampCreateRequest": {
20008
- "properties": {
20009
- "fiat_amount": {
20010
- "type": "string",
20011
- "title": "Fiat Amount",
20012
- "description": "Amount of fiat to spend, as a decimal string (e.g. `100`)."
20013
- },
20014
- "fiat_currency": {
20015
- "type": "string",
20016
- "title": "Fiat Currency",
20017
- "description": "ISO-4217 fiat currency code. Defaults to `USD`.",
20018
- "example": "USD"
20019
- },
20020
- "destination_address": {
20021
- "type": "string",
20022
- "title": "Destination Address",
20023
- "description": "The wallet that will receive the USDC on Ethereum. Funds are delivered here directly \u2014 Compass never holds them."
20024
- },
20025
- "quote_id": {
20026
- "anyOf": [
20027
- {
20028
- "type": "string"
20029
- },
20030
- {
20031
- "type": "null"
20032
- }
20033
- ],
20034
- "title": "Quote Id",
20035
- "description": "Optional Halliday quote handle to confirm against. Omit to confirm against a fresh quote derived from the amount and currency."
20036
- }
20037
- },
20038
- "type": "object",
20039
- "required": [
20040
- "fiat_amount",
20041
- "destination_address"
20042
- ],
20043
- "title": "OnrampCreateRequest",
20044
- "description": "Create a fiat on-ramp payment delivering USDC on Ethereum.\n\nCarries the same fields as the quote (a quote is implicit \u2014 we do not\npersist a quote handle). ``quote_id`` is optional and only echoed upstream\nif Halliday's ``/payments/confirm`` requires a previously-issued quote\nhandle; omit it to confirm against a fresh quote."
20045
- },
20046
- "OnrampErrorResponse": {
20047
- "properties": {
20048
- "error": {
20049
- "type": "string",
20050
- "title": "Error",
20051
- "description": "Short human-readable error label (e.g. `Payment not found.`, `On-ramp provider unavailable`, `Identity verification required`)."
20052
- },
20053
- "message": {
20054
- "type": "string",
20055
- "title": "Message",
20056
- "description": "Human-readable explanation."
20057
- }
20058
- },
20059
- "type": "object",
20060
- "required": [
20061
- "error",
20062
- "message"
20063
- ],
20064
- "title": "OnrampErrorResponse",
20065
- "description": "Standard error envelope returned by every non-2xx on-ramp response.\n\nSurfaced in OpenAPI ``responses`` declarations so SDK consumers can decode\nfailures uniformly without inspecting per-status-code shapes."
20066
- },
20067
- "OnrampFees": {
20068
- "properties": {
20069
- "provider_fee": {
20070
- "type": "string",
20071
- "title": "Provider Fee",
20072
- "description": "Fee charged by the on-ramp provider, in fiat."
20073
- },
20074
- "network_fee": {
20075
- "type": "string",
20076
- "title": "Network Fee",
20077
- "description": "Estimated network/gas fee, in fiat."
20078
- },
20079
- "business_fees": {
20080
- "type": "string",
20081
- "title": "Business Fees",
20082
- "description": "Compass business fee, in fiat. Always `0` for now.",
20083
- "example": "0"
20084
- }
20085
- },
20086
- "type": "object",
20087
- "required": [
20088
- "provider_fee",
20089
- "network_fee"
20090
- ],
20091
- "title": "OnrampFees",
20092
- "description": "Fee breakdown for an on-ramp quote.\n\n``business_fees`` is a fixed ``\"0\"`` for now \u2014 monetization is a single\nfuture lever and is intentionally not charged."
20093
- },
20094
- "OnrampQuote": {
20095
- "properties": {
20096
- "fiat_amount": {
20097
- "type": "string",
20098
- "title": "Fiat Amount",
20099
- "description": "Fiat amount to spend."
20100
- },
20101
- "fiat_currency": {
20102
- "type": "string",
20103
- "title": "Fiat Currency",
20104
- "description": "ISO-4217 fiat currency code."
20105
- },
20106
- "output_amount": {
20107
- "type": "string",
20108
- "title": "Output Amount",
20109
- "description": "Estimated USDC delivered, human-readable (6-decimal token)."
20110
- },
20111
- "output_asset": {
20112
- "type": "string",
20113
- "const": "USDC",
20114
- "title": "Output Asset",
20115
- "description": "Delivered asset. Always USDC for this on-ramp.",
20116
- "example": "USDC"
20117
- },
20118
- "output_chain": {
20119
- "type": "string",
20120
- "const": "ethereum",
20121
- "title": "Output Chain",
20122
- "description": "Delivery chain. Always Ethereum for this on-ramp.",
20123
- "example": "ethereum"
20124
- },
20125
- "exchange_rate": {
20126
- "type": "string",
20127
- "title": "Exchange Rate",
20128
- "description": "USDC received per unit of fiat."
20129
- },
20130
- "fees": {
20131
- "$ref": "#/components/schemas/OnrampFees",
20132
- "description": "Fee breakdown."
20133
- },
20134
- "min_amount": {
20135
- "anyOf": [
20136
- {
20137
- "type": "string"
20138
- },
20139
- {
20140
- "type": "null"
20141
- }
20142
- ],
20143
- "title": "Min Amount",
20144
- "description": "Minimum fiat amount accepted, if advertised by the provider."
20145
- },
20146
- "max_amount": {
20147
- "anyOf": [
20148
- {
20149
- "type": "string"
20150
- },
20151
- {
20152
- "type": "null"
20153
- }
20154
- ],
20155
- "title": "Max Amount",
20156
- "description": "Maximum fiat amount accepted, if advertised by the provider."
20157
- },
20158
- "expires_at": {
20159
- "anyOf": [
20160
- {
20161
- "type": "string"
20162
- },
20163
- {
20164
- "type": "null"
20165
- }
20166
- ],
20167
- "title": "Expires At",
20168
- "description": "ISO-8601 timestamp after which this quote is stale, if any."
20169
- }
20170
- },
20171
- "type": "object",
20172
- "required": [
20173
- "fiat_amount",
20174
- "fiat_currency",
20175
- "output_amount",
20176
- "exchange_rate",
20177
- "fees"
20178
- ],
20179
- "title": "OnrampQuote",
20180
- "description": "An indicative fiat -> USDC-on-Ethereum quote."
20181
- },
20182
- "OnrampQuoteRequest": {
20183
- "properties": {
20184
- "fiat_amount": {
20185
- "type": "string",
20186
- "title": "Fiat Amount",
20187
- "description": "Amount of fiat to spend, as a decimal string (e.g. `100`)."
20188
- },
20189
- "fiat_currency": {
20190
- "type": "string",
20191
- "title": "Fiat Currency",
20192
- "description": "ISO-4217 fiat currency code. Defaults to `USD`.",
20193
- "example": "USD"
20194
- },
20195
- "destination_address": {
20196
- "type": "string",
20197
- "title": "Destination Address",
20198
- "description": "The wallet that will receive the USDC on Ethereum. Funds are delivered here directly \u2014 Compass never holds them."
20199
- }
20200
- },
20201
- "type": "object",
20202
- "required": [
20203
- "fiat_amount",
20204
- "destination_address"
20205
- ],
20206
- "title": "OnrampQuoteRequest",
20207
- "description": "An indicative fiat -> USDC-on-Ethereum quote request.\n\nThe output asset and chain are fixed to USDC on Ethereum and are not\nuser-supplied \u2014 this product group delivers only USDC to the user's own\nwallet (non-custodial)."
20208
- },
20209
- "OnrampStatus": {
20210
- "properties": {
20211
- "payment_id": {
20212
- "type": "string",
20213
- "title": "Payment Id",
20214
- "description": "Halliday's payment id, echoed straight through."
20215
- },
20216
- "status": {
20217
- "type": "string",
20218
- "enum": [
20219
- "pending",
20220
- "processing",
20221
- "delivered",
20222
- "failed"
20223
- ],
20224
- "title": "Status",
20225
- "description": "Lifecycle state: `pending` (awaiting card payment), `processing` (payment received, bridging/swapping to USDC), `delivered` (USDC received in the destination wallet), or `failed`."
20226
- },
20227
- "output_amount_delivered": {
20228
- "anyOf": [
20229
- {
20230
- "type": "string"
20231
- },
20232
- {
20233
- "type": "null"
20234
- }
20235
- ],
20236
- "title": "Output Amount Delivered",
20237
- "description": "USDC delivered so far, human-readable. Set once delivered."
20238
- },
20239
- "delivery_tx_hash": {
20240
- "anyOf": [
20241
- {
20242
- "type": "string"
20243
- },
20244
- {
20245
- "type": "null"
20246
- }
20247
- ],
20248
- "title": "Delivery Tx Hash",
20249
- "description": "Ethereum tx hash of the USDC delivery, once available."
20250
- },
20251
- "destination_address": {
20252
- "anyOf": [
20253
- {
20254
- "type": "string"
20255
- },
20256
- {
20257
- "type": "null"
20258
- }
20259
- ],
20260
- "title": "Destination Address",
20261
- "description": "The wallet the USDC is delivered to."
20262
- },
20263
- "updated_at": {
20264
- "anyOf": [
20265
- {
20266
- "type": "string"
20267
- },
20268
- {
20269
- "type": "null"
20270
- }
20271
- ],
20272
- "title": "Updated At",
20273
- "description": "ISO-8601 timestamp of the last status change, if provided."
20274
- }
20275
- },
20276
- "type": "object",
20277
- "required": [
20278
- "payment_id",
20279
- "status"
20280
- ],
20281
- "title": "OnrampStatus",
20282
- "description": "Current state of a fiat on-ramp payment.\n\nRe-read on demand from Halliday (the system of record) \u2014 Compass holds no\nstate of its own."
20283
- },
20284
19781
  "OpenPosition": {
20285
19782
  "properties": {
20286
19783
  "marketId": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-labs/api-sdk",
3
- "version": "2.2.103",
3
+ "version": "2.2.105-rc.0",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "tshy": {