@compass-labs/api-sdk 0.0.25 → 0.0.27

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 (211) hide show
  1. package/bin/mcp-server.js +12 -12
  2. package/bin/mcp-server.js.map +31 -31
  3. package/dist/commonjs/lib/config.d.ts +3 -3
  4. package/dist/commonjs/lib/config.js +3 -3
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts +9 -0
  8. package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
  9. package/dist/commonjs/models/operations/aavehistoricaltransactions.js.map +1 -1
  10. package/dist/commonjs/models/operations/aaveliquiditychange.d.ts +7 -6
  11. package/dist/commonjs/models/operations/aaveliquiditychange.d.ts.map +1 -1
  12. package/dist/commonjs/models/operations/aaveliquiditychange.js.map +1 -1
  13. package/dist/commonjs/models/operations/aaverate.d.ts +1 -6
  14. package/dist/commonjs/models/operations/aaverate.d.ts.map +1 -1
  15. package/dist/commonjs/models/operations/aaverate.js.map +1 -1
  16. package/dist/commonjs/models/operations/aavereserveoverview.d.ts +1 -6
  17. package/dist/commonjs/models/operations/aavereserveoverview.d.ts.map +1 -1
  18. package/dist/commonjs/models/operations/aavereserveoverview.js.map +1 -1
  19. package/dist/commonjs/models/operations/aavetokenprice.d.ts +1 -6
  20. package/dist/commonjs/models/operations/aavetokenprice.d.ts.map +1 -1
  21. package/dist/commonjs/models/operations/aavetokenprice.js.map +1 -1
  22. package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts +4 -6
  23. package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
  24. package/dist/commonjs/models/operations/aaveuserpositionpertoken.js.map +1 -1
  25. package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts +3 -0
  26. package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
  27. package/dist/commonjs/models/operations/aaveuserpositionsummary.js.map +1 -1
  28. package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +3 -0
  29. package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
  30. package/dist/commonjs/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
  31. package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts +5 -12
  32. package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
  33. package/dist/commonjs/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
  34. package/dist/commonjs/models/operations/genericallowance.d.ts +13 -6
  35. package/dist/commonjs/models/operations/genericallowance.d.ts.map +1 -1
  36. package/dist/commonjs/models/operations/genericallowance.js +3 -0
  37. package/dist/commonjs/models/operations/genericallowance.js.map +1 -1
  38. package/dist/commonjs/models/operations/genericens.d.ts +3 -0
  39. package/dist/commonjs/models/operations/genericens.d.ts.map +1 -1
  40. package/dist/commonjs/models/operations/genericens.js.map +1 -1
  41. package/dist/commonjs/models/operations/genericportfolio.d.ts +3 -0
  42. package/dist/commonjs/models/operations/genericportfolio.d.ts.map +1 -1
  43. package/dist/commonjs/models/operations/genericportfolio.js.map +1 -1
  44. package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts +3 -0
  45. package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
  46. package/dist/commonjs/models/operations/genericvisualizeportfolio.js.map +1 -1
  47. package/dist/commonjs/models/operations/morphomarketposition.d.ts +6 -0
  48. package/dist/commonjs/models/operations/morphomarketposition.d.ts.map +1 -1
  49. package/dist/commonjs/models/operations/morphomarketposition.js.map +1 -1
  50. package/dist/commonjs/models/operations/morphomarkets.d.ts +10 -4
  51. package/dist/commonjs/models/operations/morphomarkets.d.ts.map +1 -1
  52. package/dist/commonjs/models/operations/morphomarkets.js +4 -4
  53. package/dist/commonjs/models/operations/morphomarkets.js.map +1 -1
  54. package/dist/commonjs/models/operations/morphovaultposition.d.ts +6 -0
  55. package/dist/commonjs/models/operations/morphovaultposition.d.ts.map +1 -1
  56. package/dist/commonjs/models/operations/morphovaultposition.js.map +1 -1
  57. package/dist/commonjs/models/operations/morphovaults.d.ts +5 -2
  58. package/dist/commonjs/models/operations/morphovaults.d.ts.map +1 -1
  59. package/dist/commonjs/models/operations/morphovaults.js +2 -2
  60. package/dist/commonjs/models/operations/morphovaults.js.map +1 -1
  61. package/dist/commonjs/models/operations/skyposition.d.ts +3 -0
  62. package/dist/commonjs/models/operations/skyposition.d.ts.map +1 -1
  63. package/dist/commonjs/models/operations/skyposition.js.map +1 -1
  64. package/dist/commonjs/models/operations/tokenaddress.d.ts +1 -6
  65. package/dist/commonjs/models/operations/tokenaddress.d.ts.map +1 -1
  66. package/dist/commonjs/models/operations/tokenaddress.js.map +1 -1
  67. package/dist/commonjs/models/operations/tokenbalance.d.ts +9 -0
  68. package/dist/commonjs/models/operations/tokenbalance.d.ts.map +1 -1
  69. package/dist/commonjs/models/operations/tokenbalance.js.map +1 -1
  70. package/dist/commonjs/models/operations/tokenprice.d.ts +1 -6
  71. package/dist/commonjs/models/operations/tokenprice.d.ts.map +1 -1
  72. package/dist/commonjs/models/operations/tokenprice.js.map +1 -1
  73. package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts +3 -0
  74. package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
  75. package/dist/commonjs/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
  76. package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts +3 -0
  77. package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
  78. package/dist/commonjs/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
  79. package/dist/commonjs/models/operations/uniswappoolprice.d.ts +3 -17
  80. package/dist/commonjs/models/operations/uniswappoolprice.d.ts.map +1 -1
  81. package/dist/commonjs/models/operations/uniswappoolprice.js.map +1 -1
  82. package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts +9 -17
  83. package/dist/commonjs/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
  84. package/dist/commonjs/models/operations/uniswapquotebuyexactly.js.map +1 -1
  85. package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts +9 -17
  86. package/dist/commonjs/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
  87. package/dist/commonjs/models/operations/uniswapquotesellexactly.js.map +1 -1
  88. package/dist/esm/lib/config.d.ts +3 -3
  89. package/dist/esm/lib/config.js +3 -3
  90. package/dist/esm/mcp-server/mcp-server.js +1 -1
  91. package/dist/esm/mcp-server/server.js +1 -1
  92. package/dist/esm/models/operations/aavehistoricaltransactions.d.ts +9 -0
  93. package/dist/esm/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
  94. package/dist/esm/models/operations/aavehistoricaltransactions.js.map +1 -1
  95. package/dist/esm/models/operations/aaveliquiditychange.d.ts +7 -6
  96. package/dist/esm/models/operations/aaveliquiditychange.d.ts.map +1 -1
  97. package/dist/esm/models/operations/aaveliquiditychange.js.map +1 -1
  98. package/dist/esm/models/operations/aaverate.d.ts +1 -6
  99. package/dist/esm/models/operations/aaverate.d.ts.map +1 -1
  100. package/dist/esm/models/operations/aaverate.js.map +1 -1
  101. package/dist/esm/models/operations/aavereserveoverview.d.ts +1 -6
  102. package/dist/esm/models/operations/aavereserveoverview.d.ts.map +1 -1
  103. package/dist/esm/models/operations/aavereserveoverview.js.map +1 -1
  104. package/dist/esm/models/operations/aavetokenprice.d.ts +1 -6
  105. package/dist/esm/models/operations/aavetokenprice.d.ts.map +1 -1
  106. package/dist/esm/models/operations/aavetokenprice.js.map +1 -1
  107. package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts +4 -6
  108. package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
  109. package/dist/esm/models/operations/aaveuserpositionpertoken.js.map +1 -1
  110. package/dist/esm/models/operations/aaveuserpositionsummary.d.ts +3 -0
  111. package/dist/esm/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
  112. package/dist/esm/models/operations/aaveuserpositionsummary.js.map +1 -1
  113. package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts +3 -0
  114. package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.d.ts.map +1 -1
  115. package/dist/esm/models/operations/aerodromeslipstreamliquidityprovisionpositions.js.map +1 -1
  116. package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts +5 -12
  117. package/dist/esm/models/operations/aerodromeslipstreampoolprice.d.ts.map +1 -1
  118. package/dist/esm/models/operations/aerodromeslipstreampoolprice.js.map +1 -1
  119. package/dist/esm/models/operations/genericallowance.d.ts +13 -6
  120. package/dist/esm/models/operations/genericallowance.d.ts.map +1 -1
  121. package/dist/esm/models/operations/genericallowance.js +3 -0
  122. package/dist/esm/models/operations/genericallowance.js.map +1 -1
  123. package/dist/esm/models/operations/genericens.d.ts +3 -0
  124. package/dist/esm/models/operations/genericens.d.ts.map +1 -1
  125. package/dist/esm/models/operations/genericens.js.map +1 -1
  126. package/dist/esm/models/operations/genericportfolio.d.ts +3 -0
  127. package/dist/esm/models/operations/genericportfolio.d.ts.map +1 -1
  128. package/dist/esm/models/operations/genericportfolio.js.map +1 -1
  129. package/dist/esm/models/operations/genericvisualizeportfolio.d.ts +3 -0
  130. package/dist/esm/models/operations/genericvisualizeportfolio.d.ts.map +1 -1
  131. package/dist/esm/models/operations/genericvisualizeportfolio.js.map +1 -1
  132. package/dist/esm/models/operations/morphomarketposition.d.ts +6 -0
  133. package/dist/esm/models/operations/morphomarketposition.d.ts.map +1 -1
  134. package/dist/esm/models/operations/morphomarketposition.js.map +1 -1
  135. package/dist/esm/models/operations/morphomarkets.d.ts +10 -4
  136. package/dist/esm/models/operations/morphomarkets.d.ts.map +1 -1
  137. package/dist/esm/models/operations/morphomarkets.js +4 -4
  138. package/dist/esm/models/operations/morphomarkets.js.map +1 -1
  139. package/dist/esm/models/operations/morphovaultposition.d.ts +6 -0
  140. package/dist/esm/models/operations/morphovaultposition.d.ts.map +1 -1
  141. package/dist/esm/models/operations/morphovaultposition.js.map +1 -1
  142. package/dist/esm/models/operations/morphovaults.d.ts +5 -2
  143. package/dist/esm/models/operations/morphovaults.d.ts.map +1 -1
  144. package/dist/esm/models/operations/morphovaults.js +2 -2
  145. package/dist/esm/models/operations/morphovaults.js.map +1 -1
  146. package/dist/esm/models/operations/skyposition.d.ts +3 -0
  147. package/dist/esm/models/operations/skyposition.d.ts.map +1 -1
  148. package/dist/esm/models/operations/skyposition.js.map +1 -1
  149. package/dist/esm/models/operations/tokenaddress.d.ts +1 -6
  150. package/dist/esm/models/operations/tokenaddress.d.ts.map +1 -1
  151. package/dist/esm/models/operations/tokenaddress.js.map +1 -1
  152. package/dist/esm/models/operations/tokenbalance.d.ts +9 -0
  153. package/dist/esm/models/operations/tokenbalance.d.ts.map +1 -1
  154. package/dist/esm/models/operations/tokenbalance.js.map +1 -1
  155. package/dist/esm/models/operations/tokenprice.d.ts +1 -6
  156. package/dist/esm/models/operations/tokenprice.d.ts.map +1 -1
  157. package/dist/esm/models/operations/tokenprice.js.map +1 -1
  158. package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts +3 -0
  159. package/dist/esm/models/operations/uniswapliquidityprovisioninrange.d.ts.map +1 -1
  160. package/dist/esm/models/operations/uniswapliquidityprovisioninrange.js.map +1 -1
  161. package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts +3 -0
  162. package/dist/esm/models/operations/uniswapliquidityprovisionpositions.d.ts.map +1 -1
  163. package/dist/esm/models/operations/uniswapliquidityprovisionpositions.js.map +1 -1
  164. package/dist/esm/models/operations/uniswappoolprice.d.ts +3 -17
  165. package/dist/esm/models/operations/uniswappoolprice.d.ts.map +1 -1
  166. package/dist/esm/models/operations/uniswappoolprice.js.map +1 -1
  167. package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts +9 -17
  168. package/dist/esm/models/operations/uniswapquotebuyexactly.d.ts.map +1 -1
  169. package/dist/esm/models/operations/uniswapquotebuyexactly.js.map +1 -1
  170. package/dist/esm/models/operations/uniswapquotesellexactly.d.ts +9 -17
  171. package/dist/esm/models/operations/uniswapquotesellexactly.d.ts.map +1 -1
  172. package/dist/esm/models/operations/uniswapquotesellexactly.js.map +1 -1
  173. package/docs/sdks/aavev3/README.md +14 -14
  174. package/docs/sdks/aerodromeslipstream/README.md +28 -28
  175. package/docs/sdks/morpho/README.md +24 -10
  176. package/docs/sdks/sky/README.md +2 -2
  177. package/docs/sdks/token/README.md +2 -2
  178. package/docs/sdks/transactionbatching/README.md +12 -12
  179. package/docs/sdks/uniswapv3/README.md +26 -26
  180. package/docs/sdks/universal/README.md +4 -4
  181. package/jsr.json +1 -1
  182. package/package.json +1 -1
  183. package/src/lib/config.ts +3 -3
  184. package/src/mcp-server/mcp-server.ts +1 -1
  185. package/src/mcp-server/server.ts +1 -1
  186. package/src/models/operations/aavehistoricaltransactions.ts +9 -0
  187. package/src/models/operations/aaveliquiditychange.ts +7 -6
  188. package/src/models/operations/aaverate.ts +1 -6
  189. package/src/models/operations/aavereserveoverview.ts +1 -6
  190. package/src/models/operations/aavetokenprice.ts +1 -6
  191. package/src/models/operations/aaveuserpositionpertoken.ts +4 -6
  192. package/src/models/operations/aaveuserpositionsummary.ts +3 -0
  193. package/src/models/operations/aerodromeslipstreamliquidityprovisionpositions.ts +3 -0
  194. package/src/models/operations/aerodromeslipstreampoolprice.ts +5 -12
  195. package/src/models/operations/genericallowance.ts +13 -6
  196. package/src/models/operations/genericens.ts +3 -0
  197. package/src/models/operations/genericportfolio.ts +3 -0
  198. package/src/models/operations/genericvisualizeportfolio.ts +3 -0
  199. package/src/models/operations/morphomarketposition.ts +6 -0
  200. package/src/models/operations/morphomarkets.ts +14 -8
  201. package/src/models/operations/morphovaultposition.ts +6 -0
  202. package/src/models/operations/morphovaults.ts +7 -4
  203. package/src/models/operations/skyposition.ts +3 -0
  204. package/src/models/operations/tokenaddress.ts +1 -6
  205. package/src/models/operations/tokenbalance.ts +9 -0
  206. package/src/models/operations/tokenprice.ts +1 -6
  207. package/src/models/operations/uniswapliquidityprovisioninrange.ts +3 -0
  208. package/src/models/operations/uniswapliquidityprovisionpositions.ts +3 -0
  209. package/src/models/operations/uniswappoolprice.ts +3 -17
  210. package/src/models/operations/uniswapquotebuyexactly.ts +9 -17
  211. package/src/models/operations/uniswapquotesellexactly.ts +9 -17
