@compass-labs/api-sdk 2.2.87 → 2.2.88

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 (141) hide show
  1. package/dist/commonjs/lib/config.d.ts +2 -2
  2. package/dist/commonjs/lib/config.js +2 -2
  3. package/dist/commonjs/models/components/accountsummary.d.ts +5 -6
  4. package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
  5. package/dist/commonjs/models/components/accountsummary.js.map +1 -1
  6. package/dist/commonjs/models/components/collateralposition.d.ts +5 -6
  7. package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
  8. package/dist/commonjs/models/components/collateralposition.js.map +1 -1
  9. package/dist/commonjs/models/components/creditborrowparams.d.ts +5 -6
  10. package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
  11. package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
  12. package/dist/commonjs/models/components/creditborrowrequest.d.ts +5 -6
  13. package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
  14. package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
  15. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +5 -6
  16. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
  18. package/dist/commonjs/models/components/creditlooprequest.d.ts +20 -6
  19. package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -1
  20. package/dist/commonjs/models/components/creditlooprequest.js +6 -0
  21. package/dist/commonjs/models/components/creditlooprequest.js.map +1 -1
  22. package/dist/commonjs/models/components/creditprotocol.d.ts +10 -12
  23. package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
  24. package/dist/commonjs/models/components/creditprotocol.js +5 -6
  25. package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
  26. package/dist/commonjs/models/components/creditrepayparams.d.ts +5 -6
  27. package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
  29. package/dist/commonjs/models/components/creditrepayrequest.d.ts +5 -6
  30. package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
  31. package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
  32. package/dist/commonjs/models/components/creditsupplyparams.d.ts +5 -6
  33. package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
  34. package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
  35. package/dist/commonjs/models/components/creditunlooprequest.d.ts +20 -6
  36. package/dist/commonjs/models/components/creditunlooprequest.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/creditunlooprequest.js +6 -0
  38. package/dist/commonjs/models/components/creditunlooprequest.js.map +1 -1
  39. package/dist/commonjs/models/components/creditwithdrawparams.d.ts +5 -6
  40. package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
  41. package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
  42. package/dist/commonjs/models/components/debtposition.d.ts +5 -6
  43. package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/debtposition.js.map +1 -1
  45. package/dist/commonjs/models/components/loopedposition.d.ts +5 -6
  46. package/dist/commonjs/models/components/loopedposition.d.ts.map +1 -1
  47. package/dist/commonjs/models/components/loopedposition.js.map +1 -1
  48. package/dist/commonjs/models/components/rebalancetarget.d.ts +5 -6
  49. package/dist/commonjs/models/components/rebalancetarget.d.ts.map +1 -1
  50. package/dist/commonjs/models/components/rebalancetarget.js.map +1 -1
  51. package/dist/commonjs/models/components/rebalancetargetpreview.d.ts +5 -6
  52. package/dist/commonjs/models/components/rebalancetargetpreview.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/rebalancetargetpreview.js.map +1 -1
  54. package/dist/esm/lib/config.d.ts +2 -2
  55. package/dist/esm/lib/config.js +2 -2
  56. package/dist/esm/models/components/accountsummary.d.ts +5 -6
  57. package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
  58. package/dist/esm/models/components/accountsummary.js.map +1 -1
  59. package/dist/esm/models/components/collateralposition.d.ts +5 -6
  60. package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
  61. package/dist/esm/models/components/collateralposition.js.map +1 -1
  62. package/dist/esm/models/components/creditborrowparams.d.ts +5 -6
  63. package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
  64. package/dist/esm/models/components/creditborrowparams.js.map +1 -1
  65. package/dist/esm/models/components/creditborrowrequest.d.ts +5 -6
  66. package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
  67. package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
  68. package/dist/esm/models/components/creditenablecollateralparams.d.ts +5 -6
  69. package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
  70. package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
  71. package/dist/esm/models/components/creditlooprequest.d.ts +20 -6
  72. package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -1
  73. package/dist/esm/models/components/creditlooprequest.js +6 -0
  74. package/dist/esm/models/components/creditlooprequest.js.map +1 -1
  75. package/dist/esm/models/components/creditprotocol.d.ts +10 -12
  76. package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
  77. package/dist/esm/models/components/creditprotocol.js +5 -6
  78. package/dist/esm/models/components/creditprotocol.js.map +1 -1
  79. package/dist/esm/models/components/creditrepayparams.d.ts +5 -6
  80. package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
  81. package/dist/esm/models/components/creditrepayparams.js.map +1 -1
  82. package/dist/esm/models/components/creditrepayrequest.d.ts +5 -6
  83. package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
  84. package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
  85. package/dist/esm/models/components/creditsupplyparams.d.ts +5 -6
  86. package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
  87. package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
  88. package/dist/esm/models/components/creditunlooprequest.d.ts +20 -6
  89. package/dist/esm/models/components/creditunlooprequest.d.ts.map +1 -1
  90. package/dist/esm/models/components/creditunlooprequest.js +6 -0
  91. package/dist/esm/models/components/creditunlooprequest.js.map +1 -1
  92. package/dist/esm/models/components/creditwithdrawparams.d.ts +5 -6
  93. package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
  94. package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
  95. package/dist/esm/models/components/debtposition.d.ts +5 -6
  96. package/dist/esm/models/components/debtposition.d.ts.map +1 -1
  97. package/dist/esm/models/components/debtposition.js.map +1 -1
  98. package/dist/esm/models/components/loopedposition.d.ts +5 -6
  99. package/dist/esm/models/components/loopedposition.d.ts.map +1 -1
  100. package/dist/esm/models/components/loopedposition.js.map +1 -1
  101. package/dist/esm/models/components/rebalancetarget.d.ts +5 -6
  102. package/dist/esm/models/components/rebalancetarget.d.ts.map +1 -1
  103. package/dist/esm/models/components/rebalancetarget.js.map +1 -1
  104. package/dist/esm/models/components/rebalancetargetpreview.d.ts +5 -6
  105. package/dist/esm/models/components/rebalancetargetpreview.d.ts.map +1 -1
  106. package/dist/esm/models/components/rebalancetargetpreview.js.map +1 -1
  107. package/docs/models/components/accountsummary.md +11 -11
  108. package/docs/models/components/collateralposition.md +17 -17
  109. package/docs/models/components/creditborrowparams.md +11 -11
  110. package/docs/models/components/creditborrowrequest.md +21 -21
  111. package/docs/models/components/creditenablecollateralparams.md +7 -7
  112. package/docs/models/components/creditlooprequest.md +17 -14
  113. package/docs/models/components/creditprotocol.md +5 -6
  114. package/docs/models/components/creditrepayparams.md +10 -10
  115. package/docs/models/components/creditrepayrequest.md +20 -20
  116. package/docs/models/components/creditsupplyparams.md +9 -9
  117. package/docs/models/components/creditunlooprequest.md +15 -12
  118. package/docs/models/components/creditwithdrawparams.md +9 -9
  119. package/docs/models/components/debtposition.md +16 -16
  120. package/docs/models/components/loopedposition.md +14 -14
  121. package/docs/models/components/rebalancetarget.md +10 -10
  122. package/docs/models/components/rebalancetargetpreview.md +16 -16
  123. package/openapi_prepped_for_speakeasy.json +67 -3
  124. package/package.json +1 -1
  125. package/src/lib/config.ts +2 -2
  126. package/src/models/components/accountsummary.ts +5 -6
  127. package/src/models/components/collateralposition.ts +5 -6
  128. package/src/models/components/creditborrowparams.ts +5 -6
  129. package/src/models/components/creditborrowrequest.ts +5 -6
  130. package/src/models/components/creditenablecollateralparams.ts +5 -6
  131. package/src/models/components/creditlooprequest.ts +26 -6
  132. package/src/models/components/creditprotocol.ts +10 -12
  133. package/src/models/components/creditrepayparams.ts +5 -6
  134. package/src/models/components/creditrepayrequest.ts +5 -6
  135. package/src/models/components/creditsupplyparams.ts +5 -6
  136. package/src/models/components/creditunlooprequest.ts +26 -6
  137. package/src/models/components/creditwithdrawparams.ts +5 -6
  138. package/src/models/components/debtposition.ts +5 -6
  139. package/src/models/components/loopedposition.ts +5 -6
  140. package/src/models/components/rebalancetarget.ts +5 -6
  141. package/src/models/components/rebalancetargetpreview.ts +5 -6
