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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/README.md +7 -3
  2. package/codeSamples_typescript.yaml +12 -0
  3. package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts +24 -0
  4. package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts.map +1 -0
  5. package/dist/commonjs/funcs/creditCreditMorphoMarkets.js +128 -0
  6. package/dist/commonjs/funcs/creditCreditMorphoMarkets.js.map +1 -0
  7. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsRedemptions.d.ts +30 -0
  8. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsRedemptions.d.ts.map +1 -0
  9. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsRedemptions.js +136 -0
  10. package/dist/commonjs/funcs/tokenizedAssetsTokenizedAssetsRedemptions.js.map +1 -0
  11. package/dist/commonjs/models/components/accountsummary.d.ts +4 -0
  12. package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/accountsummary.js.map +1 -1
  14. package/dist/commonjs/models/components/collateralposition.d.ts +12 -0
  15. package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
  16. package/dist/commonjs/models/components/collateralposition.js +4 -0
  17. package/dist/commonjs/models/components/collateralposition.js.map +1 -1
  18. package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.d.ts +8 -6
  19. package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.d.ts.map +1 -1
  20. package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.js +3 -3
  21. package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.js.map +1 -1
  22. package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.d.ts +4 -2
  23. package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.d.ts.map +1 -1
  24. package/dist/commonjs/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.js.map +1 -1
  25. package/dist/commonjs/models/components/creditborrowparams.d.ts +4 -0
  26. package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
  27. package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
  28. package/dist/commonjs/models/components/creditborrowrequest.d.ts +4 -0
  29. package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
  30. package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
  31. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +4 -0
  32. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
  33. package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
  34. package/dist/commonjs/models/components/creditprotocol.d.ts +9 -0
  35. package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
  36. package/dist/commonjs/models/components/creditprotocol.js +5 -0
  37. package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
  38. package/dist/commonjs/models/components/creditrepayparams.d.ts +4 -0
  39. package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
  40. package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
  41. package/dist/commonjs/models/components/creditrepayrequest.d.ts +4 -0
  42. package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
  43. package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
  44. package/dist/commonjs/models/components/creditsupplyparams.d.ts +4 -0
  45. package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
  46. package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
  47. package/dist/commonjs/models/components/creditwithdrawparams.d.ts +4 -0
  48. package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
  49. package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
  50. package/dist/commonjs/models/components/debtposition.d.ts +12 -0
  51. package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
  52. package/dist/commonjs/models/components/debtposition.js +4 -0
  53. package/dist/commonjs/models/components/debtposition.js.map +1 -1
  54. package/dist/commonjs/models/components/index.d.ts +4 -0
  55. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  56. package/dist/commonjs/models/components/index.js +4 -0
  57. package/dist/commonjs/models/components/index.js.map +1 -1
  58. package/dist/commonjs/models/components/marketdetail.d.ts +8 -6
  59. package/dist/commonjs/models/components/marketdetail.d.ts.map +1 -1
  60. package/dist/commonjs/models/components/marketdetail.js +3 -3
  61. package/dist/commonjs/models/components/marketdetail.js.map +1 -1
  62. package/dist/commonjs/models/components/morpholendingmarket.d.ts +80 -0
  63. package/dist/commonjs/models/components/morpholendingmarket.d.ts.map +1 -0
  64. package/dist/commonjs/models/components/morpholendingmarket.js +82 -0
  65. package/dist/commonjs/models/components/morpholendingmarket.js.map +1 -0
  66. package/dist/commonjs/models/components/morphomarketsresponse.d.ts +21 -0
  67. package/dist/commonjs/models/components/morphomarketsresponse.d.ts.map +1 -0
  68. package/dist/commonjs/models/components/morphomarketsresponse.js +52 -0
  69. package/dist/commonjs/models/components/morphomarketsresponse.js.map +1 -0
  70. package/dist/commonjs/models/components/redemption.d.ts +52 -0
  71. package/dist/commonjs/models/components/redemption.d.ts.map +1 -0
  72. package/dist/commonjs/models/components/redemption.js +73 -0
  73. package/dist/commonjs/models/components/redemption.js.map +1 -0
  74. package/dist/commonjs/models/components/redemptionsresponse.d.ts +17 -0
  75. package/dist/commonjs/models/components/redemptionsresponse.d.ts.map +1 -0
  76. package/dist/commonjs/models/components/redemptionsresponse.js +51 -0
  77. package/dist/commonjs/models/components/redemptionsresponse.js.map +1 -0
  78. package/dist/commonjs/models/components/tokenizedassetclass.d.ts +9 -4
  79. package/dist/commonjs/models/components/tokenizedassetclass.d.ts.map +1 -1
  80. package/dist/commonjs/models/components/tokenizedassetclass.js +5 -2
  81. package/dist/commonjs/models/components/tokenizedassetclass.js.map +1 -1
  82. package/dist/commonjs/models/components/tokenizedassetprovider.d.ts +1 -0
  83. package/dist/commonjs/models/components/tokenizedassetprovider.d.ts.map +1 -1
  84. package/dist/commonjs/models/components/tokenizedassetprovider.js +1 -0
  85. package/dist/commonjs/models/components/tokenizedassetprovider.js.map +1 -1
  86. package/dist/commonjs/models/components/tokenizedassetstraderesponse.d.ts +22 -0
  87. package/dist/commonjs/models/components/tokenizedassetstraderesponse.d.ts.map +1 -1
  88. package/dist/commonjs/models/components/tokenizedassetstraderesponse.js +14 -1
  89. package/dist/commonjs/models/components/tokenizedassetstraderesponse.js.map +1 -1
  90. package/dist/commonjs/models/operations/index.d.ts +2 -0
  91. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  92. package/dist/commonjs/models/operations/index.js +2 -0
  93. package/dist/commonjs/models/operations/index.js.map +1 -1
  94. package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts +22 -0
  95. package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts.map +1 -0
  96. package/dist/commonjs/models/operations/v2creditmorphomarkets.js +57 -0
  97. package/dist/commonjs/models/operations/v2creditmorphomarkets.js.map +1 -0
  98. package/dist/commonjs/models/operations/v2tokenizedassetsredemptions.d.ts +43 -0
  99. package/dist/commonjs/models/operations/v2tokenizedassetsredemptions.d.ts.map +1 -0
  100. package/dist/commonjs/models/operations/v2tokenizedassetsredemptions.js +64 -0
  101. package/dist/commonjs/models/operations/v2tokenizedassetsredemptions.js.map +1 -0
  102. package/dist/commonjs/sdk/credit.d.ts +12 -0
  103. package/dist/commonjs/sdk/credit.d.ts.map +1 -1
  104. package/dist/commonjs/sdk/credit.js +15 -0
  105. package/dist/commonjs/sdk/credit.js.map +1 -1
  106. package/dist/commonjs/sdk/tokenizedassets.d.ts +18 -0
  107. package/dist/commonjs/sdk/tokenizedassets.d.ts.map +1 -1
  108. package/dist/commonjs/sdk/tokenizedassets.js +21 -0
  109. package/dist/commonjs/sdk/tokenizedassets.js.map +1 -1
  110. package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts +24 -0
  111. package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts.map +1 -0
  112. package/dist/esm/funcs/creditCreditMorphoMarkets.js +92 -0
  113. package/dist/esm/funcs/creditCreditMorphoMarkets.js.map +1 -0
  114. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsRedemptions.d.ts +30 -0
  115. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsRedemptions.d.ts.map +1 -0
  116. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsRedemptions.js +100 -0
  117. package/dist/esm/funcs/tokenizedAssetsTokenizedAssetsRedemptions.js.map +1 -0
  118. package/dist/esm/models/components/accountsummary.d.ts +4 -0
  119. package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
  120. package/dist/esm/models/components/accountsummary.js.map +1 -1
  121. package/dist/esm/models/components/collateralposition.d.ts +12 -0
  122. package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
  123. package/dist/esm/models/components/collateralposition.js +4 -0
  124. package/dist/esm/models/components/collateralposition.js.map +1 -1
  125. package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.d.ts +8 -6
  126. package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.d.ts.map +1 -1
  127. package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.js +3 -3
  128. package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.js.map +1 -1
  129. package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.d.ts +4 -2
  130. package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.d.ts.map +1 -1
  131. package/dist/esm/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.js.map +1 -1
  132. package/dist/esm/models/components/creditborrowparams.d.ts +4 -0
  133. package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
  134. package/dist/esm/models/components/creditborrowparams.js.map +1 -1
  135. package/dist/esm/models/components/creditborrowrequest.d.ts +4 -0
  136. package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
  137. package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
  138. package/dist/esm/models/components/creditenablecollateralparams.d.ts +4 -0
  139. package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
  140. package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
  141. package/dist/esm/models/components/creditprotocol.d.ts +9 -0
  142. package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
  143. package/dist/esm/models/components/creditprotocol.js +5 -0
  144. package/dist/esm/models/components/creditprotocol.js.map +1 -1
  145. package/dist/esm/models/components/creditrepayparams.d.ts +4 -0
  146. package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
  147. package/dist/esm/models/components/creditrepayparams.js.map +1 -1
  148. package/dist/esm/models/components/creditrepayrequest.d.ts +4 -0
  149. package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
  150. package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
  151. package/dist/esm/models/components/creditsupplyparams.d.ts +4 -0
  152. package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
  153. package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
  154. package/dist/esm/models/components/creditwithdrawparams.d.ts +4 -0
  155. package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
  156. package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
  157. package/dist/esm/models/components/debtposition.d.ts +12 -0
  158. package/dist/esm/models/components/debtposition.d.ts.map +1 -1
  159. package/dist/esm/models/components/debtposition.js +4 -0
  160. package/dist/esm/models/components/debtposition.js.map +1 -1
  161. package/dist/esm/models/components/index.d.ts +4 -0
  162. package/dist/esm/models/components/index.d.ts.map +1 -1
  163. package/dist/esm/models/components/index.js +4 -0
  164. package/dist/esm/models/components/index.js.map +1 -1
  165. package/dist/esm/models/components/marketdetail.d.ts +8 -6
  166. package/dist/esm/models/components/marketdetail.d.ts.map +1 -1
  167. package/dist/esm/models/components/marketdetail.js +3 -3
  168. package/dist/esm/models/components/marketdetail.js.map +1 -1
  169. package/dist/esm/models/components/morpholendingmarket.d.ts +80 -0
  170. package/dist/esm/models/components/morpholendingmarket.d.ts.map +1 -0
  171. package/dist/esm/models/components/morpholendingmarket.js +45 -0
  172. package/dist/esm/models/components/morpholendingmarket.js.map +1 -0
  173. package/dist/esm/models/components/morphomarketsresponse.d.ts +21 -0
  174. package/dist/esm/models/components/morphomarketsresponse.d.ts.map +1 -0
  175. package/dist/esm/models/components/morphomarketsresponse.js +15 -0
  176. package/dist/esm/models/components/morphomarketsresponse.js.map +1 -0
  177. package/dist/esm/models/components/redemption.d.ts +52 -0
  178. package/dist/esm/models/components/redemption.d.ts.map +1 -0
  179. package/dist/esm/models/components/redemption.js +36 -0
  180. package/dist/esm/models/components/redemption.js.map +1 -0
  181. package/dist/esm/models/components/redemptionsresponse.d.ts +17 -0
  182. package/dist/esm/models/components/redemptionsresponse.d.ts.map +1 -0
  183. package/dist/esm/models/components/redemptionsresponse.js +14 -0
  184. package/dist/esm/models/components/redemptionsresponse.js.map +1 -0
  185. package/dist/esm/models/components/tokenizedassetclass.d.ts +9 -4
  186. package/dist/esm/models/components/tokenizedassetclass.d.ts.map +1 -1
  187. package/dist/esm/models/components/tokenizedassetclass.js +5 -2
  188. package/dist/esm/models/components/tokenizedassetclass.js.map +1 -1
  189. package/dist/esm/models/components/tokenizedassetprovider.d.ts +1 -0
  190. package/dist/esm/models/components/tokenizedassetprovider.d.ts.map +1 -1
  191. package/dist/esm/models/components/tokenizedassetprovider.js +1 -0
  192. package/dist/esm/models/components/tokenizedassetprovider.js.map +1 -1
  193. package/dist/esm/models/components/tokenizedassetstraderesponse.d.ts +22 -0
  194. package/dist/esm/models/components/tokenizedassetstraderesponse.d.ts.map +1 -1
  195. package/dist/esm/models/components/tokenizedassetstraderesponse.js +13 -0
  196. package/dist/esm/models/components/tokenizedassetstraderesponse.js.map +1 -1
  197. package/dist/esm/models/operations/index.d.ts +2 -0
  198. package/dist/esm/models/operations/index.d.ts.map +1 -1
  199. package/dist/esm/models/operations/index.js +2 -0
  200. package/dist/esm/models/operations/index.js.map +1 -1
  201. package/dist/esm/models/operations/v2creditmorphomarkets.d.ts +22 -0
  202. package/dist/esm/models/operations/v2creditmorphomarkets.d.ts.map +1 -0
  203. package/dist/esm/models/operations/v2creditmorphomarkets.js +20 -0
  204. package/dist/esm/models/operations/v2creditmorphomarkets.js.map +1 -0
  205. package/dist/esm/models/operations/v2tokenizedassetsredemptions.d.ts +43 -0
  206. package/dist/esm/models/operations/v2tokenizedassetsredemptions.d.ts.map +1 -0
  207. package/dist/esm/models/operations/v2tokenizedassetsredemptions.js +27 -0
  208. package/dist/esm/models/operations/v2tokenizedassetsredemptions.js.map +1 -0
  209. package/dist/esm/sdk/credit.d.ts +12 -0
  210. package/dist/esm/sdk/credit.d.ts.map +1 -1
  211. package/dist/esm/sdk/credit.js +15 -0
  212. package/dist/esm/sdk/credit.js.map +1 -1
  213. package/dist/esm/sdk/tokenizedassets.d.ts +18 -0
  214. package/dist/esm/sdk/tokenizedassets.d.ts.map +1 -1
  215. package/dist/esm/sdk/tokenizedassets.js +21 -0
  216. package/dist/esm/sdk/tokenizedassets.js.map +1 -1
  217. package/docs/models/components/accountsummary.md +10 -10
  218. package/docs/models/components/collateralposition.md +16 -14
  219. package/docs/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.md +21 -18
  220. package/docs/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.md +15 -15
  221. package/docs/models/components/creditborrowparams.md +9 -9
  222. package/docs/models/components/creditborrowrequest.md +19 -19
  223. package/docs/models/components/creditenablecollateralparams.md +6 -6
  224. package/docs/models/components/creditprotocol.md +5 -1
  225. package/docs/models/components/creditrepayparams.md +8 -8
  226. package/docs/models/components/creditrepayrequest.md +18 -18
  227. package/docs/models/components/creditsupplyparams.md +7 -7
  228. package/docs/models/components/creditwithdrawparams.md +7 -7
  229. package/docs/models/components/debtposition.md +15 -13
  230. package/docs/models/components/marketdetail.md +32 -29
  231. package/docs/models/components/morpholendingmarket.md +49 -0
  232. package/docs/models/components/morphomarketsresponse.md +21 -0
  233. package/docs/models/components/redemption.md +27 -0
  234. package/docs/models/components/redemptionsresponse.md +19 -0
  235. package/docs/models/components/redemptionstatus.md +17 -0
  236. package/docs/models/components/settlement.md +17 -0
  237. package/docs/models/components/tokenizedassetclass.md +6 -4
  238. package/docs/models/components/tokenizedassetprovider.md +2 -2
  239. package/docs/models/components/tokenizedassetstraderesponse.md +9 -6
  240. package/docs/models/operations/v2creditmorphomarketschain.md +15 -0
  241. package/docs/models/operations/v2creditmorphomarketsrequest.md +17 -0
  242. package/docs/models/operations/v2tokenizedassetsredemptionschain.md +17 -0
  243. package/docs/models/operations/v2tokenizedassetsredemptionsrequest.md +21 -0
  244. package/docs/sdks/credit/README.md +80 -0
  245. package/docs/sdks/tokenizedassets/README.md +90 -0
  246. package/openapi_prepped_for_speakeasy.json +451 -21
  247. package/package.json +1 -1
  248. package/src/funcs/creditCreditMorphoMarkets.ts +182 -0
  249. package/src/funcs/tokenizedAssetsTokenizedAssetsRedemptions.ts +192 -0
  250. package/src/models/components/accountsummary.ts +4 -0
  251. package/src/models/components/collateralposition.ts +16 -0
  252. package/src/models/components/compassapibackendv2modelstokenizedassetsmarketmarket.ts +11 -9
  253. package/src/models/components/compassapibackendv2modelstokenizedassetsreadresponsepositionsposition.ts +4 -2
  254. package/src/models/components/creditborrowparams.ts +4 -0
  255. package/src/models/components/creditborrowrequest.ts +4 -0
  256. package/src/models/components/creditenablecollateralparams.ts +4 -0
  257. package/src/models/components/creditprotocol.ts +9 -0
  258. package/src/models/components/creditrepayparams.ts +4 -0
  259. package/src/models/components/creditrepayrequest.ts +4 -0
  260. package/src/models/components/creditsupplyparams.ts +4 -0
  261. package/src/models/components/creditwithdrawparams.ts +4 -0
  262. package/src/models/components/debtposition.ts +16 -0
  263. package/src/models/components/index.ts +4 -0
  264. package/src/models/components/marketdetail.ts +11 -9
  265. package/src/models/components/morpholendingmarket.ts +133 -0
  266. package/src/models/components/morphomarketsresponse.ts +46 -0
  267. package/src/models/components/redemption.ts +89 -0
  268. package/src/models/components/redemptionsresponse.ts +38 -0
  269. package/src/models/components/tokenizedassetclass.ts +9 -4
  270. package/src/models/components/tokenizedassetprovider.ts +1 -0
  271. package/src/models/components/tokenizedassetstraderesponse.ts +28 -0
  272. package/src/models/operations/index.ts +2 -0
  273. package/src/models/operations/v2creditmorphomarkets.ts +49 -0
  274. package/src/models/operations/v2tokenizedassetsredemptions.ts +72 -0
  275. package/src/sdk/credit.ts +23 -0
  276. package/src/sdk/tokenizedassets.ts +29 -0
