compass_api_sdk 1.1.1__py3-none-any.whl → 2.0.21rc1__py3-none-any.whl

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 (248) hide show
  1. compass_api_sdk/_hooks/sdkhooks.py +4 -4
  2. compass_api_sdk/_hooks/types.py +1 -2
  3. compass_api_sdk/_version.py +3 -3
  4. compass_api_sdk/aave_v3.py +386 -114
  5. compass_api_sdk/aerodrome_slipstream.py +104 -54
  6. compass_api_sdk/basesdk.py +6 -0
  7. compass_api_sdk/bridge.py +536 -0
  8. compass_api_sdk/earn.py +1780 -0
  9. compass_api_sdk/erc_4626_vaults.py +28 -10
  10. compass_api_sdk/errors/__init__.py +8 -0
  11. compass_api_sdk/errors/apierror.py +1 -1
  12. compass_api_sdk/errors/compassapierror.py +1 -1
  13. compass_api_sdk/errors/httpvalidationerror.py +1 -1
  14. compass_api_sdk/errors/mintpreparenotfoundresponse_error.py +49 -0
  15. compass_api_sdk/errors/no_response_error.py +1 -1
  16. compass_api_sdk/errors/responsevalidationerror.py +1 -1
  17. compass_api_sdk/ethena.py +36 -10
  18. compass_api_sdk/gas_sponsorship.py +446 -0
  19. compass_api_sdk/httpclient.py +0 -1
  20. compass_api_sdk/models/__init__.py +764 -392
  21. compass_api_sdk/models/aaveborrowparams.py +4 -13
  22. compass_api_sdk/models/aaveborrowrequest.py +10 -14
  23. compass_api_sdk/models/aavehistoricaltransactionsresponse.py +3 -3
  24. compass_api_sdk/models/aavelooprequest.py +32 -28
  25. compass_api_sdk/models/aaveposition.py +49 -0
  26. compass_api_sdk/models/aaverepayparams.py +4 -13
  27. compass_api_sdk/models/aaverepayrequest.py +10 -14
  28. compass_api_sdk/models/aavesetuseremodeparams.py +28 -0
  29. compass_api_sdk/models/aavesetuseremoderequest.py +48 -0
  30. compass_api_sdk/models/aavesupplyparams.py +4 -13
  31. compass_api_sdk/models/aavesupplyrequest.py +10 -14
  32. compass_api_sdk/models/aavevenue.py +27 -0
  33. compass_api_sdk/models/aavewithdrawparams.py +4 -13
  34. compass_api_sdk/models/aavewithdrawrequest.py +10 -14
  35. compass_api_sdk/models/aerodromeenrichedposition.py +109 -0
  36. compass_api_sdk/models/aerodromelppositionsresponse.py +10 -7
  37. compass_api_sdk/models/aerodromeslipstreambuyexactlyparams.py +8 -25
  38. compass_api_sdk/models/aerodromeslipstreambuyexactlyrequest.py +14 -26
  39. compass_api_sdk/models/aerodromeslipstreamincreaseliquidityprovisionrequest.py +6 -1
  40. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionparams.py +8 -25
  41. compass_api_sdk/models/aerodromeslipstreammintliquidityprovisionrequest.py +14 -26
  42. compass_api_sdk/models/aerodromeslipstreampoolpriceresponse.py +8 -25
  43. compass_api_sdk/models/aerodromeslipstreamsellexactlyparams.py +8 -25
  44. compass_api_sdk/models/aerodromeslipstreamsellexactlyrequest.py +13 -25
  45. compass_api_sdk/models/aerodromeslipstreamwithdrawliquidityprovisionrequest.py +6 -1
  46. compass_api_sdk/models/approvetransferrequest.py +32 -0
  47. compass_api_sdk/models/approvetransferresponse.py +52 -0
  48. compass_api_sdk/models/batchedsafeoperationsresponse_input.py +52 -0
  49. compass_api_sdk/models/batchedsafeoperationsresponse_output.py +52 -0
  50. compass_api_sdk/models/batcheduseroperationsrequest.py +15 -4
  51. compass_api_sdk/models/chainmarketinfo.py +29 -0
  52. compass_api_sdk/models/{compass_api_backend_models_generic_read_response_portfolio_tokenbalance.py → compass_api_backend_v1_models_generic_read_response_portfolio_tokenbalance.py} +6 -15
  53. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_apydata.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_apydata.py} +2 -2
  54. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_asset.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_asset.py} +2 -2
  55. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_marketstate.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_marketstate.py} +4 -2
  56. compass_api_sdk/models/compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultposition.py +30 -0
  57. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_check_user_position_vaultstate.py → compass_api_backend_v1_models_morpho_read_response_check_user_position_vaultstate.py} +2 -2
  58. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_apydata.py → compass_api_backend_v1_models_morpho_read_response_get_market_apydata.py} +2 -2
  59. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_asset.py → compass_api_backend_v1_models_morpho_read_response_get_market_asset.py} +5 -5
  60. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_market_marketstate.py → compass_api_backend_v1_models_morpho_read_response_get_market_marketstate.py} +4 -2
  61. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_asset.py → compass_api_backend_v1_models_morpho_read_response_get_markets_asset.py} +2 -2
  62. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_markets_marketstate.py → compass_api_backend_v1_models_morpho_read_response_get_markets_marketstate.py} +2 -2
  63. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_asset.py → compass_api_backend_v1_models_morpho_read_response_get_vaults_asset.py} +2 -2
  64. compass_api_sdk/models/{compass_api_backend_models_morpho_read_response_get_vaults_vaultstate.py → compass_api_backend_v1_models_morpho_read_response_get_vaults_vaultstate.py} +4 -2
  65. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_market_userposition.py → compass_api_backend_v1_models_pendle_read_response_market_userposition.py} +2 -2
  66. compass_api_sdk/models/{compass_api_backend_models_pendle_read_response_positions_tokenbalance.py → compass_api_backend_v1_models_pendle_read_response_positions_tokenbalance.py} +2 -2
  67. compass_api_sdk/models/{compass_api_backend_models_vaults_read_response_vault_userposition.py → compass_api_backend_v1_models_vaults_read_response_vault_userposition.py} +2 -2
  68. compass_api_sdk/models/compass_api_backend_v1_models_wildcat_read_response_market_userposition.py +22 -0
  69. compass_api_sdk/models/compass_api_backend_v2_models_earn_read_response_positions_vaultposition.py +49 -0
  70. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712domain.py +36 -0
  71. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_2_typed_data_eip712types.py +36 -0
  72. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712domain.py +37 -0
  73. compass_api_sdk/models/compass_api_backend_v2_models_gas_sponsorship_permit_typed_data_eip712types.py +32 -0
  74. compass_api_sdk/models/compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712domain.py +29 -0
  75. compass_api_sdk/models/compass_api_backend_v2_models_safe_transact_response_batched_safe_operations_eip712types.py +34 -0
  76. compass_api_sdk/models/createaccountrequest.py +40 -0
  77. compass_api_sdk/models/createaccountresponse.py +56 -0
  78. compass_api_sdk/models/depositforburnrequest.py +77 -0
  79. compass_api_sdk/models/depositforburnresponse.py +100 -0
  80. compass_api_sdk/models/earnmanageparams.py +74 -0
  81. compass_api_sdk/models/earnmanagerequest.py +130 -0
  82. compass_api_sdk/models/earnmanageresponse.py +52 -0
  83. compass_api_sdk/models/earnpositionsresponse.py +39 -0
  84. compass_api_sdk/models/earnswapparams.py +74 -0
  85. compass_api_sdk/models/earnswaprequest.py +90 -0
  86. compass_api_sdk/models/earnswapresponse.py +55 -0
  87. compass_api_sdk/models/earntransferrequest.py +104 -0
  88. compass_api_sdk/models/earntransferresponse.py +71 -0
  89. compass_api_sdk/models/eip712domainfield.py +20 -0
  90. compass_api_sdk/models/eip712field.py +20 -0
  91. compass_api_sdk/models/ethenadepositrequest.py +6 -1
  92. compass_api_sdk/models/ethenagetvaultresponse.py +5 -5
  93. compass_api_sdk/models/ethenarequesttowithdrawrequest.py +6 -1
  94. compass_api_sdk/models/ethenaunstakerequest.py +6 -1
  95. compass_api_sdk/models/fee.py +42 -0
  96. compass_api_sdk/models/listaavemarketsresponse.py +21 -0
  97. compass_api_sdk/models/marketposition.py +5 -5
  98. compass_api_sdk/models/maxsupplyapyinfo.py +34 -0
  99. compass_api_sdk/models/mintpreparecompletedresponse.py +46 -0
  100. compass_api_sdk/models/mintpreparependingresponse.py +65 -0
  101. compass_api_sdk/models/mintpreparereadyresponse.py +43 -0
  102. compass_api_sdk/models/mintpreparerequest.py +25 -0
  103. compass_api_sdk/models/morphoborrowrequest.py +6 -1
  104. compass_api_sdk/models/morphocheckuserpositionresponse.py +9 -3
  105. compass_api_sdk/models/morphodepositrequest.py +6 -1
  106. compass_api_sdk/models/morphogetmarketresponse.py +72 -31
  107. compass_api_sdk/models/morphomarket.py +26 -20
  108. compass_api_sdk/models/morphorepayrequest.py +11 -1
  109. compass_api_sdk/models/morphosupplycollateralrequest.py +11 -1
  110. compass_api_sdk/models/morphovault.py +10 -10
  111. compass_api_sdk/models/morphowithdrawcollateralrequest.py +6 -1
  112. compass_api_sdk/models/morphowithdrawrequest.py +6 -1
  113. compass_api_sdk/models/multicallexecuterequest.py +7 -2
  114. compass_api_sdk/models/odosswapparams.py +9 -30
  115. compass_api_sdk/models/odosswaprequest.py +15 -33
  116. compass_api_sdk/models/oneinchswapparams.py +59 -0
  117. compass_api_sdk/models/openposition.py +7 -7
  118. compass_api_sdk/models/operationtype.py +11 -0
  119. compass_api_sdk/models/pendlegetmarketresponse.py +5 -5
  120. compass_api_sdk/models/pendlemanageliquidityparams.py +2 -15
  121. compass_api_sdk/models/pendlemanageliquidityrequest.py +8 -16
  122. compass_api_sdk/models/pendleredeemyieldrequest.py +6 -1
  123. compass_api_sdk/models/pendletradeptparams.py +2 -15
  124. compass_api_sdk/models/pendletradeptrequest.py +8 -16
  125. compass_api_sdk/models/pendletradeytparams.py +2 -15
  126. compass_api_sdk/models/pendletradeytrequest.py +8 -16
  127. compass_api_sdk/models/permit2typeddata_input.py +46 -0
  128. compass_api_sdk/models/permit2typeddata_output.py +46 -0
  129. compass_api_sdk/models/permitfield.py +20 -0
  130. compass_api_sdk/models/permitmessage.py +39 -0
  131. compass_api_sdk/models/permittransferfrommessage.py +29 -0
  132. compass_api_sdk/models/permittypeddataresponse_input.py +50 -0
  133. compass_api_sdk/models/permittypeddataresponse_output.py +50 -0
  134. compass_api_sdk/models/portfolio.py +5 -5
  135. compass_api_sdk/models/reserve.py +6 -15
  136. compass_api_sdk/models/safetransactionparams.py +78 -0
  137. compass_api_sdk/models/safetransactionresponse.py +28 -0
  138. compass_api_sdk/models/safetxfield.py +20 -0
  139. compass_api_sdk/models/safetxmessage.py +66 -0
  140. compass_api_sdk/models/setallowanceparams.py +3 -16
  141. compass_api_sdk/models/setallowancerequest.py +9 -17
  142. compass_api_sdk/models/skybuyrequest.py +6 -1
  143. compass_api_sdk/models/skydepositrequest.py +7 -2
  144. compass_api_sdk/models/skysellrequest.py +7 -2
  145. compass_api_sdk/models/skywithdrawrequest.py +7 -2
  146. compass_api_sdk/models/sponsorgasrequest.py +71 -0
  147. compass_api_sdk/models/sponsorgasresponse.py +14 -0
  148. compass_api_sdk/models/tokenbalanceresponse.py +5 -15
  149. compass_api_sdk/models/tokenconfig.py +30 -0
  150. compass_api_sdk/models/tokenlistresponse.py +21 -0
  151. compass_api_sdk/models/tokenmarketdata.py +27 -0
  152. compass_api_sdk/models/tokenpermissions.py +20 -0
  153. compass_api_sdk/models/tokentransferparams.py +2 -15
  154. compass_api_sdk/models/tokentransferrequest.py +8 -16
  155. compass_api_sdk/models/uniswapbuyexactlyparams.py +8 -33
  156. compass_api_sdk/models/uniswapbuyexactlyrequest.py +14 -34
  157. compass_api_sdk/models/uniswapincreaseliquidityprovisionrequest.py +6 -1
  158. compass_api_sdk/models/uniswapmintliquidityprovisionparams.py +8 -25
  159. compass_api_sdk/models/uniswapmintliquidityprovisionrequest.py +14 -26
  160. compass_api_sdk/models/uniswappoolpriceresponse.py +8 -25
  161. compass_api_sdk/models/uniswapsellexactlyparams.py +4 -29
  162. compass_api_sdk/models/uniswapsellexactlyrequest.py +10 -30
  163. compass_api_sdk/models/uniswapwithdrawliquidityprovisionrequest.py +6 -1
  164. compass_api_sdk/models/unsignedmulticalltransaction.py +34 -3
  165. compass_api_sdk/models/unsignedtransaction.py +34 -3
  166. compass_api_sdk/models/unwrapwethrequest.py +6 -1
  167. compass_api_sdk/models/useroperation.py +33 -24
  168. compass_api_sdk/models/v1_aave_aave_supported_tokensop.py +1 -1
  169. compass_api_sdk/models/v1_aave_avg_rateop.py +15 -93
  170. compass_api_sdk/models/v1_aave_historical_transactionsop.py +15 -15
  171. compass_api_sdk/models/v1_aave_liquidity_changeop.py +8 -86
  172. compass_api_sdk/models/v1_aave_rateop.py +8 -86
  173. compass_api_sdk/models/v1_aave_reserve_overviewop.py +8 -86
  174. compass_api_sdk/models/v1_aave_std_rateop.py +15 -93
  175. compass_api_sdk/models/v1_aave_token_priceop.py +8 -86
  176. compass_api_sdk/models/v1_aave_user_position_per_tokenop.py +14 -92
  177. compass_api_sdk/models/v1_aave_user_position_summaryop.py +8 -8
  178. compass_api_sdk/models/v1_aerodrome_slipstream_liquidity_provision_positionsop.py +48 -3
  179. compass_api_sdk/models/v1_aerodrome_slipstream_pool_priceop.py +12 -168
  180. compass_api_sdk/models/v1_ethena_vaultop.py +1 -1
  181. compass_api_sdk/models/v1_generic_allowanceop.py +12 -26
  182. compass_api_sdk/models/v1_generic_ensop.py +2 -2
  183. compass_api_sdk/models/v1_generic_portfolioop.py +2 -2
  184. compass_api_sdk/models/v1_morpho_market_positionop.py +3 -3
  185. compass_api_sdk/models/v1_morpho_marketop.py +2 -2
  186. compass_api_sdk/models/v1_morpho_marketsop.py +10 -30
  187. compass_api_sdk/models/v1_morpho_user_positionop.py +2 -2
  188. compass_api_sdk/models/v1_morpho_vaultop.py +8 -8
  189. compass_api_sdk/models/v1_morpho_vaultsop.py +6 -16
  190. compass_api_sdk/models/v1_pendle_marketop.py +8 -8
  191. compass_api_sdk/models/v1_pendle_marketsop.py +1 -1
  192. compass_api_sdk/models/v1_pendle_positionsop.py +2 -2
  193. compass_api_sdk/models/v1_sky_positionop.py +5 -6
  194. compass_api_sdk/models/v1_token_balanceop.py +12 -25
  195. compass_api_sdk/models/{v1_generic_supported_tokensop.py → v1_token_listop.py} +6 -6
  196. compass_api_sdk/models/v1_token_priceop.py +8 -9
  197. compass_api_sdk/models/v1_transaction_bundler_aave_loopop.py +6 -6
  198. compass_api_sdk/models/v1_uniswap_liquidity_provision_in_rangeop.py +2 -2
  199. compass_api_sdk/models/v1_uniswap_liquidity_provision_positionsop.py +2 -2
  200. compass_api_sdk/models/v1_uniswap_pool_priceop.py +12 -168
  201. compass_api_sdk/models/v1_uniswap_quote_buy_exactlyop.py +20 -176
  202. compass_api_sdk/models/v1_uniswap_quote_sell_exactlyop.py +20 -176
  203. compass_api_sdk/models/v1_vaults_vaultop.py +8 -8
  204. compass_api_sdk/models/v1_wildcat_marketop.py +82 -0
  205. compass_api_sdk/models/v2_cctp_mintop.py +47 -0
  206. compass_api_sdk/models/v2_earn_aave_marketsop.py +57 -0
  207. compass_api_sdk/models/v2_earn_positionsop.py +56 -0
  208. compass_api_sdk/models/v2_earn_vaultsop.py +105 -0
  209. compass_api_sdk/models/v2bundlerequest.py +33 -0
  210. compass_api_sdk/models/v2bundleresponse.py +67 -0
  211. compass_api_sdk/models/v2useroperation.py +37 -0
  212. compass_api_sdk/models/vault.py +14 -14
  213. compass_api_sdk/models/vaultdepositrequest.py +6 -1
  214. compass_api_sdk/models/vaultgetvaultresponse.py +5 -5
  215. compass_api_sdk/models/vaultinfo.py +129 -0
  216. compass_api_sdk/models/vaultsresponse.py +30 -0
  217. compass_api_sdk/models/vaultvenue.py +27 -0
  218. compass_api_sdk/models/vaultwithdrawrequest.py +6 -1
  219. compass_api_sdk/models/wildcatgetmarketresponse.py +151 -0
  220. compass_api_sdk/models/{redeemunderlying.py → withdraw.py} +2 -2
  221. compass_api_sdk/models/wrapethrequest.py +6 -1
  222. compass_api_sdk/morpho.py +126 -78
  223. compass_api_sdk/pendle.py +68 -44
  224. compass_api_sdk/sdk.py +18 -11
  225. compass_api_sdk/sky.py +62 -38
  226. compass_api_sdk/smart_account.py +10 -2
  227. compass_api_sdk/swap.py +22 -22
  228. compass_api_sdk/{token_sdk.py → token.py} +511 -103
  229. compass_api_sdk/transaction_bundler.py +46 -16
  230. compass_api_sdk/uniswap_v3.py +152 -114
  231. compass_api_sdk/universal.py +44 -606
  232. compass_api_sdk/utils/annotations.py +32 -8
  233. compass_api_sdk/utils/forms.py +21 -10
  234. compass_api_sdk/utils/queryparams.py +14 -2
  235. compass_api_sdk/utils/retries.py +69 -5
  236. compass_api_sdk/utils/unmarshal_json_response.py +15 -1
  237. compass_api_sdk/wildcat.py +208 -0
  238. compass_api_sdk-2.0.21rc1.dist-info/METADATA +623 -0
  239. compass_api_sdk-2.0.21rc1.dist-info/RECORD +346 -0
  240. {compass_api_sdk-1.1.1.dist-info → compass_api_sdk-2.0.21rc1.dist-info}/WHEEL +1 -1
  241. compass_api_sdk/models/aerodromeposition.py +0 -70
  242. compass_api_sdk/models/token_enum.py +0 -81
  243. compass_api_sdk/models/tokenaddressresponse.py +0 -15
  244. compass_api_sdk/models/tokeninfo.py +0 -17
  245. compass_api_sdk/models/v1_token_addressop.py +0 -109
  246. compass_api_sdk/models/vaultposition.py +0 -24
  247. compass_api_sdk-1.1.1.dist-info/METADATA +0 -592
  248. compass_api_sdk-1.1.1.dist-info/RECORD +0 -275
