@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 aerodromeSlipstreamSlipstreamSwapSellExactly(
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"),
@@ -40,7 +40,7 @@ export function morphoAllowance(
40
40
  options?: RequestOptions,
41
41
  ): APIPromise<
42
42
  Result<
43
- components.UnsignedTransaction,
43
+ components.TxResponse,
44
44
  | errors.HTTPValidationError
45
45
  | APIError
46
46
  | SDKValidationError
@@ -65,7 +65,7 @@ async function $do(
65
65
  ): Promise<
66
66
  [
67
67
  Result<
68
- components.UnsignedTransaction,
68
+ components.TxResponse,
69
69
  | errors.HTTPValidationError
70
70
  | APIError
71
71
  | SDKValidationError
@@ -145,7 +145,7 @@ async function $do(
145
145
  };
146
146
 
147
147
  const [result] = await M.match<
148
- components.UnsignedTransaction,
148
+ components.TxResponse,
149
149
  | errors.HTTPValidationError
150
150
  | APIError
151
151
  | SDKValidationError
@@ -155,7 +155,7 @@ async function $do(
155
155
  | RequestTimeoutError
156
156
  | ConnectionError
157
157
  >(
158
- M.json(200, components.UnsignedTransaction$inboundSchema),
158
+ M.json(200, components.TxResponse$inboundSchema),
159
159
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
160
160
  M.fail("4XX"),
161
161
  M.fail("5XX"),
@@ -44,7 +44,7 @@ export function morphoBorrow(
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
@@ -148,7 +148,7 @@ async function $do(
148
148
  };
149
149
 
150
150
  const [result] = await M.match<
151
- components.UnsignedTransaction,
151
+ components.TxResponse,
152
152
  | errors.HTTPValidationError
153
153
  | APIError
154
154
  | SDKValidationError
@@ -158,7 +158,7 @@ async function $do(
158
158
  | RequestTimeoutError
159
159
  | ConnectionError
160
160
  >(
161
- M.json(200, components.UnsignedTransaction$inboundSchema),
161
+ M.json(200, components.TxResponse$inboundSchema),
162
162
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
163
163
  M.fail("4XX"),
164
164
  M.fail("5XX"),
@@ -46,7 +46,7 @@ export function morphoDeposit(
46
46
  options?: RequestOptions,
47
47
  ): APIPromise<
48
48
  Result<
49
- components.UnsignedTransaction,
49
+ components.TxResponse,
50
50
  | errors.HTTPValidationError
51
51
  | APIError
52
52
  | SDKValidationError
@@ -71,7 +71,7 @@ async function $do(
71
71
  ): Promise<
72
72
  [
73
73
  Result<
74
- components.UnsignedTransaction,
74
+ components.TxResponse,
75
75
  | errors.HTTPValidationError
76
76
  | APIError
77
77
  | SDKValidationError
@@ -150,7 +150,7 @@ async function $do(
150
150
  };
151
151
 
152
152
  const [result] = await M.match<
153
- components.UnsignedTransaction,
153
+ components.TxResponse,
154
154
  | errors.HTTPValidationError
155
155
  | APIError
156
156
  | SDKValidationError
@@ -160,7 +160,7 @@ async function $do(
160
160
  | RequestTimeoutError
161
161
  | ConnectionError
162
162
  >(
163
- M.json(200, components.UnsignedTransaction$inboundSchema),
163
+ M.json(200, components.TxResponse$inboundSchema),
164
164
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
165
165
  M.fail("4XX"),
166
166
  M.fail("5XX"),
@@ -41,7 +41,7 @@ export function morphoRepay(
41
41
  options?: RequestOptions,
42
42
  ): APIPromise<
43
43
  Result<
44
- components.UnsignedTransaction,
44
+ components.TxResponse,
45
45
  | errors.HTTPValidationError
46
46
  | APIError
47
47
  | SDKValidationError
@@ -66,7 +66,7 @@ async function $do(
66
66
  ): Promise<
67
67
  [
68
68
  Result<
69
- components.UnsignedTransaction,
69
+ components.TxResponse,
70
70
  | errors.HTTPValidationError
71
71
  | APIError
72
72
  | SDKValidationError
@@ -145,7 +145,7 @@ async function $do(
145
145
  };
146
146
 
147
147
  const [result] = await M.match<
148
- components.UnsignedTransaction,
148
+ components.TxResponse,
149
149
  | errors.HTTPValidationError
150
150
  | APIError
151
151
  | SDKValidationError
@@ -155,7 +155,7 @@ async function $do(
155
155
  | RequestTimeoutError
156
156
  | ConnectionError
157
157
  >(
158
- M.json(200, components.UnsignedTransaction$inboundSchema),
158
+ M.json(200, components.TxResponse$inboundSchema),
159
159
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
160
160
  M.fail("4XX"),
161
161
  M.fail("5XX"),
@@ -41,7 +41,7 @@ export function morphoSupplyCollateral(
41
41
  options?: RequestOptions,
42
42
  ): APIPromise<
43
43
  Result<
44
- components.UnsignedTransaction,
44
+ components.TxResponse,
45
45
  | errors.HTTPValidationError
46
46
  | APIError
47
47
  | SDKValidationError
@@ -66,7 +66,7 @@ async function $do(
66
66
  ): Promise<
67
67
  [
68
68
  Result<
69
- components.UnsignedTransaction,
69
+ components.TxResponse,
70
70
  | errors.HTTPValidationError
71
71
  | APIError
72
72
  | 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"),
@@ -46,7 +46,7 @@ export function morphoWithdraw(
46
46
  options?: RequestOptions,
47
47
  ): APIPromise<
48
48
  Result<
49
- components.UnsignedTransaction,
49
+ components.TxResponse,
50
50
  | errors.HTTPValidationError
51
51
  | APIError
52
52
  | SDKValidationError
@@ -71,7 +71,7 @@ async function $do(
71
71
  ): Promise<
72
72
  [
73
73
  Result<
74
- components.UnsignedTransaction,
74
+ components.TxResponse,
75
75
  | errors.HTTPValidationError
76
76
  | APIError
77
77
  | SDKValidationError
@@ -150,7 +150,7 @@ async function $do(
150
150
  };
151
151
 
152
152
  const [result] = await M.match<
153
- components.UnsignedTransaction,
153
+ components.TxResponse,
154
154
  | errors.HTTPValidationError
155
155
  | APIError
156
156
  | SDKValidationError
@@ -160,7 +160,7 @@ async function $do(
160
160
  | RequestTimeoutError
161
161
  | ConnectionError
162
162
  >(
163
- M.json(200, components.UnsignedTransaction$inboundSchema),
163
+ M.json(200, components.TxResponse$inboundSchema),
164
164
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
165
165
  M.fail("4XX"),
166
166
  M.fail("5XX"),
@@ -41,7 +41,7 @@ export function morphoWithdrawCollateral(
41
41
  options?: RequestOptions,
42
42
  ): APIPromise<
43
43
  Result<
44
- components.UnsignedTransaction,
44
+ components.TxResponse,
45
45
  | errors.HTTPValidationError
46
46
  | APIError
47
47
  | SDKValidationError
@@ -66,7 +66,7 @@ async function $do(
66
66
  ): Promise<
67
67
  [
68
68
  Result<
69
- components.UnsignedTransaction,
69
+ components.TxResponse,
70
70
  | errors.HTTPValidationError
71
71
  | APIError
72
72
  | 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 skyBuy(
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"),
@@ -38,7 +38,7 @@ export function skyDeposit(
38
38
  options?: RequestOptions,
39
39
  ): APIPromise<
40
40
  Result<
41
- components.UnsignedTransaction,
41
+ components.TxResponse,
42
42
  | errors.HTTPValidationError
43
43
  | APIError
44
44
  | SDKValidationError
@@ -63,7 +63,7 @@ async function $do(
63
63
  ): Promise<
64
64
  [
65
65
  Result<
66
- components.UnsignedTransaction,
66
+ components.TxResponse,
67
67
  | errors.HTTPValidationError
68
68
  | APIError
69
69
  | SDKValidationError
@@ -142,7 +142,7 @@ async function $do(
142
142
  };
143
143
 
144
144
  const [result] = await M.match<
145
- components.UnsignedTransaction,
145
+ components.TxResponse,
146
146
  | errors.HTTPValidationError
147
147
  | APIError
148
148
  | SDKValidationError
@@ -152,7 +152,7 @@ async function $do(
152
152
  | RequestTimeoutError
153
153
  | ConnectionError
154
154
  >(
155
- M.json(200, components.UnsignedTransaction$inboundSchema),
155
+ M.json(200, components.TxResponse$inboundSchema),
156
156
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
157
157
  M.fail("4XX"),
158
158
  M.fail("5XX"),
@@ -42,7 +42,7 @@ export function skySell(
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"),
@@ -36,7 +36,7 @@ export function skyWithdraw(
36
36
  options?: RequestOptions,
37
37
  ): APIPromise<
38
38
  Result<
39
- components.UnsignedTransaction,
39
+ components.TxResponse,
40
40
  | errors.HTTPValidationError
41
41
  | APIError
42
42
  | SDKValidationError
@@ -61,7 +61,7 @@ async function $do(
61
61
  ): Promise<
62
62
  [
63
63
  Result<
64
- components.UnsignedTransaction,
64
+ components.TxResponse,
65
65
  | errors.HTTPValidationError
66
66
  | APIError
67
67
  | SDKValidationError
@@ -140,7 +140,7 @@ async function $do(
140
140
  };
141
141
 
142
142
  const [result] = await M.match<
143
- components.UnsignedTransaction,
143
+ components.TxResponse,
144
144
  | errors.HTTPValidationError
145
145
  | APIError
146
146
  | SDKValidationError
@@ -150,7 +150,7 @@ async function $do(
150
150
  | RequestTimeoutError
151
151
  | ConnectionError
152
152
  >(
153
- M.json(200, components.UnsignedTransaction$inboundSchema),
153
+ M.json(200, components.TxResponse$inboundSchema),
154
154
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
155
155
  M.fail("4XX"),
156
156
  M.fail("5XX"),
@@ -0,0 +1,164 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { CompassApiSDKCore } from "../core.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import * as components from "../models/components/index.js";
14
+ import { APIError } from "../models/errors/apierror.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import * as errors from "../models/errors/index.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import { APICall, APIPromise } from "../types/async.js";
25
+ import { Result } from "../types/fp.js";
26
+
27
+ /**
28
+ * Get Smart Account Batched User Operations
29
+ *
30
+ * @remarks
31
+ * Generate a list of user operations for smart account batching.
32
+ */
33
+ export function smartAccountAccountBatchedUserOperations(
34
+ client: CompassApiSDKCore,
35
+ request: components.BatchedUserOperationsRequest,
36
+ options?: RequestOptions,
37
+ ): APIPromise<
38
+ Result<
39
+ components.BatchedUserOperationsResponse,
40
+ | errors.HTTPValidationError
41
+ | APIError
42
+ | SDKValidationError
43
+ | UnexpectedClientError
44
+ | InvalidRequestError
45
+ | RequestAbortedError
46
+ | RequestTimeoutError
47
+ | ConnectionError
48
+ >
49
+ > {
50
+ return new APIPromise($do(
51
+ client,
52
+ request,
53
+ options,
54
+ ));
55
+ }
56
+
57
+ async function $do(
58
+ client: CompassApiSDKCore,
59
+ request: components.BatchedUserOperationsRequest,
60
+ options?: RequestOptions,
61
+ ): Promise<
62
+ [
63
+ Result<
64
+ components.BatchedUserOperationsResponse,
65
+ | errors.HTTPValidationError
66
+ | APIError
67
+ | SDKValidationError
68
+ | UnexpectedClientError
69
+ | InvalidRequestError
70
+ | RequestAbortedError
71
+ | RequestTimeoutError
72
+ | ConnectionError
73
+ >,
74
+ APICall,
75
+ ]
76
+ > {
77
+ const parsed = safeParse(
78
+ request,
79
+ (value) =>
80
+ components.BatchedUserOperationsRequest$outboundSchema.parse(value),
81
+ "Input validation failed",
82
+ );
83
+ if (!parsed.ok) {
84
+ return [parsed, { status: "invalid" }];
85
+ }
86
+ const payload = parsed.value;
87
+ const body = encodeJSON("body", payload, { explode: true });
88
+
89
+ const path = pathToFunc("/v0/smart_account/batched_user_operations")();
90
+
91
+ const headers = new Headers(compactMap({
92
+ "Content-Type": "application/json",
93
+ Accept: "application/json",
94
+ }));
95
+
96
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
97
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
98
+ const requestSecurity = resolveGlobalSecurity(securityInput);
99
+
100
+ const context = {
101
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
102
+ operationID: "smart_account_batched_user_operations",
103
+ oAuth2Scopes: [],
104
+
105
+ resolvedSecurity: requestSecurity,
106
+
107
+ securitySource: client._options.apiKeyAuth,
108
+ retryConfig: options?.retries
109
+ || client._options.retryConfig
110
+ || { strategy: "none" },
111
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
112
+ };
113
+
114
+ const requestRes = client._createRequest(context, {
115
+ security: requestSecurity,
116
+ method: "POST",
117
+ baseURL: options?.serverURL,
118
+ path: path,
119
+ headers: headers,
120
+ body: body,
121
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
122
+ }, options);
123
+ if (!requestRes.ok) {
124
+ return [requestRes, { status: "invalid" }];
125
+ }
126
+ const req = requestRes.value;
127
+
128
+ const doResult = await client._do(req, {
129
+ context,
130
+ errorCodes: ["422", "4XX", "5XX"],
131
+ retryConfig: context.retryConfig,
132
+ retryCodes: context.retryCodes,
133
+ });
134
+ if (!doResult.ok) {
135
+ return [doResult, { status: "request-error", request: req }];
136
+ }
137
+ const response = doResult.value;
138
+
139
+ const responseFields = {
140
+ HttpMeta: { Response: response, Request: req },
141
+ };
142
+
143
+ const [result] = await M.match<
144
+ components.BatchedUserOperationsResponse,
145
+ | errors.HTTPValidationError
146
+ | APIError
147
+ | SDKValidationError
148
+ | UnexpectedClientError
149
+ | InvalidRequestError
150
+ | RequestAbortedError
151
+ | RequestTimeoutError
152
+ | ConnectionError
153
+ >(
154
+ M.json(200, components.BatchedUserOperationsResponse$inboundSchema),
155
+ M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
156
+ M.fail("4XX"),
157
+ M.fail("5XX"),
158
+ )(response, { extraFields: responseFields });
159
+ if (!result.ok) {
160
+ return [result, { status: "complete", request: req, response }];
161
+ }
162
+
163
+ return [result, { status: "complete", request: req, response }];
164
+ }
@@ -36,7 +36,7 @@ export function tokenTransfer(
36
36
  options?: RequestOptions,
37
37
  ): APIPromise<
38
38
  Result<
39
- components.UnsignedTransaction,
39
+ components.TxResponse,
40
40
  | errors.HTTPValidationError
41
41
  | APIError
42
42
  | SDKValidationError
@@ -61,7 +61,7 @@ async function $do(
61
61
  ): Promise<
62
62
  [
63
63
  Result<
64
- components.UnsignedTransaction,
64
+ components.TxResponse,
65
65
  | errors.HTTPValidationError
66
66
  | APIError
67
67
  | SDKValidationError
@@ -140,7 +140,7 @@ async function $do(
140
140
  };
141
141
 
142
142
  const [result] = await M.match<
143
- components.UnsignedTransaction,
143
+ components.TxResponse,
144
144
  | errors.HTTPValidationError
145
145
  | APIError
146
146
  | SDKValidationError
@@ -150,7 +150,7 @@ async function $do(
150
150
  | RequestTimeoutError
151
151
  | ConnectionError
152
152
  >(
153
- M.json(200, components.UnsignedTransaction$inboundSchema),
153
+ M.json(200, components.TxResponse$inboundSchema),
154
154
  M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
155
155
  M.fail("4XX"),
156
156
  M.fail("5XX"),
@@ -44,7 +44,7 @@ export function uniswapV3LiquidityProvisionIncrease(
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"),