@compass-labs/api-sdk 2.2.76-rc.1 → 2.2.76-rc.2

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 (166) hide show
  1. package/README.md +3 -5
  2. package/codeSamples_typescript.yaml +0 -6
  3. package/dist/commonjs/models/components/accountsummary.d.ts +0 -4
  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 +0 -12
  7. package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
  8. package/dist/commonjs/models/components/collateralposition.js +0 -4
  9. package/dist/commonjs/models/components/collateralposition.js.map +1 -1
  10. package/dist/commonjs/models/components/creditborrowparams.d.ts +0 -4
  11. package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
  12. package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
  13. package/dist/commonjs/models/components/creditborrowrequest.d.ts +0 -4
  14. package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
  15. package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
  16. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +0 -4
  17. package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
  18. package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
  19. package/dist/commonjs/models/components/creditprotocol.d.ts +0 -9
  20. package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/creditprotocol.js +0 -5
  22. package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
  23. package/dist/commonjs/models/components/creditrepayparams.d.ts +0 -4
  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 +0 -4
  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 +0 -4
  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/creditwithdrawparams.d.ts +0 -4
  33. package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
  34. package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
  35. package/dist/commonjs/models/components/debtposition.d.ts +0 -12
  36. package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/debtposition.js +0 -4
  38. package/dist/commonjs/models/components/debtposition.js.map +1 -1
  39. package/dist/commonjs/models/components/index.d.ts +0 -2
  40. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  41. package/dist/commonjs/models/components/index.js +0 -2
  42. package/dist/commonjs/models/components/index.js.map +1 -1
  43. package/dist/commonjs/models/operations/index.d.ts +0 -1
  44. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  45. package/dist/commonjs/models/operations/index.js +0 -1
  46. package/dist/commonjs/models/operations/index.js.map +1 -1
  47. package/dist/commonjs/sdk/credit.d.ts +0 -12
  48. package/dist/commonjs/sdk/credit.d.ts.map +1 -1
  49. package/dist/commonjs/sdk/credit.js +0 -15
  50. package/dist/commonjs/sdk/credit.js.map +1 -1
  51. package/dist/esm/models/components/accountsummary.d.ts +0 -4
  52. package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
  53. package/dist/esm/models/components/accountsummary.js.map +1 -1
  54. package/dist/esm/models/components/collateralposition.d.ts +0 -12
  55. package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
  56. package/dist/esm/models/components/collateralposition.js +0 -4
  57. package/dist/esm/models/components/collateralposition.js.map +1 -1
  58. package/dist/esm/models/components/creditborrowparams.d.ts +0 -4
  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 +0 -4
  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 +0 -4
  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/creditprotocol.d.ts +0 -9
  68. package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
  69. package/dist/esm/models/components/creditprotocol.js +0 -5
  70. package/dist/esm/models/components/creditprotocol.js.map +1 -1
  71. package/dist/esm/models/components/creditrepayparams.d.ts +0 -4
  72. package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
  73. package/dist/esm/models/components/creditrepayparams.js.map +1 -1
  74. package/dist/esm/models/components/creditrepayrequest.d.ts +0 -4
  75. package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
  76. package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
  77. package/dist/esm/models/components/creditsupplyparams.d.ts +0 -4
  78. package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
  79. package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
  80. package/dist/esm/models/components/creditwithdrawparams.d.ts +0 -4
  81. package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
  82. package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
  83. package/dist/esm/models/components/debtposition.d.ts +0 -12
  84. package/dist/esm/models/components/debtposition.d.ts.map +1 -1
  85. package/dist/esm/models/components/debtposition.js +0 -4
  86. package/dist/esm/models/components/debtposition.js.map +1 -1
  87. package/dist/esm/models/components/index.d.ts +0 -2
  88. package/dist/esm/models/components/index.d.ts.map +1 -1
  89. package/dist/esm/models/components/index.js +0 -2
  90. package/dist/esm/models/components/index.js.map +1 -1
  91. package/dist/esm/models/operations/index.d.ts +0 -1
  92. package/dist/esm/models/operations/index.d.ts.map +1 -1
  93. package/dist/esm/models/operations/index.js +0 -1
  94. package/dist/esm/models/operations/index.js.map +1 -1
  95. package/dist/esm/sdk/credit.d.ts +0 -12
  96. package/dist/esm/sdk/credit.d.ts.map +1 -1
  97. package/dist/esm/sdk/credit.js +0 -15
  98. package/dist/esm/sdk/credit.js.map +1 -1
  99. package/docs/models/components/accountsummary.md +10 -10
  100. package/docs/models/components/collateralposition.md +14 -16
  101. package/docs/models/components/creditborrowparams.md +9 -9
  102. package/docs/models/components/creditborrowrequest.md +19 -19
  103. package/docs/models/components/creditenablecollateralparams.md +6 -6
  104. package/docs/models/components/creditprotocol.md +1 -5
  105. package/docs/models/components/creditrepayparams.md +8 -8
  106. package/docs/models/components/creditrepayrequest.md +18 -18
  107. package/docs/models/components/creditsupplyparams.md +7 -7
  108. package/docs/models/components/creditwithdrawparams.md +7 -7
  109. package/docs/models/components/debtposition.md +13 -15
  110. package/docs/sdks/credit/README.md +0 -80
  111. package/openapi_prepped_for_speakeasy.json +2 -250
  112. package/package.json +1 -1
  113. package/src/models/components/accountsummary.ts +0 -4
  114. package/src/models/components/collateralposition.ts +0 -16
  115. package/src/models/components/creditborrowparams.ts +0 -4
  116. package/src/models/components/creditborrowrequest.ts +0 -4
  117. package/src/models/components/creditenablecollateralparams.ts +0 -4
  118. package/src/models/components/creditprotocol.ts +0 -9
  119. package/src/models/components/creditrepayparams.ts +0 -4
  120. package/src/models/components/creditrepayrequest.ts +0 -4
  121. package/src/models/components/creditsupplyparams.ts +0 -4
  122. package/src/models/components/creditwithdrawparams.ts +0 -4
  123. package/src/models/components/debtposition.ts +0 -16
  124. package/src/models/components/index.ts +0 -2
  125. package/src/models/operations/index.ts +0 -1
  126. package/src/sdk/credit.ts +0 -23
  127. package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts +0 -24
  128. package/dist/commonjs/funcs/creditCreditMorphoMarkets.d.ts.map +0 -1
  129. package/dist/commonjs/funcs/creditCreditMorphoMarkets.js +0 -128
  130. package/dist/commonjs/funcs/creditCreditMorphoMarkets.js.map +0 -1
  131. package/dist/commonjs/models/components/morpholendingmarket.d.ts +0 -80
  132. package/dist/commonjs/models/components/morpholendingmarket.d.ts.map +0 -1
  133. package/dist/commonjs/models/components/morpholendingmarket.js +0 -82
  134. package/dist/commonjs/models/components/morpholendingmarket.js.map +0 -1
  135. package/dist/commonjs/models/components/morphomarketsresponse.d.ts +0 -21
  136. package/dist/commonjs/models/components/morphomarketsresponse.d.ts.map +0 -1
  137. package/dist/commonjs/models/components/morphomarketsresponse.js +0 -52
  138. package/dist/commonjs/models/components/morphomarketsresponse.js.map +0 -1
  139. package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts +0 -22
  140. package/dist/commonjs/models/operations/v2creditmorphomarkets.d.ts.map +0 -1
  141. package/dist/commonjs/models/operations/v2creditmorphomarkets.js +0 -57
  142. package/dist/commonjs/models/operations/v2creditmorphomarkets.js.map +0 -1
  143. package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts +0 -24
  144. package/dist/esm/funcs/creditCreditMorphoMarkets.d.ts.map +0 -1
  145. package/dist/esm/funcs/creditCreditMorphoMarkets.js +0 -92
  146. package/dist/esm/funcs/creditCreditMorphoMarkets.js.map +0 -1
  147. package/dist/esm/models/components/morpholendingmarket.d.ts +0 -80
  148. package/dist/esm/models/components/morpholendingmarket.d.ts.map +0 -1
  149. package/dist/esm/models/components/morpholendingmarket.js +0 -45
  150. package/dist/esm/models/components/morpholendingmarket.js.map +0 -1
  151. package/dist/esm/models/components/morphomarketsresponse.d.ts +0 -21
  152. package/dist/esm/models/components/morphomarketsresponse.d.ts.map +0 -1
  153. package/dist/esm/models/components/morphomarketsresponse.js +0 -15
  154. package/dist/esm/models/components/morphomarketsresponse.js.map +0 -1
  155. package/dist/esm/models/operations/v2creditmorphomarkets.d.ts +0 -22
  156. package/dist/esm/models/operations/v2creditmorphomarkets.d.ts.map +0 -1
  157. package/dist/esm/models/operations/v2creditmorphomarkets.js +0 -20
  158. package/dist/esm/models/operations/v2creditmorphomarkets.js.map +0 -1
  159. package/docs/models/components/morpholendingmarket.md +0 -49
  160. package/docs/models/components/morphomarketsresponse.md +0 -21
  161. package/docs/models/operations/v2creditmorphomarketschain.md +0 -15
  162. package/docs/models/operations/v2creditmorphomarketsrequest.md +0 -17
  163. package/src/funcs/creditCreditMorphoMarkets.ts +0 -182
  164. package/src/models/components/morpholendingmarket.ts +0 -133
  165. package/src/models/components/morphomarketsresponse.ts +0 -46
  166. package/src/models/operations/v2creditmorphomarkets.ts +0 -49
