@compass-labs/api-sdk 2.2.110 → 2.2.111

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 (137) hide show
  1. package/dist/commonjs/models/components/accountsummary.d.ts +2 -3
  2. package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
  3. package/dist/commonjs/models/components/accountsummary.js.map +1 -1
  4. package/dist/commonjs/models/components/collateralposition.d.ts +2 -3
  5. package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
  6. package/dist/commonjs/models/components/collateralposition.js.map +1 -1
  7. package/dist/commonjs/models/components/creditborrowparams.d.ts +2 -3
  8. package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
  10. package/dist/commonjs/models/components/creditborrowrequest.d.ts +2 -3
  11. package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
  12. package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
  13. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +2 -3
  14. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
  15. package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
  16. package/dist/commonjs/models/components/creditlooprequest.d.ts +2 -3
  17. package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -1
  18. package/dist/commonjs/models/components/creditlooprequest.js.map +1 -1
  19. package/dist/commonjs/models/components/creditprotocol.d.ts +4 -6
  20. package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/creditprotocol.js +2 -3
  22. package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
  23. package/dist/commonjs/models/components/creditrepayparams.d.ts +2 -3
  24. package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
  26. package/dist/commonjs/models/components/creditrepayrequest.d.ts +2 -3
  27. package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
  29. package/dist/commonjs/models/components/creditsupplyparams.d.ts +2 -3
  30. package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
  31. package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
  32. package/dist/commonjs/models/components/creditunlooprequest.d.ts +2 -3
  33. package/dist/commonjs/models/components/creditunlooprequest.d.ts.map +1 -1
  34. package/dist/commonjs/models/components/creditunlooprequest.js.map +1 -1
  35. package/dist/commonjs/models/components/creditwithdrawparams.d.ts +2 -3
  36. package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
  38. package/dist/commonjs/models/components/debtposition.d.ts +2 -3
  39. package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
  40. package/dist/commonjs/models/components/debtposition.js.map +1 -1
  41. package/dist/commonjs/models/components/loopedposition.d.ts +2 -3
  42. package/dist/commonjs/models/components/loopedposition.d.ts.map +1 -1
  43. package/dist/commonjs/models/components/loopedposition.js.map +1 -1
  44. package/dist/commonjs/models/components/rebalancetarget.d.ts +17 -3
  45. package/dist/commonjs/models/components/rebalancetarget.d.ts.map +1 -1
  46. package/dist/commonjs/models/components/rebalancetarget.js +6 -0
  47. package/dist/commonjs/models/components/rebalancetarget.js.map +1 -1
  48. package/dist/commonjs/models/components/rebalancetargetpreview.d.ts +17 -6
  49. package/dist/commonjs/models/components/rebalancetargetpreview.d.ts.map +1 -1
  50. package/dist/commonjs/models/components/rebalancetargetpreview.js +7 -1
  51. package/dist/commonjs/models/components/rebalancetargetpreview.js.map +1 -1
  52. package/dist/esm/models/components/accountsummary.d.ts +2 -3
  53. package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
  54. package/dist/esm/models/components/accountsummary.js.map +1 -1
  55. package/dist/esm/models/components/collateralposition.d.ts +2 -3
  56. package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
  57. package/dist/esm/models/components/collateralposition.js.map +1 -1
  58. package/dist/esm/models/components/creditborrowparams.d.ts +2 -3
  59. package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
  60. package/dist/esm/models/components/creditborrowparams.js.map +1 -1
  61. package/dist/esm/models/components/creditborrowrequest.d.ts +2 -3
  62. package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
  63. package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
  64. package/dist/esm/models/components/creditenablecollateralparams.d.ts +2 -3
  65. package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
  66. package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
  67. package/dist/esm/models/components/creditlooprequest.d.ts +2 -3
  68. package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -1
  69. package/dist/esm/models/components/creditlooprequest.js.map +1 -1
  70. package/dist/esm/models/components/creditprotocol.d.ts +4 -6
  71. package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
  72. package/dist/esm/models/components/creditprotocol.js +2 -3
  73. package/dist/esm/models/components/creditprotocol.js.map +1 -1
  74. package/dist/esm/models/components/creditrepayparams.d.ts +2 -3
  75. package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
  76. package/dist/esm/models/components/creditrepayparams.js.map +1 -1
  77. package/dist/esm/models/components/creditrepayrequest.d.ts +2 -3
  78. package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
  79. package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
  80. package/dist/esm/models/components/creditsupplyparams.d.ts +2 -3
  81. package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
  82. package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
  83. package/dist/esm/models/components/creditunlooprequest.d.ts +2 -3
  84. package/dist/esm/models/components/creditunlooprequest.d.ts.map +1 -1
  85. package/dist/esm/models/components/creditunlooprequest.js.map +1 -1
  86. package/dist/esm/models/components/creditwithdrawparams.d.ts +2 -3
  87. package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
  88. package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
  89. package/dist/esm/models/components/debtposition.d.ts +2 -3
  90. package/dist/esm/models/components/debtposition.d.ts.map +1 -1
  91. package/dist/esm/models/components/debtposition.js.map +1 -1
  92. package/dist/esm/models/components/loopedposition.d.ts +2 -3
  93. package/dist/esm/models/components/loopedposition.d.ts.map +1 -1
  94. package/dist/esm/models/components/loopedposition.js.map +1 -1
  95. package/dist/esm/models/components/rebalancetarget.d.ts +17 -3
  96. package/dist/esm/models/components/rebalancetarget.d.ts.map +1 -1
  97. package/dist/esm/models/components/rebalancetarget.js +6 -0
  98. package/dist/esm/models/components/rebalancetarget.js.map +1 -1
  99. package/dist/esm/models/components/rebalancetargetpreview.d.ts +17 -6
  100. package/dist/esm/models/components/rebalancetargetpreview.d.ts.map +1 -1
  101. package/dist/esm/models/components/rebalancetargetpreview.js +7 -1
  102. package/dist/esm/models/components/rebalancetargetpreview.js.map +1 -1
  103. package/docs/models/components/accountsummary.md +11 -11
  104. package/docs/models/components/collateralposition.md +17 -17
  105. package/docs/models/components/creditborrowparams.md +11 -11
  106. package/docs/models/components/creditborrowrequest.md +21 -21
  107. package/docs/models/components/creditenablecollateralparams.md +7 -7
  108. package/docs/models/components/creditlooprequest.md +19 -19
  109. package/docs/models/components/creditprotocol.md +2 -3
  110. package/docs/models/components/creditrepayparams.md +10 -10
  111. package/docs/models/components/creditrepayrequest.md +20 -20
  112. package/docs/models/components/creditsupplyparams.md +9 -9
  113. package/docs/models/components/creditunlooprequest.md +17 -17
  114. package/docs/models/components/creditwithdrawparams.md +9 -9
  115. package/docs/models/components/debtposition.md +16 -16
  116. package/docs/models/components/loopedposition.md +17 -17
  117. package/docs/models/components/rebalancetarget.md +13 -10
  118. package/docs/models/components/rebalancetargetpreview.md +19 -16
  119. package/docs/models/components/rebalancetargetpreviewhealthfactorscope.md +1 -1
  120. package/openapi_prepped_for_speakeasy.json +78 -4
  121. package/package.json +1 -1
  122. package/src/models/components/accountsummary.ts +2 -3
  123. package/src/models/components/collateralposition.ts +2 -3
  124. package/src/models/components/creditborrowparams.ts +2 -3
  125. package/src/models/components/creditborrowrequest.ts +2 -3
  126. package/src/models/components/creditenablecollateralparams.ts +2 -3
  127. package/src/models/components/creditlooprequest.ts +2 -3
  128. package/src/models/components/creditprotocol.ts +4 -6
  129. package/src/models/components/creditrepayparams.ts +2 -3
  130. package/src/models/components/creditrepayrequest.ts +2 -3
  131. package/src/models/components/creditsupplyparams.ts +2 -3
  132. package/src/models/components/creditunlooprequest.ts +2 -3
  133. package/src/models/components/creditwithdrawparams.ts +2 -3
  134. package/src/models/components/debtposition.ts +2 -3
  135. package/src/models/components/loopedposition.ts +2 -3
  136. package/src/models/components/rebalancetarget.ts +23 -3
  137. package/src/models/components/rebalancetargetpreview.ts +23 -6
