@compass-labs/api-sdk 2.2.83 → 2.2.84-rc.0

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 (113) hide show
  1. package/dist/commonjs/models/components/accountsummary.d.ts +4 -0
  2. package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
  3. package/dist/commonjs/models/components/accountsummary.js +2 -0
  4. package/dist/commonjs/models/components/accountsummary.js.map +1 -1
  5. package/dist/commonjs/models/components/collateralposition.d.ts +4 -0
  6. package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
  7. package/dist/commonjs/models/components/collateralposition.js +2 -0
  8. package/dist/commonjs/models/components/collateralposition.js.map +1 -1
  9. package/dist/commonjs/models/components/creditborrowparams.d.ts +5 -0
  10. package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
  11. package/dist/commonjs/models/components/creditborrowparams.js +2 -0
  12. package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
  13. package/dist/commonjs/models/components/creditborrowrequest.d.ts +5 -0
  14. package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
  15. package/dist/commonjs/models/components/creditborrowrequest.js +2 -0
  16. package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
  17. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +5 -0
  18. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
  19. package/dist/commonjs/models/components/creditenablecollateralparams.js +2 -0
  20. package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
  21. package/dist/commonjs/models/components/creditpositionsresponse.d.ts +5 -1
  22. package/dist/commonjs/models/components/creditpositionsresponse.d.ts.map +1 -1
  23. package/dist/commonjs/models/components/creditpositionsresponse.js +2 -0
  24. package/dist/commonjs/models/components/creditpositionsresponse.js.map +1 -1
  25. package/dist/commonjs/models/components/creditrepayparams.d.ts +5 -0
  26. package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
  27. package/dist/commonjs/models/components/creditrepayparams.js +2 -0
  28. package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
  29. package/dist/commonjs/models/components/creditrepayrequest.d.ts +5 -0
  30. package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
  31. package/dist/commonjs/models/components/creditrepayrequest.js +2 -0
  32. package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
  33. package/dist/commonjs/models/components/creditsupplyparams.d.ts +5 -0
  34. package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
  35. package/dist/commonjs/models/components/creditsupplyparams.js +2 -0
  36. package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
  37. package/dist/commonjs/models/components/creditwithdrawparams.d.ts +5 -0
  38. package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
  39. package/dist/commonjs/models/components/creditwithdrawparams.js +2 -0
  40. package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
  41. package/dist/commonjs/models/components/debtposition.d.ts +4 -0
  42. package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
  43. package/dist/commonjs/models/components/debtposition.js +2 -0
  44. package/dist/commonjs/models/components/debtposition.js.map +1 -1
  45. package/dist/esm/models/components/accountsummary.d.ts +4 -0
  46. package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
  47. package/dist/esm/models/components/accountsummary.js +2 -0
  48. package/dist/esm/models/components/accountsummary.js.map +1 -1
  49. package/dist/esm/models/components/collateralposition.d.ts +4 -0
  50. package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
  51. package/dist/esm/models/components/collateralposition.js +2 -0
  52. package/dist/esm/models/components/collateralposition.js.map +1 -1
  53. package/dist/esm/models/components/creditborrowparams.d.ts +5 -0
  54. package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
  55. package/dist/esm/models/components/creditborrowparams.js +2 -0
  56. package/dist/esm/models/components/creditborrowparams.js.map +1 -1
  57. package/dist/esm/models/components/creditborrowrequest.d.ts +5 -0
  58. package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
  59. package/dist/esm/models/components/creditborrowrequest.js +2 -0
  60. package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
  61. package/dist/esm/models/components/creditenablecollateralparams.d.ts +5 -0
  62. package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
  63. package/dist/esm/models/components/creditenablecollateralparams.js +2 -0
  64. package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
  65. package/dist/esm/models/components/creditpositionsresponse.d.ts +5 -1
  66. package/dist/esm/models/components/creditpositionsresponse.d.ts.map +1 -1
  67. package/dist/esm/models/components/creditpositionsresponse.js +2 -0
  68. package/dist/esm/models/components/creditpositionsresponse.js.map +1 -1
  69. package/dist/esm/models/components/creditrepayparams.d.ts +5 -0
  70. package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
  71. package/dist/esm/models/components/creditrepayparams.js +2 -0
  72. package/dist/esm/models/components/creditrepayparams.js.map +1 -1
  73. package/dist/esm/models/components/creditrepayrequest.d.ts +5 -0
  74. package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
  75. package/dist/esm/models/components/creditrepayrequest.js +2 -0
  76. package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
  77. package/dist/esm/models/components/creditsupplyparams.d.ts +5 -0
  78. package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
  79. package/dist/esm/models/components/creditsupplyparams.js +2 -0
  80. package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
  81. package/dist/esm/models/components/creditwithdrawparams.d.ts +5 -0
  82. package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
  83. package/dist/esm/models/components/creditwithdrawparams.js +2 -0
  84. package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
  85. package/dist/esm/models/components/debtposition.d.ts +4 -0
  86. package/dist/esm/models/components/debtposition.d.ts.map +1 -1
  87. package/dist/esm/models/components/debtposition.js +2 -0
  88. package/dist/esm/models/components/debtposition.js.map +1 -1
  89. package/docs/models/components/accountsummary.md +1 -0
  90. package/docs/models/components/collateralposition.md +1 -0
  91. package/docs/models/components/creditborrowparams.md +2 -0
  92. package/docs/models/components/creditborrowrequest.md +1 -0
  93. package/docs/models/components/creditenablecollateralparams.md +3 -1
  94. package/docs/models/components/creditpositionsresponse.md +11 -9
  95. package/docs/models/components/creditrepayparams.md +2 -0
  96. package/docs/models/components/creditrepayrequest.md +1 -0
  97. package/docs/models/components/creditsupplyparams.md +2 -0
  98. package/docs/models/components/credituseroperationbody.md +5 -0
  99. package/docs/models/components/creditwithdrawparams.md +2 -0
  100. package/docs/models/components/debtposition.md +1 -0
  101. package/openapi_prepped_for_speakeasy.json +102 -1
  102. package/package.json +1 -1
  103. package/src/models/components/accountsummary.ts +6 -0
  104. package/src/models/components/collateralposition.ts +6 -0
  105. package/src/models/components/creditborrowparams.ts +7 -0
  106. package/src/models/components/creditborrowrequest.ts +7 -0
  107. package/src/models/components/creditenablecollateralparams.ts +7 -0
  108. package/src/models/components/creditpositionsresponse.ts +7 -1
  109. package/src/models/components/creditrepayparams.ts +7 -0
  110. package/src/models/components/creditrepayrequest.ts +7 -0
  111. package/src/models/components/creditsupplyparams.ts +7 -0
  112. package/src/models/components/creditwithdrawparams.ts +7 -0
  113. package/src/models/components/debtposition.ts +6 -0