@@ -7,7 +7,6 @@
7
7
  * [creditPositions](#creditpositions) - List credit positions
8
8
  * [creditBalances](#creditbalances) - Get credit account token balances
9
9
  * [creditEulerMarkets](#crediteulermarkets) - List curated Euler markets
10
- * [creditMorphoMarkets](#creditmorphomarkets) - List curated Morpho markets
11
10
  * [creditCreateAccount](#creditcreateaccount) - Create credit account
12
11
  * [creditBorrow](#creditborrow) - Borrow against collateral
13
12
  * [creditTransfer](#credittransfer) - Transfer tokens to/from Credit Account
@@ -251,85 +250,6 @@ run();
251
250
  | errors.HTTPValidationError | 422 | application/json |
252
251
  | errors.APIError | 4XX, 5XX | \*/\* |
253
252
 
254
- ## creditMorphoMarkets
255
-
256
- List curated Morpho Blue lending markets for a chain.
257
-
258
- Morpho Blue is permissionless, so credit actions identify a market by its
259
- bytes32 market id. This returns the curated market set with live LLTV,
260
- supply/borrow APY, utilization, and available liquidity -- read on-chain per
261
- request -- so callers know which market_id to use and what it currently costs.
262
-
263
- ### Example Usage
264
-
265
- <!-- UsageSnippet language="typescript" operationID="v2_credit_morpho_markets" method="get" path="/v2/credit/morpho_markets" -->
266
- ```typescript
267
- import { CompassApiSDK } from "@compass-labs/api-sdk";
268
-
269
- const compassApiSDK = new CompassApiSDK({
270
- apiKeyAuth: "<YOUR_API_KEY_HERE>",
271
- });
272
-
273
- async function run() {
274
- const result = await compassApiSDK.credit.creditMorphoMarkets({
275
- chain: "ethereum",
276
- });
277
-
278
- console.log(result);
279
- }
280
-
281
- run();
282
- ```
283
-
284
- ### Standalone function
285
-
286
- The standalone function version of this method:
287
-
288
- ```typescript
289
- import { CompassApiSDKCore } from "@compass-labs/api-sdk/core.js";
290
- import { creditCreditMorphoMarkets } from "@compass-labs/api-sdk/funcs/creditCreditMorphoMarkets.js";
291
-
292
- // Use `CompassApiSDKCore` for best tree-shaking performance.
293
- // You can create one instance of it to use across an application.
294
- const compassApiSDK = new CompassApiSDKCore({
295
- apiKeyAuth: "<YOUR_API_KEY_HERE>",
296
- });
297
-
298
- async function run() {
299
- const res = await creditCreditMorphoMarkets(compassApiSDK, {
300
- chain: "ethereum",
301
- });
302
- if (res.ok) {
303
- const { value: result } = res;
304
- console.log(result);
305
- } else {
306
- console.log("creditCreditMorphoMarkets failed:", res.error);
307
- }
308
- }
309
-
310
- run();
311
- ```
312
-
313
- ### Parameters
314
-
315
- | Parameter | Type | Required | Description |
316
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
317
- | `request` | [operations.V2CreditMorphoMarketsRequest](../../models/operations/v2creditmorphomarketsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
318
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
319
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
320
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
321
-
322
- ### Response
323
-
324
- **Promise\<[components.MorphoMarketsResponse](../../models/components/morphomarketsresponse.md)\>**
325
-
326
- ### Errors
327
-
328
- | Error Type | Status Code | Content Type |
329
- | -------------------------- | -------------------------- | -------------------------- |
330
- | errors.HTTPValidationError | 422 | application/json |
331
- | errors.APIError | 4XX, 5XX | \*/\* |
332
-
333
253
  ## creditCreateAccount
334
254
 
335
255
  Create a Credit Account for a wallet address.
@@ -6058,57 +6058,6 @@
6058
6058
  "x-speakeasy-name-override": "credit_euler_markets"
6059
6059
  }
6060
6060
  },
6061
- "/v2/credit/morpho_markets": {
6062
- "get": {
6063
- "tags": [
6064
- "Credit"
6065
- ],
6066
- "summary": "List curated Morpho markets",
6067
- "description": "List curated Morpho Blue lending markets for a chain.\n\nMorpho Blue is permissionless, so credit actions identify a market by its\nbytes32 market id. This returns the curated market set with live LLTV,\nsupply/borrow APY, utilization, and available liquidity -- read on-chain per\nrequest -- so callers know which market_id to use and what it currently costs.",
6068
- "operationId": "v2_credit_morpho_markets",
6069
- "parameters": [
6070
- {
6071
- "name": "chain",
6072
- "in": "query",
6073
- "required": true,
6074
- "schema": {
6075
- "type": "string",
6076
- "enum": [
6077
- "arbitrum",
6078
- "base",
6079
- "ethereum",
6080
- "tempo"
6081
- ],
6082
- "title": "Chain",
6083
- "example": "ethereum"
6084
- }
6085
- }
6086
- ],
6087
- "responses": {
6088
- "200": {
6089
- "description": "Successful Response",
6090
- "content": {
6091
- "application/json": {
6092
- "schema": {
6093
- "$ref": "#/components/schemas/MorphoMarketsResponse"
6094
- }
6095
- }
6096
- }
6097
- },
6098
- "422": {
6099
- "description": "Validation Error",
6100
- "content": {
6101
- "application/json": {
6102
- "schema": {
6103
- "$ref": "#/components/schemas/HTTPValidationError"
6104
- }
6105
- }
6106
- }
6107
- }
6108
- },
6109
- "x-speakeasy-name-override": "credit_morpho_markets"
6110
- }
6111
- },
6112
6061
  "/v2/credit/create_account": {
6113
6062
  "post": {
6114
6063
  "tags": [
@@ -11721,30 +11670,6 @@
11721
11670
  "title": "Vault",
11722
11671
  "description": "Euler only: the EVK collateral vault holding this position."
11723
11672
  },
11724
- "market_id": {
11725
- "anyOf": [
11726
- {
11727
- "type": "string"
11728
- },
11729
- {
11730
- "type": "null"
11731
- }
11732
- ],
11733
- "title": "Market Id",
11734
- "description": "Morpho only: the bytes32 id of the isolated market holding this position."
11735
- },
11736
- "is_pure_supply": {
11737
- "anyOf": [
11738
- {
11739
- "type": "boolean"
11740
- },
11741
- {
11742
- "type": "null"
11743
- }
11744
- ],
11745
- "title": "Is Pure Supply",
11746
- "description": "Morpho only: true when this is a loan-asset supply position (earning supply APY) rather than collateral backing borrows."
11747
- },
11748
11673
  "amount_supplied": {
11749
11674
  "anyOf": [
11750
11675
  {
@@ -12747,11 +12672,10 @@
12747
12672
  "type": "string",
12748
12673
  "enum": [
12749
12674
  "AAVE",
12750
- "EULER",
12751
- "MORPHO"
12675
+ "EULER"
12752
12676
  ],
12753
12677
  "title": "CreditProtocol",
12754
- "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. ``EULER`` opts in to the\nEuler V2 path, where the market is identified by EVK vault address(es).\n``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is\ncurrently read-only: positions and market discovery only \u2014 transaction\nbuilders land with the looping work (COM-7106/7107/7108), so transact\nendpoints reject it with a 422."
12678
+ "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. ``EULER`` opts in to the\nEuler V2 path, where the market is identified by EVK vault address(es)."
12755
12679
  },
12756
12680
  "CreditRepayParams": {
12757
12681
  "properties": {
@@ -13390,30 +13314,6 @@
13390
13314
  "title": "Vault",
13391
13315
  "description": "Euler only: the EVK borrow vault this debt is owed to."
13392
13316
  },
13393
- "market_id": {
13394
- "anyOf": [
13395
- {
13396
- "type": "string"
13397
- },
13398
- {
13399
- "type": "null"
13400
- }
13401
- ],
13402
- "title": "Market Id",
13403
- "description": "Morpho only: the bytes32 id of the isolated market this debt is owed to."
13404
- },
13405
- "health_factor": {
13406
- "anyOf": [
13407
- {
13408
- "type": "string"
13409
- },
13410
- {
13411
- "type": "null"
13412
- }
13413
- ],
13414
- "title": "Health Factor",
13415
- "description": "Morpho only: this market's health factor (markets are isolated, so health is per market \u2014 below 1 the position is liquidatable). Null for other protocols and when the oracle read fails."
13416
- },
13417
13317
  "amount_borrowed": {
13418
13318
  "anyOf": [
13419
13319
  {
@@ -17757,130 +17657,6 @@
17757
17657
  ],
17758
17658
  "title": "MorphoGetVaultsResponse"
17759
17659
  },
17760
- "MorphoLendingMarket": {
17761
- "properties": {
17762
- "market_id": {
17763
- "type": "string",
17764
- "title": "Market Id",
17765
- "description": "Morpho Blue market id \u2014 the bytes32 keccak of the market's (loanToken, collateralToken, oracle, irm, lltv) tuple. Pass this to the Morpho credit actions to identify the market."
17766
- },
17767
- "loan_token": {
17768
- "type": "string",
17769
- "title": "Loan Token",
17770
- "description": "Token that is supplied and borrowed in this market."
17771
- },
17772
- "loan_token_symbol": {
17773
- "type": "string",
17774
- "title": "Loan Token Symbol",
17775
- "description": "Symbol of the loan token (e.g. USDC)."
17776
- },
17777
- "loan_token_decimals": {
17778
- "type": "integer",
17779
- "title": "Loan Token Decimals",
17780
- "description": "Decimals of the loan token."
17781
- },
17782
- "collateral_token": {
17783
- "type": "string",
17784
- "title": "Collateral Token",
17785
- "description": "Token accepted as collateral in this market."
17786
- },
17787
- "collateral_token_symbol": {
17788
- "type": "string",
17789
- "title": "Collateral Token Symbol",
17790
- "description": "Symbol of the collateral token (e.g. wstETH)."
17791
- },
17792
- "collateral_token_decimals": {
17793
- "type": "integer",
17794
- "title": "Collateral Token Decimals",
17795
- "description": "Decimals of the collateral token."
17796
- },
17797
- "oracle": {
17798
- "type": "string",
17799
- "title": "Oracle",
17800
- "description": "Oracle pricing the collateral in loan-token terms for this market."
17801
- },
17802
- "irm": {
17803
- "type": "string",
17804
- "title": "Irm",
17805
- "description": "Interest rate model contract of this market."
17806
- },
17807
- "lltv": {
17808
- "type": "string",
17809
- "title": "Lltv",
17810
- "description": "Liquidation loan-to-value in percentage (e.g. 86 means a position is liquidatable once debt exceeds 86% of collateral value)."
17811
- },
17812
- "supply_apy": {
17813
- "anyOf": [
17814
- {
17815
- "type": "string"
17816
- },
17817
- {
17818
- "type": "null"
17819
- }
17820
- ],
17821
- "title": "Supply Apy",
17822
- "description": "Current supply APY for lending the loan token, in percentage (e.g. 3.5 means 3.5%). Null if the rate is unavailable."
17823
- },
17824
- "borrow_apy": {
17825
- "anyOf": [
17826
- {
17827
- "type": "string"
17828
- },
17829
- {
17830
- "type": "null"
17831
- }
17832
- ],
17833
- "title": "Borrow Apy",
17834
- "description": "Current borrow APY for the loan token, in percentage (e.g. 5.25 means 5.25%). Null if the rate is unavailable."
17835
- },
17836
- "utilization": {
17837
- "type": "string",
17838
- "title": "Utilization",
17839
- "description": "Borrowed share of supplied assets, in percentage 0-100."
17840
- },
17841
- "total_supply_assets": {
17842
- "type": "string",
17843
- "title": "Total Supply Assets",
17844
- "description": "Total loan tokens supplied to the market, in token units."
17845
- },
17846
- "total_borrow_assets": {
17847
- "type": "string",
17848
- "title": "Total Borrow Assets",
17849
- "description": "Total loan tokens borrowed from the market, in token units."
17850
- },
17851
- "available_liquidity": {
17852
- "type": "string",
17853
- "title": "Available Liquidity",
17854
- "description": "Loan tokens available to borrow or withdraw (supplied - borrowed), in token units."
17855
- },
17856
- "fee": {
17857
- "type": "string",
17858
- "title": "Fee",
17859
- "description": "Protocol fee taken from interest, in percentage of interest (e.g. 0 means no fee)."
17860
- }
17861
- },
17862
- "additionalProperties": false,
17863
- "type": "object",
17864
- "required": [
17865
- "market_id",
17866
- "loan_token",
17867
- "loan_token_symbol",
17868
- "loan_token_decimals",
17869
- "collateral_token",
17870
- "collateral_token_symbol",
17871
- "collateral_token_decimals",
17872
- "oracle",
17873
- "irm",
17874
- "lltv",
17875
- "utilization",
17876
- "total_supply_assets",
17877
- "total_borrow_assets",
17878
- "available_liquidity",
17879
- "fee"
17880
- ],
17881
- "title": "MorphoLendingMarket",
17882
- "description": "A Morpho Blue lending market: one isolated (collateral, loan) pair."
17883
- },
17884
17660
  "MorphoMarket": {
17885
17661
  "properties": {
17886
17662
  "uniqueKey": {
@@ -17931,30 +17707,6 @@
17931
17707
  ],
17932
17708
  "title": "MorphoMarket"
17933
17709
  },
17934
- "MorphoMarketsResponse": {
17935
- "properties": {
17936
- "morpho": {
17937
- "type": "string",
17938
- "title": "Morpho",
17939
- "description": "Morpho Blue singleton contract the markets were read from."
17940
- },
17941
- "markets": {
17942
- "items": {
17943
- "$ref": "#/components/schemas/MorphoLendingMarket"
17944
- },
17945
- "type": "array",
17946
- "title": "Markets",
17947
- "description": "Curated lending markets with live LLTV, APYs, utilization, and liquidity.",
17948
- "example": []
17949
- }
17950
- },
17951
- "type": "object",
17952
- "required": [
17953
- "morpho"
17954
- ],
17955
- "title": "MorphoMarketsResponse",
17956
- "description": "Curated Morpho Blue lending markets, read on-chain per request."
17957
- },
17958
17710
  "MorphoRepayParams": {
17959
17711
  "properties": {
17960
17712
  "action_type": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-labs/api-sdk",
3
- "version": "2.2.76-rc.1",
3
+ "version": "2.2.76-rc.2",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "tshy": {
@@ -30,10 +30,6 @@ export type AccountSummary = {
30
30
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
31
31
  * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
32
32
  * Euler V2 path, where the market is identified by EVK vault address(es).
33
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
34
- * currently read-only: positions and market discovery only — transaction
35
- * builders land with the looping work (COM-7106/7107/7108), so transact
36
- * endpoints reject it with a 422.
37
33
  */
38
34
  protocol?: CreditProtocol | undefined;
39
35
  /**
@@ -33,24 +33,12 @@ export type CollateralPosition = {
33
33
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
34
34
  * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
35
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.
40
36
  */
41
37
  protocol?: CreditProtocol | undefined;
42
38
  /**
43
39
  * Euler only: the EVK collateral vault holding this position.
44
40
  */
45
41
  vault?: string | null | undefined;
46
- /**
47
- * Morpho only: the bytes32 id of the isolated market holding this position.
48
- */
49
- marketId?: string | null | undefined;
50
- /**
51
- * Morpho only: true when this is a loan-asset supply position (earning supply APY) rather than collateral backing borrows.
52
- */
53
- isPureSupply?: boolean | null | undefined;
54
42
  /**
55
43
  * Current on-chain collateral balance (the vault's underlying asset for Euler).
56
44
  */
@@ -95,8 +83,6 @@ export const CollateralPosition$inboundSchema: z.ZodType<
95
83
  symbol: z.string(),
96
84
  protocol: CreditProtocol$inboundSchema.optional(),
97
85
  vault: z.nullable(z.string()).optional(),
98
- market_id: z.nullable(z.string()).optional(),
99
- is_pure_supply: z.nullable(z.boolean()).optional(),
100
86
  amount_supplied: z.nullable(z.string()),
101
87
  usd_value: z.nullable(z.string()).optional(),
102
88
  supply_apy: z.nullable(z.string()).optional(),
@@ -107,8 +93,6 @@ export const CollateralPosition$inboundSchema: z.ZodType<
107
93
  events: z.array(CreditEvent$inboundSchema).optional(),
108
94
  }).transform((v) => {
109
95
  return remap$(v, {
110
- "market_id": "marketId",
111
- "is_pure_supply": "isPureSupply",
112
96
  "amount_supplied": "amountSupplied",
113
97
  "usd_value": "usdValue",
114
98
  "supply_apy": "supplyApy",
@@ -56,10 +56,6 @@ export type CreditBorrowParams = {
56
56
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
57
57
  * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
58
58
  * Euler V2 path, where the market is identified by EVK vault address(es).
59
- * ``MORPHO`` identifies Morpho Blue lending markets (bytes32 market id) and is
60
- * currently read-only: positions and market discovery only — transaction
61
- * builders land with the looping work (COM-7106/7107/7108), so transact
62
- * endpoints reject it with a 422.
63
59
  */
64
60
  protocol?: CreditProtocol | undefined;
65
61
  /**
@@ -51,10 +51,6 @@ export type CreditBorrowRequest = {
51
51
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
52
52
  * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
53
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.
58
54
  */
59
55
  protocol?: CreditProtocol | undefined;
60
56
  /**
@@ -31,10 +31,6 @@ export type CreditEnableCollateralParams = {
31
31
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
32
32
  * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
33
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.
38
34
  */
39
35
  protocol?: CreditProtocol | undefined;
40
36
  /**
@@ -13,15 +13,10 @@ import { ClosedEnum } from "../../types/enums.js";
13
13
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
14
14
  * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
15
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.
20
16
  */
21
17
  export const CreditProtocol = {
22
18
  Aave: "AAVE",
23
19
  Euler: "EULER",
24
- Morpho: "MORPHO",
25
20
  } as const;
26
21
  /**
27
22
  * Which lending protocol a credit action targets.
@@ -31,10 +26,6 @@ export const CreditProtocol = {
31
26
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
32
27
  * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
33
28
  * 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.
38
29
  */
39
30
  export type CreditProtocol = ClosedEnum<typeof CreditProtocol>;
40
31
 
@@ -47,10 +47,6 @@ export type CreditRepayParams = {
47
47
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
48
48
  * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
49
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.
54
50
  */
55
51
  protocol?: CreditProtocol | undefined;
56
52
  /**
@@ -46,10 +46,6 @@ export type CreditRepayRequest = {
46
46
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
47
47
  * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
48
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.
53
49
  */
54
50
  protocol?: CreditProtocol | undefined;
55
51
  /**
@@ -35,10 +35,6 @@ export type CreditSupplyParams = {
35
35
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
36
36
  * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
37
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.
42
38
  */
43
39
  protocol?: CreditProtocol | undefined;
44
40
  /**
@@ -35,10 +35,6 @@ export type CreditWithdrawParams = {
35
35
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
36
36
  * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
37
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.
42
38
  */
43
39
  protocol?: CreditProtocol | undefined;
44
40
  /**
@@ -33,24 +33,12 @@ export type DebtPosition = {
33
33
  * ``AAVE`` is the default so existing callers (which never send a ``protocol``
34
34
  * field) keep hitting the unchanged Aave code path. ``EULER`` opts in to the
35
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.
40
36
  */
41
37
  protocol?: CreditProtocol | undefined;
42
38
  /**
43
39
  * Euler only: the EVK borrow vault this debt is owed to.
44
40
  */
45
41
  vault?: string | null | undefined;
46
- /**
47
- * Morpho only: the bytes32 id of the isolated market this debt is owed to.
48
- */
49
- marketId?: string | null | undefined;
50
- /**
51
- * Morpho only: this market's health factor (markets are isolated, so health is per market — below 1 the position is liquidatable). Null for other protocols and when the oracle read fails.
52
- */
53
- healthFactor?: string | null | undefined;
54
42
  /**
55
43
  * Current on-chain debt balance (the vault's underlying asset for Euler).
56
44
  */
@@ -91,8 +79,6 @@ export const DebtPosition$inboundSchema: z.ZodType<
91
79
  symbol: z.string(),
92
80
  protocol: CreditProtocol$inboundSchema.optional(),
93
81
  vault: z.nullable(z.string()).optional(),
94
- market_id: z.nullable(z.string()).optional(),
95
- health_factor: z.nullable(z.string()).optional(),
96
82
  amount_borrowed: z.nullable(z.string()),
97
83
  usd_value: z.nullable(z.string()).optional(),
98
84
  borrow_apy: z.nullable(z.string()).optional(),
@@ -102,8 +88,6 @@ export const DebtPosition$inboundSchema: z.ZodType<
102
88
  events: z.array(CreditEvent$inboundSchema).optional(),
103
89
  }).transform((v) => {
104
90
  return remap$(v, {
105
- "market_id": "marketId",
106
- "health_factor": "healthFactor",
107
91
  "amount_borrowed": "amountBorrowed",
108
92
  "usd_value": "usdValue",
109
93
  "borrow_apy": "borrowApy",
@@ -201,9 +201,7 @@ export * from "./morphodepositrequest.js";
201
201
  export * from "./morphogetmarketresponse.js";
202
202
  export * from "./morphogetmarketsresponse.js";
203
203
  export * from "./morphogetvaultsresponse.js";
204
- export * from "./morpholendingmarket.js";
205
204
  export * from "./morphomarket.js";
206
- export * from "./morphomarketsresponse.js";
207
205
  export * from "./morphorepayparams.js";
208
206
  export * from "./morphorepayrequest.js";
209
207
  export * from "./morphosupplycollateralparams.js";
@@ -43,7 +43,6 @@ export * from "./v1wildcatmarket.js";
43
43
  export * from "./v2cctpmint.js";
44
44
  export * from "./v2creditbalances.js";
45
45
  export * from "./v2crediteulermarkets.js";
46
- export * from "./v2creditmorphomarkets.js";
47
46
  export * from "./v2creditpositions.js";
48
47
  export * from "./v2earnaavemarkets.js";
49
48
  export * from "./v2earnbalances.js";