@nocobase/plugin-mcp-server 2.2.0-alpha.2 → 2.2.0-alpha.4
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/dist/externalVersion.js +6 -6
- package/dist/node_modules/light-my-request/package.json +1 -1
- package/dist/node_modules/openapi-types/package.json +1 -1
- package/package.json +2 -2
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/.github/CR_logotype-full-color.png +0 -0
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/.github/FUNDING.yml +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/.prettierrc.json +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/LICENSE +0 -15
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/README.md +0 -390
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/changelog.md +0 -83
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/contributing.md +0 -9
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/createIndex.ts +0 -32
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/Options.js +0 -51
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/Refs.js +0 -26
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js +0 -19
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/getRelativePath.js +0 -12
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/index.js +0 -56
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/package.json +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parseDef.js +0 -66
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js +0 -2
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js +0 -21
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js +0 -30
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js +0 -53
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js +0 -9
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js +0 -8
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js +0 -8
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js +0 -50
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js +0 -11
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js +0 -11
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js +0 -10
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js +0 -56
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js +0 -25
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js +0 -30
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js +0 -20
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js +0 -15
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js +0 -14
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js +0 -37
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js +0 -56
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js +0 -76
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js +0 -25
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js +0 -24
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js +0 -8
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js +0 -8
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js +0 -65
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js +0 -24
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js +0 -356
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js +0 -36
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js +0 -10
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js +0 -84
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js +0 -8
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/selectParser.js +0 -109
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js +0 -90
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/Options.js +0 -46
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/Refs.js +0 -22
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +0 -14
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +0 -8
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/index.js +0 -40
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/package.json +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parseDef.js +0 -62
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +0 -17
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +0 -26
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +0 -49
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +0 -5
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +0 -4
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +0 -4
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +0 -46
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +0 -7
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +0 -7
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +0 -6
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +0 -52
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +0 -21
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +0 -26
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +0 -16
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +0 -11
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +0 -10
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +0 -33
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +0 -52
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +0 -72
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +0 -21
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +0 -20
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +0 -4
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +0 -4
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +0 -61
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +0 -20
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +0 -352
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +0 -32
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +0 -6
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +0 -80
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +0 -4
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/selectParser.js +0 -105
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +0 -87
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/Options.d.ts +0 -37
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/Refs.d.ts +0 -17
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/errorMessages.d.ts +0 -15
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/getRelativePath.d.ts +0 -1
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/index.d.ts +0 -40
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parseDef.d.ts +0 -4
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parseTypes.d.ts +0 -34
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/any.d.ts +0 -5
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/array.d.ts +0 -12
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/bigint.d.ts +0 -14
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/boolean.d.ts +0 -4
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/branded.d.ts +0 -3
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/catch.d.ts +0 -3
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/date.d.ts +0 -15
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/default.d.ts +0 -6
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/effects.d.ts +0 -4
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/enum.d.ts +0 -6
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/intersection.d.ts +0 -8
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/literal.d.ts +0 -9
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/map.d.ts +0 -15
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/nativeEnum.d.ts +0 -6
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/never.d.ts +0 -6
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/null.d.ts +0 -5
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/nullable.d.ts +0 -10
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/number.d.ts +0 -13
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/object.d.ts +0 -10
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/optional.d.ts +0 -4
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/pipeline.d.ts +0 -5
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/promise.d.ts +0 -4
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/readonly.d.ts +0 -3
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/record.d.ts +0 -13
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/set.d.ts +0 -13
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/string.d.ts +0 -73
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/tuple.d.ts +0 -13
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/undefined.d.ts +0 -6
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/union.d.ts +0 -23
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/parsers/unknown.d.ts +0 -4
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/selectParser.d.ts +0 -5
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/dist/types/zodToJsonSchema.d.ts +0 -10
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/package.json +0 -85
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/postcjs.ts +0 -3
- package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/postesm.ts +0 -3
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ZodMapDef, ZodRecordDef, ZodTypeAny } from "zod/v3";
|
|
2
|
-
import { JsonSchema7Type } from "../parseTypes.js";
|
|
3
|
-
import { Refs } from "../Refs.js";
|
|
4
|
-
import { JsonSchema7EnumType } from "./enum.js";
|
|
5
|
-
import { JsonSchema7StringType } from "./string.js";
|
|
6
|
-
type JsonSchema7RecordPropertyNamesType = Omit<JsonSchema7StringType, "type"> | Omit<JsonSchema7EnumType, "type">;
|
|
7
|
-
export type JsonSchema7RecordType = {
|
|
8
|
-
type: "object";
|
|
9
|
-
additionalProperties?: JsonSchema7Type | true;
|
|
10
|
-
propertyNames?: JsonSchema7RecordPropertyNamesType;
|
|
11
|
-
};
|
|
12
|
-
export declare function parseRecordDef(def: ZodRecordDef<ZodTypeAny, ZodTypeAny> | ZodMapDef, refs: Refs): JsonSchema7RecordType;
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ZodSetDef } from "zod/v3";
|
|
2
|
-
import { ErrorMessages } from "../errorMessages.js";
|
|
3
|
-
import { JsonSchema7Type } from "../parseTypes.js";
|
|
4
|
-
import { Refs } from "../Refs.js";
|
|
5
|
-
export type JsonSchema7SetType = {
|
|
6
|
-
type: "array";
|
|
7
|
-
uniqueItems: true;
|
|
8
|
-
items?: JsonSchema7Type;
|
|
9
|
-
minItems?: number;
|
|
10
|
-
maxItems?: number;
|
|
11
|
-
errorMessage?: ErrorMessages<JsonSchema7SetType>;
|
|
12
|
-
};
|
|
13
|
-
export declare function parseSetDef(def: ZodSetDef, refs: Refs): JsonSchema7SetType;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { ZodStringDef } from "zod/v3";
|
|
2
|
-
import { ErrorMessages } from "../errorMessages.js";
|
|
3
|
-
import { Refs } from "../Refs.js";
|
|
4
|
-
/**
|
|
5
|
-
* Generated from the regular expressions found here as of 2024-05-22:
|
|
6
|
-
* https://github.com/colinhacks/zod/blob/master/src/types.ts.
|
|
7
|
-
*
|
|
8
|
-
* Expressions with /i flag have been changed accordingly.
|
|
9
|
-
*/
|
|
10
|
-
export declare const zodPatterns: {
|
|
11
|
-
/**
|
|
12
|
-
* `c` was changed to `[cC]` to replicate /i flag
|
|
13
|
-
*/
|
|
14
|
-
readonly cuid: RegExp;
|
|
15
|
-
readonly cuid2: RegExp;
|
|
16
|
-
readonly ulid: RegExp;
|
|
17
|
-
/**
|
|
18
|
-
* `a-z` was added to replicate /i flag
|
|
19
|
-
*/
|
|
20
|
-
readonly email: RegExp;
|
|
21
|
-
/**
|
|
22
|
-
* Constructed a valid Unicode RegExp
|
|
23
|
-
*
|
|
24
|
-
* Lazily instantiate since this type of regex isn't supported
|
|
25
|
-
* in all envs (e.g. React Native).
|
|
26
|
-
*
|
|
27
|
-
* See:
|
|
28
|
-
* https://github.com/colinhacks/zod/issues/2433
|
|
29
|
-
* Fix in Zod:
|
|
30
|
-
* https://github.com/colinhacks/zod/commit/9340fd51e48576a75adc919bff65dbc4a5d4c99b
|
|
31
|
-
*/
|
|
32
|
-
readonly emoji: () => RegExp;
|
|
33
|
-
/**
|
|
34
|
-
* Unused
|
|
35
|
-
*/
|
|
36
|
-
readonly uuid: RegExp;
|
|
37
|
-
/**
|
|
38
|
-
* Unused
|
|
39
|
-
*/
|
|
40
|
-
readonly ipv4: RegExp;
|
|
41
|
-
readonly ipv4Cidr: RegExp;
|
|
42
|
-
/**
|
|
43
|
-
* Unused
|
|
44
|
-
*/
|
|
45
|
-
readonly ipv6: RegExp;
|
|
46
|
-
readonly ipv6Cidr: RegExp;
|
|
47
|
-
readonly base64: RegExp;
|
|
48
|
-
readonly base64url: RegExp;
|
|
49
|
-
readonly nanoid: RegExp;
|
|
50
|
-
readonly jwt: RegExp;
|
|
51
|
-
};
|
|
52
|
-
export type JsonSchema7StringType = {
|
|
53
|
-
type: "string";
|
|
54
|
-
minLength?: number;
|
|
55
|
-
maxLength?: number;
|
|
56
|
-
format?: "email" | "idn-email" | "uri" | "uuid" | "date-time" | "ipv4" | "ipv6" | "date" | "time" | "duration";
|
|
57
|
-
pattern?: string;
|
|
58
|
-
allOf?: {
|
|
59
|
-
pattern: string;
|
|
60
|
-
errorMessage?: ErrorMessages<{
|
|
61
|
-
pattern: string;
|
|
62
|
-
}>;
|
|
63
|
-
}[];
|
|
64
|
-
anyOf?: {
|
|
65
|
-
format: string;
|
|
66
|
-
errorMessage?: ErrorMessages<{
|
|
67
|
-
format: string;
|
|
68
|
-
}>;
|
|
69
|
-
}[];
|
|
70
|
-
errorMessage?: ErrorMessages<JsonSchema7StringType>;
|
|
71
|
-
contentEncoding?: string;
|
|
72
|
-
};
|
|
73
|
-
export declare function parseStringDef(def: ZodStringDef, refs: Refs): JsonSchema7StringType;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ZodTupleDef, ZodTupleItems, ZodTypeAny } from "zod/v3";
|
|
2
|
-
import { JsonSchema7Type } from "../parseTypes.js";
|
|
3
|
-
import { Refs } from "../Refs.js";
|
|
4
|
-
export type JsonSchema7TupleType = {
|
|
5
|
-
type: "array";
|
|
6
|
-
minItems: number;
|
|
7
|
-
items: JsonSchema7Type[];
|
|
8
|
-
} & ({
|
|
9
|
-
maxItems: number;
|
|
10
|
-
} | {
|
|
11
|
-
additionalItems?: JsonSchema7Type;
|
|
12
|
-
});
|
|
13
|
-
export declare function parseTupleDef(def: ZodTupleDef<ZodTupleItems | [], ZodTypeAny | null>, refs: Refs): JsonSchema7TupleType;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ZodDiscriminatedUnionDef, ZodUnionDef } from "zod/v3";
|
|
2
|
-
import { JsonSchema7Type } from "../parseTypes.js";
|
|
3
|
-
import { Refs } from "../Refs.js";
|
|
4
|
-
export declare const primitiveMappings: {
|
|
5
|
-
readonly ZodString: "string";
|
|
6
|
-
readonly ZodNumber: "number";
|
|
7
|
-
readonly ZodBigInt: "integer";
|
|
8
|
-
readonly ZodBoolean: "boolean";
|
|
9
|
-
readonly ZodNull: "null";
|
|
10
|
-
};
|
|
11
|
-
type JsonSchema7Primitive = (typeof primitiveMappings)[keyof typeof primitiveMappings];
|
|
12
|
-
export type JsonSchema7UnionType = JsonSchema7PrimitiveUnionType | JsonSchema7AnyOfType;
|
|
13
|
-
type JsonSchema7PrimitiveUnionType = {
|
|
14
|
-
type: JsonSchema7Primitive | JsonSchema7Primitive[];
|
|
15
|
-
} | {
|
|
16
|
-
type: JsonSchema7Primitive | JsonSchema7Primitive[];
|
|
17
|
-
enum: (string | number | bigint | boolean | null)[];
|
|
18
|
-
};
|
|
19
|
-
type JsonSchema7AnyOfType = {
|
|
20
|
-
anyOf: JsonSchema7Type[];
|
|
21
|
-
};
|
|
22
|
-
export declare function parseUnionDef(def: ZodUnionDef | ZodDiscriminatedUnionDef<any, any>, refs: Refs): JsonSchema7PrimitiveUnionType | JsonSchema7AnyOfType | undefined;
|
|
23
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ZodFirstPartyTypeKind } from "zod/v3";
|
|
2
|
-
import { Refs } from "./Refs.js";
|
|
3
|
-
import { JsonSchema7Type } from "./parseTypes.js";
|
|
4
|
-
export type InnerDefGetter = () => any;
|
|
5
|
-
export declare const selectParser: (def: any, typeName: ZodFirstPartyTypeKind, refs: Refs) => JsonSchema7Type | undefined | InnerDefGetter;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ZodSchema } from "zod/v3";
|
|
2
|
-
import { Options, Targets } from "./Options.js";
|
|
3
|
-
import { JsonSchema7Type } from "./parseTypes.js";
|
|
4
|
-
declare const zodToJsonSchema: <Target extends Targets = "jsonSchema7">(schema: ZodSchema<any>, options?: string | Partial<Options<Target>> | undefined) => (Target extends "jsonSchema7" ? JsonSchema7Type : object) & {
|
|
5
|
-
$schema?: string | undefined;
|
|
6
|
-
definitions?: {
|
|
7
|
-
[key: string]: Target extends "jsonSchema7" ? JsonSchema7Type : Target extends "jsonSchema2019-09" ? JsonSchema7Type : object;
|
|
8
|
-
} | undefined;
|
|
9
|
-
};
|
|
10
|
-
export { zodToJsonSchema };
|
package/dist/node_modules/@modelcontextprotocol/sdk/node_modules/zod-to-json-schema/package.json
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "zod-to-json-schema",
|
|
3
|
-
"version": "3.25.2",
|
|
4
|
-
"description": "Converts Zod schemas to Json Schemas",
|
|
5
|
-
"types": "./dist/types/index.d.ts",
|
|
6
|
-
"main": "./dist/cjs/index.js",
|
|
7
|
-
"module": "./dist/esm/index.js",
|
|
8
|
-
"exports": {
|
|
9
|
-
"import": {
|
|
10
|
-
"types": "./dist/types/index.d.ts",
|
|
11
|
-
"default": "./dist/esm/index.js"
|
|
12
|
-
},
|
|
13
|
-
"require": {
|
|
14
|
-
"types": "./dist/types/index.d.ts",
|
|
15
|
-
"default": "./dist/cjs/index.js"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build:test": "npm --prefix ./dist-test-v3 test && npm --prefix ./dist-test-v4 test",
|
|
20
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
21
|
-
"build:cjs": "tsc -p tsconfig.cjs.json && tsx postcjs.ts",
|
|
22
|
-
"build:esm": "tsc -p tsconfig.esm.json && tsx postesm.ts",
|
|
23
|
-
"build": "npm i && npm run gen && npm test && rimraf ./dist && npm run build:types && npm run build:cjs && npm run build:esm && npm run build:test",
|
|
24
|
-
"dry": "npm run build && npm pub --dry-run",
|
|
25
|
-
"test:watch": "tsx watch test/index.ts",
|
|
26
|
-
"test:gen": "tsx test/createIndex.ts",
|
|
27
|
-
"test": "tsx test/index.ts",
|
|
28
|
-
"gen": "tsx createIndex.ts"
|
|
29
|
-
},
|
|
30
|
-
"keywords": [
|
|
31
|
-
"zod",
|
|
32
|
-
"json",
|
|
33
|
-
"schema",
|
|
34
|
-
"open",
|
|
35
|
-
"api",
|
|
36
|
-
"conversion"
|
|
37
|
-
],
|
|
38
|
-
"author": "Stefan Terdell",
|
|
39
|
-
"contributors": [
|
|
40
|
-
"Hammad Asif (https://github.com/mrhammadasif)",
|
|
41
|
-
"Noah Rosenzweig (https://github.com/Noah2610)",
|
|
42
|
-
"John Wright (https://github.com/johngeorgewright)",
|
|
43
|
-
"Krzysztof Ciombor (https://github.com/krzysztofciombor)",
|
|
44
|
-
"Yuta Mombetsu (https://github.com/mokocm)",
|
|
45
|
-
"Tom Arad (https://github.com/tomarad)",
|
|
46
|
-
"Isaac Way (https://github.com/iway1)",
|
|
47
|
-
"Andreas Berger (https://github.com/Andy2003)",
|
|
48
|
-
"Jan Potoms (https://github.com/Janpot)",
|
|
49
|
-
"Santiago Cammi (https://github.com/scammi)",
|
|
50
|
-
"Philipp Burckhardt (https://github.com/Planeshifter)",
|
|
51
|
-
"Bram del Canho (https://github.com/Bram-dc)",
|
|
52
|
-
"Gilad Hecht (https://github.com/gthecht)",
|
|
53
|
-
"Colin McDonnell (https://github.com/colinhacks)",
|
|
54
|
-
"Spappz (https://github.com/Spappz)",
|
|
55
|
-
"Jacob Lee (https://github.com/jacoblee93)",
|
|
56
|
-
"Brett Zamir (https://github.com/brettz9)",
|
|
57
|
-
"Isaiah Marc Sanchez (https://github.com/imsanchez)",
|
|
58
|
-
"Mitchell Merry (https://github.com/mitchell-merry)",
|
|
59
|
-
"Enzo Monjardín (https://github.com/enzomonjardin)",
|
|
60
|
-
"Víctor Hernández (https://github.com/NanezX)",
|
|
61
|
-
"Faïz Hernawan Abdillah (https://github.com/Abdillah)",
|
|
62
|
-
"Felix Mosheev (https://github.com/felixmosh)"
|
|
63
|
-
],
|
|
64
|
-
"repository": {
|
|
65
|
-
"type": "git",
|
|
66
|
-
"url": "https://github.com/StefanTerdell/zod-to-json-schema"
|
|
67
|
-
},
|
|
68
|
-
"license": "ISC",
|
|
69
|
-
"peerDependencies": {
|
|
70
|
-
"zod": "^3.25.28 || ^4"
|
|
71
|
-
},
|
|
72
|
-
"devDependencies": {
|
|
73
|
-
"@types/json-schema": "^7.0.9",
|
|
74
|
-
"@types/node": "^20.9.0",
|
|
75
|
-
"ajv": "^8.6.3",
|
|
76
|
-
"ajv-errors": "^3.0.0",
|
|
77
|
-
"ajv-formats": "^2.1.1",
|
|
78
|
-
"fast-diff": "^1.3.0",
|
|
79
|
-
"local-ref-resolver": "^0.2.0",
|
|
80
|
-
"rimraf": "^6.1.3",
|
|
81
|
-
"tsx": "^4.19.0",
|
|
82
|
-
"typescript": "^5.1.3",
|
|
83
|
-
"zod": "^3.25.28 || ^4"
|
|
84
|
-
}
|
|
85
|
-
}
|