@@ -95,12 +95,7 @@ export type AaveReserveOverviewRequest = {
95
95
  */
96
96
  chain?: AaveReserveOverviewChain | undefined;
97
97
  /**
98
- * A class representing the token.
99
- *
100
- * @remarks
101
- *
102
- * This class is used to represent the token in the system. Notice individual
103
- * endpoints' documentation where per chain tokens are presented.
98
+ * The symbol of the asset..
104
99
  */
105
100
  token?: AaveReserveOverviewToken | undefined;
106
101
  };
@@ -91,12 +91,7 @@ export type AaveTokenPriceRequest = {
91
91
  */
92
92
  chain?: AaveTokenPriceChain | undefined;
93
93
  /**
94
- * A class representing the token.
95
- *
96
- * @remarks
97
- *
98
- * This class is used to represent the token in the system. Notice individual
99
- * endpoints' documentation where per chain tokens are presented.
94
+ * The symbol of the asset whose price you want..
100
95
  */
101
96
  token?: AaveTokenPriceToken | undefined;
102
97
  };
@@ -94,14 +94,12 @@ export type AaveUserPositionPerTokenRequest = {
94
94
  * The chain to use.
95
95
  */
96
96
  chain?: AaveUserPositionPerTokenChain | undefined;
97
+ /**
98
+ * The user to fetch the token-specific position of.
99
+ */
97
100
  user?: string | undefined;
98
101
  /**
99
- * A class representing the token.
100
- *
101
- * @remarks
102
- *
103
- * This class is used to represent the token in the system. Notice individual
104
- * endpoints' documentation where per chain tokens are presented.
102
+ * The symbol of the asset to fetch the user's position on..
105
103
  */
106
104
  token?: AaveUserPositionPerTokenToken | undefined;
107
105
  };
