@compass-labs/api-sdk 0.0.39 → 0.1.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 (437) hide show
  1. package/README.md +5 -0
  2. package/bin/mcp-server.js +5493 -5083
  3. package/bin/mcp-server.js.map +81 -65
  4. package/dist/commonjs/funcs/aaveV3Borrow.d.ts +1 -1
  5. package/dist/commonjs/funcs/aaveV3Borrow.d.ts.map +1 -1
  6. package/dist/commonjs/funcs/aaveV3Borrow.js +1 -1
  7. package/dist/commonjs/funcs/aaveV3Borrow.js.map +1 -1
  8. package/dist/commonjs/funcs/aaveV3Repay.d.ts +1 -1
  9. package/dist/commonjs/funcs/aaveV3Repay.d.ts.map +1 -1
  10. package/dist/commonjs/funcs/aaveV3Repay.js +1 -1
  11. package/dist/commonjs/funcs/aaveV3Repay.js.map +1 -1
  12. package/dist/commonjs/funcs/aaveV3Supply.d.ts +1 -1
  13. package/dist/commonjs/funcs/aaveV3Supply.d.ts.map +1 -1
  14. package/dist/commonjs/funcs/aaveV3Supply.js +1 -1
  15. package/dist/commonjs/funcs/aaveV3Supply.js.map +1 -1
  16. package/dist/commonjs/funcs/aaveV3Withdraw.d.ts +1 -1
  17. package/dist/commonjs/funcs/aaveV3Withdraw.d.ts.map +1 -1
  18. package/dist/commonjs/funcs/aaveV3Withdraw.js +1 -1
  19. package/dist/commonjs/funcs/aaveV3Withdraw.js.map +1 -1
  20. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts +1 -1
  21. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts.map +1 -1
  22. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +1 -1
  23. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js.map +1 -1
  24. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts +1 -1
  25. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts.map +1 -1
  26. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +1 -1
  27. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js.map +1 -1
  28. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts +1 -1
  29. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts.map +1 -1
  30. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +1 -1
  31. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js.map +1 -1
  32. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts +1 -1
  33. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts.map +1 -1
  34. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +1 -1
  35. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js.map +1 -1
  36. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts +1 -1
  37. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts.map +1 -1
  38. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js +1 -1
  39. package/dist/commonjs/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js.map +1 -1
  40. package/dist/commonjs/funcs/morphoAllowance.d.ts +1 -1
  41. package/dist/commonjs/funcs/morphoAllowance.d.ts.map +1 -1
  42. package/dist/commonjs/funcs/morphoAllowance.js +1 -1
  43. package/dist/commonjs/funcs/morphoAllowance.js.map +1 -1
  44. package/dist/commonjs/funcs/morphoBorrow.d.ts +1 -1
  45. package/dist/commonjs/funcs/morphoBorrow.d.ts.map +1 -1
  46. package/dist/commonjs/funcs/morphoBorrow.js +1 -1
  47. package/dist/commonjs/funcs/morphoBorrow.js.map +1 -1
  48. package/dist/commonjs/funcs/morphoDeposit.d.ts +1 -1
  49. package/dist/commonjs/funcs/morphoDeposit.d.ts.map +1 -1
  50. package/dist/commonjs/funcs/morphoDeposit.js +1 -1
  51. package/dist/commonjs/funcs/morphoDeposit.js.map +1 -1
  52. package/dist/commonjs/funcs/morphoRepay.d.ts +1 -1
  53. package/dist/commonjs/funcs/morphoRepay.d.ts.map +1 -1
  54. package/dist/commonjs/funcs/morphoRepay.js +1 -1
  55. package/dist/commonjs/funcs/morphoRepay.js.map +1 -1
  56. package/dist/commonjs/funcs/morphoSupplyCollateral.d.ts +1 -1
  57. package/dist/commonjs/funcs/morphoSupplyCollateral.d.ts.map +1 -1
  58. package/dist/commonjs/funcs/morphoSupplyCollateral.js +1 -1
  59. package/dist/commonjs/funcs/morphoSupplyCollateral.js.map +1 -1
  60. package/dist/commonjs/funcs/morphoWithdraw.d.ts +1 -1
  61. package/dist/commonjs/funcs/morphoWithdraw.d.ts.map +1 -1
  62. package/dist/commonjs/funcs/morphoWithdraw.js +1 -1
  63. package/dist/commonjs/funcs/morphoWithdraw.js.map +1 -1
  64. package/dist/commonjs/funcs/morphoWithdrawCollateral.d.ts +1 -1
  65. package/dist/commonjs/funcs/morphoWithdrawCollateral.d.ts.map +1 -1
  66. package/dist/commonjs/funcs/morphoWithdrawCollateral.js +1 -1
  67. package/dist/commonjs/funcs/morphoWithdrawCollateral.js.map +1 -1
  68. package/dist/commonjs/funcs/skyBuy.d.ts +1 -1
  69. package/dist/commonjs/funcs/skyBuy.d.ts.map +1 -1
  70. package/dist/commonjs/funcs/skyBuy.js +1 -1
  71. package/dist/commonjs/funcs/skyBuy.js.map +1 -1
  72. package/dist/commonjs/funcs/skyDeposit.d.ts +1 -1
  73. package/dist/commonjs/funcs/skyDeposit.d.ts.map +1 -1
  74. package/dist/commonjs/funcs/skyDeposit.js +1 -1
  75. package/dist/commonjs/funcs/skyDeposit.js.map +1 -1
  76. package/dist/commonjs/funcs/skySell.d.ts +1 -1
  77. package/dist/commonjs/funcs/skySell.d.ts.map +1 -1
  78. package/dist/commonjs/funcs/skySell.js +1 -1
  79. package/dist/commonjs/funcs/skySell.js.map +1 -1
  80. package/dist/commonjs/funcs/skyWithdraw.d.ts +1 -1
  81. package/dist/commonjs/funcs/skyWithdraw.d.ts.map +1 -1
  82. package/dist/commonjs/funcs/skyWithdraw.js +1 -1
  83. package/dist/commonjs/funcs/skyWithdraw.js.map +1 -1
  84. package/dist/commonjs/funcs/smartAccountAccountBatchedUserOperations.d.ts +17 -0
  85. package/dist/commonjs/funcs/smartAccountAccountBatchedUserOperations.d.ts.map +1 -0
  86. package/dist/commonjs/funcs/smartAccountAccountBatchedUserOperations.js +116 -0
  87. package/dist/commonjs/funcs/smartAccountAccountBatchedUserOperations.js.map +1 -0
  88. package/dist/commonjs/funcs/tokenTransfer.d.ts +1 -1
  89. package/dist/commonjs/funcs/tokenTransfer.d.ts.map +1 -1
  90. package/dist/commonjs/funcs/tokenTransfer.js +1 -1
  91. package/dist/commonjs/funcs/tokenTransfer.js.map +1 -1
  92. package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.d.ts +1 -1
  93. package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.d.ts.map +1 -1
  94. package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.js +1 -1
  95. package/dist/commonjs/funcs/uniswapV3LiquidityProvisionIncrease.js.map +1 -1
  96. package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.d.ts +1 -1
  97. package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.d.ts.map +1 -1
  98. package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.js +1 -1
  99. package/dist/commonjs/funcs/uniswapV3LiquidityProvisionMint.js.map +1 -1
  100. package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts +1 -1
  101. package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts.map +1 -1
  102. package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.js +1 -1
  103. package/dist/commonjs/funcs/uniswapV3LiquidityProvisionWithdraw.js.map +1 -1
  104. package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.d.ts +1 -1
  105. package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.d.ts.map +1 -1
  106. package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.js +1 -1
  107. package/dist/commonjs/funcs/uniswapV3SwapBuyExactly.js.map +1 -1
  108. package/dist/commonjs/funcs/uniswapV3SwapSellExactly.d.ts +1 -1
  109. package/dist/commonjs/funcs/uniswapV3SwapSellExactly.d.ts.map +1 -1
  110. package/dist/commonjs/funcs/uniswapV3SwapSellExactly.js +1 -1
  111. package/dist/commonjs/funcs/uniswapV3SwapSellExactly.js.map +1 -1
  112. package/dist/commonjs/funcs/universalAllowanceSet.d.ts +1 -1
  113. package/dist/commonjs/funcs/universalAllowanceSet.d.ts.map +1 -1
  114. package/dist/commonjs/funcs/universalAllowanceSet.js +1 -1
  115. package/dist/commonjs/funcs/universalAllowanceSet.js.map +1 -1
  116. package/dist/commonjs/funcs/universalUnwrapWeth.d.ts +1 -1
  117. package/dist/commonjs/funcs/universalUnwrapWeth.d.ts.map +1 -1
  118. package/dist/commonjs/funcs/universalUnwrapWeth.js +1 -1
  119. package/dist/commonjs/funcs/universalUnwrapWeth.js.map +1 -1
  120. package/dist/commonjs/funcs/universalWrapEth.d.ts +1 -1
  121. package/dist/commonjs/funcs/universalWrapEth.d.ts.map +1 -1
  122. package/dist/commonjs/funcs/universalWrapEth.js +1 -1
  123. package/dist/commonjs/funcs/universalWrapEth.js.map +1 -1
  124. package/dist/commonjs/lib/config.d.ts +3 -3
  125. package/dist/commonjs/lib/config.js +3 -3
  126. package/dist/commonjs/lib/config.js.map +1 -1
  127. package/dist/commonjs/mcp-server/cli/start/impl.js +2 -2
  128. package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
  129. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  130. package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
  131. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  132. package/dist/commonjs/mcp-server/server.js +3 -1
  133. package/dist/commonjs/mcp-server/server.js.map +1 -1
  134. package/dist/commonjs/mcp-server/tools/smartAccountAccountBatchedUserOperations.d.ts +8 -0
  135. package/dist/commonjs/mcp-server/tools/smartAccountAccountBatchedUserOperations.d.ts.map +1 -0
  136. package/dist/commonjs/mcp-server/tools/smartAccountAccountBatchedUserOperations.js +64 -0
  137. package/dist/commonjs/mcp-server/tools/smartAccountAccountBatchedUserOperations.js.map +1 -0
  138. package/dist/commonjs/models/components/batcheduseroperationsrequest.d.ts +46 -0
  139. package/dist/commonjs/models/components/batcheduseroperationsrequest.d.ts.map +1 -0
  140. package/dist/commonjs/models/components/batcheduseroperationsrequest.js +82 -0
  141. package/dist/commonjs/models/components/batcheduseroperationsrequest.js.map +1 -0
  142. package/dist/commonjs/models/components/batcheduseroperationsresponse.d.ts +33 -0
  143. package/dist/commonjs/models/components/batcheduseroperationsresponse.d.ts.map +1 -0
  144. package/dist/commonjs/models/components/batcheduseroperationsresponse.js +70 -0
  145. package/dist/commonjs/models/components/batcheduseroperationsresponse.js.map +1 -0
  146. package/dist/commonjs/models/components/index.d.ts +5 -1
  147. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  148. package/dist/commonjs/models/components/index.js +5 -1
  149. package/dist/commonjs/models/components/index.js.map +1 -1
  150. package/dist/commonjs/models/components/multicallexecuterequest.d.ts +3 -3
  151. package/dist/commonjs/models/components/multicallexecuterequest.d.ts.map +1 -1
  152. package/dist/commonjs/models/components/multicallexecuterequest.js +3 -3
  153. package/dist/commonjs/models/components/multicallexecuterequest.js.map +1 -1
  154. package/dist/commonjs/models/components/txresponse.d.ts +27 -0
  155. package/dist/commonjs/models/components/txresponse.d.ts.map +1 -0
  156. package/dist/commonjs/models/components/txresponse.js +73 -0
  157. package/dist/commonjs/models/components/txresponse.js.map +1 -0
  158. package/dist/commonjs/models/components/{multicallaction.d.ts → useroperation.d.ts} +14 -14
  159. package/dist/commonjs/models/components/useroperation.d.ts.map +1 -0
  160. package/dist/commonjs/models/components/{multicallaction.js → useroperation.js} +17 -17
  161. package/dist/commonjs/models/components/useroperation.js.map +1 -0
  162. package/dist/commonjs/models/components/useroperationresponse.d.ts +42 -0
  163. package/dist/commonjs/models/components/useroperationresponse.d.ts.map +1 -0
  164. package/dist/commonjs/models/components/useroperationresponse.js +73 -0
  165. package/dist/commonjs/models/components/useroperationresponse.js.map +1 -0
  166. package/dist/commonjs/sdk/aavev3.d.ts +4 -4
  167. package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
  168. package/dist/commonjs/sdk/aerodromeslipstream.d.ts +5 -5
  169. package/dist/commonjs/sdk/aerodromeslipstream.d.ts.map +1 -1
  170. package/dist/commonjs/sdk/morpho.d.ts +7 -7
  171. package/dist/commonjs/sdk/morpho.d.ts.map +1 -1
  172. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  173. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  174. package/dist/commonjs/sdk/sdk.js +4 -0
  175. package/dist/commonjs/sdk/sdk.js.map +1 -1
  176. package/dist/commonjs/sdk/sky.d.ts +4 -4
  177. package/dist/commonjs/sdk/sky.d.ts.map +1 -1
  178. package/dist/commonjs/sdk/smartaccount.d.ts +12 -0
  179. package/dist/commonjs/sdk/smartaccount.d.ts.map +1 -0
  180. package/dist/commonjs/sdk/smartaccount.js +22 -0
  181. package/dist/commonjs/sdk/smartaccount.js.map +1 -0
  182. package/dist/commonjs/sdk/token.d.ts +1 -1
  183. package/dist/commonjs/sdk/token.d.ts.map +1 -1
  184. package/dist/commonjs/sdk/uniswapv3.d.ts +5 -5
  185. package/dist/commonjs/sdk/uniswapv3.d.ts.map +1 -1
  186. package/dist/commonjs/sdk/universal.d.ts +3 -3
  187. package/dist/commonjs/sdk/universal.d.ts.map +1 -1
  188. package/dist/esm/funcs/aaveV3Borrow.d.ts +1 -1
  189. package/dist/esm/funcs/aaveV3Borrow.d.ts.map +1 -1
  190. package/dist/esm/funcs/aaveV3Borrow.js +1 -1
  191. package/dist/esm/funcs/aaveV3Borrow.js.map +1 -1
  192. package/dist/esm/funcs/aaveV3Repay.d.ts +1 -1
  193. package/dist/esm/funcs/aaveV3Repay.d.ts.map +1 -1
  194. package/dist/esm/funcs/aaveV3Repay.js +1 -1
  195. package/dist/esm/funcs/aaveV3Repay.js.map +1 -1
  196. package/dist/esm/funcs/aaveV3Supply.d.ts +1 -1
  197. package/dist/esm/funcs/aaveV3Supply.d.ts.map +1 -1
  198. package/dist/esm/funcs/aaveV3Supply.js +1 -1
  199. package/dist/esm/funcs/aaveV3Supply.js.map +1 -1
  200. package/dist/esm/funcs/aaveV3Withdraw.d.ts +1 -1
  201. package/dist/esm/funcs/aaveV3Withdraw.d.ts.map +1 -1
  202. package/dist/esm/funcs/aaveV3Withdraw.js +1 -1
  203. package/dist/esm/funcs/aaveV3Withdraw.js.map +1 -1
  204. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts +1 -1
  205. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.d.ts.map +1 -1
  206. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js +1 -1
  207. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.js.map +1 -1
  208. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts +1 -1
  209. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.d.ts.map +1 -1
  210. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js +1 -1
  211. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.js.map +1 -1
  212. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts +1 -1
  213. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.d.ts.map +1 -1
  214. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js +1 -1
  215. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.js.map +1 -1
  216. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts +1 -1
  217. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.d.ts.map +1 -1
  218. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js +1 -1
  219. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.js.map +1 -1
  220. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts +1 -1
  221. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.d.ts.map +1 -1
  222. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js +1 -1
  223. package/dist/esm/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.js.map +1 -1
  224. package/dist/esm/funcs/morphoAllowance.d.ts +1 -1
  225. package/dist/esm/funcs/morphoAllowance.d.ts.map +1 -1
  226. package/dist/esm/funcs/morphoAllowance.js +1 -1
  227. package/dist/esm/funcs/morphoAllowance.js.map +1 -1
  228. package/dist/esm/funcs/morphoBorrow.d.ts +1 -1
  229. package/dist/esm/funcs/morphoBorrow.d.ts.map +1 -1
  230. package/dist/esm/funcs/morphoBorrow.js +1 -1
  231. package/dist/esm/funcs/morphoBorrow.js.map +1 -1
  232. package/dist/esm/funcs/morphoDeposit.d.ts +1 -1
  233. package/dist/esm/funcs/morphoDeposit.d.ts.map +1 -1
  234. package/dist/esm/funcs/morphoDeposit.js +1 -1
  235. package/dist/esm/funcs/morphoDeposit.js.map +1 -1
  236. package/dist/esm/funcs/morphoRepay.d.ts +1 -1
  237. package/dist/esm/funcs/morphoRepay.d.ts.map +1 -1
  238. package/dist/esm/funcs/morphoRepay.js +1 -1
  239. package/dist/esm/funcs/morphoRepay.js.map +1 -1
  240. package/dist/esm/funcs/morphoSupplyCollateral.d.ts +1 -1
  241. package/dist/esm/funcs/morphoSupplyCollateral.d.ts.map +1 -1
  242. package/dist/esm/funcs/morphoSupplyCollateral.js +1 -1
  243. package/dist/esm/funcs/morphoSupplyCollateral.js.map +1 -1
  244. package/dist/esm/funcs/morphoWithdraw.d.ts +1 -1
  245. package/dist/esm/funcs/morphoWithdraw.d.ts.map +1 -1
  246. package/dist/esm/funcs/morphoWithdraw.js +1 -1
  247. package/dist/esm/funcs/morphoWithdraw.js.map +1 -1
  248. package/dist/esm/funcs/morphoWithdrawCollateral.d.ts +1 -1
  249. package/dist/esm/funcs/morphoWithdrawCollateral.d.ts.map +1 -1
  250. package/dist/esm/funcs/morphoWithdrawCollateral.js +1 -1
  251. package/dist/esm/funcs/morphoWithdrawCollateral.js.map +1 -1
  252. package/dist/esm/funcs/skyBuy.d.ts +1 -1
  253. package/dist/esm/funcs/skyBuy.d.ts.map +1 -1
  254. package/dist/esm/funcs/skyBuy.js +1 -1
  255. package/dist/esm/funcs/skyBuy.js.map +1 -1
  256. package/dist/esm/funcs/skyDeposit.d.ts +1 -1
  257. package/dist/esm/funcs/skyDeposit.d.ts.map +1 -1
  258. package/dist/esm/funcs/skyDeposit.js +1 -1
  259. package/dist/esm/funcs/skyDeposit.js.map +1 -1
  260. package/dist/esm/funcs/skySell.d.ts +1 -1
  261. package/dist/esm/funcs/skySell.d.ts.map +1 -1
  262. package/dist/esm/funcs/skySell.js +1 -1
  263. package/dist/esm/funcs/skySell.js.map +1 -1
  264. package/dist/esm/funcs/skyWithdraw.d.ts +1 -1
  265. package/dist/esm/funcs/skyWithdraw.d.ts.map +1 -1
  266. package/dist/esm/funcs/skyWithdraw.js +1 -1
  267. package/dist/esm/funcs/skyWithdraw.js.map +1 -1
  268. package/dist/esm/funcs/smartAccountAccountBatchedUserOperations.d.ts +17 -0
  269. package/dist/esm/funcs/smartAccountAccountBatchedUserOperations.d.ts.map +1 -0
  270. package/dist/esm/funcs/smartAccountAccountBatchedUserOperations.js +80 -0
  271. package/dist/esm/funcs/smartAccountAccountBatchedUserOperations.js.map +1 -0
  272. package/dist/esm/funcs/tokenTransfer.d.ts +1 -1
  273. package/dist/esm/funcs/tokenTransfer.d.ts.map +1 -1
  274. package/dist/esm/funcs/tokenTransfer.js +1 -1
  275. package/dist/esm/funcs/tokenTransfer.js.map +1 -1
  276. package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.d.ts +1 -1
  277. package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.d.ts.map +1 -1
  278. package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.js +1 -1
  279. package/dist/esm/funcs/uniswapV3LiquidityProvisionIncrease.js.map +1 -1
  280. package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.d.ts +1 -1
  281. package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.d.ts.map +1 -1
  282. package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.js +1 -1
  283. package/dist/esm/funcs/uniswapV3LiquidityProvisionMint.js.map +1 -1
  284. package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts +1 -1
  285. package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.d.ts.map +1 -1
  286. package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.js +1 -1
  287. package/dist/esm/funcs/uniswapV3LiquidityProvisionWithdraw.js.map +1 -1
  288. package/dist/esm/funcs/uniswapV3SwapBuyExactly.d.ts +1 -1
  289. package/dist/esm/funcs/uniswapV3SwapBuyExactly.d.ts.map +1 -1
  290. package/dist/esm/funcs/uniswapV3SwapBuyExactly.js +1 -1
  291. package/dist/esm/funcs/uniswapV3SwapBuyExactly.js.map +1 -1
  292. package/dist/esm/funcs/uniswapV3SwapSellExactly.d.ts +1 -1
  293. package/dist/esm/funcs/uniswapV3SwapSellExactly.d.ts.map +1 -1
  294. package/dist/esm/funcs/uniswapV3SwapSellExactly.js +1 -1
  295. package/dist/esm/funcs/uniswapV3SwapSellExactly.js.map +1 -1
  296. package/dist/esm/funcs/universalAllowanceSet.d.ts +1 -1
  297. package/dist/esm/funcs/universalAllowanceSet.d.ts.map +1 -1
  298. package/dist/esm/funcs/universalAllowanceSet.js +1 -1
  299. package/dist/esm/funcs/universalAllowanceSet.js.map +1 -1
  300. package/dist/esm/funcs/universalUnwrapWeth.d.ts +1 -1
  301. package/dist/esm/funcs/universalUnwrapWeth.d.ts.map +1 -1
  302. package/dist/esm/funcs/universalUnwrapWeth.js +1 -1
  303. package/dist/esm/funcs/universalUnwrapWeth.js.map +1 -1
  304. package/dist/esm/funcs/universalWrapEth.d.ts +1 -1
  305. package/dist/esm/funcs/universalWrapEth.d.ts.map +1 -1
  306. package/dist/esm/funcs/universalWrapEth.js +1 -1
  307. package/dist/esm/funcs/universalWrapEth.js.map +1 -1
  308. package/dist/esm/lib/config.d.ts +3 -3
  309. package/dist/esm/lib/config.js +3 -3
  310. package/dist/esm/lib/config.js.map +1 -1
  311. package/dist/esm/mcp-server/cli/start/impl.js +2 -2
  312. package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
  313. package/dist/esm/mcp-server/mcp-server.js +1 -1
  314. package/dist/esm/mcp-server/mcp-server.js.map +1 -1
  315. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  316. package/dist/esm/mcp-server/server.js +3 -1
  317. package/dist/esm/mcp-server/server.js.map +1 -1
  318. package/dist/esm/mcp-server/tools/smartAccountAccountBatchedUserOperations.d.ts +8 -0
  319. package/dist/esm/mcp-server/tools/smartAccountAccountBatchedUserOperations.d.ts.map +1 -0
  320. package/dist/esm/mcp-server/tools/smartAccountAccountBatchedUserOperations.js +28 -0
  321. package/dist/esm/mcp-server/tools/smartAccountAccountBatchedUserOperations.js.map +1 -0
  322. package/dist/esm/models/components/batcheduseroperationsrequest.d.ts +46 -0
  323. package/dist/esm/models/components/batcheduseroperationsrequest.d.ts.map +1 -0
  324. package/dist/esm/models/components/batcheduseroperationsrequest.js +44 -0
  325. package/dist/esm/models/components/batcheduseroperationsrequest.js.map +1 -0
  326. package/dist/esm/models/components/batcheduseroperationsresponse.d.ts +33 -0
  327. package/dist/esm/models/components/batcheduseroperationsresponse.d.ts.map +1 -0
  328. package/dist/esm/models/components/batcheduseroperationsresponse.js +32 -0
  329. package/dist/esm/models/components/batcheduseroperationsresponse.js.map +1 -0
  330. package/dist/esm/models/components/index.d.ts +5 -1
  331. package/dist/esm/models/components/index.d.ts.map +1 -1
  332. package/dist/esm/models/components/index.js +5 -1
  333. package/dist/esm/models/components/index.js.map +1 -1
  334. package/dist/esm/models/components/multicallexecuterequest.d.ts +3 -3
  335. package/dist/esm/models/components/multicallexecuterequest.d.ts.map +1 -1
  336. package/dist/esm/models/components/multicallexecuterequest.js +3 -3
  337. package/dist/esm/models/components/multicallexecuterequest.js.map +1 -1
  338. package/dist/esm/models/components/txresponse.d.ts +27 -0
  339. package/dist/esm/models/components/txresponse.d.ts.map +1 -0
  340. package/dist/esm/models/components/txresponse.js +35 -0
  341. package/dist/esm/models/components/txresponse.js.map +1 -0
  342. package/dist/esm/models/components/{multicallaction.d.ts → useroperation.d.ts} +14 -14
  343. package/dist/esm/models/components/useroperation.d.ts.map +1 -0
  344. package/dist/esm/models/components/{multicallaction.js → useroperation.js} +14 -14
  345. package/dist/esm/models/components/useroperation.js.map +1 -0
  346. package/dist/esm/models/components/useroperationresponse.d.ts +42 -0
  347. package/dist/esm/models/components/useroperationresponse.d.ts.map +1 -0
  348. package/dist/esm/models/components/useroperationresponse.js +35 -0
  349. package/dist/esm/models/components/useroperationresponse.js.map +1 -0
  350. package/dist/esm/sdk/aavev3.d.ts +4 -4
  351. package/dist/esm/sdk/aavev3.d.ts.map +1 -1
  352. package/dist/esm/sdk/aerodromeslipstream.d.ts +5 -5
  353. package/dist/esm/sdk/aerodromeslipstream.d.ts.map +1 -1
  354. package/dist/esm/sdk/morpho.d.ts +7 -7
  355. package/dist/esm/sdk/morpho.d.ts.map +1 -1
  356. package/dist/esm/sdk/sdk.d.ts +3 -0
  357. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  358. package/dist/esm/sdk/sdk.js +4 -0
  359. package/dist/esm/sdk/sdk.js.map +1 -1
  360. package/dist/esm/sdk/sky.d.ts +4 -4
  361. package/dist/esm/sdk/sky.d.ts.map +1 -1
  362. package/dist/esm/sdk/smartaccount.d.ts +12 -0
  363. package/dist/esm/sdk/smartaccount.d.ts.map +1 -0
  364. package/dist/esm/sdk/smartaccount.js +18 -0
  365. package/dist/esm/sdk/smartaccount.js.map +1 -0
  366. package/dist/esm/sdk/token.d.ts +1 -1
  367. package/dist/esm/sdk/token.d.ts.map +1 -1
  368. package/dist/esm/sdk/uniswapv3.d.ts +5 -5
  369. package/dist/esm/sdk/uniswapv3.d.ts.map +1 -1
  370. package/dist/esm/sdk/universal.d.ts +3 -3
  371. package/dist/esm/sdk/universal.d.ts.map +1 -1
  372. package/docs/sdks/aavev3/README.md +4 -4
  373. package/docs/sdks/aerodromeslipstream/README.md +13 -13
  374. package/docs/sdks/morpho/README.md +7 -7
  375. package/docs/sdks/sky/README.md +4 -4
  376. package/docs/sdks/smartaccount/README.md +105 -0
  377. package/docs/sdks/token/README.md +1 -1
  378. package/docs/sdks/transactionbatching/README.md +10 -16
  379. package/docs/sdks/uniswapv3/README.md +7 -7
  380. package/docs/sdks/universal/README.md +3 -3
  381. package/jsr.json +1 -1
  382. package/package.json +1 -1
  383. package/src/funcs/aaveV3Borrow.ts +4 -4
  384. package/src/funcs/aaveV3Repay.ts +4 -4
  385. package/src/funcs/aaveV3Supply.ts +4 -4
  386. package/src/funcs/aaveV3Withdraw.ts +4 -4
  387. package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionIncrease.ts +4 -4
  388. package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionMint.ts +4 -4
  389. package/src/funcs/aerodromeSlipstreamSlipstreamLiquidityProvisionWithdraw.ts +4 -4
  390. package/src/funcs/aerodromeSlipstreamSlipstreamSwapBuyExactly.ts +4 -4
  391. package/src/funcs/aerodromeSlipstreamSlipstreamSwapSellExactly.ts +4 -4
  392. package/src/funcs/morphoAllowance.ts +4 -4
  393. package/src/funcs/morphoBorrow.ts +4 -4
  394. package/src/funcs/morphoDeposit.ts +4 -4
  395. package/src/funcs/morphoRepay.ts +4 -4
  396. package/src/funcs/morphoSupplyCollateral.ts +4 -4
  397. package/src/funcs/morphoWithdraw.ts +4 -4
  398. package/src/funcs/morphoWithdrawCollateral.ts +4 -4
  399. package/src/funcs/skyBuy.ts +4 -4
  400. package/src/funcs/skyDeposit.ts +4 -4
  401. package/src/funcs/skySell.ts +4 -4
  402. package/src/funcs/skyWithdraw.ts +4 -4
  403. package/src/funcs/smartAccountAccountBatchedUserOperations.ts +164 -0
  404. package/src/funcs/tokenTransfer.ts +4 -4
  405. package/src/funcs/uniswapV3LiquidityProvisionIncrease.ts +4 -4
  406. package/src/funcs/uniswapV3LiquidityProvisionMint.ts +4 -4
  407. package/src/funcs/uniswapV3LiquidityProvisionWithdraw.ts +4 -4
  408. package/src/funcs/uniswapV3SwapBuyExactly.ts +4 -4
  409. package/src/funcs/uniswapV3SwapSellExactly.ts +4 -4
  410. package/src/funcs/universalAllowanceSet.ts +4 -4
  411. package/src/funcs/universalUnwrapWeth.ts +4 -4
  412. package/src/funcs/universalWrapEth.ts +4 -4
  413. package/src/lib/config.ts +3 -3
  414. package/src/mcp-server/cli/start/impl.ts +2 -2
  415. package/src/mcp-server/mcp-server.ts +1 -1
  416. package/src/mcp-server/server.ts +3 -1
  417. package/src/mcp-server/tools/smartAccountAccountBatchedUserOperations.ts +39 -0
  418. package/src/models/components/batcheduseroperationsrequest.ts +106 -0
  419. package/src/models/components/batcheduseroperationsresponse.ts +77 -0
  420. package/src/models/components/index.ts +5 -1
  421. package/src/models/components/multicallexecuterequest.ts +10 -10
  422. package/src/models/components/txresponse.ts +74 -0
  423. package/src/models/components/{multicallaction.ts → useroperation.ts} +20 -22
  424. package/src/models/components/useroperationresponse.ts +83 -0
  425. package/src/sdk/aavev3.ts +4 -4
  426. package/src/sdk/aerodromeslipstream.ts +5 -5
  427. package/src/sdk/morpho.ts +7 -7
  428. package/src/sdk/sdk.ts +6 -0
  429. package/src/sdk/sky.ts +4 -4
  430. package/src/sdk/smartaccount.ts +27 -0
  431. package/src/sdk/token.ts +1 -1
  432. package/src/sdk/uniswapv3.ts +5 -5
  433. package/src/sdk/universal.ts +3 -3
  434. package/dist/commonjs/models/components/multicallaction.d.ts.map +0 -1
  435. package/dist/commonjs/models/components/multicallaction.js.map +0 -1
  436. package/dist/esm/models/components/multicallaction.d.ts.map +0 -1
  437. package/dist/esm/models/components/multicallaction.js.map +0 -1