@@ -36,7 +36,7 @@ export type MarketDetail = {
36
36
  */
37
37
  name: string;
38
38
  /**
39
- * Ethereum mainnet ERC-20 address for this token.
39
+ * On-chain ERC-20 address for this token, on the network given by `chain`.
40
40
  */
41
41
  contractAddress: string;
42
42
  /**
@@ -66,21 +66,23 @@ export type MarketDetail = {
66
66
  /**
67
67
  * Issuer/provider of a tokenized asset.
68
68
  */
69
- provider?: TokenizedAssetProvider | undefined;
69
+ provider: TokenizedAssetProvider;
70
70
  /**
71
71
  * Asset class of a tokenized asset.
72
72
  *
73
73
  * @remarks
74
74
  *
75
75
  * `EQUITY` trades via the order endpoints (build/submit/cancel); the RWA
76
- * yield classes (`T_BILLS`, `BASIS_TRADE`, `BTC_YIELD`) trade via the
77
- * swap-based `transact/buy` and `transact/sell` endpoints.
76
+ * yield classes (`T_BILLS`, `BASIS_TRADE`, `BTC_YIELD`) and `MANAGED_VAULT`
77
+ * trade via the swap-based `transact/buy` and `transact/sell` endpoints.
78
+ * `MANAGED_VAULT` (IXS ERC-4626 vaults) is special in that a sell is an
79
+ * *asynchronous* redemption request settled off-chain by the vault operator.
78
80
  */
79
- assetClass?: TokenizedAssetClass | undefined;
81
+ assetClass: TokenizedAssetClass;
80
82
  /**
81
83
  * The chain to use.
82
84
  */
83
- chain?: Chain | undefined;
85
+ chain: Chain;
84
86
  /**
85
87
  * Trailing 7-day annualized NAV growth (decimal fraction string, e.g. '0.0512' = 5.12%). RWA yield assets only; null until enough NAV history exists.
86
88
  */
@@ -155,9 +157,9 @@ export const MarketDetail$inboundSchema: z.ZodType<
155
157
  change_24h_pct: z.nullable(z.string()).optional(),
156
158
  sectors: z.array(z.string()).optional(),
157
159
  region_exposure: z.array(z.string()).optional(),
158
- provider: TokenizedAssetProvider$inboundSchema.optional(),
159
- asset_class: TokenizedAssetClass$inboundSchema.optional(),
160
- chain: Chain$inboundSchema.optional(),
160
+ provider: TokenizedAssetProvider$inboundSchema,
161
+ asset_class: TokenizedAssetClass$inboundSchema,
162
+ chain: Chain$inboundSchema,
161
163
  apy_7d: z.nullable(z.string()).optional(),
162
164
  apy_30d: z.nullable(z.string()).optional(),
163
165
  tvl_usd: z.nullable(z.string()).optional(),
@@ -0,0 +1,133 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * A Morpho Blue lending market: one isolated (collateral, loan) pair.
13
+ */
14
+ export type MorphoLendingMarket = {
15
+ /**
16
+ * Morpho Blue market id — the bytes32 keccak of the market's (loanToken, collateralToken, oracle, irm, lltv) tuple. Pass this to the Morpho credit actions to identify the market.
17
+ */
18
+ marketId: string;
19
+ /**
20
+ * Token that is supplied and borrowed in this market.
21
+ */
22
+ loanToken: string;
23
+ /**
24
+ * Symbol of the loan token (e.g. USDC).
25
+ */
26
+ loanTokenSymbol: string;
27
+ /**
28
+ * Decimals of the loan token.
29
+ */
30
+ loanTokenDecimals: number;
31
+ /**
32
+ * Token accepted as collateral in this market.
33
+ */
34
+ collateralToken: string;
35
+ /**
36
+ * Symbol of the collateral token (e.g. wstETH).
37
+ */
38
+ collateralTokenSymbol: string;
39
+ /**
40
+ * Decimals of the collateral token.
41
+ */
42
+ collateralTokenDecimals: number;
43
+ /**
44
+ * Oracle pricing the collateral in loan-token terms for this market.
45
+ */
46
+ oracle: string;
47
+ /**
48
+ * Interest rate model contract of this market.
49
+ */
50
+ irm: string;
51
+ /**
52
+ * Liquidation loan-to-value in percentage (e.g. 86 means a position is liquidatable once debt exceeds 86% of collateral value).
53
+ */
54
+ lltv: string;
55
+ /**
56
+ * Current supply APY for lending the loan token, in percentage (e.g. 3.5 means 3.5%). Null if the rate is unavailable.
57
+ */
58
+ supplyApy?: string | null | undefined;
59
+ /**
60
+ * Current borrow APY for the loan token, in percentage (e.g. 5.25 means 5.25%). Null if the rate is unavailable.
61
+ */
62
+ borrowApy?: string | null | undefined;
63
+ /**
64
+ * Borrowed share of supplied assets, in percentage 0-100.
65
+ */
66
+ utilization: string;
67
+ /**
68
+ * Total loan tokens supplied to the market, in token units.
69
+ */
70
+ totalSupplyAssets: string;
71
+ /**
72
+ * Total loan tokens borrowed from the market, in token units.
73
+ */
74
+ totalBorrowAssets: string;
75
+ /**
76
+ * Loan tokens available to borrow or withdraw (supplied - borrowed), in token units.
77
+ */
78
+ availableLiquidity: string;
79
+ /**
80
+ * Protocol fee taken from interest, in percentage of interest (e.g. 0 means no fee).
81
+ */
82
+ fee: string;
83
+ };
84
+
85
+ /** @internal */
86
+ export const MorphoLendingMarket$inboundSchema: z.ZodType<
87
+ MorphoLendingMarket,
88
+ z.ZodTypeDef,
89
+ unknown
90
+ > = z.object({
91
+ market_id: z.string(),
92
+ loan_token: z.string(),
93
+ loan_token_symbol: z.string(),
94
+ loan_token_decimals: z.number().int(),
95
+ collateral_token: z.string(),
96
+ collateral_token_symbol: z.string(),
97
+ collateral_token_decimals: z.number().int(),
98
+ oracle: z.string(),
99
+ irm: z.string(),
100
+ lltv: z.string(),
101
+ supply_apy: z.nullable(z.string()).optional(),
102
+ borrow_apy: z.nullable(z.string()).optional(),
103
+ utilization: z.string(),
104
+ total_supply_assets: z.string(),
105
+ total_borrow_assets: z.string(),
106
+ available_liquidity: z.string(),
107
+ fee: z.string(),
108
+ }).transform((v) => {
109
+ return remap$(v, {
110
+ "market_id": "marketId",
111
+ "loan_token": "loanToken",
112
+ "loan_token_symbol": "loanTokenSymbol",
113
+ "loan_token_decimals": "loanTokenDecimals",
114
+ "collateral_token": "collateralToken",
115
+ "collateral_token_symbol": "collateralTokenSymbol",
116
+ "collateral_token_decimals": "collateralTokenDecimals",
117
+ "supply_apy": "supplyApy",
118
+ "borrow_apy": "borrowApy",
119
+ "total_supply_assets": "totalSupplyAssets",
120
+ "total_borrow_assets": "totalBorrowAssets",
121
+ "available_liquidity": "availableLiquidity",
122
+ });
123
+ });
124
+
125
+ export function morphoLendingMarketFromJSON(
126
+ jsonString: string,
127
+ ): SafeParseResult<MorphoLendingMarket, SDKValidationError> {
128
+ return safeParse(
129
+ jsonString,
130
+ (x) => MorphoLendingMarket$inboundSchema.parse(JSON.parse(x)),
131
+ `Failed to parse 'MorphoLendingMarket' from JSON`,
132
+ );
133
+ }
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ MorphoLendingMarket,
11
+ MorphoLendingMarket$inboundSchema,
12
+ } from "./morpholendingmarket.js";
13
+
14
+ /**
15
+ * Curated Morpho Blue lending markets, read on-chain per request.
16
+ */
17
+ export type MorphoMarketsResponse = {
18
+ /**
19
+ * Morpho Blue singleton contract the markets were read from.
20
+ */
21
+ morpho: string;
22
+ /**
23
+ * Curated lending markets with live LLTV, APYs, utilization, and liquidity.
24
+ */
25
+ markets?: Array<MorphoLendingMarket> | undefined;
26
+ };
27
+
28
+ /** @internal */
29
+ export const MorphoMarketsResponse$inboundSchema: z.ZodType<
30
+ MorphoMarketsResponse,
31
+ z.ZodTypeDef,
32
+ unknown
33
+ > = z.object({
34
+ morpho: z.string(),
35
+ markets: z.array(MorphoLendingMarket$inboundSchema).optional(),
36
+ });
37
+
38
+ export function morphoMarketsResponseFromJSON(
39
+ jsonString: string,
40
+ ): SafeParseResult<MorphoMarketsResponse, SDKValidationError> {
41
+ return safeParse(
42
+ jsonString,
43
+ (x) => MorphoMarketsResponse$inboundSchema.parse(JSON.parse(x)),
44
+ `Failed to parse 'MorphoMarketsResponse' from JSON`,
45
+ );
46
+ }
@@ -0,0 +1,89 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ /**
13
+ * Lifecycle state: `pending` (awaiting operator settlement), `finalized` (settled — assets paid to the product account), `rejected` (operator declined; shares returned to the account), or `unknown` (an unrecognized on-chain status code — should not occur for the current contract, surfaced defensively instead of erroring).
14
+ */
15
+ export const RedemptionStatus = {
16
+ Pending: "pending",
17
+ Finalized: "finalized",
18
+ Rejected: "rejected",
19
+ Unknown: "unknown",
20
+ } as const;
21
+ /**
22
+ * Lifecycle state: `pending` (awaiting operator settlement), `finalized` (settled — assets paid to the product account), `rejected` (operator declined; shares returned to the account), or `unknown` (an unrecognized on-chain status code — should not occur for the current contract, surfaced defensively instead of erroring).
23
+ */
24
+ export type RedemptionStatus = ClosedEnum<typeof RedemptionStatus>;
25
+
26
+ /**
27
+ * One IXS vault redemption request, reconstructed on-chain.
28
+ */
29
+ export type Redemption = {
30
+ /**
31
+ * On-chain redemption request id.
32
+ */
33
+ id: number;
34
+ /**
35
+ * Lifecycle state: `pending` (awaiting operator settlement), `finalized` (settled — assets paid to the product account), `rejected` (operator declined; shares returned to the account), or `unknown` (an unrecognized on-chain status code — should not occur for the current contract, surfaced defensively instead of erroring).
36
+ */
37
+ status: RedemptionStatus;
38
+ /**
39
+ * Vault shares in the request (human units).
40
+ */
41
+ shares: string;
42
+ /**
43
+ * For a `pending` request, the estimated net assets (after the exit fee) it would settle for at the current NAV — a preview, not a guarantee (settlement depends on the operator and the vault's available assets). Null once finalized or rejected.
44
+ */
45
+ expectedNetAssets?: string | null | undefined;
46
+ /**
47
+ * Unix timestamp when the redemption was requested.
48
+ */
49
+ requestedAt: number;
50
+ /**
51
+ * Unix timestamp when finalized/rejected; null while pending.
52
+ */
53
+ processedAt?: number | null | undefined;
54
+ };
55
+
56
+ /** @internal */
57
+ export const RedemptionStatus$inboundSchema: z.ZodNativeEnum<
58
+ typeof RedemptionStatus
59
+ > = z.nativeEnum(RedemptionStatus);
60
+
61
+ /** @internal */
62
+ export const Redemption$inboundSchema: z.ZodType<
63
+ Redemption,
64
+ z.ZodTypeDef,
65
+ unknown
66
+ > = z.object({
67
+ id: z.number().int(),
68
+ status: RedemptionStatus$inboundSchema,
69
+ shares: z.string(),
70
+ expected_net_assets: z.nullable(z.string()).optional(),
71
+ requested_at: z.number().int(),
72
+ processed_at: z.nullable(z.number().int()).optional(),
73
+ }).transform((v) => {
74
+ return remap$(v, {
75
+ "expected_net_assets": "expectedNetAssets",
76
+ "requested_at": "requestedAt",
77
+ "processed_at": "processedAt",
78
+ });
79
+ });
80
+
81
+ export function redemptionFromJSON(
82
+ jsonString: string,
83
+ ): SafeParseResult<Redemption, SDKValidationError> {
84
+ return safeParse(
85
+ jsonString,
86
+ (x) => Redemption$inboundSchema.parse(JSON.parse(x)),
87
+ `Failed to parse 'Redemption' from JSON`,
88
+ );
89
+ }
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import { Redemption, Redemption$inboundSchema } from "./redemption.js";
10
+
11
+ /**
12
+ * An owner's IXS redemption requests for one vault.
13
+ */
14
+ export type RedemptionsResponse = {
15
+ /**
16
+ * The owner's non-empty redemption requests for the vault, in ascending id order. Empty when the owner has never requested one.
17
+ */
18
+ redemptions?: Array<Redemption> | undefined;
19
+ };
20
+
21
+ /** @internal */
22
+ export const RedemptionsResponse$inboundSchema: z.ZodType<
23
+ RedemptionsResponse,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ redemptions: z.array(Redemption$inboundSchema).optional(),
28
+ });
29
+
30
+ export function redemptionsResponseFromJSON(
31
+ jsonString: string,
32
+ ): SafeParseResult<RedemptionsResponse, SDKValidationError> {
33
+ return safeParse(
34
+ jsonString,
35
+ (x) => RedemptionsResponse$inboundSchema.parse(JSON.parse(x)),
36
+ `Failed to parse 'RedemptionsResponse' from JSON`,
37
+ );
38
+ }
@@ -11,14 +11,17 @@ import { ClosedEnum } from "../../types/enums.js";
11
11
  * @remarks
