@compass-labs/api-sdk 0.1.7 → 0.1.8
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 +7 -7
- package/bin/mcp-server.js.map +8 -8
- package/dist/commonjs/funcs/pendleMarket.d.ts +1 -1
- package/dist/commonjs/funcs/pendleMarket.js +1 -1
- package/dist/commonjs/funcs/pendlePosition.d.ts +1 -1
- package/dist/commonjs/funcs/pendlePosition.js +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/mcp-server/tools/pendleMarket.js +1 -1
- package/dist/commonjs/mcp-server/tools/pendleMarket.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendlePosition.js +1 -1
- package/dist/commonjs/mcp-server/tools/pendlePosition.js.map +1 -1
- package/dist/commonjs/sdk/pendle.d.ts +2 -2
- package/dist/commonjs/sdk/pendle.js +2 -2
- package/dist/esm/funcs/pendleMarket.d.ts +1 -1
- package/dist/esm/funcs/pendleMarket.js +1 -1
- package/dist/esm/funcs/pendlePosition.d.ts +1 -1
- package/dist/esm/funcs/pendlePosition.js +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/mcp-server/tools/pendleMarket.js +1 -1
- package/dist/esm/mcp-server/tools/pendleMarket.js.map +1 -1
- package/dist/esm/mcp-server/tools/pendlePosition.js +1 -1
- package/dist/esm/mcp-server/tools/pendlePosition.js.map +1 -1
- package/dist/esm/sdk/pendle.d.ts +2 -2
- package/dist/esm/sdk/pendle.js +2 -2
- package/docs/sdks/pendle/README.md +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/pendleMarket.ts +1 -1
- package/src/funcs/pendlePosition.ts +1 -1
- 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/mcp-server/tools/pendleMarket.ts +1 -1
- package/src/mcp-server/tools/pendlePosition.ts +1 -1
- package/src/sdk/pendle.ts +2 -2
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Get Market Data
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Get market data.
|
|
15
|
+
* Get the market's implied APY, maturity date and the associated token data.
|
|
16
16
|
*/
|
|
17
17
|
export declare function pendleMarket(client: CompassApiSDKCore, request: operations.PendleMarketRequest, options?: RequestOptions): APIPromise<Result<components.PendleGetMarketResponse, errors.HTTPValidationError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
18
18
|
//# sourceMappingURL=pendleMarket.d.ts.map
|
|
@@ -51,7 +51,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
51
51
|
* Get Market Data
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Get market data.
|
|
54
|
+
* Get the market's implied APY, maturity date and the associated token data.
|
|
55
55
|
*/
|
|
56
56
|
function pendleMarket(client, request, options) {
|
|
57
57
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Check User's Market Position
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Check the SY, PT, and
|
|
15
|
+
* Check the SY, PT, YT and Underlying Token positions for a given market.
|
|
16
16
|
*/
|
|
17
17
|
export declare function pendlePosition(client: CompassApiSDKCore, request: operations.PendlePositionRequest, options?: RequestOptions): APIPromise<Result<components.PendleGetUserPositionResponse, errors.HTTPValidationError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
18
18
|
//# sourceMappingURL=pendlePosition.d.ts.map
|
|
@@ -51,7 +51,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
51
51
|
* Check User's Market Position
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Check the SY, PT, and
|
|
54
|
+
* Check the SY, PT, YT and Underlying Token positions for a given market.
|
|
55
55
|
*/
|
|
56
56
|
function pendlePosition(client, request, options) {
|
|
57
57
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "0.0.1";
|
|
30
|
-
readonly sdkVersion: "0.1.
|
|
30
|
+
readonly sdkVersion: "0.1.8";
|
|
31
31
|
readonly genVersion: "2.610.0";
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.1.
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.8 2.610.0 0.0.1 @compass-labs/api-sdk";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "0.0.1",
|
|
34
|
-
sdkVersion: "0.1.
|
|
34
|
+
sdkVersion: "0.1.8",
|
|
35
35
|
genVersion: "2.610.0",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.1.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.1.8 2.610.0 0.0.1 @compass-labs/api-sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "0.1.
|
|
25
|
+
currentVersion: "0.1.8",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
|
@@ -79,7 +79,7 @@ const universalWrapEth_js_1 = require("./tools/universalWrapEth.js");
|
|
|
79
79
|
function createMCPServer(deps) {
|
|
80
80
|
const server = new mcp_js_1.McpServer({
|
|
81
81
|
name: "CompassApiSDK",
|
|
82
|
-
version: "0.1.
|
|
82
|
+
version: "0.1.8",
|
|
83
83
|
});
|
|
84
84
|
const client = new core_js_1.CompassApiSDKCore({
|
|
85
85
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -47,7 +47,7 @@ exports.tool$pendleMarket = {
|
|
|
47
47
|
name: "pendle-market",
|
|
48
48
|
description: `Get Market Data
|
|
49
49
|
|
|
50
|
-
Get market data.`,
|
|
50
|
+
Get the market's implied APY, maturity date and the associated token data.`,
|
|
51
51
|
args,
|
|
52
52
|
tool: async (client, args, ctx) => {
|
|
53
53
|
const [result, apiCall] = await (0, pendleMarket_js_1.pendleMarket)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pendleMarket.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/pendleMarket.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iEAA2D;AAC3D,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,iCAAiC;CACtD,CAAC;AAEW,QAAA,iBAAiB,GAAgC;IAC5D,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE;;
|
|
1
|
+
{"version":3,"file":"pendleMarket.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/pendleMarket.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iEAA2D;AAC3D,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,iCAAiC;CACtD,CAAC;AAEW,QAAA,iBAAiB,GAAgC;IAC5D,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE;;2EAE4D;IACzE,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,8BAAY,EAC1C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -47,7 +47,7 @@ exports.tool$pendlePosition = {
|
|
|
47
47
|
name: "pendle-position",
|
|
48
48
|
description: `Check User's Market Position
|
|
49
49
|
|
|
50
|
-
Check the SY, PT, and
|
|
50
|
+
Check the SY, PT, YT and Underlying Token positions for a given market.`,
|
|
51
51
|
args,
|
|
52
52
|
tool: async (client, args, ctx) => {
|
|
53
53
|
const [result, apiCall] = await (0, pendlePosition_js_1.pendlePosition)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pendlePosition.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/pendlePosition.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,qEAA+D;AAC/D,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,mCAAmC;CACxD,CAAC;AAEW,QAAA,mBAAmB,GAAgC;IAC9D,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE;;
|
|
1
|
+
{"version":3,"file":"pendlePosition.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/pendlePosition.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,qEAA+D;AAC/D,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,mCAAmC;CACxD,CAAC;AAEW,QAAA,mBAAmB,GAAgC;IAC9D,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE;;wEAEyD;IACtE,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,kCAAc,EAC5C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -6,14 +6,14 @@ export declare class Pendle extends ClientSDK {
|
|
|
6
6
|
* Check User's Market Position
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* Check the SY, PT, and
|
|
9
|
+
* Check the SY, PT, YT and Underlying Token positions for a given market.
|
|
10
10
|
*/
|
|
11
11
|
position(request: operations.PendlePositionRequest, options?: RequestOptions): Promise<components.PendleGetUserPositionResponse>;
|
|
12
12
|
/**
|
|
13
13
|
* Get Market Data
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Get market data.
|
|
16
|
+
* Get the market's implied APY, maturity date and the associated token data.
|
|
17
17
|
*/
|
|
18
18
|
market(request: operations.PendleMarketRequest, options?: RequestOptions): Promise<components.PendleGetMarketResponse>;
|
|
19
19
|
}
|
|
@@ -13,7 +13,7 @@ class Pendle extends sdks_js_1.ClientSDK {
|
|
|
13
13
|
* Check User's Market Position
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Check the SY, PT, and
|
|
16
|
+
* Check the SY, PT, YT and Underlying Token positions for a given market.
|
|
17
17
|
*/
|
|
18
18
|
async position(request, options) {
|
|
19
19
|
return (0, fp_js_1.unwrapAsync)((0, pendlePosition_js_1.pendlePosition)(this, request, options));
|
|
@@ -22,7 +22,7 @@ class Pendle extends sdks_js_1.ClientSDK {
|
|
|
22
22
|
* Get Market Data
|
|
23
23
|
*
|
|
24
24
|
* @remarks
|
|
25
|
-
* Get market data.
|
|
25
|
+
* Get the market's implied APY, maturity date and the associated token data.
|
|
26
26
|
*/
|
|
27
27
|
async market(request, options) {
|
|
28
28
|
return (0, fp_js_1.unwrapAsync)((0, pendleMarket_js_1.pendleMarket)(this, request, options));
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Get Market Data
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Get market data.
|
|
15
|
+
* Get the market's implied APY, maturity date and the associated token data.
|
|
16
16
|
*/
|
|
17
17
|
export declare function pendleMarket(client: CompassApiSDKCore, request: operations.PendleMarketRequest, options?: RequestOptions): APIPromise<Result<components.PendleGetMarketResponse, errors.HTTPValidationError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
18
18
|
//# sourceMappingURL=pendleMarket.d.ts.map
|
|
@@ -15,7 +15,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
15
15
|
* Get Market Data
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
* Get market data.
|
|
18
|
+
* Get the market's implied APY, maturity date and the associated token data.
|
|
19
19
|
*/
|
|
20
20
|
export function pendleMarket(client, request, options) {
|
|
21
21
|
return new APIPromise($do(client, request, options));
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Check User's Market Position
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Check the SY, PT, and
|
|
15
|
+
* Check the SY, PT, YT and Underlying Token positions for a given market.
|
|
16
16
|
*/
|
|
17
17
|
export declare function pendlePosition(client: CompassApiSDKCore, request: operations.PendlePositionRequest, options?: RequestOptions): APIPromise<Result<components.PendleGetUserPositionResponse, errors.HTTPValidationError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
18
18
|
//# sourceMappingURL=pendlePosition.d.ts.map
|
|
@@ -15,7 +15,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
15
15
|
* Check User's Market Position
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
* Check the SY, PT, and
|
|
18
|
+
* Check the SY, PT, YT and Underlying Token positions for a given market.
|
|
19
19
|
*/
|
|
20
20
|
export function pendlePosition(client, request, options) {
|
|
21
21
|
return new APIPromise($do(client, request, options));
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "0.0.1";
|
|
30
|
-
readonly sdkVersion: "0.1.
|
|
30
|
+
readonly sdkVersion: "0.1.8";
|
|
31
31
|
readonly genVersion: "2.610.0";
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.1.
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.8 2.610.0 0.0.1 @compass-labs/api-sdk";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -27,8 +27,8 @@ export function serverURLFromOptions(options) {
|
|
|
27
27
|
export const SDK_METADATA = {
|
|
28
28
|
language: "typescript",
|
|
29
29
|
openapiDocVersion: "0.0.1",
|
|
30
|
-
sdkVersion: "0.1.
|
|
30
|
+
sdkVersion: "0.1.8",
|
|
31
31
|
genVersion: "2.610.0",
|
|
32
|
-
userAgent: "speakeasy-sdk/typescript 0.1.
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 0.1.8 2.610.0 0.0.1 @compass-labs/api-sdk",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
|
@@ -76,7 +76,7 @@ import { tool$universalWrapEth } from "./tools/universalWrapEth.js";
|
|
|
76
76
|
export function createMCPServer(deps) {
|
|
77
77
|
const server = new McpServer({
|
|
78
78
|
name: "CompassApiSDK",
|
|
79
|
-
version: "0.1.
|
|
79
|
+
version: "0.1.8",
|
|
80
80
|
});
|
|
81
81
|
const client = new CompassApiSDKCore({
|
|
82
82
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -11,7 +11,7 @@ export const tool$pendleMarket = {
|
|
|
11
11
|
name: "pendle-market",
|
|
12
12
|
description: `Get Market Data
|
|
13
13
|
|
|
14
|
-
Get market data.`,
|
|
14
|
+
Get the market's implied APY, maturity date and the associated token data.`,
|
|
15
15
|
args,
|
|
16
16
|
tool: async (client, args, ctx) => {
|
|
17
17
|
const [result, apiCall] = await pendleMarket(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pendleMarket.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/pendleMarket.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,iCAAiC;CACtD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAgC;IAC5D,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE;;
|
|
1
|
+
{"version":3,"file":"pendleMarket.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/pendleMarket.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,iCAAiC;CACtD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAgC;IAC5D,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE;;2EAE4D;IACzE,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,YAAY,CAC1C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -11,7 +11,7 @@ export const tool$pendlePosition = {
|
|
|
11
11
|
name: "pendle-position",
|
|
12
12
|
description: `Check User's Market Position
|
|
13
13
|
|
|
14
|
-
Check the SY, PT, and
|
|
14
|
+
Check the SY, PT, YT and Underlying Token positions for a given market.`,
|
|
15
15
|
args,
|
|
16
16
|
tool: async (client, args, ctx) => {
|
|
17
17
|
const [result, apiCall] = await pendlePosition(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pendlePosition.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/pendlePosition.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,mCAAmC;CACxD,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAgC;IAC9D,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE;;
|
|
1
|
+
{"version":3,"file":"pendlePosition.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/pendlePosition.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,mCAAmC;CACxD,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAgC;IAC9D,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE;;wEAEyD;IACtE,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,cAAc,CAC5C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
package/dist/esm/sdk/pendle.d.ts
CHANGED
|
@@ -6,14 +6,14 @@ export declare class Pendle extends ClientSDK {
|
|
|
6
6
|
* Check User's Market Position
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* Check the SY, PT, and
|
|
9
|
+
* Check the SY, PT, YT and Underlying Token positions for a given market.
|
|
10
10
|
*/
|
|
11
11
|
position(request: operations.PendlePositionRequest, options?: RequestOptions): Promise<components.PendleGetUserPositionResponse>;
|
|
12
12
|
/**
|
|
13
13
|
* Get Market Data
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Get market data.
|
|
16
|
+
* Get the market's implied APY, maturity date and the associated token data.
|
|
17
17
|
*/
|
|
18
18
|
market(request: operations.PendleMarketRequest, options?: RequestOptions): Promise<components.PendleGetMarketResponse>;
|
|
19
19
|
}
|
package/dist/esm/sdk/pendle.js
CHANGED
|
@@ -10,7 +10,7 @@ export class Pendle extends ClientSDK {
|
|
|
10
10
|
* Check User's Market Position
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* Check the SY, PT, and
|
|
13
|
+
* Check the SY, PT, YT and Underlying Token positions for a given market.
|
|
14
14
|
*/
|
|
15
15
|
async position(request, options) {
|
|
16
16
|
return unwrapAsync(pendlePosition(this, request, options));
|
|
@@ -19,7 +19,7 @@ export class Pendle extends ClientSDK {
|
|
|
19
19
|
* Get Market Data
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
* Get market data.
|
|
22
|
+
* Get the market's implied APY, maturity date and the associated token data.
|
|
23
23
|
*/
|
|
24
24
|
async market(request, options) {
|
|
25
25
|
return unwrapAsync(pendleMarket(this, request, options));
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
## position
|
|
12
12
|
|
|
13
|
-
Check the SY, PT, and
|
|
13
|
+
Check the SY, PT, YT and Underlying Token positions for a given market.
|
|
14
14
|
|
|
15
15
|
### Example Usage
|
|
16
16
|
|
|
@@ -91,7 +91,7 @@ run();
|
|
|
91
91
|
|
|
92
92
|
## market
|
|
93
93
|
|
|
94
|
-
Get market data.
|
|
94
|
+
Get the market's implied APY, maturity date and the associated token data.
|
|
95
95
|
|
|
96
96
|
### Example Usage
|
|
97
97
|
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Check User's Market Position
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Check the SY, PT, and
|
|
32
|
+
* Check the SY, PT, YT and Underlying Token positions for a given market.
|
|
33
33
|
*/
|
|
34
34
|
export function pendlePosition(
|
|
35
35
|
client: CompassApiSDKCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.1",
|
|
60
|
-
sdkVersion: "0.1.
|
|
60
|
+
sdkVersion: "0.1.8",
|
|
61
61
|
genVersion: "2.610.0",
|
|
62
62
|
userAgent:
|
|
63
|
-
"speakeasy-sdk/typescript 0.1.
|
|
63
|
+
"speakeasy-sdk/typescript 0.1.8 2.610.0 0.0.1 @compass-labs/api-sdk",
|
|
64
64
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const tool$pendleMarket: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "pendle-market",
|
|
15
15
|
description: `Get Market Data
|
|
16
16
|
|
|
17
|
-
Get market data.`,
|
|
17
|
+
Get the market's implied APY, maturity date and the associated token data.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await pendleMarket(
|
|
@@ -14,7 +14,7 @@ export const tool$pendlePosition: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "pendle-position",
|
|
15
15
|
description: `Check User's Market Position
|
|
16
16
|
|
|
17
|
-
Check the SY, PT, and
|
|
17
|
+
Check the SY, PT, YT and Underlying Token positions for a given market.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await pendlePosition(
|
package/src/sdk/pendle.ts
CHANGED
|
@@ -14,7 +14,7 @@ export class Pendle extends ClientSDK {
|
|
|
14
14
|
* Check User's Market Position
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Check the SY, PT, and
|
|
17
|
+
* Check the SY, PT, YT and Underlying Token positions for a given market.
|
|
18
18
|
*/
|
|
19
19
|
async position(
|
|
20
20
|
request: operations.PendlePositionRequest,
|
|
@@ -31,7 +31,7 @@ export class Pendle extends ClientSDK {
|
|
|
31
31
|
* Get Market Data
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Get market data.
|
|
34
|
+
* Get the market's implied APY, maturity date and the associated token data.
|
|
35
35
|
*/
|
|
36
36
|
async market(
|
|
37
37
|
request: operations.PendleMarketRequest,
|