@compass-labs/api-sdk 0.5.44 → 0.5.45

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 (67) hide show
  1. package/bin/mcp-server.js +14 -8
  2. package/bin/mcp-server.js.map +11 -11
  3. package/dist/commonjs/funcs/skyBuy.d.ts +1 -1
  4. package/dist/commonjs/funcs/skyBuy.js +1 -1
  5. package/dist/commonjs/funcs/skyDeposit.d.ts +3 -1
  6. package/dist/commonjs/funcs/skyDeposit.d.ts.map +1 -1
  7. package/dist/commonjs/funcs/skyDeposit.js +3 -1
  8. package/dist/commonjs/funcs/skyDeposit.js.map +1 -1
  9. package/dist/commonjs/funcs/skyWithdraw.d.ts +5 -1
  10. package/dist/commonjs/funcs/skyWithdraw.d.ts.map +1 -1
  11. package/dist/commonjs/funcs/skyWithdraw.js +5 -1
  12. package/dist/commonjs/funcs/skyWithdraw.js.map +1 -1
  13. package/dist/commonjs/lib/config.d.ts +2 -2
  14. package/dist/commonjs/lib/config.js +2 -2
  15. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  16. package/dist/commonjs/mcp-server/server.js +1 -1
  17. package/dist/commonjs/mcp-server/tools/skyBuy.js +1 -1
  18. package/dist/commonjs/mcp-server/tools/skyBuy.js.map +1 -1
  19. package/dist/commonjs/mcp-server/tools/skyDeposit.d.ts.map +1 -1
  20. package/dist/commonjs/mcp-server/tools/skyDeposit.js +3 -1
  21. package/dist/commonjs/mcp-server/tools/skyDeposit.js.map +1 -1
  22. package/dist/commonjs/mcp-server/tools/skyWithdraw.d.ts.map +1 -1
  23. package/dist/commonjs/mcp-server/tools/skyWithdraw.js +5 -1
  24. package/dist/commonjs/mcp-server/tools/skyWithdraw.js.map +1 -1
  25. package/dist/commonjs/sdk/sky.d.ts +9 -3
  26. package/dist/commonjs/sdk/sky.d.ts.map +1 -1
  27. package/dist/commonjs/sdk/sky.js +9 -3
  28. package/dist/commonjs/sdk/sky.js.map +1 -1
  29. package/dist/esm/funcs/skyBuy.d.ts +1 -1
  30. package/dist/esm/funcs/skyBuy.js +1 -1
  31. package/dist/esm/funcs/skyDeposit.d.ts +3 -1
  32. package/dist/esm/funcs/skyDeposit.d.ts.map +1 -1
  33. package/dist/esm/funcs/skyDeposit.js +3 -1
  34. package/dist/esm/funcs/skyDeposit.js.map +1 -1
  35. package/dist/esm/funcs/skyWithdraw.d.ts +5 -1
  36. package/dist/esm/funcs/skyWithdraw.d.ts.map +1 -1
  37. package/dist/esm/funcs/skyWithdraw.js +5 -1
  38. package/dist/esm/funcs/skyWithdraw.js.map +1 -1
  39. package/dist/esm/lib/config.d.ts +2 -2
  40. package/dist/esm/lib/config.js +2 -2
  41. package/dist/esm/mcp-server/mcp-server.js +1 -1
  42. package/dist/esm/mcp-server/server.js +1 -1
  43. package/dist/esm/mcp-server/tools/skyBuy.js +1 -1
  44. package/dist/esm/mcp-server/tools/skyBuy.js.map +1 -1
  45. package/dist/esm/mcp-server/tools/skyDeposit.d.ts.map +1 -1
  46. package/dist/esm/mcp-server/tools/skyDeposit.js +3 -1
  47. package/dist/esm/mcp-server/tools/skyDeposit.js.map +1 -1
  48. package/dist/esm/mcp-server/tools/skyWithdraw.d.ts.map +1 -1
  49. package/dist/esm/mcp-server/tools/skyWithdraw.js +5 -1
  50. package/dist/esm/mcp-server/tools/skyWithdraw.js.map +1 -1
  51. package/dist/esm/sdk/sky.d.ts +9 -3
  52. package/dist/esm/sdk/sky.d.ts.map +1 -1
  53. package/dist/esm/sdk/sky.js +9 -3
  54. package/dist/esm/sdk/sky.js.map +1 -1
  55. package/docs/sdks/sky/README.md +9 -3
  56. package/jsr.json +1 -1
  57. package/package.json +1 -1
  58. package/src/funcs/skyBuy.ts +1 -1
  59. package/src/funcs/skyDeposit.ts +3 -1
  60. package/src/funcs/skyWithdraw.ts +5 -1
  61. package/src/lib/config.ts +2 -2
  62. package/src/mcp-server/mcp-server.ts +1 -1
  63. package/src/mcp-server/server.ts +1 -1
  64. package/src/mcp-server/tools/skyBuy.ts +1 -1
  65. package/src/mcp-server/tools/skyDeposit.ts +3 -1
  66. package/src/mcp-server/tools/skyWithdraw.ts +5 -1
  67. package/src/sdk/sky.ts +9 -3