12
12
  *
13
13
  * `EQUITY` trades via the order endpoints (build/submit/cancel); the RWA
14
- * yield classes (`T_BILLS`, `BASIS_TRADE`, `BTC_YIELD`) trade via the
15
- * swap-based `transact/buy` and `transact/sell` endpoints.
14
+ * yield classes (`T_BILLS`, `BASIS_TRADE`, `BTC_YIELD`) and `MANAGED_VAULT`
15
+ * trade via the swap-based `transact/buy` and `transact/sell` endpoints.
16
+ * `MANAGED_VAULT` (IXS ERC-4626 vaults) is special in that a sell is an
17
+ * *asynchronous* redemption request settled off-chain by the vault operator.
16
18
  */
17
19
  export const TokenizedAssetClass = {
18
20
  Equity: "EQUITY",
19
21
  TBills: "T_BILLS",
20
22
  BasisTrade: "BASIS_TRADE",
21
23
  BtcYield: "BTC_YIELD",
24
+ ManagedVault: "MANAGED_VAULT",
22
25
  } as const;
23
26
  /**
24
27
  * Asset class of a tokenized asset.
@@ -26,8 +29,10 @@ export const TokenizedAssetClass = {
26
29
  * @remarks
27
30
  *
28
31
  * `EQUITY` trades via the order endpoints (build/submit/cancel); the RWA
29
- * yield classes (`T_BILLS`, `BASIS_TRADE`, `BTC_YIELD`) trade via the
30
- * swap-based `transact/buy` and `transact/sell` endpoints.
32
+ * yield classes (`T_BILLS`, `BASIS_TRADE`, `BTC_YIELD`) and `MANAGED_VAULT`
33
+ * trade via the swap-based `transact/buy` and `transact/sell` endpoints.
34
+ * `MANAGED_VAULT` (IXS ERC-4626 vaults) is special in that a sell is an
35
+ * *asynchronous* redemption request settled off-chain by the vault operator.
31
36
  */