@@ -23,9 +23,9 @@ class V1MorphoUserPositionRequest(BaseModel):
23
23
  chain: Annotated[
24
24
  V1MorphoUserPositionChain,
25
25
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
26
- ] = V1MorphoUserPositionChain.BASE
26
+ ]
27
27
 
28
28
  user_address: Annotated[
29
29
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
30
- ] = "0x81d310Eb515E05EB26322e2DeDE9e75b754885A4"
30
+ ]
31
31
  r"""The user wallet address of the desired user position."""
@@ -22,10 +22,10 @@ class V1MorphoVaultChain(str, Enum):
22
22
 
23
23
  class V1MorphoVaultRequestTypedDict(TypedDict):
24
24
  chain: V1MorphoVaultChain
25
- block: NotRequired[Nullable[int]]
26
- r"""Optional block number (defaults to latest)."""
27
25
  vault_address: str
28
26
  r"""The vault address of the desired vault position."""
27
+ block: NotRequired[Nullable[int]]
28
+ r"""Optional block number (defaults to latest)."""
29
29
  user_address: NotRequired[Nullable[str]]
30
30
  r"""The user address of the desired vault position. Only include if you would like the user position included in the response. Defaults to `None`."""
31
31
 
@@ -34,7 +34,12 @@ class V1MorphoVaultRequest(BaseModel):
34
34
  chain: Annotated[
35
35
  V1MorphoVaultChain,
36
36
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
37
- ] = V1MorphoVaultChain.ETHEREUM
37
+ ]
38
+
39
+ vault_address: Annotated[
40
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
41
+ ]
42
+ r"""The vault address of the desired vault position."""
38
43
 