@@ -44,7 +44,7 @@ export function uniswapV3LiquidityProvisionMint(
44
44
  options?: RequestOptions,
45
45
  ): APIPromise<
46
46
  Result<
47
- components.UnsignedTransaction,
47
+ components.TxResponse,
48
48
  | errors.HTTPValidationError
49
49
  | APIError
50
50
  | SDKValidationError
@@ -69,7 +69,7 @@ async function $do(
69
69
  ): Promise<
70
70
  [
71
71
  Result<
72
- components.UnsignedTransaction,
72
+ components.TxResponse,
73
73
  | errors.HTTPValidationError
74
74
  | APIError
75
75
  | SDKValidationError
@@ -151,7 +151,7 @@ async function $do(
151
151
  };
152
152
 
153
153
  const [result] = await M.match<
154
- components.UnsignedTransaction,
154
+ components.TxResponse,
155
155
  | errors.HTTPValidationError
156
156
  | APIError
157
157
  | SDKValidationError
@@ -161,7 +161,7 @@ async function $do(
161
161
  | RequestTimeoutError
162
162
  | ConnectionError
163
163
  >(
164
- M.json(200, components.UnsignedTransaction$inboundSchema),
164
+ M.json(200, components.TxResponse$inboundSchema),
165
165
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
166
166
  M.fail("4XX"),
167
167
  M.fail("5XX"),
@@ -45,7 +45,7 @@ export function uniswapV3LiquidityProvisionWithdraw(
45
45
  options?: RequestOptions,
46
46
  ): APIPromise<
47
47
  Result<
48
- components.UnsignedTransaction,
48
+ components.TxResponse,
49
49
  | errors.HTTPValidationError
50
50
  | APIError
51
51
  | SDKValidationError
@@ -70,7 +70,7 @@ async function $do(
70
70
  ): Promise<
71
71
  [
72
72
  Result<
73
- components.UnsignedTransaction,
73
+ components.TxResponse,
74
74
  | errors.HTTPValidationError
75
75
  | APIError
76
76
  | SDKValidationError
@@ -152,7 +152,7 @@ async function $do(
152
152
  };
153
153
 
154
154
  const [result] = await M.match<
155
- components.UnsignedTransaction,
155
+ components.TxResponse,
156
156
  | errors.HTTPValidationError
157
157
  | APIError
158
158
  | SDKValidationError
@@ -162,7 +162,7 @@ async function $do(
162
162
  | RequestTimeoutError
163
163
  | ConnectionError
164
164
  >(
165
- M.json(200, components.UnsignedTransaction$inboundSchema),
165
+ M.json(200, components.TxResponse$inboundSchema),
166
166
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
167
167
  M.fail("4XX"),
168
168
  M.fail("5XX"),
@@ -42,7 +42,7 @@ export function uniswapV3SwapBuyExactly(
42
42
  options?: RequestOptions,
43
43
  ): APIPromise<
44
44
  Result<
45
- components.UnsignedTransaction,
45
+ components.TxResponse,
46
46
  | errors.HTTPValidationError
47
47
  | APIError
48
48
  | SDKValidationError
@@ -67,7 +67,7 @@ async function $do(
67
67
  ): Promise<
68
68
  [
69
69
  Result<
70
- components.UnsignedTransaction,
70
+ components.TxResponse,
71
71
  | errors.HTTPValidationError
72
72
  | APIError
73
73
  | SDKValidationError
@@ -146,7 +146,7 @@ async function $do(
146
146
  };
147
147
 
148
148
  const [result] = await M.match<
149
- components.UnsignedTransaction,
149
+ components.TxResponse,
150
150
  | errors.HTTPValidationError
151
151
  | APIError
152
152
  | SDKValidationError
@@ -156,7 +156,7 @@ async function $do(
156
156
  | RequestTimeoutError
157
157
  | ConnectionError
158
158
  >(
159
- M.json(200, components.UnsignedTransaction$inboundSchema),
159
+ M.json(200, components.TxResponse$inboundSchema),
160
160
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
161
161
  M.fail("4XX"),
162
162
  M.fail("5XX"),
@@ -42,7 +42,7 @@ export function uniswapV3SwapSellExactly(
42
42
  options?: RequestOptions,
43
43
  ): APIPromise<
44
44
  Result<
45
- components.UnsignedTransaction,
45
+ components.TxResponse,
46
46
  | errors.HTTPValidationError
47
47
  | APIError
48
48
  | SDKValidationError
@@ -67,7 +67,7 @@ async function $do(
67
67
  ): Promise<
68
68
  [
69
69
  Result<
70
- components.UnsignedTransaction,
70
+ components.TxResponse,
71
71
  | errors.HTTPValidationError
72
72
  | APIError
73
73
  | SDKValidationError
@@ -146,7 +146,7 @@ async function $do(
146
146
  };
147
147
 
148
148
  const [result] = await M.match<
149
- components.UnsignedTransaction,
149
+ components.TxResponse,
150
150
  | errors.HTTPValidationError
151
151
  | APIError
152
152
  | SDKValidationError
@@ -156,7 +156,7 @@ async function $do(
156
156
  | RequestTimeoutError
157
157
  | ConnectionError
158
158
  >(
159
- M.json(200, components.UnsignedTransaction$inboundSchema),
159
+ M.json(200, components.TxResponse$inboundSchema),
160
160
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
161
161
  M.fail("4XX"),
162
162
  M.fail("5XX"),
@@ -42,7 +42,7 @@ export function universalAllowanceSet(
42
42
  options?: RequestOptions,
43
43
  ): APIPromise<
44
44
  Result<
45
- components.UnsignedTransaction,
45
+ components.TxResponse,
46
46
  | errors.HTTPValidationError
47
47
  | APIError
48
48
  | SDKValidationError
@@ -67,7 +67,7 @@ async function $do(
67
67
  ): Promise<
68
68
  [
69
69
  Result<
70
- components.UnsignedTransaction,
70
+ components.TxResponse,
71
71
  | errors.HTTPValidationError
72
72
  | APIError
73
73
  | SDKValidationError
@@ -146,7 +146,7 @@ async function $do(
146
146
  };
147
147
 
148
148
  const [result] = await M.match<
149
- components.UnsignedTransaction,
149
+ components.TxResponse,
150
150
  | errors.HTTPValidationError
151
151
  | APIError
152
152
  | SDKValidationError
@@ -156,7 +156,7 @@ async function $do(
156
156
  | RequestTimeoutError
157
157
  | ConnectionError
158
158
  >(
159
- M.json(200, components.UnsignedTransaction$inboundSchema),
159
+ M.json(200, components.TxResponse$inboundSchema),
160
160
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
161
161
  M.fail("4XX"),
162
162
  M.fail("5XX"),
@@ -37,7 +37,7 @@ export function universalUnwrapWeth(
37
37
  options?: RequestOptions,
38
38
  ): APIPromise<
39
39
  Result<
40
- components.UnsignedTransaction,
40
+ components.TxResponse,
41
41
  | errors.HTTPValidationError
42
42
  | APIError
43
43
  | SDKValidationError
@@ -62,7 +62,7 @@ async function $do(
62
62
  ): Promise<
63
63
  [
64
64
  Result<
65
- components.UnsignedTransaction,
65
+ components.TxResponse,
66
66
  | errors.HTTPValidationError
67
67
  | APIError
68
68
  | SDKValidationError
@@ -141,7 +141,7 @@ async function $do(
141
141
  };
142
142
 
143
143
  const [result] = await M.match<
144
- components.UnsignedTransaction,
144
+ components.TxResponse,
145
145
  | errors.HTTPValidationError
146
146
  | APIError
147
147
  | SDKValidationError
@@ -151,7 +151,7 @@ async function $do(
151
151
  | RequestTimeoutError
152
152
  | ConnectionError
153
153
  >(
154
- M.json(200, components.UnsignedTransaction$inboundSchema),
154
+ M.json(200, components.TxResponse$inboundSchema),
155
155
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
156
156
  M.fail("4XX"),
157
157
  M.fail("5XX"),
@@ -37,7 +37,7 @@ export function universalWrapEth(
37
37
  options?: RequestOptions,
38
38
  ): APIPromise<
39
39
  Result<
40
- components.UnsignedTransaction,
40
+ components.TxResponse,
41
41
  | errors.HTTPValidationError
42
42
  | APIError
43
43
  | SDKValidationError
@@ -62,7 +62,7 @@ async function $do(
62
62
  ): Promise<
63
63
  [
64
64
  Result<
65
- components.UnsignedTransaction,
65
+ components.TxResponse,
66
66
  | errors.HTTPValidationError
67
67
  | APIError
68
68
  | SDKValidationError
@@ -141,7 +141,7 @@ async function $do(
141
141
  };
142
142
 
143
143
  const [result] = await M.match<
144
- components.UnsignedTransaction,
144
+ components.TxResponse,
145
145
  | errors.HTTPValidationError
146
146
  | APIError
147
147
  | SDKValidationError
@@ -151,7 +151,7 @@ async function $do(
151
151
  | RequestTimeoutError
152
152
  | ConnectionError
153
153
  >(
154
- M.json(200, components.UnsignedTransaction$inboundSchema),
154
+ M.json(200, components.TxResponse$inboundSchema),
155
155
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
156
156
  M.fail("4XX"),
157
157
  M.fail("5XX"),
package/src/lib/config.ts CHANGED
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
57
57
  export const SDK_METADATA = {
58
58
  language: "typescript",
59
59
  openapiDocVersion: "0.0.1",
60
- sdkVersion: "0.0.39",
61
- genVersion: "2.604.4",
60
+ sdkVersion: "0.1.1",
61
+ genVersion: "2.605.6",
62
62
  userAgent:
63
- "speakeasy-sdk/typescript 0.0.39 2.604.4 0.0.1 @compass-labs/api-sdk",
63
+ "speakeasy-sdk/typescript 0.1.1 2.605.6 0.0.1 @compass-labs/api-sdk",
64
64
  } as const;
@@ -50,7 +50,7 @@ async function startStdio(flags: StartCommandFlags) {
50
50
  logger,
51
51
  allowedTools: flags.tool,
52
52
  scopes: flags.scope,
53
- ...{ apiKeyAuth: flags["api-key-auth"] },
53
+ ...{ apiKeyAuth: flags["api-key-auth"] ?? "" },
54
54
  serverURL: flags["server-url"],
55
55
  serverIdx: flags["server-index"],
56
56
  });
@@ -71,7 +71,7 @@ async function startSSE(flags: StartCommandFlags) {
71
71
  logger,
72
72
  allowedTools: flags.tool,
73
73
  scopes: flags.scope,
74
- ...{ apiKeyAuth: flags["api-key-auth"] },
74
+ ...{ apiKeyAuth: flags["api-key-auth"] ?? "" },
75
75
  serverURL: flags["server-url"],
76
76
  serverIdx: flags["server-index"],
77
77
  });
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.0.39",
22
+ currentVersion: "0.1.1",
23
23
  },
24
24
  });
25
25
 
@@ -52,6 +52,7 @@ import { tool$skyDeposit } from "./tools/skyDeposit.js";
52
52
  import { tool$skyPosition } from "./tools/skyPosition.js";
53
53
  import { tool$skySell } from "./tools/skySell.js";
54
54
  import { tool$skyWithdraw } from "./tools/skyWithdraw.js";
55
+ import { tool$smartAccountAccountBatchedUserOperations } from "./tools/smartAccountAccountBatchedUserOperations.js";
55
56
  import { tool$tokenAddress } from "./tools/tokenAddress.js";
56
57
  import { tool$tokenBalance } from "./tools/tokenBalance.js";
57
58
  import { tool$tokenPrice } from "./tools/tokenPrice.js";
@@ -88,7 +89,7 @@ export function createMCPServer(deps: {
88
89
  }) {
89
90
  const server = new McpServer({
90
91
  name: "CompassApiSDK",
91
- version: "0.0.39",
92
+ version: "0.1.1",
92
93
  });
93
94
 
94
95
  const client = new CompassApiSDKCore({
@@ -182,6 +183,7 @@ export function createMCPServer(deps: {
182
183
  tool(tool$transactionBatchingAuthorization);
183
184
  tool(tool$transactionBatchingExecute);
184
185
  tool(tool$transactionBatchingAaveLoop);
186
+ tool(tool$smartAccountAccountBatchedUserOperations);
185
187
 
186
188
  return server;
187
189
  }
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { smartAccountAccountBatchedUserOperations } from "../../funcs/smartAccountAccountBatchedUserOperations.js";
6
+ import * as components from "../../models/components/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: components.BatchedUserOperationsRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$smartAccountAccountBatchedUserOperations: ToolDefinition<
14
+ typeof args
15
+ > = {
16
+ name: "smart-account-account-batched-user-operations",
17
+ description: `Get Smart Account Batched User Operations
18
+
19
+ Generate a list of user operations for smart account batching.`,
20
+ args,
21
+ tool: async (client, args, ctx) => {
22
+ const [result, apiCall] = await smartAccountAccountBatchedUserOperations(
23
+ client,
24
+ args.request,
25
+ { fetchOptions: { signal: ctx.signal } },
26
+ ).$inspect();
27
+
28
+ if (!result.ok) {
29
+ return {
30
+ content: [{ type: "text", text: result.error.message }],
31
+ isError: true,
32
+ };
33
+ }
34
+
35
+ const value = result.value;
36
+
37
+ return formatResult(value, apiCall);
38
+ },
39
+ };
@@ -0,0 +1,106 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import {
8
+ collectExtraKeys as collectExtraKeys$,
9
+ safeParse,
10
+ } from "../../lib/schemas.js";
11
+ import { Result as SafeParseResult } from "../../types/fp.js";
12
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
+ import { Chain, Chain$inboundSchema, Chain$outboundSchema } from "./chain.js";
14
+ import {
15
+ UserOperation,
16
+ UserOperation$inboundSchema,
17
+ UserOperation$Outbound,
18
+ UserOperation$outboundSchema,
19
+ } from "./useroperation.js";
20
+
21
+ /**
22
+ * Request model for batching user operations.
23
+ */
24
+ export type BatchedUserOperationsRequest = {
25
+ /**
26
+ * The chain to use.
27
+ */
28
+ chain: Chain;
29
+ /**
30
+ * List of possible user operations
31
+ */
32
+ operations: Array<UserOperation>;
33
+ additionalProperties?: { [k: string]: any };
34
+ };
35
+
36
+ /** @internal */
37
+ export const BatchedUserOperationsRequest$inboundSchema: z.ZodType<
38
+ BatchedUserOperationsRequest,
39
+ z.ZodTypeDef,
40
+ unknown
41
+ > = collectExtraKeys$(
42
+ z.object({
43
+ chain: Chain$inboundSchema,
44
+ operations: z.array(UserOperation$inboundSchema),
45
+ }).catchall(z.any()),
46
+ "additionalProperties",
47
+ true,
48
+ );
49
+
50
+ /** @internal */
51
+ export type BatchedUserOperationsRequest$Outbound = {
52
+ chain: string;
53
+ operations: Array<UserOperation$Outbound>;
54
+ [additionalProperties: string]: unknown;
55
+ };
56
+
57
+ /** @internal */
58
+ export const BatchedUserOperationsRequest$outboundSchema: z.ZodType<
59
+ BatchedUserOperationsRequest$Outbound,
60
+ z.ZodTypeDef,
61
+ BatchedUserOperationsRequest
62
+ > = z.object({
63
+ chain: Chain$outboundSchema,
64
+ operations: z.array(UserOperation$outboundSchema),
65
+ additionalProperties: z.record(z.any()),
66
+ }).transform((v) => {
67
+ return {
68
+ ...v.additionalProperties,
69
+ ...remap$(v, {
70
+ additionalProperties: null,
71
+ }),
72
+ };
73
+ });
74
+
75
+ /**
76
+ * @internal
77
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
78
+ */
79
+ export namespace BatchedUserOperationsRequest$ {
80
+ /** @deprecated use `BatchedUserOperationsRequest$inboundSchema` instead. */
81
+ export const inboundSchema = BatchedUserOperationsRequest$inboundSchema;
82
+ /** @deprecated use `BatchedUserOperationsRequest$outboundSchema` instead. */
83
+ export const outboundSchema = BatchedUserOperationsRequest$outboundSchema;
84
+ /** @deprecated use `BatchedUserOperationsRequest$Outbound` instead. */
85
+ export type Outbound = BatchedUserOperationsRequest$Outbound;
86
+ }
87
+
88
+ export function batchedUserOperationsRequestToJSON(
89
+ batchedUserOperationsRequest: BatchedUserOperationsRequest,
90
+ ): string {
91
+ return JSON.stringify(
92
+ BatchedUserOperationsRequest$outboundSchema.parse(
93
+ batchedUserOperationsRequest,
94
+ ),
95
+ );
96
+ }
97
+
98
+ export function batchedUserOperationsRequestFromJSON(
99
+ jsonString: string,
100
+ ): SafeParseResult<BatchedUserOperationsRequest, SDKValidationError> {
101
+ return safeParse(
102
+ jsonString,
103
+ (x) => BatchedUserOperationsRequest$inboundSchema.parse(JSON.parse(x)),
104
+ `Failed to parse 'BatchedUserOperationsRequest' from JSON`,
105
+ );
106
+ }
@@ -0,0 +1,77 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
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
+ UserOperationResponse,
11
+ UserOperationResponse$inboundSchema,
12
+ UserOperationResponse$Outbound,
13
+ UserOperationResponse$outboundSchema,
14
+ } from "./useroperationresponse.js";
15
+
16
+ export type BatchedUserOperationsResponse = {
17
+ /**
18
+ * List of user operations to be batched and executed by the smart account.
19
+ */
20
+ operations: Array<UserOperationResponse>;
21
+ };
22
+
23
+ /** @internal */
24
+ export const BatchedUserOperationsResponse$inboundSchema: z.ZodType<
25
+ BatchedUserOperationsResponse,
26
+ z.ZodTypeDef,
27
+ unknown
28
+ > = z.object({
29
+ operations: z.array(UserOperationResponse$inboundSchema),
30
+ });
31
+
32
+ /** @internal */
33
+ export type BatchedUserOperationsResponse$Outbound = {
34
+ operations: Array<UserOperationResponse$Outbound>;
35
+ };
36
+
37
+ /** @internal */
38
+ export const BatchedUserOperationsResponse$outboundSchema: z.ZodType<
39
+ BatchedUserOperationsResponse$Outbound,
40
+ z.ZodTypeDef,
41
+ BatchedUserOperationsResponse
42
+ > = z.object({
43
+ operations: z.array(UserOperationResponse$outboundSchema),
44
+ });
45
+
46
+ /**
47
+ * @internal
48
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
49
+ */
50
+ export namespace BatchedUserOperationsResponse$ {
51
+ /** @deprecated use `BatchedUserOperationsResponse$inboundSchema` instead. */
52
+ export const inboundSchema = BatchedUserOperationsResponse$inboundSchema;
53
+ /** @deprecated use `BatchedUserOperationsResponse$outboundSchema` instead. */
54
+ export const outboundSchema = BatchedUserOperationsResponse$outboundSchema;
55
+ /** @deprecated use `BatchedUserOperationsResponse$Outbound` instead. */
56
+ export type Outbound = BatchedUserOperationsResponse$Outbound;
57
+ }
58
+
59
+ export function batchedUserOperationsResponseToJSON(
60
+ batchedUserOperationsResponse: BatchedUserOperationsResponse,
61
+ ): string {
62
+ return JSON.stringify(
63
+ BatchedUserOperationsResponse$outboundSchema.parse(
64
+ batchedUserOperationsResponse,
65
+ ),
66
+ );
67
+ }
68
+
69
+ export function batchedUserOperationsResponseFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<BatchedUserOperationsResponse, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => BatchedUserOperationsResponse$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'BatchedUserOperationsResponse' from JSON`,
76
+ );
77
+ }
@@ -34,6 +34,8 @@ export * from "./aerodromeslipstreamsellexactlyrequest.js";
34
34
  export * from "./aerodromeslipstreamwithdrawliquidityprovisionparams.js";
35
35
  export * from "./aerodromeslipstreamwithdrawliquidityprovisionrequest.js";
36
36
  export * from "./allowanceinforesponse.js";
37
+ export * from "./batcheduseroperationsrequest.js";
38
+ export * from "./batcheduseroperationsresponse.js";
37
39
  export * from "./borrow.js";
38
40
  export * from "./chain.js";
39
41
  export * from "./chaininfo.js";
@@ -87,7 +89,6 @@ export * from "./morphowithdrawcollateralparams.js";
87
89
  export * from "./morphowithdrawcollateralrequest.js";
88
90
  export * from "./morphowithdrawparams.js";
89
91
  export * from "./morphowithdrawrequest.js";
90
- export * from "./multicallaction.js";
91
92
  export * from "./multicallactiontype.js";
92
93
  export * from "./multicallauthorizationrequest.js";
93
94
  export * from "./multicallauthorizationresponse.js";
@@ -117,6 +118,7 @@ export * from "./tokeninfo.js";
117
118
  export * from "./tokenpriceresponse.js";
118
119
  export * from "./tokentransfererc20params.js";
119
120
  export * from "./tokentransferrequest.js";
121
+ export * from "./txresponse.js";
120
122
  export * from "./uniswapbuyexactlyparams.js";
121
123
  export * from "./uniswapbuyexactlyrequest.js";
122
124
  export * from "./uniswapbuyquoteinforesponse.js";
@@ -138,6 +140,8 @@ export * from "./unsignedtransaction.js";
138
140
  export * from "./unwrapwethparams.js";
139
141
  export * from "./unwrapwethrequest.js";
140
142
  export * from "./usageascollateral.js";
143
+ export * from "./useroperation.js";
144
+ export * from "./useroperationresponse.js";
141
145
  export * from "./userstate.js";
142
146
  export * from "./validationerror.js";
143
147
  export * from "./vault.js";
@@ -8,18 +8,18 @@ import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
  import { Chain, Chain$inboundSchema, Chain$outboundSchema } from "./chain.js";
11
- import {
12
- MulticallAction,
13
- MulticallAction$inboundSchema,
14
- MulticallAction$Outbound,
15
- MulticallAction$outboundSchema,
16
- } from "./multicallaction.js";
17
11
  import {
18
12
  SignedAuthorization,
19
13
  SignedAuthorization$inboundSchema,
20
14
  SignedAuthorization$Outbound,
21
15
  SignedAuthorization$outboundSchema,
22
16
  } from "./signedauthorization.js";
17
+ import {
18
+ UserOperation,
19
+ UserOperation$inboundSchema,
20
+ UserOperation$Outbound,
21
+ UserOperation$outboundSchema,
22
+ } from "./useroperation.js";
23
23
 
24
24
  /**
25
25
  * Request model for executing a multicall.
@@ -37,7 +37,7 @@ export type MulticallExecuteRequest = {
37
37
  /**
38
38
  * List of possible actions for multicall
39
39
  */
40
- actions: Array<MulticallAction>;
40
+ actions: Array<UserOperation>;
41
41
  };
42
42
 
43
43
  /** @internal */
@@ -49,7 +49,7 @@ export const MulticallExecuteRequest$inboundSchema: z.ZodType<
49
49
  chain: Chain$inboundSchema,
50
50
  sender: z.string(),
51
51
  signed_authorization: SignedAuthorization$inboundSchema,
52
- actions: z.array(MulticallAction$inboundSchema),
52
+ actions: z.array(UserOperation$inboundSchema),
53
53
  }).transform((v) => {
54
54
  return remap$(v, {
55
55
  "signed_authorization": "signedAuthorization",
@@ -61,7 +61,7 @@ export type MulticallExecuteRequest$Outbound = {
61
61
  chain: string;
62
62
  sender: string;
63
63
  signed_authorization: SignedAuthorization$Outbound;
64
- actions: Array<MulticallAction$Outbound>;
64
+ actions: Array<UserOperation$Outbound>;
65
65
  };
66
66
 
67
67
  /** @internal */
@@ -73,7 +73,7 @@ export const MulticallExecuteRequest$outboundSchema: z.ZodType<
73
73
  chain: Chain$outboundSchema,
74
74
  sender: z.string(),
75
75
  signedAuthorization: SignedAuthorization$outboundSchema,
76
- actions: z.array(MulticallAction$outboundSchema),
76
+ actions: z.array(UserOperation$outboundSchema),
77
77
  }).transform((v) => {
78
78
  return remap$(v, {
79
79
  signedAuthorization: "signed_authorization",