@compass-labs/api-sdk 1.0.5 → 1.0.7
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 +17 -7
- package/bin/mcp-server.js.map +9 -9
- package/dist/commonjs/funcs/aaveV3AaveHistoricalTransactions.d.ts +4 -0
- package/dist/commonjs/funcs/aaveV3AaveHistoricalTransactions.d.ts.map +1 -1
- package/dist/commonjs/funcs/aaveV3AaveHistoricalTransactions.js +4 -0
- package/dist/commonjs/funcs/aaveV3AaveHistoricalTransactions.js.map +1 -1
- package/dist/commonjs/funcs/ethenaEthenaVault.d.ts +7 -0
- package/dist/commonjs/funcs/ethenaEthenaVault.d.ts.map +1 -1
- package/dist/commonjs/funcs/ethenaEthenaVault.js +7 -0
- package/dist/commonjs/funcs/ethenaEthenaVault.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/aaveV3AaveHistoricalTransactions.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/aaveV3AaveHistoricalTransactions.js +5 -1
- package/dist/commonjs/mcp-server/tools/aaveV3AaveHistoricalTransactions.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/ethenaEthenaVault.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/ethenaEthenaVault.js +7 -1
- package/dist/commonjs/mcp-server/tools/ethenaEthenaVault.js.map +1 -1
- package/dist/commonjs/sdk/aavev3.d.ts +4 -0
- package/dist/commonjs/sdk/aavev3.d.ts.map +1 -1
- package/dist/commonjs/sdk/aavev3.js +4 -0
- package/dist/commonjs/sdk/aavev3.js.map +1 -1
- package/dist/commonjs/sdk/ethena.d.ts +7 -0
- package/dist/commonjs/sdk/ethena.d.ts.map +1 -1
- package/dist/commonjs/sdk/ethena.js +7 -0
- package/dist/commonjs/sdk/ethena.js.map +1 -1
- package/dist/esm/funcs/aaveV3AaveHistoricalTransactions.d.ts +4 -0
- package/dist/esm/funcs/aaveV3AaveHistoricalTransactions.d.ts.map +1 -1
- package/dist/esm/funcs/aaveV3AaveHistoricalTransactions.js +4 -0
- package/dist/esm/funcs/aaveV3AaveHistoricalTransactions.js.map +1 -1
- package/dist/esm/funcs/ethenaEthenaVault.d.ts +7 -0
- package/dist/esm/funcs/ethenaEthenaVault.d.ts.map +1 -1
- package/dist/esm/funcs/ethenaEthenaVault.js +7 -0
- package/dist/esm/funcs/ethenaEthenaVault.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/aaveV3AaveHistoricalTransactions.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/aaveV3AaveHistoricalTransactions.js +5 -1
- package/dist/esm/mcp-server/tools/aaveV3AaveHistoricalTransactions.js.map +1 -1
- package/dist/esm/mcp-server/tools/ethenaEthenaVault.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/ethenaEthenaVault.js +7 -1
- package/dist/esm/mcp-server/tools/ethenaEthenaVault.js.map +1 -1
- package/dist/esm/sdk/aavev3.d.ts +4 -0
- package/dist/esm/sdk/aavev3.d.ts.map +1 -1
- package/dist/esm/sdk/aavev3.js +4 -0
- package/dist/esm/sdk/aavev3.js.map +1 -1
- package/dist/esm/sdk/ethena.d.ts +7 -0
- package/dist/esm/sdk/ethena.d.ts.map +1 -1
- package/dist/esm/sdk/ethena.js +7 -0
- package/dist/esm/sdk/ethena.js.map +1 -1
- package/docs/sdks/aavev3/README.md +4 -0
- package/docs/sdks/ethena/README.md +5 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/aaveV3AaveHistoricalTransactions.ts +4 -0
- package/src/funcs/ethenaEthenaVault.ts +7 -0
- 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/aaveV3AaveHistoricalTransactions.ts +5 -1
- package/src/mcp-server/tools/ethenaEthenaVault.ts +7 -1
- package/src/sdk/aavev3.ts +4 -0
- package/src/sdk/ethena.ts +7 -0
package/dist/esm/sdk/ethena.d.ts
CHANGED
|
@@ -4,6 +4,13 @@ import * as operations from "../models/operations/index.js";
|
|
|
4
4
|
export declare class Ethena extends ClientSDK {
|
|
5
5
|
/**
|
|
6
6
|
* Get Vault & User Position
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Get data & user Position for the Ethena vault on Ethereum.
|
|
10
|
+
*
|
|
11
|
+
* Vault address: 0x9d39a5de30e57443bff2a8307a4256c8797a3497
|
|
12
|
+
*
|
|
13
|
+
* The user position is only included in the response if 'user_address' parameter is included in the request.
|
|
7
14
|
*/
|
|
8
15
|
ethenaVault(request: operations.V1EthenaVaultRequest, options?: RequestOptions): Promise<components.EthenaGetVaultResponse>;
|
|
9
16
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ethena.d.ts","sourceRoot":"","sources":["../../../src/sdk/ethena.ts"],"names":[],"mappings":"AAQA,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,MAAO,SAAQ,SAAS;IACnC
|
|
1
|
+
{"version":3,"file":"ethena.d.ts","sourceRoot":"","sources":["../../../src/sdk/ethena.ts"],"names":[],"mappings":"AAQA,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,MAAO,SAAQ,SAAS;IACnC;;;;;;;;;OASG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;;;;;;;;;;OAcG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;;;;;;;;;;;;OAgBG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0CAA0C,CAAC;CAOlE"}
|
package/dist/esm/sdk/ethena.js
CHANGED
|
@@ -10,6 +10,13 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
10
10
|
export class Ethena extends ClientSDK {
|
|
11
11
|
/**
|
|
12
12
|
* Get Vault & User Position
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Get data & user Position for the Ethena vault on Ethereum.
|
|
16
|
+
*
|
|
17
|
+
* Vault address: 0x9d39a5de30e57443bff2a8307a4256c8797a3497
|
|
18
|
+
*
|
|
19
|
+
* The user position is only included in the response if 'user_address' parameter is included in the request.
|
|
13
20
|
*/
|
|
14
21
|
async ethenaVault(request, options) {
|
|
15
22
|
return unwrapAsync(ethenaEthenaVault(this, request, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ethena.js","sourceRoot":"","sources":["../../../src/sdk/ethena.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,E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IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CAAC,aAAa,CACjB,OAAkD,EAClD,OAAwB;QAExB,OAAO,WAAW,CAAC,mBAAmB,CACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -716,6 +716,10 @@ repayments. Each transaction includes details such as the token, amount, timesta
|
|
|
716
716
|
and transaction type. This provides a comprehensive view of the user's historical
|
|
717
717
|
activity within the AAVE protocol.
|
|
718
718
|
|
|
719
|
+
⚠️ Data comes from the official Aave subgraph (
|
|
720
|
+
https://github.com/aave/protocol-subgraphs)
|
|
721
|
+
and thus this particular endpoint may be less reliable than our other endpoints. ⚠️
|
|
722
|
+
|
|
719
723
|
### Example Usage
|
|
720
724
|
|
|
721
725
|
<!-- UsageSnippet language="typescript" operationID="v1_aave_historical_transactions" method="get" path="/v1/aave/historical_transactions" -->
|
|
@@ -12,7 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
## ethenaVault
|
|
14
14
|
|
|
15
|
-
Get
|
|
15
|
+
Get data & user Position for the Ethena vault on Ethereum.
|
|
16
|
+
|
|
17
|
+
Vault address: 0x9d39a5de30e57443bff2a8307a4256c8797a3497
|
|
18
|
+
|
|
19
|
+
The user position is only included in the response if 'user_address' parameter is included in the request.
|
|
16
20
|
|
|
17
21
|
### Example Usage
|
|
18
22
|
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -36,6 +36,10 @@ import { Result } from "../types/fp.js";
|
|
|
36
36
|
* repayments. Each transaction includes details such as the token, amount, timestamp,
|
|
37
37
|
* and transaction type. This provides a comprehensive view of the user's historical
|
|
38
38
|
* activity within the AAVE protocol.
|
|
39
|
+
*
|
|
40
|
+
* ⚠️ Data comes from the official Aave subgraph (
|
|
41
|
+
* https://github.com/aave/protocol-subgraphs)
|
|
42
|
+
* and thus this particular endpoint may be less reliable than our other endpoints. ⚠️
|
|
39
43
|
*/
|
|
40
44
|
export function aaveV3AaveHistoricalTransactions(
|
|
41
45
|
client: CompassApiSDKCore,
|
|
@@ -28,6 +28,13 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Get Vault & User Position
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Get data & user Position for the Ethena vault on Ethereum.
|
|
34
|
+
*
|
|
35
|
+
* Vault address: 0x9d39a5de30e57443bff2a8307a4256c8797a3497
|
|
36
|
+
*
|
|
37
|
+
* The user position is only included in the response if 'user_address' parameter is included in the request.
|
|
31
38
|
*/
|
|
32
39
|
export function ethenaEthenaVault(
|
|
33
40
|
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: "1.0.
|
|
64
|
+
sdkVersion: "1.0.7",
|
|
65
65
|
genVersion: "2.675.0",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 1.0.
|
|
67
|
+
"speakeasy-sdk/typescript 1.0.7 2.675.0 0.0.1 @compass-labs/api-sdk",
|
|
68
68
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -21,7 +21,11 @@ This endpoint retrieves historical transactions for a user on the AAVE platform.
|
|
|
21
21
|
It returns a list of transactions including deposits, withdrawals, borrows, and
|
|
22
22
|
repayments. Each transaction includes details such as the token, amount, timestamp,
|
|
23
23
|
and transaction type. This provides a comprehensive view of the user's historical
|
|
24
|
-
activity within the AAVE protocol
|
|
24
|
+
activity within the AAVE protocol.
|
|
25
|
+
|
|
26
|
+
⚠️ Data comes from the official Aave subgraph (
|
|
27
|
+
https://github.com/aave/protocol-subgraphs)
|
|
28
|
+
and thus this particular endpoint may be less reliable than our other endpoints. ⚠️`,
|
|
25
29
|
args,
|
|
26
30
|
tool: async (client, args, ctx) => {
|
|
27
31
|
const [result, apiCall] = await aaveV3AaveHistoricalTransactions(
|
|
@@ -12,7 +12,13 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$ethenaEthenaVault: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "ethena-ethena-vault",
|
|
15
|
-
description: `Get Vault & User Position
|
|
15
|
+
description: `Get Vault & User Position
|
|
16
|
+
|
|
17
|
+
Get data & user Position for the Ethena vault on Ethereum.
|
|
18
|
+
|
|
19
|
+
Vault address: 0x9d39a5de30e57443bff2a8307a4256c8797a3497
|
|
20
|
+
|
|
21
|
+
The user position is only included in the response if 'user_address' parameter is included in the request.`,
|
|
16
22
|
args,
|
|
17
23
|
tool: async (client, args, ctx) => {
|
|
18
24
|
const [result, apiCall] = await ethenaEthenaVault(
|
package/src/sdk/aavev3.ts
CHANGED
|
@@ -242,6 +242,10 @@ export class AaveV3 extends ClientSDK {
|
|
|
242
242
|
* repayments. Each transaction includes details such as the token, amount, timestamp,
|
|
243
243
|
* and transaction type. This provides a comprehensive view of the user's historical
|
|
244
244
|
* activity within the AAVE protocol.
|
|
245
|
+
*
|
|
246
|
+
* ⚠️ Data comes from the official Aave subgraph (
|
|
247
|
+
* https://github.com/aave/protocol-subgraphs)
|
|
248
|
+
* and thus this particular endpoint may be less reliable than our other endpoints. ⚠️
|
|
245
249
|
*/
|
|
246
250
|
async aaveHistoricalTransactions(
|
|
247
251
|
request: operations.V1AaveHistoricalTransactionsRequest,
|
package/src/sdk/ethena.ts
CHANGED
|
@@ -14,6 +14,13 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
14
14
|
export class Ethena extends ClientSDK {
|
|
15
15
|
/**
|
|
16
16
|
* Get Vault & User Position
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Get data & user Position for the Ethena vault on Ethereum.
|
|
20
|
+
*
|
|
21
|
+
* Vault address: 0x9d39a5de30e57443bff2a8307a4256c8797a3497
|
|
22
|
+
*
|
|
23
|
+
* The user position is only included in the response if 'user_address' parameter is included in the request.
|
|
17
24
|
*/
|
|
18
25
|
async ethenaVault(
|
|
19
26
|
request: operations.V1EthenaVaultRequest,
|