39
44
  block: Annotated[
40
45
  OptionalNullable[int],
@@ -42,11 +47,6 @@ class V1MorphoVaultRequest(BaseModel):
42
47
  ] = UNSET
43
48
  r"""Optional block number (defaults to latest)."""
44
49
 
45
- vault_address: Annotated[
46
- str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
47
- ] = "0x182863131F9a4630fF9E27830d945B1413e347E8"
48
- r"""The vault address of the desired vault position."""
49
-
50
50
  user_address: Annotated[
51
51
  OptionalNullable[str],
52
52
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
@@ -1,7 +1,6 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import (
6
5
  BaseModel,
7
6
  Nullable,
@@ -12,8 +11,7 @@ from compass_api_sdk.types import (
12
11
  from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
13
12
  from enum import Enum
14
13
  from pydantic import model_serializer
15
- from typing import Union
16
- from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
14
+ from typing_extensions import Annotated, NotRequired, TypedDict
17
15
 
18
16
 
19
17
  class V1MorphoVaultsChain(str, Enum):
@@ -22,31 +20,23 @@ class V1MorphoVaultsChain(str, Enum):
22
20
  ETHEREUM = "ethereum"
23
21
 
24
22
 
25
- DepositTokenTypedDict = TypeAliasType("DepositTokenTypedDict", Union[TokenEnum, str])
26
- r"""Token address that will filter vaults by this deposit token."""
27
-
28
-
29
- DepositToken = TypeAliasType("DepositToken", Union[TokenEnum, str])
30
- r"""Token address that will filter vaults by this deposit token."""
31
-
32
-
33
23
  class V1MorphoVaultsRequestTypedDict(TypedDict):
34
24
  chain: V1MorphoVaultsChain
35
- deposit_token: NotRequired[Nullable[DepositTokenTypedDict]]
36
- r"""Token address that will filter vaults by this deposit token."""
25
+ deposit_token: NotRequired[Nullable[str]]
26
+ r"""Symbol or address of the deposit token to filter vaults by. Optional parameter."""
37
27
 
38
28
 
39
29
  class V1MorphoVaultsRequest(BaseModel):
40
30
  chain: Annotated[
41
31
  V1MorphoVaultsChain,
42
32
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
43
- ] = V1MorphoVaultsChain.BASE
33
+ ]
44
34
 
45
35
  deposit_token: Annotated[
46
- OptionalNullable[DepositToken],
36
+ OptionalNullable[str],
47
37
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
48
38
  ] = UNSET
49
- r"""Token address that will filter vaults by this deposit token."""
39
+ r"""Symbol or address of the deposit token to filter vaults by. Optional parameter."""
50
40
 
51
41
  @model_serializer(mode="wrap")
52
42
  def serialize_model(self, handler):
@@ -22,10 +22,10 @@ class V1PendleMarketChain(str, Enum):
22
22
 
23
23
  class V1PendleMarketRequestTypedDict(TypedDict):
24
24
  chain: V1PendleMarketChain
25
- block: NotRequired[Nullable[int]]
26
- r"""Optional block number (defaults to latest)."""
27
25
  market_address: str
28
26
  r"""The market address of the desired position."""
27
+ block: NotRequired[Nullable[int]]
28
+ r"""Optional block number (defaults to latest)."""
29
29
  user_address: NotRequired[Nullable[str]]
30
30
  r"""The user address of the desired market position. Only include if you would like the user position included in the response. Defaults to `None`."""
31
31
 
@@ -34,7 +34,12 @@ class V1PendleMarketRequest(BaseModel):
34
34
  chain: Annotated[
35
35
  V1PendleMarketChain,
36
36
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
37
- ] = V1PendleMarketChain.ARBITRUM
37
+ ]
38
+
39
+ market_address: Annotated[
40
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
41
+ ]
42
+ r"""The market address of the desired position."""
38
43
 
39
44
  block: Annotated[
40
45
  OptionalNullable[int],
@@ -42,11 +47,6 @@ class V1PendleMarketRequest(BaseModel):
42
47
  ] = UNSET
43
48
  r"""Optional block number (defaults to latest)."""
44
49
 
45
- market_address: Annotated[
46
- str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
47
- ] = "0x46d62a8dede1bf2d0de04f2ed863245cbba5e538"
48
- r"""The market address of the desired position."""
49
-
50
50
  user_address: Annotated[
51
51
  OptionalNullable[str],
52
52
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
@@ -21,4 +21,4 @@ class V1PendleMarketsRequest(BaseModel):
21
21
  chain: Annotated[
22
22
  V1PendleMarketsChain,
23
23
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
24
- ] = V1PendleMarketsChain.ARBITRUM
24
+ ]
@@ -23,9 +23,9 @@ class V1PendlePositionsRequest(BaseModel):
23
23
  chain: Annotated[
24
24
  V1PendlePositionsChain,
25
25
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
26
- ] = V1PendlePositionsChain.ARBITRUM
26
+ ]
27
27
 
