@compass-labs/api-sdk 0.1.9 → 0.2.0
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 -72
- package/bin/mcp-server.js.map +7 -7
- 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/models/components/batcheduseroperationsrequest.d.ts +0 -4
- package/dist/commonjs/models/components/batcheduseroperationsrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/batcheduseroperationsrequest.js +2 -11
- package/dist/commonjs/models/components/batcheduseroperationsrequest.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/models/components/batcheduseroperationsrequest.d.ts +0 -4
- package/dist/esm/models/components/batcheduseroperationsrequest.d.ts.map +1 -1
- package/dist/esm/models/components/batcheduseroperationsrequest.js +3 -12
- package/dist/esm/models/components/batcheduseroperationsrequest.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -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/models/components/batcheduseroperationsrequest.ts +5 -23
package/bin/mcp-server.js
CHANGED
|
@@ -1008,21 +1008,7 @@ function custom(check, _params = {}, fatal) {
|
|
|
1008
1008
|
});
|
|
1009
1009
|
return ZodAny.create();
|
|
1010
1010
|
}
|
|
1011
|
-
var
|
|
1012
|
-
if (kind === "a" && !f)
|
|
1013
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
1014
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
1015
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1016
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1017
|
-
}, __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
1018
|
-
if (kind === "m")
|
|
1019
|
-
throw new TypeError("Private method is not writable");
|
|
1020
|
-
if (kind === "a" && !f)
|
|
1021
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
1022
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
1023
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1024
|
-
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
1025
|
-
}, _ZodEnum_cache, _ZodNativeEnum_cache, handleResult = (ctx, result) => {
|
|
1011
|
+
var handleResult = (ctx, result) => {
|
|
1026
1012
|
if (isValid(result)) {
|
|
1027
1013
|
return { success: true, data: result.value };
|
|
1028
1014
|
} else {
|
|
@@ -3290,10 +3276,6 @@ var init_types = __esm(() => {
|
|
|
3290
3276
|
});
|
|
3291
3277
|
};
|
|
3292
3278
|
ZodEnum = class ZodEnum extends ZodType {
|
|
3293
|
-
constructor() {
|
|
3294
|
-
super(...arguments);
|
|
3295
|
-
_ZodEnum_cache.set(this, undefined);
|
|
3296
|
-
}
|
|
3297
3279
|
_parse(input) {
|
|
3298
3280
|
if (typeof input.data !== "string") {
|
|
3299
3281
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3305,10 +3287,10 @@ var init_types = __esm(() => {
|
|
|
3305
3287
|
});
|
|
3306
3288
|
return INVALID;
|
|
3307
3289
|
}
|
|
3308
|
-
if (!
|
|
3309
|
-
|
|
3290
|
+
if (!this._cache) {
|
|
3291
|
+
this._cache = new Set(this._def.values);
|
|
3310
3292
|
}
|
|
3311
|
-
if (!
|
|
3293
|
+
if (!this._cache.has(input.data)) {
|
|
3312
3294
|
const ctx = this._getOrReturnCtx(input);
|
|
3313
3295
|
const expectedValues = this._def.values;
|
|
3314
3296
|
addIssueToContext(ctx, {
|
|
@@ -3357,13 +3339,8 @@ var init_types = __esm(() => {
|
|
|
3357
3339
|
});
|
|
3358
3340
|
}
|
|
3359
3341
|
};
|
|
3360
|
-
_ZodEnum_cache = new WeakMap;
|
|
3361
3342
|
ZodEnum.create = createZodEnum;
|
|
3362
3343
|
ZodNativeEnum = class ZodNativeEnum extends ZodType {
|
|
3363
|
-
constructor() {
|
|
3364
|
-
super(...arguments);
|
|
3365
|
-
_ZodNativeEnum_cache.set(this, undefined);
|
|
3366
|
-
}
|
|
3367
3344
|
_parse(input) {
|
|
3368
3345
|
const nativeEnumValues = util.getValidEnumValues(this._def.values);
|
|
3369
3346
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3376,10 +3353,10 @@ var init_types = __esm(() => {
|
|
|
3376
3353
|
});
|
|
3377
3354
|
return INVALID;
|
|
3378
3355
|
}
|
|
3379
|
-
if (!
|
|
3380
|
-
|
|
3356
|
+
if (!this._cache) {
|
|
3357
|
+
this._cache = new Set(util.getValidEnumValues(this._def.values));
|
|
3381
3358
|
}
|
|
3382
|
-
if (!
|
|
3359
|
+
if (!this._cache.has(input.data)) {
|
|
3383
3360
|
const expectedValues = util.objectValues(nativeEnumValues);
|
|
3384
3361
|
addIssueToContext(ctx, {
|
|
3385
3362
|
received: ctx.data,
|
|
@@ -3394,7 +3371,6 @@ var init_types = __esm(() => {
|
|
|
3394
3371
|
return this._def.values;
|
|
3395
3372
|
}
|
|
3396
3373
|
};
|
|
3397
|
-
_ZodNativeEnum_cache = new WeakMap;
|
|
3398
3374
|
ZodNativeEnum.create = (values, params) => {
|
|
3399
3375
|
return new ZodNativeEnum({
|
|
3400
3376
|
values,
|
|
@@ -3535,7 +3511,7 @@ var init_types = __esm(() => {
|
|
|
3535
3511
|
parent: ctx
|
|
3536
3512
|
});
|
|
3537
3513
|
if (!isValid(base))
|
|
3538
|
-
return
|
|
3514
|
+
return INVALID;
|
|
3539
3515
|
const result = effect.transform(base.value, checkCtx);
|
|
3540
3516
|
if (result instanceof Promise) {
|
|
3541
3517
|
throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
|
@@ -3544,7 +3520,7 @@ var init_types = __esm(() => {
|
|
|
3544
3520
|
} else {
|
|
3545
3521
|
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
3546
3522
|
if (!isValid(base))
|
|
3547
|
-
return
|
|
3523
|
+
return INVALID;
|
|
3548
3524
|
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3549
3525
|
status: status.value,
|
|
3550
3526
|
value: result
|
|
@@ -34229,9 +34205,9 @@ var init_config = __esm(() => {
|
|
|
34229
34205
|
SDK_METADATA = {
|
|
34230
34206
|
language: "typescript",
|
|
34231
34207
|
openapiDocVersion: "0.0.1",
|
|
34232
|
-
sdkVersion: "0.
|
|
34208
|
+
sdkVersion: "0.2.0",
|
|
34233
34209
|
genVersion: "2.610.0",
|
|
34234
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34210
|
+
userAgent: "speakeasy-sdk/typescript 0.2.0 2.610.0 0.0.1 @compass-labs/api-sdk"
|
|
34235
34211
|
};
|
|
34236
34212
|
});
|
|
34237
34213
|
|
|
@@ -35257,27 +35233,6 @@ function safeParse(rawValue, fn, errorMessage) {
|
|
|
35257
35233
|
return ERR(new SDKValidationError(errorMessage, err, rawValue));
|
|
35258
35234
|
}
|
|
35259
35235
|
}
|
|
35260
|
-
function collectExtraKeys(obj, extrasKey, optional2) {
|
|
35261
|
-
return obj.transform((val) => {
|
|
35262
|
-
const extras = {};
|
|
35263
|
-
const { shape } = obj;
|
|
35264
|
-
for (const [key] of Object.entries(val)) {
|
|
35265
|
-
if (key in shape) {
|
|
35266
|
-
continue;
|
|
35267
|
-
}
|
|
35268
|
-
const v2 = val[key];
|
|
35269
|
-
if (typeof v2 === "undefined") {
|
|
35270
|
-
continue;
|
|
35271
|
-
}
|
|
35272
|
-
extras[key] = v2;
|
|
35273
|
-
delete val[key];
|
|
35274
|
-
}
|
|
35275
|
-
if (optional2 && Object.keys(extras).length === 0) {
|
|
35276
|
-
return val;
|
|
35277
|
-
}
|
|
35278
|
-
return { ...val, [extrasKey]: extras };
|
|
35279
|
-
});
|
|
35280
|
-
}
|
|
35281
35236
|
var init_schemas = __esm(() => {
|
|
35282
35237
|
init_sdkvalidationerror();
|
|
35283
35238
|
});
|
|
@@ -38652,25 +38607,15 @@ var init_useroperation = __esm(() => {
|
|
|
38652
38607
|
var BatchedUserOperationsRequest$inboundSchema, BatchedUserOperationsRequest$outboundSchema, BatchedUserOperationsRequest$;
|
|
38653
38608
|
var init_batcheduseroperationsrequest = __esm(() => {
|
|
38654
38609
|
init_esm();
|
|
38655
|
-
init_primitives();
|
|
38656
|
-
init_schemas();
|
|
38657
38610
|
init_chain();
|
|
38658
38611
|
init_useroperation();
|
|
38659
|
-
BatchedUserOperationsRequest$inboundSchema =
|
|
38612
|
+
BatchedUserOperationsRequest$inboundSchema = objectType({
|
|
38660
38613
|
chain: Chain$inboundSchema,
|
|
38661
38614
|
operations: arrayType(UserOperation$inboundSchema)
|
|
38662
|
-
})
|
|
38615
|
+
});
|
|
38663
38616
|
BatchedUserOperationsRequest$outboundSchema = objectType({
|
|
38664
38617
|
chain: Chain$outboundSchema,
|
|
38665
|
-
operations: arrayType(UserOperation$outboundSchema)
|
|
38666
|
-
additionalProperties: recordType(anyType())
|
|
38667
|
-
}).transform((v2) => {
|
|
38668
|
-
return {
|
|
38669
|
-
...v2.additionalProperties,
|
|
38670
|
-
...remap(v2, {
|
|
38671
|
-
additionalProperties: null
|
|
38672
|
-
})
|
|
38673
|
-
};
|
|
38618
|
+
operations: arrayType(UserOperation$outboundSchema)
|
|
38674
38619
|
});
|
|
38675
38620
|
((BatchedUserOperationsRequest$) => {
|
|
38676
38621
|
BatchedUserOperationsRequest$.inboundSchema = BatchedUserOperationsRequest$inboundSchema;
|
|
@@ -51334,7 +51279,7 @@ it to be traded on DeFi protocols.`,
|
|
|
51334
51279
|
function createMCPServer(deps) {
|
|
51335
51280
|
const server = new McpServer({
|
|
51336
51281
|
name: "CompassApiSDK",
|
|
51337
|
-
version: "0.
|
|
51282
|
+
version: "0.2.0"
|
|
51338
51283
|
});
|
|
51339
51284
|
const client = new CompassApiSDKCore({
|
|
51340
51285
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -52679,7 +52624,7 @@ var routes = an({
|
|
|
52679
52624
|
var app = He(routes, {
|
|
52680
52625
|
name: "mcp",
|
|
52681
52626
|
versionInfo: {
|
|
52682
|
-
currentVersion: "0.
|
|
52627
|
+
currentVersion: "0.2.0"
|
|
52683
52628
|
}
|
|
52684
52629
|
});
|
|
52685
52630
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -52687,5 +52632,5 @@ export {
|
|
|
52687
52632
|
app
|
|
52688
52633
|
};
|
|
52689
52634
|
|
|
52690
|
-
//# debugId=
|
|
52635
|
+
//# debugId=EC1BEF640E20C25F64756E2164756E21
|
|
52691
52636
|
//# sourceMappingURL=mcp-server.js.map
|