@compass-labs/api-sdk 1.0.0 → 1.0.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.
- package/README.md +0 -14
- package/bin/mcp-server.js +23 -22
- package/bin/mcp-server.js.map +13 -13
- package/dist/commonjs/hooks/hooks.d.ts +2 -3
- 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 +6 -2
- 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/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +6 -5
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +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 +3 -2
- package/dist/commonjs/models/components/compassapibackendmodelsaavereadresponsehistoricaltransactionsusageascollateral.js.map +1 -1
- package/dist/esm/hooks/hooks.d.ts +2 -3
- 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 +6 -2
- 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/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +6 -5
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +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 +3 -2
- 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 +7 -2
- package/src/lib/config.ts +2 -2
- package/src/lib/sdks.ts +7 -6
- 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 +6 -3
package/README.md
CHANGED
|
@@ -2,18 +2,6 @@
|
|
|
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
|
-
|
|
17
5
|
<!-- Start Summary [summary] -->
|
|
18
6
|
## Summary
|
|
19
7
|
|
|
@@ -674,5 +662,3 @@ looking for the latest version.
|
|
|
674
662
|
|
|
675
663
|
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.
|
|
676
664
|
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: "1.0.
|
|
34267
|
+
sdkVersion: "1.0.2",
|
|
34268
34268
|
genVersion: "2.672.0",
|
|
34269
|
-
userAgent: "speakeasy-sdk/typescript 1.0.
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 1.0.2 2.672.0 0.0.1 @compass-labs/api-sdk"
|
|
34270
34270
|
};
|
|
34271
34271
|
});
|
|
34272
34272
|
|
|
@@ -34776,15 +34776,16 @@ 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);
|
|
34782
34779
|
const url = serverURLFromOptions(options);
|
|
34783
34780
|
if (url) {
|
|
34784
34781
|
url.pathname = url.pathname.replace(/\/+$/, "") + "/";
|
|
34785
34782
|
}
|
|
34786
|
-
|
|
34787
|
-
|
|
34783
|
+
const { baseURL, client } = this.#hooks.sdkInit({
|
|
34784
|
+
baseURL: url,
|
|
34785
|
+
client: options.httpClient || new HTTPClient
|
|
34786
|
+
});
|
|
34787
|
+
this._baseURL = baseURL;
|
|
34788
|
+
this.#httpClient = client;
|
|
34788
34789
|
this._options = { ...options, hooks: this.#hooks };
|
|
34789
34790
|
this.#logger = this._options.debugLogger;
|
|
34790
34791
|
}
|
|
@@ -36888,7 +36889,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsborrow = _
|
|
|
36888
36889
|
borrowRateMode: Borrowratemode$inboundSchema,
|
|
36889
36890
|
reserve: Reserve$inboundSchema,
|
|
36890
36891
|
assetPriceUSD: numberType(),
|
|
36891
|
-
action: literalType("Borrow"),
|
|
36892
|
+
action: literalType("Borrow").default("Borrow").optional(),
|
|
36892
36893
|
block: numberType().int()
|
|
36893
36894
|
});
|
|
36894
36895
|
CompassApiBackendModelsAaveReadResponseHistoricalTransactionsBorrow$outboundSchema = objectType({
|
|
@@ -36899,7 +36900,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsborrow = _
|
|
|
36899
36900
|
borrowRateMode: Borrowratemode$outboundSchema,
|
|
36900
36901
|
reserve: Reserve$outboundSchema,
|
|
36901
36902
|
assetPriceUSD: numberType(),
|
|
36902
|
-
action: literalType("Borrow"),
|
|
36903
|
+
action: literalType("Borrow").default("Borrow"),
|
|
36903
36904
|
block: numberType().int()
|
|
36904
36905
|
});
|
|
36905
36906
|
((CompassApiBackendModelsAaveReadResponseHistoricalTransactionsBorrow$) => {
|
|
@@ -36923,7 +36924,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsliquidatio
|
|
|
36923
36924
|
principalReserve: Reserve$inboundSchema,
|
|
36924
36925
|
collateralAssetPriceUSD: numberType(),
|
|
36925
36926
|
borrowAssetPriceUSD: numberType(),
|
|
36926
|
-
action: literalType("LiquidationCall"),
|
|
36927
|
+
action: literalType("LiquidationCall").default("LiquidationCall").optional(),
|
|
36927
36928
|
block: numberType().int()
|
|
36928
36929
|
});
|
|
36929
36930
|
CompassApiBackendModelsAaveReadResponseHistoricalTransactionsLiquidationCall$outboundSchema = objectType({
|
|
@@ -36936,7 +36937,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsliquidatio
|
|
|
36936
36937
|
principalReserve: Reserve$outboundSchema,
|
|
36937
36938
|
collateralAssetPriceUSD: numberType(),
|
|
36938
36939
|
borrowAssetPriceUSD: numberType(),
|
|
36939
|
-
action: literalType("LiquidationCall"),
|
|
36940
|
+
action: literalType("LiquidationCall").default("LiquidationCall"),
|
|
36940
36941
|
block: numberType().int()
|
|
36941
36942
|
});
|
|
36942
36943
|
((CompassApiBackendModelsAaveReadResponseHistoricalTransactionsLiquidationCall$) => {
|
|
@@ -36988,7 +36989,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsrepay = __
|
|
|
36988
36989
|
amount: numberType(),
|
|
36989
36990
|
reserve: Reserve$inboundSchema,
|
|
36990
36991
|
assetPriceUSD: numberType(),
|
|
36991
|
-
action: literalType("Repay"),
|
|
36992
|
+
action: literalType("Repay").default("Repay").optional(),
|
|
36992
36993
|
block: numberType().int()
|
|
36993
36994
|
});
|
|
36994
36995
|
CompassApiBackendModelsAaveReadResponseHistoricalTransactionsRepay$outboundSchema = objectType({
|
|
@@ -36998,7 +36999,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsrepay = __
|
|
|
36998
36999
|
amount: numberType(),
|
|
36999
37000
|
reserve: Reserve$outboundSchema,
|
|
37000
37001
|
assetPriceUSD: numberType(),
|
|
37001
|
-
action: literalType("Repay"),
|
|
37002
|
+
action: literalType("Repay").default("Repay"),
|
|
37002
37003
|
block: numberType().int()
|
|
37003
37004
|
});
|
|
37004
37005
|
((CompassApiBackendModelsAaveReadResponseHistoricalTransactionsRepay$) => {
|
|
@@ -37019,7 +37020,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionssupply = _
|
|
|
37019
37020
|
amount: numberType(),
|
|
37020
37021
|
reserve: Reserve$inboundSchema,
|
|
37021
37022
|
assetPriceUSD: numberType(),
|
|
37022
|
-
action: literalType("Supply"),
|
|
37023
|
+
action: literalType("Supply").default("Supply").optional(),
|
|
37023
37024
|
block: numberType().int()
|
|
37024
37025
|
});
|
|
37025
37026
|
CompassApiBackendModelsAaveReadResponseHistoricalTransactionsSupply$outboundSchema = objectType({
|
|
@@ -37029,7 +37030,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionssupply = _
|
|
|
37029
37030
|
amount: numberType(),
|
|
37030
37031
|
reserve: Reserve$outboundSchema,
|
|
37031
37032
|
assetPriceUSD: numberType(),
|
|
37032
|
-
action: literalType("Supply"),
|
|
37033
|
+
action: literalType("Supply").default("Supply"),
|
|
37033
37034
|
block: numberType().int()
|
|
37034
37035
|
});
|
|
37035
37036
|
((CompassApiBackendModelsAaveReadResponseHistoricalTransactionsSupply$) => {
|
|
@@ -37052,7 +37053,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsswapborrow
|
|
|
37052
37053
|
variableBorrowRate: numberType().int(),
|
|
37053
37054
|
stableBorrowRate: numberType().int(),
|
|
37054
37055
|
reserve: Reserve$inboundSchema,
|
|
37055
|
-
action: literalType("SwapBorrowRate"),
|
|
37056
|
+
action: literalType("SwapBorrowRate").default("SwapBorrowRate").optional(),
|
|
37056
37057
|
block: numberType().int()
|
|
37057
37058
|
});
|
|
37058
37059
|
CompassApiBackendModelsAaveReadResponseHistoricalTransactionsSwapBorrowRate$outboundSchema = objectType({
|
|
@@ -37064,7 +37065,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsswapborrow
|
|
|
37064
37065
|
variableBorrowRate: numberType().int(),
|
|
37065
37066
|
stableBorrowRate: numberType().int(),
|
|
37066
37067
|
reserve: Reserve$outboundSchema,
|
|
37067
|
-
action: literalType("SwapBorrowRate"),
|
|
37068
|
+
action: literalType("SwapBorrowRate").default("SwapBorrowRate"),
|
|
37068
37069
|
block: numberType().int()
|
|
37069
37070
|
});
|
|
37070
37071
|
((CompassApiBackendModelsAaveReadResponseHistoricalTransactionsSwapBorrowRate$) => {
|
|
@@ -37085,7 +37086,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsusageascol
|
|
|
37085
37086
|
fromState: booleanType(),
|
|
37086
37087
|
toState: booleanType(),
|
|
37087
37088
|
reserve: Reserve$inboundSchema,
|
|
37088
|
-
action: literalType("UsageAsCollateral"),
|
|
37089
|
+
action: literalType("UsageAsCollateral").default("UsageAsCollateral").optional(),
|
|
37089
37090
|
block: numberType().int()
|
|
37090
37091
|
});
|
|
37091
37092
|
CompassApiBackendModelsAaveReadResponseHistoricalTransactionsUsageAsCollateral$outboundSchema = objectType({
|
|
@@ -37095,7 +37096,7 @@ var init_compassapibackendmodelsaavereadresponsehistoricaltransactionsusageascol
|
|
|
37095
37096
|
fromState: booleanType(),
|
|
37096
37097
|
toState: booleanType(),
|
|
37097
37098
|
reserve: Reserve$outboundSchema,
|
|
37098
|
-
action: literalType("UsageAsCollateral"),
|
|
37099
|
+
action: literalType("UsageAsCollateral").default("UsageAsCollateral"),
|
|
37099
37100
|
block: numberType().int()
|
|
37100
37101
|
});
|
|
37101
37102
|
((CompassApiBackendModelsAaveReadResponseHistoricalTransactionsUsageAsCollateral$) => {
|
|
@@ -54686,7 +54687,7 @@ it to be traded on DeFi protocols.`,
|
|
|
54686
54687
|
function createMCPServer(deps) {
|
|
54687
54688
|
const server = new McpServer({
|
|
54688
54689
|
name: "CompassApiSDK",
|
|
54689
|
-
version: "1.0.
|
|
54690
|
+
version: "1.0.2"
|
|
54690
54691
|
});
|
|
54691
54692
|
const client = new CompassApiSDKCore({
|
|
54692
54693
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -56052,7 +56053,7 @@ var routes = ln({
|
|
|
56052
56053
|
var app = _e(routes, {
|
|
56053
56054
|
name: "mcp",
|
|
56054
56055
|
versionInfo: {
|
|
56055
|
-
currentVersion: "1.0.
|
|
56056
|
+
currentVersion: "1.0.2"
|
|
56056
56057
|
}
|
|
56057
56058
|
});
|
|
56058
56059
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -56060,5 +56061,5 @@ export {
|
|
|
56060
56061
|
app
|
|
56061
56062
|
};
|
|
56062
56063
|
|
|
56063
|
-
//# debugId=
|
|
56064
|
+
//# debugId=45D4FB66A6C5277164756E2164756E21
|
|
56064
56065
|
//# sourceMappingURL=mcp-server.js.map
|