@@ -1 +1 @@
1
- {"version":3,"file":"creditwithdrawparams.js","sourceRoot":"","sources":["../../../../src/models/components/creditwithdrawparams.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAEL,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AA+C7B,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAIlD,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM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AM,UAAU,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC"}
@@ -33,6 +33,10 @@ export type DebtPosition = {
33
33
  * Euler only: the EVK borrow vault this debt is owed to.
34
34
  */
35
35
  vault?: string | null | undefined;
36
+ /**
37
+ * Euler only: the EVC sub-account (0–255) this debt belongs to. Each sub-account is an independent Euler position with its own health. Null for Aave/Morpho.
38
+ */
39
+ subAccountId?: number | null | undefined;
36
40
  /**
37
41
  * Morpho only: the bytes32 id of the isolated market this debt is owed to.
38
42
  */
@@ -1 +1 @@
1
- {"version":3,"file":"debtposition.d.ts","sourceRoot":"","sources":["../../../../src/models/components/debtposition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,WAAW,EAA6B,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,C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tC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CA4BP,CAAC;AAEH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD"}
@@ -12,6 +12,7 @@ export const DebtPosition$inboundSchema = z.object({
12
12
  symbol: z.string(),
13
13
  protocol: CreditProtocol$inboundSchema.optional(),
14
14
  vault: z.nullable(z.string()).optional(),
15
+ sub_account_id: z.nullable(z.number().int()).optional(),
15
16
  market_id: z.nullable(z.string()).optional(),
16
17
  health_factor: z.nullable(z.string()).optional(),
17
18
  amount_borrowed: z.nullable(z.string()),
@@ -23,6 +24,7 @@ export const DebtPosition$inboundSchema = z.object({
23
24
  events: z.array(CreditEvent$inboundSchema).optional(),
24
25
  }).transform((v) => {
25
26
  return remap$(v, {
27
+ "sub_account_id": "subAccountId",
26
28
  "market_id": "marketId",
27
29
  "health_factor": "healthFactor",
28
30
  "amount_borrowed": "amountBorrowed",
@@ -1 +1 @@
1
- {"version":3,"file":"debtposition.js","sourceRoot":"","sources":["../../../../src/models/components/debtposition.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAAe,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAsE7B,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,4BAA4B,CAAC,QAAQ,EAAE;IACjD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5C,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACvC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,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AAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,cAAc;QAChC,WAAW,EAAE,UAAU;QACvB,eAAe,EAAE,cAAc;QAC/B,iBAAiB,EAAE,gBAAgB;QACnC,WAAW,EAAE,UAAU;QACvB,YAAY,EAAE,WAAW;QACzB,gBAAgB,EAAE,eAAe;QACjC,cAAc,EAAE,aAAa;QAC7B,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,oBAAoB,CAClC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0BAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC"}
@@ -26,6 +26,7 @@ let value: AccountSummary = {
26
26
  | Field | Type | Required | Description | Example |
27
27
  | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
28
28
  | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | 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. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
29
+ | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: the EVC sub-account (0–255) this summary describes. Euler health is per-sub-account. Null for Aave/Morpho. | |
29
30
  | `healthFactor` | *string* | :heavy_check_mark: | Health factor. Above 1 is safe; below 1 risks liquidation. | |
30
31
  | `totalCollateralUsd` | *string* | :heavy_check_mark: | Total collateral value in USD. | |
31
32
  | `totalDebtUsd` | *string* | :heavy_check_mark: | Total debt value in USD. | |
@@ -23,6 +23,7 @@ let value: CollateralPosition = {
23
23
  | `symbol` | *string* | :heavy_check_mark: | Symbol of the collateral token (e.g. USDC). | |
24
24
  | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | 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. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
25
25
  | `vault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault holding this position. | |
26
+ | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: the EVC sub-account (0–255) this position belongs to. Each sub-account is an independent Euler position with its own health. Null for Aave/Morpho. | |
26
27
  | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 id of the isolated market holding this position. | |
27
28
  | `isPureSupply` | *boolean* | :heavy_minus_sign: | Morpho only: true when this is a loan-asset supply position (earning supply APY) rather than collateral backing borrows. | |
28
29
  | `amountSupplied` | *string* | :heavy_check_mark: | Current on-chain collateral balance (the vault's underlying asset for Euler). | |
@@ -16,6 +16,7 @@ let value: CreditBorrowParams = {
16
16
  amount: "886.22",
17
17
  denomination: "PERCENTAGE",
18
18
  },
19
+ subAccountId: 0,
19
20
  };
20
21
  ```
21
22
 
@@ -30,4 +31,5 @@ let value: CreditBorrowParams = {
30
31
  | `fee` | [components.CreditFee](../../models/components/creditfee.md) | :heavy_minus_sign: | Optional fee on the borrowed amount. | |
31
32
  | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | 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. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
32
33
  | `borrowVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault to borrow from. Required when protocol=EULER. | |
34
+ | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: EVC sub-account (0–255) to borrow against. Each sub-account is an independent Euler position with its own collateral, borrow controller, and health. Defaults to 0. Ignored for Aave/Morpho. | 0 |
33
35
  | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO. | |
@@ -29,6 +29,7 @@ let value: CreditBorrowRequest = {
29
29
  | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to supply into. Required when protocol=EULER and supplying collateral. | |
30
30
  | `borrowVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault to borrow from. Required when protocol=EULER. | |
31
31
  | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO. | |
32
+ | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: EVC sub-account (0–255) to isolate this position. Each sub-account is an independent Euler position with its own collateral, borrow controller, and health, letting one Credit Account hold multiple isolated Euler positions. Defaults to 0. Ignored for Aave/Morpho. | 0 |
32
33
  | `tokenIn` | *string* | :heavy_minus_sign: | Token currently held in the Credit Account to use as input. If the same as collateral_token, no swap is performed. Omit together with amount_in and collateral_token to borrow against existing collateral. | USDC |
33
34
  | `amountIn` | *components.CreditBorrowRequestAmountIn* | :heavy_minus_sign: | Amount of token_in to use (in token units, not wei). Omit together with token_in and collateral_token for borrow-only mode. | 100 |
34
35
  | `collateralToken` | *string* | :heavy_minus_sign: | Aave reserve token to supply as collateral. Omit together with token_in and amount_in for borrow-only mode. | USDC |
@@ -13,6 +13,7 @@ import { CreditEnableCollateralParams } from "@compass-labs/api-sdk/models/compo
13
13
  let value: CreditEnableCollateralParams = {
14
14
  actionType: "CREDIT_ENABLE_COLLATERAL",
15
15
  token: "<value>",
16
+ subAccountId: 0,
16
17
  };
17
18
  ```
18
19
 
@@ -23,4 +24,5 @@ let value: CreditEnableCollateralParams = {
23
24
  | `actionType` | *"CREDIT_ENABLE_COLLATERAL"* | :heavy_check_mark: | N/A | CREDIT_ENABLE_COLLATERAL |
24
25
  | `token` | *string* | :heavy_check_mark: | The underlying reserve token to enable as collateral (e.g. USDC, not aUSDC). | |
25
26
  | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | 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. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
26
- | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to enable. Required when protocol=EULER. | |
27
+ | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to enable. Required when protocol=EULER. | |
28
+ | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: EVC sub-account (0–255) to enable the collateral for. Each sub-account is an independent Euler position with its own collateral, borrow controller, and health. Defaults to 0. Ignored for Aave/Morpho. | 0 |
@@ -18,6 +18,7 @@ let value: CreditPositionsResponse = {
18
18
  ltv: "<value>",
19
19
  emodeCategoryId: 0,
20
20
  },
21
+ eulerAccountSummaries: [],
21
22
  eulerAccountSummary: {
22
23
  healthFactor: "<value>",
23
24
  totalCollateralUsd: "<value>",
@@ -33,12 +34,13 @@ let value: CreditPositionsResponse = {
33
34
 
34
35
  ## Fields
35
36
 
36
- | Field | Type | Required | Description | Example |
37
- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
38
- | `collateralPositions` | [components.CollateralPosition](../../models/components/collateralposition.md)[] | :heavy_minus_sign: | All collateral positions, one per reserve. | [] |
39
- | `debtPositions` | [components.DebtPosition](../../models/components/debtposition.md)[] | :heavy_minus_sign: | All debt positions, one per reserve. | [] |
40
- | `accountSummary` | [components.AccountSummary](../../models/components/accountsummary.md) | :heavy_check_mark: | Account-level summary for one lending protocol.<br/><br/>Populated from Aave ``getUserAccountData()`` or, for Euler, from the<br/>controller vault's risk engine (``accountLiquidity``). The E-Mode fields are<br/>Aave-only and stay at their defaults for Euler. | |
41
- | `eulerAccountSummary` | [components.AccountSummary](../../models/components/accountsummary.md) | :heavy_minus_sign: | Euler account-level summary (health factor, LTV, etc.), present only when the account holds Euler positions. Null for Aave-only accounts. | |
42
- | `eulerBorrowableTokens` | [components.BorrowableToken](../../models/components/borrowabletoken.md)[] | :heavy_minus_sign: | Euler-only: additional borrowable amounts given the account's current Euler controller (i.e. borrow more of the controller's asset). Empty for accounts with no Euler borrow position use /credit/euler_markets to discover a new market to borrow from. | [] |
43
- | `borrowableTokens` | [components.BorrowableToken](../../models/components/borrowabletoken.md)[] | :heavy_minus_sign: | All tokens available for borrowing with max amounts based on current collateral. | [] |
44
- | `totalUsdValue` | *string* | :heavy_minus_sign: | Net position value in USD (total collateral - total debt). Null if prices unavailable. | |
37
+ | Field | Type | Required | Description | Example |
38
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
39
+ | `collateralPositions` | [components.CollateralPosition](../../models/components/collateralposition.md)[] | :heavy_minus_sign: | All collateral positions, one per reserve. | [] |
40
+ | `debtPositions` | [components.DebtPosition](../../models/components/debtposition.md)[] | :heavy_minus_sign: | All debt positions, one per reserve. | [] |
41
+ | `accountSummary` | [components.AccountSummary](../../models/components/accountsummary.md) | :heavy_check_mark: | Account-level summary for one lending protocol.<br/><br/>Populated from Aave ``getUserAccountData()`` or, for Euler, from the<br/>controller vault's risk engine (``accountLiquidity``). The E-Mode fields are<br/>Aave-only and stay at their defaults for Euler. | |
42
+ | `eulerAccountSummaries` | [components.AccountSummary](../../models/components/accountsummary.md)[] | :heavy_minus_sign: | Euler account-level summaries — ONE PER ACTIVE EVC SUB-ACCOUNT (Euler health is per-sub-account, so an owner with positions on sub-accounts 0 and 3 gets two entries, each carrying its sub_account_id and independent health factor). Empty for accounts with no Euler positions. Supersedes the singular euler_account_summary. | [] |
43
+ | `eulerAccountSummary` | [components.AccountSummary](../../models/components/accountsummary.md) | :heavy_minus_sign: | DEPRECATED (use euler_account_summaries): the sub-account-0 Euler account-level summary, kept for one release for backwards compatibility. Present only when the account holds Euler positions; for a multi-sub-account owner it reflects only sub-account 0 (or the first active sub-account if 0 is empty). Null for Aave-only accounts. | |
44
+ | `eulerBorrowableTokens` | [components.BorrowableToken](../../models/components/borrowabletoken.md)[] | :heavy_minus_sign: | Euler-only: additional borrowable amounts given the account's current Euler controller (i.e. borrow more of the controller's asset). Empty for accounts with no Euler borrow position use /credit/euler_markets to discover a new market to borrow from. | [] |
45
+ | `borrowableTokens` | [components.BorrowableToken](../../models/components/borrowabletoken.md)[] | :heavy_minus_sign: | All tokens available for borrowing with max amounts based on current collateral. | [] |
46
+ | `totalUsdValue` | *string* | :heavy_minus_sign: | Net position value in USD (total collateral - total debt). Null if prices unavailable. | |
@@ -11,6 +11,7 @@ let value: CreditRepayParams = {
11
11
  actionType: "CREDIT_REPAY",
12
12
  token: "<value>",
13
13
  amount: 9432.03,
14
+ subAccountId: 0,
14
15
  };
15
16
  ```
16
17
 
@@ -24,4 +25,5 @@ let value: CreditRepayParams = {
24
25
  | `interestRateMode` | [components.InterestRateMode](../../models/components/interestratemode.md) | :heavy_minus_sign: | On AAVE there are 2 different interest modes.<br/><br/>A stable (but typically higher rate), or a variable rate. | |
25
26
  | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | 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. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
26
27
  | `borrowVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault the debt is owed to. Required when protocol=EULER. | |
28
+ | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: EVC sub-account (0–255) holding the debt to repay. Each sub-account is an independent Euler position with its own collateral, borrow controller, and health. Defaults to 0. Ignored for Aave/Morpho. | 0 |
27
29
  | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO. | |
@@ -28,6 +28,7 @@ let value: CreditRepayRequest = {
28
28
  | `borrowVault` | *string* | :heavy_minus_sign: | Euler only: the EVK vault the debt is owed to (repay target). Required when protocol=EULER. | |
29
29
  | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO. | |
30
30
  | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to withdraw from. Required when protocol=EULER and withdrawing collateral. | |
31
+ | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: EVC sub-account (0–255) holding the debt to repay. Each sub-account is an independent Euler position with its own collateral, borrow controller, and health. Defaults to 0. Ignored for Aave/Morpho. | 0 |
31
32
  | `repayToken` | *string* | :heavy_check_mark: | The borrowed asset to repay (e.g. WETH). Must match the debt position's token. | WETH |
32
33
  | `repayAmount` | *components.RepayAmount* | :heavy_check_mark: | Amount of repay_token to repay (in token units, not wei). | 0.01 |
33
34
  | `interestRateMode` | [components.InterestRateMode](../../models/components/interestratemode.md) | :heavy_minus_sign: | On AAVE there are 2 different interest modes.<br/><br/>A stable (but typically higher rate), or a variable rate. | |
@@ -11,6 +11,7 @@ let value: CreditSupplyParams = {
11
11
  actionType: "CREDIT_SUPPLY",
12
12
  token: "<value>",
13
13
  amount: "271.94",
14
+ subAccountId: 0,
14
15
  };
15
16
  ```
16
17
 
@@ -23,4 +24,5 @@ let value: CreditSupplyParams = {
23
24
  | `amount` | *components.CreditSupplyParamsAmount* | :heavy_check_mark: | Amount in token units to supply. | |
24
25
  | `protocol` | [components.CreditProtocol](../../models/components/creditprotocol.md) | :heavy_minus_sign: | 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. ``EULER`` opts in to the<br/>Euler V2 path, where the market is identified by EVK vault address(es).<br/>``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is<br/>currently read-only: positions and market discovery only — transaction<br/>builders land with the looping work (COM-7106/7107/7108), so transact<br/>endpoints reject it with a 422. | |
25
26
  | `collateralVault` | *string* | :heavy_minus_sign: | Euler only: the EVK collateral vault to supply into. Required when protocol=EULER. | |
27
+ | `subAccountId` | *number* | :heavy_minus_sign: | Euler only: EVC sub-account (0–255) to isolate this position. Each sub-account is an independent Euler position with its own collateral, borrow controller, and health. Defaults to 0. Ignored for Aave/Morpho. | 0 |
26
28
  | `marketId` | *string* | :heavy_minus_sign: | Morpho only: the bytes32 market id (from /v2/credit/morpho_markets). Required when protocol=MORPHO. | |
@@ -15,6 +15,7 @@ const value: components.CreditBorrowParams = {
15
15
  amount: "886.22",
16
16
  denomination: "PERCENTAGE",
17
17
  },
18
+ subAccountId: 0,
18
19
  };
19
20
  ```
20
21
 
@@ -24,6 +25,7 @@ const value: components.CreditBorrowParams = {
24
25
  const value: components.CreditEnableCollateralParams = {
25
26
  actionType: "CREDIT_ENABLE_COLLATERAL",
26
27
  token: "<value>",
28
+ subAccountId: 0,
27
29
  };
28
30
  ```
29
31
 
@@ -34,6 +36,7 @@ const value: components.CreditRepayParams = {
34
36
  actionType: "CREDIT_REPAY",
35
37
  token: "<value>",
36
38
  amount: 9432.03,
39
+ subAccountId: 0,
37
40
  };
38
41
  ```
39
42
 
@@ -44,6 +47,7 @@ const value: components.CreditSupplyParams = {
44
47
  actionType: "CREDIT_SUPPLY",
45
48
  token: "<value>",
46
49
  amount: "271.94",
50
+ subAccountId: 0,
47
51
  };
48
52
  ```
49
53
 
@@ -65,6 +69,7 @@ const value: components.CreditWithdrawParams = {
65
69
  actionType: "CREDIT_WITHDRAW",
66
70
  token: "<value>",
67
71
  amount: 6714.86,
72
+ subAccountId: 0,
68
73
  };
69
74
  ```
70
75