28
28
  user_address: Annotated[
29
29
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
30
- ] = "0x68C314e30b543a35819e5625da563E6Da65D5dd4"
30
+ ]
31
31
  r"""The user address of the desired position."""
@@ -4,8 +4,7 @@ from __future__ import annotations
4
4
  from compass_api_sdk.types import BaseModel
5
5
  from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
6
6
  from enum import Enum
7
- from typing import Optional
8
- from typing_extensions import Annotated, NotRequired, TypedDict
7
+ from typing_extensions import Annotated, TypedDict
9
8
 
10
9
 
11
10
  class V1SkyPositionChain(str, Enum):
@@ -13,18 +12,18 @@ class V1SkyPositionChain(str, Enum):
13
12
 
14
13
 
15
14
  class V1SkyPositionRequestTypedDict(TypedDict):
16
- chain: NotRequired[V1SkyPositionChain]
15
+ chain: V1SkyPositionChain
17
16
  user_address: str
18
17
  r"""The user-address of the desired position."""
19
18
 
20
19
 
21
20
  class V1SkyPositionRequest(BaseModel):
22
21
  chain: Annotated[
23
- Optional[V1SkyPositionChain],
22
+ V1SkyPositionChain,
24
23
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
25
- ] = V1SkyPositionChain.ETHEREUM
24
+ ]
26
25
 
