@powerlines/schema 0.11.27 → 0.11.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/bundle.cjs +34 -20
- package/dist/bundle.d.cts +3 -3
- package/dist/bundle.d.cts.map +1 -1
- package/dist/bundle.d.mts +3 -3
- package/dist/bundle.d.mts.map +1 -1
- package/dist/bundle.mjs +35 -21
- package/dist/bundle.mjs.map +1 -1
- package/dist/codegen.cjs +40 -36
- package/dist/codegen.d.cts +10 -22
- package/dist/codegen.d.cts.map +1 -1
- package/dist/codegen.d.mts +10 -22
- package/dist/codegen.d.mts.map +1 -1
- package/dist/codegen.mjs +39 -36
- package/dist/codegen.mjs.map +1 -1
- package/dist/constants.cjs +34 -11
- package/dist/constants.d.cts +9 -11
- package/dist/constants.d.cts.map +1 -1
- package/dist/constants.d.mts +9 -11
- package/dist/constants.d.mts.map +1 -1
- package/dist/constants.mjs +32 -11
- package/dist/constants.mjs.map +1 -1
- package/dist/extract.cjs +122 -92
- package/dist/extract.d.cts +34 -69
- package/dist/extract.d.cts.map +1 -1
- package/dist/extract.d.mts +34 -69
- package/dist/extract.d.mts.map +1 -1
- package/dist/extract.mjs +123 -93
- package/dist/extract.mjs.map +1 -1
- package/dist/helpers.cjs +45 -52
- package/dist/helpers.d.cts +28 -24
- package/dist/helpers.d.cts.map +1 -1
- package/dist/helpers.d.mts +28 -24
- package/dist/helpers.d.mts.map +1 -1
- package/dist/helpers.mjs +46 -52
- package/dist/helpers.mjs.map +1 -1
- package/dist/index.cjs +14 -7
- package/dist/index.d.cts +6 -6
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +5 -5
- package/dist/metadata.cjs +80 -0
- package/dist/metadata.d.cts +52 -0
- package/dist/metadata.d.cts.map +1 -0
- package/dist/metadata.d.mts +52 -0
- package/dist/metadata.d.mts.map +1 -0
- package/dist/metadata.mjs +76 -0
- package/dist/metadata.mjs.map +1 -0
- package/dist/persistence.cjs +1 -2
- package/dist/persistence.d.cts +5 -5
- package/dist/persistence.d.cts.map +1 -1
- package/dist/persistence.d.mts +5 -5
- package/dist/persistence.d.mts.map +1 -1
- package/dist/persistence.mjs +1 -1
- package/dist/persistence.mjs.map +1 -1
- package/dist/reflection.cjs +289 -303
- package/dist/reflection.d.cts +3 -16
- package/dist/reflection.d.cts.map +1 -1
- package/dist/reflection.d.mts +3 -16
- package/dist/reflection.d.mts.map +1 -1
- package/dist/reflection.mjs +290 -304
- package/dist/reflection.mjs.map +1 -1
- package/dist/resolve.cjs +7 -7
- package/dist/resolve.mjs +7 -7
- package/dist/resolve.mjs.map +1 -1
- package/dist/type-checks.cjs +122 -40
- package/dist/type-checks.d.cts +41 -33
- package/dist/type-checks.d.cts.map +1 -1
- package/dist/type-checks.d.mts +41 -33
- package/dist/type-checks.d.mts.map +1 -1
- package/dist/type-checks.mjs +120 -37
- package/dist/type-checks.mjs.map +1 -1
- package/dist/types.d.cts +225 -113
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +225 -113
- package/dist/types.d.mts.map +1 -1
- package/package.json +11 -7
- package/dist/jtd.cjs +0 -385
- package/dist/jtd.d.cts +0 -15
- package/dist/jtd.d.cts.map +0 -1
- package/dist/jtd.d.mts +0 -15
- package/dist/jtd.d.mts.map +0 -1
- package/dist/jtd.mjs +0 -384
- package/dist/jtd.mjs.map +0 -1
package/dist/types.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { FormatName } from "ajv-formats/dist/formats.js";
|
|
1
2
|
import { Type } from "@powerlines/deepkit/vendor/type";
|
|
2
3
|
import { StandardJSONSchemaV1 } from "@standard-schema/spec";
|
|
3
|
-
import { JsonSchemaType } from "@stryke/json/types";
|
|
4
4
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
5
5
|
import { InputObject, Schema as Schema$1 } from "untyped";
|
|
6
6
|
import * as z3 from "zod/v3";
|
|
@@ -9,52 +9,166 @@ import * as z3 from "zod/v3";
|
|
|
9
9
|
type UntypedInputObject = InputObject;
|
|
10
10
|
type UntypedSchema = Schema$1;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* JSON Schema primitive type names used by {@link stringifyType}.
|
|
13
13
|
*/
|
|
14
|
-
type
|
|
14
|
+
type JsonSchemaPrimitiveType = "string" | "number" | "integer" | "boolean" | "null" | "object" | "array";
|
|
15
|
+
type StrictNullChecksWrapper<Name extends string, Type> = undefined extends null ? `strictNullChecks must be true in tsconfig to use ${Name}` : Type;
|
|
16
|
+
type UnionToIntersection<U> = (U extends any ? (_: U) => void : never) extends ((_: infer I) => void) ? I : never;
|
|
15
17
|
/**
|
|
16
|
-
* The
|
|
18
|
+
* A JSON Schema type that is compatible with all the JSON schema variants, and includes additional Powerlines-specific metadata properties. This type is designed to be flexible and accommodate various schema shapes while still providing the ability to include metadata for documentation or other purposes. The presence of the metadata properties does not affect the validation behavior of the schema itself, but they can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
17
19
|
*/
|
|
18
|
-
type
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
type?: string | string[];
|
|
25
|
-
format?: string;
|
|
26
|
-
enum?: unknown[];
|
|
27
|
-
const?: unknown;
|
|
28
|
-
items?: JsonSchemaLike | JsonSchemaLike[];
|
|
29
|
-
properties?: Record<string, JsonSchemaLike>;
|
|
30
|
-
patternProperties?: Record<string, JsonSchemaLike>;
|
|
31
|
-
additionalProperties?: boolean | JsonSchemaLike;
|
|
32
|
-
required?: string[];
|
|
33
|
-
anyOf?: JsonSchemaLike[];
|
|
34
|
-
oneOf?: JsonSchemaLike[];
|
|
35
|
-
allOf?: JsonSchemaLike[];
|
|
36
|
-
$ref?: string;
|
|
37
|
-
description?: string;
|
|
38
|
-
title?: string;
|
|
39
|
-
default?: unknown;
|
|
40
|
-
examples?: unknown[];
|
|
20
|
+
type JsonSchemaLike = UncheckedJsonSchemaType<Known, true> & SchemaMetadata;
|
|
21
|
+
type UncheckedPartialSchema<T> = Partial<UncheckedJsonSchemaType<T, true>>;
|
|
22
|
+
type JsonType<T extends string, IsPartial extends boolean> = IsPartial extends true ? T | undefined : T;
|
|
23
|
+
type NumberFormat = "int32" | "float" | "double" | "int8" | "uint8" | "int16" | "uint16" | "int64" | "uint64";
|
|
24
|
+
interface NumberKeywords {
|
|
25
|
+
/** The inclusive lower bound allowed for numeric values. */
|
|
41
26
|
minimum?: number;
|
|
27
|
+
/** The inclusive upper bound allowed for numeric values. */
|
|
42
28
|
maximum?: number;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
[key: string]: unknown;
|
|
29
|
+
/** The exclusive lower bound allowed for numeric values. */
|
|
30
|
+
exclusiveMinimum?: number;
|
|
31
|
+
/** The exclusive upper bound allowed for numeric values. */
|
|
32
|
+
exclusiveMaximum?: number;
|
|
33
|
+
/** The numeric increment that values must be a multiple of. */
|
|
34
|
+
multipleOf?: number;
|
|
35
|
+
/** The numeric format hint recognized by compatible validators. */
|
|
36
|
+
format?: NumberFormat | string;
|
|
52
37
|
}
|
|
53
|
-
interface
|
|
38
|
+
interface StringKeywords {
|
|
39
|
+
/** The minimum number of characters allowed in the string. */
|
|
40
|
+
minLength?: number;
|
|
41
|
+
/** The maximum number of characters allowed in the string. */
|
|
42
|
+
maxLength?: number;
|
|
43
|
+
/** A regular expression that matching strings must satisfy. */
|
|
44
|
+
pattern?: string;
|
|
45
|
+
/**
|
|
46
|
+
* A format for the schema, which can be used by validation libraries or other tools that support this feature to provide additional validation or formatting rules for the data that the schema represents. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
|
|
47
|
+
*
|
|
48
|
+
* @see https://ajv.js.org/packages/ajv-formats.html
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* The `format` property is a string that specifies the format of the data that the schema represents. It can be used to indicate that a string should be validated as an email address, a date-time, a URI, or any other format supported by compatible validation libraries. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
|
|
52
|
+
*/
|
|
53
|
+
format?: FormatName | string;
|
|
54
|
+
}
|
|
55
|
+
type Known = {
|
|
56
|
+
[key: string]: Known;
|
|
57
|
+
} | [Known, ...Known[]] | Known[] | number | string | boolean | null;
|
|
58
|
+
type UncheckedPropertiesSchema<T> = { [K in keyof T]-?: (UncheckedJsonSchemaType<T[K], false> & Nullable<T[K]>) | {
|
|
59
|
+
$ref: string;
|
|
60
|
+
} };
|
|
61
|
+
type UncheckedRequiredMembers<T> = { [K in keyof T]-?: undefined extends T[K] ? never : K }[keyof T];
|
|
62
|
+
type Nullable<T> = undefined extends T ? {
|
|
63
|
+
/** Indicates that the value may be null in addition to the declared type. */nullable: true; /** A constant value constrained to null when the schema is nullable. */
|
|
64
|
+
const?: null; /** Allowed values, including null when the schema is nullable. */
|
|
65
|
+
enum?: readonly (T | null)[]; /** The default value to use when none is provided. */
|
|
66
|
+
default?: T | null;
|
|
67
|
+
} : {
|
|
68
|
+
/** Indicates whether the value may be null. */nullable?: false; /** A constant value allowed by the schema. */
|
|
69
|
+
const?: T; /** The set of values allowed by the schema. */
|
|
70
|
+
enum?: readonly T[]; /** The default value to use when none is provided. */
|
|
71
|
+
default?: T;
|
|
72
|
+
};
|
|
73
|
+
type UncheckedJsonSchemaType<T, IsPartial extends boolean> = ({
|
|
74
|
+
anyOf: readonly UncheckedJsonSchemaType<T, IsPartial>[];
|
|
75
|
+
} | {
|
|
76
|
+
oneOf: readonly UncheckedJsonSchemaType<T, IsPartial>[];
|
|
77
|
+
} | ({
|
|
78
|
+
type: readonly (T extends number ? JsonType<"number" | "integer", IsPartial> : T extends string ? JsonType<"string", IsPartial> : T extends boolean ? JsonType<"boolean", IsPartial> : never)[];
|
|
79
|
+
} & UnionToIntersection<T extends number ? NumberKeywords : T extends string ? StringKeywords : T extends boolean ? {} : never>) | ((T extends number ? {
|
|
80
|
+
type: JsonType<"number" | "integer", IsPartial>;
|
|
81
|
+
} & NumberKeywords : T extends string ? {
|
|
82
|
+
type: JsonType<"string", IsPartial>;
|
|
83
|
+
} & StringKeywords : T extends boolean ? {
|
|
84
|
+
type: JsonType<"boolean", IsPartial>;
|
|
85
|
+
} : T extends readonly [any, ...any[]] ? {
|
|
86
|
+
type: JsonType<"array", IsPartial>; /** The tuple items in order. */
|
|
87
|
+
items: { readonly [K in keyof T]-?: UncheckedJsonSchemaType<T[K], false> & Nullable<T[K]> } & {
|
|
88
|
+
length: T["length"];
|
|
89
|
+
}; /** The minimum number of items allowed in the tuple. */
|
|
90
|
+
minItems: T["length"];
|
|
91
|
+
} & ({
|
|
92
|
+
/** The maximum number of items allowed in the tuple. */maxItems: T["length"];
|
|
93
|
+
} | {
|
|
94
|
+
/** Disallows items beyond the tuple length. */additionalItems: false;
|
|
95
|
+
}) : T extends readonly any[] ? {
|
|
96
|
+
type: JsonType<"array", IsPartial>; /** The schema that each array item must satisfy. */
|
|
97
|
+
items: UncheckedJsonSchemaType<T[0], false>; /** A schema that at least one array item must satisfy. */
|
|
98
|
+
contains?: UncheckedPartialSchema<T[0]>; /** The minimum number of items allowed in the array. */
|
|
99
|
+
minItems?: number; /** The maximum number of items allowed in the array. */
|
|
100
|
+
maxItems?: number; /** The minimum number of matching items required by {@link contains}. */
|
|
101
|
+
minContains?: number; /** The maximum number of matching items allowed by {@link contains}. */
|
|
102
|
+
maxContains?: number; /** Indicates that array items must be unique. */
|
|
103
|
+
uniqueItems?: true; /** Additional tuple items are not permitted in this schema shape. */
|
|
104
|
+
additionalItems?: never;
|
|
105
|
+
} : T extends Record<string, any> ? {
|
|
106
|
+
type: JsonType<"object", IsPartial>; /** The schema for properties not matched by {@link properties} or {@link patternProperties}. */
|
|
107
|
+
additionalProperties?: boolean | UncheckedJsonSchemaType<T[string], false>; /** The schema for properties not yet evaluated by other object keywords. */
|
|
108
|
+
unevaluatedProperties?: boolean | UncheckedJsonSchemaType<T[string], false>; /** The declared object properties and their schemas. */
|
|
109
|
+
properties?: IsPartial extends true ? Partial<UncheckedPropertiesSchema<T>> : UncheckedPropertiesSchema<T>; /** The schemas for properties whose names match the given patterns. */
|
|
110
|
+
patternProperties?: Record<string, UncheckedJsonSchemaType<T[string], false>>; /** The schema that each property name must satisfy. */
|
|
111
|
+
propertyNames?: Omit<UncheckedJsonSchemaType<string, false>, "type"> & {
|
|
112
|
+
type?: "string";
|
|
113
|
+
}; /** A map of property-specific dependency requirements. */
|
|
114
|
+
dependencies?: { [K in keyof T]?: readonly (keyof T)[] | UncheckedPartialSchema<T> }; /** Properties that become required when the key property is present. */
|
|
115
|
+
dependentRequired?: { [K in keyof T]?: readonly (keyof T)[] }; /** Subschemas that apply when the key property is present. */
|
|
116
|
+
dependentSchemas?: { [K in keyof T]?: UncheckedPartialSchema<T> }; /** The minimum number of own properties allowed. */
|
|
117
|
+
minProperties?: number; /** The maximum number of own properties allowed. */
|
|
118
|
+
maxProperties?: number;
|
|
119
|
+
/**
|
|
120
|
+
* An optional array of property names that are considered primary keys for the object. This property can be used by validation libraries or other tools that support this feature to provide additional validation rules or constraints for the data that the schema represents. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
|
|
121
|
+
*/
|
|
122
|
+
primaryKey?: (keyof T)[];
|
|
123
|
+
/**
|
|
124
|
+
* A name for the database schema associated with the data represented by this schema. This property can be used by documentation tools or other libraries that support this feature to provide additional context or information about the data model that the schema represents. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
|
|
125
|
+
*/
|
|
126
|
+
databaseSchemaName?: string;
|
|
127
|
+
} & (IsPartial extends true ? {
|
|
128
|
+
/** The set of required property names for partial schemas. */required: readonly (keyof T)[];
|
|
129
|
+
} : [UncheckedRequiredMembers<T>] extends [never] ? {
|
|
130
|
+
/** The set of required property names when none are statically required. */required?: readonly UncheckedRequiredMembers<T>[];
|
|
131
|
+
} : {
|
|
132
|
+
/** The set of required property names for the object. */required: readonly UncheckedRequiredMembers<T>[];
|
|
133
|
+
}) : T extends null ? {
|
|
134
|
+
/** The JSON Schema null type. */type: JsonType<"null", IsPartial>; /** Indicates that only null is allowed. */
|
|
135
|
+
nullable: true;
|
|
136
|
+
} : never) & {
|
|
137
|
+
/** A set of schemas where the data must satisfy all members. */allOf?: readonly UncheckedPartialSchema<T>[]; /** A set of schemas where the data must satisfy at least one member. */
|
|
138
|
+
anyOf?: readonly UncheckedPartialSchema<T>[]; /** A set of schemas where the data must satisfy exactly one member. */
|
|
139
|
+
oneOf?: readonly UncheckedPartialSchema<T>[]; /** A schema that the data must not satisfy. */
|
|
140
|
+
if?: UncheckedPartialSchema<T>; /** A schema applied when {@link if} matches. */
|
|
141
|
+
then?: UncheckedPartialSchema<T>; /** A schema applied when {@link if} does not match. */
|
|
142
|
+
else?: UncheckedPartialSchema<T>; /** A schema that must not match the data. */
|
|
143
|
+
not?: UncheckedPartialSchema<T>;
|
|
144
|
+
})) & {
|
|
145
|
+
/**
|
|
146
|
+
* A unique identifier for the schema, which can be used to reference or identify the schema in various contexts. This property is part of the JSON Schema specification and does not affect the validation behavior of the schema itself, but it can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
147
|
+
*/
|
|
148
|
+
$id?: string;
|
|
149
|
+
/**
|
|
150
|
+
* A reference to another schema definition, which can be used to reuse or reference schema definitions in other parts of the document or external schemas. This property is part of the JSON Schema specification and does not affect the validation behavior of the schema itself, but it can be used to create modular and reusable schema structures.
|
|
151
|
+
*/
|
|
152
|
+
$ref?: string;
|
|
153
|
+
/**
|
|
154
|
+
* A comment or annotation for the schema, which can be used to provide additional context or information about the schema. This property is part of the JSON Schema specification and does not affect the validation behavior of the schema itself, but it can be used by documentation tools or other libraries that support this feature.
|
|
155
|
+
*/
|
|
156
|
+
$comment?: string;
|
|
157
|
+
/**
|
|
158
|
+
* A record of schema definitions that can be referenced throughout the schema using `$ref`. This property can be used to define reusable schema components and reduce redundancy in schema definitions. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
159
|
+
*/
|
|
160
|
+
$defs?: Record<string, UncheckedJsonSchemaType<Known, true>>;
|
|
161
|
+
/**
|
|
162
|
+
* A record of schema definitions that can be referenced throughout the schema using `$ref`. This property is a legacy version of `$defs` and is maintained for backward compatibility with earlier versions of the JSON Schema specification. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
163
|
+
*/
|
|
164
|
+
definitions?: Record<string, UncheckedJsonSchemaType<Known, true>>;
|
|
54
165
|
/**
|
|
55
166
|
* A name for the schema, which can be used by documentation tools or other libraries that support this feature to provide a human-readable name or description for the schema. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
56
167
|
*/
|
|
57
168
|
name?: string;
|
|
169
|
+
[keyword: string]: any;
|
|
170
|
+
};
|
|
171
|
+
interface SchemaMetadata {
|
|
58
172
|
/**
|
|
59
173
|
* A title for the schema, which can be used by documentation tools or other libraries that support this feature to provide a human-readable name or description for the schema. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
60
174
|
*/
|
|
@@ -64,148 +178,146 @@ interface SchemaMetadata {
|
|
|
64
178
|
*/
|
|
65
179
|
description?: string;
|
|
66
180
|
/**
|
|
67
|
-
* A
|
|
181
|
+
* A URL or string containing documentation for the schema, which can be used by documentation tools or other libraries that support this feature to provide additional information or resources related to the schema. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
68
182
|
*/
|
|
69
|
-
|
|
183
|
+
docs?: string;
|
|
70
184
|
/**
|
|
71
185
|
* An array of example values that conform to the schema. This property can be used to provide sample data for documentation purposes or to assist developers in understanding the expected structure and content of the data that the schema represents. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
|
|
72
186
|
*/
|
|
73
|
-
examples?:
|
|
187
|
+
examples?: string[];
|
|
188
|
+
/**
|
|
189
|
+
* An array of strings or an alias reference to indicate that the field is an alias for one or more other fields.
|
|
190
|
+
*/
|
|
191
|
+
alias?: string[];
|
|
74
192
|
/**
|
|
75
193
|
* An array of strings indicating groups that the schema belongs to. This property can be used for organizational or categorization purposes in documentation tools or other libraries that support this feature. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
76
|
-
*
|
|
77
|
-
* @remarks
|
|
78
|
-
* The concept of "groups" is not a standard feature of JSON Schema or JSON Type Definition, but it can be a useful convention for organizing schemas in larger projects or for providing additional metadata that can be leveraged by documentation generators or other tools. The specific meaning and usage of groups would depend on the conventions established within the project or the tools being used.
|
|
79
194
|
*/
|
|
80
|
-
|
|
195
|
+
tags?: string[];
|
|
81
196
|
/**
|
|
82
197
|
* A visibility level for the schema, which can be used by documentation tools or other libraries that support this feature to determine how the schema should be presented or accessed. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
83
198
|
*/
|
|
84
199
|
visibility?: "public" | "protected" | "private";
|
|
85
200
|
/**
|
|
86
|
-
*
|
|
201
|
+
* An indicator specifying if the field is deprecated or not. This property can be used by documentation tools or other libraries that support this feature to provide additional information or warnings about the usage of the schema. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
87
202
|
*/
|
|
88
|
-
|
|
203
|
+
deprecated?: boolean;
|
|
89
204
|
/**
|
|
90
|
-
* An indicator specifying if the field should be marked as hidden or not.
|
|
205
|
+
* An indicator specifying if the field should be marked as hidden or not. This property can be used by documentation tools or other libraries that support this feature to provide additional information or warnings about the usage of the schema. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
91
206
|
*/
|
|
92
|
-
|
|
207
|
+
hidden?: boolean;
|
|
93
208
|
/**
|
|
94
|
-
* An indicator specifying if the field should be ignored or not.
|
|
209
|
+
* An indicator specifying if the field should be ignored or not. This property can be used by documentation tools or other libraries that support this feature to provide additional information or warnings about the usage of the schema. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
95
210
|
*/
|
|
96
|
-
|
|
211
|
+
ignore?: boolean;
|
|
97
212
|
/**
|
|
98
213
|
* An indicator specifying if the field is internal or not.
|
|
99
214
|
*
|
|
100
215
|
* @internal
|
|
101
216
|
*/
|
|
102
|
-
|
|
217
|
+
internal?: boolean;
|
|
103
218
|
/**
|
|
104
219
|
* An indicator specifying if the field should only be populated at runtime or not.
|
|
105
220
|
*/
|
|
106
|
-
|
|
221
|
+
runtime?: boolean;
|
|
107
222
|
/**
|
|
108
|
-
* An indicator specifying if the field is read-only or not.
|
|
223
|
+
* An indicator specifying if the field is read-only or not.
|
|
109
224
|
*/
|
|
110
|
-
|
|
225
|
+
readOnly?: boolean;
|
|
111
226
|
/**
|
|
112
|
-
* An indicator specifying if the field is
|
|
227
|
+
* An indicator specifying if the field is write-only or not. This property can be used by documentation tools or other libraries that support this feature to provide additional information or warnings about the usage of the schema. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
113
228
|
*/
|
|
114
|
-
|
|
229
|
+
writeOnly?: boolean;
|
|
115
230
|
/**
|
|
116
|
-
*
|
|
231
|
+
* The content media type for the schema, which can be used by documentation tools or other libraries that support this feature to provide additional information about the expected content type of the data that the schema represents. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
|
|
117
232
|
*/
|
|
118
|
-
|
|
233
|
+
contentMediaType?: string;
|
|
234
|
+
/**
|
|
235
|
+
* The content encoding for the schema, which can be used by documentation tools or other libraries that support this feature to provide additional information about the expected encoding of the data that the schema represents. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
|
|
236
|
+
*/
|
|
237
|
+
contentEncoding?: string;
|
|
119
238
|
/**
|
|
120
|
-
*
|
|
239
|
+
* The content schema for the schema, which can be used by documentation tools or other libraries that support this feature to provide additional information about the expected structure of the data that the schema represents. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
|
|
121
240
|
*/
|
|
122
|
-
|
|
123
|
-
[key: string]: unknown | undefined;
|
|
241
|
+
contentSchema?: string;
|
|
124
242
|
}
|
|
125
|
-
type
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
optionalProperties: Record<string, JTDSchemaType<TMetadata>>;
|
|
132
|
-
additionalProperties?: boolean;
|
|
133
|
-
};
|
|
134
|
-
type JTDSchemaType<TMetadata extends Partial<SchemaMetadata> = Partial<SchemaMetadata>> = ({
|
|
135
|
-
ref: string;
|
|
136
|
-
} | {
|
|
137
|
-
type: JTDType;
|
|
138
|
-
} | {
|
|
139
|
-
enum: string[];
|
|
140
|
-
} | {
|
|
141
|
-
elements: JTDSchemaType<TMetadata>;
|
|
142
|
-
} | {
|
|
143
|
-
values: JTDSchemaType<TMetadata>;
|
|
144
|
-
} | JTDSchemaObjectForm<TMetadata> | {
|
|
145
|
-
discriminator: string;
|
|
146
|
-
mapping: Record<string, JTDSchemaType<TMetadata>>;
|
|
147
|
-
} | {}) & {
|
|
148
|
-
nullable?: boolean;
|
|
149
|
-
metadata?: TMetadata;
|
|
150
|
-
definitions?: Record<string, JTDSchemaType<TMetadata>>;
|
|
151
|
-
};
|
|
152
|
-
type JTDSchemaObjectType<TMetadata extends Partial<SchemaMetadata> = Partial<SchemaMetadata>> = JTDSchemaObjectForm<TMetadata> & {
|
|
153
|
-
nullable?: boolean;
|
|
154
|
-
metadata?: TMetadata;
|
|
155
|
-
definitions?: Record<string, JTDSchemaType<TMetadata>>;
|
|
243
|
+
type JsonSchemaProperty<T extends Record<string, any> = Record<string, any>, TName extends string = string> = JsonSchemaObject<T[TName]> & {
|
|
244
|
+
/** The property name within the parent object schema. */name: TName;
|
|
245
|
+
/**
|
|
246
|
+
* An indicator specifying if the field is nullable or not. If `true`, the field can accept `null` as a valid value. This property can be used by validation libraries or other tools that support this feature to provide additional validation rules for the data that the schema represents. The presence of this property does not affect the validation behavior of the schema itself, but it can provide additional context or information about the expected data when used in conjunction with compatible tools.
|
|
247
|
+
*/
|
|
248
|
+
nullable: boolean;
|
|
156
249
|
};
|
|
157
|
-
|
|
250
|
+
/**
|
|
251
|
+
* A JSON Schema type that includes additional Powerlines-specific metadata properties. This type extends the standard JSON Schema definition with optional properties such as `name`, `title`, `description`, `default`, `examples`, `groups`, `visibility`, and various flags for controlling how the schema is treated by documentation tools or other libraries that support these features. The presence of these metadata properties does not affect the validation behavior of the schema itself, but they can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
252
|
+
*/
|
|
253
|
+
type JsonSchema<T = unknown> = StrictNullChecksWrapper<"JsonSchema", UncheckedJsonSchemaType<T, false>> & SchemaMetadata;
|
|
254
|
+
/**
|
|
255
|
+
* A JSON Schema object type that includes a `type` property set to "object", a `properties` object defining the properties of the schema, and optional metadata properties. This type is used to represent JSON Schema definitions for objects, and it extends the standard JSON Schema definition with additional Powerlines-specific metadata properties. The presence of these metadata properties does not affect the validation behavior of the schema itself, but they can provide additional context or information about the schema when used in conjunction with compatible tools.
|
|
256
|
+
*/
|
|
257
|
+
type JsonSchemaObject<T extends Record<string, any> = Record<string, any>> = Omit<JsonSchemaLike, "type" | "properties" | "required"> & {
|
|
258
|
+
/** The JSON Schema object type discriminator. */type: "object"; /** The object properties mapped to their schema definitions. */
|
|
259
|
+
properties: Record<string, JsonSchemaProperty<T>>; /** The property names that are required on the object. */
|
|
260
|
+
required?: string[];
|
|
261
|
+
} & SchemaMetadata;
|
|
262
|
+
type SchemaSourceVariant = "standard-schema" | "json-schema" | "zod3" | "untyped" | "reflection";
|
|
158
263
|
type SchemaInputVariant = SchemaSourceVariant | "type-definition";
|
|
159
|
-
type SchemaSourceInput<
|
|
264
|
+
type SchemaSourceInput<T = unknown> = StandardJSONSchemaV1 | JsonSchema<T> | z3.ZodTypeAny | UntypedInputObject | UntypedSchema | Type;
|
|
160
265
|
type TypeDefinitionReference = TypeDefinition | string;
|
|
161
|
-
type SchemaInput = SchemaSourceInput | Schema | TypeDefinitionReference;
|
|
266
|
+
type SchemaInput<T = unknown> = SchemaSourceInput<T> | Schema<T> | TypeDefinitionReference;
|
|
162
267
|
/**
|
|
163
|
-
* A
|
|
268
|
+
* A schema extracted from a source input, normalized to JSON Schema.
|
|
164
269
|
*/
|
|
165
|
-
interface Schema<
|
|
270
|
+
interface Schema<T = unknown> {
|
|
271
|
+
/** A stable content hash for the normalized schema. */
|
|
166
272
|
hash: string;
|
|
273
|
+
/** The source variant used to derive the normalized {@link JsonSchema}. */
|
|
167
274
|
variant: SchemaInputVariant;
|
|
168
|
-
schema
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* A type representing a JSON Type Definition (JTD) schema that specifically has an object form (i.e., it has either a `properties` property that is an object or an `optionalProperties` property that is an object, as per the structure of JTD schema objects). This type extends the base {@link Schema} type and narrows the `schema` property to be a `JTDSchemaObjectType`, which ensures that any schema of this type will have the structure of a JTD object schema.
|
|
172
|
-
*/
|
|
173
|
-
interface ObjectSchema<TMetadata extends Partial<SchemaMetadata> = Partial<SchemaMetadata>> extends Schema<TMetadata> {
|
|
174
|
-
schema: JTDSchemaObjectType<TMetadata>;
|
|
275
|
+
/** The normalized schema definition. */
|
|
276
|
+
schema: JsonSchema<T>;
|
|
175
277
|
}
|
|
176
278
|
interface BaseSchemaSource {
|
|
279
|
+
/** A stable content hash for the original source schema. */
|
|
177
280
|
hash: string;
|
|
281
|
+
/** The specific source format used for the schema input. */
|
|
178
282
|
variant: SchemaSourceVariant;
|
|
283
|
+
/** The original schema input captured before normalization. */
|
|
179
284
|
schema: SchemaSourceInput;
|
|
180
285
|
}
|
|
181
|
-
interface
|
|
182
|
-
|
|
183
|
-
schema: JTDSchemaType<TMetadata>;
|
|
184
|
-
}
|
|
185
|
-
interface JsonSchemaSchemaSource extends BaseSchemaSource {
|
|
286
|
+
interface JsonSchemaSchemaSource<TMetadata extends SchemaMetadata = SchemaMetadata> extends BaseSchemaSource {
|
|
287
|
+
/** Indicates the source input already uses JSON Schema syntax. */
|
|
186
288
|
variant: "json-schema";
|
|
187
|
-
|
|
289
|
+
/** The original JSON Schema document. */
|
|
290
|
+
schema: JsonSchema<TMetadata>;
|
|
188
291
|
}
|
|
189
292
|
interface StandardSchemaSchemaSource extends BaseSchemaSource {
|
|
293
|
+
/** Indicates the source input follows the Standard Schema format. */
|
|
190
294
|
variant: "standard-schema";
|
|
295
|
+
/** The original Standard Schema document. */
|
|
191
296
|
schema: StandardJSONSchemaV1;
|
|
192
297
|
}
|
|
193
298
|
interface Zod3SchemaSource extends BaseSchemaSource {
|
|
299
|
+
/** Indicates the source input is a Zod v3 schema. */
|
|
194
300
|
variant: "zod3";
|
|
301
|
+
/** The original Zod v3 schema instance. */
|
|
195
302
|
schema: z3.ZodTypeAny;
|
|
196
303
|
}
|
|
197
304
|
interface ReflectionSchemaSource extends BaseSchemaSource {
|
|
305
|
+
/** Indicates the source input is a Deepkit reflection {@link Type}. */
|
|
198
306
|
variant: "reflection";
|
|
307
|
+
/** The original Deepkit reflection type. */
|
|
199
308
|
schema: Type;
|
|
200
309
|
}
|
|
201
310
|
interface UntypedSchemaSource extends BaseSchemaSource {
|
|
311
|
+
/** Indicates the source input comes from the Untyped schema model. */
|
|
202
312
|
variant: "untyped";
|
|
313
|
+
/** The original Untyped schema input. */
|
|
203
314
|
schema: UntypedInputObject | UntypedSchema;
|
|
204
315
|
}
|
|
205
|
-
type SchemaSource = JsonSchemaSchemaSource |
|
|
206
|
-
interface ExtractedSchema<
|
|
316
|
+
type SchemaSource = JsonSchemaSchemaSource | StandardSchemaSchemaSource | Zod3SchemaSource | UntypedSchemaSource | ReflectionSchemaSource;
|
|
317
|
+
interface ExtractedSchema<T = unknown> extends Schema<T> {
|
|
318
|
+
/** The schema source that produced this normalized schema. */
|
|
207
319
|
source: SchemaSource;
|
|
208
320
|
}
|
|
209
321
|
//#endregion
|
|
210
|
-
export { BaseSchemaSource, ExtractedSchema,
|
|
322
|
+
export { BaseSchemaSource, ExtractedSchema, JsonSchema, JsonSchemaLike, JsonSchemaObject, JsonSchemaPrimitiveType, JsonSchemaProperty, JsonSchemaSchemaSource, JsonType, NumberFormat, NumberKeywords, ReflectionSchemaSource, Schema, SchemaInput, SchemaInputVariant, SchemaMetadata, SchemaSource, SchemaSourceInput, SchemaSourceVariant, StandardSchemaSchemaSource, StringKeywords, TypeDefinitionReference, UntypedInputObject, UntypedSchema, UntypedSchemaSource, Zod3SchemaSource };
|
|
211
323
|
//# sourceMappingURL=types.d.mts.map
|
package/dist/types.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;;;;KAyBY,kBAAA,GAAqB,WAAW;AAAA,KAChC,aAAA,GAAgB,QAAO;AADnC;;;AAAA,KAMY,
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;;;;KAyBY,kBAAA,GAAqB,WAAW;AAAA,KAChC,aAAA,GAAgB,QAAO;AADnC;;;AAAA,KAMY,uBAAA;AAAA,KASP,uBAAA,2GACmD,IAAA,KACpD,IAAI;AAAA,KAEH,mBAAA,OAA0B,CAAA,gBAAiB,CAAA,EAAG,CAAC,6BAClD,CAAA,sBAEE,CAAA;;;;KAMQ,cAAA,GAAiB,uBAAA,CAAwB,KAAA,UACnD,cAAA;AAAA,KAEG,sBAAA,MAA4B,OAAA,CAAQ,uBAAA,CAAwB,CAAA;AAAA,KAErD,QAAA,gDAGR,SAAA,gBAAyB,CAAA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mBAAA;EAzYC;EA4YV,MAAA,EAAQ,iBAAiB;AAAA;AAAA,UAGV,sBAAA,mBACG,cAAA,GAAiB,cAAA,UAC3B,gBAAA;EA7YJ;EA+YJ,OAAA;EA7YQ;EAgZR,MAAA,EAAQ,UAAA,CAAW,SAAA;AAAA;AAAA,UAGJ,0BAAA,SAAmC,gBAAgB;EA1Y1D;EA4YR,OAAA;EA5Y6C;EA+Y7C,MAAA,EAAQ,oBAAA;AAAA;AAAA,UAGO,gBAAA,SAAyB,gBAAgB;EA9YxC;EAgZhB,OAAA;EA/YY;EAkZZ,MAAA,EAAQ,EAAA,CAAG,UAAA;AAAA;AAAA,UAGI,sBAAA,SAA+B,gBAAgB;EAlZxB;EAoZtC,OAAA;EAhZc;EAmZd,MAAA,EAAQ,IAAA;AAAA;AAAA,UAGO,mBAAA,SAA4B,gBAAA;EAlZjB;EAoZ1B,OAAA;EApZ2C;EAuZ3C,MAAA,EAAQ,kBAAA,GAAqB,aAAA;AAAA;AAAA,KAGnB,YAAA,GACR,sBAAA,GACA,0BAAA,GACA,gBAAA,GACA,mBAAA,GACA,sBAAA;AAAA,UAEa,eAAA,sBAAqC,MAAA,CAAO,CAAA;EA7Z9B;EA+Z7B,MAAA,EAAQ,YAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/schema",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.37",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"keywords": [
|
|
@@ -70,7 +70,10 @@
|
|
|
70
70
|
"import": "./dist/helpers.mjs",
|
|
71
71
|
"require": "./dist/helpers.cjs"
|
|
72
72
|
},
|
|
73
|
-
"./
|
|
73
|
+
"./metadata": {
|
|
74
|
+
"import": "./dist/metadata.mjs",
|
|
75
|
+
"require": "./dist/metadata.cjs"
|
|
76
|
+
},
|
|
74
77
|
"./persistence": {
|
|
75
78
|
"import": "./dist/persistence.mjs",
|
|
76
79
|
"require": "./dist/persistence.cjs"
|
|
@@ -96,9 +99,9 @@
|
|
|
96
99
|
"typings": "dist/index.d.mts",
|
|
97
100
|
"files": ["dist"],
|
|
98
101
|
"dependencies": {
|
|
99
|
-
"@powerlines/core": "^0.
|
|
100
|
-
"@powerlines/deepkit": "^0.9.
|
|
101
|
-
"@powerlines/unplugin": "^0.0.
|
|
102
|
+
"@powerlines/core": "^0.48.1",
|
|
103
|
+
"@powerlines/deepkit": "^0.9.33",
|
|
104
|
+
"@powerlines/unplugin": "^0.0.49",
|
|
102
105
|
"@standard-schema/spec": "^1.1.0",
|
|
103
106
|
"@stryke/hash": "^0.13.29",
|
|
104
107
|
"@stryke/helpers": "^0.10.16",
|
|
@@ -108,14 +111,15 @@
|
|
|
108
111
|
"@stryke/types": "^0.12.4",
|
|
109
112
|
"@stryke/zod": "^0.3.22",
|
|
110
113
|
"ajv": "^8.20.0",
|
|
114
|
+
"ajv-formats": "^3.0.1",
|
|
111
115
|
"defu": "^6.1.7",
|
|
112
116
|
"esbuild": "^0.27.7",
|
|
113
117
|
"typescript": "^6.0.3",
|
|
114
118
|
"untyped": "^1.5.2"
|
|
115
119
|
},
|
|
116
|
-
"devDependencies": { "@types/node": "^25.9.
|
|
120
|
+
"devDependencies": { "@types/node": "^25.9.1", "zod": "^4.4.3" },
|
|
117
121
|
"peerDependencies": { "zod": "^3.25.0 || ^4.0.0" },
|
|
118
122
|
"peerDependenciesMeta": { "zod": { "optional": true } },
|
|
119
123
|
"publishConfig": { "access": "public" },
|
|
120
|
-
"gitHead": "
|
|
124
|
+
"gitHead": "75742ad041aeb54cee4e6f8d1f2daa413b4d9787"
|
|
121
125
|
}
|