@tsed/platform-mcp 8.28.5 → 8.28.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/lib/esm/index.js +0 -26
- package/lib/esm/utils/toZod.js +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/fn/defineResource.d.ts +4 -4
- package/lib/types/index.d.ts +0 -26
- package/package.json +8 -7
- package/src/index.ts +0 -26
- package/src/utils/toZod.ts +1 -2
- package/lib/esm/utils/json-schema-to-zod/Types.js +0 -1
- package/lib/esm/utils/json-schema-to-zod/cli.js +0 -83
- package/lib/esm/utils/json-schema-to-zod/index.js +0 -25
- package/lib/esm/utils/json-schema-to-zod/jsonSchemaToZod.js +0 -52
- package/lib/esm/utils/json-schema-to-zod/parsers/parseAllOf.js +0 -43
- package/lib/esm/utils/json-schema-to-zod/parsers/parseAnyOf.js +0 -17
- package/lib/esm/utils/json-schema-to-zod/parsers/parseArray.js +0 -22
- package/lib/esm/utils/json-schema-to-zod/parsers/parseBoolean.js +0 -9
- package/lib/esm/utils/json-schema-to-zod/parsers/parseConst.js +0 -9
- package/lib/esm/utils/json-schema-to-zod/parsers/parseDefault.js +0 -9
- package/lib/esm/utils/json-schema-to-zod/parsers/parseEnum.js +0 -21
- package/lib/esm/utils/json-schema-to-zod/parsers/parseIfThenElse.js +0 -26
- package/lib/esm/utils/json-schema-to-zod/parsers/parseMultipleType.js +0 -10
- package/lib/esm/utils/json-schema-to-zod/parsers/parseNot.js +0 -13
- package/lib/esm/utils/json-schema-to-zod/parsers/parseNull.js +0 -9
- package/lib/esm/utils/json-schema-to-zod/parsers/parseNullable.js +0 -11
- package/lib/esm/utils/json-schema-to-zod/parsers/parseNumber.js +0 -52
- package/lib/esm/utils/json-schema-to-zod/parsers/parseObject.js +0 -177
- package/lib/esm/utils/json-schema-to-zod/parsers/parseOneOf.js +0 -40
- package/lib/esm/utils/json-schema-to-zod/parsers/parseSchema.js +0 -153
- package/lib/esm/utils/json-schema-to-zod/parsers/parseString.js +0 -63
- package/lib/esm/utils/json-schema-to-zod/utils/cliTools.js +0 -126
- package/lib/esm/utils/json-schema-to-zod/utils/half.js +0 -9
- package/lib/esm/utils/json-schema-to-zod/utils/jsdocs.js +0 -24
- package/lib/esm/utils/json-schema-to-zod/utils/omit.js +0 -12
- package/lib/esm/utils/json-schema-to-zod/utils/withMessage.js +0 -28
- package/lib/types/utils/json-schema-to-zod/Types.d.ts +0 -116
- package/lib/types/utils/json-schema-to-zod/cli.d.ts +0 -2
- package/lib/types/utils/json-schema-to-zod/index.d.ts +0 -25
- package/lib/types/utils/json-schema-to-zod/jsonSchemaToZod.d.ts +0 -11
- package/lib/types/utils/json-schema-to-zod/parsers/parseAllOf.d.ts +0 -10
- package/lib/types/utils/json-schema-to-zod/parsers/parseAnyOf.d.ts +0 -10
- package/lib/types/utils/json-schema-to-zod/parsers/parseArray.d.ts +0 -10
- package/lib/types/utils/json-schema-to-zod/parsers/parseBoolean.d.ts +0 -10
- package/lib/types/utils/json-schema-to-zod/parsers/parseConst.d.ts +0 -10
- package/lib/types/utils/json-schema-to-zod/parsers/parseDefault.d.ts +0 -8
- package/lib/types/utils/json-schema-to-zod/parsers/parseEnum.d.ts +0 -10
- package/lib/types/utils/json-schema-to-zod/parsers/parseIfThenElse.d.ts +0 -12
- package/lib/types/utils/json-schema-to-zod/parsers/parseMultipleType.d.ts +0 -10
- package/lib/types/utils/json-schema-to-zod/parsers/parseNot.d.ts +0 -10
- package/lib/types/utils/json-schema-to-zod/parsers/parseNull.d.ts +0 -10
- package/lib/types/utils/json-schema-to-zod/parsers/parseNullable.d.ts +0 -10
- package/lib/types/utils/json-schema-to-zod/parsers/parseNumber.d.ts +0 -10
- package/lib/types/utils/json-schema-to-zod/parsers/parseObject.d.ts +0 -10
- package/lib/types/utils/json-schema-to-zod/parsers/parseOneOf.d.ts +0 -10
- package/lib/types/utils/json-schema-to-zod/parsers/parseSchema.d.ts +0 -61
- package/lib/types/utils/json-schema-to-zod/parsers/parseString.d.ts +0 -10
- package/lib/types/utils/json-schema-to-zod/utils/cliTools.d.ts +0 -67
- package/lib/types/utils/json-schema-to-zod/utils/half.d.ts +0 -7
- package/lib/types/utils/json-schema-to-zod/utils/jsdocs.d.ts +0 -15
- package/lib/types/utils/json-schema-to-zod/utils/omit.d.ts +0 -7
- package/lib/types/utils/json-schema-to-zod/utils/withMessage.d.ts +0 -19
- package/src/utils/json-schema-to-zod/Types.ts +0 -123
- package/src/utils/json-schema-to-zod/cli.ts +0 -88
- package/src/utils/json-schema-to-zod/index.ts +0 -26
- package/src/utils/json-schema-to-zod/jsonSchemaToZod.ts +0 -60
- package/src/utils/json-schema-to-zod/parsers/parseAllOf.ts +0 -50
- package/src/utils/json-schema-to-zod/parsers/parseAnyOf.ts +0 -19
- package/src/utils/json-schema-to-zod/parsers/parseArray.ts +0 -28
- package/src/utils/json-schema-to-zod/parsers/parseBoolean.ts +0 -11
- package/src/utils/json-schema-to-zod/parsers/parseConst.ts +0 -11
- package/src/utils/json-schema-to-zod/parsers/parseDefault.ts +0 -11
- package/src/utils/json-schema-to-zod/parsers/parseEnum.ts +0 -20
- package/src/utils/json-schema-to-zod/parsers/parseIfThenElse.ts +0 -35
- package/src/utils/json-schema-to-zod/parsers/parseMultipleType.ts +0 -12
- package/src/utils/json-schema-to-zod/parsers/parseNot.ts +0 -15
- package/src/utils/json-schema-to-zod/parsers/parseNull.ts +0 -11
- package/src/utils/json-schema-to-zod/parsers/parseNullable.ts +0 -13
- package/src/utils/json-schema-to-zod/parsers/parseNumber.ts +0 -56
- package/src/utils/json-schema-to-zod/parsers/parseObject.ts +0 -220
- package/src/utils/json-schema-to-zod/parsers/parseOneOf.ts +0 -44
- package/src/utils/json-schema-to-zod/parsers/parseSchema.ts +0 -190
- package/src/utils/json-schema-to-zod/parsers/parseString.ts +0 -73
- package/src/utils/json-schema-to-zod/utils/cliTools.ts +0 -189
- package/src/utils/json-schema-to-zod/utils/half.ts +0 -9
- package/src/utils/json-schema-to-zod/utils/jsdocs.ts +0 -29
- package/src/utils/json-schema-to-zod/utils/omit.ts +0 -14
- package/src/utils/json-schema-to-zod/utils/withMessage.ts +0 -42
package/lib/esm/index.js
CHANGED
|
@@ -11,30 +11,4 @@ export * from "./fn/defineTool.js";
|
|
|
11
11
|
export * from "./interfaces/PlatformMcpSettings.js";
|
|
12
12
|
export * from "./services/McpServerFactory.js";
|
|
13
13
|
export * from "./services/PlatformMcpModule.js";
|
|
14
|
-
export * from "./utils/json-schema-to-zod/cli.js";
|
|
15
|
-
export * from "./utils/json-schema-to-zod/index.js";
|
|
16
|
-
export * from "./utils/json-schema-to-zod/jsonSchemaToZod.js";
|
|
17
|
-
export * from "./utils/json-schema-to-zod/parsers/parseAllOf.js";
|
|
18
|
-
export * from "./utils/json-schema-to-zod/parsers/parseAnyOf.js";
|
|
19
|
-
export * from "./utils/json-schema-to-zod/parsers/parseArray.js";
|
|
20
|
-
export * from "./utils/json-schema-to-zod/parsers/parseBoolean.js";
|
|
21
|
-
export * from "./utils/json-schema-to-zod/parsers/parseConst.js";
|
|
22
|
-
export * from "./utils/json-schema-to-zod/parsers/parseDefault.js";
|
|
23
|
-
export * from "./utils/json-schema-to-zod/parsers/parseEnum.js";
|
|
24
|
-
export * from "./utils/json-schema-to-zod/parsers/parseIfThenElse.js";
|
|
25
|
-
export * from "./utils/json-schema-to-zod/parsers/parseMultipleType.js";
|
|
26
|
-
export * from "./utils/json-schema-to-zod/parsers/parseNot.js";
|
|
27
|
-
export * from "./utils/json-schema-to-zod/parsers/parseNull.js";
|
|
28
|
-
export * from "./utils/json-schema-to-zod/parsers/parseNullable.js";
|
|
29
|
-
export * from "./utils/json-schema-to-zod/parsers/parseNumber.js";
|
|
30
|
-
export * from "./utils/json-schema-to-zod/parsers/parseObject.js";
|
|
31
|
-
export * from "./utils/json-schema-to-zod/parsers/parseOneOf.js";
|
|
32
|
-
export * from "./utils/json-schema-to-zod/parsers/parseSchema.js";
|
|
33
|
-
export * from "./utils/json-schema-to-zod/parsers/parseString.js";
|
|
34
|
-
export * from "./utils/json-schema-to-zod/Types.js";
|
|
35
|
-
export * from "./utils/json-schema-to-zod/utils/cliTools.js";
|
|
36
|
-
export * from "./utils/json-schema-to-zod/utils/half.js";
|
|
37
|
-
export * from "./utils/json-schema-to-zod/utils/jsdocs.js";
|
|
38
|
-
export * from "./utils/json-schema-to-zod/utils/omit.js";
|
|
39
|
-
export * from "./utils/json-schema-to-zod/utils/withMessage.js";
|
|
40
14
|
export * from "./utils/toZod.js";
|
package/lib/esm/utils/toZod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JsonSchema } from "@tsed/schema";
|
|
2
|
+
import { jsonSchemaToZod } from "json-schema-to-zod";
|
|
2
3
|
import { z } from "zod";
|
|
3
|
-
import { jsonSchemaToZod } from "./json-schema-to-zod/index.js";
|
|
4
4
|
function transform(schema) {
|
|
5
5
|
return eval(`(z) => ${jsonSchemaToZod(schema.toJSON(), { zodVersion: 4 })}`)(z);
|
|
6
6
|
}
|