@compass-labs/api-sdk 0.5.26 → 0.5.28
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 +175 -103
- package/bin/mcp-server.js.map +28 -27
- 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/useroperation.d.ts +9 -0
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +13 -0
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/models/components/userstate.d.ts +2 -2
- package/dist/commonjs/models/components/userstate.d.ts.map +1 -1
- package/dist/commonjs/models/components/userstate.js +2 -2
- package/dist/commonjs/models/components/userstate.js.map +1 -1
- package/dist/commonjs/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aavehistoricaltransactions.js +4 -4
- package/dist/commonjs/models/operations/aavehistoricaltransactions.js.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.js +4 -4
- package/dist/commonjs/models/operations/aaveuserpositionpertoken.js.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
- package/dist/commonjs/models/operations/aaveuserpositionsummary.js +4 -4
- package/dist/commonjs/models/operations/aaveuserpositionsummary.js.map +1 -1
- 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/useroperation.d.ts +9 -0
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +13 -0
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/models/components/userstate.d.ts +2 -2
- package/dist/esm/models/components/userstate.d.ts.map +1 -1
- package/dist/esm/models/components/userstate.js +2 -2
- package/dist/esm/models/components/userstate.js.map +1 -1
- package/dist/esm/models/operations/aavehistoricaltransactions.d.ts.map +1 -1
- package/dist/esm/models/operations/aavehistoricaltransactions.js +4 -4
- package/dist/esm/models/operations/aavehistoricaltransactions.js.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionpertoken.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionpertoken.js +4 -4
- package/dist/esm/models/operations/aaveuserpositionpertoken.js.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionsummary.d.ts.map +1 -1
- package/dist/esm/models/operations/aaveuserpositionsummary.js +4 -4
- package/dist/esm/models/operations/aaveuserpositionsummary.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- 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/useroperation.ts +30 -0
- package/src/models/components/userstate.ts +4 -4
- package/src/models/operations/aavehistoricaltransactions.ts +4 -8
- package/src/models/operations/aaveuserpositionpertoken.ts +4 -8
- package/src/models/operations/aaveuserpositionsummary.ts +4 -6
package/bin/mcp-server.js
CHANGED
|
@@ -32330,7 +32330,8 @@ var init_Options = __esm(() => {
|
|
|
32330
32330
|
applyRegexFlags: false,
|
|
32331
32331
|
emailStrategy: "format:email",
|
|
32332
32332
|
base64Strategy: "contentEncoding:base64",
|
|
32333
|
-
nameStrategy: "ref"
|
|
32333
|
+
nameStrategy: "ref",
|
|
32334
|
+
openAiAnyTypeName: "OpenAiAnyType"
|
|
32334
32335
|
};
|
|
32335
32336
|
});
|
|
32336
32337
|
|
|
@@ -32340,6 +32341,7 @@ var getRefs = (options) => {
|
|
|
32340
32341
|
const currentPath = _options.name !== undefined ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;
|
|
32341
32342
|
return {
|
|
32342
32343
|
..._options,
|
|
32344
|
+
flags: { hasReferencedOpenAiAnyType: false },
|
|
32343
32345
|
currentPath,
|
|
32344
32346
|
propertyPath: undefined,
|
|
32345
32347
|
seen: new Map(Object.entries(_options.definitions).map(([name, def]) => [
|
|
@@ -32372,10 +32374,32 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
|
|
|
32372
32374
|
addErrorMessage(res, key, errorMessage, refs);
|
|
32373
32375
|
}
|
|
32374
32376
|
|
|
32377
|
+
// node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
|
|
32378
|
+
var getRelativePath = (pathA, pathB) => {
|
|
32379
|
+
let i = 0;
|
|
32380
|
+
for (;i < pathA.length && i < pathB.length; i++) {
|
|
32381
|
+
if (pathA[i] !== pathB[i])
|
|
32382
|
+
break;
|
|
32383
|
+
}
|
|
32384
|
+
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
|
|
32385
|
+
};
|
|
32386
|
+
|
|
32375
32387
|
// node_modules/zod-to-json-schema/dist/esm/parsers/any.js
|
|
32376
|
-
function parseAnyDef() {
|
|
32377
|
-
|
|
32388
|
+
function parseAnyDef(refs) {
|
|
32389
|
+
if (refs.target !== "openAi") {
|
|
32390
|
+
return {};
|
|
32391
|
+
}
|
|
32392
|
+
const anyDefinitionPath = [
|
|
32393
|
+
...refs.basePath,
|
|
32394
|
+
refs.definitionPath,
|
|
32395
|
+
refs.openAiAnyTypeName
|
|
32396
|
+
];
|
|
32397
|
+
refs.flags.hasReferencedOpenAiAnyType = true;
|
|
32398
|
+
return {
|
|
32399
|
+
$ref: refs.$refStrategy === "relative" ? getRelativePath(anyDefinitionPath, refs.currentPath) : anyDefinitionPath.join("/")
|
|
32400
|
+
};
|
|
32378
32401
|
}
|
|
32402
|
+
var init_any = () => {};
|
|
32379
32403
|
|
|
32380
32404
|
// node_modules/zod-to-json-schema/dist/esm/parsers/array.js
|
|
32381
32405
|
function parseArrayDef(def, refs) {
|
|
@@ -32534,10 +32558,11 @@ var init_default = __esm(() => {
|
|
|
32534
32558
|
|
|
32535
32559
|
// node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
|
|
32536
32560
|
function parseEffectsDef(_def, refs) {
|
|
32537
|
-
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) :
|
|
32561
|
+
return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
|
|
32538
32562
|
}
|
|
32539
32563
|
var init_effects = __esm(() => {
|
|
32540
32564
|
init_parseDef();
|
|
32565
|
+
init_any();
|
|
32541
32566
|
});
|
|
32542
32567
|
|
|
32543
32568
|
// node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
|
|
@@ -32926,7 +32951,7 @@ function parseRecordDef(def, refs) {
|
|
|
32926
32951
|
[key]: parseDef(def.valueType._def, {
|
|
32927
32952
|
...refs,
|
|
32928
32953
|
currentPath: [...refs.currentPath, "properties", key]
|
|
32929
|
-
}) ??
|
|
32954
|
+
}) ?? parseAnyDef(refs)
|
|
32930
32955
|
}), {}),
|
|
32931
32956
|
additionalProperties: refs.rejectedAdditionalProperties
|
|
32932
32957
|
};
|
|
@@ -32968,6 +32993,7 @@ var init_record = __esm(() => {
|
|
|
32968
32993
|
init_parseDef();
|
|
32969
32994
|
init_string();
|
|
32970
32995
|
init_branded();
|
|
32996
|
+
init_any();
|
|
32971
32997
|
});
|
|
32972
32998
|
|
|
32973
32999
|
// node_modules/zod-to-json-schema/dist/esm/parsers/map.js
|
|
@@ -32978,11 +33004,11 @@ function parseMapDef(def, refs) {
|
|
|
32978
33004
|
const keys = parseDef(def.keyType._def, {
|
|
32979
33005
|
...refs,
|
|
32980
33006
|
currentPath: [...refs.currentPath, "items", "items", "0"]
|
|
32981
|
-
}) ||
|
|
33007
|
+
}) || parseAnyDef(refs);
|
|
32982
33008
|
const values = parseDef(def.valueType._def, {
|
|
32983
33009
|
...refs,
|
|
32984
33010
|
currentPath: [...refs.currentPath, "items", "items", "1"]
|
|
32985
|
-
}) ||
|
|
33011
|
+
}) || parseAnyDef(refs);
|
|
32986
33012
|
return {
|
|
32987
33013
|
type: "array",
|
|
32988
33014
|
maxItems: 125,
|
|
@@ -32997,6 +33023,7 @@ function parseMapDef(def, refs) {
|
|
|
32997
33023
|
var init_map = __esm(() => {
|
|
32998
33024
|
init_parseDef();
|
|
32999
33025
|
init_record();
|
|
33026
|
+
init_any();
|
|
33000
33027
|
});
|
|
33001
33028
|
|
|
33002
33029
|
// node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
|
|
@@ -33014,11 +33041,17 @@ function parseNativeEnumDef(def) {
|
|
|
33014
33041
|
}
|
|
33015
33042
|
|
|
33016
33043
|
// node_modules/zod-to-json-schema/dist/esm/parsers/never.js
|
|
33017
|
-
function parseNeverDef() {
|
|
33018
|
-
return {
|
|
33019
|
-
not: {
|
|
33044
|
+
function parseNeverDef(refs) {
|
|
33045
|
+
return refs.target === "openAi" ? undefined : {
|
|
33046
|
+
not: parseAnyDef({
|
|
33047
|
+
...refs,
|
|
33048
|
+
currentPath: [...refs.currentPath, "not"]
|
|
33049
|
+
})
|
|
33020
33050
|
};
|
|
33021
33051
|
}
|
|
33052
|
+
var init_never = __esm(() => {
|
|
33053
|
+
init_any();
|
|
33054
|
+
});
|
|
33022
33055
|
|
|
33023
33056
|
// node_modules/zod-to-json-schema/dist/esm/parsers/null.js
|
|
33024
33057
|
function parseNullDef(refs) {
|
|
@@ -33203,7 +33236,7 @@ function parseObjectDef(def, refs) {
|
|
|
33203
33236
|
}
|
|
33204
33237
|
let propOptional = safeIsOptional(propDef);
|
|
33205
33238
|
if (propOptional && forceOptionalIntoNullable) {
|
|
33206
|
-
if (propDef
|
|
33239
|
+
if (propDef._def.typeName === "ZodOptional") {
|
|
33207
33240
|
propDef = propDef._def.innerType;
|
|
33208
33241
|
}
|
|
33209
33242
|
if (!propDef.isNullable()) {
|
|
@@ -33257,7 +33290,6 @@ function safeIsOptional(schema) {
|
|
|
33257
33290
|
}
|
|
33258
33291
|
}
|
|
33259
33292
|
var init_object = __esm(() => {
|
|
33260
|
-
init_esm();
|
|
33261
33293
|
init_parseDef();
|
|
33262
33294
|
});
|
|
33263
33295
|
|
|
@@ -33273,14 +33305,15 @@ var parseOptionalDef = (def, refs) => {
|
|
|
33273
33305
|
return innerSchema ? {
|
|
33274
33306
|
anyOf: [
|
|
33275
33307
|
{
|
|
33276
|
-
not:
|
|
33308
|
+
not: parseAnyDef(refs)
|
|
33277
33309
|
},
|
|
33278
33310
|
innerSchema
|
|
33279
33311
|
]
|
|
33280
|
-
} :
|
|
33312
|
+
} : parseAnyDef(refs);
|
|
33281
33313
|
};
|
|
33282
33314
|
var init_optional = __esm(() => {
|
|
33283
33315
|
init_parseDef();
|
|
33316
|
+
init_any();
|
|
33284
33317
|
});
|
|
33285
33318
|
|
|
33286
33319
|
// node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
|
|
@@ -33369,16 +33402,22 @@ var init_tuple = __esm(() => {
|
|
|
33369
33402
|
});
|
|
33370
33403
|
|
|
33371
33404
|
// node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
|
|
33372
|
-
function parseUndefinedDef() {
|
|
33405
|
+
function parseUndefinedDef(refs) {
|
|
33373
33406
|
return {
|
|
33374
|
-
not:
|
|
33407
|
+
not: parseAnyDef(refs)
|
|
33375
33408
|
};
|
|
33376
33409
|
}
|
|
33410
|
+
var init_undefined = __esm(() => {
|
|
33411
|
+
init_any();
|
|
33412
|
+
});
|
|
33377
33413
|
|
|
33378
33414
|
// node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
|
|
33379
|
-
function parseUnknownDef() {
|
|
33380
|
-
return
|
|
33415
|
+
function parseUnknownDef(refs) {
|
|
33416
|
+
return parseAnyDef(refs);
|
|
33381
33417
|
}
|
|
33418
|
+
var init_unknown = __esm(() => {
|
|
33419
|
+
init_any();
|
|
33420
|
+
});
|
|
33382
33421
|
|
|
33383
33422
|
// node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
|
|
33384
33423
|
var parseReadonlyDef = (def, refs) => {
|
|
@@ -33404,7 +33443,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
33404
33443
|
case ZodFirstPartyTypeKind.ZodDate:
|
|
33405
33444
|
return parseDateDef(def, refs);
|
|
33406
33445
|
case ZodFirstPartyTypeKind.ZodUndefined:
|
|
33407
|
-
return parseUndefinedDef();
|
|
33446
|
+
return parseUndefinedDef(refs);
|
|
33408
33447
|
case ZodFirstPartyTypeKind.ZodNull:
|
|
33409
33448
|
return parseNullDef(refs);
|
|
33410
33449
|
case ZodFirstPartyTypeKind.ZodArray:
|
|
@@ -33438,13 +33477,13 @@ var selectParser = (def, typeName, refs) => {
|
|
|
33438
33477
|
return parsePromiseDef(def, refs);
|
|
33439
33478
|
case ZodFirstPartyTypeKind.ZodNaN:
|
|
33440
33479
|
case ZodFirstPartyTypeKind.ZodNever:
|
|
33441
|
-
return parseNeverDef();
|
|
33480
|
+
return parseNeverDef(refs);
|
|
33442
33481
|
case ZodFirstPartyTypeKind.ZodEffects:
|
|
33443
33482
|
return parseEffectsDef(def, refs);
|
|
33444
33483
|
case ZodFirstPartyTypeKind.ZodAny:
|
|
33445
|
-
return parseAnyDef();
|
|
33484
|
+
return parseAnyDef(refs);
|
|
33446
33485
|
case ZodFirstPartyTypeKind.ZodUnknown:
|
|
33447
|
-
return parseUnknownDef();
|
|
33486
|
+
return parseUnknownDef(refs);
|
|
33448
33487
|
case ZodFirstPartyTypeKind.ZodDefault:
|
|
33449
33488
|
return parseDefaultDef(def, refs);
|
|
33450
33489
|
case ZodFirstPartyTypeKind.ZodBranded:
|
|
@@ -33467,6 +33506,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
33467
33506
|
};
|
|
33468
33507
|
var init_selectParser = __esm(() => {
|
|
33469
33508
|
init_esm();
|
|
33509
|
+
init_any();
|
|
33470
33510
|
init_array();
|
|
33471
33511
|
init_bigint();
|
|
33472
33512
|
init_branded();
|
|
@@ -33476,6 +33516,7 @@ var init_selectParser = __esm(() => {
|
|
|
33476
33516
|
init_effects();
|
|
33477
33517
|
init_intersection();
|
|
33478
33518
|
init_map();
|
|
33519
|
+
init_never();
|
|
33479
33520
|
init_nullable();
|
|
33480
33521
|
init_number();
|
|
33481
33522
|
init_object();
|
|
@@ -33486,7 +33527,9 @@ var init_selectParser = __esm(() => {
|
|
|
33486
33527
|
init_set();
|
|
33487
33528
|
init_string();
|
|
33488
33529
|
init_tuple();
|
|
33530
|
+
init_undefined();
|
|
33489
33531
|
init_union();
|
|
33532
|
+
init_unknown();
|
|
33490
33533
|
init_readonly();
|
|
33491
33534
|
});
|
|
33492
33535
|
|
|
@@ -33530,18 +33573,11 @@ var get$ref = (item, refs) => {
|
|
|
33530
33573
|
case "seen": {
|
|
33531
33574
|
if (item.path.length < refs.currentPath.length && item.path.every((value, index) => refs.currentPath[index] === value)) {
|
|
33532
33575
|
console.warn(`Recursive reference detected at ${refs.currentPath.join("/")}! Defaulting to any`);
|
|
33533
|
-
return
|
|
33576
|
+
return parseAnyDef(refs);
|
|
33534
33577
|
}
|
|
33535
|
-
return refs.$refStrategy === "seen" ?
|
|
33578
|
+
return refs.$refStrategy === "seen" ? parseAnyDef(refs) : undefined;
|
|
33536
33579
|
}
|
|
33537
33580
|
}
|
|
33538
|
-
}, getRelativePath = (pathA, pathB) => {
|
|
33539
|
-
let i = 0;
|
|
33540
|
-
for (;i < pathA.length && i < pathB.length; i++) {
|
|
33541
|
-
if (pathA[i] !== pathB[i])
|
|
33542
|
-
break;
|
|
33543
|
-
}
|
|
33544
|
-
return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
|
|
33545
33581
|
}, addMeta = (def, refs, jsonSchema) => {
|
|
33546
33582
|
if (def.description) {
|
|
33547
33583
|
jsonSchema.description = def.description;
|
|
@@ -33554,6 +33590,7 @@ var get$ref = (item, refs) => {
|
|
|
33554
33590
|
var init_parseDef = __esm(() => {
|
|
33555
33591
|
init_Options();
|
|
33556
33592
|
init_selectParser();
|
|
33593
|
+
init_any();
|
|
33557
33594
|
});
|
|
33558
33595
|
|
|
33559
33596
|
// node_modules/zod-to-json-schema/dist/esm/parseTypes.js
|
|
@@ -33562,22 +33599,39 @@ var init_parseTypes = () => {};
|
|
|
33562
33599
|
// node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
|
|
33563
33600
|
var zodToJsonSchema = (schema, options) => {
|
|
33564
33601
|
const refs = getRefs(options);
|
|
33565
|
-
|
|
33602
|
+
let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name2, schema2]) => ({
|
|
33566
33603
|
...acc,
|
|
33567
33604
|
[name2]: parseDef(schema2._def, {
|
|
33568
33605
|
...refs,
|
|
33569
33606
|
currentPath: [...refs.basePath, refs.definitionPath, name2]
|
|
33570
|
-
}, true) ??
|
|
33607
|
+
}, true) ?? parseAnyDef(refs)
|
|
33571
33608
|
}), {}) : undefined;
|
|
33572
33609
|
const name = typeof options === "string" ? options : options?.nameStrategy === "title" ? undefined : options?.name;
|
|
33573
33610
|
const main = parseDef(schema._def, name === undefined ? refs : {
|
|
33574
33611
|
...refs,
|
|
33575
33612
|
currentPath: [...refs.basePath, refs.definitionPath, name]
|
|
33576
|
-
}, false) ??
|
|
33613
|
+
}, false) ?? parseAnyDef(refs);
|
|
33577
33614
|
const title = typeof options === "object" && options.name !== undefined && options.nameStrategy === "title" ? options.name : undefined;
|
|
33578
33615
|
if (title !== undefined) {
|
|
33579
33616
|
main.title = title;
|
|
33580
33617
|
}
|
|
33618
|
+
if (refs.flags.hasReferencedOpenAiAnyType) {
|
|
33619
|
+
if (!definitions) {
|
|
33620
|
+
definitions = {};
|
|
33621
|
+
}
|
|
33622
|
+
if (!definitions[refs.openAiAnyTypeName]) {
|
|
33623
|
+
definitions[refs.openAiAnyTypeName] = {
|
|
33624
|
+
type: ["string", "number", "integer", "boolean", "array", "null"],
|
|
33625
|
+
items: {
|
|
33626
|
+
$ref: refs.$refStrategy === "relative" ? "1" : [
|
|
33627
|
+
...refs.basePath,
|
|
33628
|
+
refs.definitionPath,
|
|
33629
|
+
refs.openAiAnyTypeName
|
|
33630
|
+
].join("/")
|
|
33631
|
+
}
|
|
33632
|
+
};
|
|
33633
|
+
}
|
|
33634
|
+
}
|
|
33581
33635
|
const combined = name === undefined ? definitions ? {
|
|
33582
33636
|
...main,
|
|
33583
33637
|
[refs.definitionPath]: definitions
|
|
@@ -33605,6 +33659,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
33605
33659
|
var init_zodToJsonSchema = __esm(() => {
|
|
33606
33660
|
init_parseDef();
|
|
33607
33661
|
init_Refs();
|
|
33662
|
+
init_any();
|
|
33608
33663
|
});
|
|
33609
33664
|
|
|
33610
33665
|
// node_modules/zod-to-json-schema/dist/esm/index.js
|
|
@@ -33613,6 +33668,7 @@ var init_esm2 = __esm(() => {
|
|
|
33613
33668
|
init_Refs();
|
|
33614
33669
|
init_parseDef();
|
|
33615
33670
|
init_parseTypes();
|
|
33671
|
+
init_any();
|
|
33616
33672
|
init_array();
|
|
33617
33673
|
init_bigint();
|
|
33618
33674
|
init_branded();
|
|
@@ -33622,6 +33678,7 @@ var init_esm2 = __esm(() => {
|
|
|
33622
33678
|
init_effects();
|
|
33623
33679
|
init_intersection();
|
|
33624
33680
|
init_map();
|
|
33681
|
+
init_never();
|
|
33625
33682
|
init_nullable();
|
|
33626
33683
|
init_number();
|
|
33627
33684
|
init_object();
|
|
@@ -33633,7 +33690,9 @@ var init_esm2 = __esm(() => {
|
|
|
33633
33690
|
init_set();
|
|
33634
33691
|
init_string();
|
|
33635
33692
|
init_tuple();
|
|
33693
|
+
init_undefined();
|
|
33636
33694
|
init_union();
|
|
33695
|
+
init_unknown();
|
|
33637
33696
|
init_selectParser();
|
|
33638
33697
|
init_zodToJsonSchema();
|
|
33639
33698
|
init_zodToJsonSchema();
|
|
@@ -34205,9 +34264,9 @@ var init_config = __esm(() => {
|
|
|
34205
34264
|
SDK_METADATA = {
|
|
34206
34265
|
language: "typescript",
|
|
34207
34266
|
openapiDocVersion: "0.0.1",
|
|
34208
|
-
sdkVersion: "0.5.
|
|
34209
|
-
genVersion: "2.
|
|
34210
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34267
|
+
sdkVersion: "0.5.28",
|
|
34268
|
+
genVersion: "2.638.5",
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 0.5.28 2.638.5 0.0.1 @compass-labs/api-sdk"
|
|
34211
34270
|
};
|
|
34212
34271
|
});
|
|
34213
34272
|
|
|
@@ -38450,6 +38509,55 @@ var init_tokentransfererc20params = __esm(() => {
|
|
|
38450
38509
|
})(TokenTransferErc20Params$ ||= {});
|
|
38451
38510
|
});
|
|
38452
38511
|
|
|
38512
|
+
// src/models/components/tokentransferrequest.ts
|
|
38513
|
+
var TokenTransferRequestAmount$inboundSchema, TokenTransferRequestAmount$outboundSchema, TokenTransferRequestAmount$, TokenTransferRequestToken$inboundSchema, TokenTransferRequestToken$outboundSchema, TokenTransferRequestToken$, TokenTransferRequest$inboundSchema, TokenTransferRequest$outboundSchema, TokenTransferRequest$;
|
|
38514
|
+
var init_tokentransferrequest = __esm(() => {
|
|
38515
|
+
init_esm();
|
|
38516
|
+
init_primitives();
|
|
38517
|
+
init_chain();
|
|
38518
|
+
init_tokenenum();
|
|
38519
|
+
TokenTransferRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
38520
|
+
TokenTransferRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
38521
|
+
((TokenTransferRequestAmount$) => {
|
|
38522
|
+
TokenTransferRequestAmount$.inboundSchema = TokenTransferRequestAmount$inboundSchema;
|
|
38523
|
+
TokenTransferRequestAmount$.outboundSchema = TokenTransferRequestAmount$outboundSchema;
|
|
38524
|
+
})(TokenTransferRequestAmount$ ||= {});
|
|
38525
|
+
TokenTransferRequestToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
38526
|
+
TokenTransferRequestToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
38527
|
+
((TokenTransferRequestToken$) => {
|
|
38528
|
+
TokenTransferRequestToken$.inboundSchema = TokenTransferRequestToken$inboundSchema;
|
|
38529
|
+
TokenTransferRequestToken$.outboundSchema = TokenTransferRequestToken$outboundSchema;
|
|
38530
|
+
})(TokenTransferRequestToken$ ||= {});
|
|
38531
|
+
TokenTransferRequest$inboundSchema = objectType({
|
|
38532
|
+
action_type: literalType("TOKEN_TRANSFER").default("TOKEN_TRANSFER"),
|
|
38533
|
+
amount: unionType([numberType(), stringType()]),
|
|
38534
|
+
token: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
38535
|
+
to: stringType(),
|
|
38536
|
+
chain: Chain$inboundSchema,
|
|
38537
|
+
sender: stringType()
|
|
38538
|
+
}).transform((v2) => {
|
|
38539
|
+
return remap(v2, {
|
|
38540
|
+
action_type: "actionType"
|
|
38541
|
+
});
|
|
38542
|
+
});
|
|
38543
|
+
TokenTransferRequest$outboundSchema = objectType({
|
|
38544
|
+
actionType: literalType("TOKEN_TRANSFER").default("TOKEN_TRANSFER"),
|
|
38545
|
+
amount: unionType([numberType(), stringType()]),
|
|
38546
|
+
token: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
38547
|
+
to: stringType(),
|
|
38548
|
+
chain: Chain$outboundSchema,
|
|
38549
|
+
sender: stringType()
|
|
38550
|
+
}).transform((v2) => {
|
|
38551
|
+
return remap(v2, {
|
|
38552
|
+
actionType: "action_type"
|
|
38553
|
+
});
|
|
38554
|
+
});
|
|
38555
|
+
((TokenTransferRequest$) => {
|
|
38556
|
+
TokenTransferRequest$.inboundSchema = TokenTransferRequest$inboundSchema;
|
|
38557
|
+
TokenTransferRequest$.outboundSchema = TokenTransferRequest$outboundSchema;
|
|
38558
|
+
})(TokenTransferRequest$ ||= {});
|
|
38559
|
+
});
|
|
38560
|
+
|
|
38453
38561
|
// src/models/components/feeenum.ts
|
|
38454
38562
|
var FeeEnum, FeeEnum$inboundSchema, FeeEnum$outboundSchema, FeeEnum$;
|
|
38455
38563
|
var init_feeenum = __esm(() => {
|
|
@@ -38863,6 +38971,7 @@ var init_useroperation = __esm(() => {
|
|
|
38863
38971
|
init_skysellparams();
|
|
38864
38972
|
init_skywithdrawparams();
|
|
38865
38973
|
init_tokentransfererc20params();
|
|
38974
|
+
init_tokentransferrequest();
|
|
38866
38975
|
init_uniswapbuyexactlyparams();
|
|
38867
38976
|
init_uniswapincreaseliquidityprovisionparams();
|
|
38868
38977
|
init_uniswapmintliquidityprovisionparams();
|
|
@@ -38879,6 +38988,9 @@ var init_useroperation = __esm(() => {
|
|
|
38879
38988
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
38880
38989
|
action_type: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
|
|
38881
38990
|
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38991
|
+
TokenTransferRequest$inboundSchema.and(objectType({ action_type: literalType("TOKEN_TRANSFER") }).transform((v2) => ({
|
|
38992
|
+
actionType: v2.action_type
|
|
38993
|
+
}))),
|
|
38882
38994
|
UniswapIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38883
38995
|
UniswapBuyExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
38884
38996
|
UniswapSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
@@ -38960,6 +39072,9 @@ var init_useroperation = __esm(() => {
|
|
|
38960
39072
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
38961
39073
|
actionType: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
|
|
38962
39074
|
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39075
|
+
TokenTransferRequest$outboundSchema.and(objectType({ actionType: literalType("TOKEN_TRANSFER") }).transform((v2) => ({
|
|
39076
|
+
action_type: v2.actionType
|
|
39077
|
+
}))),
|
|
38963
39078
|
UniswapIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38964
39079
|
UniswapBuyExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
38965
39080
|
UniswapSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
@@ -39048,6 +39163,9 @@ var init_useroperation = __esm(() => {
|
|
|
39048
39163
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({
|
|
39049
39164
|
action_type: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
|
|
39050
39165
|
}).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39166
|
+
TokenTransferRequest$inboundSchema.and(objectType({ action_type: literalType("TOKEN_TRANSFER") }).transform((v2) => ({
|
|
39167
|
+
actionType: v2.action_type
|
|
39168
|
+
}))),
|
|
39051
39169
|
UniswapIncreaseLiquidityProvisionParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39052
39170
|
UniswapBuyExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
39053
39171
|
UniswapSellExactlyParams$inboundSchema.and(objectType({ action_type: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ actionType: v2.action_type }))),
|
|
@@ -39131,6 +39249,9 @@ var init_useroperation = __esm(() => {
|
|
|
39131
39249
|
AerodromeSlipstreamIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({
|
|
39132
39250
|
actionType: literalType("AERODROME_SLIPSTREAM_INCREASE_LIQUIDITY_PROVISION")
|
|
39133
39251
|
}).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39252
|
+
TokenTransferRequest$outboundSchema.and(objectType({ actionType: literalType("TOKEN_TRANSFER") }).transform((v2) => ({
|
|
39253
|
+
action_type: v2.actionType
|
|
39254
|
+
}))),
|
|
39134
39255
|
UniswapIncreaseLiquidityProvisionParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_ADD_LIQUIDITY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39135
39256
|
UniswapBuyExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_BUY_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
39136
39257
|
UniswapSellExactlyParams$outboundSchema.and(objectType({ actionType: literalType("UNISWAP_SELL_EXACTLY") }).transform((v2) => ({ action_type: v2.actionType }))),
|
|
@@ -40055,7 +40176,7 @@ var init_userstate = __esm(() => {
|
|
|
40055
40176
|
UserState$inboundSchema = objectType({
|
|
40056
40177
|
vaultsPnlUsd: stringType(),
|
|
40057
40178
|
vaultsAssetsUsd: stringType(),
|
|
40058
|
-
marketsPnlUsd: stringType(),
|
|
40179
|
+
marketsPnlUsd: nullableType(stringType()),
|
|
40059
40180
|
marketsBorrowAssetsUsd: stringType(),
|
|
40060
40181
|
marketsCollateralUsd: stringType(),
|
|
40061
40182
|
marketsSupplyAssetsUsd: stringType()
|
|
@@ -40063,7 +40184,7 @@ var init_userstate = __esm(() => {
|
|
|
40063
40184
|
UserState$outboundSchema = objectType({
|
|
40064
40185
|
vaultsPnlUsd: stringType(),
|
|
40065
40186
|
vaultsAssetsUsd: stringType(),
|
|
40066
|
-
marketsPnlUsd: stringType(),
|
|
40187
|
+
marketsPnlUsd: nullableType(stringType()),
|
|
40067
40188
|
marketsBorrowAssetsUsd: stringType(),
|
|
40068
40189
|
marketsCollateralUsd: stringType(),
|
|
40069
40190
|
marketsSupplyAssetsUsd: stringType()
|
|
@@ -41698,55 +41819,6 @@ var init_tokenpriceresponse = __esm(() => {
|
|
|
41698
41819
|
})(TokenPriceResponse$ ||= {});
|
|
41699
41820
|
});
|
|
41700
41821
|
|
|
41701
|
-
// src/models/components/tokentransferrequest.ts
|
|
41702
|
-
var TokenTransferRequestAmount$inboundSchema, TokenTransferRequestAmount$outboundSchema, TokenTransferRequestAmount$, TokenTransferRequestToken$inboundSchema, TokenTransferRequestToken$outboundSchema, TokenTransferRequestToken$, TokenTransferRequest$inboundSchema, TokenTransferRequest$outboundSchema, TokenTransferRequest$;
|
|
41703
|
-
var init_tokentransferrequest = __esm(() => {
|
|
41704
|
-
init_esm();
|
|
41705
|
-
init_primitives();
|
|
41706
|
-
init_chain();
|
|
41707
|
-
init_tokenenum();
|
|
41708
|
-
TokenTransferRequestAmount$inboundSchema = unionType([numberType(), stringType()]);
|
|
41709
|
-
TokenTransferRequestAmount$outboundSchema = unionType([numberType(), stringType()]);
|
|
41710
|
-
((TokenTransferRequestAmount$) => {
|
|
41711
|
-
TokenTransferRequestAmount$.inboundSchema = TokenTransferRequestAmount$inboundSchema;
|
|
41712
|
-
TokenTransferRequestAmount$.outboundSchema = TokenTransferRequestAmount$outboundSchema;
|
|
41713
|
-
})(TokenTransferRequestAmount$ ||= {});
|
|
41714
|
-
TokenTransferRequestToken$inboundSchema = unionType([TokenEnum$inboundSchema, stringType()]);
|
|
41715
|
-
TokenTransferRequestToken$outboundSchema = unionType([TokenEnum$outboundSchema, stringType()]);
|
|
41716
|
-
((TokenTransferRequestToken$) => {
|
|
41717
|
-
TokenTransferRequestToken$.inboundSchema = TokenTransferRequestToken$inboundSchema;
|
|
41718
|
-
TokenTransferRequestToken$.outboundSchema = TokenTransferRequestToken$outboundSchema;
|
|
41719
|
-
})(TokenTransferRequestToken$ ||= {});
|
|
41720
|
-
TokenTransferRequest$inboundSchema = objectType({
|
|
41721
|
-
action_type: literalType("TOKEN_TRANSFER").default("TOKEN_TRANSFER"),
|
|
41722
|
-
amount: unionType([numberType(), stringType()]),
|
|
41723
|
-
token: unionType([TokenEnum$inboundSchema, stringType()]),
|
|
41724
|
-
to: stringType(),
|
|
41725
|
-
chain: Chain$inboundSchema,
|
|
41726
|
-
sender: stringType()
|
|
41727
|
-
}).transform((v2) => {
|
|
41728
|
-
return remap(v2, {
|
|
41729
|
-
action_type: "actionType"
|
|
41730
|
-
});
|
|
41731
|
-
});
|
|
41732
|
-
TokenTransferRequest$outboundSchema = objectType({
|
|
41733
|
-
actionType: literalType("TOKEN_TRANSFER").default("TOKEN_TRANSFER"),
|
|
41734
|
-
amount: unionType([numberType(), stringType()]),
|
|
41735
|
-
token: unionType([TokenEnum$outboundSchema, stringType()]),
|
|
41736
|
-
to: stringType(),
|
|
41737
|
-
chain: Chain$outboundSchema,
|
|
41738
|
-
sender: stringType()
|
|
41739
|
-
}).transform((v2) => {
|
|
41740
|
-
return remap(v2, {
|
|
41741
|
-
actionType: "action_type"
|
|
41742
|
-
});
|
|
41743
|
-
});
|
|
41744
|
-
((TokenTransferRequest$) => {
|
|
41745
|
-
TokenTransferRequest$.inboundSchema = TokenTransferRequest$inboundSchema;
|
|
41746
|
-
TokenTransferRequest$.outboundSchema = TokenTransferRequest$outboundSchema;
|
|
41747
|
-
})(TokenTransferRequest$ ||= {});
|
|
41748
|
-
});
|
|
41749
|
-
|
|
41750
41822
|
// src/models/components/unsignedmulticalltransaction.ts
|
|
41751
41823
|
var UnsignedMulticallTransaction$inboundSchema, UnsignedMulticallTransaction$outboundSchema, UnsignedMulticallTransaction$;
|
|
41752
41824
|
var init_unsignedmulticalltransaction = __esm(() => {
|
|
@@ -42862,8 +42934,8 @@ var init_aavehistoricaltransactions = __esm(() => {
|
|
|
42862
42934
|
AaveHistoricalTransactionsRequest$inboundSchema = objectType({
|
|
42863
42935
|
offset: numberType().int().default(0),
|
|
42864
42936
|
limit: numberType().int().default(100),
|
|
42865
|
-
chain: AaveHistoricalTransactionsChain$inboundSchema.default("
|
|
42866
|
-
user_address: stringType().default("
|
|
42937
|
+
chain: AaveHistoricalTransactionsChain$inboundSchema.default("base:mainnet"),
|
|
42938
|
+
user_address: stringType().default("0x3254f3b1918637ba924e3F18968Cb74219974b63")
|
|
42867
42939
|
}).transform((v2) => {
|
|
42868
42940
|
return remap(v2, {
|
|
42869
42941
|
user_address: "userAddress"
|
|
@@ -42872,8 +42944,8 @@ var init_aavehistoricaltransactions = __esm(() => {
|
|
|
42872
42944
|
AaveHistoricalTransactionsRequest$outboundSchema = objectType({
|
|
42873
42945
|
offset: numberType().int().default(0),
|
|
42874
42946
|
limit: numberType().int().default(100),
|
|
42875
|
-
chain: AaveHistoricalTransactionsChain$outboundSchema.default("
|
|
42876
|
-
userAddress: stringType().default("
|
|
42947
|
+
chain: AaveHistoricalTransactionsChain$outboundSchema.default("base:mainnet"),
|
|
42948
|
+
userAddress: stringType().default("0x3254f3b1918637ba924e3F18968Cb74219974b63")
|
|
42877
42949
|
}).transform((v2) => {
|
|
42878
42950
|
return remap(v2, {
|
|
42879
42951
|
userAddress: "user_address"
|
|
@@ -43383,15 +43455,15 @@ var init_aaveuserpositionpertoken = __esm(() => {
|
|
|
43383
43455
|
AaveUserPositionPerTokenToken$.outboundSchema = AaveUserPositionPerTokenToken$outboundSchema;
|
|
43384
43456
|
})(AaveUserPositionPerTokenToken$ ||= {});
|
|
43385
43457
|
AaveUserPositionPerTokenRequest$inboundSchema = objectType({
|
|
43386
|
-
chain: AaveUserPositionPerTokenChain$inboundSchema.default("
|
|
43458
|
+
chain: AaveUserPositionPerTokenChain$inboundSchema.default("base:mainnet"),
|
|
43387
43459
|
block: nullableType(numberType().int()).optional(),
|
|
43388
|
-
user: stringType().default("
|
|
43460
|
+
user: stringType().default("0x3254f3b1918637ba924e3F18968Cb74219974b63"),
|
|
43389
43461
|
token: AaveUserPositionPerTokenToken$inboundSchema.default("USDC")
|
|
43390
43462
|
});
|
|
43391
43463
|
AaveUserPositionPerTokenRequest$outboundSchema = objectType({
|
|
43392
|
-
chain: AaveUserPositionPerTokenChain$outboundSchema.default("
|
|
43464
|
+
chain: AaveUserPositionPerTokenChain$outboundSchema.default("base:mainnet"),
|
|
43393
43465
|
block: nullableType(numberType().int()).optional(),
|
|
43394
|
-
user: stringType().default("
|
|
43466
|
+
user: stringType().default("0x3254f3b1918637ba924e3F18968Cb74219974b63"),
|
|
43395
43467
|
token: AaveUserPositionPerTokenToken$outboundSchema.default("USDC")
|
|
43396
43468
|
});
|
|
43397
43469
|
((AaveUserPositionPerTokenRequest$) => {
|
|
@@ -43416,14 +43488,14 @@ var init_aaveuserpositionsummary = __esm(() => {
|
|
|
43416
43488
|
AaveUserPositionSummaryChain$.outboundSchema = AaveUserPositionSummaryChain$outboundSchema;
|
|
43417
43489
|
})(AaveUserPositionSummaryChain$ ||= {});
|
|
43418
43490
|
AaveUserPositionSummaryRequest$inboundSchema = objectType({
|
|
43419
|
-
chain: AaveUserPositionSummaryChain$inboundSchema.default("
|
|
43491
|
+
chain: AaveUserPositionSummaryChain$inboundSchema.default("base:mainnet"),
|
|
43420
43492
|
block: nullableType(numberType().int()).optional(),
|
|
43421
|
-
user: stringType().default("
|
|
43493
|
+
user: stringType().default("0x3254f3b1918637ba924e3F18968Cb74219974b63")
|
|
43422
43494
|
});
|
|
43423
43495
|
AaveUserPositionSummaryRequest$outboundSchema = objectType({
|
|
43424
|
-
chain: AaveUserPositionSummaryChain$outboundSchema.default("
|
|
43496
|
+
chain: AaveUserPositionSummaryChain$outboundSchema.default("base:mainnet"),
|
|
43425
43497
|
block: nullableType(numberType().int()).optional(),
|
|
43426
|
-
user: stringType().default("
|
|
43498
|
+
user: stringType().default("0x3254f3b1918637ba924e3F18968Cb74219974b63")
|
|
43427
43499
|
});
|
|
43428
43500
|
((AaveUserPositionSummaryRequest$) => {
|
|
43429
43501
|
AaveUserPositionSummaryRequest$.inboundSchema = AaveUserPositionSummaryRequest$inboundSchema;
|
|
@@ -53566,7 +53638,7 @@ it to be traded on DeFi protocols.`,
|
|
|
53566
53638
|
function createMCPServer(deps) {
|
|
53567
53639
|
const server = new McpServer({
|
|
53568
53640
|
name: "CompassApiSDK",
|
|
53569
|
-
version: "0.5.
|
|
53641
|
+
version: "0.5.28"
|
|
53570
53642
|
});
|
|
53571
53643
|
const client = new CompassApiSDKCore({
|
|
53572
53644
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -54931,7 +55003,7 @@ var routes = an({
|
|
|
54931
55003
|
var app = He(routes, {
|
|
54932
55004
|
name: "mcp",
|
|
54933
55005
|
versionInfo: {
|
|
54934
|
-
currentVersion: "0.5.
|
|
55006
|
+
currentVersion: "0.5.28"
|
|
54935
55007
|
}
|
|
54936
55008
|
});
|
|
54937
55009
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -54939,5 +55011,5 @@ export {
|
|
|
54939
55011
|
app
|
|
54940
55012
|
};
|
|
54941
55013
|
|
|
54942
|
-
//# debugId=
|
|
55014
|
+
//# debugId=C17A875719B6F59E64756E2164756E21
|
|
54943
55015
|
//# sourceMappingURL=mcp-server.js.map
|