@compass-labs/api-sdk 0.5.64 → 0.5.65
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 +106 -6
- package/bin/mcp-server.js.map +10 -8
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/useroperation.d.ts +18 -0
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +26 -0
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/models/components/vaultdepositparams.d.ts +68 -0
- package/dist/commonjs/models/components/vaultdepositparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/vaultdepositparams.js +109 -0
- package/dist/commonjs/models/components/vaultdepositparams.js.map +1 -0
- package/dist/commonjs/models/components/vaultwithdrawparams.d.ts +44 -0
- package/dist/commonjs/models/components/vaultwithdrawparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/vaultwithdrawparams.js +86 -0
- package/dist/commonjs/models/components/vaultwithdrawparams.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/useroperation.d.ts +18 -0
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +26 -0
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/models/components/vaultdepositparams.d.ts +68 -0
- package/dist/esm/models/components/vaultdepositparams.d.ts.map +1 -0
- package/dist/esm/models/components/vaultdepositparams.js +69 -0
- package/dist/esm/models/components/vaultdepositparams.js.map +1 -0
- package/dist/esm/models/components/vaultwithdrawparams.d.ts +44 -0
- package/dist/esm/models/components/vaultwithdrawparams.d.ts.map +1 -0
- package/dist/esm/models/components/vaultwithdrawparams.js +48 -0
- package/dist/esm/models/components/vaultwithdrawparams.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +6 -6
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/index.ts +2 -0
- package/src/models/components/useroperation.ts +60 -0
- package/src/models/components/vaultdepositparams.ts +151 -0
- package/src/models/components/vaultwithdrawparams.ts +98 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34264,9 +34264,9 @@ var init_config = __esm(() => {
|
|
|
34264
34264
|
SDK_METADATA = {
|
|
34265
34265
|
language: "typescript",
|
|
34266
34266
|
openapiDocVersion: "0.0.1",
|
|
34267
|
-
sdkVersion: "0.5.
|
|
34268
|
-
genVersion: "2.
|
|
34269
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34267
|
+
sdkVersion: "0.5.65",
|
|
34268
|
+
genVersion: "2.668.4",
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 0.5.65 2.668.4 0.0.1 @compass-labs/api-sdk"
|
|
34270
34270
|
};
|
|
34271
34271
|
});
|
|
34272
34272
|
|
|
@@ -39251,6 +39251,78 @@ var init_unwrapwethparams = __esm(() => {
|
|
|
39251
39251
|
})(UnwrapWethParams$ ||= {});
|
|
39252
39252
|
});
|
|
39253
39253
|
|
|
39254
|
+
// src/models/components/vaultdepositparams.ts
|
|
39255
|
+
var VaultDepositParamsAmount$inboundSchema, VaultDepositParamsAmount$outboundSchema, VaultDepositParamsAmount$, VaultDepositParams$inboundSchema, VaultDepositParams$outboundSchema, VaultDepositParams$;
|
|
39256
|
+
var init_vaultdepositparams = __esm(() => {
|
|
39257
|
+
init_zod();
|
|
39258
|
+
init_primitives();
|
|
39259
|
+
VaultDepositParamsAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
39260
|
+
VaultDepositParamsAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
39261
|
+
((VaultDepositParamsAmount$) => {
|
|
39262
|
+
VaultDepositParamsAmount$.inboundSchema = VaultDepositParamsAmount$inboundSchema;
|
|
39263
|
+
VaultDepositParamsAmount$.outboundSchema = VaultDepositParamsAmount$outboundSchema;
|
|
39264
|
+
})(VaultDepositParamsAmount$ ||= {});
|
|
39265
|
+
VaultDepositParams$inboundSchema = objectType({
|
|
39266
|
+
action_type: literalType("VAULT_DEPOSIT").default("VAULT_DEPOSIT"),
|
|
39267
|
+
vault_address: stringType(),
|
|
39268
|
+
amount: unionType([numberType(), stringType()]),
|
|
39269
|
+
receiver: nullableType(stringType()).optional()
|
|
39270
|
+
}).transform((v2) => {
|
|
39271
|
+
return remap(v2, {
|
|
39272
|
+
action_type: "actionType",
|
|
39273
|
+
vault_address: "vaultAddress"
|
|
39274
|
+
});
|
|
39275
|
+
});
|
|
39276
|
+
VaultDepositParams$outboundSchema = objectType({
|
|
39277
|
+
actionType: literalType("VAULT_DEPOSIT").default("VAULT_DEPOSIT"),
|
|
39278
|
+
vaultAddress: stringType(),
|
|
39279
|
+
amount: unionType([numberType(), stringType()]),
|
|
39280
|
+
receiver: nullableType(stringType()).optional()
|
|
39281
|
+
}).transform((v2) => {
|
|
39282
|
+
return remap(v2, {
|
|
39283
|
+
actionType: "action_type",
|
|
39284
|
+
vaultAddress: "vault_address"
|
|
39285
|
+
});
|
|
39286
|
+
});
|
|
39287
|
+
((VaultDepositParams$) => {
|
|
39288
|
+
VaultDepositParams$.inboundSchema = VaultDepositParams$inboundSchema;
|
|
39289
|
+
VaultDepositParams$.outboundSchema = VaultDepositParams$outboundSchema;
|
|
39290
|
+
})(VaultDepositParams$ ||= {});
|
|
39291
|
+
});
|
|
39292
|
+
|
|
39293
|
+
// src/models/components/vaultwithdrawparams.ts
|
|
39294
|
+
var VaultWithdrawParams$inboundSchema, VaultWithdrawParams$outboundSchema, VaultWithdrawParams$;
|
|
39295
|
+
var init_vaultwithdrawparams = __esm(() => {
|
|
39296
|
+
init_zod();
|
|
39297
|
+
init_primitives();
|
|
39298
|
+
VaultWithdrawParams$inboundSchema = objectType({
|
|
39299
|
+
action_type: literalType("VAULT_WITHDRAW").default("VAULT_WITHDRAW"),
|
|
39300
|
+
vault_address: stringType(),
|
|
39301
|
+
amount: anyType().optional(),
|
|
39302
|
+
receiver: nullableType(stringType()).optional()
|
|
39303
|
+
}).transform((v2) => {
|
|
39304
|
+
return remap(v2, {
|
|
39305
|
+
action_type: "actionType",
|
|
39306
|
+
vault_address: "vaultAddress"
|
|
39307
|
+
});
|
|
39308
|
+
});
|
|
39309
|
+
VaultWithdrawParams$outboundSchema = objectType({
|
|
39310
|
+
actionType: literalType("VAULT_WITHDRAW").default("VAULT_WITHDRAW"),
|
|
39311
|
+
vaultAddress: stringType(),
|
|
39312
|
+
amount: anyType().optional(),
|
|
39313
|
+
receiver: nullableType(stringType()).optional()
|
|
39314
|
+
}).transform((v2) => {
|
|
39315
|
+
return remap(v2, {
|
|
39316
|
+
actionType: "action_type",
|
|
39317
|
+
vaultAddress: "vault_address"
|
|
39318
|
+
});
|
|
39319
|
+
});
|
|
39320
|
+
((VaultWithdrawParams$) => {
|
|
39321
|
+
VaultWithdrawParams$.inboundSchema = VaultWithdrawParams$inboundSchema;
|
|
39322
|
+
VaultWithdrawParams$.outboundSchema = VaultWithdrawParams$outboundSchema;
|
|
39323
|
+
})(VaultWithdrawParams$ ||= {});
|
|
39324
|
+
});
|
|
39325
|
+
|
|
39254
39326
|
// src/models/components/wrapethparams.ts
|
|
39255
39327
|
var WrapEthParamsAmount$inboundSchema, WrapEthParamsAmount$outboundSchema, WrapEthParamsAmount$, WrapEthParams$inboundSchema, WrapEthParams$outboundSchema, WrapEthParams$;
|
|
39256
39328
|
var init_wrapethparams = __esm(() => {
|
|
@@ -39324,6 +39396,8 @@ var init_useroperation = __esm(() => {
|
|
|
39324
39396
|
init_uniswapsellexactlyparams();
|
|
39325
39397
|
init_uniswapwithdrawliquidityprovisionparams();
|
|
39326
39398
|
init_unwrapwethparams();
|
|
39399
|
+
init_vaultdepositparams();
|
|
39400
|
+
init_vaultwithdrawparams();
|
|
39327
39401
|
init_wrapethparams();
|
|
39328
39402
|
Body$inboundSchema = unionType([
|
|
39329
39403
|
AerodromeSlipstreamMintLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
@@ -39398,6 +39472,12 @@ var init_useroperation = __esm(() => {
|
|
|
39398
39472
|
UniswapWithdrawLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
39399
39473
|
action_type: literalType("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION")
|
|
39400
39474
|
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39475
|
+
VaultDepositParams$inboundSchema.and(objectType({ action_type: literalType("VAULT_DEPOSIT") }).transform((v2) => ({
|
|
39476
|
+
actionType: v2.action_type
|
|
39477
|
+
}))),
|
|
39478
|
+
VaultWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("VAULT_WITHDRAW") }).transform((v2) => ({
|
|
39479
|
+
actionType: v2.action_type
|
|
39480
|
+
}))),
|
|
39401
39481
|
PendleRedeemYieldParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39402
39482
|
SkyDepositParams$inboundSchema.and(objectType({ action_type: literalType("SKY_DEPOSIT") }).transform((v2) => ({
|
|
39403
39483
|
actionType: v2.action_type
|
|
@@ -39487,6 +39567,12 @@ var init_useroperation = __esm(() => {
|
|
|
39487
39567
|
UniswapWithdrawLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
39488
39568
|
actionType: literalType("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION")
|
|
39489
39569
|
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39570
|
+
VaultDepositParams$outboundSchema.and(objectType({ actionType: literalType("VAULT_DEPOSIT") }).transform((v2) => ({
|
|
39571
|
+
action_type: v2.actionType
|
|
39572
|
+
}))),
|
|
39573
|
+
VaultWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("VAULT_WITHDRAW") }).transform((v2) => ({
|
|
39574
|
+
action_type: v2.actionType
|
|
39575
|
+
}))),
|
|
39490
39576
|
PendleRedeemYieldParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39491
39577
|
SkyDepositParams$outboundSchema.and(objectType({ actionType: literalType("SKY_DEPOSIT") }).transform((v2) => ({
|
|
39492
39578
|
action_type: v2.actionType
|
|
@@ -39579,6 +39665,12 @@ var init_useroperation = __esm(() => {
|
|
|
39579
39665
|
UniswapWithdrawLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
39580
39666
|
action_type: literalType("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION")
|
|
39581
39667
|
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39668
|
+
VaultDepositParams$inboundSchema.and(objectType({ action_type: literalType("VAULT_DEPOSIT") }).transform((v2) => ({
|
|
39669
|
+
actionType: v2.action_type
|
|
39670
|
+
}))),
|
|
39671
|
+
VaultWithdrawParams$inboundSchema.and(objectType({ action_type: literalType("VAULT_WITHDRAW") }).transform((v2) => ({
|
|
39672
|
+
actionType: v2.action_type
|
|
39673
|
+
}))),
|
|
39582
39674
|
PendleRedeemYieldParams$inboundSchema.and(objectType({ action_type: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39583
39675
|
SkyDepositParams$inboundSchema.and(objectType({ action_type: literalType("SKY_DEPOSIT") }).transform((v2) => ({
|
|
39584
39676
|
actionType: v2.action_type
|
|
@@ -39670,6 +39762,12 @@ var init_useroperation = __esm(() => {
|
|
|
39670
39762
|
UniswapWithdrawLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
39671
39763
|
actionType: literalType("UNISWAP_WITHDRAW_LIQUIDITY_PROVISION")
|
|
39672
39764
|
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39765
|
+
VaultDepositParams$outboundSchema.and(objectType({ actionType: literalType("VAULT_DEPOSIT") }).transform((v2) => ({
|
|
39766
|
+
action_type: v2.actionType
|
|
39767
|
+
}))),
|
|
39768
|
+
VaultWithdrawParams$outboundSchema.and(objectType({ actionType: literalType("VAULT_WITHDRAW") }).transform((v2) => ({
|
|
39769
|
+
action_type: v2.actionType
|
|
39770
|
+
}))),
|
|
39673
39771
|
PendleRedeemYieldParams$outboundSchema.and(objectType({ actionType: literalType("PENDLE_REDEEM_YIELD") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39674
39772
|
SkyDepositParams$outboundSchema.and(objectType({ actionType: literalType("SKY_DEPOSIT") }).transform((v2) => ({
|
|
39675
39773
|
action_type: v2.actionType
|
|
@@ -43555,9 +43653,11 @@ var init_components = __esm(() => {
|
|
|
43555
43653
|
init_userstate();
|
|
43556
43654
|
init_validationerror();
|
|
43557
43655
|
init_vault();
|
|
43656
|
+
init_vaultdepositparams();
|
|
43558
43657
|
init_vaultdepositrequest();
|
|
43559
43658
|
init_vaultgetvaultresponse();
|
|
43560
43659
|
init_vaultposition();
|
|
43660
|
+
init_vaultwithdrawparams();
|
|
43561
43661
|
init_vaultwithdrawrequest();
|
|
43562
43662
|
init_weeklyapys();
|
|
43563
43663
|
init_wrapethparams();
|
|
@@ -55459,7 +55559,7 @@ it to be traded on DeFi protocols.`,
|
|
|
55459
55559
|
function createMCPServer(deps) {
|
|
55460
55560
|
const server = new McpServer({
|
|
55461
55561
|
name: "CompassApiSDK",
|
|
55462
|
-
version: "0.5.
|
|
55562
|
+
version: "0.5.65"
|
|
55463
55563
|
});
|
|
55464
55564
|
const client = new CompassApiSDKCore({
|
|
55465
55565
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -56835,7 +56935,7 @@ var routes = ln({
|
|
|
56835
56935
|
var app = _e(routes, {
|
|
56836
56936
|
name: "mcp",
|
|
56837
56937
|
versionInfo: {
|
|
56838
|
-
currentVersion: "0.5.
|
|
56938
|
+
currentVersion: "0.5.65"
|
|
56839
56939
|
}
|
|
56840
56940
|
});
|
|
56841
56941
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -56843,5 +56943,5 @@ export {
|
|
|
56843
56943
|
app
|
|
56844
56944
|
};
|
|
56845
56945
|
|
|
56846
|
-
//# debugId=
|
|
56946
|
+
//# debugId=5450AB69EFD2A3A264756E2164756E21
|
|
56847
56947
|
//# sourceMappingURL=mcp-server.js.map
|