@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.
Files changed (38) hide show
  1. package/README.md +4 -4
  2. package/bin/mcp-server.js +7 -7
  3. package/bin/mcp-server.js.map +8 -8
  4. package/dist/commonjs/funcs/pendleBuyPt.d.ts +1 -1
  5. package/dist/commonjs/funcs/pendleBuyPt.js +1 -1
  6. package/dist/commonjs/funcs/pendleSellPt.d.ts +1 -1
  7. package/dist/commonjs/funcs/pendleSellPt.js +1 -1
  8. package/dist/commonjs/lib/config.d.ts +2 -2
  9. package/dist/commonjs/lib/config.js +2 -2
  10. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  11. package/dist/commonjs/mcp-server/server.js +1 -1
  12. package/dist/commonjs/mcp-server/tools/pendleBuyPt.js +1 -1
  13. package/dist/commonjs/mcp-server/tools/pendleSellPt.js +1 -1
  14. package/dist/commonjs/sdk/pendle.d.ts +2 -2
  15. package/dist/commonjs/sdk/pendle.js +2 -2
  16. package/dist/esm/funcs/pendleBuyPt.d.ts +1 -1
  17. package/dist/esm/funcs/pendleBuyPt.js +1 -1
  18. package/dist/esm/funcs/pendleSellPt.d.ts +1 -1
  19. package/dist/esm/funcs/pendleSellPt.js +1 -1
  20. package/dist/esm/lib/config.d.ts +2 -2
  21. package/dist/esm/lib/config.js +2 -2
  22. package/dist/esm/mcp-server/mcp-server.js +1 -1
  23. package/dist/esm/mcp-server/server.js +1 -1
  24. package/dist/esm/mcp-server/tools/pendleBuyPt.js +1 -1
  25. package/dist/esm/mcp-server/tools/pendleSellPt.js +1 -1
  26. package/dist/esm/sdk/pendle.d.ts +2 -2
  27. package/dist/esm/sdk/pendle.js +2 -2
  28. package/docs/sdks/pendle/README.md +2 -2
  29. package/jsr.json +1 -1
  30. package/package.json +1 -1
  31. package/src/funcs/pendleBuyPt.ts +1 -1
  32. package/src/funcs/pendleSellPt.ts +1 -1
  33. package/src/lib/config.ts +2 -2
  34. package/src/mcp-server/mcp-server.ts +1 -1
  35. package/src/mcp-server/server.ts +1 -1
  36. package/src/mcp-server/tools/pendleBuyPt.ts +1 -1
  37. package/src/mcp-server/tools/pendleSellPt.ts +1 -1
  38. 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 Princpal Token (PT)
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 Princpal Token (PT)
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 Princpal Token (PT)
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 Princpal Token (PT)
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.0";
34
+ readonly sdkVersion: "0.4.1";
35
35
  readonly genVersion: "2.616.1";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.4.0 2.616.1 0.0.1 @compass-labs/api-sdk";
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.0",
34
+ sdkVersion: "0.4.1",
35
35
  genVersion: "2.616.1",
36
- userAgent: "speakeasy-sdk/typescript 0.4.0 2.616.1 0.0.1 @compass-labs/api-sdk",
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.0",
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.0",
88
+ version: "0.4.1",
89
89
  });
