@compass-labs/api-sdk 1.0.10 → 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 +54 -6
- package/bin/mcp-server.js.map +9 -8
- 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 +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +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/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 +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +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/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/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/swapSwapOdos.ts +4 -4
- package/src/lib/config.ts +2 -2
- 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/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.
|
|
34267
|
+
sdkVersion: "1.0.11",
|
|
34268
34268
|
genVersion: "2.681.1",
|
|
34269
|
-
userAgent: "speakeasy-sdk/typescript 1.0.
|
|
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();
|
|
@@ -52750,7 +52798,7 @@ async function $do54(client, request, options) {
|
|
|
52750
52798
|
const responseFields = {
|
|
52751
52799
|
HttpMeta: { Response: response, Request: req }
|
|
52752
52800
|
};
|
|
52753
|
-
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 });
|
|
52754
52802
|
if (!result.ok) {
|
|
52755
52803
|
return [result, { status: "complete", request: req, response }];
|
|
52756
52804
|
}
|
|
@@ -55606,7 +55654,7 @@ it to be traded on DeFi protocols.`,
|
|
|
55606
55654
|
function createMCPServer(deps) {
|
|
55607
55655
|
const server = new McpServer({
|
|
55608
55656
|
name: "CompassApiSDK",
|
|
55609
|
-
version: "1.0.
|
|
55657
|
+
version: "1.0.11"
|
|
55610
55658
|
});
|
|
55611
55659
|
const client = new CompassApiSDKCore({
|
|
55612
55660
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -56980,7 +57028,7 @@ var routes = ln({
|
|
|
56980
57028
|
var app = _e(routes, {
|
|
56981
57029
|
name: "mcp",
|
|
56982
57030
|
versionInfo: {
|
|
56983
|
-
currentVersion: "1.0.
|
|
57031
|
+
currentVersion: "1.0.11"
|
|
56984
57032
|
}
|
|
56985
57033
|
});
|
|
56986
57034
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -56988,5 +57036,5 @@ export {
|
|
|
56988
57036
|
app
|
|
56989
57037
|
};
|
|
56990
57038
|
|
|
56991
|
-
//# debugId=
|
|
57039
|
+
//# debugId=BD112D7C601078F564756E2164756E21
|
|
56992
57040
|
//# sourceMappingURL=mcp-server.js.map
|