@@ -28,6 +28,9 @@ export type AaveUserPositionSummaryRequest = {
28
28
  * The chain to use.
29
29
  */
30
30
  chain?: AaveUserPositionSummaryChain | undefined;
31
+ /**
32
+ * The user to get position summary for.
33
+ */
31
34
  user?: string | undefined;
32
35
  };
33
36
 
@@ -28,6 +28,9 @@ export type AerodromeSlipstreamLiquidityProvisionPositionsRequest = {
28
28
  * The chain to use.
29
29
  */
30
30
  chain?: AerodromeSlipstreamLiquidityProvisionPositionsChain | undefined;
31
+ /**
32
+ * The user to get positions for.
33
+ */
31
34
  user?: string | undefined;
32
35
  };
33
36
 
@@ -162,23 +162,16 @@ export type AerodromeSlipstreamPoolPriceRequest = {
162
162
  */
163
163
  chain?: AerodromeSlipstreamPoolPriceChain | undefined;
164
164
  /**
165
- * A class representing the token.
166
- *
167
- * @remarks
168
- *
169
- * This class is used to represent the token in the system. Notice individual
170
- * endpoints' documentation where per chain tokens are presented.
165
+ * The symbol of a token in the pool.
171
166
  */
172
167
  tokenIn?: AerodromeSlipstreamPoolPriceTokenInToken | undefined;
173
168
  /**
174
- * A class representing the token.
175
- *
176
- * @remarks
177
- *
178
- * This class is used to represent the token in the system. Notice individual
179
- * endpoints' documentation where per chain tokens are presented.
169
+ * The symbol of a token in the pool.
180
170
  */
181
171
  tokenOut?: AerodromeSlipstreamPoolPriceTokenOutToken | undefined;
172
+ /**
173
+ * The tick spacing of the pool
174
+ */
182
175
  tickSpacing?: number | undefined;
183
176
  };