@@ -52,18 +52,29 @@ export type CreditLoopRequest = {
52
52
  * @remarks
53
53
  *
54
54
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
55
- * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
56
- * Euler V2 path, where the market is identified by EVK vault address(es).
57
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
58
- * currently read-only: positions and market discovery only — transaction
59
- * builders land with the looping work (COM-7106/7107/7108), so transact
60
- * endpoints reject it with a 422.
55
+ * field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
56
+ * Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
57
+ * V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
58
+ * supports isolated per-sub-account positions (``sub_account_id``). All three
59
+ * support the loop/unloop leverage endpoints.
61
60
  */
62
61
  protocol?: CreditProtocol | undefined;
63
62
  /**
64
63
  * Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO.
65
64
  */
66
65
  marketId?: string | null | undefined;
66
+ /**
67
+ * Euler only: the EVK vault address collateral is supplied to (from /v2/credit/euler_markets). Required when protocol=EULER.
68
+ */
69
+ collateralVault?: string | null | undefined;
70
+ /**
71
+ * Euler only: the EVK vault address borrowed from (the sub-account's controller). Required when protocol=EULER.
72
+ */
73
+ borrowVault?: string | null | undefined;
74
+ /**
75
+ * Euler only: the EVC sub-account (0-255) holding this isolated looped position. 0 is the Credit Account itself.
76
+ */
77
+ subAccountId?: number | undefined;
67
78
  /**
68
79
  * Token supplied as collateral each iteration. Must already be in the Credit Account for the initial amount. For MORPHO it must be the market's collateral token.
69
80
  */
@@ -185,6 +196,9 @@ export type CreditLoopRequest$Outbound = {
185
196
  chain: string;
186
197
  protocol?: string | undefined;
187
198
  market_id?: string | null | undefined;
199
+ collateral_vault?: string | null | undefined;
200
+ borrow_vault?: string | null | undefined;
201
+ sub_account_id?: number | undefined;
188
202
  collateral_token: string;
189
203
  borrow_token: string;
190
204
  initial_collateral_amount: number | string;
@@ -205,6 +219,9 @@ export const CreditLoopRequest$outboundSchema: z.ZodType<
205
219
  chain: Chain$outboundSchema,
206
220
  protocol: CreditProtocol$outboundSchema.optional(),
207
221
  marketId: z.nullable(z.string()).optional(),
222
+ collateralVault: z.nullable(z.string()).optional(),
223
+ borrowVault: z.nullable(z.string()).optional(),
224
+ subAccountId: z.number().int().optional(),
208
225
  collateralToken: z.string(),
209
226
  borrowToken: z.string(),
210
227
  initialCollateralAmount: z.union([z.number(), z.string()]),
@@ -216,6 +233,9 @@ export const CreditLoopRequest$outboundSchema: z.ZodType<
216
233
  }).transform((v) => {
217
234
  return remap$(v, {
218
235
  marketId: "market_id",
236
+ collateralVault: "collateral_vault",
237
+ borrowVault: "borrow_vault",
238
+ subAccountId: "sub_account_id",
219
239
  collateralToken: "collateral_token",
220
240
  borrowToken: "borrow_token",
221
241
  initialCollateralAmount: "initial_collateral_amount",
@@ -11,12 +11,11 @@ import { ClosedEnum } from "../../types/enums.js";
11
11
  * @remarks
12
12
  *
13
13
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
14
- * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
15
- * Euler V2 path, where the market is identified by EVK vault address(es).
16
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
17
- * currently read-only: positions and market discovery only — transaction
18
- * builders land with the looping work (COM-7106/7107/7108), so transact
19
- * endpoints reject it with a 422.
14
+ * field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
15
+ * Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
16
+ * V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
17
+ * supports isolated per-sub-account positions (``sub_account_id``). All three
18
+ * support the loop/unloop leverage endpoints.
20
19
  */
21
20
  export const CreditProtocol = {
22
21
  Aave: "AAVE",
@@ -29,12 +28,11 @@ export const CreditProtocol = {
29
28
  * @remarks
30
29
  *
31
30
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
32
- * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
33
- * Euler V2 path, where the market is identified by EVK vault address(es).
34
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
35
- * currently read-only: positions and market discovery only — transaction
36
- * builders land with the looping work (COM-7106/7107/7108), so transact
37
- * endpoints reject it with a 422.
31
+ * field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
32
+ * Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
33
+ * V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
34
+ * supports isolated per-sub-account positions (``sub_account_id``). All three
35
+ * support the loop/unloop leverage endpoints.
38
36
  */
39
37
  export type CreditProtocol = ClosedEnum<typeof CreditProtocol>;
40
38
 
@@ -45,12 +45,11 @@ export type CreditRepayParams = {
45
45
  * @remarks
46
46
  *
47
47
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
48
- * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
49
- * Euler V2 path, where the market is identified by EVK vault address(es).
50
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
51
- * currently read-only: positions and market discovery only — transaction
52
- * builders land with the looping work (COM-7106/7107/7108), so transact
53
- * endpoints reject it with a 422.
48
+ * field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
49
+ * Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
50
+ * V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
51
+ * supports isolated per-sub-account positions (``sub_account_id``). All three
52
+ * support the loop/unloop leverage endpoints.
54
53
  */
55
54
  protocol?: CreditProtocol | undefined;
56
55
  /**
@@ -44,12 +44,11 @@ export type CreditRepayRequest = {
44
44
  * @remarks
45
45
  *
46
46
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
47
- * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
48
- * Euler V2 path, where the market is identified by EVK vault address(es).
49
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
50
- * currently read-only: positions and market discovery only — transaction
51
- * builders land with the looping work (COM-7106/7107/7108), so transact
52
- * endpoints reject it with a 422.
47
+ * field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
48
+ * Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
49
+ * V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
50
+ * supports isolated per-sub-account positions (``sub_account_id``). All three
51
+ * support the loop/unloop leverage endpoints.
53
52
  */
54
53
  protocol?: CreditProtocol | undefined;
55
54
  /**
@@ -33,12 +33,11 @@ export type CreditSupplyParams = {
33
33
  * @remarks
34
34
  *
35
35
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
36
- * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
37
- * Euler V2 path, where the market is identified by EVK vault address(es).
38
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
39
- * currently read-only: positions and market discovery only — transaction
40
- * builders land with the looping work (COM-7106/7107/7108), so transact
41
- * endpoints reject it with a 422.
36
+ * field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
37
+ * Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
38
+ * V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
39
+ * supports isolated per-sub-account positions (``sub_account_id``). All three
40
+ * support the loop/unloop leverage endpoints.
42
41
  */
43
42
  protocol?: CreditProtocol | undefined;
44
43
  /**
@@ -42,18 +42,29 @@ export type CreditUnloopRequest = {
42
42
  * @remarks
43
43
  *
44
44
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
45
- * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
46
- * Euler V2 path, where the market is identified by EVK vault address(es).
47
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
48
- * currently read-only: positions and market discovery only — transaction
49
- * builders land with the looping work (COM-7106/7107/7108), so transact
50
- * endpoints reject it with a 422.
45
+ * field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
46
+ * Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
47
+ * V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
48
+ * supports isolated per-sub-account positions (``sub_account_id``). All three
49
+ * support the loop/unloop leverage endpoints.
51
50
  */
52
51
  protocol?: CreditProtocol | undefined;
53
52
  /**
54
53
  * Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO.
55
54
  */
56
55
  marketId?: string | null | undefined;
56
+ /**
57
+ * Euler only: the EVK vault the loop's collateral is in. Required when protocol=EULER.
58
+ */
59
+ collateralVault?: string | null | undefined;
60
+ /**
61
+ * Euler only: the EVK vault the loop borrowed from (the sub-account's controller). Required when protocol=EULER.
62
+ */
63
+ borrowVault?: string | null | undefined;
64
+ /**
65
+ * Euler only: the EVC sub-account (0-255) holding the looped position to unwind. 0 is the Credit Account itself.
66
+ */
67
+ subAccountId?: number | undefined;
57
68
  /**
58
69
  * Token supplied as collateral in the loop being unwound. For MORPHO it must be the market's collateral token.
59
70
  */
@@ -126,6 +137,9 @@ export type CreditUnloopRequest$Outbound = {
126
137
  chain: string;
127
138
  protocol?: string | undefined;
128
139
  market_id?: string | null | undefined;
140
+ collateral_vault?: string | null | undefined;
141
+ borrow_vault?: string | null | undefined;
142
+ sub_account_id?: number | undefined;
129
143
  collateral_token: string;
130
144
  borrow_token: string;
131
145
  target_multiplier?: number | string | null | undefined;
@@ -144,6 +158,9 @@ export const CreditUnloopRequest$outboundSchema: z.ZodType<
144
158
  chain: Chain$outboundSchema,
145
159
  protocol: CreditProtocol$outboundSchema.optional(),
146
160
  marketId: z.nullable(z.string()).optional(),
161
+ collateralVault: z.nullable(z.string()).optional(),
162
+ borrowVault: z.nullable(z.string()).optional(),
163
+ subAccountId: z.number().int().optional(),
147
164
  collateralToken: z.string(),
148
165
  borrowToken: z.string(),
149
166
  targetMultiplier: z.nullable(z.union([z.number(), z.string()])).optional(),
@@ -153,6 +170,9 @@ export const CreditUnloopRequest$outboundSchema: z.ZodType<
153
170
  }).transform((v) => {
154
171
  return remap$(v, {
155
172
  marketId: "market_id",
173
+ collateralVault: "collateral_vault",
174
+ borrowVault: "borrow_vault",
175
+ subAccountId: "sub_account_id",
156
176
  collateralToken: "collateral_token",
157
177
  borrowToken: "borrow_token",
158
178
  targetMultiplier: "target_multiplier",
@@ -33,12 +33,11 @@ export type CreditWithdrawParams = {
33
33
  * @remarks
34
34
  *
35
35
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
36
- * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
37
- * Euler V2 path, where the market is identified by EVK vault address(es).
38
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
39
- * currently read-only: positions and market discovery only — transaction
40
- * builders land with the looping work (COM-7106/7107/7108), so transact
41
- * endpoints reject it with a 422.
36
+ * field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
37
+ * Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
38
+ * V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
39
+ * supports isolated per-sub-account positions (``sub_account_id``). All three
40
+ * support the loop/unloop leverage endpoints.
42
41
  */
43
42
  protocol?: CreditProtocol | undefined;
44
43
  /**
@@ -31,12 +31,11 @@ export type DebtPosition = {
31
31
  * @remarks
32
32
  *
33
33
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
34
- * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
35
- * Euler V2 path, where the market is identified by EVK vault address(es).
36
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
37
- * currently read-only: positions and market discovery only — transaction
38
- * builders land with the looping work (COM-7106/7107/7108), so transact
39
- * endpoints reject it with a 422.
34
+ * field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
35
+ * Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
36
+ * V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
37
+ * supports isolated per-sub-account positions (``sub_account_id``). All three
38
+ * support the loop/unloop leverage endpoints.
40
39
  */
41
40
  protocol?: CreditProtocol | undefined;
42
41
  /**
@@ -47,12 +47,11 @@ export type LoopedPosition = {
47
47
  * @remarks
48
48
  *
49
49
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
50
- * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
51
- * Euler V2 path, where the market is identified by EVK vault address(es).
52
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
53
- * currently read-only: positions and market discovery only — transaction
54
- * builders land with the looping work (COM-7106/7107/7108), so transact
55
- * endpoints reject it with a 422.
50
+ * field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
51
+ * Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
52
+ * V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
53
+ * supports isolated per-sub-account positions (``sub_account_id``). All three
54
+ * support the loop/unloop leverage endpoints.
56
55
  */
57
56
  protocol: CreditProtocol;
58
57
  /**
@@ -40,12 +40,11 @@ export type RebalanceTarget = {
40
40
  * @remarks
41
41
  *
42
42
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
43
- * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
44
- * Euler V2 path, where the market is identified by EVK vault address(es).
45
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
46
- * currently read-only: positions and market discovery only — transaction
47
- * builders land with the looping work (COM-7106/7107/7108), so transact
48
- * endpoints reject it with a 422.
43
+ * field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
44
+ * Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
45
+ * V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
46
+ * supports isolated per-sub-account positions (``sub_account_id``). All three
47
+ * support the loop/unloop leverage endpoints.
49
48
  */
50
49
  protocol?: CreditProtocol | undefined;
51
50
  /**
@@ -49,12 +49,11 @@ export type RebalanceTargetPreview = {
49
49
  * @remarks
50
50
  *
51
51
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
52
- * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
53
- * Euler V2 path, where the market is identified by EVK vault address(es).
54
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
55
- * currently read-only: positions and market discovery only — transaction
56
- * builders land with the looping work (COM-7106/7107/7108), so transact
57
- * endpoints reject it with a 422.
52
+ * field) keep hitting the unchanged Aave code path. ``MORPHO`` identifies Morpho
53
+ * Blue lending markets by their bytes32 ``market_id``. ``EULER`` identifies Euler
54
+ * V2 markets by their EVK ``collateral_vault`` + ``borrow_vault`` addresses and
55
+ * supports isolated per-sub-account positions (``sub_account_id``). All three
56
+ * support the loop/unloop leverage endpoints.
58
57
  */
59
58
  protocol: CreditProtocol;
60
59
  /**