32
37
  export type TokenizedAssetClass = ClosedEnum<typeof TokenizedAssetClass>;
33
38
 
@@ -11,6 +11,7 @@ import { ClosedEnum } from "../../types/enums.js";
11
11
  export const TokenizedAssetProvider = {
12
12
  Ondo: "ondo",
13
13
  Midas: "midas",
14
+ Ixs: "ixs",
14
15
  } as const;
15
16
  /**
16
17
  * Issuer/provider of a tokenized asset.
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
@@ -16,6 +17,18 @@ import {
16
17
  UnsignedTransaction$inboundSchema,
17
18
  } from "./unsignedtransaction.js";
18
19
 
20
+ /**
21
+ * How the trade settles. `instant`: the signed transaction completes the trade (Midas/Ondo swaps and IXS deposits). `async`: the transaction only *requests* an IXS redemption, which the vault operator settles off-chain later — poll `poll_endpoint` for status.
22
+ */
23
+ export const Settlement = {
24
+ Instant: "instant",
25
+ Async: "async",
26
+ } as const;
27
+ /**
28
+ * How the trade settles. `instant`: the signed transaction completes the trade (Midas/Ondo swaps and IXS deposits). `async`: the transaction only *requests* an IXS redemption, which the vault operator settles off-chain later — poll `poll_endpoint` for status.
29
+ */
30
+ export type Settlement = ClosedEnum<typeof Settlement>;
31
+
19
32
  /**
20
33
  * Unsigned trade execution for the owner to sign.
21
34
  *
@@ -41,8 +54,20 @@ export type TokenizedAssetsTradeResponse = {
41
54
  * Fee charged on the sell, in payout-token (USDC) units. Null when no fee was applied.
42
55
  */