90
90
  const client = new core_js_1.CompassApiSDKCore({
91
91
  apiKeyAuth: deps.apiKeyAuth,
@@ -45,7 +45,7 @@ const args = {
45
45
  };
46
46
  exports.tool$pendleBuyPt = {
47
47
  name: "pendle-buy-pt",
48
- description: `Buy Princpal Token (PT)
48
+ description: `Buy Principal Token (PT)
49
49
 
50
50
  Buy Principal Token (PT) with market's Underlying Token.`,
51
51
  args,
@@ -45,7 +45,7 @@ const args = {
45
45
  };
46
46
  exports.tool$pendleSellPt = {
47
47
  name: "pendle-sell-pt",
48
- description: `Sell Princpal Token (PT)
48
+ description: `Sell Principal Token (PT)
49
49
 
50
50
  Sell Principal Token (PT) for the market's Underlying Token.`,
51
51
  args,
@@ -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 Princpal Token (PT)
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 Princpal Token (PT)
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 Princpal Token (PT)
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 Princpal Token (PT)
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 Princpal Token (PT)
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 Princpal Token (PT)
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 Princpal Token (PT)
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 Princpal Token (PT)
14
+ * Sell Principal Token (PT)
15
15
  *
16
16
  * @remarks
17
17
  * 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.0";
34
+ readonly sdkVersion: "0.4.1";
35
35
  readonly genVersion: "2.616.1";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.4.0 2.616.1 0.0.1 @compass-labs/api-sdk";
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
@@ -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.0",
30
+ sdkVersion: "0.4.1",
31
31
  genVersion: "2.616.1",
32
- userAgent: "speakeasy-sdk/typescript 0.4.0 2.616.1 0.0.1 @compass-labs/api-sdk",
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
@@ -16,7 +16,7 @@ const routes = buildRouteMap({
16
16
  export const app = buildApplication(routes, {
17
17
  name: "mcp",
18
18
  versionInfo: {
19
- currentVersion: "0.4.0",
19
+ currentVersion: "0.4.1",
20
20
  },
21
21
  });
22
22
  run(app, process.argv.slice(2), buildContext(process));
@@ -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.0",
85
+ version: "0.4.1",
86
86
  });
87
87
  const client = new CompassApiSDKCore({
88
88
  apiKeyAuth: deps.apiKeyAuth,
@@ -9,7 +9,7 @@ const args = {
9
9
  };
10
10
  export const tool$pendleBuyPt = {
11
11
  name: "pendle-buy-pt",
12
- description: `Buy Princpal Token (PT)
12
+ description: `Buy Principal Token (PT)
13
13
 
14
14
  Buy Principal Token (PT) with market's Underlying Token.`,
15
15
  args,
@@ -9,7 +9,7 @@ const args = {
9
9
  };
10
10
  export const tool$pendleSellPt = {
11
11
  name: "pendle-sell-pt",
12
- description: `Sell Princpal Token (PT)
12
+ description: `Sell Principal Token (PT)
13
13
 
14
14
  Sell Principal Token (PT) for the market's Underlying Token.`,
15
15
  args,
@@ -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 Princpal Token (PT)
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 Princpal Token (PT)
41
+ * Sell Principal Token (PT)
42
42
  *
43
43
  * @remarks
44
44
  * Sell Principal Token (PT) for the market's Underlying Token.
@@ -49,7 +49,7 @@ export class Pendle extends ClientSDK {
49
49
  return unwrapAsync(pendleMarket(this, request, options));
50
50
  }
51
51
  /**
52
- * Buy Princpal Token (PT)
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 Princpal Token (PT)
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 Princpal Token (PT)
13
- * [sellPt](#sellpt) - Sell Princpal Token (PT)
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@compass-labs/api-sdk",
5
- "version": "0.4.0",
5
+ "version": "0.4.1",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-labs/api-sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,7 +25,7 @@ import { APICall, APIPromise } from "../types/async.js";
25
25
  import { Result } from "../types/fp.js";
26
26
 
27
27
  /**
28
- * Buy Princpal Token (PT)
28
+ * Buy Principal Token (PT)
29
29
  *
30
30
  * @remarks
31
31
  * Buy Principal Token (PT) with market's Underlying Token.
@@ -25,7 +25,7 @@ import { APICall, APIPromise } from "../types/async.js";
25
25
  import { Result } from "../types/fp.js";
26
26
 
27
27
  /**
28
- * Sell Princpal Token (PT)
28
+ * Sell Principal Token (PT)
29
29
  *
30
30
  * @remarks
31
31
  * Sell Principal Token (PT) for the market's Underlying Token.
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.0",
64
+ sdkVersion: "0.4.1",
65
65
  genVersion: "2.616.1",
66
66
  userAgent:
67
- "speakeasy-sdk/typescript 0.4.0 2.616.1 0.0.1 @compass-labs/api-sdk",
67
+ "speakeasy-sdk/typescript 0.4.1 2.616.1 0.0.1 @compass-labs/api-sdk",
68
68
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.4.0",
22
+ currentVersion: "0.4.1",
23
23
  },
24
24
  });
25
25
 
@@ -97,7 +97,7 @@ export function createMCPServer(deps: {
97
97
  }) {
98
98
  const server = new McpServer({
99
99
  name: "CompassApiSDK",
100
- version: "0.4.0",
100
+ version: "0.4.1",
101
101
  });
102
102
 
103
103
  const client = new CompassApiSDKCore({
@@ -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 Princpal Token (PT)
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 Princpal Token (PT)
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 Princpal Token (PT)
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 Princpal Token (PT)
105
+ * Sell Principal Token (PT)
106
106
  *
107
107
  * @remarks
108
108
  * Sell Principal Token (PT) for the market's Underlying Token.