@compass-labs/api-sdk 1.0.9 → 1.0.11
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 +58 -17
- package/bin/mcp-server.js.map +10 -9
- package/dist/commonjs/funcs/swapSwapOdos.d.ts +1 -1
- package/dist/commonjs/funcs/swapSwapOdos.d.ts.map +1 -1
- package/dist/commonjs/funcs/swapSwapOdos.js +1 -1
- package/dist/commonjs/funcs/swapSwapOdos.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.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/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/odostransactionresponse.d.ts +63 -0
- package/dist/commonjs/models/components/odostransactionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/odostransactionresponse.js +117 -0
- package/dist/commonjs/models/components/odostransactionresponse.js.map +1 -0
- package/dist/commonjs/models/operations/v1tokenprice.d.ts +2 -27
- package/dist/commonjs/models/operations/v1tokenprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1tokenprice.js +3 -27
- package/dist/commonjs/models/operations/v1tokenprice.js.map +1 -1
- package/dist/commonjs/sdk/swap.d.ts +1 -1
- package/dist/commonjs/sdk/swap.d.ts.map +1 -1
- package/dist/esm/funcs/swapSwapOdos.d.ts +1 -1
- package/dist/esm/funcs/swapSwapOdos.d.ts.map +1 -1
- package/dist/esm/funcs/swapSwapOdos.js +1 -1
- package/dist/esm/funcs/swapSwapOdos.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.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/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/odostransactionresponse.d.ts +63 -0
- package/dist/esm/models/components/odostransactionresponse.d.ts.map +1 -0
- package/dist/esm/models/components/odostransactionresponse.js +77 -0
- package/dist/esm/models/components/odostransactionresponse.js.map +1 -0
- package/dist/esm/models/operations/v1tokenprice.d.ts +2 -27
- package/dist/esm/models/operations/v1tokenprice.d.ts.map +1 -1
- package/dist/esm/models/operations/v1tokenprice.js +2 -24
- package/dist/esm/models/operations/v1tokenprice.js.map +1 -1
- package/dist/esm/sdk/swap.d.ts +1 -1
- package/dist/esm/sdk/swap.d.ts.map +1 -1
- package/docs/sdks/swap/README.md +1 -1
- package/examples/aaveV3AaveAaveSupportedTokens.example.ts +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/swapSwapOdos.ts +4 -4
- 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/index.ts +1 -0
- package/src/models/components/odostransactionresponse.ts +170 -0
- package/src/models/operations/v1tokenprice.ts +4 -58
- package/src/sdk/swap.ts +1 -1
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.
|
|
34268
|
-
genVersion: "2.
|
|
34269
|
-
userAgent: "speakeasy-sdk/typescript 1.0.
|
|
34267
|
+
sdkVersion: "1.0.11",
|
|
34268
|
+
genVersion: "2.681.1",
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 1.0.11 2.681.1 0.0.1 @compass-labs/api-sdk"
|
|
34270
34270
|
};
|
|
34271
34271
|
});
|
|
34272
34272
|
|
|
@@ -41622,6 +41622,53 @@ var init_odosswaprequest = __esm(() => {
|
|
|
41622
41622
|
})(OdosSwapRequest$ ||= {});
|
|
41623
41623
|
});
|
|
41624
41624
|
|
|
41625
|
+
// src/models/components/odostransactionresponse.ts
|
|
41626
|
+
var OdosTransactionResponseTransaction$inboundSchema, OdosTransactionResponseTransaction$outboundSchema, OdosTransactionResponseTransaction$, OdosTransactionResponse$inboundSchema, OdosTransactionResponse$outboundSchema, OdosTransactionResponse$;
|
|
41627
|
+
var init_odostransactionresponse = __esm(() => {
|
|
41628
|
+
init_zod();
|
|
41629
|
+
init_primitives();
|
|
41630
|
+
init_unsignedtransaction();
|
|
41631
|
+
init_useroperationresponse();
|
|
41632
|
+
OdosTransactionResponseTransaction$inboundSchema = unionType([
|
|
41633
|
+
UnsignedTransaction$inboundSchema,
|
|
41634
|
+
UserOperationResponse$inboundSchema
|
|
41635
|
+
]);
|
|
41636
|
+
OdosTransactionResponseTransaction$outboundSchema = unionType([
|
|
41637
|
+
UnsignedTransaction$outboundSchema,
|
|
41638
|
+
UserOperationResponse$outboundSchema
|
|
41639
|
+
]);
|
|
41640
|
+
((OdosTransactionResponseTransaction$) => {
|
|
41641
|
+
OdosTransactionResponseTransaction$.inboundSchema = OdosTransactionResponseTransaction$inboundSchema;
|
|
41642
|
+
OdosTransactionResponseTransaction$.outboundSchema = OdosTransactionResponseTransaction$outboundSchema;
|
|
41643
|
+
})(OdosTransactionResponseTransaction$ ||= {});
|
|
41644
|
+
OdosTransactionResponse$inboundSchema = objectType({
|
|
41645
|
+
transaction: unionType([
|
|
41646
|
+
UnsignedTransaction$inboundSchema,
|
|
41647
|
+
UserOperationResponse$inboundSchema
|
|
41648
|
+
]),
|
|
41649
|
+
amount_out_quote: stringType()
|
|
41650
|
+
}).transform((v2) => {
|
|
41651
|
+
return remap(v2, {
|
|
41652
|
+
amount_out_quote: "amountOutQuote"
|
|
41653
|
+
});
|
|
41654
|
+
});
|
|
41655
|
+
OdosTransactionResponse$outboundSchema = objectType({
|
|
41656
|
+
transaction: unionType([
|
|
41657
|
+
UnsignedTransaction$outboundSchema,
|
|
41658
|
+
UserOperationResponse$outboundSchema
|
|
41659
|
+
]),
|
|
41660
|
+
amountOutQuote: stringType()
|
|
41661
|
+
}).transform((v2) => {
|
|
41662
|
+
return remap(v2, {
|
|
41663
|
+
amountOutQuote: "amount_out_quote"
|
|
41664
|
+
});
|
|
41665
|
+
});
|
|
41666
|
+
((OdosTransactionResponse$) => {
|
|
41667
|
+
OdosTransactionResponse$.inboundSchema = OdosTransactionResponse$inboundSchema;
|
|
41668
|
+
OdosTransactionResponse$.outboundSchema = OdosTransactionResponse$outboundSchema;
|
|
41669
|
+
})(OdosTransactionResponse$ ||= {});
|
|
41670
|
+
});
|
|
41671
|
+
|
|
41625
41672
|
// src/models/components/openposition.ts
|
|
41626
41673
|
var OpenPosition$inboundSchema, OpenPosition$outboundSchema, OpenPosition$;
|
|
41627
41674
|
var init_openposition = __esm(() => {
|
|
@@ -43800,6 +43847,7 @@ var init_components = __esm(() => {
|
|
|
43800
43847
|
init_multicallexecuterequest();
|
|
43801
43848
|
init_odosswapparams();
|
|
43802
43849
|
init_odosswaprequest();
|
|
43850
|
+
init_odostransactionresponse();
|
|
43803
43851
|
init_openposition();
|
|
43804
43852
|
init_pendlegetmarketresponse();
|
|
43805
43853
|
init_pendlelistmarketsresponse();
|
|
@@ -45742,10 +45790,9 @@ var init_v1tokenbalance = __esm(() => {
|
|
|
45742
45790
|
});
|
|
45743
45791
|
|
|
45744
45792
|
// src/models/operations/v1tokenprice.ts
|
|
45745
|
-
var V1TokenPriceChain, V1TokenPriceChain$inboundSchema, V1TokenPriceChain$outboundSchema, V1TokenPriceChain$,
|
|
45793
|
+
var V1TokenPriceChain, V1TokenPriceChain$inboundSchema, V1TokenPriceChain$outboundSchema, V1TokenPriceChain$, V1TokenPriceRequest$inboundSchema, V1TokenPriceRequest$outboundSchema, V1TokenPriceRequest$;
|
|
45746
45794
|
var init_v1tokenprice = __esm(() => {
|
|
45747
45795
|
init_zod();
|
|
45748
|
-
init_components();
|
|
45749
45796
|
V1TokenPriceChain = {
|
|
45750
45797
|
Arbitrum: "arbitrum",
|
|
45751
45798
|
Base: "base",
|
|
@@ -45757,21 +45804,15 @@ var init_v1tokenprice = __esm(() => {
|
|
|
45757
45804
|
V1TokenPriceChain$.inboundSchema = V1TokenPriceChain$inboundSchema;
|
|
45758
45805
|
V1TokenPriceChain$.outboundSchema = V1TokenPriceChain$outboundSchema;
|
|
45759
45806
|
})(V1TokenPriceChain$ ||= {});
|
|
45760
|
-
V1TokenPriceToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
45761
|
-
V1TokenPriceToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
45762
|
-
((V1TokenPriceToken$) => {
|
|
45763
|
-
V1TokenPriceToken$.inboundSchema = V1TokenPriceToken$inboundSchema;
|
|
45764
|
-
V1TokenPriceToken$.outboundSchema = V1TokenPriceToken$outboundSchema;
|
|
45765
|
-
})(V1TokenPriceToken$ ||= {});
|
|
45766
45807
|
V1TokenPriceRequest$inboundSchema = objectType({
|
|
45767
45808
|
chain: V1TokenPriceChain$inboundSchema.default("ethereum"),
|
|
45768
45809
|
block: nullableType(numberType().int()).optional(),
|
|
45769
|
-
token:
|
|
45810
|
+
token: anyType().optional()
|
|
45770
45811
|
});
|
|
45771
45812
|
V1TokenPriceRequest$outboundSchema = objectType({
|
|
45772
45813
|
chain: V1TokenPriceChain$outboundSchema.default("ethereum"),
|
|
45773
45814
|
block: nullableType(numberType().int()).optional(),
|
|
45774
|
-
token:
|
|
45815
|
+
token: anyType().optional()
|
|
45775
45816
|
});
|
|
45776
45817
|
((V1TokenPriceRequest$) => {
|
|
45777
45818
|
V1TokenPriceRequest$.inboundSchema = V1TokenPriceRequest$inboundSchema;
|
|
@@ -52757,7 +52798,7 @@ async function $do54(client, request, options) {
|
|
|
52757
52798
|
const responseFields = {
|
|
52758
52799
|
HttpMeta: { Response: response, Request: req }
|
|
52759
52800
|
};
|
|
52760
|
-
const [result] = await match(json(200,
|
|
52801
|
+
const [result] = await match(json(200, OdosTransactionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
52761
52802
|
if (!result.ok) {
|
|
52762
52803
|
return [result, { status: "complete", request: req, response }];
|
|
52763
52804
|
}
|
|
@@ -55613,7 +55654,7 @@ it to be traded on DeFi protocols.`,
|
|
|
55613
55654
|
function createMCPServer(deps) {
|
|
55614
55655
|
const server = new McpServer({
|
|
55615
55656
|
name: "CompassApiSDK",
|
|
55616
|
-
version: "1.0.
|
|
55657
|
+
version: "1.0.11"
|
|
55617
55658
|
});
|
|
55618
55659
|
const client = new CompassApiSDKCore({
|
|
55619
55660
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -56987,7 +57028,7 @@ var routes = ln({
|
|
|
56987
57028
|
var app = _e(routes, {
|
|
56988
57029
|
name: "mcp",
|
|
56989
57030
|
versionInfo: {
|
|
56990
|
-
currentVersion: "1.0.
|
|
57031
|
+
currentVersion: "1.0.11"
|
|
56991
57032
|
}
|
|
56992
57033
|
});
|
|
56993
57034
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -56995,5 +57036,5 @@ export {
|
|
|
56995
57036
|
app
|
|
56996
57037
|
};
|
|
56997
57038
|
|
|
56998
|
-
//# debugId=
|
|
57039
|
+
//# debugId=BD112D7C601078F564756E2164756E21
|
|
56999
57040
|
//# sourceMappingURL=mcp-server.js.map
|