43
56
  feeAmount?: string | null | undefined;
57
+ /**
58
+ * How the trade settles. `instant`: the signed transaction completes the trade (Midas/Ondo swaps and IXS deposits). `async`: the transaction only *requests* an IXS redemption, which the vault operator settles off-chain later — poll `poll_endpoint` for status.
59
+ */
60
+ settlement?: Settlement | undefined;
61
+ /**
62
+ * For `async` settlements, the endpoint to poll for redemption status (`GET /v2/tokenized_assets/redemptions`). Null for instant trades.
63
+ */
64
+ pollEndpoint?: string | null | undefined;
44
65
  };
45
66
 
67
+ /** @internal */
68
+ export const Settlement$inboundSchema: z.ZodNativeEnum<typeof Settlement> = z
69
+ .nativeEnum(Settlement);
70
+
46
71
  /** @internal */
47
72
  export const TokenizedAssetsTradeResponse$inboundSchema: z.ZodType<
48
73
  TokenizedAssetsTradeResponse,
@@ -54,11 +79,14 @@ export const TokenizedAssetsTradeResponse$inboundSchema: z.ZodType<
54
79
  .optional(),
55
80
  estimated_amount_out: z.string(),
56
81
  fee_amount: z.nullable(z.string()).optional(),
82
+ settlement: Settlement$inboundSchema.optional(),
83
+ poll_endpoint: z.nullable(z.string()).optional(),
57
84
  }).transform((v) => {
58
85
  return remap$(v, {
59
86
  "eip_712": "eip712",
60
87
  "estimated_amount_out": "estimatedAmountOut",
61
88
  "fee_amount": "feeAmount",
89
+ "poll_endpoint": "pollEndpoint",
62
90
  });
63
91
  });