27
26
  user_address: Annotated[
28
27
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
29
- ] = "0xa829B388A3DF7f581cE957a95edbe419dd146d1B"
28
+ ]
30
29
  r"""The user-address of the desired position."""
@@ -1,12 +1,10 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .token_enum import TokenEnum
5
4
  from compass_api_sdk.types import BaseModel
6
5
  from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
7
6
  from enum import Enum
8
- from typing import Union
9
- from typing_extensions import Annotated, TypeAliasType, TypedDict
7
+ from typing_extensions import Annotated, TypedDict
10
8
 
11
9
 
12
10
  class V1TokenBalanceChain(str, Enum):
@@ -15,37 +13,26 @@ class V1TokenBalanceChain(str, Enum):
15
13
  ETHEREUM = "ethereum"
16
14
 
17
15
 
18
- V1TokenBalanceTokenTypedDict = TypeAliasType(
19
- "V1TokenBalanceTokenTypedDict", Union[TokenEnum, str]
20
- )
21
- r"""The symbol of the token for which the balance is checked.."""
22
-
23
-
24
- V1TokenBalanceToken = TypeAliasType("V1TokenBalanceToken", Union[TokenEnum, str])
25
- r"""The symbol of the token for which the balance is checked.."""
26
-
27
-
28
16
  class V1TokenBalanceRequestTypedDict(TypedDict):