@@ -26,19 +26,22 @@ let value: RebalanceTargetPreview = {
26
26
 
27
27
  ## Fields
28
28
 
29
- | Field | Type | Required | Description | Example |
30
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
31
- | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_check_mark: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path; markets are named by token<br/>symbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32<br/>``market_id``. ``EULER`` identifies Euler V2 markets by their EVK<br/>``collateral_vault`` + ``borrow_vault`` addresses and supports isolated<br/>per-sub-account positions (``sub_account_id``).<br/><br/>Deployment is per chain, so a valid protocol can still 422 on a given chain:<br/>AAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the<br/>chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM<br/>(where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.<br/><br/>All three support ``/v2/credit/loop``, ``/v2/credit/unloop`` and<br/>``/v2/credit/looped_positions``. The one gap is ``/v2/credit/rebalance``,<br/>which rejects EULER with a 422. | |
32
- | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id of this position. | |
33
- | `collateralToken` | *string* | :heavy_check_mark: | Collateral token address (echoes the request target; joins against /v2/credit/looped_positions). | |
34
- | `borrowToken` | *string* | :heavy_check_mark: | Borrow token address (echoes the request target). | |
35
- | `direction` | [components.RebalanceDirection](../../models/components/rebalancedirection.md) | :heavy_check_mark: | What the plan does to one named target. | |
36
- | `legs` | *number* | :heavy_check_mark: | On-chain legs planned for this target (loop + unloop iterations); 0 for a noop. | |
37
- | `unloopLegs` | [components.UnloopLegPreview](../../models/components/unlooplegpreview.md)[] | :heavy_minus_sign: | Per-iteration unwind breakdown — populated for releasers (close / shrink / lever_down). | [] |
38
- | `loopLegs` | [components.LoopLegPreview](../../models/components/looplegpreview.md)[] | :heavy_minus_sign: | Per-iteration loop breakdown — populated for consumers (open / grow / lever_up). | [] |
39
- | `resultingCollateral` | *string* | :heavy_check_mark: | Guaranteed minimum collateral supplied to this position after the rebalance (token units). | |
40
- | `resultingDebt` | *string* | :heavy_check_mark: | Projected debt owed by this position after the rebalance (borrow-token units); 0 on a close. | |
41
- | `resultingMultiplier` | *string* | :heavy_check_mark: | Projected leverage of this position after the rebalance; 1 when the debt is cleared. Never promises more leverage (or, when deleveraging, more deleverage) than is guaranteed. | |
42
- | `resultingHealthFactor` | *string* | :heavy_check_mark: | Projected health factor of this position after the rebalance. Never overstated at the 1.0 boundary — a liquidatable position is never presented as safe. See health_factor_scope for what it covers. | |
43
- | `healthFactorScope` | [components.RebalanceTargetPreviewHealthFactorScope](../../models/components/rebalancetargetpreviewhealthfactorscope.md) | :heavy_check_mark: | 'market' for Morpho (isolated per-market health). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account. | |
44
- | `estimatedMaxDust` | *string* | :heavy_check_mark: | Upper bound of surplus this target's own swaps can leave in the Credit Account (sum of each swap's quote minus its guaranteed floor). Routing swaps are counted book-level, not here. It accumulates in the Credit Account, is recoverable, and is never lost. | |
29
+ | Field | Type | Required | Description | Example |
30
+ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
31
+ | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_check_mark: | Which lending protocol a credit action targets.<br/><br/>``AAVE`` is the default so existing callers (which never send a ``protocol``<br/>field) keep hitting the unchanged Aave code path; markets are named by token<br/>symbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32<br/>``market_id``. ``EULER`` identifies Euler V2 markets by their EVK<br/>``collateral_vault`` + ``borrow_vault`` addresses and supports isolated<br/>per-sub-account positions (``sub_account_id``).<br/><br/>Deployment is per chain, so a valid protocol can still 422 on a given chain:<br/>AAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the<br/>chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM<br/>(where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.<br/><br/>All three support ``/v2/credit/loop``, ``/v2/credit/unloop``,<br/>``/v2/credit/looped_positions`` and ``/v2/credit/rebalance``. | |
32
+ | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id of this position. | |
33
+ | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: the EVC sub-account (0-255) this position lives in — the id the request named, or the one the plan resolved when the target omitted it. Feed it back to /v2/credit/unloop and match it on /v2/credit/looped_positions. | |
34
+ | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault holding the collateral (echoes the request target). | |
35
+ | `borrowVault` | *string* | :heavy_minus_sign: | Euler only: the EVK controller vault the debt is owed to (echoes the request target). | |
36
+ | `collateralToken` | *string* | :heavy_check_mark: | Collateral token address (echoes the request target; joins against /v2/credit/looped_positions). | |
37
+ | `borrowToken` | *string* | :heavy_check_mark: | Borrow token address (echoes the request target). | |
38
+ | `direction` | [components.RebalanceDirection](../../models/components/rebalancedirection.md) | :heavy_check_mark: | What the plan does to one named target. | |
39
+ | `legs` | *number* | :heavy_check_mark: | On-chain legs planned for this target (loop + unloop iterations); 0 for a noop. | |
40
+ | `unloopLegs` | [components.UnloopLegPreview](../../models/components/unlooplegpreview.md)[] | :heavy_minus_sign: | Per-iteration unwind breakdown — populated for releasers (close / shrink / lever_down). | [] |
41
+ | `loopLegs` | [components.LoopLegPreview](../../models/components/looplegpreview.md)[] | :heavy_minus_sign: | Per-iteration loop breakdown — populated for consumers (open / grow / lever_up). | [] |
42
+ | `resultingCollateral` | *string* | :heavy_check_mark: | Guaranteed minimum collateral supplied to this position after the rebalance (token units). | |
43
+ | `resultingDebt` | *string* | :heavy_check_mark: | Projected debt owed by this position after the rebalance (borrow-token units); 0 on a close. | |
44
+ | `resultingMultiplier` | *string* | :heavy_check_mark: | Projected leverage of this position after the rebalance; 1 when the debt is cleared. Never promises more leverage (or, when deleveraging, more deleverage) than is guaranteed. | |
45
+ | `resultingHealthFactor` | *string* | :heavy_check_mark: | Projected health factor of this position after the rebalance. Never overstated at the 1.0 boundary — a liquidatable position is never presented as safe. See health_factor_scope for what it covers. | |
46
+ | `healthFactorScope` | [components.RebalanceTargetPreviewHealthFactorScope](../../models/components/rebalancetargetpreviewhealthfactorscope.md) | :heavy_check_mark: | 'market' for Morpho and Euler (isolated health: per Morpho market, per Euler EVC sub-account). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account. | |
47
+ | `estimatedMaxDust` | *string* | :heavy_check_mark: | Upper bound of surplus this target's own swaps can leave in the Credit Account (sum of each swap's quote minus its guaranteed floor). Routing swaps are counted book-level, not here. It accumulates in the Credit Account, is recoverable, and is never lost. | |
@@ -1,6 +1,6 @@
1
1
  # RebalanceTargetPreviewHealthFactorScope
2
2
 
3
- 'market' for Morpho (isolated per-market health). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account.
3
+ 'market' for Morpho and Euler (isolated health: per Morpho market, per Euler EVC sub-account). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account.
4
4
 
5
5
  ## Example Usage
6
6
 
@@ -13378,7 +13378,7 @@
13378
13378
  "MORPHO"
13379
13379
  ],