@@ -1 +1 @@
1
- {"version":3,"file":"sky.d.ts","sourceRoot":"","sources":["../../../src/sdk/sky.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,GAAI,SAAQ,SAAS;IAChC;;;;;OAKG;IACG,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAQ/C;;;;;;;;;;;OAWG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,aAAa,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;IAQjC;;;;;;;;;;;OAWG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,cAAc,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;IAQjC;;;;;;;OAOG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;IAQjC;;;;;OAKG;IACG,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;CAOlC"}
1
+ {"version":3,"file":"sky.d.ts","sourceRoot":"","sources":["../../../src/sdk/sky.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,GAAI,SAAQ,SAAS;IAChC;;;;;OAKG;IACG,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAQ/C;;;;;;;;;;;OAWG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,aAAa,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;IAQjC;;;;;;;;;;;OAWG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,cAAc,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;IAQjC;;;;;;;;;OASG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;IAQjC;;;;;;;;;OASG;IACG,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC;CAOlC"}
@@ -28,7 +28,7 @@ export class Sky extends ClientSDK {
28
28
  * 'SkyDaiUsdsConverter' contract beforehand.
29
29
  *
30
30
  * If buying with USDC, user will need to set an allowance on the USDC contract for the
31
- * 'SkyDaiUsdsConverter' contract beforehand.
31
+ * 'SkyUsdcUsdsConverter' contract beforehand.
32
32
  */
33
33
  async buy(request, options) {
34
34
  return unwrapAsync(skyBuy(this, request, options));
@@ -52,7 +52,9 @@ export class Sky extends ClientSDK {
52
52
  * Deposit USDS
53
53
  *
54
54
  * @remarks
55
- * Deposit USDS for sUSDS to earn yield.
55
+ * Deposit USDS to earn yield. Deposited USDS is represented as sUSDS.
56
+ *
57
+ * Allowance must be set on USDS contract for UsdsVault.
56
58
  *
57
59
  * There are no fees.
58
60
  */
@@ -63,7 +65,11 @@ export class Sky extends ClientSDK {
63
65
  * Withdraw USDS
64
66
  *
65
67
  * @remarks
66
- * Withdraw USDS for sUSDS to stop earning yield.
68
+ * Withdraw USDS. Exchange yield-bearing sUSDS for USDS.
69
+ *
70
+ * Allowance must be set on USDS contract for UsdsVault.
71
+ *
72
+ * There are no fees.
67
73
  */
68
74
  async withdraw(request, options) {
69
75
  return unwrapAsync(skyWithdraw(this, request, options));
@@ -1 +1 @@
1
- {"version":3,"file":"sky.js","sourceRoot":"","sources":["../../../src/sdk/sky.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,GAAI,SAAQ,SAAS;IAChC;;;;;OAKG;IACH,KAAK,CAAC,QAAQ,CACZ,OAAsC,EACtC,OAAwB;QAExB,OAAO,WAAW,CAAC,WAAW,CAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,GAAG,CACP,OAAiC,EACjC,OAAwB;QAExB,OAAO,WAAW,CAAC,MAAM,CACvB,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;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ACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,IAAI,CACR,OAAkC,EAClC,OAAwB;QAExB,OAAO,WAAW,CAAC,OAAO,CACxB,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,OAAO,CACX,OAAqC,EACrC,OAAwB;QAExB,OAAO,WAAW,CAAC,UAAU,CAC3B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,QAAQ,CACZ,OAAsC,EACtC,OAAwB;QAExB,OAAO,WAAW,CAAC,WAAW,CAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -88,7 +88,7 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
88
88
  'SkyDaiUsdsConverter' contract beforehand.
89
89
 
90
90
  If buying with USDC, user will need to set an allowance on the USDC contract for the
91
- 'SkyDaiUsdsConverter' contract beforehand.
91
+ 'SkyUsdcUsdsConverter' contract beforehand.
92
92
 
93
93
  ### Example Usage
94
94
 
@@ -248,7 +248,9 @@ run();
248
248
 
249
249
  ## deposit
250
250
 
251
- Deposit USDS for sUSDS to earn yield.
251
+ Deposit USDS to earn yield. Deposited USDS is represented as sUSDS.
252
+
253
+ Allowance must be set on USDS contract for UsdsVault.
252
254
 
253
255
  There are no fees.
254
256
 
@@ -325,7 +327,11 @@ run();
325
327
 
326
328
  ## withdraw
327
329
 
328
- Withdraw USDS for sUSDS to stop earning yield.
330
+ Withdraw USDS. Exchange yield-bearing sUSDS for USDS.
331
+
332
+ Allowance must be set on USDS contract for UsdsVault.
333
+
334
+ There are no fees.
329
335
 
330
336
  ### Example Usage
331
337
 
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@compass-labs/api-sdk",
5
- "version": "0.5.44",
5
+ "version": "0.5.45",
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.5.44",
3
+ "version": "0.5.45",
4
4
  "author": "royalnine",
5
5
  "type": "module",
6
6
  "bin": {
@@ -35,7 +35,7 @@ import { Result } from "../types/fp.js";
35
35
  * 'SkyDaiUsdsConverter' contract beforehand.
36
36
  *
37
37
  * If buying with USDC, user will need to set an allowance on the USDC contract for the
38
- * 'SkyDaiUsdsConverter' contract beforehand.
38
+ * 'SkyUsdcUsdsConverter' contract beforehand.
39
39
  */
40
40
  export function skyBuy(
41
41
  client: CompassApiSDKCore,
@@ -29,7 +29,9 @@ import { Result } from "../types/fp.js";
29
29
  * Deposit USDS
30
30
  *
31
31
  * @remarks
32
- * Deposit USDS for sUSDS to earn yield.
32
+ * Deposit USDS to earn yield. Deposited USDS is represented as sUSDS.
33
+ *
34
+ * Allowance must be set on USDS contract for UsdsVault.
33
35
  *
34
36
  * There are no fees.
35
37
  */
@@ -29,7 +29,11 @@ import { Result } from "../types/fp.js";
29
29
  * Withdraw USDS
30
30
  *
31
31
  * @remarks
32
- * Withdraw USDS for sUSDS to stop earning yield.
32
+ * Withdraw USDS. Exchange yield-bearing sUSDS for USDS.
33
+ *
34
+ * Allowance must be set on USDS contract for UsdsVault.
35
+ *
36
+ * There are no fees.
33
37
  */
34
38
  export function skyWithdraw(
35
39
  client: CompassApiSDKCore,
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.5.44",
64
+ sdkVersion: "0.5.45",
65
65
  genVersion: "2.656.5",
66
66
  userAgent:
67
- "speakeasy-sdk/typescript 0.5.44 2.656.5 0.0.1 @compass-labs/api-sdk",
67
+ "speakeasy-sdk/typescript 0.5.45 2.656.5 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.5.44",
22
+ currentVersion: "0.5.45",
23
23
  },
24
24
  });
25
25
 
@@ -101,7 +101,7 @@ export function createMCPServer(deps: {
101
101
  }) {
102
102
  const server = new McpServer({
103
103
  name: "CompassApiSDK",
104
- version: "0.5.44",
104
+ version: "0.5.45",
105
105
  });
106
106
 
107
107
  const client = new CompassApiSDKCore({
@@ -20,7 +20,7 @@ If buying with DAI, user will need to set an allowance on the DAI contract for t
20
20
  'SkyDaiUsdsConverter' contract beforehand.
21
21
 
22
22
  If buying with USDC, user will need to set an allowance on the USDC contract for the
23
- 'SkyDaiUsdsConverter' contract beforehand.`,
23
+ 'SkyUsdcUsdsConverter' contract beforehand.`,
24
24
  args,
25
25
  tool: async (client, args, ctx) => {
26
26
  const [result, apiCall] = await skyBuy(
@@ -14,7 +14,9 @@ export const tool$skyDeposit: ToolDefinition<typeof args> = {
14
14
  name: "sky-deposit",
15
15
  description: `Deposit USDS
16
16
 
17
- Deposit USDS for sUSDS to earn yield.
17
+ Deposit USDS to earn yield. Deposited USDS is represented as sUSDS.
18
+
19
+ Allowance must be set on USDS contract for UsdsVault.
18
20
 
19
21
  There are no fees.`,
20
22
  args,
@@ -14,7 +14,11 @@ export const tool$skyWithdraw: ToolDefinition<typeof args> = {
14
14
  name: "sky-withdraw",
15
15
  description: `Withdraw USDS
16
16
 
17
- Withdraw USDS for sUSDS to stop earning yield.`,
17
+ Withdraw USDS. Exchange yield-bearing sUSDS for USDS.
18
+
19
+ Allowance must be set on USDS contract for UsdsVault.
20
+
21
+ There are no fees.`,
18
22
  args,
19
23
  tool: async (client, args, ctx) => {
20
24
  const [result, apiCall] = await skyWithdraw(
package/src/sdk/sky.ts CHANGED
@@ -40,7 +40,7 @@ export class Sky extends ClientSDK {
40
40
  * 'SkyDaiUsdsConverter' contract beforehand.
41
41
  *
42
42
  * If buying with USDC, user will need to set an allowance on the USDC contract for the
43
- * 'SkyDaiUsdsConverter' contract beforehand.
43
+ * 'SkyUsdcUsdsConverter' contract beforehand.
44
44
  */
45
45
  async buy(
46
46
  request: components.SkyBuyRequest,
@@ -80,7 +80,9 @@ export class Sky extends ClientSDK {
80
80
  * Deposit USDS
81
81
  *
82
82
  * @remarks
83
- * Deposit USDS for sUSDS to earn yield.
83
+ * Deposit USDS to earn yield. Deposited USDS is represented as sUSDS.
84
+ *
85
+ * Allowance must be set on USDS contract for UsdsVault.
84
86
  *
85
87
  * There are no fees.
86
88
  */
@@ -99,7 +101,11 @@ export class Sky extends ClientSDK {
99
101
  * Withdraw USDS
100
102
  *
101
103
  * @remarks
102
- * Withdraw USDS for sUSDS to stop earning yield.
104
+ * Withdraw USDS. Exchange yield-bearing sUSDS for USDS.
105
+ *
106
+ * Allowance must be set on USDS contract for UsdsVault.
107
+ *
108
+ * There are no fees.
103
109
  */
104
110
  async withdraw(
105
111
  request: components.SkyWithdrawRequest,