29
- token: V1TokenBalanceTokenTypedDict
30
- r"""The symbol of the token for which the balance is checked.."""
31
17
  chain: V1TokenBalanceChain
32
18
  user: str
33
- r"""The user to get the ERC20 balance of."""
19
+ r"""The user to get the token balance of."""
20
+ token: str
21
+ r"""The symbol or address of the token for which the balance is checked."""
34
22
 
35
23
 
36
24
  class V1TokenBalanceRequest(BaseModel):
37
- token: Annotated[
38
- V1TokenBalanceToken,
39
- FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
40
- ]
41
- r"""The symbol of the token for which the balance is checked.."""
42
-
43
25
  chain: Annotated[
44
26
  V1TokenBalanceChain,
45
27
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
46
- ] = V1TokenBalanceChain.ARBITRUM
28
+ ]
47
29
 
48
30
  user: Annotated[
49
31
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
50
- ] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
51
- r"""The user to get the ERC20 balance of."""
32
+ ]
33
+ r"""The user to get the token balance of."""
34
+
35
+ token: Annotated[
36
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
37
+ ]
38
+ r"""The symbol or address of the token for which the balance is checked."""
@@ -7,18 +7,18 @@ from enum import Enum
7
7
  from typing_extensions import Annotated, TypedDict
8
8
 
9
9
 
10
- class V1GenericSupportedTokensChain(str, Enum):
10
+ class V1TokenListChain(str, Enum):
11
11
  ARBITRUM = "arbitrum"
12
12
  BASE = "base"
13
13
  ETHEREUM = "ethereum"
14
14
 
15
15
 
16
- class V1GenericSupportedTokensRequestTypedDict(TypedDict):
17
- chain: V1GenericSupportedTokensChain
16
+ class V1TokenListRequestTypedDict(TypedDict):
17
+ chain: V1TokenListChain
18
18
 
19
19
 
20
- class V1GenericSupportedTokensRequest(BaseModel):
20
+ class V1TokenListRequest(BaseModel):
21
21
  chain: Annotated[
22
- V1GenericSupportedTokensChain,
22
+ V1TokenListChain,
23
23
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
24
- ] = V1GenericSupportedTokensChain.ARBITRUM
24
+ ]
@@ -11,7 +11,6 @@ from compass_api_sdk.types import (
11
11
  from compass_api_sdk.utils import FieldMetadata, QueryParamMetadata
12
12
  from enum import Enum
13
13
  from pydantic import model_serializer
14
- from typing import Any
15
14
  from typing_extensions import Annotated, NotRequired, TypedDict
16
15
 
17
16
 
@@ -22,23 +21,23 @@ class V1TokenPriceChain(str, Enum):
22
21
 
23
22
 
24
23
  class V1TokenPriceRequestTypedDict(TypedDict):
25
- token: Any
26
- r"""The symbol or address of the token for which to get the price."""
27
24
  chain: V1TokenPriceChain
25
+ token: str
26
+ r"""The symbol or address of the token for which to get the price.."""
28
27
  block: NotRequired[Nullable[int]]
29
28
  r"""Optional block number (defaults to latest)."""
30
29
 
31
30
 
32
31
  class V1TokenPriceRequest(BaseModel):
33
- token: Annotated[
34
- Any, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
35
- ]
36
- r"""The symbol or address of the token for which to get the price."""
37
-
38
32
  chain: Annotated[
39
33
  V1TokenPriceChain,
40
34
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
41
- ] = V1TokenPriceChain.ETHEREUM
35
+ ]
36
+
37
+ token: Annotated[
38
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
39
+ ]
40
+ r"""The symbol or address of the token for which to get the price.."""
42
41
 
