@compass-labs/api-sdk 0.4.0 → 0.4.1
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 +4 -4
- package/bin/mcp-server.js +7 -7
- package/bin/mcp-server.js.map +8 -8
- package/dist/commonjs/funcs/pendleBuyPt.d.ts +1 -1
- package/dist/commonjs/funcs/pendleBuyPt.js +1 -1
- package/dist/commonjs/funcs/pendleSellPt.d.ts +1 -1
- package/dist/commonjs/funcs/pendleSellPt.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/pendleBuyPt.js +1 -1
- package/dist/commonjs/mcp-server/tools/pendleSellPt.js +1 -1
- package/dist/commonjs/sdk/pendle.d.ts +2 -2
- package/dist/commonjs/sdk/pendle.js +2 -2
- package/dist/esm/funcs/pendleBuyPt.d.ts +1 -1
- package/dist/esm/funcs/pendleBuyPt.js +1 -1
- package/dist/esm/funcs/pendleSellPt.d.ts +1 -1
- package/dist/esm/funcs/pendleSellPt.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/pendleBuyPt.js +1 -1
- package/dist/esm/mcp-server/tools/pendleSellPt.js +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/pendleBuyPt.ts +1 -1
- package/src/funcs/pendleSellPt.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/pendleBuyPt.ts +1 -1
- package/src/mcp-server/tools/pendleSellPt.ts +1 -1
- package/src/sdk/pendle.ts +2 -2
|
@@ -8,7 +8,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
* Buy
|
|
11
|
+
* Buy Principal Token (PT)
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
14
|
* Buy Principal Token (PT) with market's Underlying Token.
|
|
@@ -47,7 +47,7 @@ const components = __importStar(require("../models/components/index.js"));
|
|
|
47
47
|
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
48
|
const async_js_1 = require("../types/async.js");
|
|
49
49
|
/**
|
|
50
|
-
* Buy
|
|
50
|
+
* Buy Principal Token (PT)
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
53
|
* Buy Principal Token (PT) with market's Underlying Token.
|
|
@@ -8,7 +8,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
* Sell
|
|
11
|
+
* Sell Principal Token (PT)
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
14
|
* Sell Principal Token (PT) for the market's Underlying Token.
|
|
@@ -47,7 +47,7 @@ const components = __importStar(require("../models/components/index.js"));
|
|
|
47
47
|
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
48
|
const async_js_1 = require("../types/async.js");
|
|
49
49
|
/**
|
|
50
|
-
* Sell
|
|
50
|
+
* Sell Principal Token (PT)
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
53
|
* Sell Principal Token (PT) for the market's Underlying Token.
|
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
|
-
readonly sdkVersion: "0.4.
|
|
34
|
+
readonly sdkVersion: "0.4.1";
|
|
35
35
|
readonly genVersion: "2.616.1";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.4.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.4.1 2.616.1 0.0.1 @compass-labs/api-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# 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.4.
|
|
34
|
+
sdkVersion: "0.4.1",
|
|
35
35
|
genVersion: "2.616.1",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.4.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.4.1 2.616.1 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.4.
|
|
25
|
+
currentVersion: "0.4.1",
|
|
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));
|
|
@@ -85,7 +85,7 @@ const universalWrapEth_js_1 = require("./tools/universalWrapEth.js");
|
|
|
85
85
|
function createMCPServer(deps) {
|
|
86
86
|
const server = new mcp_js_1.McpServer({
|
|
87
87
|
name: "CompassApiSDK",
|
|
88
|
-
version: "0.4.
|
|
88
|
+
version: "0.4.1",
|
|
89
89
|
});
|
|
90
90
|
const client = new core_js_1.CompassApiSDKCore({
|
|
91
91
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -31,14 +31,14 @@ export declare class Pendle extends ClientSDK {
|
|
|
31
31
|
*/
|
|
32
32
|
market(request: operations.PendleMarketRequest, options?: RequestOptions): Promise<components.PendleGetMarketResponse>;
|
|
33
33
|
/**
|
|
34
|
-
* Buy
|
|
34
|
+
* Buy Principal Token (PT)
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
37
|
* Buy Principal Token (PT) with market's Underlying Token.
|
|
38
38
|
*/
|
|
39
39
|
buyPt(request: components.PendleBuyPtRequest, options?: RequestOptions): Promise<components.TxResponse>;
|
|
40
40
|
/**
|
|
41
|
-
* Sell
|
|
41
|
+
* Sell Principal Token (PT)
|
|
42
42
|
*
|
|
43
43
|
* @remarks
|
|
44
44
|
* Sell Principal Token (PT) for the market's Underlying Token.
|
|
@@ -52,7 +52,7 @@ class Pendle extends sdks_js_1.ClientSDK {
|
|
|
52
52
|
return (0, fp_js_1.unwrapAsync)((0, pendleMarket_js_1.pendleMarket)(this, request, options));
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* Buy
|
|
55
|
+
* Buy Principal Token (PT)
|
|
56
56
|
*
|
|
57
57
|
* @remarks
|
|
58
58
|
* Buy Principal Token (PT) with market's Underlying Token.
|
|
@@ -61,7 +61,7 @@ class Pendle extends sdks_js_1.ClientSDK {
|
|
|
61
61
|
return (0, fp_js_1.unwrapAsync)((0, pendleBuyPt_js_1.pendleBuyPt)(this, request, options));
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
* Sell
|
|
64
|
+
* Sell Principal Token (PT)
|
|
65
65
|
*
|
|
66
66
|
* @remarks
|
|
67
67
|
* Sell Principal Token (PT) for the market's Underlying Token.
|
|
@@ -8,7 +8,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
* Buy
|
|
11
|
+
* Buy Principal Token (PT)
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
14
|
* Buy Principal Token (PT) with market's Underlying Token.
|
|
@@ -11,7 +11,7 @@ import * as components from "../models/components/index.js";
|
|
|
11
11
|
import * as errors from "../models/errors/index.js";
|
|
12
12
|
import { APIPromise } from "../types/async.js";
|
|
13
13
|
/**
|
|
14
|
-
* Buy
|
|
14
|
+
* Buy Principal Token (PT)
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
17
|
* Buy Principal Token (PT) with market's Underlying Token.
|
|
@@ -8,7 +8,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
* Sell
|
|
11
|
+
* Sell Principal Token (PT)
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
14
|
* Sell Principal Token (PT) for the market's Underlying Token.
|
|
@@ -11,7 +11,7 @@ import * as components from "../models/components/index.js";
|
|
|
11
11
|
import * as errors from "../models/errors/index.js";
|
|
12
12
|
import { APIPromise } from "../types/async.js";
|
|
13
13
|
/**
|
|
14
|
-
* Sell
|
|
14
|
+
* Sell Principal Token (PT)
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
17
|
* Sell Principal Token (PT) for the market's Underlying Token.
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
|
-
readonly sdkVersion: "0.4.
|
|
34
|
+
readonly sdkVersion: "0.4.1";
|
|
35
35
|
readonly genVersion: "2.616.1";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.4.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.4.1 2.616.1 0.0.1 @compass-labs/api-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# 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.4.
|
|
30
|
+
sdkVersion: "0.4.1",
|
|
31
31
|
genVersion: "2.616.1",
|
|
32
|
-
userAgent: "speakeasy-sdk/typescript 0.4.
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 0.4.1 2.616.1 0.0.1 @compass-labs/api-sdk",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
|
@@ -82,7 +82,7 @@ import { tool$universalWrapEth } from "./tools/universalWrapEth.js";
|
|
|
82
82
|
export function createMCPServer(deps) {
|
|
83
83
|
const server = new McpServer({
|
|
84
84
|
name: "CompassApiSDK",
|
|
85
|
-
version: "0.4.
|
|
85
|
+
version: "0.4.1",
|
|
86
86
|
});
|
|
87
87
|
const client = new CompassApiSDKCore({
|
|
88
88
|
apiKeyAuth: deps.apiKeyAuth,
|
package/dist/esm/sdk/pendle.d.ts
CHANGED
|
@@ -31,14 +31,14 @@ export declare class Pendle extends ClientSDK {
|
|
|
31
31
|
*/
|
|
32
32
|
market(request: operations.PendleMarketRequest, options?: RequestOptions): Promise<components.PendleGetMarketResponse>;
|
|
33
33
|
/**
|
|
34
|
-
* Buy
|
|
34
|
+
* Buy Principal Token (PT)
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
37
|
* Buy Principal Token (PT) with market's Underlying Token.
|
|
38
38
|
*/
|
|
39
39
|
buyPt(request: components.PendleBuyPtRequest, options?: RequestOptions): Promise<components.TxResponse>;
|
|
40
40
|
/**
|
|
41
|
-
* Sell
|
|
41
|
+
* Sell Principal Token (PT)
|
|
42
42
|
*
|
|
43
43
|
* @remarks
|
|
44
44
|
* Sell Principal Token (PT) for the market's Underlying Token.
|
package/dist/esm/sdk/pendle.js
CHANGED
|
@@ -49,7 +49,7 @@ export class Pendle extends ClientSDK {
|
|
|
49
49
|
return unwrapAsync(pendleMarket(this, request, options));
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
* Buy
|
|
52
|
+
* Buy Principal Token (PT)
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
55
|
* Buy Principal Token (PT) with market's Underlying Token.
|
|
@@ -58,7 +58,7 @@ export class Pendle extends ClientSDK {
|
|
|
58
58
|
return unwrapAsync(pendleBuyPt(this, request, options));
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
* Sell
|
|
61
|
+
* Sell Principal Token (PT)
|
|
62
62
|
*
|
|
63
63
|
* @remarks
|
|
64
64
|
* Sell Principal Token (PT) for the market's Underlying Token.
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* [positions](#positions) - List User's Market Positions
|
|
10
10
|
* [markets](#markets) - List Market Data
|
|
11
11
|
* [market](#market) - Get Market Data
|
|
12
|
-
* [buyPt](#buypt) - Buy
|
|
13
|
-
* [sellPt](#sellpt) - Sell
|
|
12
|
+
* [buyPt](#buypt) - Buy Principal Token (PT)
|
|
13
|
+
* [sellPt](#sellpt) - Sell Principal Token (PT)
|
|
14
14
|
* [buyYt](#buyyt) - Buy Yield Token (YT)
|
|
15
15
|
* [sellYt](#sellyt) - Sell Yield Token (YT)
|
|
16
16
|
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/funcs/pendleBuyPt.ts
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -61,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.1",
|
|
64
|
-
sdkVersion: "0.4.
|
|
64
|
+
sdkVersion: "0.4.1",
|
|
65
65
|
genVersion: "2.616.1",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 0.4.
|
|
67
|
+
"speakeasy-sdk/typescript 0.4.1 2.616.1 0.0.1 @compass-labs/api-sdk",
|
|
68
68
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -12,7 +12,7 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$pendleBuyPt: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "pendle-buy-pt",
|
|
15
|
-
description: `Buy
|
|
15
|
+
description: `Buy Principal Token (PT)
|
|
16
16
|
|
|
17
17
|
Buy Principal Token (PT) with market's Underlying Token.`,
|
|
18
18
|
args,
|
|
@@ -12,7 +12,7 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$pendleSellPt: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "pendle-sell-pt",
|
|
15
|
-
description: `Sell
|
|
15
|
+
description: `Sell Principal Token (PT)
|
|
16
16
|
|
|
17
17
|
Sell Principal Token (PT) for the market's Underlying Token.`,
|
|
18
18
|
args,
|
package/src/sdk/pendle.ts
CHANGED
|
@@ -85,7 +85,7 @@ export class Pendle extends ClientSDK {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
* Buy
|
|
88
|
+
* Buy Principal Token (PT)
|
|
89
89
|
*
|
|
90
90
|
* @remarks
|
|
91
91
|
* Buy Principal Token (PT) with market's Underlying Token.
|
|
@@ -102,7 +102,7 @@ export class Pendle extends ClientSDK {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* Sell
|
|
105
|
+
* Sell Principal Token (PT)
|
|
106
106
|
*
|
|
107
107
|
* @remarks
|
|
108
108
|
* Sell Principal Token (PT) for the market's Underlying Token.
|