64
92
 
@@ -43,6 +43,7 @@ export * from "./v1wildcatmarket.js";
43
43
  export * from "./v2cctpmint.js";
44
44
  export * from "./v2creditbalances.js";
45
45
  export * from "./v2crediteulermarkets.js";
46
+ export * from "./v2creditmorphomarkets.js";
46
47
  export * from "./v2creditpositions.js";
47
48
  export * from "./v2earnaavemarkets.js";
48
49
  export * from "./v2earnbalances.js";
@@ -63,3 +64,4 @@ export * from "./v2tokenizedassetsorderorderhash.js";
63
64
  export * from "./v2tokenizedassetsorderorderhashcancel.js";
64
65
  export * from "./v2tokenizedassetsorderorderhashchargefee.js";
65
66
  export * from "./v2tokenizedassetspositions.js";
67
+ export * from "./v2tokenizedassetsredemptions.js";
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const V2CreditMorphoMarketsChain = {
9
+ Arbitrum: "arbitrum",
10
+ Base: "base",
11
+ Ethereum: "ethereum",
12
+ Tempo: "tempo",
13
+ } as const;
14
+ export type V2CreditMorphoMarketsChain = ClosedEnum<
15
+ typeof V2CreditMorphoMarketsChain
16
+ >;
17
+
18
+ export type V2CreditMorphoMarketsRequest = {
19
+ chain: V2CreditMorphoMarketsChain;
20
+ };
21
+
22
+ /** @internal */
23
+ export const V2CreditMorphoMarketsChain$outboundSchema: z.ZodNativeEnum<
24
+ typeof V2CreditMorphoMarketsChain
25
+ > = z.nativeEnum(V2CreditMorphoMarketsChain);
26
+
27
+ /** @internal */
28
+ export type V2CreditMorphoMarketsRequest$Outbound = {
29
+ chain: string;
30
+ };
31
+
32
+ /** @internal */
33
+ export const V2CreditMorphoMarketsRequest$outboundSchema: z.ZodType<
34
+ V2CreditMorphoMarketsRequest$Outbound,
35
+ z.ZodTypeDef,
36
+ V2CreditMorphoMarketsRequest
37
+ > = z.object({
38
+ chain: V2CreditMorphoMarketsChain$outboundSchema,
39
+ });
40
+
41
+ export function v2CreditMorphoMarketsRequestToJSON(
42
+ v2CreditMorphoMarketsRequest: V2CreditMorphoMarketsRequest,
43
+ ): string {
44
+ return JSON.stringify(
45
+ V2CreditMorphoMarketsRequest$outboundSchema.parse(
46
+ v2CreditMorphoMarketsRequest,
47
+ ),
48
+ );
49
+ }
@@ -0,0 +1,72 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * The chain to use.
10
+ */
11
+ export const V2TokenizedAssetsRedemptionsChain = {
12
+ Base: "base",
13
+ Ethereum: "ethereum",
14
+ Arbitrum: "arbitrum",
15
+ Hyperevm: "hyperevm",
16
+ Tempo: "tempo",
17
+ Bsc: "bsc",
18
+ } as const;
19
+ /**
20
+ * The chain to use.
21
+ */
22
+ export type V2TokenizedAssetsRedemptionsChain = ClosedEnum<
23
+ typeof V2TokenizedAssetsRedemptionsChain
24
+ >;
25
+
26
+ export type V2TokenizedAssetsRedemptionsRequest = {
27
+ /**
28
+ * The owner of the Tokenized Assets Account whose IXS redemption requests to read. Requests are reconstructed on-chain from the derived product account (the request receiver).
29
+ */
30
+ owner: string;
31
+ /**
32
+ * Network the IXS vault lives on (IXS managed vaults are on BNB Smart Chain).
33
+ */
34
+ chain?: V2TokenizedAssetsRedemptionsChain | undefined;
35
+ /**
36
+ * The IXS vault handle to read redemptions for (e.g. 'ixv1').
37
+ */
38
+ vault?: string | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const V2TokenizedAssetsRedemptionsChain$outboundSchema: z.ZodNativeEnum<
43
+ typeof V2TokenizedAssetsRedemptionsChain
44
+ > = z.nativeEnum(V2TokenizedAssetsRedemptionsChain);
45
+
46
+ /** @internal */
47
+ export type V2TokenizedAssetsRedemptionsRequest$Outbound = {
48
+ owner: string;
49
+ chain?: string | undefined;
50
+ vault?: string | undefined;
51
+ };
52
+
53
+ /** @internal */
54
+ export const V2TokenizedAssetsRedemptionsRequest$outboundSchema: z.ZodType<
55
+ V2TokenizedAssetsRedemptionsRequest$Outbound,
56
+ z.ZodTypeDef,
57
+ V2TokenizedAssetsRedemptionsRequest
58
+ > = z.object({
59
+ owner: z.string(),
60
+ chain: V2TokenizedAssetsRedemptionsChain$outboundSchema.optional(),
61
+ vault: z.string().optional(),
62
+ });
63
+
64
+ export function v2TokenizedAssetsRedemptionsRequestToJSON(
65
+ v2TokenizedAssetsRedemptionsRequest: V2TokenizedAssetsRedemptionsRequest,
66
+ ): string {
67
+ return JSON.stringify(
68
+ V2TokenizedAssetsRedemptionsRequest$outboundSchema.parse(
69
+ v2TokenizedAssetsRedemptionsRequest,
70
+ ),
71
+ );
72
+ }
package/src/sdk/credit.ts CHANGED
@@ -7,6 +7,7 @@ import { creditCreditBorrow } from "../funcs/creditCreditBorrow.js";
7
7
  import { creditCreditBundle } from "../funcs/creditCreditBundle.js";
8
8
  import { creditCreditCreateAccount } from "../funcs/creditCreditCreateAccount.js";
9
9
  import { creditCreditEulerMarkets } from "../funcs/creditCreditEulerMarkets.js";
10
+ import { creditCreditMorphoMarkets } from "../funcs/creditCreditMorphoMarkets.js";
10
11
  import { creditCreditPositions } from "../funcs/creditCreditPositions.js";
11
12
  import { creditCreditRepay } from "../funcs/creditCreditRepay.js";
12
13
  import { creditCreditTransfer } from "../funcs/creditCreditTransfer.js";
@@ -78,6 +79,28 @@ export class Credit extends ClientSDK {
78
79
  ));