43
42
  block: Annotated[
44
43
  OptionalNullable[int],
@@ -1,27 +1,27 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from .batcheduseroperationsresponse import (
5
- BatchedUserOperationsResponse,
6
- BatchedUserOperationsResponseTypedDict,
7
- )
8
4
  from .bundlertransactionresponse import (
9
5
  BundlerTransactionResponse,
10
6
  BundlerTransactionResponseTypedDict,
11
7
  )
8
+ from .safetransactionresponse import (
9
+ SafeTransactionResponse,
10
+ SafeTransactionResponseTypedDict,
11
+ )
12
12
  from typing import Union
13
13
  from typing_extensions import TypeAliasType
14
14
 
15
15
 
16
16
  ResponseV1TransactionBundlerAaveLoopTypedDict = TypeAliasType(
17
17
  "ResponseV1TransactionBundlerAaveLoopTypedDict",
18
- Union[BundlerTransactionResponseTypedDict, BatchedUserOperationsResponseTypedDict],
18
+ Union[BundlerTransactionResponseTypedDict, SafeTransactionResponseTypedDict],
19
19
  )
20
20
  r"""Successful Response"""
21
21
 
22
22
 
23
23
  ResponseV1TransactionBundlerAaveLoop = TypeAliasType(
24
24
  "ResponseV1TransactionBundlerAaveLoop",
25
- Union[BundlerTransactionResponse, BatchedUserOperationsResponse],
25
+ Union[BundlerTransactionResponse, SafeTransactionResponse],
26
26
  )
27
27
  r"""Successful Response"""
@@ -23,9 +23,9 @@ class V1UniswapLiquidityProvisionInRangeRequest(BaseModel):
23
23
  chain: Annotated[
24
24
  V1UniswapLiquidityProvisionInRangeChain,
25
25
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
26
- ] = V1UniswapLiquidityProvisionInRangeChain.ARBITRUM
26
+ ]
27
27
 
28
28
  token_id: Annotated[
29
29
  int, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
30
- ] = 4318185
30
+ ]
31
31
  r"""Token ID of the NFT representing the liquidity provisioned position."""
@@ -24,10 +24,10 @@ class V1UniswapLiquidityProvisionPositionsRequest(BaseModel):
24
24
  chain: Annotated[
25
25
  V1UniswapLiquidityProvisionPositionsChain,
26
26
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
27
- ] = V1UniswapLiquidityProvisionPositionsChain.ARBITRUM
27
+ ]
28
28
 
29
29
  user: Annotated[
30
30
  Optional[str],
31
31
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
32
- ] = "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
32
+ ] = None
33
33
  r"""The user to get positions for."""
@@ -13,160 +13,6 @@ class V1UniswapPoolPriceChain(str, Enum):
13
13
  ETHEREUM = "ethereum"
14
14
 
15
15
 