13380
13380
  "title": "CreditProtocol",
13381
- "description": "Which lending protocol a credit action targets.\n\n``AAVE`` is the default so existing callers (which never send a ``protocol``\nfield) keep hitting the unchanged Aave code path; markets are named by token\nsymbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32\n``market_id``. ``EULER`` identifies Euler V2 markets by their EVK\n``collateral_vault`` + ``borrow_vault`` addresses and supports isolated\nper-sub-account positions (``sub_account_id``).\n\nDeployment is per chain, so a valid protocol can still 422 on a given chain:\nAAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the\nchain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM\n(where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.\n\nAll three support ``/v2/credit/loop``, ``/v2/credit/unloop`` and\n``/v2/credit/looped_positions``. The one gap is ``/v2/credit/rebalance``,\nwhich rejects EULER with a 422."
13381
+ "description": "Which lending protocol a credit action targets.\n\n``AAVE`` is the default so existing callers (which never send a ``protocol``\nfield) keep hitting the unchanged Aave code path; markets are named by token\nsymbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32\n``market_id``. ``EULER`` identifies Euler V2 markets by their EVK\n``collateral_vault`` + ``borrow_vault`` addresses and supports isolated\nper-sub-account positions (``sub_account_id``).\n\nDeployment is per chain, so a valid protocol can still 422 on a given chain:\nAAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the\nchain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM\n(where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.\n\nAll three support ``/v2/credit/loop``, ``/v2/credit/unloop``,\n``/v2/credit/looped_positions`` and ``/v2/credit/rebalance``."
13382
13382
  },