79
80
  }
80
81
 
82
+ /**
83
+ * List curated Morpho markets
84
+ *
85
+ * @remarks
86
+ * List curated Morpho Blue lending markets for a chain.
87
+ *
88
+ * Morpho Blue is permissionless, so credit actions identify a market by its
89
+ * bytes32 market id. This returns the curated market set with live LLTV,
90
+ * supply/borrow APY, utilization, and available liquidity -- read on-chain per
91
+ * request -- so callers know which market_id to use and what it currently costs.
92
+ */
93
+ async creditMorphoMarkets(
94
+ request: operations.V2CreditMorphoMarketsRequest,
95
+ options?: RequestOptions,
96
+ ): Promise<components.MorphoMarketsResponse> {
97
+ return unwrapAsync(creditCreditMorphoMarkets(
98
+ this,
99
+ request,
100
+ options,
101
+ ));
102
+ }
103
+
81
104
  /**
82
105
  * Create credit account
83
106
  *
@@ -13,6 +13,7 @@ import { tokenizedAssetsTokenizedAssetsOrderOrderHashChargeFee } from "../funcs/
13
13
  import { tokenizedAssetsTokenizedAssetsOrderSubmit } from "../funcs/tokenizedAssetsTokenizedAssetsOrderSubmit.js";
14
14
  import { tokenizedAssetsTokenizedAssetsPositions } from "../funcs/tokenizedAssetsTokenizedAssetsPositions.js";
15
15
  import { tokenizedAssetsTokenizedAssetsQuote } from "../funcs/tokenizedAssetsTokenizedAssetsQuote.js";
16
+ import { tokenizedAssetsTokenizedAssetsRedemptions } from "../funcs/tokenizedAssetsTokenizedAssetsRedemptions.js";
16
17
  import { tokenizedAssetsTokenizedAssetsTransactBuy } from "../funcs/tokenizedAssetsTokenizedAssetsTransactBuy.js";
17
18
  import { tokenizedAssetsTokenizedAssetsTransactSell } from "../funcs/tokenizedAssetsTokenizedAssetsTransactSell.js";
18
19
  import { tokenizedAssetsTokenizedAssetsTransfer } from "../funcs/tokenizedAssetsTokenizedAssetsTransfer.js";
@@ -162,6 +163,34 @@ export class TokenizedAssets extends ClientSDK {
162
163
  ));
163
164
  }
164
165
 
166
+ /**
167
+ * Get IXS vault redemption requests for an owner
168
+ *
169
+ * @remarks
170
+ * Get an owner's IXS vault redemption requests (async redemption status).
171
+ *
172
+ * IXS managed-vault **sells** are asynchronous: `/transact/sell` returns a
173
+ * `requestRedeem` transaction, and the vault operator settles it off-chain
174
+ * later. This endpoint reconstructs the owner's requests directly from the
175
+ * vault on every call (Compass persists no async state) — each entry carries
176
+ * its `status` (`pending` | `finalized` | `rejected`), the `shares` requested,
177
+ * and, while `pending`, the `expected_net_assets` it would settle for at the
178
+ * current NAV (a preview, not a guarantee).
179
+ *
180
+ * IXS vaults live on BNB Smart Chain — pass `chain=bsc` (the default) and the
181
+ * `vault` handle (default `ixv1`).
182
+ */
183
+ async tokenizedAssetsRedemptions(
184
+ request: operations.V2TokenizedAssetsRedemptionsRequest,
185
+ options?: RequestOptions,
186
+ ): Promise<components.RedemptionsResponse> {
187
+ return unwrapAsync(tokenizedAssetsTokenizedAssetsRedemptions(
188
+ this,
189
+ request,
190
+ options,
191
+ ));
192
+ }
193
+
165
194
  /**
166
195
  * Create a Tokenized Assets Account
167
196
  *