16
- class V1UniswapPoolPriceTokenInToken(str, Enum):
17
- r"""A class representing the token.
18
-
19
- This class is used to represent the token in the system. Notice individual
20
- endpoints' documentation where per chain tokens are presented.
21
- """
22
-
23
- ONE_INCH = "1INCH"
24
- AAVE = "AAVE"
25
- AERO = "AERO"
26
- ARB = "ARB"
27
- BAL = "BAL"
28
- BNKR = "BNKR"
29
- CB_BTC = "cbBTC"
30
- CB_ETH = "cbETH"
31
- CLANKER = "CLANKER"
32
- COPI = "COPI"
33
- CRV = "CRV"
34
- CRV_USD = "crvUSD"
35
- CYBER = "CYBER"
36
- DAI = "DAI"
37
- DOGINME = "DOGINME"
38
- E_BTC = "eBTC"
39
- ENS = "ENS"
40
- ETH = "ETH"
41
- ETHFI = "ETHFI"
42
- ET_HX = "ETHx"
43
- EURC = "EURC"
44
- EUR = "EUR"
45
- EURS = "EURS"
46
- E_US_DE = "eUSDe"
47
- EZ_ETH = "ezETH"
48
- FBTC = "FBTC"
49
- FRAX = "FRAX"
50
- FXS = "FXS"
51
- GHO = "GHO"
52
- KNC = "KNC"
53
- LBTC = "LBTC"
54
- LDO = "LDO"
55
- LINK = "LINK"
56
- LS_ETH = "LsETH"
57
- LUSD = "LUSD"
58
- MAI = "MAI"
59
- MKR = "MKR"
60
- OS_ETH = "osETH"
61
- PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
62
- PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
63
- PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
64
- PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
65
- PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
66
- PYUSD = "PYUSD"
67
- R_ETH = "rETH"
68
- RLUSD = "RLUSD"
69
- RPL = "RPL"
70
- RS_ETH = "rsETH"
71
- S_DAI = "sDAI"
72
- SNX = "SNX"
73
- STG = "STG"
74
- S_US_DE = "sUSDe"
75
- T_BTC = "tBTC"
76
- UNI = "UNI"
77
- US_DB_C = "USDbC"
78
- USD_CE = "USDCe"
79
- USDC = "USDC"
80
- US_DE = "USDe"
81
- USDS = "USDS"
82
- US_DTB = "USDtb"
83
- USDT = "USDT"
84
- VIRTUAL = "VIRTUAL"
85
- WBTC = "WBTC"
86
- WE_ETH = "weETH"
87
- WELL = "WELL"
88
- WETH = "WETH"
89
- WRS_ETH = "wrsETH"
90
- WST_ETH = "wstETH"
91
-
92
-
93
- class V1UniswapPoolPriceTokenOutToken(str, Enum):
94
- r"""A class representing the token.
95
-
96
- This class is used to represent the token in the system. Notice individual
97
- endpoints' documentation where per chain tokens are presented.
98
- """
99
-
100
- ONE_INCH = "1INCH"
101
- AAVE = "AAVE"
102
- AERO = "AERO"
103
- ARB = "ARB"
104
- BAL = "BAL"
105
- BNKR = "BNKR"
106
- CB_BTC = "cbBTC"
107
- CB_ETH = "cbETH"
108
- CLANKER = "CLANKER"
109
- COPI = "COPI"
110
- CRV = "CRV"
111
- CRV_USD = "crvUSD"
112
- CYBER = "CYBER"
113
- DAI = "DAI"
114
- DOGINME = "DOGINME"
115
- E_BTC = "eBTC"
116
- ENS = "ENS"
117
- ETH = "ETH"
118
- ETHFI = "ETHFI"
119
- ET_HX = "ETHx"
120
- EURC = "EURC"
121
- EUR = "EUR"
122
- EURS = "EURS"
123
- E_US_DE = "eUSDe"
124
- EZ_ETH = "ezETH"
125
- FBTC = "FBTC"
126
- FRAX = "FRAX"
127
- FXS = "FXS"
128
- GHO = "GHO"
129
- KNC = "KNC"
130
- LBTC = "LBTC"
131
- LDO = "LDO"
132
- LINK = "LINK"
133
- LS_ETH = "LsETH"
134
- LUSD = "LUSD"
135
- MAI = "MAI"
136
- MKR = "MKR"
137
- OS_ETH = "osETH"
138
- PT_E_USDE_14_AUG2025 = "PT-eUSDE-14AUG2025"
139
- PT_E_USDE_29_MAY2025 = "PT-eUSDE-29MAY2025"
140
- PT_S_USDE_25_SEP2025 = "PT-sUSDE-25SEP2025"
141
- PT_S_USDE_31_JUL2025 = "PT-sUSDE-31JUL2025"
142
- PT_US_DE_31_JUL2025 = "PT-USDe-31JUL2025"
143
- PYUSD = "PYUSD"
144
- R_ETH = "rETH"
145
- RLUSD = "RLUSD"
146
- RPL = "RPL"
147
- RS_ETH = "rsETH"
148
- S_DAI = "sDAI"
149
- SNX = "SNX"
150
- STG = "STG"
151
- S_US_DE = "sUSDe"
152
- T_BTC = "tBTC"
153
- UNI = "UNI"
154
- US_DB_C = "USDbC"
155
- USD_CE = "USDCe"
156
- USDC = "USDC"
157
- US_DE = "USDe"
158
- USDS = "USDS"
159
- US_DTB = "USDtb"
160
- USDT = "USDT"
161
- VIRTUAL = "VIRTUAL"
162
- WBTC = "WBTC"
163
- WE_ETH = "weETH"
164
- WELL = "WELL"
165
- WETH = "WETH"
166
- WRS_ETH = "wrsETH"
167
- WST_ETH = "wstETH"
168
-
169
-
170
16
  class V1UniswapPoolPriceFeeEnum(str, Enum):
171
17
  r"""The transaction fee of a Uniswap pool in bips.
172
18
 
@@ -181,10 +27,10 @@ class V1UniswapPoolPriceFeeEnum(str, Enum):
181
27
 
182
28
  class V1UniswapPoolPriceRequestTypedDict(TypedDict):
183
29
  chain: V1UniswapPoolPriceChain
184
- token_in: V1UniswapPoolPriceTokenInToken
185
- r"""The symbol of a token in the pool"""
186
- token_out: V1UniswapPoolPriceTokenOutToken
187
- r"""The symbol of a token in the pool"""
30
+ token_in: str
31
+ r"""The symbol or address of a token in the pool"""
32
+ token_out: str
33
+ r"""The symbol or address of a token in the pool"""
188
34
  fee: V1UniswapPoolPriceFeeEnum
189
35
  r"""The fee of the pool"""
190
36
 
@@ -193,22 +39,20 @@ class V1UniswapPoolPriceRequest(BaseModel):
193
39
  chain: Annotated[
194
40
  V1UniswapPoolPriceChain,
195
41
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
196
- ] = V1UniswapPoolPriceChain.ARBITRUM
42
+ ]
197
43
 
198
44
  token_in: Annotated[
199
- V1UniswapPoolPriceTokenInToken,
200
- FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
201
- ] = V1UniswapPoolPriceTokenInToken.USDC
202
- r"""The symbol of a token in the pool"""
45
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
46
+ ]
47
+ r"""The symbol or address of a token in the pool"""
203
48
 
204
49
  token_out: Annotated[
205
- V1UniswapPoolPriceTokenOutToken,
206
- FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
207
- ] = V1UniswapPoolPriceTokenOutToken.USDT
208
- r"""The symbol of a token in the pool"""
50
+ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
51
+ ]
52
+ r"""The symbol or address of a token in the pool"""
209
53
 
210
54
  fee: Annotated[
211
55
  V1UniswapPoolPriceFeeEnum,
212
56
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
213
- ] = V1UniswapPoolPriceFeeEnum.ZERO_DOT_01
57
+ ]
214
58
  r"""The fee of the pool"""