184
177
 
@@ -86,6 +86,9 @@ export const GenericAllowanceToken = {
86
86
  */
87
87
  export type GenericAllowanceToken = ClosedEnum<typeof GenericAllowanceToken>;
88
88
 
89
+ /**
90
+ * The name of the contract to check allowance for.
91
+ */
89
92
  export const ContractName = {
90
93
  AaveV3Pool: "AaveV3Pool",
91
94
  AerodromeBasicRouter: "AerodromeBasicRouter",
@@ -99,6 +102,9 @@ export const ContractName = {
99
102
  SkyUsdcUsdsConverter: "SkyUsdcUsdsConverter",
100
103
  SkyUsdsVault: "SkyUsdsVault",
101
104
  } as const;
105
+ /**
106
+ * The name of the contract to check allowance for.
107
+ */
102
108
  export type ContractName = ClosedEnum<typeof ContractName>;
103
109
 
104
110
  export type GenericAllowanceRequest = {
@@ -106,16 +112,17 @@ export type GenericAllowanceRequest = {
106
112
  * The chain to use.
107
113
  */
108
114
  chain?: GenericAllowanceChain | undefined;
115
+ /**
116
+ * The user to get the ERC20 allowance of.
117
+ */
109
118
  user?: string | undefined;
110
119
  /**
111
- * A class representing the token.
112
- *
113
- * @remarks
114
- *
115
- * This class is used to represent the token in the system. Notice individual
116
- * endpoints' documentation where per chain tokens are presented.
120
+ * The symbol of the token for which the allowance is checked..
117
121
  */
118
122
  token?: GenericAllowanceToken | undefined;
123
+ /**
124
+ * The name of the contract to check allowance for.
125
+ */
119
126
  contractName?: ContractName | undefined;
120
127
  };
121
128
 
@@ -27,6 +27,9 @@ export type GenericEnsRequest = {
27
27
  * The chain to use.
28
28
  */
29
29
  chain?: GenericEnsChain | undefined;
30
+ /**
31
+ * The ENS name to resolve.
32
+ */
30
33
  ensName?: string | undefined;
31
34
  };
32
35
 
@@ -26,6 +26,9 @@ export type GenericPortfolioRequest = {
26
26
  * The chain to use.
27
27
  */
28
28
  chain?: GenericPortfolioChain | undefined;
29
+ /**
30
+ * The user to get portfolio for.
31
+ */
29
32
  user?: string | undefined;
30
33
  };
31
34
 
@@ -28,6 +28,9 @@ export type GenericVisualizePortfolioRequest = {
28
28
  * The chain to use.
29
29
  */
30
30
  chain?: GenericVisualizePortfolioChain | undefined;
31
+ /**
32
+ * The user to get portfolio for.
33
+ */
31
34
  user?: string | undefined;
32
35
  };
33
36
 
@@ -19,7 +19,13 @@ export type MorphoMarketPositionChain = ClosedEnum<
19
19
 
20
20
  export type MorphoMarketPositionRequest = {
21
21
  chain?: MorphoMarketPositionChain | undefined;
22
+ /**
23
+ * The user address of the desired market position.
24
+ */
22
25
  userAddress?: string | undefined;
26
+ /**
27
+ * The key that uniquely identifies the market. This can be found using the 'Get Markets' endpoint.
28
+ */
23
29
  uniqueMarketKey?: string | undefined;
24
30
  };
25
31
 
@@ -17,8 +17,14 @@ export type MorphoMarketsChain = ClosedEnum<typeof MorphoMarketsChain>;
17
17
 
18
18
  export type MorphoMarketsRequest = {
19
19
  chain?: MorphoMarketsChain | undefined;
20
- collateralToken?: string | null | undefined;
21
- loanToken?: string | null | undefined;
20
+ /**
21
+ * Collateral token to identify the market.
22
+ */
23
+ collateralToken: string | null;
24
+ /**
25
+ * Loan token to identify the market.
26
+ */
27
+ loanToken: string | null;
22
28
  };
23
29
 
24
30
  /** @internal */
@@ -49,8 +55,8 @@ export const MorphoMarketsRequest$inboundSchema: z.ZodType<
49
55
  unknown
50
56
  > = z.object({
51
57
  chain: MorphoMarketsChain$inboundSchema.default("ethereum:mainnet"),
52
- collateral_token: z.nullable(z.string()).optional(),
53
- loan_token: z.nullable(z.string()).optional(),
58
+ collateral_token: z.nullable(z.string()),
59
+ loan_token: z.nullable(z.string()),
54
60
  }).transform((v) => {
55
61
  return remap$(v, {
56
62
  "collateral_token": "collateralToken",
@@ -61,8 +67,8 @@ export const MorphoMarketsRequest$inboundSchema: z.ZodType<
61
67
  /** @internal */
62
68
  export type MorphoMarketsRequest$Outbound = {
63
69
  chain: string;
64
- collateral_token?: string | null | undefined;
65
- loan_token?: string | null | undefined;
70
+ collateral_token: string | null;
71
+ loan_token: string | null;
66
72
  };
67
73
 
68
74
  /** @internal */
@@ -72,8 +78,8 @@ export const MorphoMarketsRequest$outboundSchema: z.ZodType<
72
78
  MorphoMarketsRequest
73
79
  > = z.object({
74
80
  chain: MorphoMarketsChain$outboundSchema.default("ethereum:mainnet"),
75
- collateralToken: z.nullable(z.string()).optional(),
76
- loanToken: z.nullable(z.string()).optional(),
81
+ collateralToken: z.nullable(z.string()),
82
+ loanToken: z.nullable(z.string()),
77
83
  }).transform((v) => {
78
84
  return remap$(v, {
79
85
  collateralToken: "collateral_token",
@@ -19,7 +19,13 @@ export type MorphoVaultPositionChain = ClosedEnum<
19
19
 
20
20
  export type MorphoVaultPositionRequest = {
21
21
  chain?: MorphoVaultPositionChain | undefined;
22
+ /**
23
+ * The user address of the desired vault position.
24
+ */
22
25
  userAddress?: string | undefined;
26
+ /**
27
+ * The vault address of the desired vault position.
28
+ */
23
29
  vaultAddress?: string | undefined;
24
30
  };
25
31
 
@@ -17,7 +17,10 @@ export type MorphoVaultsChain = ClosedEnum<typeof MorphoVaultsChain>;
17
17
 
18
18
  export type MorphoVaultsRequest = {
19
19
  chain?: MorphoVaultsChain | undefined;
20
- depositToken?: string | null | undefined;
20
+ /**
21
+ * Token address that will filter vaults by this deposit token.
22
+ */
23
+ depositToken: string | null;
21
24
  };
22
25
 
23
26
  /** @internal */
@@ -48,7 +51,7 @@ export const MorphoVaultsRequest$inboundSchema: z.ZodType<
48
51
  unknown
49
52
  > = z.object({
50
53
  chain: MorphoVaultsChain$inboundSchema.default("ethereum:mainnet"),
51
- deposit_token: z.nullable(z.string()).optional(),
54
+ deposit_token: z.nullable(z.string()),
52
55
  }).transform((v) => {
53
56
  return remap$(v, {
54
57
  "deposit_token": "depositToken",
@@ -58,7 +61,7 @@ export const MorphoVaultsRequest$inboundSchema: z.ZodType<
58
61
  /** @internal */
59
62
  export type MorphoVaultsRequest$Outbound = {
60
63
  chain: string;
61
- deposit_token?: string | null | undefined;
64
+ deposit_token: string | null;
62
65
  };
63
66
 
64
67
  /** @internal */
@@ -68,7 +71,7 @@ export const MorphoVaultsRequest$outboundSchema: z.ZodType<
68
71
  MorphoVaultsRequest
69
72
  > = z.object({
70
73
  chain: MorphoVaultsChain$outboundSchema.default("ethereum:mainnet"),
71
- depositToken: z.nullable(z.string()).optional(),
74
+ depositToken: z.nullable(z.string()),
72
75
  }).transform((v) => {
73
76
  return remap$(v, {
74
77
  depositToken: "deposit_token",
@@ -10,6 +10,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type SkyPositionRequest = {
12
12
  chain?: "ethereum:mainnet" | undefined;
13
+ /**
14
+ * The user address of the desired position.
15
+ */
13
16
  userAddress?: string | undefined;
14
17
  };
15
18
 
@@ -91,12 +91,7 @@ export type TokenAddressRequest = {
91
91
  */
92
92
  chain?: TokenAddressChain | undefined;
93
93
  /**
94
- * A class representing the token.
95
- *
96
- * @remarks
97
- *
98
- * This class is used to represent the token in the system. Notice individual
99
- * endpoints' documentation where per chain tokens are presented.
94
+ * The token symbol to get the address for..
100
95
  */
101
96
  token?: TokenAddressToken | undefined;
102
97
  };
@@ -22,6 +22,9 @@ export const TokenBalanceChain = {
22
22
  */
23
23
  export type TokenBalanceChain = ClosedEnum<typeof TokenBalanceChain>;
24
24
 
25
+ /**
26
+ * The symbol of the token for which the balance is checked..
27
+ */
25
28
  export type TokenBalanceToken = components.TokenEnum | string;
26
29
 
27
30
  export type TokenBalanceRequest = {
@@ -29,7 +32,13 @@ export type TokenBalanceRequest = {
29
32
  * The chain to use.
30
33
  */
31
34
  chain?: TokenBalanceChain | undefined;
35
+ /**
36
+ * The user to get the ERC20 balance of.
37
+ */
32
38
  user?: string | undefined;
39
+ /**
40
+ * The symbol of the token for which the balance is checked..
41
+ */
33
42
  token: components.TokenEnum | string;
34
43
  };
35
44
 
@@ -91,12 +91,7 @@ export type TokenPriceRequest = {
91
91
  */
92
92
  chain?: TokenPriceChain | undefined;
93
93
  /**
94
- * A class representing the token.
95
- *
96
- * @remarks
97
- *
98
- * This class is used to represent the token in the system. Notice individual
99
- * endpoints' documentation where per chain tokens are presented.
94
+ * The symbol of the token for which to get the price.
100
95
  */
101
96
  token?: TokenPriceToken | undefined;
102
97
  };
@@ -29,6 +29,9 @@ export type UniswapLiquidityProvisionInRangeRequest = {
29
29
  * The chain to use.
30
30
  */
31
31
  chain?: UniswapLiquidityProvisionInRangeChain | undefined;
32
+ /**
33
+ * Token ID of the NFT representing the liquidity provisioned position.
34
+ */
32
35
  tokenId?: number | undefined;
33
36
  };
34
37
 
@@ -28,6 +28,9 @@ export type UniswapLiquidityProvisionPositionsRequest = {
28
28
  * The chain to use.
29
29
  */
30
30
  chain?: UniswapLiquidityProvisionPositionsChain | undefined;
31
+ /**
32
+ * The user to get positions for.
33
+ */
31
34
  user?: string | undefined;
32
35
  };
33
36
 
@@ -184,29 +184,15 @@ export type UniswapPoolPriceRequest = {
184
184
  */
185
185
  chain?: UniswapPoolPriceChain | undefined;
186
186
  /**
187
- * A class representing the token.
188
- *
189
- * @remarks
190
- *
191
- * This class is used to represent the token in the system. Notice individual
192
- * endpoints' documentation where per chain tokens are presented.
187
+ * The symbol of a token in the pool
193
188
  */
194
189
  tokenIn?: UniswapPoolPriceTokenInToken | undefined;
195
190
  /**
196
- * A class representing the token.
197
- *
198
- * @remarks
199
- *
200
- * This class is used to represent the token in the system. Notice individual
201
- * endpoints' documentation where per chain tokens are presented.
191
+ * The symbol of a token in the pool
202
192
  */
203
193
  tokenOut?: UniswapPoolPriceTokenOutToken | undefined;
204
194
  /**
205
- * The transaction fee of a Uniswap pool in bips.
206
- *
207
- * @remarks
208
- *
209
- * Uniswap supports 4 different fee levels.
195
+ * The fee of the pool
210
196
  */
211
197
  fee?: UniswapPoolPriceFeeEnum | undefined;
212
198
  };
@@ -180,6 +180,9 @@ export type UniswapQuoteBuyExactlyFeeEnum = ClosedEnum<
180
180
  typeof UniswapQuoteBuyExactlyFeeEnum
181
181
  >;
182
182
 
183
+ /**
184
+ * The amount of the token to swap to
185
+ */
183
186
  export type AmountOut = number | string;
184
187
 
185
188
  export type UniswapQuoteBuyExactlyRequest = {
@@ -188,31 +191,20 @@ export type UniswapQuoteBuyExactlyRequest = {
188
191
  */
189
192
  chain?: UniswapQuoteBuyExactlyChain | undefined;
190
193
  /**
191
- * A class representing the token.
192
- *
193
- * @remarks
194
- *
195
- * This class is used to represent the token in the system. Notice individual
196
- * endpoints' documentation where per chain tokens are presented.
194
+ * The symbol of the token to swap from.
197
195
  */
198
196
  tokenIn?: UniswapQuoteBuyExactlyTokenInToken | undefined;
199
197
  /**
200
- * A class representing the token.
201
- *
202
- * @remarks
203
- *
204
- * This class is used to represent the token in the system. Notice individual
205
- * endpoints' documentation where per chain tokens are presented.
198
+ * The symbol of the token to swap to.
206
199
  */
207
200
  tokenOut?: UniswapQuoteBuyExactlyTokenOutToken | undefined;
208
201
  /**
209
- * The transaction fee of a Uniswap pool in bips.
210
- *
211
- * @remarks
212
- *
213
- * Uniswap supports 4 different fee levels.
202
+ * The fee to pay for the swap
214
203
  */
215
204
  fee?: UniswapQuoteBuyExactlyFeeEnum | undefined;
205
+ /**
206
+ * The amount of the token to swap to
207
+ */
216
208
  amountOut: number | string;
217
209
  };
218
210
 
@@ -180,6 +180,9 @@ export type UniswapQuoteSellExactlyFeeEnum = ClosedEnum<
180
180
  typeof UniswapQuoteSellExactlyFeeEnum
181
181
  >;
182
182
 
183
+ /**
184
+ * The amount of the token to swap from
185
+ */
183
186
  export type AmountIn = number | string;
184
187
 
185
188
  export type UniswapQuoteSellExactlyRequest = {
@@ -188,31 +191,20 @@ export type UniswapQuoteSellExactlyRequest = {
188
191
  */
189
192
  chain?: UniswapQuoteSellExactlyChain | undefined;
190
193
  /**
191
- * A class representing the token.
192
- *
193
- * @remarks
194
- *
195
- * This class is used to represent the token in the system. Notice individual
196
- * endpoints' documentation where per chain tokens are presented.
194
+ * The symbol of the token to swap from.
197
195
  */
198
196
  tokenIn?: UniswapQuoteSellExactlyTokenInToken | undefined;
199
197
  /**
200
- * A class representing the token.
201
- *
202
- * @remarks
203
- *
204
- * This class is used to represent the token in the system. Notice individual
205
- * endpoints' documentation where per chain tokens are presented.
198
+ * The symbol of the token to swap to.
206
199
  */
207
200
  tokenOut?: UniswapQuoteSellExactlyTokenOutToken | undefined;
208
201
  /**
209
- * The transaction fee of a Uniswap pool in bips.
210
- *
211
- * @remarks
212
- *
213
- * Uniswap supports 4 different fee levels.
202
+ * The fee to pay for the swap
214
203
  */
215
204
  fee?: UniswapQuoteSellExactlyFeeEnum | undefined;
205
+ /**
206
+ * The amount of the token to swap from
207
+ */
216
208
  amountIn: number | string;
217
209
  };
218
210