@compass-labs/api-sdk 0.5.76 → 1.0.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.
- package/README.md +14 -0
- package/bin/mcp-server.js +22 -23
- package/bin/mcp-server.js.map +13 -13
- package/dist/commonjs/hooks/hooks.d.ts +3 -2
- package/dist/commonjs/hooks/hooks.d.ts.map +1 -1
- package/dist/commonjs/hooks/hooks.js.map +1 -1
- package/dist/commonjs/hooks/types.d.ts +2 -6
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +5 -6
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsborrow.d.ts +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsborrow.d.ts.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsborrow.js +2 -2
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsborrow.js.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsliquidationcall.d.ts +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsliquidationcall.d.ts.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsliquidationcall.js +2 -2
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsliquidationcall.js.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsrepay.d.ts +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsrepay.d.ts.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsrepay.js +2 -2
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsrepay.js.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionssupply.d.ts +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionssupply.d.ts.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionssupply.js +2 -2
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionssupply.js.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsswapborrowrate.d.ts +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsswapborrowrate.d.ts.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsswapborrowrate.js +2 -2
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsswapborrowrate.js.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsusageascollateral.d.ts +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsusageascollateral.d.ts.map +1 -1
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsusageascollateral.js +2 -3
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsusageascollateral.js.map +1 -1
- package/dist/esm/hooks/hooks.d.ts +3 -2
- package/dist/esm/hooks/hooks.d.ts.map +1 -1
- package/dist/esm/hooks/hooks.js.map +1 -1
- package/dist/esm/hooks/types.d.ts +2 -6
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +5 -6
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/mcp-server.js.map +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsborrow.d.ts +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsborrow.d.ts.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsborrow.js +2 -2
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsborrow.js.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsliquidationcall.d.ts +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsliquidationcall.d.ts.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsliquidationcall.js +2 -2
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsliquidationcall.js.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsrepay.d.ts +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsrepay.d.ts.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsrepay.js +2 -2
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsrepay.js.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionssupply.d.ts +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionssupply.d.ts.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionssupply.js +2 -2
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionssupply.js.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsswapborrowrate.d.ts +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsswapborrowrate.d.ts.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsswapborrowrate.js +2 -2
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsswapborrowrate.js.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsusageascollateral.d.ts +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsusageascollateral.d.ts.map +1 -1
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsusageascollateral.js +2 -3
- package/dist/esm/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsusageascollateral.js.map +1 -1
- package/docs/sdks/aavev3/README.md +6 -6
- package/docs/sdks/erc4626vaults/README.md +2 -2
- package/docs/sdks/morpho/README.md +4 -4
- package/docs/sdks/transactionbundler/README.md +4 -4
- package/docs/sdks/uniswapv3/README.md +10 -10
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/hooks/hooks.ts +2 -2
- package/src/hooks/types.ts +2 -7
- package/src/lib/config.ts +2 -2
- package/src/lib/sdks.ts +6 -7
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsborrow.ts +3 -3
- package/src/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsliquidationcall.ts +3 -3
- package/src/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsrepay.ts +3 -3
- package/src/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionssupply.ts +3 -3
- package/src/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsswapborrowrate.ts +3 -3
- package/src/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsusageascollateral.ts +3 -6
package/README.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@compass-labs/api-sdk* API.
|
|
4
4
|
|
|
5
|
+
<div align="left">
|
|
6
|
+
<a href="https://www.speakeasy.com/?utm_source=@compass-labs/api-sdk&utm_campaign=typescript"><img src="https://custom-icon-badges.demolab.com/badge/-Built%20By%20Speakeasy-212015?style=for-the-badge&logoColor=FBE331&logo=speakeasy&labelColor=545454" /></a>
|
|
7
|
+
<a href="https://opensource.org/licenses/MIT">
|
|
8
|
+
<img src="https://img.shields.io/badge/License-MIT-blue.svg" style="width: 100px; height: 28px;" />
|
|
9
|
+
</a>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<br /><br />
|
|
14
|
+
> [!IMPORTANT]
|
|
15
|
+
> This SDK is not yet ready for production use. To complete setup please follow the steps outlined in your [workspace](https://app.speakeasy.com/org/compasslabs/api). Delete this section before > publishing to a package manager.
|
|
16
|
+
|
|
5
17
|
<!-- Start Summary [summary] -->
|
|
6
18
|
## Summary
|
|
7
19
|
|
|
@@ -662,3 +674,5 @@ looking for the latest version.
|
|
|
662
674
|
|
|
663
675
|
While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation.
|
|
664
676
|
We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.
|
|
677
|
+
|
|
678
|
+
### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=@compass-labs/api-sdk&utm_campaign=typescript)
|
package/bin/mcp-server.js
CHANGED
|
@@ -34264,9 +34264,9 @@ var init_config = __esm(() => {
|
|
|
34264
34264
|
SDK_METADATA = {
|
|
34265
34265
|
language: "typescript",
|
|
34266
34266
|
openapiDocVersion: "0.0.1",
|
|
34267
|
-
sdkVersion: "0.
|
|
34267
|
+
sdkVersion: "1.0.0",
|
|
34268
34268
|
genVersion: "2.672.0",
|
|
34269
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 1.0.0 2.672.0 0.0.1 @compass-labs/api-sdk"
|
|
34270
34270
|
};
|
|
34271
34271
|
});
|
|
34272
34272
|
|
|
@@ -34776,16 +34776,15 @@ class ClientSDK {
|
|
|
34776
34776
|
} else {
|
|
34777
34777
|
this.#hooks = new SDKHooks;
|
|
34778
34778
|
}
|
|
34779
|
+
const defaultHttpClient = new HTTPClient;
|
|
34780
|
+
options.httpClient = options.httpClient || defaultHttpClient;
|
|
34781
|
+
options = this.#hooks.sdkInit(options);
|
|
34779
34782
|
const url = serverURLFromOptions(options);
|
|
34780
34783
|
if (url) {
|
|
34781
34784
|
url.pathname = url.pathname.replace(/\/+$/, "") + "/";
|
|
34782
34785
|
}
|
|
34783
|
-
|
|
34784
|
-
|
|
34785
|
-
client: options.httpClient || new HTTPClient
|
|
34786
|
-
});
|
|
34787
|
-
this._baseURL = baseURL;
|
|
34788
|
-
this.#httpClient = client;
|
|
34786
|
+
this._baseURL = url;
|
|
34787
|
+
this.#httpClient = options.httpClient || defaultHttpClient;
|
|
34789
34788
|
this._options = { ...options, hooks: this.#hooks };
|
|
34790
34789
|
this.#logger = this._options.debugLogger;
|
|
34791
34790
|
}
|
|
@@ -36889,7 +36888,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsborrow = _
|
|
|
36889
36888
|
borrowRateMode: Borrowratemode$inboundSchema,
|
|
36890
36889
|
reserve: Reserve$inboundSchema,
|
|
36891
36890
|
assetPriceUSD: numberType(),
|
|
36892
|
-
action: literalType("Borrow")
|
|
36891
|
+
action: literalType("Borrow"),
|
|
36893
36892
|
block: numberType().int()
|
|
36894
36893
|
});
|
|
36895
36894
|
CompassApiBackendModelsAaveReadResponseHistoricalTransactionsBorrow$outboundSchema = objectType({
|
|
@@ -36900,7 +36899,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsborrow = _
|
|
|
36900
36899
|
borrowRateMode: Borrowratemode$outboundSchema,
|
|
36901
36900
|
reserve: Reserve$outboundSchema,
|
|
36902
36901
|
assetPriceUSD: numberType(),
|
|
36903
|
-
action: literalType("Borrow")
|
|
36902
|
+
action: literalType("Borrow"),
|
|
36904
36903
|
block: numberType().int()
|
|
36905
36904
|
});
|
|
36906
36905
|
((CompassApiBackendModelsAaveReadResponseHistoricalTransactionsBorrow$) => {
|
|
@@ -36924,7 +36923,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsliquidatio
|
|
|
36924
36923
|
principalReserve: Reserve$inboundSchema,
|
|
36925
36924
|
collateralAssetPriceUSD: numberType(),
|
|
36926
36925
|
borrowAssetPriceUSD: numberType(),
|
|
36927
|
-
action: literalType("LiquidationCall")
|
|
36926
|
+
action: literalType("LiquidationCall"),
|
|
36928
36927
|
block: numberType().int()
|
|
36929
36928
|
});
|
|
36930
36929
|
CompassApiBackendModelsAaveReadResponseHistoricalTransactionsLiquidationCall$outboundSchema = objectType({
|
|
@@ -36937,7 +36936,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsliquidatio
|
|
|
36937
36936
|
principalReserve: Reserve$outboundSchema,
|
|
36938
36937
|
collateralAssetPriceUSD: numberType(),
|
|
36939
36938
|
borrowAssetPriceUSD: numberType(),
|
|
36940
|
-
action: literalType("LiquidationCall")
|
|
36939
|
+
action: literalType("LiquidationCall"),
|
|
36941
36940
|
block: numberType().int()
|
|
36942
36941
|
});
|
|
36943
36942
|
((CompassApiBackendModelsAaveReadResponseHistoricalTransactionsLiquidationCall$) => {
|
|
@@ -36989,7 +36988,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsrepay = __
|
|
|
36989
36988
|
amount: numberType(),
|
|
36990
36989
|
reserve: Reserve$inboundSchema,
|
|
36991
36990
|
assetPriceUSD: numberType(),
|
|
36992
|
-
action: literalType("Repay")
|
|
36991
|
+
action: literalType("Repay"),
|
|
36993
36992
|
block: numberType().int()
|
|
36994
36993
|
});
|
|
36995
36994
|
CompassApiBackendModelsAaveReadResponseHistoricalTransactionsRepay$outboundSchema = objectType({
|
|
@@ -36999,7 +36998,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsrepay = __
|
|
|
36999
36998
|
amount: numberType(),
|
|
37000
36999
|
reserve: Reserve$outboundSchema,
|
|
37001
37000
|
assetPriceUSD: numberType(),
|
|
37002
|
-
action: literalType("Repay")
|
|
37001
|
+
action: literalType("Repay"),
|
|
37003
37002
|
block: numberType().int()
|
|
37004
37003
|
});
|
|
37005
37004
|
((CompassApiBackendModelsAaveReadResponseHistoricalTransactionsRepay$) => {
|
|
@@ -37020,7 +37019,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionssupply = _
|
|
|
37020
37019
|
amount: numberType(),
|
|
37021
37020
|
reserve: Reserve$inboundSchema,
|
|
37022
37021
|
assetPriceUSD: numberType(),
|
|
37023
|
-
action: literalType("Supply")
|
|
37022
|
+
action: literalType("Supply"),
|
|
37024
37023
|
block: numberType().int()
|
|
37025
37024
|
});
|
|
37026
37025
|
CompassApiBackendModelsAaveReadResponseHistoricalTransactionsSupply$outboundSchema = objectType({
|
|
@@ -37030,7 +37029,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionssupply = _
|
|
|
37030
37029
|
amount: numberType(),
|
|
37031
37030
|
reserve: Reserve$outboundSchema,
|
|
37032
37031
|
assetPriceUSD: numberType(),
|
|
37033
|
-
action: literalType("Supply")
|
|
37032
|
+
action: literalType("Supply"),
|
|
37034
37033
|
block: numberType().int()
|
|
37035
37034
|
});
|
|
37036
37035
|
((CompassApiBackendModelsAaveReadResponseHistoricalTransactionsSupply$) => {
|
|
@@ -37053,7 +37052,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsswapborrow
|
|
|
37053
37052
|
variableBorrowRate: numberType().int(),
|
|
37054
37053
|
stableBorrowRate: numberType().int(),
|
|
37055
37054
|
reserve: Reserve$inboundSchema,
|
|
37056
|
-
action: literalType("SwapBorrowRate")
|
|
37055
|
+
action: literalType("SwapBorrowRate"),
|
|
37057
37056
|
block: numberType().int()
|
|
37058
37057
|
});
|
|
37059
37058
|
CompassApiBackendModelsAaveReadResponseHistoricalTransactionsSwapBorrowRate$outboundSchema = objectType({
|
|
@@ -37065,7 +37064,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsswapborrow
|
|
|
37065
37064
|
variableBorrowRate: numberType().int(),
|
|
37066
37065
|
stableBorrowRate: numberType().int(),
|
|
37067
37066
|
reserve: Reserve$outboundSchema,
|
|
37068
|
-
action: literalType("SwapBorrowRate")
|
|
37067
|
+
action: literalType("SwapBorrowRate"),
|
|
37069
37068
|
block: numberType().int()
|
|
37070
37069
|
});
|
|
37071
37070
|
((CompassApiBackendModelsAaveReadResponseHistoricalTransactionsSwapBorrowRate$) => {
|
|
@@ -37086,7 +37085,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsusageascol
|
|
|
37086
37085
|
fromState: booleanType(),
|
|
37087
37086
|
toState: booleanType(),
|
|
37088
37087
|
reserve: Reserve$inboundSchema,
|
|
37089
|
-
action: literalType("UsageAsCollateral")
|
|
37088
|
+
action: literalType("UsageAsCollateral"),
|
|
37090
37089
|
block: numberType().int()
|
|
37091
37090
|
});
|
|
37092
37091
|
CompassApiBackendModelsAaveReadResponseHistoricalTransactionsUsageAsCollateral$outboundSchema = objectType({
|
|
@@ -37096,7 +37095,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsusageascol
|
|
|
37096
37095
|
fromState: booleanType(),
|
|
37097
37096
|
toState: booleanType(),
|
|
37098
37097
|
reserve: Reserve$outboundSchema,
|
|
37099
|
-
action: literalType("UsageAsCollateral")
|
|
37098
|
+
action: literalType("UsageAsCollateral"),
|
|
37100
37099
|
block: numberType().int()
|
|
37101
37100
|
});
|
|
37102
37101
|
((CompassApiBackendModelsAaveReadResponseHistoricalTransactionsUsageAsCollateral$) => {
|
|
@@ -54687,7 +54686,7 @@ it to be traded on DeFi protocols.`,
|
|
|
54687
54686
|
function createMCPServer(deps) {
|
|
54688
54687
|
const server = new McpServer({
|
|
54689
54688
|
name: "CompassApiSDK",
|
|
54690
|
-
version: "0.
|
|
54689
|
+
version: "1.0.0"
|
|
54691
54690
|
});
|
|
54692
54691
|
const client = new CompassApiSDKCore({
|
|
54693
54692
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -56053,7 +56052,7 @@ var routes = ln({
|
|
|
56053
56052
|
var app = _e(routes, {
|
|
56054
56053
|
name: "mcp",
|
|
56055
56054
|
versionInfo: {
|
|
56056
|
-
currentVersion: "0.
|
|
56055
|
+
currentVersion: "1.0.0"
|
|
56057
56056
|
}
|
|
56058
56057
|
});
|
|
56059
56058
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -56061,5 +56060,5 @@ export {
|
|
|
56061
56060
|
app
|
|
56062
56061
|
};
|
|
56063
56062
|
|
|
56064
|
-
//# debugId=
|
|
56063
|
+
//# debugId=80CF531C496926D064756E2164756E21
|
|
56065
56064
|
//# sourceMappingURL=mcp-server.js.map
|