@compass-labs/api-sdk 0.5.65 → 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/README.md +0 -2
- package/bin/mcp-server.js +25 -210
- package/bin/mcp-server.js.map +11 -15
- 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.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -3
- package/dist/commonjs/mcp-server/server.js.map +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/index.d.ts +0 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -1
- package/dist/commonjs/models/components/index.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/commonjs/models/operations/index.d.ts +0 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/universal.d.ts +0 -11
- package/dist/commonjs/sdk/universal.d.ts.map +1 -1
- package/dist/commonjs/sdk/universal.js +0 -14
- package/dist/commonjs/sdk/universal.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.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +1 -3
- package/dist/esm/mcp-server/server.js.map +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/index.d.ts +0 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -1
- package/dist/esm/models/components/index.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/dist/esm/models/operations/index.d.ts +0 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/universal.d.ts +0 -11
- package/dist/esm/sdk/universal.d.ts.map +1 -1
- package/dist/esm/sdk/universal.js +0 -14
- package/dist/esm/sdk/universal.js.map +1 -1
- package/docs/sdks/universal/README.md +0 -75
- 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 -3
- package/src/models/components/aavereserveoverviewresponse.ts +4 -4
- package/src/models/components/index.ts +0 -1
- package/src/models/components/uniswapbuyexactlyparams.ts +20 -120
- package/src/models/components/uniswapbuyexactlyrequest.ts +20 -120
- package/src/models/operations/index.ts +0 -1
- package/src/sdk/universal.ts +0 -22
- package/dist/commonjs/funcs/universalVisualizePortfolio.d.ts +0 -23
- package/dist/commonjs/funcs/universalVisualizePortfolio.d.ts.map +0 -1
- package/dist/commonjs/funcs/universalVisualizePortfolio.js +0 -127
- package/dist/commonjs/funcs/universalVisualizePortfolio.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/universalVisualizePortfolio.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/universalVisualizePortfolio.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/universalVisualizePortfolio.js +0 -68
- package/dist/commonjs/mcp-server/tools/universalVisualizePortfolio.js.map +0 -1
- package/dist/commonjs/models/components/image.d.ts +0 -32
- package/dist/commonjs/models/components/image.d.ts.map +0 -1
- package/dist/commonjs/models/components/image.js +0 -70
- package/dist/commonjs/models/components/image.js.map +0 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts +0 -63
- package/dist/commonjs/models/operations/genericvisualizeportfolio.d.ts.map +0 -1
- package/dist/commonjs/models/operations/genericvisualizeportfolio.js +0 -91
- package/dist/commonjs/models/operations/genericvisualizeportfolio.js.map +0 -1
- package/dist/esm/funcs/universalVisualizePortfolio.d.ts +0 -23
- package/dist/esm/funcs/universalVisualizePortfolio.d.ts.map +0 -1
- package/dist/esm/funcs/universalVisualizePortfolio.js +0 -91
- package/dist/esm/funcs/universalVisualizePortfolio.js.map +0 -1
- package/dist/esm/mcp-server/tools/universalVisualizePortfolio.d.ts +0 -8
- package/dist/esm/mcp-server/tools/universalVisualizePortfolio.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/universalVisualizePortfolio.js +0 -32
- package/dist/esm/mcp-server/tools/universalVisualizePortfolio.js.map +0 -1
- package/dist/esm/models/components/image.d.ts +0 -32
- package/dist/esm/models/components/image.d.ts.map +0 -1
- package/dist/esm/models/components/image.js +0 -32
- package/dist/esm/models/components/image.js.map +0 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts +0 -63
- package/dist/esm/models/operations/genericvisualizeportfolio.d.ts.map +0 -1
- package/dist/esm/models/operations/genericvisualizeportfolio.js +0 -53
- package/dist/esm/models/operations/genericvisualizeportfolio.js.map +0 -1
- package/src/funcs/universalVisualizePortfolio.ts +0 -180
- package/src/mcp-server/tools/universalVisualizePortfolio.ts +0 -41
- package/src/models/components/image.ts +0 -62
- package/src/models/operations/genericvisualizeportfolio.ts +0 -110
package/README.md
CHANGED
|
@@ -322,7 +322,6 @@ run();
|
|
|
322
322
|
### [universal](docs/sdks/universal/README.md)
|
|
323
323
|
|
|
324
324
|
* [portfolio](docs/sdks/universal/README.md#portfolio) - List User Portfolio
|
|
325
|
-
* [visualizePortfolio](docs/sdks/universal/README.md#visualizeportfolio) - Visualize User Portfolio
|
|
326
325
|
* [supportedTokens](docs/sdks/universal/README.md#supportedtokens) - List Supported Tokens
|
|
327
326
|
* [supportedChains](docs/sdks/universal/README.md#supportedchains) - List Supported Chains
|
|
328
327
|
* [allowance](docs/sdks/universal/README.md#allowance) - Get Allowance
|
|
@@ -427,7 +426,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
427
426
|
- [`universalSupportedChains`](docs/sdks/universal/README.md#supportedchains) - List Supported Chains
|
|
428
427
|
- [`universalSupportedTokens`](docs/sdks/universal/README.md#supportedtokens) - List Supported Tokens
|
|
429
428
|
- [`universalUnwrapWeth`](docs/sdks/universal/README.md#unwrapweth) - Unwrap WETH
|
|
430
|
-
- [`universalVisualizePortfolio`](docs/sdks/universal/README.md#visualizeportfolio) - Visualize User Portfolio
|
|
431
429
|
- [`universalWrapEth`](docs/sdks/universal/README.md#wrapeth) - Wrap ETH
|
|
432
430
|
|
|
433
431
|
</details>
|
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(),
|
|
@@ -40451,22 +40439,6 @@ var init_erc20data = __esm(() => {
|
|
|
40451
40439
|
})(Erc20Data$ ||= {});
|
|
40452
40440
|
});
|
|
40453
40441
|
|
|
40454
|
-
// src/models/components/image.ts
|
|
40455
|
-
var Image$inboundSchema, Image$outboundSchema, Image$;
|
|
40456
|
-
var init_image = __esm(() => {
|
|
40457
|
-
init_zod();
|
|
40458
|
-
Image$inboundSchema = objectType({
|
|
40459
|
-
image: stringType()
|
|
40460
|
-
});
|
|
40461
|
-
Image$outboundSchema = objectType({
|
|
40462
|
-
image: stringType()
|
|
40463
|
-
});
|
|
40464
|
-
((Image$) => {
|
|
40465
|
-
Image$.inboundSchema = Image$inboundSchema;
|
|
40466
|
-
Image$.outboundSchema = Image$outboundSchema;
|
|
40467
|
-
})(Image$ ||= {});
|
|
40468
|
-
});
|
|
40469
|
-
|
|
40470
40442
|
// src/models/components/lpbalance.ts
|
|
40471
40443
|
var LpBalance$inboundSchema, LpBalance$outboundSchema, LpBalance$;
|
|
40472
40444
|
var init_lpbalance = __esm(() => {
|
|
@@ -42630,7 +42602,7 @@ var init_txresponse = __esm(() => {
|
|
|
42630
42602
|
});
|
|
42631
42603
|
|
|
42632
42604
|
// src/models/components/uniswapbuyexactlyrequest.ts
|
|
42633
|
-
var UniswapBuyExactlyRequestChain,
|
|
42605
|
+
var UniswapBuyExactlyRequestChain, UniswapBuyExactlyRequestAmount$inboundSchema, UniswapBuyExactlyRequestAmount$outboundSchema, UniswapBuyExactlyRequestAmount$, UniswapBuyExactlyRequestChain$inboundSchema, UniswapBuyExactlyRequestChain$outboundSchema, UniswapBuyExactlyRequestChain$, UniswapBuyExactlyRequest$inboundSchema, UniswapBuyExactlyRequest$outboundSchema, UniswapBuyExactlyRequest$;
|
|
42634
42606
|
var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
42635
42607
|
init_zod();
|
|
42636
42608
|
init_primitives();
|
|
@@ -42641,18 +42613,6 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
|
42641
42613
|
BaseMainnet: "base:mainnet",
|
|
42642
42614
|
EthereumMainnet: "ethereum:mainnet"
|
|
42643
42615
|
};
|
|
42644
|
-
UniswapBuyExactlyRequestTokenIn$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
42645
|
-
UniswapBuyExactlyRequestTokenIn$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
42646
|
-
((UniswapBuyExactlyRequestTokenIn$) => {
|
|
42647
|
-
UniswapBuyExactlyRequestTokenIn$.inboundSchema = UniswapBuyExactlyRequestTokenIn$inboundSchema;
|
|
42648
|
-
UniswapBuyExactlyRequestTokenIn$.outboundSchema = UniswapBuyExactlyRequestTokenIn$outboundSchema;
|
|
42649
|
-
})(UniswapBuyExactlyRequestTokenIn$ ||= {});
|
|
42650
|
-
UniswapBuyExactlyRequestTokenOut$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
42651
|
-
UniswapBuyExactlyRequestTokenOut$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
42652
|
-
((UniswapBuyExactlyRequestTokenOut$) => {
|
|
42653
|
-
UniswapBuyExactlyRequestTokenOut$.inboundSchema = UniswapBuyExactlyRequestTokenOut$inboundSchema;
|
|
42654
|
-
UniswapBuyExactlyRequestTokenOut$.outboundSchema = UniswapBuyExactlyRequestTokenOut$outboundSchema;
|
|
42655
|
-
})(UniswapBuyExactlyRequestTokenOut$ ||= {});
|
|
42656
42616
|
UniswapBuyExactlyRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
42657
42617
|
UniswapBuyExactlyRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
42658
42618
|
((UniswapBuyExactlyRequestAmount$) => {
|
|
@@ -42667,8 +42627,8 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
|
42667
42627
|
})(UniswapBuyExactlyRequestChain$ ||= {});
|
|
42668
42628
|
UniswapBuyExactlyRequest$inboundSchema = objectType({
|
|
42669
42629
|
action_type: literalType("UNISWAP_BUY_EXACTLY").default("UNISWAP_BUY_EXACTLY"),
|
|
42670
|
-
token_in:
|
|
42671
|
-
token_out:
|
|
42630
|
+
token_in: TokenEnum$inboundSchema,
|
|
42631
|
+
token_out: TokenEnum$inboundSchema,
|
|
42672
42632
|
fee: FeeEnum$inboundSchema,
|
|
42673
42633
|
amount: unionType([numberType(), stringType()]),
|
|
42674
42634
|
max_slippage_percent: numberType(),
|
|
@@ -42686,8 +42646,8 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
|
42686
42646
|
});
|
|
42687
42647
|
UniswapBuyExactlyRequest$outboundSchema = objectType({
|
|
42688
42648
|
actionType: literalType("UNISWAP_BUY_EXACTLY").default("UNISWAP_BUY_EXACTLY"),
|
|
42689
|
-
tokenIn:
|
|
42690
|
-
tokenOut:
|
|
42649
|
+
tokenIn: TokenEnum$outboundSchema,
|
|
42650
|
+
tokenOut: TokenEnum$outboundSchema,
|
|
42691
42651
|
fee: FeeEnum$outboundSchema,
|
|
42692
42652
|
amount: unionType([numberType(), stringType()]),
|
|
42693
42653
|
maxSlippagePercent: numberType(),
|
|
@@ -43544,7 +43504,6 @@ var init_components = __esm(() => {
|
|
|
43544
43504
|
init_ensnameinforesponse();
|
|
43545
43505
|
init_erc20data();
|
|
43546
43506
|
init_feeenum();
|
|
43547
|
-
init_image();
|
|
43548
43507
|
init_interestratemode();
|
|
43549
43508
|
init_liquidationcall();
|
|
43550
43509
|
init_lpbalance();
|
|
@@ -44927,35 +44886,6 @@ var init_genericsupportedtokens = __esm(() => {
|
|
|
44927
44886
|
})(GenericSupportedTokensRequest$ ||= {});
|
|
44928
44887
|
});
|
|
44929
44888
|
|
|
44930
|
-
// src/models/operations/genericvisualizeportfolio.ts
|
|
44931
|
-
var GenericVisualizePortfolioChain, GenericVisualizePortfolioChain$inboundSchema, GenericVisualizePortfolioChain$outboundSchema, GenericVisualizePortfolioChain$, GenericVisualizePortfolioRequest$inboundSchema, GenericVisualizePortfolioRequest$outboundSchema, GenericVisualizePortfolioRequest$;
|
|
44932
|
-
var init_genericvisualizeportfolio = __esm(() => {
|
|
44933
|
-
init_zod();
|
|
44934
|
-
GenericVisualizePortfolioChain = {
|
|
44935
|
-
ArbitrumMainnet: "arbitrum:mainnet",
|
|
44936
|
-
BaseMainnet: "base:mainnet",
|
|
44937
|
-
EthereumMainnet: "ethereum:mainnet"
|
|
44938
|
-
};
|
|
44939
|
-
GenericVisualizePortfolioChain$inboundSchema = nativeEnumType(GenericVisualizePortfolioChain);
|
|
44940
|
-
GenericVisualizePortfolioChain$outboundSchema = GenericVisualizePortfolioChain$inboundSchema;
|
|
44941
|
-
((GenericVisualizePortfolioChain$) => {
|
|
44942
|
-
GenericVisualizePortfolioChain$.inboundSchema = GenericVisualizePortfolioChain$inboundSchema;
|
|
44943
|
-
GenericVisualizePortfolioChain$.outboundSchema = GenericVisualizePortfolioChain$outboundSchema;
|
|
44944
|
-
})(GenericVisualizePortfolioChain$ ||= {});
|
|
44945
|
-
GenericVisualizePortfolioRequest$inboundSchema = objectType({
|
|
44946
|
-
chain: GenericVisualizePortfolioChain$inboundSchema.default("arbitrum:mainnet"),
|
|
44947
|
-
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
44948
|
-
});
|
|
44949
|
-
GenericVisualizePortfolioRequest$outboundSchema = objectType({
|
|
44950
|
-
chain: GenericVisualizePortfolioChain$outboundSchema.default("arbitrum:mainnet"),
|
|
44951
|
-
user: stringType().default("0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
|
|
44952
|
-
});
|
|
44953
|
-
((GenericVisualizePortfolioRequest$) => {
|
|
44954
|
-
GenericVisualizePortfolioRequest$.inboundSchema = GenericVisualizePortfolioRequest$inboundSchema;
|
|
44955
|
-
GenericVisualizePortfolioRequest$.outboundSchema = GenericVisualizePortfolioRequest$outboundSchema;
|
|
44956
|
-
})(GenericVisualizePortfolioRequest$ ||= {});
|
|
44957
|
-
});
|
|
44958
|
-
|
|
44959
44889
|
// src/models/operations/morphomarket.ts
|
|
44960
44890
|
var MorphoMarketChain, MorphoMarketChain$inboundSchema, MorphoMarketChain$outboundSchema, MorphoMarketChain$, MorphoMarketRequest$inboundSchema, MorphoMarketRequest$outboundSchema, MorphoMarketRequest$;
|
|
44961
44891
|
var init_morphomarket2 = __esm(() => {
|
|
@@ -46372,7 +46302,6 @@ var init_operations = __esm(() => {
|
|
|
46372
46302
|
init_genericportfolio();
|
|
46373
46303
|
init_genericsupportedchains();
|
|
46374
46304
|
init_genericsupportedtokens();
|
|
46375
|
-
init_genericvisualizeportfolio();
|
|
46376
46305
|
init_morphomarket2();
|
|
46377
46306
|
init_morphomarketposition();
|
|
46378
46307
|
init_morphomarkets();
|
|
@@ -55339,123 +55268,11 @@ can be used for gas and other native purposes.`,
|
|
|
55339
55268
|
};
|
|
55340
55269
|
});
|
|
55341
55270
|
|
|
55342
|
-
// src/funcs/universalVisualizePortfolio.ts
|
|
55343
|
-
function universalVisualizePortfolio(client, request, options) {
|
|
55344
|
-
return new APIPromise($do79(client, request, options));
|
|
55345
|
-
}
|
|
55346
|
-
async function $do79(client, request, options) {
|
|
55347
|
-
const parsed = safeParse(request, (value) => GenericVisualizePortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55348
|
-
if (!parsed.ok) {
|
|
55349
|
-
return [parsed, { status: "invalid" }];
|
|
55350
|
-
}
|
|
55351
|
-
const payload = parsed.value;
|
|
55352
|
-
const body = null;
|
|
55353
|
-
const path = pathToFunc("/v0/generic/visualize_portfolio/get")();
|
|
55354
|
-
const query = encodeFormQuery({
|
|
55355
|
-
chain: payload.chain,
|
|
55356
|
-
user: payload.user
|
|
55357
|
-
});
|
|
55358
|
-
const headers = new Headers(compactMap({
|
|
55359
|
-
Accept: "application/json"
|
|
55360
|
-
}));
|
|
55361
|
-
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
55362
|
-
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
55363
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
55364
|
-
const context = {
|
|
55365
|
-
options: client._options,
|
|
55366
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
55367
|
-
operationID: "generic_visualize_portfolio",
|
|
55368
|
-
oAuth2Scopes: [],
|
|
55369
|
-
resolvedSecurity: requestSecurity,
|
|
55370
|
-
securitySource: client._options.apiKeyAuth,
|
|
55371
|
-
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
55372
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
55373
|
-
};
|
|
55374
|
-
const requestRes = client._createRequest(context, {
|
|
55375
|
-
security: requestSecurity,
|
|
55376
|
-
method: "GET",
|
|
55377
|
-
baseURL: options?.serverURL,
|
|
55378
|
-
path,
|
|
55379
|
-
headers,
|
|
55380
|
-
query,
|
|
55381
|
-
body,
|
|
55382
|
-
userAgent: client._options.userAgent,
|
|
55383
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
55384
|
-
}, options);
|
|
55385
|
-
if (!requestRes.ok) {
|
|
55386
|
-
return [requestRes, { status: "invalid" }];
|
|
55387
|
-
}
|
|
55388
|
-
const req = requestRes.value;
|
|
55389
|
-
const doResult = await client._do(req, {
|
|
55390
|
-
context,
|
|
55391
|
-
errorCodes: ["422", "4XX", "5XX"],
|
|
55392
|
-
retryConfig: context.retryConfig,
|
|
55393
|
-
retryCodes: context.retryCodes
|
|
55394
|
-
});
|
|
55395
|
-
if (!doResult.ok) {
|
|
55396
|
-
return [doResult, { status: "request-error", request: req }];
|
|
55397
|
-
}
|
|
55398
|
-
const response = doResult.value;
|
|
55399
|
-
const responseFields = {
|
|
55400
|
-
HttpMeta: { Response: response, Request: req }
|
|
55401
|
-
};
|
|
55402
|
-
const [result] = await match(json(200, Image$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
55403
|
-
if (!result.ok) {
|
|
55404
|
-
return [result, { status: "complete", request: req, response }];
|
|
55405
|
-
}
|
|
55406
|
-
return [result, { status: "complete", request: req, response }];
|
|
55407
|
-
}
|
|
55408
|
-
var init_universalVisualizePortfolio = __esm(() => {
|
|
55409
|
-
init_encodings();
|
|
55410
|
-
init_matchers();
|
|
55411
|
-
init_primitives();
|
|
55412
|
-
init_schemas();
|
|
55413
|
-
init_security();
|
|
55414
|
-
init_url();
|
|
55415
|
-
init_components();
|
|
55416
|
-
init_errors2();
|
|
55417
|
-
init_operations();
|
|
55418
|
-
init_async();
|
|
55419
|
-
});
|
|
55420
|
-
|
|
55421
|
-
// src/mcp-server/tools/universalVisualizePortfolio.ts
|
|
55422
|
-
var args79, tool$universalVisualizePortfolio;
|
|
55423
|
-
var init_universalVisualizePortfolio2 = __esm(() => {
|
|
55424
|
-
init_universalVisualizePortfolio();
|
|
55425
|
-
init_operations();
|
|
55426
|
-
init_tools();
|
|
55427
|
-
args79 = {
|
|
55428
|
-
request: GenericVisualizePortfolioRequest$inboundSchema
|
|
55429
|
-
};
|
|
55430
|
-
tool$universalVisualizePortfolio = {
|
|
55431
|
-
name: "universal-visualize-portfolio",
|
|
55432
|
-
description: `Visualize User Portfolio
|
|
55433
|
-
|
|
55434
|
-
Generate a visual representation of the token portfolio for a wallet address.
|
|
55435
|
-
|
|
55436
|
-
The response is an SVG image of a pie chart depicting the relative distribution of
|
|
55437
|
-
tokens held, colored and labeled with token symbols, percentages and token values in
|
|
55438
|
-
USD.`,
|
|
55439
|
-
args: args79,
|
|
55440
|
-
tool: async (client, args80, ctx) => {
|
|
55441
|
-
const [result, apiCall] = await universalVisualizePortfolio(client, args80.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55442
|
-
if (!result.ok) {
|
|
55443
|
-
return {
|
|
55444
|
-
content: [{ type: "text", text: result.error.message }],
|
|
55445
|
-
isError: true
|
|
55446
|
-
};
|
|
55447
|
-
}
|
|
55448
|
-
const value = result.value;
|
|
55449
|
-
return formatResult(value, apiCall);
|
|
55450
|
-
}
|
|
55451
|
-
};
|
|
55452
|
-
});
|
|
55453
|
-
|
|
55454
55271
|
// src/funcs/universalWrapEth.ts
|
|
55455
55272
|
function universalWrapEth(client, request, options) {
|
|
55456
|
-
return new APIPromise($
|
|
55273
|
+
return new APIPromise($do79(client, request, options));
|
|
55457
55274
|
}
|
|
55458
|
-
async function $
|
|
55275
|
+
async function $do79(client, request, options) {
|
|
55459
55276
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55460
55277
|
if (!parsed.ok) {
|
|
55461
55278
|
return [parsed, { status: "invalid" }];
|
|
@@ -55526,12 +55343,12 @@ var init_universalWrapEth = __esm(() => {
|
|
|
55526
55343
|
});
|
|
55527
55344
|
|
|
55528
55345
|
// src/mcp-server/tools/universalWrapEth.ts
|
|
55529
|
-
var
|
|
55346
|
+
var args79, tool$universalWrapEth;
|
|
55530
55347
|
var init_universalWrapEth2 = __esm(() => {
|
|
55531
55348
|
init_universalWrapEth();
|
|
55532
55349
|
init_components();
|
|
55533
55350
|
init_tools();
|
|
55534
|
-
|
|
55351
|
+
args79 = {
|
|
55535
55352
|
request: WrapEthRequest$inboundSchema
|
|
55536
55353
|
};
|
|
55537
55354
|
tool$universalWrapEth = {
|
|
@@ -55540,9 +55357,9 @@ var init_universalWrapEth2 = __esm(() => {
|
|
|
55540
55357
|
|
|
55541
55358
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
55542
55359
|
it to be traded on DeFi protocols.`,
|
|
55543
|
-
args:
|
|
55544
|
-
tool: async (client,
|
|
55545
|
-
const [result, apiCall] = await universalWrapEth(client,
|
|
55360
|
+
args: args79,
|
|
55361
|
+
tool: async (client, args80, ctx) => {
|
|
55362
|
+
const [result, apiCall] = await universalWrapEth(client, args80.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55546
55363
|
if (!result.ok) {
|
|
55547
55364
|
return {
|
|
55548
55365
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55559,7 +55376,7 @@ it to be traded on DeFi protocols.`,
|
|
|
55559
55376
|
function createMCPServer(deps) {
|
|
55560
55377
|
const server = new McpServer({
|
|
55561
55378
|
name: "CompassApiSDK",
|
|
55562
|
-
version: "0.5.
|
|
55379
|
+
version: "0.5.67"
|
|
55563
55380
|
});
|
|
55564
55381
|
const client = new CompassApiSDKCore({
|
|
55565
55382
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -55626,7 +55443,6 @@ function createMCPServer(deps) {
|
|
|
55626
55443
|
tool(tool$uniswapV3LiquidityProvisionIncrease);
|
|
55627
55444
|
tool(tool$uniswapV3LiquidityProvisionWithdraw);
|
|
55628
55445
|
tool(tool$universalPortfolio);
|
|
55629
|
-
tool(tool$universalVisualizePortfolio);
|
|
55630
55446
|
tool(tool$universalSupportedTokens);
|
|
55631
55447
|
tool(tool$universalSupportedChains);
|
|
55632
55448
|
tool(tool$universalAllowance);
|
|
@@ -55738,7 +55554,6 @@ var init_server2 = __esm(() => {
|
|
|
55738
55554
|
init_universalSupportedChains2();
|
|
55739
55555
|
init_universalSupportedTokens2();
|
|
55740
55556
|
init_universalUnwrapWeth2();
|
|
55741
|
-
init_universalVisualizePortfolio2();
|
|
55742
55557
|
init_universalWrapEth2();
|
|
55743
55558
|
});
|
|
55744
55559
|
|
|
@@ -56935,7 +56750,7 @@ var routes = ln({
|
|
|
56935
56750
|
var app = _e(routes, {
|
|
56936
56751
|
name: "mcp",
|
|
56937
56752
|
versionInfo: {
|
|
56938
|
-
currentVersion: "0.5.
|
|
56753
|
+
currentVersion: "0.5.67"
|
|
56939
56754
|
}
|
|
56940
56755
|
});
|
|
56941
56756
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -56943,5 +56758,5 @@ export {
|
|
|
56943
56758
|
app
|
|
56944
56759
|
};
|
|
56945
56760
|
|
|
56946
|
-
//# debugId=
|
|
56761
|
+
//# debugId=3AFEF9F6CF6B1D6C64756E2164756E21
|
|
56947
56762
|
//# sourceMappingURL=mcp-server.js.map
|