13383
13383
  "CreditRebalancePreview": {
13384
13384
  "properties": {
@@ -23142,7 +23142,7 @@
23142
23142
  "properties": {
23143
23143
  "protocol": {
23144
23144
  "$ref": "#/components/schemas/CreditProtocol",
23145
- "description": "Lending protocol of this position: AAVE or MORPHO. EULER rebalancing is not available yet.",
23145
+ "description": "Lending protocol of this position: AAVE, MORPHO or EULER.",
23146
23146
  "example": "AAVE"
23147
23147
  },
23148
23148
  "market_id": {
@@ -23157,6 +23157,44 @@
23157
23157
  "title": "Market Id",
23158
23158
  "description": "Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO."
23159
23159
  },
23160
+ "collateral_vault": {
23161
+ "anyOf": [
23162
+ {
23163
+ "type": "string"
23164
+ },
23165
+ {
23166
+ "type": "null"
23167
+ }
23168
+ ],
23169
+ "title": "Collateral Vault",
23170
+ "description": "Euler only: the EVK vault the collateral is supplied to (from /v2/credit/euler_markets). Required when protocol=EULER."
23171
+ },
23172
+ "borrow_vault": {
23173
+ "anyOf": [
23174
+ {
23175
+ "type": "string"
23176
+ },
23177
+ {
23178
+ "type": "null"
23179
+ }
23180
+ ],
23181
+ "title": "Borrow Vault",
23182
+ "description": "Euler only: the EVK vault borrowed from (the sub-account's controller). Required when protocol=EULER."
23183
+ },
23184
+ "sub_account_id": {
23185
+ "anyOf": [
23186
+ {
23187
+ "type": "integer",
23188
+ "maximum": 255.0,
23189
+ "minimum": 0.0
23190
+ },
23191
+ {
23192
+ "type": "null"
23193
+ }
23194
+ ],
23195
+ "title": "Sub Account Id",
23196
+ "description": "Euler only: the EVC sub-account (0-255) this position lives in. Omit it and the plan resolves it from the live book: the sub-account already holding this vault pair, else the lowest free sub-account for a new position. The resolved id is echoed in the preview. Pass it explicitly when the same pair is open on several sub-accounts."
23197
+ },
23160
23198
  "collateral_token": {
23161
23199
  "type": "string",
23162
23200
  "title": "Token",
@@ -23238,7 +23276,7 @@
23238
23276
  "properties": {
23239
23277
  "protocol": {
23240
23278
  "$ref": "#/components/schemas/CreditProtocol",
23241
- "description": "Lending protocol of this position: AAVE or MORPHO."
23279
+ "description": "Lending protocol of this position: AAVE, MORPHO or EULER."
23242
23280
  },
23243
23281
  "market_id": {
23244
23282
  "anyOf": [
@@ -23252,6 +23290,42 @@
23252
23290
  "title": "Market Id",
23253
23291
  "description": "Morpho only: the bytes32 market id of this position."
23254
23292
  },
23293
+ "sub_account_id": {
23294
+ "anyOf": [
23295
+ {
23296
+ "type": "integer"
23297
+ },
23298
+ {
23299
+ "type": "null"
23300
+ }
23301
+ ],
23302
+ "title": "Sub Account Id",
23303
+ "description": "Euler only: the EVC sub-account (0-255) this position lives in \u2014 the id the request named, or the one the plan resolved when the target omitted it. Feed it back to /v2/credit/unloop and match it on /v2/credit/looped_positions."
23304
+ },
23305
+ "collateral_vault": {
23306
+ "anyOf": [
23307
+ {
23308
+ "type": "string"
23309
+ },
23310
+ {
23311
+ "type": "null"
23312
+ }
23313
+ ],
23314
+ "title": "Collateral Vault",
23315
+ "description": "Euler only: the EVK vault holding the collateral (echoes the request target)."
23316
+ },
23317
+ "borrow_vault": {
23318
+ "anyOf": [
23319
+ {
23320
+ "type": "string"
23321
+ },
23322
+ {
23323
+ "type": "null"
23324
+ }
23325
+ ],
23326
+ "title": "Borrow Vault",
23327
+ "description": "Euler only: the EVK controller vault the debt is owed to (echoes the request target)."
23328
+ },
23255
23329
  "collateral_token": {
23256
23330
  "type": "string",
23257
23331
  "title": "Collateral Token",
@@ -23316,7 +23390,7 @@
23316
23390
  "account"
23317
23391
  ],
23318
23392
  "title": "Health Factor Scope",
23319
- "description": "'market' for Morpho (isolated per-market health). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account."
23393
+ "description": "'market' for Morpho and Euler (isolated health: per Morpho market, per Euler EVC sub-account). 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account."
23320
23394
  },
23321
23395
  "estimated_max_dust": {
23322
23396
  "type": "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-labs/api-sdk",
3
- "version": "2.2.110",
3
+ "version": "2.2.111",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "tshy": {
@@ -39,9 +39,8 @@ export type AccountSummary = {
39
39
  * chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
40
40
  * (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
41
41
  *
42
- * All three support ``/v2/credit/loop``, ``/v2/credit/unloop`` and
43
- * ``/v2/credit/looped_positions``. The one gap is ``/v2/credit/rebalance``,
44
- * which rejects EULER with a 422.
42
+ * All three support ``/v2/credit/loop``, ``/v2/credit/unloop``,
43
+ * ``/v2/credit/looped_positions`` and ``/v2/credit/rebalance``.
45
44
  */
46
45
  protocol?: CreditProtocol | undefined;
47
46
  /**
@@ -42,9 +42,8 @@ export type CollateralPosition = {
42
42
  * chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
43
43
  * (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
44
44
  *
45
- * All three support ``/v2/credit/loop``, ``/v2/credit/unloop`` and
46
- * ``/v2/credit/looped_positions``. The one gap is ``/v2/credit/rebalance``,
47
- * which rejects EULER with a 422.
45
+ * All three support ``/v2/credit/loop``, ``/v2/credit/unloop``,
46
+ * ``/v2/credit/looped_positions`` and ``/v2/credit/rebalance``.
48
47
  */
49
48
  protocol?: CreditProtocol | undefined;
50
49
  /**
@@ -65,9 +65,8 @@ export type CreditBorrowParams = {
65
65
  * chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
66
66
  * (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
67
67
  *
68
- * All three support ``/v2/credit/loop``, ``/v2/credit/unloop`` and
69
- * ``/v2/credit/looped_positions``. The one gap is ``/v2/credit/rebalance``,
70
- * which rejects EULER with a 422.
68
+ * All three support ``/v2/credit/loop``, ``/v2/credit/unloop``,
69
+ * ``/v2/credit/looped_positions`` and ``/v2/credit/rebalance``.
71
70
  */
72
71
  protocol?: CreditProtocol | undefined;
73
72
  /**
@@ -78,9 +78,8 @@ export type CreditBorrowRequest = {
78
78
  * chain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM
79
79
  * (where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.
80
80
  *
81
- * All three support ``/v2/credit/loop``, ``/v2/credit/unloop`` and
82
- * ``/v2/credit/looped_positions``. The one gap is ``/v2/credit/rebalance``,
83
- * which rejects EULER with a 422.
81
+ * All three support ``/v2/credit/loop``, ``/v2/credit/unloop``,
82
+ * ``/v2/credit/looped_positions`` and ``/v2/credit/rebalance``.
84
83
  */
85
84
  protocol?: CreditProtocol | undefined;
86
85
  /**