@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.
- package/bin/mcp-server.js +14 -8
- package/bin/mcp-server.js.map +11 -11
- package/dist/commonjs/funcs/skyBuy.d.ts +1 -1
- package/dist/commonjs/funcs/skyBuy.js +1 -1
- package/dist/commonjs/funcs/skyDeposit.d.ts +3 -1
- package/dist/commonjs/funcs/skyDeposit.d.ts.map +1 -1
- package/dist/commonjs/funcs/skyDeposit.js +3 -1
- package/dist/commonjs/funcs/skyDeposit.js.map +1 -1
- package/dist/commonjs/funcs/skyWithdraw.d.ts +5 -1
- package/dist/commonjs/funcs/skyWithdraw.d.ts.map +1 -1
- package/dist/commonjs/funcs/skyWithdraw.js +5 -1
- package/dist/commonjs/funcs/skyWithdraw.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/mcp-server/tools/skyBuy.js +1 -1
- package/dist/commonjs/mcp-server/tools/skyBuy.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/skyDeposit.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/skyDeposit.js +3 -1
- package/dist/commonjs/mcp-server/tools/skyDeposit.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/skyWithdraw.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/skyWithdraw.js +5 -1
- package/dist/commonjs/mcp-server/tools/skyWithdraw.js.map +1 -1
- package/dist/commonjs/sdk/sky.d.ts +9 -3
- package/dist/commonjs/sdk/sky.d.ts.map +1 -1
- package/dist/commonjs/sdk/sky.js +9 -3
- package/dist/commonjs/sdk/sky.js.map +1 -1
- package/dist/esm/funcs/skyBuy.d.ts +1 -1
- package/dist/esm/funcs/skyBuy.js +1 -1
- package/dist/esm/funcs/skyDeposit.d.ts +3 -1
- package/dist/esm/funcs/skyDeposit.d.ts.map +1 -1
- package/dist/esm/funcs/skyDeposit.js +3 -1
- package/dist/esm/funcs/skyDeposit.js.map +1 -1
- package/dist/esm/funcs/skyWithdraw.d.ts +5 -1
- package/dist/esm/funcs/skyWithdraw.d.ts.map +1 -1
- package/dist/esm/funcs/skyWithdraw.js +5 -1
- package/dist/esm/funcs/skyWithdraw.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/mcp-server/tools/skyBuy.js +1 -1
- package/dist/esm/mcp-server/tools/skyBuy.js.map +1 -1
- package/dist/esm/mcp-server/tools/skyDeposit.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/skyDeposit.js +3 -1
- package/dist/esm/mcp-server/tools/skyDeposit.js.map +1 -1
- package/dist/esm/mcp-server/tools/skyWithdraw.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/skyWithdraw.js +5 -1
- package/dist/esm/mcp-server/tools/skyWithdraw.js.map +1 -1
- package/dist/esm/sdk/sky.d.ts +9 -3
- package/dist/esm/sdk/sky.d.ts.map +1 -1
- package/dist/esm/sdk/sky.js +9 -3
- package/dist/esm/sdk/sky.js.map +1 -1
- package/docs/sdks/sky/README.md +9 -3
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/skyBuy.ts +1 -1
- package/src/funcs/skyDeposit.ts +3 -1
- package/src/funcs/skyWithdraw.ts +5 -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/skyBuy.ts +1 -1
- package/src/mcp-server/tools/skyDeposit.ts +3 -1
- package/src/mcp-server/tools/skyWithdraw.ts +5 -1
- 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
|
|
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"}
|
package/dist/esm/sdk/sky.js
CHANGED
|
@@ -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
|
-
* '
|
|
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
|
|
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
|
|
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));
|
package/dist/esm/sdk/sky.js.map
CHANGED
|
@@ -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;;;;;;;;;;;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
|
|
1
|
+
{"version":3,"file":"sky.js","sourceRoot":"","sources":["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,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/docs/sdks/sky/README.md
CHANGED
|
@@ -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
|
-
'
|
|
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
|
|
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
|
|
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
package/package.json
CHANGED
package/src/funcs/skyBuy.ts
CHANGED
|
@@ -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
|
-
* '
|
|
38
|
+
* 'SkyUsdcUsdsConverter' contract beforehand.
|
|
39
39
|
*/
|
|
40
40
|
export function skyBuy(
|
|
41
41
|
client: CompassApiSDKCore,
|
package/src/funcs/skyDeposit.ts
CHANGED
|
@@ -29,7 +29,9 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Deposit USDS
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Deposit USDS
|
|
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
|
*/
|
package/src/funcs/skyWithdraw.ts
CHANGED
|
@@ -29,7 +29,11 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Withdraw USDS
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Withdraw USDS
|
|
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.
|
|
64
|
+
sdkVersion: "0.5.45",
|
|
65
65
|
genVersion: "2.656.5",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 0.5.
|
|
67
|
+
"speakeasy-sdk/typescript 0.5.45 2.656.5 0.0.1 @compass-labs/api-sdk",
|
|
68
68
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -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
|
-
'
|
|
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
|
|
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
|
|
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
|
-
* '
|
|
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
|
|
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
|
|
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,
|