@power-plant/schema 0.0.3 → 0.0.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/codegen.cjs +77 -1
- package/dist/codegen.mjs +78 -1
- package/dist/codegen.mjs.map +1 -0
- package/dist/{constants-u7ovYS9e.d.cts → constants-lihlIQu7.d.cts} +2 -2
- package/dist/{constants-u7ovYS9e.d.cts.map → constants-lihlIQu7.d.cts.map} +1 -1
- package/dist/{constants-u7ovYS9e.d.mts → constants-lihlIQu7.d.mts} +2 -2
- package/dist/constants-lihlIQu7.d.mts.map +1 -0
- package/dist/constants.cjs +1 -1
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/extract.cjs +1 -1
- package/dist/extract.d.cts +4 -12
- package/dist/extract.d.cts.map +1 -1
- package/dist/extract.d.mts +4 -12
- package/dist/extract.mjs +1 -1
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.d.cts +8 -8
- package/dist/helpers.d.cts.map +1 -1
- package/dist/helpers.d.mts +8 -8
- package/dist/helpers.mjs +2 -1
- package/dist/helpers.mjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +1 -1
- package/dist/metadata.cjs +1 -1
- package/dist/metadata.d.cts +2 -65
- package/dist/metadata.d.cts.map +1 -1
- package/dist/metadata.d.mts +2 -65
- package/dist/metadata.mjs +2 -1
- package/dist/metadata.mjs.map +1 -0
- package/dist/type-checks.d.cts +5 -5
- package/dist/type-checks.d.cts.map +1 -1
- package/dist/type-checks.d.mts +5 -5
- package/dist/types.d.cts +12 -165
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +12 -165
- package/package.json +15 -15
- package/dist/constants-u7ovYS9e.d.mts.map +0 -1
- package/dist/metadata-CsY3HrP2.cjs +0 -77
- package/dist/metadata-DIEpQjbq.mjs +0 -78
- package/dist/metadata-DIEpQjbq.mjs.map +0 -1
package/dist/types.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { n as JSON_SCHEMA_PRIMITIVE_TYPES, r as JSON_SCHEMA_TYPES } from "./constants-
|
|
1
|
+
import { n as JSON_SCHEMA_PRIMITIVE_TYPES, r as JSON_SCHEMA_TYPES } from "./constants-lihlIQu7.cjs";
|
|
2
2
|
import { StandardJSONSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
|
|
4
|
-
import {
|
|
5
|
-
import { InputObject, Schema as Schema$1 } from "untyped";
|
|
4
|
+
import { InputObject, Schema } from "untyped";
|
|
6
5
|
import { BaseIssue, BaseSchema } from "valibot";
|
|
7
6
|
import * as z3 from "zod/v3";
|
|
8
7
|
|
|
@@ -110,7 +109,7 @@ interface JsonSchemaMetadataKeywords {
|
|
|
110
109
|
/**
|
|
111
110
|
* 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.
|
|
112
111
|
*/
|
|
113
|
-
|
|
112
|
+
title?: string;
|
|
114
113
|
/**
|
|
115
114
|
* A description for the schema, which can be used by documentation tools or other libraries that support this feature to provide a human-readable explanation or summary of the schema's purpose and usage. 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.
|
|
116
115
|
*/
|
|
@@ -1136,7 +1135,7 @@ type UntypedInputObject = InputObject;
|
|
|
1136
1135
|
/**
|
|
1137
1136
|
* Alias for the Untyped schema document shape.
|
|
1138
1137
|
*/
|
|
1139
|
-
type UntypedSchema = Schema
|
|
1138
|
+
type UntypedSchema = Schema;
|
|
1140
1139
|
/**
|
|
1141
1140
|
* A Valibot schema instance.
|
|
1142
1141
|
*
|
|
@@ -1167,163 +1166,15 @@ type SchemaSourceInput<TSpec = any> = StandardJSONSchemaV1<TSpec> | JsonSchemaOf
|
|
|
1167
1166
|
* @template TSpec - The original TypeScript type for which the schema is being extracted. This type parameter is used to derive the appropriate JSON Schema representation based on the structure and constraints of `T`.
|
|
1168
1167
|
*
|
|
1169
1168
|
* @see {@link SchemaSourceInput}
|
|
1170
|
-
* @see {@link
|
|
1169
|
+
* @see {@link SchemaEnvelope}
|
|
1171
1170
|
* @see {@link SchemaInputWithMeta}
|
|
1172
1171
|
*/
|
|
1173
|
-
type SchemaInput<TSpec = any> = LoadInput | SchemaSourceInput<TSpec> |
|
|
1172
|
+
type SchemaInput<TSpec = any> = LoadInput | SchemaSourceInput<TSpec> | SchemaEnvelope<JsonSchemaOf<TSpec>>;
|
|
1174
1173
|
type InferExtractOptions<T extends SchemaInput> = T extends LoadInput ? InferLoadOptions<T> : {};
|
|
1175
|
-
type MetaValue<TSpec, TValue = any> = TValue | ((spec: TSpec) => MaybePromise<TValue>);
|
|
1176
|
-
type MetaDeprecated = true | string | {
|
|
1177
|
-
message?: string;
|
|
1178
|
-
since?: string;
|
|
1179
|
-
alternative?: string;
|
|
1180
|
-
};
|
|
1181
|
-
type MetaLink = string | {
|
|
1182
|
-
href: string;
|
|
1183
|
-
description?: string;
|
|
1184
|
-
};
|
|
1185
|
-
interface MetaInput<TSpec> {
|
|
1186
|
-
/**
|
|
1187
|
-
* A name for the schema, which can be used to identify or reference the schema in documentation, tooling, or other contexts. 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.
|
|
1188
|
-
*
|
|
1189
|
-
* @remarks
|
|
1190
|
-
* The `name` property is a string that can be used to give the schema a human-readable identifier. It can be used in documentation, error messages, or other contexts where it is helpful to have a name associated with 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 expected data when used in conjunction with compatible tools.
|
|
1191
|
-
*/
|
|
1192
|
-
name?: MetaValue<TSpec, string>;
|
|
1193
|
-
/**
|
|
1194
|
-
* A version string that indicates the version of the schema. This property can be used to track changes or updates to the schema over time, allowing consumers of the schema to determine which version they are working with. 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.
|
|
1195
|
-
*
|
|
1196
|
-
* @remarks
|
|
1197
|
-
* The `version` property is a string that can follow any versioning scheme, such as semantic versioning (e.g., "1.0.0", "2.1.3"), date-based versioning (e.g., "2023-06-15"), or any other format that conveys the version of the schema. It is recommended to use a consistent versioning scheme across all schemas to facilitate easier tracking and management of schema versions.
|
|
1198
|
-
*
|
|
1199
|
-
* @defaultValue "1.0"
|
|
1200
|
-
*/
|
|
1201
|
-
version?: MetaValue<TSpec, string | Date | number>;
|
|
1202
|
-
/**
|
|
1203
|
-
* A string that describes the schema in some way.
|
|
1204
|
-
*/
|
|
1205
|
-
description?: MetaValue<TSpec, string>;
|
|
1206
|
-
/**
|
|
1207
|
-
* A string that provides a human-readable name for the schema, which can be used in documentation, tooling, or other contexts to identify or reference 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 expected data when used in conjunction with compatible tools.
|
|
1208
|
-
*
|
|
1209
|
-
* @remarks
|
|
1210
|
-
* The `displayName` property is a string that can be used to give the schema a more user-friendly or descriptive name. It can be used in documentation, error messages, or other contexts where it is helpful to have a display name associated with 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 expected data when used in conjunction with compatible tools.
|
|
1211
|
-
*/
|
|
1212
|
-
displayName?: MetaValue<TSpec, string>;
|
|
1213
|
-
/**
|
|
1214
|
-
* A string that describes when the schema is used.
|
|
1215
|
-
*/
|
|
1216
|
-
usage?: MetaValue<TSpec, string>;
|
|
1217
|
-
/**
|
|
1218
|
-
* Indicates whether the schema is deprecated, and optionally provides additional information about the deprecation, such as a message, the version since which it is deprecated, and an alternative schema to use instead.
|
|
1219
|
-
*
|
|
1220
|
-
* @remarks
|
|
1221
|
-
* The `deprecated` property can be a boolean value, where `true` indicates that the schema is deprecated and `false` indicates that it is not. It can also be a string that provides a message explaining the deprecation, or an object that includes additional details such as a message, the version since which it is deprecated, and an alternative schema to use instead. 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.
|
|
1222
|
-
*/
|
|
1223
|
-
deprecated?: MetaValue<TSpec, MetaDeprecated>;
|
|
1224
|
-
/**
|
|
1225
|
-
* An array of tags associated with the schema. Tags can be used to categorize or label schemas for organizational purposes, making it easier to search, filter, or group related schemas together. 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.
|
|
1226
|
-
*
|
|
1227
|
-
* @remarks
|
|
1228
|
-
* Each tag in the array should be a string that represents a meaningful label or category for the schema. It is recommended to use consistent and descriptive tags across schemas to facilitate easier management and discovery of related schemas.
|
|
1229
|
-
*/
|
|
1230
|
-
tags?: MetaValue<TSpec, string[]>;
|
|
1231
|
-
/**
|
|
1232
|
-
* An array of links associated with the schema. Each link can be a string representing a URL or an object containing a `href` property and an optional `description` property.
|
|
1233
|
-
*/
|
|
1234
|
-
links?: MetaValue<TSpec, MetaLink[]>;
|
|
1235
|
-
}
|
|
1236
|
-
interface Meta<TSpec> {
|
|
1237
|
-
/**
|
|
1238
|
-
* A unique identifier for the schema, which can be used to reference or identify the schema in documentation, tooling, or other contexts. 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.
|
|
1239
|
-
*
|
|
1240
|
-
* @remarks
|
|
1241
|
-
* The `id` property is a string that can be used to give the schema a unique identifier. It can be used in documentation, error messages, or other contexts where it is helpful to have an identifier associated with 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 expected data when used in conjunction with compatible tools.
|
|
1242
|
-
*/
|
|
1243
|
-
id: MetaValue<TSpec, string>;
|
|
1244
|
-
/**
|
|
1245
|
-
* A name for the schema, which can be used to identify or reference the schema in documentation, tooling, or other contexts. 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.
|
|
1246
|
-
*
|
|
1247
|
-
* @remarks
|
|
1248
|
-
* The `name` property is a string that can be used to give the schema a human-readable identifier. It can be used in documentation, error messages, or other contexts where it is helpful to have a name associated with 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 expected data when used in conjunction with compatible tools.
|
|
1249
|
-
*/
|
|
1250
|
-
name: MetaValue<TSpec, string>;
|
|
1251
|
-
/**
|
|
1252
|
-
* A version string that indicates the version of the schema. This property can be used to track changes or updates to the schema over time, allowing consumers of the schema to determine which version they are working with. 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.
|
|
1253
|
-
*
|
|
1254
|
-
* @remarks
|
|
1255
|
-
* The `version` property is a string that can follow any versioning scheme, such as semantic versioning (e.g., "1.0.0", "2.1.3"), date-based versioning (e.g., "2023-06-15"), or any other format that conveys the version of the schema. It is recommended to use a consistent versioning scheme across all schemas to facilitate easier tracking and management of schema versions.
|
|
1256
|
-
*
|
|
1257
|
-
* @defaultValue "1.0"
|
|
1258
|
-
*/
|
|
1259
|
-
version: MetaValue<TSpec, string | Date | number>;
|
|
1260
|
-
/**
|
|
1261
|
-
* A string that describes the schema in some way.
|
|
1262
|
-
*/
|
|
1263
|
-
description: MetaValue<TSpec, string>;
|
|
1264
|
-
/**
|
|
1265
|
-
* A string that provides a human-readable name for the schema, which can be used in documentation, tooling, or other contexts to identify or reference 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 expected data when used in conjunction with compatible tools.
|
|
1266
|
-
*
|
|
1267
|
-
* @remarks
|
|
1268
|
-
* The `displayName` property is a string that can be used to give the schema a more user-friendly or descriptive name. It can be used in documentation, error messages, or other contexts where it is helpful to have a display name associated with 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 expected data when used in conjunction with compatible tools.
|
|
1269
|
-
*/
|
|
1270
|
-
displayName: MetaValue<TSpec, string>;
|
|
1271
|
-
/**
|
|
1272
|
-
* A string that describes when the schema is used.
|
|
1273
|
-
*/
|
|
1274
|
-
usage?: MetaValue<TSpec, string>;
|
|
1275
|
-
/**
|
|
1276
|
-
* Indicates whether the schema is deprecated, and optionally provides additional information about the deprecation, such as a message, the version since which it is deprecated, and an alternative schema to use instead.
|
|
1277
|
-
*
|
|
1278
|
-
* @remarks
|
|
1279
|
-
* The `deprecated` property can be a boolean value, where `true` indicates that the schema is deprecated and `false` indicates that it is not. It can also be a string that provides a message explaining the deprecation, or an object that includes additional details such as a message, the version since which it is deprecated, and an alternative schema to use instead. 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.
|
|
1280
|
-
*/
|
|
1281
|
-
deprecated?: MetaValue<TSpec, MetaDeprecated>;
|
|
1282
|
-
/**
|
|
1283
|
-
* An array of tags associated with the schema. Tags can be used to categorize or label schemas for organizational purposes, making it easier to search, filter, or group related schemas together. 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.
|
|
1284
|
-
*
|
|
1285
|
-
* @remarks
|
|
1286
|
-
* Each tag in the array should be a string that represents a meaningful label or category for the schema. It is recommended to use consistent and descriptive tags across schemas to facilitate easier management and discovery of related schemas.
|
|
1287
|
-
*/
|
|
1288
|
-
tags?: MetaValue<TSpec, string[]>;
|
|
1289
|
-
/**
|
|
1290
|
-
* An array of links associated with the schema. Each link can be a string representing a URL or an object containing a `href` property and an optional `description` property.
|
|
1291
|
-
*/
|
|
1292
|
-
links: MetaValue<TSpec, MetaLink[]>;
|
|
1293
|
-
}
|
|
1294
|
-
type SchemaMetaExample<TSpec> = TSpec | {
|
|
1295
|
-
description?: string;
|
|
1296
|
-
value: TSpec;
|
|
1297
|
-
};
|
|
1298
|
-
interface SchemaMetaInput<TSpec> extends MetaInput<TSpec> {
|
|
1299
|
-
/**
|
|
1300
|
-
* Examples of valid data for the schema. This can be a single example or an array of examples.
|
|
1301
|
-
*/
|
|
1302
|
-
examples?: SchemaMetaExample<TSpec> | MetaValue<TSpec, SchemaMetaExample<TSpec>[]>;
|
|
1303
|
-
}
|
|
1304
|
-
interface SchemaMeta<TSpec> extends Meta<TSpec> {
|
|
1305
|
-
/**
|
|
1306
|
-
* Examples of valid data for the schema.
|
|
1307
|
-
*/
|
|
1308
|
-
examples: MetaValue<TSpec, SchemaMetaExample<TSpec>[]>;
|
|
1309
|
-
}
|
|
1310
|
-
/**
|
|
1311
|
-
* Schema input wrapper that attaches optional contextual metadata.
|
|
1312
|
-
*/
|
|
1313
|
-
interface SchemaInputWithMeta<TSpec = any> {
|
|
1314
|
-
/**
|
|
1315
|
-
* The underlying schema input payload.
|
|
1316
|
-
*/
|
|
1317
|
-
schema: SchemaSourceInput<TSpec> | Schema<JsonSchemaOf<TSpec>> | LoadInput;
|
|
1318
|
-
/**
|
|
1319
|
-
* Optional contextual metadata associated with this schema input.
|
|
1320
|
-
*/
|
|
1321
|
-
meta?: SchemaMetaInput<TSpec> | string;
|
|
1322
|
-
}
|
|
1323
1174
|
/**
|
|
1324
|
-
* A schema
|
|
1175
|
+
* A schema envelope that contains the normalized schema and its source variant.
|
|
1325
1176
|
*/
|
|
1326
|
-
interface
|
|
1177
|
+
interface SchemaEnvelope<TJsonSchema extends JsonSchema = JsonSchema> {
|
|
1327
1178
|
/**
|
|
1328
1179
|
* A stable content hash for the normalized schema.
|
|
1329
1180
|
*/
|
|
@@ -1336,19 +1187,15 @@ interface Schema<TJsonSchema extends JsonSchema = JsonSchema> {
|
|
|
1336
1187
|
* The normalized schema definition.
|
|
1337
1188
|
*/
|
|
1338
1189
|
schema: TJsonSchema;
|
|
1339
|
-
/**
|
|
1340
|
-
* Optional contextual metadata associated with the schema.
|
|
1341
|
-
*/
|
|
1342
|
-
meta: SchemaMeta<SpecOf<TJsonSchema>>;
|
|
1343
1190
|
}
|
|
1344
1191
|
/**
|
|
1345
1192
|
* A normalized JSON Schema extracted from a source input of type `T`. This type represents the result of the schema extraction process, where a raw schema input (which could be in various formats such as Zod, Untyped, Valibot, or as a type definition in TypeScript source code) is transformed into a standardized JSON Schema format. The `SchemaOf<T>` type captures the normalized JSON Schema along with metadata about the source variant and a content hash for caching or identification purposes.
|
|
1346
1193
|
*
|
|
1347
1194
|
* @template TSpec - The original TypeScript type for which the schema is being extracted. This type parameter is used to derive the appropriate JSON Schema representation based on the structure and constraints of `T`.
|
|
1348
1195
|
*
|
|
1349
|
-
* @see {@link
|
|
1196
|
+
* @see {@link SchemaEnvelope}
|
|
1350
1197
|
*/
|
|
1351
|
-
type
|
|
1198
|
+
type SchemaEnvelopeOf<TSpec> = SchemaEnvelope<JsonSchemaOf<TSpec>>;
|
|
1352
1199
|
/**
|
|
1353
1200
|
* Base metadata captured for schema source inputs.
|
|
1354
1201
|
*/
|
|
@@ -1412,12 +1259,12 @@ type SchemaSource<TSpec = any> = JsonSchemaSchemaSource<TSpec> | StandardSchemaS
|
|
|
1412
1259
|
/**
|
|
1413
1260
|
* A normalized schema plus metadata about the source that produced it.
|
|
1414
1261
|
*/
|
|
1415
|
-
interface
|
|
1262
|
+
interface ExtractedSchemaEnvelope<TSpec = any> extends SchemaEnvelopeOf<TSpec> {
|
|
1416
1263
|
/**
|
|
1417
1264
|
* The schema source that produced this normalized schema.
|
|
1418
1265
|
*/
|
|
1419
1266
|
source: SchemaSource<TSpec>;
|
|
1420
1267
|
}
|
|
1421
1268
|
//#endregion
|
|
1422
|
-
export { BaseSchemaSource,
|
|
1269
|
+
export { BaseSchemaSource, ExtractedSchemaEnvelope, InferExtractOptions, JsonSchema, JsonSchemaAllOf, JsonSchemaAny, JsonSchemaAnyOf, JsonSchemaArray, JsonSchemaBigint, JsonSchemaBoolean, JsonSchemaConditionalKeywords, JsonSchemaDate, JsonSchemaDecimal, JsonSchemaDecimalFormat, JsonSchemaEnum, JsonSchemaInteger, JsonSchemaIntegerFormat, JsonSchemaKeywords, JsonSchemaLike, JsonSchemaLiteral, JsonSchemaLogicKeywords, JsonSchemaMap, JsonSchemaMetadataKeywords, JsonSchemaNativeEnum, JsonSchemaNever, JsonSchemaNull, JsonSchemaNullable, JsonSchemaNumber, JsonSchemaNumberFormat, JsonSchemaObject, JsonSchemaOf, JsonSchemaPrimitiveType, JsonSchemaPrimitiveUnion, JsonSchemaRecord, JsonSchemaRecordPropertyNames, JsonSchemaRef, JsonSchemaSchemaSource, JsonSchemaSet, JsonSchemaString, JsonSchemaStringFormat, JsonSchemaTuple, JsonSchemaType, JsonSchemaUndefined, JsonSchemaUnion, JsonSchemaUnknown, SchemaEnvelope, SchemaEnvelopeOf, SchemaInput, SchemaInputVariant, SchemaSource, SchemaSourceInput, SchemaSourceVariant, SpecOf, StandardSchemaSchemaSource, UntypedInputObject, UntypedSchema, UntypedSchemaSource, ValibotSchema, ValibotSchemaSource, Zod3SchemaSource };
|
|
1423
1270
|
//# sourceMappingURL=types.d.cts.map
|
package/dist/types.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../src/types.ts"],"mappings":";;;;;;;;;;;AAoCA;;;KAAY,uBAAA,WACF,2BAA2B;AAAA;AAOrC;;;;AAPqC,KAOzB,cAAA,WAAyB,iBAAiB;AAKtD;;;AAAA,KAAY,uBAAA;AAAuB;AAanC;;AAbmC,KAavB,uBAAA;;AAAuB;AAKnC;KAAY,sBAAA,GACR,uBAAA,GACA,uBAAuB;;;AAAA;KAKf,sBAAA;;;;AAAsB;AA6BlC;UAAiB,0BAAA;;;;;;;EAOf,GAAA;EAQA;;;;;;EAAA,OAAA;EAiCuB;;;;;;EAzBvB,WAAA,GAAc,MAAA;EAmEd;;;;;;EA3DA,QAAA;EAkFA;;;;;EA3EA,OAAA;EA+FA;;;;;AAeS;AASX;;EA7GE,KAAA,GAAQ,MAAA,SAAe,UAAA;EAsHf;;;;;;;EA7GR,WAAA;EAuHA;;;;;;EA/GA,cAAA;EAmIgB;AASlB;;EAvIE,IAAA;EAgJK;;;EA3IL,OAAA;EA+JiB;;;EA1JjB,WAAA;EAgJO;;;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AA,CAAiB,KAAA;EAvRtB;EAyRH,OAAA;EAvR8B;EA0R9B,MAAA,EAAQ,kBAAA,GAAqB,aAAA;AAAA;;;;UAMd,mBAAA,sBAEP,gBAAA,CAAiB,KAAA;EA9RR;EAgSjB,OAAA;EA/SwC;EAkTxC,MAAA,EAAQ,aAAA,CAAc,KAAA;AAAA;;;;KAMZ,YAAA,gBACR,sBAAA,CAAuB,KAAA,IACvB,0BAAA,CAA2B,KAAA,IAC3B,gBAAA,CAAiB,KAAA,IACjB,mBAAA,CAAoB,KAAA,IACpB,mBAAA,CAAoB,KAAA;;;;UAKP,uBAAA,sBAEP,gBAAA,CAAiB,KAAA;EA9Te;;;EAkUxC,MAAA,EAAQ,YAAA,CAAa,KAAA;AAAA"}
|
package/dist/types.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { n as JSON_SCHEMA_PRIMITIVE_TYPES, r as JSON_SCHEMA_TYPES } from "./constants-
|
|
1
|
+
import { n as JSON_SCHEMA_PRIMITIVE_TYPES, r as JSON_SCHEMA_TYPES } from "./constants-lihlIQu7.mjs";
|
|
2
2
|
import { StandardJSONSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
|
|
4
|
-
import {
|
|
5
|
-
import { InputObject, Schema as Schema$1 } from "untyped";
|
|
4
|
+
import { InputObject, Schema } from "untyped";
|
|
6
5
|
import { BaseIssue, BaseSchema } from "valibot";
|
|
7
6
|
import * as z3 from "zod/v3";
|
|
8
7
|
|
|
@@ -110,7 +109,7 @@ interface JsonSchemaMetadataKeywords {
|
|
|
110
109
|
/**
|
|
111
110
|
* 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.
|
|
112
111
|
*/
|
|
113
|
-
|
|
112
|
+
title?: string;
|
|
114
113
|
/**
|
|
115
114
|
* A description for the schema, which can be used by documentation tools or other libraries that support this feature to provide a human-readable explanation or summary of the schema's purpose and usage. 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.
|
|
116
115
|
*/
|
|
@@ -1136,7 +1135,7 @@ type UntypedInputObject = InputObject;
|
|
|
1136
1135
|
/**
|
|
1137
1136
|
* Alias for the Untyped schema document shape.
|
|
1138
1137
|
*/
|
|
1139
|
-
type UntypedSchema = Schema
|
|
1138
|
+
type UntypedSchema = Schema;
|
|
1140
1139
|
/**
|
|
1141
1140
|
* A Valibot schema instance.
|
|
1142
1141
|
*
|
|
@@ -1167,163 +1166,15 @@ type SchemaSourceInput<TSpec = any> = StandardJSONSchemaV1<TSpec> | JsonSchemaOf
|
|
|
1167
1166
|
* @template TSpec - The original TypeScript type for which the schema is being extracted. This type parameter is used to derive the appropriate JSON Schema representation based on the structure and constraints of `T`.
|
|
1168
1167
|
*
|
|
1169
1168
|
* @see {@link SchemaSourceInput}
|
|
1170
|
-
* @see {@link
|
|
1169
|
+
* @see {@link SchemaEnvelope}
|
|
1171
1170
|
* @see {@link SchemaInputWithMeta}
|
|
1172
1171
|
*/
|
|
1173
|
-
type SchemaInput<TSpec = any> = LoadInput | SchemaSourceInput<TSpec> |
|
|
1172
|
+
type SchemaInput<TSpec = any> = LoadInput | SchemaSourceInput<TSpec> | SchemaEnvelope<JsonSchemaOf<TSpec>>;
|
|
1174
1173
|
type InferExtractOptions<T extends SchemaInput> = T extends LoadInput ? InferLoadOptions<T> : {};
|
|
1175
|
-
type MetaValue<TSpec, TValue = any> = TValue | ((spec: TSpec) => MaybePromise<TValue>);
|
|
1176
|
-
type MetaDeprecated = true | string | {
|
|
1177
|
-
message?: string;
|
|
1178
|
-
since?: string;
|
|
1179
|
-
alternative?: string;
|
|
1180
|
-
};
|
|
1181
|
-
type MetaLink = string | {
|
|
1182
|
-
href: string;
|
|
1183
|
-
description?: string;
|
|
1184
|
-
};
|
|
1185
|
-
interface MetaInput<TSpec> {
|
|
1186
|
-
/**
|
|
1187
|
-
* A name for the schema, which can be used to identify or reference the schema in documentation, tooling, or other contexts. 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.
|
|
1188
|
-
*
|
|
1189
|
-
* @remarks
|
|
1190
|
-
* The `name` property is a string that can be used to give the schema a human-readable identifier. It can be used in documentation, error messages, or other contexts where it is helpful to have a name associated with 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 expected data when used in conjunction with compatible tools.
|
|
1191
|
-
*/
|
|
1192
|
-
name?: MetaValue<TSpec, string>;
|
|
1193
|
-
/**
|
|
1194
|
-
* A version string that indicates the version of the schema. This property can be used to track changes or updates to the schema over time, allowing consumers of the schema to determine which version they are working with. 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.
|
|
1195
|
-
*
|
|
1196
|
-
* @remarks
|
|
1197
|
-
* The `version` property is a string that can follow any versioning scheme, such as semantic versioning (e.g., "1.0.0", "2.1.3"), date-based versioning (e.g., "2023-06-15"), or any other format that conveys the version of the schema. It is recommended to use a consistent versioning scheme across all schemas to facilitate easier tracking and management of schema versions.
|
|
1198
|
-
*
|
|
1199
|
-
* @defaultValue "1.0"
|
|
1200
|
-
*/
|
|
1201
|
-
version?: MetaValue<TSpec, string | Date | number>;
|
|
1202
|
-
/**
|
|
1203
|
-
* A string that describes the schema in some way.
|
|
1204
|
-
*/
|
|
1205
|
-
description?: MetaValue<TSpec, string>;
|
|
1206
|
-
/**
|
|
1207
|
-
* A string that provides a human-readable name for the schema, which can be used in documentation, tooling, or other contexts to identify or reference 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 expected data when used in conjunction with compatible tools.
|
|
1208
|
-
*
|
|
1209
|
-
* @remarks
|
|
1210
|
-
* The `displayName` property is a string that can be used to give the schema a more user-friendly or descriptive name. It can be used in documentation, error messages, or other contexts where it is helpful to have a display name associated with 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 expected data when used in conjunction with compatible tools.
|
|
1211
|
-
*/
|
|
1212
|
-
displayName?: MetaValue<TSpec, string>;
|
|
1213
|
-
/**
|
|
1214
|
-
* A string that describes when the schema is used.
|
|
1215
|
-
*/
|
|
1216
|
-
usage?: MetaValue<TSpec, string>;
|
|
1217
|
-
/**
|
|
1218
|
-
* Indicates whether the schema is deprecated, and optionally provides additional information about the deprecation, such as a message, the version since which it is deprecated, and an alternative schema to use instead.
|
|
1219
|
-
*
|
|
1220
|
-
* @remarks
|
|
1221
|
-
* The `deprecated` property can be a boolean value, where `true` indicates that the schema is deprecated and `false` indicates that it is not. It can also be a string that provides a message explaining the deprecation, or an object that includes additional details such as a message, the version since which it is deprecated, and an alternative schema to use instead. 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.
|
|
1222
|
-
*/
|
|
1223
|
-
deprecated?: MetaValue<TSpec, MetaDeprecated>;
|
|
1224
|
-
/**
|
|
1225
|
-
* An array of tags associated with the schema. Tags can be used to categorize or label schemas for organizational purposes, making it easier to search, filter, or group related schemas together. 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.
|
|
1226
|
-
*
|
|
1227
|
-
* @remarks
|
|
1228
|
-
* Each tag in the array should be a string that represents a meaningful label or category for the schema. It is recommended to use consistent and descriptive tags across schemas to facilitate easier management and discovery of related schemas.
|
|
1229
|
-
*/
|
|
1230
|
-
tags?: MetaValue<TSpec, string[]>;
|
|
1231
|
-
/**
|
|
1232
|
-
* An array of links associated with the schema. Each link can be a string representing a URL or an object containing a `href` property and an optional `description` property.
|
|
1233
|
-
*/
|
|
1234
|
-
links?: MetaValue<TSpec, MetaLink[]>;
|
|
1235
|
-
}
|
|
1236
|
-
interface Meta<TSpec> {
|
|
1237
|
-
/**
|
|
1238
|
-
* A unique identifier for the schema, which can be used to reference or identify the schema in documentation, tooling, or other contexts. 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.
|
|
1239
|
-
*
|
|
1240
|
-
* @remarks
|
|
1241
|
-
* The `id` property is a string that can be used to give the schema a unique identifier. It can be used in documentation, error messages, or other contexts where it is helpful to have an identifier associated with 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 expected data when used in conjunction with compatible tools.
|
|
1242
|
-
*/
|
|
1243
|
-
id: MetaValue<TSpec, string>;
|
|
1244
|
-
/**
|
|
1245
|
-
* A name for the schema, which can be used to identify or reference the schema in documentation, tooling, or other contexts. 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.
|
|
1246
|
-
*
|
|
1247
|
-
* @remarks
|
|
1248
|
-
* The `name` property is a string that can be used to give the schema a human-readable identifier. It can be used in documentation, error messages, or other contexts where it is helpful to have a name associated with 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 expected data when used in conjunction with compatible tools.
|
|
1249
|
-
*/
|
|
1250
|
-
name: MetaValue<TSpec, string>;
|
|
1251
|
-
/**
|
|
1252
|
-
* A version string that indicates the version of the schema. This property can be used to track changes or updates to the schema over time, allowing consumers of the schema to determine which version they are working with. 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.
|
|
1253
|
-
*
|
|
1254
|
-
* @remarks
|
|
1255
|
-
* The `version` property is a string that can follow any versioning scheme, such as semantic versioning (e.g., "1.0.0", "2.1.3"), date-based versioning (e.g., "2023-06-15"), or any other format that conveys the version of the schema. It is recommended to use a consistent versioning scheme across all schemas to facilitate easier tracking and management of schema versions.
|
|
1256
|
-
*
|
|
1257
|
-
* @defaultValue "1.0"
|
|
1258
|
-
*/
|
|
1259
|
-
version: MetaValue<TSpec, string | Date | number>;
|
|
1260
|
-
/**
|
|
1261
|
-
* A string that describes the schema in some way.
|
|
1262
|
-
*/
|
|
1263
|
-
description: MetaValue<TSpec, string>;
|
|
1264
|
-
/**
|
|
1265
|
-
* A string that provides a human-readable name for the schema, which can be used in documentation, tooling, or other contexts to identify or reference 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 expected data when used in conjunction with compatible tools.
|
|
1266
|
-
*
|
|
1267
|
-
* @remarks
|
|
1268
|
-
* The `displayName` property is a string that can be used to give the schema a more user-friendly or descriptive name. It can be used in documentation, error messages, or other contexts where it is helpful to have a display name associated with 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 expected data when used in conjunction with compatible tools.
|
|
1269
|
-
*/
|
|
1270
|
-
displayName: MetaValue<TSpec, string>;
|
|
1271
|
-
/**
|
|
1272
|
-
* A string that describes when the schema is used.
|
|
1273
|
-
*/
|
|
1274
|
-
usage?: MetaValue<TSpec, string>;
|
|
1275
|
-
/**
|
|
1276
|
-
* Indicates whether the schema is deprecated, and optionally provides additional information about the deprecation, such as a message, the version since which it is deprecated, and an alternative schema to use instead.
|
|
1277
|
-
*
|
|
1278
|
-
* @remarks
|
|
1279
|
-
* The `deprecated` property can be a boolean value, where `true` indicates that the schema is deprecated and `false` indicates that it is not. It can also be a string that provides a message explaining the deprecation, or an object that includes additional details such as a message, the version since which it is deprecated, and an alternative schema to use instead. 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.
|
|
1280
|
-
*/
|
|
1281
|
-
deprecated?: MetaValue<TSpec, MetaDeprecated>;
|
|
1282
|
-
/**
|
|
1283
|
-
* An array of tags associated with the schema. Tags can be used to categorize or label schemas for organizational purposes, making it easier to search, filter, or group related schemas together. 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.
|
|
1284
|
-
*
|
|
1285
|
-
* @remarks
|
|
1286
|
-
* Each tag in the array should be a string that represents a meaningful label or category for the schema. It is recommended to use consistent and descriptive tags across schemas to facilitate easier management and discovery of related schemas.
|
|
1287
|
-
*/
|
|
1288
|
-
tags?: MetaValue<TSpec, string[]>;
|
|
1289
|
-
/**
|
|
1290
|
-
* An array of links associated with the schema. Each link can be a string representing a URL or an object containing a `href` property and an optional `description` property.
|
|
1291
|
-
*/
|
|
1292
|
-
links: MetaValue<TSpec, MetaLink[]>;
|
|
1293
|
-
}
|
|
1294
|
-
type SchemaMetaExample<TSpec> = TSpec | {
|
|
1295
|
-
description?: string;
|
|
1296
|
-
value: TSpec;
|
|
1297
|
-
};
|
|
1298
|
-
interface SchemaMetaInput<TSpec> extends MetaInput<TSpec> {
|
|
1299
|
-
/**
|
|
1300
|
-
* Examples of valid data for the schema. This can be a single example or an array of examples.
|
|
1301
|
-
*/
|
|
1302
|
-
examples?: SchemaMetaExample<TSpec> | MetaValue<TSpec, SchemaMetaExample<TSpec>[]>;
|
|
1303
|
-
}
|
|
1304
|
-
interface SchemaMeta<TSpec> extends Meta<TSpec> {
|
|
1305
|
-
/**
|
|
1306
|
-
* Examples of valid data for the schema.
|
|
1307
|
-
*/
|
|
1308
|
-
examples: MetaValue<TSpec, SchemaMetaExample<TSpec>[]>;
|
|
1309
|
-
}
|
|
1310
|
-
/**
|
|
1311
|
-
* Schema input wrapper that attaches optional contextual metadata.
|
|
1312
|
-
*/
|
|
1313
|
-
interface SchemaInputWithMeta<TSpec = any> {
|
|
1314
|
-
/**
|
|
1315
|
-
* The underlying schema input payload.
|
|
1316
|
-
*/
|
|
1317
|
-
schema: SchemaSourceInput<TSpec> | Schema<JsonSchemaOf<TSpec>> | LoadInput;
|
|
1318
|
-
/**
|
|
1319
|
-
* Optional contextual metadata associated with this schema input.
|
|
1320
|
-
*/
|
|
1321
|
-
meta?: SchemaMetaInput<TSpec> | string;
|
|
1322
|
-
}
|
|
1323
1174
|
/**
|
|
1324
|
-
* A schema
|
|
1175
|
+
* A schema envelope that contains the normalized schema and its source variant.
|
|
1325
1176
|
*/
|
|
1326
|
-
interface
|
|
1177
|
+
interface SchemaEnvelope<TJsonSchema extends JsonSchema = JsonSchema> {
|
|
1327
1178
|
/**
|
|
1328
1179
|
* A stable content hash for the normalized schema.
|
|
1329
1180
|
*/
|
|
@@ -1336,19 +1187,15 @@ interface Schema<TJsonSchema extends JsonSchema = JsonSchema> {
|
|
|
1336
1187
|
* The normalized schema definition.
|
|
1337
1188
|
*/
|
|
1338
1189
|
schema: TJsonSchema;
|
|
1339
|
-
/**
|
|
1340
|
-
* Optional contextual metadata associated with the schema.
|
|
1341
|
-
*/
|
|
1342
|
-
meta: SchemaMeta<SpecOf<TJsonSchema>>;
|
|
1343
1190
|
}
|
|
1344
1191
|
/**
|
|
1345
1192
|
* A normalized JSON Schema extracted from a source input of type `T`. This type represents the result of the schema extraction process, where a raw schema input (which could be in various formats such as Zod, Untyped, Valibot, or as a type definition in TypeScript source code) is transformed into a standardized JSON Schema format. The `SchemaOf<T>` type captures the normalized JSON Schema along with metadata about the source variant and a content hash for caching or identification purposes.
|
|
1346
1193
|
*
|
|
1347
1194
|
* @template TSpec - The original TypeScript type for which the schema is being extracted. This type parameter is used to derive the appropriate JSON Schema representation based on the structure and constraints of `T`.
|
|
1348
1195
|
*
|
|
1349
|
-
* @see {@link
|
|
1196
|
+
* @see {@link SchemaEnvelope}
|
|
1350
1197
|
*/
|
|
1351
|
-
type
|
|
1198
|
+
type SchemaEnvelopeOf<TSpec> = SchemaEnvelope<JsonSchemaOf<TSpec>>;
|
|
1352
1199
|
/**
|
|
1353
1200
|
* Base metadata captured for schema source inputs.
|
|
1354
1201
|
*/
|
|
@@ -1412,12 +1259,12 @@ type SchemaSource<TSpec = any> = JsonSchemaSchemaSource<TSpec> | StandardSchemaS
|
|
|
1412
1259
|
/**
|
|
1413
1260
|
* A normalized schema plus metadata about the source that produced it.
|
|
1414
1261
|
*/
|
|
1415
|
-
interface
|
|
1262
|
+
interface ExtractedSchemaEnvelope<TSpec = any> extends SchemaEnvelopeOf<TSpec> {
|
|
1416
1263
|
/**
|
|
1417
1264
|
* The schema source that produced this normalized schema.
|
|
1418
1265
|
*/
|
|
1419
1266
|
source: SchemaSource<TSpec>;
|
|
1420
1267
|
}
|
|
1421
1268
|
//#endregion
|
|
1422
|
-
export { BaseSchemaSource,
|
|
1269
|
+
export { BaseSchemaSource, ExtractedSchemaEnvelope, InferExtractOptions, JsonSchema, JsonSchemaAllOf, JsonSchemaAny, JsonSchemaAnyOf, JsonSchemaArray, JsonSchemaBigint, JsonSchemaBoolean, JsonSchemaConditionalKeywords, JsonSchemaDate, JsonSchemaDecimal, JsonSchemaDecimalFormat, JsonSchemaEnum, JsonSchemaInteger, JsonSchemaIntegerFormat, JsonSchemaKeywords, JsonSchemaLike, JsonSchemaLiteral, JsonSchemaLogicKeywords, JsonSchemaMap, JsonSchemaMetadataKeywords, JsonSchemaNativeEnum, JsonSchemaNever, JsonSchemaNull, JsonSchemaNullable, JsonSchemaNumber, JsonSchemaNumberFormat, JsonSchemaObject, JsonSchemaOf, JsonSchemaPrimitiveType, JsonSchemaPrimitiveUnion, JsonSchemaRecord, JsonSchemaRecordPropertyNames, JsonSchemaRef, JsonSchemaSchemaSource, JsonSchemaSet, JsonSchemaString, JsonSchemaStringFormat, JsonSchemaTuple, JsonSchemaType, JsonSchemaUndefined, JsonSchemaUnion, JsonSchemaUnknown, SchemaEnvelope, SchemaEnvelopeOf, SchemaInput, SchemaInputVariant, SchemaSource, SchemaSourceInput, SchemaSourceVariant, SpecOf, StandardSchemaSchemaSource, UntypedInputObject, UntypedSchema, UntypedSchemaSource, ValibotSchema, ValibotSchemaSource, Zod3SchemaSource };
|
|
1423
1270
|
//# sourceMappingURL=types.d.mts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/schema",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Power Plant utility package to help managing schemas.",
|
|
6
6
|
"keywords": [
|
|
@@ -170,19 +170,19 @@
|
|
|
170
170
|
"files": ["dist"],
|
|
171
171
|
"dependencies": {
|
|
172
172
|
"@standard-schema/spec": "^1.1.0",
|
|
173
|
-
"@stryke/convert": "^0.7.
|
|
174
|
-
"@stryke/date": "^0.0.
|
|
175
|
-
"@stryke/hash": "^0.13.
|
|
176
|
-
"@stryke/helpers": "^0.10.
|
|
177
|
-
"@stryke/json": "^0.15.
|
|
178
|
-
"@stryke/path": "^0.29.
|
|
179
|
-
"@stryke/resolve": "^0.0.
|
|
180
|
-
"@stryke/string-format": "^0.17.
|
|
181
|
-
"@stryke/type-checks": "^0.6.
|
|
182
|
-
"@stryke/types": "^0.12.
|
|
183
|
-
"@stryke/unique-id": "^0.3.
|
|
184
|
-
"@stryke/url": "^0.4.
|
|
185
|
-
"@stryke/zod": "^0.3.
|
|
173
|
+
"@stryke/convert": "^0.7.24",
|
|
174
|
+
"@stryke/date": "^0.0.5",
|
|
175
|
+
"@stryke/hash": "^0.13.47",
|
|
176
|
+
"@stryke/helpers": "^0.10.33",
|
|
177
|
+
"@stryke/json": "^0.15.17",
|
|
178
|
+
"@stryke/path": "^0.29.20",
|
|
179
|
+
"@stryke/resolve": "^0.0.9",
|
|
180
|
+
"@stryke/string-format": "^0.17.35",
|
|
181
|
+
"@stryke/type-checks": "^0.6.26",
|
|
182
|
+
"@stryke/types": "^0.12.21",
|
|
183
|
+
"@stryke/unique-id": "^0.3.105",
|
|
184
|
+
"@stryke/url": "^0.4.44",
|
|
185
|
+
"@stryke/zod": "^0.3.39",
|
|
186
186
|
"@valibot/to-json-schema": "^1.7.1",
|
|
187
187
|
"defu": "^6.1.7",
|
|
188
188
|
"ts-json-schema-generator": "^2.9.0",
|
|
@@ -205,5 +205,5 @@
|
|
|
205
205
|
"zod": { "optional": true }
|
|
206
206
|
},
|
|
207
207
|
"publishConfig": { "access": "public" },
|
|
208
|
-
"gitHead": "
|
|
208
|
+
"gitHead": "4f510175050312992ba4fa174eafdc56edd1f69b"
|
|
209
209
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants-u7ovYS9e.d.mts","names":[],"sources":["../src/constants.ts"],"mappings":""}
|