@compass-labs/api-sdk 0.5.42 → 0.5.44
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 +48 -20
- 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/uniswapbuyexactlyparams.d.ts +54 -16
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.js +51 -5
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.js.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts +54 -16
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js +51 -5
- package/dist/commonjs/models/components/uniswapbuyexactlyrequest.js.map +1 -1
- package/dist/commonjs/models/components/uniswappositionssolidityresponse.d.ts +2 -0
- package/dist/commonjs/models/components/uniswappositionssolidityresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswappositionssolidityresponse.js +4 -0
- package/dist/commonjs/models/components/uniswappositionssolidityresponse.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/uniswapbuyexactlyparams.d.ts +54 -16
- package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyparams.js +46 -4
- package/dist/esm/models/components/uniswapbuyexactlyparams.js.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts +54 -16
- package/dist/esm/models/components/uniswapbuyexactlyrequest.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlyrequest.js +46 -4
- package/dist/esm/models/components/uniswapbuyexactlyrequest.js.map +1 -1
- package/dist/esm/models/components/uniswappositionssolidityresponse.d.ts +2 -0
- package/dist/esm/models/components/uniswappositionssolidityresponse.d.ts.map +1 -1
- package/dist/esm/models/components/uniswappositionssolidityresponse.js +4 -0
- package/dist/esm/models/components/uniswappositionssolidityresponse.js.map +1 -1
- package/docs/sdks/uniswapv3/README.md +4 -4
- package/jsr.json +1 -1
- package/package.json +2 -2
- 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/uniswapbuyexactlyparams.ts +120 -20
- package/src/models/components/uniswapbuyexactlyrequest.ts +120 -20
- package/src/models/components/uniswappositionssolidityresponse.ts +6 -0
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.44",
|
|
34268
|
+
genVersion: "2.656.5",
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 0.5.44 2.656.5 0.0.1 @compass-labs/api-sdk"
|
|
34270
34270
|
};
|
|
34271
34271
|
});
|
|
34272
34272
|
|
|
@@ -38618,12 +38618,24 @@ var init_feeenum = __esm(() => {
|
|
|
38618
38618
|
});
|
|
38619
38619
|
|
|
38620
38620
|
// src/models/components/uniswapbuyexactlyparams.ts
|
|
38621
|
-
var UniswapBuyExactlyParamsAmount$inboundSchema, UniswapBuyExactlyParamsAmount$outboundSchema, UniswapBuyExactlyParamsAmount$, UniswapBuyExactlyParams$inboundSchema, UniswapBuyExactlyParams$outboundSchema, UniswapBuyExactlyParams$;
|
|
38621
|
+
var UniswapBuyExactlyParamsTokenIn$inboundSchema, UniswapBuyExactlyParamsTokenIn$outboundSchema, UniswapBuyExactlyParamsTokenIn$, UniswapBuyExactlyParamsTokenOut$inboundSchema, UniswapBuyExactlyParamsTokenOut$outboundSchema, UniswapBuyExactlyParamsTokenOut$, UniswapBuyExactlyParamsAmount$inboundSchema, UniswapBuyExactlyParamsAmount$outboundSchema, UniswapBuyExactlyParamsAmount$, UniswapBuyExactlyParams$inboundSchema, UniswapBuyExactlyParams$outboundSchema, UniswapBuyExactlyParams$;
|
|
38622
38622
|
var init_uniswapbuyexactlyparams = __esm(() => {
|
|
38623
38623
|
init_zod();
|
|
38624
38624
|
init_primitives();
|
|
38625
38625
|
init_feeenum();
|
|
38626
38626
|
init_tokenenum();
|
|
38627
|
+
UniswapBuyExactlyParamsTokenIn$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
38628
|
+
UniswapBuyExactlyParamsTokenIn$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
38629
|
+
((UniswapBuyExactlyParamsTokenIn$) => {
|
|
38630
|
+
UniswapBuyExactlyParamsTokenIn$.inboundSchema = UniswapBuyExactlyParamsTokenIn$inboundSchema;
|
|
38631
|
+
UniswapBuyExactlyParamsTokenIn$.outboundSchema = UniswapBuyExactlyParamsTokenIn$outboundSchema;
|
|
38632
|
+
})(UniswapBuyExactlyParamsTokenIn$ ||= {});
|
|
38633
|
+
UniswapBuyExactlyParamsTokenOut$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
38634
|
+
UniswapBuyExactlyParamsTokenOut$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
38635
|
+
((UniswapBuyExactlyParamsTokenOut$) => {
|
|
38636
|
+
UniswapBuyExactlyParamsTokenOut$.inboundSchema = UniswapBuyExactlyParamsTokenOut$inboundSchema;
|
|
38637
|
+
UniswapBuyExactlyParamsTokenOut$.outboundSchema = UniswapBuyExactlyParamsTokenOut$outboundSchema;
|
|
38638
|
+
})(UniswapBuyExactlyParamsTokenOut$ ||= {});
|
|
38627
38639
|
UniswapBuyExactlyParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
38628
38640
|
UniswapBuyExactlyParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
38629
38641
|
((UniswapBuyExactlyParamsAmount$) => {
|
|
@@ -38632,8 +38644,8 @@ var init_uniswapbuyexactlyparams = __esm(() => {
|
|
|
38632
38644
|
})(UniswapBuyExactlyParamsAmount$ ||= {});
|
|
38633
38645
|
UniswapBuyExactlyParams$inboundSchema = objectType({
|
|
38634
38646
|
action_type: literalType("UNISWAP_BUY_EXACTLY").default("UNISWAP_BUY_EXACTLY"),
|
|
38635
|
-
token_in: TokenEnum$inboundSchema,
|
|
38636
|
-
token_out: TokenEnum$inboundSchema,
|
|
38647
|
+
token_in: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
38648
|
+
token_out: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
38637
38649
|
fee: FeeEnum$inboundSchema,
|
|
38638
38650
|
amount: unionType([numberType(), stringType()]),
|
|
38639
38651
|
max_slippage_percent: numberType(),
|
|
@@ -38649,8 +38661,8 @@ var init_uniswapbuyexactlyparams = __esm(() => {
|
|
|
38649
38661
|
});
|
|
38650
38662
|
UniswapBuyExactlyParams$outboundSchema = objectType({
|
|
38651
38663
|
actionType: literalType("UNISWAP_BUY_EXACTLY").default("UNISWAP_BUY_EXACTLY"),
|
|
38652
|
-
tokenIn: TokenEnum$outboundSchema,
|
|
38653
|
-
tokenOut: TokenEnum$outboundSchema,
|
|
38664
|
+
tokenIn: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
38665
|
+
tokenOut: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
38654
38666
|
fee: FeeEnum$outboundSchema,
|
|
38655
38667
|
amount: unionType([numberType(), stringType()]),
|
|
38656
38668
|
maxSlippagePercent: numberType(),
|
|
@@ -41857,13 +41869,25 @@ var init_txresponse = __esm(() => {
|
|
|
41857
41869
|
});
|
|
41858
41870
|
|
|
41859
41871
|
// src/models/components/uniswapbuyexactlyrequest.ts
|
|
41860
|
-
var UniswapBuyExactlyRequestAmount$inboundSchema, UniswapBuyExactlyRequestAmount$outboundSchema, UniswapBuyExactlyRequestAmount$, UniswapBuyExactlyRequest$inboundSchema, UniswapBuyExactlyRequest$outboundSchema, UniswapBuyExactlyRequest$;
|
|
41872
|
+
var UniswapBuyExactlyRequestTokenIn$inboundSchema, UniswapBuyExactlyRequestTokenIn$outboundSchema, UniswapBuyExactlyRequestTokenIn$, UniswapBuyExactlyRequestTokenOut$inboundSchema, UniswapBuyExactlyRequestTokenOut$outboundSchema, UniswapBuyExactlyRequestTokenOut$, UniswapBuyExactlyRequestAmount$inboundSchema, UniswapBuyExactlyRequestAmount$outboundSchema, UniswapBuyExactlyRequestAmount$, UniswapBuyExactlyRequest$inboundSchema, UniswapBuyExactlyRequest$outboundSchema, UniswapBuyExactlyRequest$;
|
|
41861
41873
|
var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
41862
41874
|
init_zod();
|
|
41863
41875
|
init_primitives();
|
|
41864
41876
|
init_chain();
|
|
41865
41877
|
init_feeenum();
|
|
41866
41878
|
init_tokenenum();
|
|
41879
|
+
UniswapBuyExactlyRequestTokenIn$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
41880
|
+
UniswapBuyExactlyRequestTokenIn$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
41881
|
+
((UniswapBuyExactlyRequestTokenIn$) => {
|
|
41882
|
+
UniswapBuyExactlyRequestTokenIn$.inboundSchema = UniswapBuyExactlyRequestTokenIn$inboundSchema;
|
|
41883
|
+
UniswapBuyExactlyRequestTokenIn$.outboundSchema = UniswapBuyExactlyRequestTokenIn$outboundSchema;
|
|
41884
|
+
})(UniswapBuyExactlyRequestTokenIn$ ||= {});
|
|
41885
|
+
UniswapBuyExactlyRequestTokenOut$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
41886
|
+
UniswapBuyExactlyRequestTokenOut$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
41887
|
+
((UniswapBuyExactlyRequestTokenOut$) => {
|
|
41888
|
+
UniswapBuyExactlyRequestTokenOut$.inboundSchema = UniswapBuyExactlyRequestTokenOut$inboundSchema;
|
|
41889
|
+
UniswapBuyExactlyRequestTokenOut$.outboundSchema = UniswapBuyExactlyRequestTokenOut$outboundSchema;
|
|
41890
|
+
})(UniswapBuyExactlyRequestTokenOut$ ||= {});
|
|
41867
41891
|
UniswapBuyExactlyRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
41868
41892
|
UniswapBuyExactlyRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
41869
41893
|
((UniswapBuyExactlyRequestAmount$) => {
|
|
@@ -41872,8 +41896,8 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
|
41872
41896
|
})(UniswapBuyExactlyRequestAmount$ ||= {});
|
|
41873
41897
|
UniswapBuyExactlyRequest$inboundSchema = objectType({
|
|
41874
41898
|
action_type: literalType("UNISWAP_BUY_EXACTLY").default("UNISWAP_BUY_EXACTLY"),
|
|
41875
|
-
token_in: TokenEnum$inboundSchema,
|
|
41876
|
-
token_out: TokenEnum$inboundSchema,
|
|
41899
|
+
token_in: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
41900
|
+
token_out: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
41877
41901
|
fee: FeeEnum$inboundSchema,
|
|
41878
41902
|
amount: unionType([numberType(), stringType()]),
|
|
41879
41903
|
max_slippage_percent: numberType(),
|
|
@@ -41891,8 +41915,8 @@ var init_uniswapbuyexactlyrequest = __esm(() => {
|
|
|
41891
41915
|
});
|
|
41892
41916
|
UniswapBuyExactlyRequest$outboundSchema = objectType({
|
|
41893
41917
|
actionType: literalType("UNISWAP_BUY_EXACTLY").default("UNISWAP_BUY_EXACTLY"),
|
|
41894
|
-
tokenIn: TokenEnum$outboundSchema,
|
|
41895
|
-
tokenOut: TokenEnum$outboundSchema,
|
|
41918
|
+
tokenIn: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
41919
|
+
tokenOut: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
41896
41920
|
fee: FeeEnum$outboundSchema,
|
|
41897
41921
|
amount: unionType([numberType(), stringType()]),
|
|
41898
41922
|
maxSlippagePercent: numberType(),
|
|
@@ -42059,7 +42083,8 @@ var init_uniswappositionssolidityresponse = __esm(() => {
|
|
|
42059
42083
|
fee_growth_inside0_last_x128: numberType().int(),
|
|
42060
42084
|
fee_growth_inside1_last_x128: numberType().int(),
|
|
42061
42085
|
tokens_owed0: numberType().int(),
|
|
42062
|
-
tokens_owed1: numberType().int()
|
|
42086
|
+
tokens_owed1: numberType().int(),
|
|
42087
|
+
lp_token_address: nullableType(stringType()).optional()
|
|
42063
42088
|
}).transform((v2) => {
|
|
42064
42089
|
return remap(v2, {
|
|
42065
42090
|
tick_lower: "tickLower",
|
|
@@ -42067,7 +42092,8 @@ var init_uniswappositionssolidityresponse = __esm(() => {
|
|
|
42067
42092
|
fee_growth_inside0_last_x128: "feeGrowthInside0LastX128",
|
|
42068
42093
|
fee_growth_inside1_last_x128: "feeGrowthInside1LastX128",
|
|
42069
42094
|
tokens_owed0: "tokensOwed0",
|
|
42070
|
-
tokens_owed1: "tokensOwed1"
|
|
42095
|
+
tokens_owed1: "tokensOwed1",
|
|
42096
|
+
lp_token_address: "lpTokenAddress"
|
|
42071
42097
|
});
|
|
42072
42098
|
});
|
|
42073
42099
|
UniswapPositionsSolidityResponse$outboundSchema = objectType({
|
|
@@ -42082,7 +42108,8 @@ var init_uniswappositionssolidityresponse = __esm(() => {
|
|
|
42082
42108
|
feeGrowthInside0LastX128: numberType().int(),
|
|
42083
42109
|
feeGrowthInside1LastX128: numberType().int(),
|
|
42084
42110
|
tokensOwed0: numberType().int(),
|
|
42085
|
-
tokensOwed1: numberType().int()
|
|
42111
|
+
tokensOwed1: numberType().int(),
|
|
42112
|
+
lpTokenAddress: nullableType(stringType()).optional()
|
|
42086
42113
|
}).transform((v2) => {
|
|
42087
42114
|
return remap(v2, {
|
|
42088
42115
|
tickLower: "tick_lower",
|
|
@@ -42090,7 +42117,8 @@ var init_uniswappositionssolidityresponse = __esm(() => {
|
|
|
42090
42117
|
feeGrowthInside0LastX128: "fee_growth_inside0_last_x128",
|
|
42091
42118
|
feeGrowthInside1LastX128: "fee_growth_inside1_last_x128",
|
|
42092
42119
|
tokensOwed0: "tokens_owed0",
|
|
42093
|
-
tokensOwed1: "tokens_owed1"
|
|
42120
|
+
tokensOwed1: "tokens_owed1",
|
|
42121
|
+
lpTokenAddress: "lp_token_address"
|
|
42094
42122
|
});
|
|
42095
42123
|
});
|
|
42096
42124
|
((UniswapPositionsSolidityResponse$) => {
|
|
@@ -53699,7 +53727,7 @@ it to be traded on DeFi protocols.`,
|
|
|
53699
53727
|
function createMCPServer(deps) {
|
|
53700
53728
|
const server = new McpServer({
|
|
53701
53729
|
name: "CompassApiSDK",
|
|
53702
|
-
version: "0.5.
|
|
53730
|
+
version: "0.5.44"
|
|
53703
53731
|
});
|
|
53704
53732
|
const client = new CompassApiSDKCore({
|
|
53705
53733
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -55069,7 +55097,7 @@ var routes = ln({
|
|
|
55069
55097
|
var app = _e(routes, {
|
|
55070
55098
|
name: "mcp",
|
|
55071
55099
|
versionInfo: {
|
|
55072
|
-
currentVersion: "0.5.
|
|
55100
|
+
currentVersion: "0.5.44"
|
|
55073
55101
|
}
|
|
55074
55102
|
});
|
|
55075
55103
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -55077,5 +55105,5 @@ export {
|
|
|
55077
55105
|
app
|
|
55078
55106
|
};
|
|
55079
55107
|
|
|
55080
|
-
//# debugId=
|
|
55108
|
+
//# debugId=1E4ED2CEEEFDA46164756E2164756E21
|
|
55081
55109
|
//# sourceMappingURL=mcp-server.js.map
|