@power-plant/schema 0.0.35 → 0.0.37
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/codegen.cjs +1 -1
- package/dist/codegen.d.cts +1 -1
- package/dist/codegen.d.mts +1 -1
- package/dist/codegen.mjs +7 -7
- package/dist/{constants-COGt3eeW.mjs → constants-BlppSDwG.mjs} +11 -2
- package/dist/constants-BlppSDwG.mjs.map +1 -0
- package/dist/{constants-B7xonHLD.cjs → constants-CEmLvTDd.cjs} +15 -0
- package/dist/{helpers-BQD6GZyX.cjs → helpers-DbFdMcOB.cjs} +22 -2
- package/dist/{helpers-dvxktFml.mjs → helpers-_8ADIMSN.mjs} +18 -4
- package/dist/helpers-_8ADIMSN.mjs.map +1 -0
- package/dist/index.cjs +577 -170
- package/dist/index.d.cts +31 -16
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +31 -16
- package/dist/index.mjs +577 -174
- package/dist/{types-CyvYSCHO.d.mts → types-BH-Q7QrB.d.cts} +112 -9
- package/dist/types-BH-Q7QrB.d.cts.map +1 -0
- package/dist/{types-hfHmxKG0.d.cts → types-BrSNvUQg.d.mts} +112 -9
- package/dist/types-BrSNvUQg.d.mts.map +1 -0
- package/dist/valibot.cjs +1 -1
- package/dist/valibot.d.cts +1 -1
- package/dist/valibot.d.mts +1 -1
- package/dist/valibot.mjs +1 -1
- package/dist/zod.cjs +2 -2
- package/dist/zod.d.cts +1 -1
- package/dist/zod.d.mts +1 -1
- package/dist/zod.mjs +2 -2
- package/package.json +22 -19
- package/dist/constants-COGt3eeW.mjs.map +0 -1
- package/dist/helpers-dvxktFml.mjs.map +0 -1
- package/dist/types-CyvYSCHO.d.mts.map +0 -1
- package/dist/types-hfHmxKG0.d.cts.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BaseIssue, BaseSchema } from "valibot";
|
|
1
|
+
import { ReceiveType, Type } from "@deepkit/type";
|
|
3
2
|
import { StandardJSONSchemaV1 } from "@standard-schema/spec";
|
|
4
3
|
import { InferLoadOptions, LoadReference } from "@stryke/resolve/types";
|
|
5
4
|
import { Storage } from "unstorage";
|
|
6
5
|
import { InputObject, Schema } from "untyped";
|
|
6
|
+
import { BaseIssue, BaseSchema } from "valibot";
|
|
7
7
|
import * as z3 from "zod/v3";
|
|
8
8
|
//#region src/constants.d.ts
|
|
9
9
|
declare const JsonSchemaTypeNames: {
|
|
@@ -18,6 +18,15 @@ declare const JsonSchemaTypeNames: {
|
|
|
18
18
|
declare const JSON_SCHEMA_PRIMITIVE_TYPES: ("string" | "number" | "boolean" | "null" | "integer")[];
|
|
19
19
|
declare const JSON_SCHEMA_TYPES: ("string" | "number" | "boolean" | "object" | "null" | "array" | "integer")[];
|
|
20
20
|
declare const JSON_SCHEMA_METADATA_KEYS: ("$id" | "$schema" | "$vocabulary" | "$comment" | "$anchor" | "$defs" | "$dynamicRef" | "$dynamicAnchor" | "name" | "version" | "title" | "description" | "docs" | "examples" | "alias" | "tags" | "deprecated" | "hidden" | "ignore" | "internal" | "runtime" | "readOnly" | "writeOnly")[];
|
|
21
|
+
/**
|
|
22
|
+
* Own-property key set to `true` on constructor function schemas.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Must be read with `Object.hasOwn(schema, JSON_SCHEMA_CONSTRUCTOR_KEY)` (or
|
|
26
|
+
* `hasJsonSchemaConstructorFlag`) — never via `schema.constructor`, which
|
|
27
|
+
* resolves `Object.prototype.constructor`.
|
|
28
|
+
*/
|
|
29
|
+
declare const JSON_SCHEMA_CONSTRUCTOR_KEY: "constructor";
|
|
21
30
|
/**
|
|
22
31
|
* Keywords whose values are a flat record of named JSON Schema fragments.
|
|
23
32
|
* Each child schema is merged recursively with its counterpart.
|
|
@@ -983,13 +992,86 @@ interface JsonSchemaRef extends JsonSchemaKeywords {
|
|
|
983
992
|
*/
|
|
984
993
|
$ref: string;
|
|
985
994
|
}
|
|
995
|
+
interface JsonSchemaFunction extends JsonSchemaKeywords {
|
|
996
|
+
/**
|
|
997
|
+
* Declares whether values are numbers or integers.
|
|
998
|
+
*/
|
|
999
|
+
type: "object";
|
|
1000
|
+
/**
|
|
1001
|
+
* An indicator specifying if the schema is a function or not.
|
|
1002
|
+
*
|
|
1003
|
+
* @remarks
|
|
1004
|
+
* This is an internal property used by Power Plant - it is not part of the JSON Schema specification.
|
|
1005
|
+
* When true, `parameters` describes the function arguments in declaration order and `returns`
|
|
1006
|
+
* describes the return value (omitted for `void` / `undefined` / `never`).
|
|
1007
|
+
*
|
|
1008
|
+
* Constructor schemas also emit an own-property `"constructor": true` on the wire (see
|
|
1009
|
+
* `JSON_SCHEMA_CONSTRUCTOR_KEY`). That key is intentionally omitted from this interface
|
|
1010
|
+
* because a TypeScript `constructor` property collides with `Object.prototype.constructor` and
|
|
1011
|
+
* breaks assignability across the schema union. Read it with `hasJsonSchemaConstructorFlag`.
|
|
1012
|
+
*/
|
|
1013
|
+
function: true;
|
|
1014
|
+
/**
|
|
1015
|
+
* When true, the function is asynchronous (`async` and/or returns `Promise<T>`).
|
|
1016
|
+
*
|
|
1017
|
+
* @remarks
|
|
1018
|
+
* This is an internal property used by Power Plant - it is not part of the JSON Schema specification.
|
|
1019
|
+
* When set, `returns` describes the unwrapped `T` from `Promise<T>` (one layer).
|
|
1020
|
+
*/
|
|
1021
|
+
async?: boolean;
|
|
1022
|
+
/**
|
|
1023
|
+
* Ordered function parameters when `function` is true.
|
|
1024
|
+
*
|
|
1025
|
+
* @remarks
|
|
1026
|
+
* Always present for function schemas (may be an empty array). Each entry wraps a parameter
|
|
1027
|
+
* schema with metadata such as `name`, `optional`, `rest`, and `this`.
|
|
1028
|
+
*/
|
|
1029
|
+
parameters?: JsonSchemaFunctionParameter[];
|
|
1030
|
+
/**
|
|
1031
|
+
* Return-value schema when `function` is true.
|
|
1032
|
+
*
|
|
1033
|
+
* @remarks
|
|
1034
|
+
* Omitted for `void`, `undefined`, and `never` return types.
|
|
1035
|
+
*/
|
|
1036
|
+
returns?: JsonSchema;
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* A single function parameter entry emitted when `function` is true.
|
|
1040
|
+
*
|
|
1041
|
+
* @remarks
|
|
1042
|
+
* Power Plant extension for function parameter schemas emitted from Deepkit reflection.
|
|
1043
|
+
* Boolean flags are omitted when false. Defaults live on `schema.default`.
|
|
1044
|
+
*/
|
|
1045
|
+
interface JsonSchemaFunctionParameter extends JsonSchemaKeywords {
|
|
1046
|
+
/**
|
|
1047
|
+
* Parameter name. Binding-pattern parameters use synthetic names (`$0`, `$1`, ...).
|
|
1048
|
+
* Rest parameter names omit the `...` prefix.
|
|
1049
|
+
*/
|
|
1050
|
+
name: string;
|
|
1051
|
+
/**
|
|
1052
|
+
* JSON Schema for the parameter value.
|
|
1053
|
+
*/
|
|
1054
|
+
schema: JsonSchema;
|
|
1055
|
+
/**
|
|
1056
|
+
* True when the parameter is declared with `?`.
|
|
1057
|
+
*/
|
|
1058
|
+
optional?: boolean;
|
|
1059
|
+
/**
|
|
1060
|
+
* True when the parameter is a rest parameter (`...args`).
|
|
1061
|
+
*/
|
|
1062
|
+
rest?: boolean;
|
|
1063
|
+
/**
|
|
1064
|
+
* True when the parameter is a `this` parameter.
|
|
1065
|
+
*/
|
|
1066
|
+
this?: boolean;
|
|
1067
|
+
}
|
|
986
1068
|
/**
|
|
987
1069
|
* JSON Schema (draft 2020-12) type that can be used to validate JSON data. It is a union of all the specific JSON Schema types, as well as the metadata properties that can be included in any JSON Schema.
|
|
988
1070
|
*
|
|
989
1071
|
* @see https://json-schema.org/draft/2020-12
|
|
990
1072
|
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
|
|
991
1073
|
*/
|
|
992
|
-
type JsonSchema = JsonSchemaString | JsonSchemaInteger | JsonSchemaDecimal | JsonSchemaBigint | JsonSchemaBoolean | JsonSchemaDate | JsonSchemaEnum | JsonSchemaLiteral | JsonSchemaNativeEnum | JsonSchemaNull | JsonSchemaArray | JsonSchemaObject | JsonSchemaRecord | JsonSchemaTuple | JsonSchemaUnion | JsonSchemaUndefined | JsonSchemaRef | JsonSchemaNever | JsonSchemaMap | JsonSchemaAny | JsonSchemaNullable | JsonSchemaAllOf | JsonSchemaUnknown | JsonSchemaSet;
|
|
1074
|
+
type JsonSchema = JsonSchemaString | JsonSchemaInteger | JsonSchemaDecimal | JsonSchemaBigint | JsonSchemaBoolean | JsonSchemaDate | JsonSchemaEnum | JsonSchemaLiteral | JsonSchemaNativeEnum | JsonSchemaNull | JsonSchemaArray | JsonSchemaObject | JsonSchemaRecord | JsonSchemaTuple | JsonSchemaUnion | JsonSchemaUndefined | JsonSchemaRef | JsonSchemaNever | JsonSchemaMap | JsonSchemaAny | JsonSchemaNullable | JsonSchemaAllOf | JsonSchemaUnknown | JsonSchemaSet | JsonSchemaFunction;
|
|
993
1075
|
/**
|
|
994
1076
|
* An object containing common JSON Schema metadata properties that can be included in any schema type. This interface is used to define the shared metadata properties that can be present in all JSON Schema types, such as `$id`, `$schema`, `title`, `description`, and others. It serves as a base for all specific JSON Schema types, allowing them to include these common metadata properties without having to redefine them in each type.
|
|
995
1077
|
*/
|
|
@@ -1157,7 +1239,7 @@ type SpecOf<TJsonSchema extends JsonSchema> = TJsonSchema extends JsonSchemaNeve
|
|
|
1157
1239
|
/**
|
|
1158
1240
|
* Supported source variants from which a schema can be extracted.
|
|
1159
1241
|
*/
|
|
1160
|
-
type SchemaSourceVariant = "standard-schema" | "json-schema" | "zod3" | "untyped" | "valibot";
|
|
1242
|
+
type SchemaSourceVariant = "standard-schema" | "json-schema" | "zod3" | "untyped" | "valibot" | "reflection";
|
|
1161
1243
|
/**
|
|
1162
1244
|
* Accepted schema input variants, including raw type definitions.
|
|
1163
1245
|
*/
|
|
@@ -1181,7 +1263,7 @@ type ValibotSchema<TInput = unknown, TOutput = unknown, TIssue extends BaseIssue
|
|
|
1181
1263
|
/**
|
|
1182
1264
|
* Raw schema source input union before normalization.
|
|
1183
1265
|
*/
|
|
1184
|
-
type SchemaSourceConfig<TSpec = any> = StandardJSONSchemaV1<TSpec> | JsonSchemaOf<TSpec> | z3.ZodType<TSpec, any, any> | UntypedConfigObject | UntypedSchema | ValibotSchema<TSpec>;
|
|
1266
|
+
type SchemaSourceConfig<TSpec = any> = StandardJSONSchemaV1<TSpec> | JsonSchemaOf<TSpec> | z3.ZodType<TSpec, any, any> | UntypedConfigObject | UntypedSchema | ValibotSchema<TSpec> | Type | ReceiveType<TSpec>;
|
|
1185
1267
|
/**
|
|
1186
1268
|
* Any accepted schema input, including normalized schemas and references.
|
|
1187
1269
|
*
|
|
@@ -1219,11 +1301,23 @@ type BaseExtractOptions = {
|
|
|
1219
1301
|
* An optional working directory to use for resolving file references. If provided, the working directory will be used to resolve file references, which can improve performance by avoiding redundant file resolution operations. If not provided, the current working directory will be used.
|
|
1220
1302
|
*/
|
|
1221
1303
|
cwd?: string;
|
|
1304
|
+
/**
|
|
1305
|
+
* An optional path to a `tsconfig.json` used when reflecting TypeScript types.
|
|
1306
|
+
*/
|
|
1307
|
+
tsconfig?: string;
|
|
1222
1308
|
/**
|
|
1223
1309
|
* An optional logger to use for logging messages. If provided, the logger will be used to log messages, which can improve performance by avoiding redundant logging operations. If not provided, the default logger will be used.
|
|
1224
1310
|
*/
|
|
1225
1311
|
logger?: Logger;
|
|
1226
|
-
|
|
1312
|
+
/**
|
|
1313
|
+
* An optional mode for the reflection.
|
|
1314
|
+
*/
|
|
1315
|
+
reflection?: string[] | "default" | "explicit" | "never" | undefined;
|
|
1316
|
+
/**
|
|
1317
|
+
* An optional list of paths to exclude from the reflection.
|
|
1318
|
+
*/
|
|
1319
|
+
exclude?: string[];
|
|
1320
|
+
};
|
|
1227
1321
|
type InferExtractOptions<T extends SchemaConfig> = (T extends LoadReference ? Omit<InferLoadOptions<T>, "fs"> : {}) & BaseExtractOptions;
|
|
1228
1322
|
/**
|
|
1229
1323
|
* A schema envelope that contains the normalized schema and its source variant.
|
|
@@ -1306,10 +1400,19 @@ interface ValibotSchemaSource<TSpec = any> extends BaseSchemaSource<TSpec> {
|
|
|
1306
1400
|
/** The original Valibot schema input. */
|
|
1307
1401
|
schema: ValibotSchema<TSpec>;
|
|
1308
1402
|
}
|
|
1403
|
+
/**
|
|
1404
|
+
* Source descriptor for Deepkit reflection type inputs.
|
|
1405
|
+
*/
|
|
1406
|
+
interface ReflectionSchemaSource<TSpec = any> extends BaseSchemaSource<TSpec> {
|
|
1407
|
+
/** Indicates the source input is a Deepkit reflection {@link Type}. */
|
|
1408
|
+
variant: "reflection";
|
|
1409
|
+
/** The original Deepkit reflection type. */
|
|
1410
|
+
schema: Type;
|
|
1411
|
+
}
|
|
1309
1412
|
/**
|
|
1310
1413
|
* Union of all normalized schema source descriptor variants.
|
|
1311
1414
|
*/
|
|
1312
|
-
type SchemaSource<TSpec = any> = JsonSchemaSchemaSource<TSpec> | StandardSchemaSchemaSource<TSpec> | Zod3SchemaSource<TSpec> | UntypedSchemaSource<TSpec> | ValibotSchemaSource<TSpec>;
|
|
1415
|
+
type SchemaSource<TSpec = any> = JsonSchemaSchemaSource<TSpec> | StandardSchemaSchemaSource<TSpec> | Zod3SchemaSource<TSpec> | UntypedSchemaSource<TSpec> | ValibotSchemaSource<TSpec> | ReflectionSchemaSource<TSpec>;
|
|
1313
1416
|
/**
|
|
1314
1417
|
* A normalized schema plus metadata about the source that produced it.
|
|
1315
1418
|
*/
|
|
@@ -1346,5 +1449,5 @@ declare module "zod" {
|
|
|
1346
1449
|
}
|
|
1347
1450
|
}
|
|
1348
1451
|
//#endregion
|
|
1349
|
-
export {
|
|
1350
|
-
//# sourceMappingURL=types-
|
|
1452
|
+
export { SchemaEnvelopeOf as $, JsonSchemaNullable as A, JsonSchemaSchemaSource as B, JsonSchemaLiteral as C, JsonSchemaNativeEnum as D, JsonSchemaMetadataKeywords as E, JsonSchemaPrimitiveType as F, JsonSchemaType as G, JsonSchemaString as H, JsonSchemaPrimitiveUnion as I, JsonSchemaUnknown as J, JsonSchemaUndefined as K, JsonSchemaRecord as L, JsonSchemaNumberFormat as M, JsonSchemaObject as N, JsonSchemaNever as O, JsonSchemaOf as P, SchemaEnvelope as Q, JsonSchemaRecordPropertyNames as R, JsonSchemaLike as S, JsonSchemaMap as T, JsonSchemaStringFormat as U, JsonSchemaSet as V, JsonSchemaTuple as W, SchemaConfig as X, ReflectionSchemaSource as Y, SchemaConfigVariant as Z, JsonSchemaFunction as _, SCHEMA_RECORD_KEYWORDS as _t, JsonSchema as a, UntypedConfigObject as at, JsonSchemaIntegerFormat as b, JsonSchemaAnyOf as c, ValibotSchema as ct, JsonSchemaBoolean as d, JSON_SCHEMA_CONSTRUCTOR_KEY as dt, SchemaSource as et, JsonSchemaConditionalKeywords as f, JSON_SCHEMA_METADATA_KEYS as ft, JsonSchemaEnum as g, SCHEMA_ARRAY_CONCAT_KEYWORDS as gt, JsonSchemaDecimalFormat as h, JsonSchemaTypeNames as ht, InferExtractOptions as i, StandardSchemaSchemaSource as it, JsonSchemaNumber as j, JsonSchemaNull as k, JsonSchemaArray as l, ValibotSchemaSource as lt, JsonSchemaDecimal as m, JSON_SCHEMA_TYPES as mt, BaseSchemaSource as n, SchemaSourceVariant as nt, JsonSchemaAllOf as o, UntypedSchema as ot, JsonSchemaDate as p, JSON_SCHEMA_PRIMITIVE_TYPES as pt, JsonSchemaUnion as q, ExtractedSchemaEnvelope as r, SpecOf as rt, JsonSchemaAny as s, UntypedSchemaSource as st, BaseExtractOptions as t, SchemaSourceConfig as tt, JsonSchemaBigint as u, Zod3SchemaSource as ut, JsonSchemaFunctionParameter as v, SCHEMA_SINGLE_KEYWORDS as vt, JsonSchemaLogicKeywords as w, JsonSchemaKeywords as x, JsonSchemaInteger as y, JsonSchemaRef as z };
|
|
1453
|
+
//# sourceMappingURL=types-BH-Q7QrB.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-BH-Q7QrB.d.cts","names":[],"sources":["../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AiB;;EAEzB;;EAGA,QAAQ,aAAa;;;;;UAMN,2BACf,qBACQ,iBAAiB;;EAEzB;;EAGA,QAAQ,qBAAqB;;;;;UAMd,iBAAiB,qBAAqB,iBAAiB;;EAEtE;;EAGA,QAAQ,GAAG,QAAQ;;;;;UAMJ,oBACf,qBACQ,iBAAiB;;EAEzB;;EAGA,QAAQ,sBAAsB;;;;;UAMf,oBACf,qBACQ,iBAAiB;;EAEzB;;EAGA,QAAQ,cAAc;;;;;UAMP,uBACf,qBACQ,iBAAiB;;EAEzB;;EAGA,QAAQ;;;;;KAME,aAAa,eACrB,uBAAuB,SACvB,2BAA2B,SAC3B,iBAAiB,SACjB,oBAAoB,SACpB,oBAAoB,SACpB,uBAAuB;;;;UAKV,wBACf,qBACQ,iBAAiB;;;;EAIzB,QAAQ,aAAa;;;YAIX;IACR;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;MACc;MAAe;MAAsB;;IACnD;IACA;IACA;IACA;IACA;KACC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { ReceiveType, Type } from "@deepkit/type";
|
|
2
|
+
import { BaseIssue, BaseSchema } from "valibot";
|
|
1
3
|
import { StandardJSONSchemaV1 } from "@standard-schema/spec";
|
|
2
4
|
import { InferLoadOptions, LoadReference } from "@stryke/resolve/types";
|
|
3
|
-
import { Config } from "ts-json-schema-generator/dist/src/Config.js";
|
|
4
5
|
import { Storage } from "unstorage";
|
|
5
6
|
import { InputObject, Schema } from "untyped";
|
|
6
|
-
import { BaseIssue, BaseSchema } from "valibot";
|
|
7
7
|
import * as z3 from "zod/v3";
|
|
8
8
|
//#region src/constants.d.ts
|
|
9
9
|
declare const JsonSchemaTypeNames: {
|
|
@@ -18,6 +18,15 @@ declare const JsonSchemaTypeNames: {
|
|
|
18
18
|
declare const JSON_SCHEMA_PRIMITIVE_TYPES: ("string" | "number" | "boolean" | "null" | "integer")[];
|
|
19
19
|
declare const JSON_SCHEMA_TYPES: ("string" | "number" | "boolean" | "object" | "null" | "array" | "integer")[];
|
|
20
20
|
declare const JSON_SCHEMA_METADATA_KEYS: ("$id" | "$schema" | "$vocabulary" | "$comment" | "$anchor" | "$defs" | "$dynamicRef" | "$dynamicAnchor" | "name" | "version" | "title" | "description" | "docs" | "examples" | "alias" | "tags" | "deprecated" | "hidden" | "ignore" | "internal" | "runtime" | "readOnly" | "writeOnly")[];
|
|
21
|
+
/**
|
|
22
|
+
* Own-property key set to `true` on constructor function schemas.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Must be read with `Object.hasOwn(schema, JSON_SCHEMA_CONSTRUCTOR_KEY)` (or
|
|
26
|
+
* `hasJsonSchemaConstructorFlag`) — never via `schema.constructor`, which
|
|
27
|
+
* resolves `Object.prototype.constructor`.
|
|
28
|
+
*/
|
|
29
|
+
declare const JSON_SCHEMA_CONSTRUCTOR_KEY: "constructor";
|
|
21
30
|
/**
|
|
22
31
|
* Keywords whose values are a flat record of named JSON Schema fragments.
|
|
23
32
|
* Each child schema is merged recursively with its counterpart.
|
|
@@ -983,13 +992,86 @@ interface JsonSchemaRef extends JsonSchemaKeywords {
|
|
|
983
992
|
*/
|
|
984
993
|
$ref: string;
|
|
985
994
|
}
|
|
995
|
+
interface JsonSchemaFunction extends JsonSchemaKeywords {
|
|
996
|
+
/**
|
|
997
|
+
* Declares whether values are numbers or integers.
|
|
998
|
+
*/
|
|
999
|
+
type: "object";
|
|
1000
|
+
/**
|
|
1001
|
+
* An indicator specifying if the schema is a function or not.
|
|
1002
|
+
*
|
|
1003
|
+
* @remarks
|
|
1004
|
+
* This is an internal property used by Power Plant - it is not part of the JSON Schema specification.
|
|
1005
|
+
* When true, `parameters` describes the function arguments in declaration order and `returns`
|
|
1006
|
+
* describes the return value (omitted for `void` / `undefined` / `never`).
|
|
1007
|
+
*
|
|
1008
|
+
* Constructor schemas also emit an own-property `"constructor": true` on the wire (see
|
|
1009
|
+
* `JSON_SCHEMA_CONSTRUCTOR_KEY`). That key is intentionally omitted from this interface
|
|
1010
|
+
* because a TypeScript `constructor` property collides with `Object.prototype.constructor` and
|
|
1011
|
+
* breaks assignability across the schema union. Read it with `hasJsonSchemaConstructorFlag`.
|
|
1012
|
+
*/
|
|
1013
|
+
function: true;
|
|
1014
|
+
/**
|
|
1015
|
+
* When true, the function is asynchronous (`async` and/or returns `Promise<T>`).
|
|
1016
|
+
*
|
|
1017
|
+
* @remarks
|
|
1018
|
+
* This is an internal property used by Power Plant - it is not part of the JSON Schema specification.
|
|
1019
|
+
* When set, `returns` describes the unwrapped `T` from `Promise<T>` (one layer).
|
|
1020
|
+
*/
|
|
1021
|
+
async?: boolean;
|
|
1022
|
+
/**
|
|
1023
|
+
* Ordered function parameters when `function` is true.
|
|
1024
|
+
*
|
|
1025
|
+
* @remarks
|
|
1026
|
+
* Always present for function schemas (may be an empty array). Each entry wraps a parameter
|
|
1027
|
+
* schema with metadata such as `name`, `optional`, `rest`, and `this`.
|
|
1028
|
+
*/
|
|
1029
|
+
parameters?: JsonSchemaFunctionParameter[];
|
|
1030
|
+
/**
|
|
1031
|
+
* Return-value schema when `function` is true.
|
|
1032
|
+
*
|
|
1033
|
+
* @remarks
|
|
1034
|
+
* Omitted for `void`, `undefined`, and `never` return types.
|
|
1035
|
+
*/
|
|
1036
|
+
returns?: JsonSchema;
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* A single function parameter entry emitted when `function` is true.
|
|
1040
|
+
*
|
|
1041
|
+
* @remarks
|
|
1042
|
+
* Power Plant extension for function parameter schemas emitted from Deepkit reflection.
|
|
1043
|
+
* Boolean flags are omitted when false. Defaults live on `schema.default`.
|
|
1044
|
+
*/
|
|
1045
|
+
interface JsonSchemaFunctionParameter extends JsonSchemaKeywords {
|
|
1046
|
+
/**
|
|
1047
|
+
* Parameter name. Binding-pattern parameters use synthetic names (`$0`, `$1`, ...).
|
|
1048
|
+
* Rest parameter names omit the `...` prefix.
|
|
1049
|
+
*/
|
|
1050
|
+
name: string;
|
|
1051
|
+
/**
|
|
1052
|
+
* JSON Schema for the parameter value.
|
|
1053
|
+
*/
|
|
1054
|
+
schema: JsonSchema;
|
|
1055
|
+
/**
|
|
1056
|
+
* True when the parameter is declared with `?`.
|
|
1057
|
+
*/
|
|
1058
|
+
optional?: boolean;
|
|
1059
|
+
/**
|
|
1060
|
+
* True when the parameter is a rest parameter (`...args`).
|
|
1061
|
+
*/
|
|
1062
|
+
rest?: boolean;
|
|
1063
|
+
/**
|
|
1064
|
+
* True when the parameter is a `this` parameter.
|
|
1065
|
+
*/
|
|
1066
|
+
this?: boolean;
|
|
1067
|
+
}
|
|
986
1068
|
/**
|
|
987
1069
|
* JSON Schema (draft 2020-12) type that can be used to validate JSON data. It is a union of all the specific JSON Schema types, as well as the metadata properties that can be included in any JSON Schema.
|
|
988
1070
|
*
|
|
989
1071
|
* @see https://json-schema.org/draft/2020-12
|
|
990
1072
|
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
|
|
991
1073
|
*/
|
|
992
|
-
type JsonSchema = JsonSchemaString | JsonSchemaInteger | JsonSchemaDecimal | JsonSchemaBigint | JsonSchemaBoolean | JsonSchemaDate | JsonSchemaEnum | JsonSchemaLiteral | JsonSchemaNativeEnum | JsonSchemaNull | JsonSchemaArray | JsonSchemaObject | JsonSchemaRecord | JsonSchemaTuple | JsonSchemaUnion | JsonSchemaUndefined | JsonSchemaRef | JsonSchemaNever | JsonSchemaMap | JsonSchemaAny | JsonSchemaNullable | JsonSchemaAllOf | JsonSchemaUnknown | JsonSchemaSet;
|
|
1074
|
+
type JsonSchema = JsonSchemaString | JsonSchemaInteger | JsonSchemaDecimal | JsonSchemaBigint | JsonSchemaBoolean | JsonSchemaDate | JsonSchemaEnum | JsonSchemaLiteral | JsonSchemaNativeEnum | JsonSchemaNull | JsonSchemaArray | JsonSchemaObject | JsonSchemaRecord | JsonSchemaTuple | JsonSchemaUnion | JsonSchemaUndefined | JsonSchemaRef | JsonSchemaNever | JsonSchemaMap | JsonSchemaAny | JsonSchemaNullable | JsonSchemaAllOf | JsonSchemaUnknown | JsonSchemaSet | JsonSchemaFunction;
|
|
993
1075
|
/**
|
|
994
1076
|
* An object containing common JSON Schema metadata properties that can be included in any schema type. This interface is used to define the shared metadata properties that can be present in all JSON Schema types, such as `$id`, `$schema`, `title`, `description`, and others. It serves as a base for all specific JSON Schema types, allowing them to include these common metadata properties without having to redefine them in each type.
|
|
995
1077
|
*/
|
|
@@ -1157,7 +1239,7 @@ type SpecOf<TJsonSchema extends JsonSchema> = TJsonSchema extends JsonSchemaNeve
|
|
|
1157
1239
|
/**
|
|
1158
1240
|
* Supported source variants from which a schema can be extracted.
|
|
1159
1241
|
*/
|
|
1160
|
-
type SchemaSourceVariant = "standard-schema" | "json-schema" | "zod3" | "untyped" | "valibot";
|
|
1242
|
+
type SchemaSourceVariant = "standard-schema" | "json-schema" | "zod3" | "untyped" | "valibot" | "reflection";
|
|
1161
1243
|
/**
|
|
1162
1244
|
* Accepted schema input variants, including raw type definitions.
|
|
1163
1245
|
*/
|
|
@@ -1181,7 +1263,7 @@ type ValibotSchema<TInput = unknown, TOutput = unknown, TIssue extends BaseIssue
|
|
|
1181
1263
|
/**
|
|
1182
1264
|
* Raw schema source input union before normalization.
|
|
1183
1265
|
*/
|
|
1184
|
-
type SchemaSourceConfig<TSpec = any> = StandardJSONSchemaV1<TSpec> | JsonSchemaOf<TSpec> | z3.ZodType<TSpec, any, any> | UntypedConfigObject | UntypedSchema | ValibotSchema<TSpec>;
|
|
1266
|
+
type SchemaSourceConfig<TSpec = any> = StandardJSONSchemaV1<TSpec> | JsonSchemaOf<TSpec> | z3.ZodType<TSpec, any, any> | UntypedConfigObject | UntypedSchema | ValibotSchema<TSpec> | Type | ReceiveType<TSpec>;
|
|
1185
1267
|
/**
|
|
1186
1268
|
* Any accepted schema input, including normalized schemas and references.
|
|
1187
1269
|
*
|
|
@@ -1219,11 +1301,23 @@ type BaseExtractOptions = {
|
|
|
1219
1301
|
* An optional working directory to use for resolving file references. If provided, the working directory will be used to resolve file references, which can improve performance by avoiding redundant file resolution operations. If not provided, the current working directory will be used.
|
|
1220
1302
|
*/
|
|
1221
1303
|
cwd?: string;
|
|
1304
|
+
/**
|
|
1305
|
+
* An optional path to a `tsconfig.json` used when reflecting TypeScript types.
|
|
1306
|
+
*/
|
|
1307
|
+
tsconfig?: string;
|
|
1222
1308
|
/**
|
|
1223
1309
|
* An optional logger to use for logging messages. If provided, the logger will be used to log messages, which can improve performance by avoiding redundant logging operations. If not provided, the default logger will be used.
|
|
1224
1310
|
*/
|
|
1225
1311
|
logger?: Logger;
|
|
1226
|
-
|
|
1312
|
+
/**
|
|
1313
|
+
* An optional mode for the reflection.
|
|
1314
|
+
*/
|
|
1315
|
+
reflection?: string[] | "default" | "explicit" | "never" | undefined;
|
|
1316
|
+
/**
|
|
1317
|
+
* An optional list of paths to exclude from the reflection.
|
|
1318
|
+
*/
|
|
1319
|
+
exclude?: string[];
|
|
1320
|
+
};
|
|
1227
1321
|
type InferExtractOptions<T extends SchemaConfig> = (T extends LoadReference ? Omit<InferLoadOptions<T>, "fs"> : {}) & BaseExtractOptions;
|
|
1228
1322
|
/**
|
|
1229
1323
|
* A schema envelope that contains the normalized schema and its source variant.
|
|
@@ -1306,10 +1400,19 @@ interface ValibotSchemaSource<TSpec = any> extends BaseSchemaSource<TSpec> {
|
|
|
1306
1400
|
/** The original Valibot schema input. */
|
|
1307
1401
|
schema: ValibotSchema<TSpec>;
|
|
1308
1402
|
}
|
|
1403
|
+
/**
|
|
1404
|
+
* Source descriptor for Deepkit reflection type inputs.
|
|
1405
|
+
*/
|
|
1406
|
+
interface ReflectionSchemaSource<TSpec = any> extends BaseSchemaSource<TSpec> {
|
|
1407
|
+
/** Indicates the source input is a Deepkit reflection {@link Type}. */
|
|
1408
|
+
variant: "reflection";
|
|
1409
|
+
/** The original Deepkit reflection type. */
|
|
1410
|
+
schema: Type;
|
|
1411
|
+
}
|
|
1309
1412
|
/**
|
|
1310
1413
|
* Union of all normalized schema source descriptor variants.
|
|
1311
1414
|
*/
|
|
1312
|
-
type SchemaSource<TSpec = any> = JsonSchemaSchemaSource<TSpec> | StandardSchemaSchemaSource<TSpec> | Zod3SchemaSource<TSpec> | UntypedSchemaSource<TSpec> | ValibotSchemaSource<TSpec>;
|
|
1415
|
+
type SchemaSource<TSpec = any> = JsonSchemaSchemaSource<TSpec> | StandardSchemaSchemaSource<TSpec> | Zod3SchemaSource<TSpec> | UntypedSchemaSource<TSpec> | ValibotSchemaSource<TSpec> | ReflectionSchemaSource<TSpec>;
|
|
1313
1416
|
/**
|
|
1314
1417
|
* A normalized schema plus metadata about the source that produced it.
|
|
1315
1418
|
*/
|
|
@@ -1346,5 +1449,5 @@ declare module "zod" {
|
|
|
1346
1449
|
}
|
|
1347
1450
|
}
|
|
1348
1451
|
//#endregion
|
|
1349
|
-
export {
|
|
1350
|
-
//# sourceMappingURL=types-
|
|
1452
|
+
export { SchemaEnvelopeOf as $, JsonSchemaNullable as A, JsonSchemaSchemaSource as B, JsonSchemaLiteral as C, JsonSchemaNativeEnum as D, JsonSchemaMetadataKeywords as E, JsonSchemaPrimitiveType as F, JsonSchemaType as G, JsonSchemaString as H, JsonSchemaPrimitiveUnion as I, JsonSchemaUnknown as J, JsonSchemaUndefined as K, JsonSchemaRecord as L, JsonSchemaNumberFormat as M, JsonSchemaObject as N, JsonSchemaNever as O, JsonSchemaOf as P, SchemaEnvelope as Q, JsonSchemaRecordPropertyNames as R, JsonSchemaLike as S, JsonSchemaMap as T, JsonSchemaStringFormat as U, JsonSchemaSet as V, JsonSchemaTuple as W, SchemaConfig as X, ReflectionSchemaSource as Y, SchemaConfigVariant as Z, JsonSchemaFunction as _, SCHEMA_RECORD_KEYWORDS as _t, JsonSchema as a, UntypedConfigObject as at, JsonSchemaIntegerFormat as b, JsonSchemaAnyOf as c, ValibotSchema as ct, JsonSchemaBoolean as d, JSON_SCHEMA_CONSTRUCTOR_KEY as dt, SchemaSource as et, JsonSchemaConditionalKeywords as f, JSON_SCHEMA_METADATA_KEYS as ft, JsonSchemaEnum as g, SCHEMA_ARRAY_CONCAT_KEYWORDS as gt, JsonSchemaDecimalFormat as h, JsonSchemaTypeNames as ht, InferExtractOptions as i, StandardSchemaSchemaSource as it, JsonSchemaNumber as j, JsonSchemaNull as k, JsonSchemaArray as l, ValibotSchemaSource as lt, JsonSchemaDecimal as m, JSON_SCHEMA_TYPES as mt, BaseSchemaSource as n, SchemaSourceVariant as nt, JsonSchemaAllOf as o, UntypedSchema as ot, JsonSchemaDate as p, JSON_SCHEMA_PRIMITIVE_TYPES as pt, JsonSchemaUnion as q, ExtractedSchemaEnvelope as r, SpecOf as rt, JsonSchemaAny as s, UntypedSchemaSource as st, BaseExtractOptions as t, SchemaSourceConfig as tt, JsonSchemaBigint as u, Zod3SchemaSource as ut, JsonSchemaFunctionParameter as v, SCHEMA_SINGLE_KEYWORDS as vt, JsonSchemaLogicKeywords as w, JsonSchemaKeywords as x, JsonSchemaInteger as y, JsonSchemaRef as z };
|
|
1453
|
+
//# sourceMappingURL=types-BrSNvUQg.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-BrSNvUQg.d.mts","names":[],"sources":["../src/constants.ts","../src/types.ts"],"mappings":""}
|
package/dist/valibot.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
|
|
3
|
-
const require_constants = require('./constants-
|
|
3
|
+
const require_constants = require('./constants-CEmLvTDd.cjs');
|
|
4
4
|
let valibot = require("valibot");
|
|
5
5
|
valibot = require_rolldown_runtime.__toESM(valibot, 1);
|
|
6
6
|
|
package/dist/valibot.d.cts
CHANGED
package/dist/valibot.d.mts
CHANGED
package/dist/valibot.mjs
CHANGED
package/dist/zod.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
|
|
3
|
-
const require_constants = require('./constants-
|
|
4
|
-
const require_helpers = require('./helpers-
|
|
3
|
+
const require_constants = require('./constants-CEmLvTDd.cjs');
|
|
4
|
+
const require_helpers = require('./helpers-DbFdMcOB.cjs');
|
|
5
5
|
let _stryke_helpers_deep_clone = require("@stryke/helpers/deep-clone");
|
|
6
6
|
let zod_mini = require("zod/mini");
|
|
7
7
|
zod_mini = require_rolldown_runtime.__toESM(zod_mini, 1);
|
package/dist/zod.d.cts
CHANGED
package/dist/zod.d.mts
CHANGED
package/dist/zod.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as JSON_SCHEMA_TYPES } from "./constants-BlppSDwG.mjs";
|
|
2
|
+
import { n as getJsonSchema, p as traverseSchema, v as isJsonSchemaAny } from "./helpers-_8ADIMSN.mjs";
|
|
3
3
|
import { deepClone } from "@stryke/helpers/deep-clone";
|
|
4
4
|
import * as z from "zod/mini";
|
|
5
5
|
import * as z4 from "zod/v4";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/schema",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.37",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Power Plant utility package to help managing schemas.",
|
|
6
6
|
"keywords": [
|
|
@@ -118,34 +118,37 @@
|
|
|
118
118
|
"typings": "dist/index.d.mts",
|
|
119
119
|
"files": ["dist"],
|
|
120
120
|
"dependencies": {
|
|
121
|
+
"@deepkit/core": "^1.0.19",
|
|
122
|
+
"@deepkit/type": "^1.0.19",
|
|
121
123
|
"@standard-schema/spec": "^1.1.0",
|
|
122
|
-
"@stryke/convert": "^0.7.
|
|
123
|
-
"@stryke/date": "^0.0.
|
|
124
|
-
"@stryke/fs": "^0.33.
|
|
125
|
-
"@stryke/hash": "^0.13.
|
|
126
|
-
"@stryke/helpers": "^0.10.
|
|
127
|
-
"@stryke/json": "^0.15.
|
|
128
|
-
"@stryke/path": "^0.29.
|
|
129
|
-
"@stryke/resolve": "^0.0.
|
|
130
|
-
"@stryke/string-format": "^0.17.
|
|
131
|
-
"@stryke/type-checks": "^0.6.
|
|
132
|
-
"@stryke/types": "^0.12.
|
|
133
|
-
"@stryke/unique-id": "^0.3.
|
|
134
|
-
"@stryke/url": "^0.4.
|
|
135
|
-
"@stryke/zod": "^0.3.
|
|
124
|
+
"@stryke/convert": "^0.7.29",
|
|
125
|
+
"@stryke/date": "^0.0.10",
|
|
126
|
+
"@stryke/fs": "^0.33.99",
|
|
127
|
+
"@stryke/hash": "^0.13.52",
|
|
128
|
+
"@stryke/helpers": "^0.10.38",
|
|
129
|
+
"@stryke/json": "^0.15.22",
|
|
130
|
+
"@stryke/path": "^0.29.25",
|
|
131
|
+
"@stryke/resolve": "^0.0.14",
|
|
132
|
+
"@stryke/string-format": "^0.17.40",
|
|
133
|
+
"@stryke/type-checks": "^0.6.31",
|
|
134
|
+
"@stryke/types": "^0.12.26",
|
|
135
|
+
"@stryke/unique-id": "^0.3.110",
|
|
136
|
+
"@stryke/url": "^0.4.49",
|
|
137
|
+
"@stryke/zod": "^0.3.44",
|
|
136
138
|
"@valibot/to-json-schema": "^1.7.1",
|
|
137
139
|
"defu": "^6.1.7",
|
|
138
140
|
"esbuild": "^0.28.1",
|
|
141
|
+
"jiti": "^2.7.0",
|
|
139
142
|
"normalize-path": "^3.0.0",
|
|
140
|
-
"ts-json-schema-generator": "^2.9.0",
|
|
141
143
|
"typescript": "^6.0.3",
|
|
142
144
|
"unstorage": "^1.17.5",
|
|
143
145
|
"untyped": "^1.5.2"
|
|
144
146
|
},
|
|
145
147
|
"devDependencies": {
|
|
146
|
-
"@
|
|
148
|
+
"@deepkit/type-compiler": "^1.0.19",
|
|
149
|
+
"@powerlines/plugin-tsdown": "^0.1.561",
|
|
147
150
|
"@types/node": "^25.9.5",
|
|
148
|
-
"powerlines": "^0.47.
|
|
151
|
+
"powerlines": "^0.47.160",
|
|
149
152
|
"valibot": "^1.4.2",
|
|
150
153
|
"zod": "^4.4.3"
|
|
151
154
|
},
|
|
@@ -158,5 +161,5 @@
|
|
|
158
161
|
"zod": { "optional": true }
|
|
159
162
|
},
|
|
160
163
|
"publishConfig": { "access": "public" },
|
|
161
|
-
"gitHead": "
|
|
164
|
+
"gitHead": "696e761e446be1a91a1b4ff8971852df26ae3ac1"
|
|
162
165
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants-COGt3eeW.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-dvxktFml.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-CyvYSCHO.d.mts","names":[],"sources":["../src/constants.ts","../src/types.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-hfHmxKG0.d.cts","names":[],"sources":["../src/constants.ts","../src/types.ts"],"mappings":";;;;;;;;cAoBa;;;;;;;;;cAUA;cAQA;cAMA;;;;;cA8BA,wBAAsB;;;;;cAYtB,wBAAsB;;;;;cAiBtB,8BAA4B;;;;;;;;KClE7B,kCACF;;;;;;KAOE,yBAAyB;;;;KAKzB;;;;KAaA;;;;KAKA,yBACV,0BAA0B;;;;KAKhB;;;;;;UA6BK;;;;;;;EAOf;;;;;;;EAQA;;;;;;;EAWA,cAAc;;;;;;;EAQd;;;;;;EAOA;;;;;;;;;EAUA,QAAQ,eAAe;;;;;;;;EASvB;;;;;;;EAQA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;IACc;IAAe;IAAsB;;;;;EAMnD;;;;EAKA;;;;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