@compass-labs/api-sdk 0.5.66 → 0.5.67
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/bin/mcp-server.js +18 -42
- package/bin/mcp-server.js.map +8 -8
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/aavereserveoverviewresponse.d.ts +2 -2
- package/dist/commonjs/models/components/aavereserveoverviewresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/aavereserveoverviewresponse.js +2 -2
- package/dist/commonjs/models/components/aavereserveoverviewresponse.js.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts +16 -54
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.js +5 -51
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.js.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts +16 -54
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js +5 -51
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/aavereserveoverviewresponse.d.ts +2 -2
- package/dist/esm/models/components/aavereserveoverviewresponse.d.ts.map +1 -1
- package/dist/esm/models/components/aavereserveoverviewresponse.js +2 -2
- package/dist/esm/models/components/aavereserveoverviewresponse.js.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts +16 -54
- package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyparams.js +4 -46
- package/dist/esm/models/components/uniswapbuyexactlyparams.js.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts +16 -54
- package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyrequest.js +4 -46
- package/dist/esm/models/components/uniswapbuyexactlyrequest.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/aavereserveoverviewresponse.ts +4 -4
- package/src/models/components/uniswapbuyexactlyparams.ts +20 -120
- package/src/models/components/uniswapbuyexactlyrequest.ts +20 -120
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.5.
|
|
34268
|
-
genVersion: "2.
|
|
34269
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34267
|
+
sdkVersion: "0.5.67",
|
|
34268
|
+
genVersion: "2.669.0",
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 0.5.67 2.669.0 0.0.1 @compass-labs/api-sdk"
|
|
34270
34270
|
};
|
|
34271
34271
|
});
|
|
34272
34272
|
|
|
@@ -36618,7 +36618,7 @@ var init_aavereserveoverviewresponse = __esm(() => {
|
|
|
36618
36618
|
AaveReserveOverviewResponse$inboundSchema = objectType({
|
|
36619
36619
|
tvl: numberType(),
|
|
36620
36620
|
total_borrowed: numberType(),
|
|
36621
|
-
utilization_ratio: numberType()
|
|
36621
|
+
utilization_ratio: nullableType(numberType())
|
|
36622
36622
|
}).transform((v2) => {
|
|
36623
36623
|
return remap(v2, {
|
|
36624
36624
|
total_borrowed: "totalBorrowed",
|
|
@@ -36628,7 +36628,7 @@ var init_aavereserveoverviewresponse = __esm(() => {
|
|
|
36628
36628
|
AaveReserveOverviewResponse$outboundSchema = objectType({
|
|
36629
36629
|
tvl: numberType(),
|
|
36630
36630
|
totalBorrowed: numberType(),
|
|
36631
|
-
utilizationRatio: numberType()
|
|
36631
|
+
utilizationRatio: nullableType(numberType())
|
|
36632
36632
|
}).transform((v2) => {
|
|
36633
36633
|
return remap(v2, {
|
|
36634
36634
|
totalBorrowed: "total_borrowed",
|
|
@@ -38910,24 +38910,12 @@ var init_feeenum = __esm(() => {
|
|
|
38910
38910
|
});
|
|
38911
38911
|
|
|
38912
38912
|
// src/models/components/uniswapbuyexactlyparams.ts
|
|
38913
|
-
var
|
|
38913
|
+
var UniswapBuyExactlyParamsAmount$inboundSchema, UniswapBuyExactlyParamsAmount$outboundSchema, UniswapBuyExactlyParamsAmount$, UniswapBuyExactlyParams$inboundSchema, UniswapBuyExactlyParams$outboundSchema, UniswapBuyExactlyParams$;
|
|
38914
38914
|
var init_uniswapbuyexactlyparams = __esm(() => {
|
|
38915
38915
|
init_zod();
|
|
38916
38916
|
init_primitives();
|
|
38917
38917
|
init_feeenum();
|
|
38918
38918
|
init_tokenenum();
|
|
38919
|
-
UniswapBuyExactlyParamsTokenIn$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
38920
|
-
UniswapBuyExactlyParamsTokenIn$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
38921
|
-
((UniswapBuyExactlyParamsTokenIn$) => {
|
|
38922
|
-
UniswapBuyExactlyParamsTokenIn$.inboundSchema = UniswapBuyExactlyParamsTokenIn$inboundSchema;
|
|
38923
|
-
UniswapBuyExactlyParamsTokenIn$.outboundSchema = UniswapBuyExactlyParamsTokenIn$outboundSchema;
|
|
38924
|
-
})(UniswapBuyExactlyParamsTokenIn$ ||= {});
|
|
38925
|
-
UniswapBuyExactlyParamsTokenOut$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
38926
|
-
UniswapBuyExactlyParamsTokenOut$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
38927
|
-
((UniswapBuyExactlyParamsTokenOut$) => {
|
|
38928
|
-
UniswapBuyExactlyParamsTokenOut$.inboundSchema = UniswapBuyExactlyParamsTokenOut$inboundSchema;
|
|
38929
|
-
UniswapBuyExactlyParamsTokenOut$.outboundSchema = UniswapBuyExactlyParamsTokenOut$outboundSchema;
|
|
38930
|
-
})(UniswapBuyExactlyParamsTokenOut$ ||= {});
|
|
38931
38919
|
UniswapBuyExactlyParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
38932
38920
|
UniswapBuyExactlyParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
38933
38921
|
((UniswapBuyExactlyParamsAmount$) => {
|
|
@@ -38936,8 +38924,8 @@ var init_uniswapbuyexactlyparams = __esm(() => {
|
|
|
38936
38924
|
})(UniswapBuyExactlyParamsAmount$ ||= {});
|
|
38937
38925
|
UniswapBuyExactlyParams$inboundSchema = objectType({
|
|
38938
38926
|
action_type: literalType("UNISWAP_BUY_EXACTLY").default("UNISWAP_BUY_EXACTLY"),
|
|
38939
|
-
token_in:
|
|
38940
|
-
token_out:
|
|
38927
|
+
token_in: TokenEnum$inboundSchema,
|
|
38928
|
+
token_out: TokenEnum$inboundSchema,
|
|
38941
38929
|
fee: FeeEnum$inboundSchema,
|
|
38942
38930
|
amount: unionType([numberType(), stringType()]),
|
|
38943
38931
|
max_slippage_percent: numberType(),
|
|
@@ -38953,8 +38941,8 @@ var init_uniswapbuyexactlyparams = __esm(() => {
|
|
|
38953
38941
|
});
|
|
38954
38942
|
UniswapBuyExactlyParams$outboundSchema = objectType({
|
|
38955
38943
|
actionType: literalType("UNISWAP_BUY_EXACTLY").default("UNISWAP_BUY_EXACTLY"),
|
|
38956
|
-
tokenIn:
|
|
38957
|
-
tokenOut:
|
|
38944
|
+
tokenIn: TokenEnum$outboundSchema,
|
|
38945
|
+
tokenOut: TokenEnum$outboundSchema,
|
|
38958
38946
|
fee: FeeEnum$outboundSchema,
|
|
38959
38947
|
amount: unionType([numberType(), stringType()]),
|
|
38960
38948
|
maxSlippagePercent: numberType(),
|
|
@@ -42614,7 +42602,7 @@ var init_txresponse = __esm(() => {
|
|
|
42614
42602
|
});
|
|
42615
42603
|
|
|
42616
42604
|
// src/models/components/uniswapbuyexactlyrequest.ts
|
|
42617
|
-
var UniswapBuyExactlyRequestChain,
|
|
42605
|
+
var UniswapBuyExactlyRequestChain, UniswapBuyExactlyRequestAmount$inboundSchema, UniswapBuyExactlyRequestAmount$outboundSchema, UniswapBuyExactlyRequestAmount$, UniswapBuyExactlyRequestChain$inboundSchema, UniswapBuyExactlyRequestChain$outboundSchema, UniswapBuyExactlyRequestChain$, UniswapBuyExactlyRequest$inboundSchema, UniswapBuyExactlyRequest$outboundSchema, UniswapBuyExactlyRequest$;
|
|
42618
42606
|
var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
42619
42607
|
init_zod();
|
|
42620
42608
|
init_primitives();
|
|
@@ -42625,18 +42613,6 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
|
42625
42613
|
BaseMainnet: "base:mainnet",
|
|
42626
42614
|
EthereumMainnet: "ethereum:mainnet"
|
|
42627
42615
|
};
|
|
42628
|
-
UniswapBuyExactlyRequestTokenIn$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
42629
|
-
UniswapBuyExactlyRequestTokenIn$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
42630
|
-
((UniswapBuyExactlyRequestTokenIn$) => {
|
|
42631
|
-
UniswapBuyExactlyRequestTokenIn$.inboundSchema = UniswapBuyExactlyRequestTokenIn$inboundSchema;
|
|
42632
|
-
UniswapBuyExactlyRequestTokenIn$.outboundSchema = UniswapBuyExactlyRequestTokenIn$outboundSchema;
|
|
42633
|
-
})(UniswapBuyExactlyRequestTokenIn$ ||= {});
|
|
42634
|
-
UniswapBuyExactlyRequestTokenOut$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
42635
|
-
UniswapBuyExactlyRequestTokenOut$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
42636
|
-
((UniswapBuyExactlyRequestTokenOut$) => {
|
|
42637
|
-
UniswapBuyExactlyRequestTokenOut$.inboundSchema = UniswapBuyExactlyRequestTokenOut$inboundSchema;
|
|
42638
|
-
UniswapBuyExactlyRequestTokenOut$.outboundSchema = UniswapBuyExactlyRequestTokenOut$outboundSchema;
|
|
42639
|
-
})(UniswapBuyExactlyRequestTokenOut$ ||= {});
|
|
42640
42616
|
UniswapBuyExactlyRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
42641
42617
|
UniswapBuyExactlyRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
42642
42618
|
((UniswapBuyExactlyRequestAmount$) => {
|
|
@@ -42651,8 +42627,8 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
|
42651
42627
|
})(UniswapBuyExactlyRequestChain$ ||= {});
|
|
42652
42628
|
UniswapBuyExactlyRequest$inboundSchema = objectType({
|
|
42653
42629
|
action_type: literalType("UNISWAP_BUY_EXACTLY").default("UNISWAP_BUY_EXACTLY"),
|
|
42654
|
-
token_in:
|
|
42655
|
-
token_out:
|
|
42630
|
+
token_in: TokenEnum$inboundSchema,
|
|
42631
|
+
token_out: TokenEnum$inboundSchema,
|
|
42656
42632
|
fee: FeeEnum$inboundSchema,
|
|
42657
42633
|
amount: unionType([numberType(), stringType()]),
|
|
42658
42634
|
max_slippage_percent: numberType(),
|
|
@@ -42670,8 +42646,8 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
|
42670
42646
|
});
|
|
42671
42647
|
UniswapBuyExactlyRequest$outboundSchema = objectType({
|
|
42672
42648
|
actionType: literalType("UNISWAP_BUY_EXACTLY").default("UNISWAP_BUY_EXACTLY"),
|
|
42673
|
-
tokenIn:
|
|
42674
|
-
tokenOut:
|
|
42649
|
+
tokenIn: TokenEnum$outboundSchema,
|
|
42650
|
+
tokenOut: TokenEnum$outboundSchema,
|
|
42675
42651
|
fee: FeeEnum$outboundSchema,
|
|
42676
42652
|
amount: unionType([numberType(), stringType()]),
|
|
42677
42653
|
maxSlippagePercent: numberType(),
|
|
@@ -55400,7 +55376,7 @@ it to be traded on DeFi protocols.`,
|
|
|
55400
55376
|
function createMCPServer(deps) {
|
|
55401
55377
|
const server = new McpServer({
|
|
55402
55378
|
name: "CompassApiSDK",
|
|
55403
|
-
version: "0.5.
|
|
55379
|
+
version: "0.5.67"
|
|
55404
55380
|
});
|
|
55405
55381
|
const client = new CompassApiSDKCore({
|
|
55406
55382
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -56774,7 +56750,7 @@ var routes = ln({
|
|
|
56774
56750
|
var app = _e(routes, {
|
|
56775
56751
|
name: "mcp",
|
|
56776
56752
|
versionInfo: {
|
|
56777
|
-
currentVersion: "0.5.
|
|
56753
|
+
currentVersion: "0.5.67"
|
|
56778
56754
|
}
|
|
56779
56755
|
});
|
|
56780
56756
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -56782,5 +56758,5 @@ export {
|
|
|
56782
56758
|
app
|
|
56783
56759
|
};
|
|
56784
56760
|
|
|
56785
|
-
//# debugId=
|
|
56761
|
+
//# debugId=3AFEF9F6CF6B1D6C64756E2164756E21
|
|
56786
56762
|
//# sourceMappingURL=mcp-server.js.map
|