@power-plant/schema 0.0.2 → 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/README.md +221 -1
- package/dist/codegen.cjs +3 -3
- package/dist/codegen.mjs +2 -2
- package/dist/{constants-Cx9_Shfk.d.cts → constants-lihlIQu7.d.cts} +3 -4
- package/dist/constants-lihlIQu7.d.cts.map +1 -0
- package/dist/{constants-Cx9_Shfk.d.mts → constants-lihlIQu7.d.mts} +3 -4
- package/dist/constants-lihlIQu7.d.mts.map +1 -0
- package/dist/constants.cjs +1 -1
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.mts +2 -2
- package/dist/constants.mjs +1 -1
- package/dist/extract.cjs +1 -1
- package/dist/extract.d.cts +14 -9
- package/dist/extract.d.cts.map +1 -1
- package/dist/extract.d.mts +14 -9
- package/dist/extract.mjs +2 -1
- package/dist/extract.mjs.map +1 -0
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.d.cts +21 -10
- package/dist/helpers.d.cts.map +1 -1
- package/dist/helpers.d.mts +21 -10
- package/dist/helpers.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -9
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +6 -9
- package/dist/index.mjs +1 -1
- package/dist/metadata.cjs +1 -1
- package/dist/metadata.mjs +1 -1
- package/dist/type-checks.cjs +1 -1
- package/dist/type-checks.d.cts +13 -6
- package/dist/type-checks.d.cts.map +1 -1
- package/dist/type-checks.d.mts +13 -6
- package/dist/type-checks.mjs +1 -1
- package/dist/types.d.cts +63 -47
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +63 -47
- package/package.json +19 -64
- package/dist/bundle.cjs +0 -1
- package/dist/bundle.d.cts +0 -18
- package/dist/bundle.d.cts.map +0 -1
- package/dist/bundle.d.mts +0 -18
- package/dist/bundle.d.mts.map +0 -1
- package/dist/bundle.mjs +0 -2
- package/dist/bundle.mjs.map +0 -1
- package/dist/constants-Cx9_Shfk.d.cts.map +0 -1
- package/dist/constants-Cx9_Shfk.d.mts.map +0 -1
- package/dist/persistence-B9pzElsC.mjs +0 -2
- package/dist/persistence-B9pzElsC.mjs.map +0 -1
- package/dist/persistence-CLni2zCP.cjs +0 -1
- package/dist/persistence.cjs +0 -1
- package/dist/persistence.d.cts +0 -58
- package/dist/persistence.d.cts.map +0 -1
- package/dist/persistence.d.mts +0 -58
- package/dist/persistence.d.mts.map +0 -1
- package/dist/persistence.mjs +0 -1
- package/dist/resolve.cjs +0 -1
- package/dist/resolve.d.cts +0 -45
- package/dist/resolve.d.cts.map +0 -1
- package/dist/resolve.d.mts +0 -45
- package/dist/resolve.d.mts.map +0 -1
- package/dist/resolve.mjs +0 -2
- package/dist/resolve.mjs.map +0 -1
package/dist/type-checks.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExtractedSchemaEnvelope, JsonSchema, JsonSchemaAllOf, JsonSchemaAny, JsonSchemaAnyOf, JsonSchemaArray, JsonSchemaBigint, JsonSchemaBoolean, JsonSchemaDate, JsonSchemaDecimal, JsonSchemaEnum, JsonSchemaInteger, JsonSchemaKeywords, JsonSchemaLiteral, JsonSchemaMap, JsonSchemaNativeEnum, JsonSchemaNever, JsonSchemaNull, JsonSchemaNullable, JsonSchemaNumber, JsonSchemaObject, JsonSchemaPrimitiveType, JsonSchemaPrimitiveUnion, JsonSchemaRecord, JsonSchemaRef, JsonSchemaSet, JsonSchemaString, JsonSchemaTuple, JsonSchemaType, JsonSchemaUndefined, JsonSchemaUnion, JsonSchemaUnknown, SchemaEnvelope, SchemaEnvelopeOf } from "./types.mjs";
|
|
2
2
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
|
-
import { FileReference } from "@stryke/types/configuration";
|
|
4
3
|
import { InputObject, Schema } from "untyped";
|
|
5
4
|
import { BaseSchema } from "valibot";
|
|
5
|
+
import { FileReference } from "@stryke/types/configuration";
|
|
6
6
|
|
|
7
7
|
//#region src/type-checks.d.ts
|
|
8
8
|
/**
|
|
@@ -304,21 +304,28 @@ declare function isUntypedInputStrict(input: unknown): input is InputObject;
|
|
|
304
304
|
* @param input - The value to check.
|
|
305
305
|
* @returns True if the input is a Powerlines Schema object, false otherwise.
|
|
306
306
|
*/
|
|
307
|
-
declare function isSchema(input: unknown): input is
|
|
307
|
+
declare function isSchema(input: unknown): input is SchemaEnvelope;
|
|
308
|
+
/**
|
|
309
|
+
* Type guard for Powerlines Schema objects with a specific type specification.
|
|
310
|
+
*
|
|
311
|
+
* @param input - The value to check.
|
|
312
|
+
* @returns True if the input is a Powerlines Schema object with the specified type specification, false otherwise.
|
|
313
|
+
*/
|
|
314
|
+
declare function isSchemaOf<TSpec>(input: unknown): input is SchemaEnvelopeOf<TSpec>;
|
|
308
315
|
/**
|
|
309
316
|
* Type guard for extracted schema objects that include source information.
|
|
310
317
|
*
|
|
311
318
|
* @param input - The value to check.
|
|
312
319
|
* @returns True if the input is a SchemaWithSource object, false otherwise.
|
|
313
320
|
*/
|
|
314
|
-
declare function isSchemaWithSource(input: unknown): input is
|
|
321
|
+
declare function isSchemaWithSource(input: unknown): input is ExtractedSchemaEnvelope;
|
|
315
322
|
/**
|
|
316
323
|
* Type guard for Powerlines Schemas that are in Object form.
|
|
317
324
|
*
|
|
318
325
|
* @param input - The value to check.
|
|
319
326
|
* @returns True if the input is a Powerlines Schema object in Object form, false otherwise.
|
|
320
327
|
*/
|
|
321
|
-
declare function isSchemaObject(input: unknown): input is
|
|
328
|
+
declare function isSchemaObject(input: unknown): input is SchemaEnvelope<JsonSchemaObject>;
|
|
322
329
|
//#endregion
|
|
323
|
-
export { isFileReference, isJsonSchema, isJsonSchemaAllOf, isJsonSchemaAny, isJsonSchemaAnyOf, isJsonSchemaArray, isJsonSchemaBigint, isJsonSchemaBoolean, isJsonSchemaDate, isJsonSchemaDecimal, isJsonSchemaEnum, isJsonSchemaInteger, isJsonSchemaKeywords, isJsonSchemaLiteral, isJsonSchemaMap, isJsonSchemaNativeEnum, isJsonSchemaNever, isJsonSchemaNull, isJsonSchemaNullable, isJsonSchemaNumber, isJsonSchemaObject, isJsonSchemaPrimitiveType, isJsonSchemaPrimitiveUnion, isJsonSchemaRecord, isJsonSchemaRef, isJsonSchemaSet, isJsonSchemaString, isJsonSchemaTuple, isJsonSchemaType, isJsonSchemaUndefined, isJsonSchemaUnion, isJsonSchemaUnknown, isNullOnlyJsonSchema, isSchema, isSchemaObject, isSchemaWithSource, isStandardSchema, isUntypedInput, isUntypedInputStrict, isUntypedSchema, isUntypedSchemaStrict, isValibotSchema };
|
|
330
|
+
export { isFileReference, isJsonSchema, isJsonSchemaAllOf, isJsonSchemaAny, isJsonSchemaAnyOf, isJsonSchemaArray, isJsonSchemaBigint, isJsonSchemaBoolean, isJsonSchemaDate, isJsonSchemaDecimal, isJsonSchemaEnum, isJsonSchemaInteger, isJsonSchemaKeywords, isJsonSchemaLiteral, isJsonSchemaMap, isJsonSchemaNativeEnum, isJsonSchemaNever, isJsonSchemaNull, isJsonSchemaNullable, isJsonSchemaNumber, isJsonSchemaObject, isJsonSchemaPrimitiveType, isJsonSchemaPrimitiveUnion, isJsonSchemaRecord, isJsonSchemaRef, isJsonSchemaSet, isJsonSchemaString, isJsonSchemaTuple, isJsonSchemaType, isJsonSchemaUndefined, isJsonSchemaUnion, isJsonSchemaUnknown, isNullOnlyJsonSchema, isSchema, isSchemaObject, isSchemaOf, isSchemaWithSource, isStandardSchema, isUntypedInput, isUntypedInputStrict, isUntypedSchema, isUntypedSchemaStrict, isValibotSchema };
|
|
324
331
|
//# sourceMappingURL=type-checks.d.mts.map
|
package/dist/type-checks.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{JSON_SCHEMA_PRIMITIVE_TYPES as e,JSON_SCHEMA_TYPES as t}from"./constants.mjs";import{isBoolean as n,isFunction as r,isSetObject as i,isSetString as a,isString as o}from"@stryke/type-checks";function s(e){return!o(e)&&e.file!==void 0}const c=e=>typeof e==`number`&&Number.isFinite(e),ee=e=>i(e)||n(e),l=e=>i(e)&&Object.values(e).every(e=>ee(e)),te=e=>i(e)&&Object.values(e).every(e=>n(e)),u=e=>Array.isArray(e)&&e.every(e=>a(e)),ne=e=>i(e)&&Object.values(e).every(e=>u(e)),d=new Set(e),f=new Set(t);function re(e){return a(e)&&d.has(e)}function ie(e){return a(e)&&f.has(e)}const ae=new Set([`date`,`time`,`date-time`,`iso-time`,`iso-date-time`,`unix-time`]),p=e=>typeof e==`bigint`,oe=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`function`,`object`,`any`,`array`]),se=e=>a(e)&&oe.has(e),m=e=>{if(!i(e))return!1;let t=e;return!(t.type!==void 0&&!(a(t.type)&&se(t.type)||Array.isArray(t.type)&&t.type.every(e=>se(e)))||t.tsType!==void 0&&!a(t.tsType)||t.markdownType!==void 0&&!a(t.markdownType)||t.items!==void 0&&!(m(t.items)||Array.isArray(t.items)&&t.items.every(e=>m(e))))},ce=e=>{if(!m(e))return!1;let t=e;return t.name!==void 0&&!a(t.name)?!1:t.optional===void 0||typeof t.optional==`boolean`},le=e=>i(e)&&Object.values(e).every(e=>Z(e)),h=(e,t)=>Array.isArray(e)&&e.every(e=>t(e)),ue=(e,t,n)=>Array.isArray(e)&&e.length===2&&t(e[0])&&n(e[1]),g=(e,t=!1)=>e===void 0||o(e)&&(t||e.length>0),_=e=>e===void 0||n(e),v=e=>e===void 0||c(e),y=e=>e===void 0||p(e),b=e=>e===void 0||X(e),x=e=>e===void 0||h(e,X),de=e=>e===void 0||Array.isArray(e)&&e.every(e=>a(e)&&d.has(e)),fe=e=>e===void 0||Array.isArray(e)&&e.every(e=>a(e)&&f.has(e)),S=e=>!(!g(e.$id)||!g(e.$schema)||e.$vocabulary!==void 0&&!te(e.$vocabulary)||!g(e.$comment,!0)||!g(e.$anchor)||e.$defs!==void 0&&!l(e.$defs)||!g(e.$dynamicRef)||!g(e.$dynamicAnchor)||!g(e.name)||!g(e.title,!0)||!g(e.description,!0)||!g(e.docs,!0)||e.examples!==void 0&&!Array.isArray(e.examples)||e.alias!==void 0&&!u(e.alias)||e.tags!==void 0&&!u(e.tags)||!_(e.deprecated)||!_(e.hidden)||!_(e.ignore)||!_(e.internal)||!_(e.runtime)||!_(e.readOnly)||!_(e.writeOnly)||!x(e.allOf)||!x(e.anyOf)||!x(e.oneOf)||!b(e.not)||!b(e.if)||!b(e.then)||!b(e.else));function pe(e){return i(e)?S(e):!1}function C(e){if(!i(e))return!1;let t=e;return S(t)&&g(t.$ref)}function w(e){if(!i(e))return!1;let t=e;return!S(t)||t.type!==`array`?!1:x(t.prefixItems)&&b(t.items)&&b(t.contains)&&v(t.minItems)&&v(t.maxItems)&&_(t.uniqueItems)&&v(t.minContains)&&v(t.maxContains)&&(t.unevaluatedItems===void 0||n(t.unevaluatedItems)||X(t.unevaluatedItems))}function T(e){if(!i(e))return!1;let t=e;return!S(t)||t.type!==`integer`||t.format!==`int64`?!1:y(t.minimum)&&y(t.exclusiveMinimum)&&y(t.maximum)&&y(t.exclusiveMaximum)&&y(t.multipleOf)&&y(t.default)&&(t.enum===void 0||h(t.enum,p))}function E(e){if(!i(e))return!1;let t=e;return S(t)&&t.type===`boolean`&&_(t.default)}function D(e){if(!i(e))return!1;let t=e;return S(t)?t.anyOf===void 0?t.type!==`integer`&&t.type!==`string`||!a(t.format)||!ae.has(t.format)?!1:v(t.minimum)&&v(t.maximum)&&(t.default===void 0||a(t.default)||c(t.default)):h(t.anyOf,D):!1}function O(e){if(!i(e))return!1;let t=e;if(!S(t)||!a(t.type)||!d.has(t.type)||!Array.isArray(t.enum))return!1;let r=t.type,o=t.enum,s=t.default;return r===`string`?o.every(e=>a(e))&&(s===void 0||a(s)):r===`number`||r===`integer`?o.every(e=>c(e))&&(s===void 0||c(s)):r===`boolean`?o.every(e=>n(e))&&(s===void 0||n(s)):r===`null`&&o.every(e=>e===null)&&s==null}function k(e){if(!i(e))return!1;let t=e;return!S(t)||!h(t.allOf,X)?!1:t.unevaluatedProperties===void 0||n(t.unevaluatedProperties)||X(t.unevaluatedProperties)}function A(e){if(!i(e))return!1;let t=e;return!S(t)||!(`const`in t)?!1:t.type===void 0||a(t.type)&&ie(t.type)||fe(t.type)}function j(e){if(!i(e))return!1;let t=e;if(!S(t)||t.type!==`array`||t.maxItems!==125||!i(t.items))return!1;let n=t.items;return n.type===`array`&&ue(n.prefixItems,X,X)&&(n.items===void 0||n.items===!1)&&n.minItems===2&&n.maxItems===2}function M(e){if(!i(e))return!1;let t=e,n=t.type===`string`||t.type===`number`||Array.isArray(t.type)&&t.type.length===2&&t.type[0]===`string`&&t.type[1]===`number`;return S(t)&&n&&Array.isArray(t.enum)&&t.enum.every(e=>a(e)||c(e))}function N(e){if(!i(e))return!1;let t=e;return S(t)&&C(t.not)}function P(e){if(!i(e))return!1;let t=e;return S(t)&&t.type===`null`&&(t.const===void 0||t.const===null)&&(t.enum===void 0||Array.isArray(t.enum)&&t.enum.every(e=>e===null))&&(t.default===void 0||t.default===null)}function F(e){if(!i(e))return!1;let t=e;if(!S(t))return!1;let n=t.anyOf!==void 0&&Array.isArray(t.anyOf)&&t.anyOf.length===2&&X(t.anyOf[0])&&P(t.anyOf[1]),r=Array.isArray(t.type)&&t.type.length===2&&(t.type[0]===`null`&&a(t.type[1])&&t.type[1]!==`null`&&f.has(t.type[1])||t.type[1]===`null`&&a(t.type[0])&&t.type[0]!==`null`&&f.has(t.type[0]));return n||r}function I(e){if(!i(e))return!1;let t=e;return!S(t)||t.type!==`number`&&t.type!==`integer`?!1:g(t.format)&&v(t.minimum)&&v(t.exclusiveMinimum)&&v(t.maximum)&&v(t.exclusiveMaximum)&&v(t.multipleOf)&&v(t.default)&&(t.enum===void 0||h(t.enum,c))}function L(e){return I(e)&&e.type===`integer`}function R(e){return I(e)&&e.type===`number`}function z(e){if(!i(e))return!1;let t=e;return S(t)&&t.type===`object`&&(t.properties===void 0||l(t.properties))&&(t.patternProperties===void 0||l(t.patternProperties))&&(t.additionalProperties===void 0||n(t.additionalProperties)||X(t.additionalProperties))&&(t.required===void 0||u(t.required))&&(t.unevaluatedProperties===void 0||n(t.unevaluatedProperties)||X(t.unevaluatedProperties))&&(t.dependencies===void 0||i(t.dependencies)&&Object.values(t.dependencies).every(e=>u(e)||X(e)))&&(t.dependentRequired===void 0||ne(t.dependentRequired))&&(t.dependentSchemas===void 0||l(t.dependentSchemas))&&v(t.minProperties)&&v(t.maxProperties)&&(t.primaryKey===void 0||u(t.primaryKey))&&g(t.databaseSchema)}function B(e){if(!i(e))return!1;let t=e;return S(t)&&t.type===`string`&&v(t.minLength)&&v(t.maxLength)&&g(t.pattern)&&g(t.format)&&g(t.default)&&(t.enum===void 0||h(t.enum,a))&&g(t.contentMediaType)&&g(t.contentEncoding)&&g(t.contentSchema)}function V(e){if(!i(e))return!1;let t=e;return S(t)&&t.type===`array`&&t.uniqueItems===!0&&x(t.prefixItems)&&b(t.items)&&b(t.contains)&&v(t.minItems)&&v(t.maxItems)&&v(t.minContains)&&v(t.maxContains)&&(t.unevaluatedItems===void 0||n(t.unevaluatedItems)||X(t.unevaluatedItems))}function H(e){if(!i(e))return!1;let t=e;return S(t)&&t.type===`object`&&(t.patternProperties===void 0||l(t.patternProperties))&&(t.additionalProperties===void 0||n(t.additionalProperties)||X(t.additionalProperties))&&b(t.propertyNames)}function U(e){if(!i(e))return!1;let t=e;return S(t)&&t.type===`array`&&h(t.prefixItems,X)&&v(t.minItems)&&v(t.maxItems)&&b(t.items)&&b(t.contains)&&_(t.uniqueItems)&&v(t.minContains)&&v(t.maxContains)&&(t.unevaluatedItems===void 0||n(t.unevaluatedItems)||X(t.unevaluatedItems))}function W(e){if(!i(e))return!1;let t=e;return S(t)&&C(t.not)&&(t.default===void 0||t.default===void 0)}function G(e){if(!i(e))return!1;let t=e;return S(t)?a(t.type)&&d.has(t.type)?t.enum===void 0?!0:Array.isArray(t.enum)?t.type===`string`?t.enum.every(e=>a(e))&&(t.default===void 0||a(t.default)):t.type===`number`?t.enum.every(e=>c(e))&&(t.default===void 0||c(t.default)):t.type===`boolean`?t.enum.every(e=>n(e))&&(t.default===void 0||n(t.default)):t.type===`integer`?t.format===`int64`?t.enum.every(e=>p(e))&&(t.default===void 0||p(t.default)):!1:t.type===`null`&&t.enum.every(e=>e===null)&&(t.default===void 0||t.default===null):!1:de(t.type)&&t.type!==void 0:!1}function K(e){if(!i(e))return!1;let t=e;return S(t)&&(G(t)||J(t))}function q(e){return C(e)}function J(e){if(!i(e))return!1;let t=e;return S(t)&&h(t.anyOf,X)}function Y(e){if(!i(e))return!1;let t=e;return S(t)&&a(t.$ref)}function me(e){if(!i(e))return!1;let t=e;if(!i(t[`~standard`]))return!1;let n=t[`~standard`];return n.version===1&&r(n.validate)}function he(e){if(!i(e)||!me(e))return!1;let t=e;return t.kind===`schema`&&a(t.type)&&n(t.async)&&r(t.reference)&&a(t.expects)&&r(t[`~run`])}function X(e){return B(e)||L(e)||R(e)||T(e)||E(e)||D(e)||O(e)||A(e)||M(e)||P(e)||w(e)||z(e)||H(e)||U(e)||K(e)||W(e)||Y(e)||N(e)||j(e)||C(e)||F(e)||k(e)||q(e)||V(e)}function ge(e){return P(e)}function Z(e){if(!i(e))return!1;let t=e;return!(!m(t)||`id`in t&&!a(t.id)||`resolve`in t&&!r(t.resolve)||`properties`in t&&!le(t.properties)||`required`in t&&!u(t.required)||`title`in t&&!a(t.title)||`description`in t&&!a(t.description)||`$schema`in t&&!a(t.$schema)||`tags`in t&&!u(t.tags)||`args`in t&&(!Array.isArray(t.args)||!t.args.every(e=>ce(e)))||`returns`in t&&!m(t.returns))}function _e(e){return Z(e)&&!X(e)}function Q(e){if(!i(e))return!1;let t=e;return!(`$schema`in t&&!Z(t.$schema)||`$resolve`in t&&!r(t.$resolve))}function ve(e){if(!Q(e)||X(e))return!1;let t=e;return!(`$schema`in t&&t.$schema!==void 0&&!_e(t.$schema))}function $(e){return i(e)&&`schema`in e&&X(e.schema)&&`variant`in e&&a(e.variant)&&`hash`in e&&a(e.hash)}function ye(e){return $(e)&&`source`in e&&i(e.source)&&`schema`in e.source&&`variant`in e.source&&a(e.source.variant)}function be(e){return $(e)&&z(e.schema)}export{s as isFileReference,X as isJsonSchema,k as isJsonSchemaAllOf,C as isJsonSchemaAny,J as isJsonSchemaAnyOf,w as isJsonSchemaArray,T as isJsonSchemaBigint,E as isJsonSchemaBoolean,D as isJsonSchemaDate,R as isJsonSchemaDecimal,O as isJsonSchemaEnum,L as isJsonSchemaInteger,pe as isJsonSchemaKeywords,A as isJsonSchemaLiteral,j as isJsonSchemaMap,M as isJsonSchemaNativeEnum,N as isJsonSchemaNever,P as isJsonSchemaNull,F as isJsonSchemaNullable,I as isJsonSchemaNumber,z as isJsonSchemaObject,re as isJsonSchemaPrimitiveType,G as isJsonSchemaPrimitiveUnion,H as isJsonSchemaRecord,Y as isJsonSchemaRef,V as isJsonSchemaSet,B as isJsonSchemaString,U as isJsonSchemaTuple,ie as isJsonSchemaType,W as isJsonSchemaUndefined,K as isJsonSchemaUnion,q as isJsonSchemaUnknown,ge as isNullOnlyJsonSchema,$ as isSchema,be as isSchemaObject,ye as isSchemaWithSource,me as isStandardSchema,Q as isUntypedInput,ve as isUntypedInputStrict,Z as isUntypedSchema,_e as isUntypedSchemaStrict,he as isValibotSchema};
|
|
1
|
+
import{JSON_SCHEMA_PRIMITIVE_TYPES as e,JSON_SCHEMA_TYPES as t}from"./constants.mjs";import{isBoolean as n,isFunction as r,isSetObject as i,isSetString as a,isString as o}from"@stryke/type-checks";function s(e){return!o(e)&&e.file!==void 0}const c=e=>typeof e==`number`&&Number.isFinite(e),ee=e=>i(e)||n(e),l=e=>i(e)&&Object.values(e).every(e=>ee(e)),te=e=>i(e)&&Object.values(e).every(e=>n(e)),u=e=>Array.isArray(e)&&e.every(e=>a(e)),ne=e=>i(e)&&Object.values(e).every(e=>u(e)),d=new Set(e),f=new Set(t);function re(e){return a(e)&&d.has(e)}function ie(e){return a(e)&&f.has(e)}const ae=new Set([`date`,`time`,`date-time`,`iso-time`,`iso-date-time`,`unix-time`]),p=e=>typeof e==`bigint`,oe=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`function`,`object`,`any`,`array`]),se=e=>a(e)&&oe.has(e),m=e=>{if(!i(e))return!1;let t=e;return!(t.type!==void 0&&!(a(t.type)&&se(t.type)||Array.isArray(t.type)&&t.type.every(e=>se(e)))||t.tsType!==void 0&&!a(t.tsType)||t.markdownType!==void 0&&!a(t.markdownType)||t.items!==void 0&&!(m(t.items)||Array.isArray(t.items)&&t.items.every(e=>m(e))))},ce=e=>{if(!m(e))return!1;let t=e;return t.name!==void 0&&!a(t.name)?!1:t.optional===void 0||typeof t.optional==`boolean`},le=e=>i(e)&&Object.values(e).every(e=>Z(e)),h=(e,t)=>Array.isArray(e)&&e.every(e=>t(e)),ue=(e,t,n)=>Array.isArray(e)&&e.length===2&&t(e[0])&&n(e[1]),g=(e,t=!1)=>e===void 0||o(e)&&(t||e.length>0),_=e=>e===void 0||n(e),v=e=>e===void 0||c(e),y=e=>e===void 0||p(e),b=e=>e===void 0||X(e),x=e=>e===void 0||h(e,X),de=e=>e===void 0||Array.isArray(e)&&e.every(e=>a(e)&&d.has(e)),fe=e=>e===void 0||Array.isArray(e)&&e.every(e=>a(e)&&f.has(e)),S=e=>!(!g(e.$id)||!g(e.$schema)||e.$vocabulary!==void 0&&!te(e.$vocabulary)||!g(e.$comment,!0)||!g(e.$anchor)||e.$defs!==void 0&&!l(e.$defs)||!g(e.$dynamicRef)||!g(e.$dynamicAnchor)||!g(e.name)||!g(e.title,!0)||!g(e.description,!0)||!g(e.docs,!0)||e.examples!==void 0&&!Array.isArray(e.examples)||e.alias!==void 0&&!u(e.alias)||e.tags!==void 0&&!u(e.tags)||!_(e.deprecated)||!_(e.hidden)||!_(e.ignore)||!_(e.internal)||!_(e.runtime)||!_(e.readOnly)||!_(e.writeOnly)||!x(e.allOf)||!x(e.anyOf)||!x(e.oneOf)||!b(e.not)||!b(e.if)||!b(e.then)||!b(e.else));function pe(e){return i(e)?S(e):!1}function C(e){if(!i(e))return!1;let t=e;return S(t)&&g(t.$ref)}function w(e){if(!i(e))return!1;let t=e;return!S(t)||t.type!==`array`?!1:x(t.prefixItems)&&b(t.items)&&b(t.contains)&&v(t.minItems)&&v(t.maxItems)&&_(t.uniqueItems)&&v(t.minContains)&&v(t.maxContains)&&(t.unevaluatedItems===void 0||n(t.unevaluatedItems)||X(t.unevaluatedItems))}function T(e){if(!i(e))return!1;let t=e;return!S(t)||t.type!==`integer`||t.format!==`int64`?!1:y(t.minimum)&&y(t.exclusiveMinimum)&&y(t.maximum)&&y(t.exclusiveMaximum)&&y(t.multipleOf)&&y(t.default)&&(t.enum===void 0||h(t.enum,p))}function E(e){if(!i(e))return!1;let t=e;return S(t)&&t.type===`boolean`&&_(t.default)}function D(e){if(!i(e))return!1;let t=e;return S(t)?t.anyOf===void 0?t.type!==`integer`&&t.type!==`string`||!a(t.format)||!ae.has(t.format)?!1:v(t.minimum)&&v(t.maximum)&&(t.default===void 0||a(t.default)||c(t.default)):h(t.anyOf,D):!1}function O(e){if(!i(e))return!1;let t=e;if(!S(t)||!a(t.type)||!d.has(t.type)||!Array.isArray(t.enum))return!1;let r=t.type,o=t.enum,s=t.default;return r===`string`?o.every(e=>a(e))&&(s===void 0||a(s)):r===`number`||r===`integer`?o.every(e=>c(e))&&(s===void 0||c(s)):r===`boolean`?o.every(e=>n(e))&&(s===void 0||n(s)):r===`null`&&o.every(e=>e===null)&&s==null}function k(e){if(!i(e))return!1;let t=e;return!S(t)||!h(t.allOf,X)?!1:t.unevaluatedProperties===void 0||n(t.unevaluatedProperties)||X(t.unevaluatedProperties)}function A(e){if(!i(e))return!1;let t=e;return!S(t)||!(`const`in t)?!1:t.type===void 0||a(t.type)&&ie(t.type)||fe(t.type)}function j(e){if(!i(e))return!1;let t=e;if(!S(t)||t.type!==`array`||t.maxItems!==125||!i(t.items))return!1;let n=t.items;return n.type===`array`&&ue(n.prefixItems,X,X)&&(n.items===void 0||n.items===!1)&&n.minItems===2&&n.maxItems===2}function M(e){if(!i(e))return!1;let t=e,n=t.type===`string`||t.type===`number`||Array.isArray(t.type)&&t.type.length===2&&t.type[0]===`string`&&t.type[1]===`number`;return S(t)&&n&&Array.isArray(t.enum)&&t.enum.every(e=>a(e)||c(e))}function N(e){if(!i(e))return!1;let t=e;return S(t)&&C(t.not)}function P(e){if(!i(e))return!1;let t=e;return S(t)&&t.type===`null`&&(t.const===void 0||t.const===null)&&(t.enum===void 0||Array.isArray(t.enum)&&t.enum.every(e=>e===null))&&(t.default===void 0||t.default===null)}function F(e){if(!i(e))return!1;let t=e;if(!S(t))return!1;let n=t.anyOf!==void 0&&Array.isArray(t.anyOf)&&t.anyOf.length===2&&X(t.anyOf[0])&&P(t.anyOf[1]),r=Array.isArray(t.type)&&t.type.length===2&&(t.type[0]===`null`&&a(t.type[1])&&t.type[1]!==`null`&&f.has(t.type[1])||t.type[1]===`null`&&a(t.type[0])&&t.type[0]!==`null`&&f.has(t.type[0]));return n||r}function I(e){if(!i(e))return!1;let t=e;return!S(t)||t.type!==`number`&&t.type!==`integer`?!1:g(t.format)&&v(t.minimum)&&v(t.exclusiveMinimum)&&v(t.maximum)&&v(t.exclusiveMaximum)&&v(t.multipleOf)&&v(t.default)&&(t.enum===void 0||h(t.enum,c))}function L(e){return I(e)&&e.type===`integer`}function R(e){return I(e)&&e.type===`number`}function z(e){if(!i(e))return!1;let t=e;return S(t)&&t.type===`object`&&(t.properties===void 0||l(t.properties))&&(t.patternProperties===void 0||l(t.patternProperties))&&(t.additionalProperties===void 0||n(t.additionalProperties)||X(t.additionalProperties))&&(t.required===void 0||u(t.required))&&(t.unevaluatedProperties===void 0||n(t.unevaluatedProperties)||X(t.unevaluatedProperties))&&(t.dependencies===void 0||i(t.dependencies)&&Object.values(t.dependencies).every(e=>u(e)||X(e)))&&(t.dependentRequired===void 0||ne(t.dependentRequired))&&(t.dependentSchemas===void 0||l(t.dependentSchemas))&&v(t.minProperties)&&v(t.maxProperties)&&(t.primaryKey===void 0||u(t.primaryKey))&&g(t.databaseSchema)}function B(e){if(!i(e))return!1;let t=e;return S(t)&&t.type===`string`&&v(t.minLength)&&v(t.maxLength)&&g(t.pattern)&&g(t.format)&&g(t.default)&&(t.enum===void 0||h(t.enum,a))&&g(t.contentMediaType)&&g(t.contentEncoding)&&g(t.contentSchema)}function V(e){if(!i(e))return!1;let t=e;return S(t)&&t.type===`array`&&t.uniqueItems===!0&&x(t.prefixItems)&&b(t.items)&&b(t.contains)&&v(t.minItems)&&v(t.maxItems)&&v(t.minContains)&&v(t.maxContains)&&(t.unevaluatedItems===void 0||n(t.unevaluatedItems)||X(t.unevaluatedItems))}function H(e){if(!i(e))return!1;let t=e;return S(t)&&t.type===`object`&&(t.patternProperties===void 0||l(t.patternProperties))&&(t.additionalProperties===void 0||n(t.additionalProperties)||X(t.additionalProperties))&&b(t.propertyNames)}function U(e){if(!i(e))return!1;let t=e;return S(t)&&t.type===`array`&&h(t.prefixItems,X)&&v(t.minItems)&&v(t.maxItems)&&b(t.items)&&b(t.contains)&&_(t.uniqueItems)&&v(t.minContains)&&v(t.maxContains)&&(t.unevaluatedItems===void 0||n(t.unevaluatedItems)||X(t.unevaluatedItems))}function W(e){if(!i(e))return!1;let t=e;return S(t)&&C(t.not)&&(t.default===void 0||t.default===void 0)}function G(e){if(!i(e))return!1;let t=e;return S(t)?a(t.type)&&d.has(t.type)?t.enum===void 0?!0:Array.isArray(t.enum)?t.type===`string`?t.enum.every(e=>a(e))&&(t.default===void 0||a(t.default)):t.type===`number`?t.enum.every(e=>c(e))&&(t.default===void 0||c(t.default)):t.type===`boolean`?t.enum.every(e=>n(e))&&(t.default===void 0||n(t.default)):t.type===`integer`?t.format===`int64`?t.enum.every(e=>p(e))&&(t.default===void 0||p(t.default)):!1:t.type===`null`&&t.enum.every(e=>e===null)&&(t.default===void 0||t.default===null):!1:de(t.type)&&t.type!==void 0:!1}function K(e){if(!i(e))return!1;let t=e;return S(t)&&(G(t)||J(t))}function q(e){return C(e)}function J(e){if(!i(e))return!1;let t=e;return S(t)&&h(t.anyOf,X)}function Y(e){if(!i(e))return!1;let t=e;return S(t)&&a(t.$ref)}function me(e){if(!i(e))return!1;let t=e;if(!i(t[`~standard`]))return!1;let n=t[`~standard`];return n.version===1&&r(n.validate)}function he(e){if(!i(e)||!me(e))return!1;let t=e;return t.kind===`schema`&&a(t.type)&&n(t.async)&&r(t.reference)&&a(t.expects)&&r(t[`~run`])}function X(e){return B(e)||L(e)||R(e)||T(e)||E(e)||D(e)||O(e)||A(e)||M(e)||P(e)||w(e)||z(e)||H(e)||U(e)||K(e)||W(e)||Y(e)||N(e)||j(e)||C(e)||F(e)||k(e)||q(e)||V(e)}function ge(e){return P(e)}function Z(e){if(!i(e))return!1;let t=e;return!(!m(t)||`id`in t&&!a(t.id)||`resolve`in t&&!r(t.resolve)||`properties`in t&&!le(t.properties)||`required`in t&&!u(t.required)||`title`in t&&!a(t.title)||`description`in t&&!a(t.description)||`$schema`in t&&!a(t.$schema)||`tags`in t&&!u(t.tags)||`args`in t&&(!Array.isArray(t.args)||!t.args.every(e=>ce(e)))||`returns`in t&&!m(t.returns))}function _e(e){return Z(e)&&!X(e)}function Q(e){if(!i(e))return!1;let t=e;return!(`$schema`in t&&!Z(t.$schema)||`$resolve`in t&&!r(t.$resolve))}function ve(e){if(!Q(e)||X(e))return!1;let t=e;return!(`$schema`in t&&t.$schema!==void 0&&!_e(t.$schema))}function $(e){return i(e)&&`schema`in e&&X(e.schema)&&`variant`in e&&a(e.variant)&&`hash`in e&&a(e.hash)}function ye(e){return $(e)}function be(e){return $(e)&&`source`in e&&i(e.source)&&`schema`in e.source&&`variant`in e.source&&a(e.source.variant)}function xe(e){return $(e)&&z(e.schema)}export{s as isFileReference,X as isJsonSchema,k as isJsonSchemaAllOf,C as isJsonSchemaAny,J as isJsonSchemaAnyOf,w as isJsonSchemaArray,T as isJsonSchemaBigint,E as isJsonSchemaBoolean,D as isJsonSchemaDate,R as isJsonSchemaDecimal,O as isJsonSchemaEnum,L as isJsonSchemaInteger,pe as isJsonSchemaKeywords,A as isJsonSchemaLiteral,j as isJsonSchemaMap,M as isJsonSchemaNativeEnum,N as isJsonSchemaNever,P as isJsonSchemaNull,F as isJsonSchemaNullable,I as isJsonSchemaNumber,z as isJsonSchemaObject,re as isJsonSchemaPrimitiveType,G as isJsonSchemaPrimitiveUnion,H as isJsonSchemaRecord,Y as isJsonSchemaRef,V as isJsonSchemaSet,B as isJsonSchemaString,U as isJsonSchemaTuple,ie as isJsonSchemaType,W as isJsonSchemaUndefined,K as isJsonSchemaUnion,q as isJsonSchemaUnknown,ge as isNullOnlyJsonSchema,$ as isSchema,xe as isSchemaObject,ye as isSchemaOf,be as isSchemaWithSource,me as isStandardSchema,Q as isUntypedInput,ve as isUntypedInputStrict,Z as isUntypedSchema,_e as isUntypedSchemaStrict,he as isValibotSchema};
|
|
2
2
|
//# sourceMappingURL=type-checks.mjs.map
|
package/dist/types.d.cts
CHANGED
|
@@ -1,27 +1,11 @@
|
|
|
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
|
-
import {
|
|
4
|
-
import { InputObject, Schema
|
|
3
|
+
import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
|
|
4
|
+
import { InputObject, Schema } from "untyped";
|
|
5
5
|
import { BaseIssue, BaseSchema } from "valibot";
|
|
6
6
|
import * as z3 from "zod/v3";
|
|
7
7
|
|
|
8
8
|
//#region src/types.d.ts
|
|
9
|
-
/**
|
|
10
|
-
* Alias for the Untyped object-input schema shape.
|
|
11
|
-
*/
|
|
12
|
-
type UntypedInputObject = InputObject;
|
|
13
|
-
/**
|
|
14
|
-
* Alias for the Untyped schema document shape.
|
|
15
|
-
*/
|
|
16
|
-
type UntypedSchema = Schema$1;
|
|
17
|
-
/**
|
|
18
|
-
* A Valibot schema instance.
|
|
19
|
-
*
|
|
20
|
-
* @template TInput - The raw input type accepted by the schema.
|
|
21
|
-
* @template TOutput - The parsed output type produced by the schema.
|
|
22
|
-
* @template TIssue - The issue type emitted for validation errors.
|
|
23
|
-
*/
|
|
24
|
-
type ValibotSchema<TInput = unknown, TOutput = unknown, TIssue extends BaseIssue<unknown> = BaseIssue<unknown>> = BaseSchema<TInput, TOutput, TIssue>;
|
|
25
9
|
/**
|
|
26
10
|
* Primitive JSON Schema `type` keyword values.
|
|
27
11
|
*
|
|
@@ -118,6 +102,10 @@ interface JsonSchemaMetadataKeywords {
|
|
|
118
102
|
* 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.
|
|
119
103
|
*/
|
|
120
104
|
name?: string;
|
|
105
|
+
/**
|
|
106
|
+
* A version for the schema, which can be used by documentation tools or other libraries that support this feature to provide additional context or information about the schema's version. 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.
|
|
107
|
+
*/
|
|
108
|
+
version?: string | number;
|
|
121
109
|
/**
|
|
122
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.
|
|
123
111
|
*/
|
|
@@ -133,7 +121,11 @@ interface JsonSchemaMetadataKeywords {
|
|
|
133
121
|
/**
|
|
134
122
|
* 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.
|
|
135
123
|
*/
|
|
136
|
-
examples?: unknown
|
|
124
|
+
examples?: (unknown | {
|
|
125
|
+
name?: string;
|
|
126
|
+
description?: string;
|
|
127
|
+
value: unknown;
|
|
128
|
+
})[];
|
|
137
129
|
/**
|
|
138
130
|
* An array of strings or an alias reference to indicate that the field is an alias for one or more other fields.
|
|
139
131
|
*/
|
|
@@ -1136,50 +1128,74 @@ type SchemaSourceVariant = "standard-schema" | "json-schema" | "zod3" | "untyped
|
|
|
1136
1128
|
* Accepted schema input variants, including raw type definitions.
|
|
1137
1129
|
*/
|
|
1138
1130
|
type SchemaInputVariant = SchemaSourceVariant | "file-reference";
|
|
1131
|
+
/**
|
|
1132
|
+
* Alias for the Untyped object-input schema shape.
|
|
1133
|
+
*/
|
|
1134
|
+
type UntypedInputObject = InputObject;
|
|
1135
|
+
/**
|
|
1136
|
+
* Alias for the Untyped schema document shape.
|
|
1137
|
+
*/
|
|
1138
|
+
type UntypedSchema = Schema;
|
|
1139
|
+
/**
|
|
1140
|
+
* A Valibot schema instance.
|
|
1141
|
+
*
|
|
1142
|
+
* @template TInput - The raw input type accepted by the schema.
|
|
1143
|
+
* @template TOutput - The parsed output type produced by the schema.
|
|
1144
|
+
* @template TIssue - The issue type emitted for validation errors.
|
|
1145
|
+
*/
|
|
1146
|
+
type ValibotSchema<TInput = unknown, TOutput = unknown, TIssue extends BaseIssue<unknown> = BaseIssue<unknown>> = BaseSchema<TInput, TOutput, TIssue>;
|
|
1139
1147
|
/**
|
|
1140
1148
|
* Raw schema source input union before normalization.
|
|
1141
1149
|
*/
|
|
1142
1150
|
type SchemaSourceInput<TSpec = any> = StandardJSONSchemaV1<TSpec> | JsonSchemaOf<TSpec> | z3.ZodType<TSpec, any, any> | UntypedInputObject | UntypedSchema | ValibotSchema<TSpec>;
|
|
1143
1151
|
/**
|
|
1144
1152
|
* Any accepted schema input, including normalized schemas and references.
|
|
1153
|
+
*
|
|
1154
|
+
* @remarks
|
|
1155
|
+
* The `SchemaInput` type can be one of the following variants:
|
|
1156
|
+
* - A file path string (for example: `"./src/types.ts"`).
|
|
1157
|
+
* - A URL string (for example: `"https://example.com/config.json"`).
|
|
1158
|
+
* - A {@link GitHubReference | GitHub repository reference string}, starting with either `"github:"` or `"gh:"`, an optional branch or tag, and optionally including a specific file path within the repository (for example: `"github:main:storm-software/stryke/packages/resolve/src/types.ts"`). It is also valid to provide the branch or tag after the file path (for example: `"github:storm-software/stryke/packages/resolve/src/types.ts@main"`).
|
|
1159
|
+
* - A {@link GitLabReference | GitLab repository reference string}, starting with either `"gitlab:"` or `"gl:"`, an optional branch or tag, and optionally including a specific file path within the repository (for example: `"gitlab:master:storm-software/stryke/packages/resolve/src/types.ts"`). It is also valid to provide the branch or tag after the file path (for example: `"gitlab:storm-software/stryke/packages/resolve/src/types.ts@master"`).
|
|
1160
|
+
* - A TypeScript module name string (for example: `"@stryke/resolve"`), and optionally a specific module export from the package (for example: `"@stryke/resolve/some-module"`).
|
|
1161
|
+
* - A file reference string (this value can include both a path to the TypeScript module and the name of the module export separated by a ":", "#", or ";" character - for example: `"./src/types.ts#ExampleExport"`).
|
|
1162
|
+
* - A {@link FileReference} object, which contains information about a file reference.
|
|
1163
|
+
* - A {@link URL} object, which represents a URL to fetch the file from.
|
|
1164
|
+
* - A {@link SchemaSourceInput} object, which represents a raw schema input in one of the supported formats (Standard Schema, JSON Schema, Zod v3, Untyped, or Valibot).
|
|
1165
|
+
*
|
|
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`.
|
|
1167
|
+
*
|
|
1168
|
+
* @see {@link SchemaSourceInput}
|
|
1169
|
+
* @see {@link SchemaEnvelope}
|
|
1170
|
+
* @see {@link SchemaInputWithMeta}
|
|
1145
1171
|
*/
|
|
1146
|
-
type SchemaInput<TSpec = any> = SchemaSourceInput<TSpec> |
|
|
1147
|
-
|
|
1148
|
-
* Schema input wrapper that attaches optional contextual metadata.
|
|
1149
|
-
*/
|
|
1150
|
-
interface SchemaInputWithMeta<TSpec = any> {
|
|
1151
|
-
/** The underlying schema input payload. */
|
|
1152
|
-
schema: SchemaSourceInput<TSpec> | Schema<JsonSchemaOf<TSpec>> | FileReferenceInput;
|
|
1153
|
-
/** Optional contextual metadata associated with this schema input. */
|
|
1154
|
-
meta?: SchemaMeta<TSpec>;
|
|
1155
|
-
}
|
|
1172
|
+
type SchemaInput<TSpec = any> = LoadInput | SchemaSourceInput<TSpec> | SchemaEnvelope<JsonSchemaOf<TSpec>>;
|
|
1173
|
+
type InferExtractOptions<T extends SchemaInput> = T extends LoadInput ? InferLoadOptions<T> : {};
|
|
1156
1174
|
/**
|
|
1157
|
-
* A schema
|
|
1175
|
+
* A schema envelope that contains the normalized schema and its source variant.
|
|
1158
1176
|
*/
|
|
1159
|
-
interface
|
|
1160
|
-
/**
|
|
1177
|
+
interface SchemaEnvelope<TJsonSchema extends JsonSchema = JsonSchema> {
|
|
1178
|
+
/**
|
|
1179
|
+
* A stable content hash for the normalized schema.
|
|
1180
|
+
*/
|
|
1161
1181
|
hash: string;
|
|
1162
|
-
/**
|
|
1182
|
+
/**
|
|
1183
|
+
* The source variant used to derive the normalized {@link JsonSchema}.
|
|
1184
|
+
*/
|
|
1163
1185
|
variant: SchemaInputVariant;
|
|
1164
|
-
/**
|
|
1186
|
+
/**
|
|
1187
|
+
* The normalized schema definition.
|
|
1188
|
+
*/
|
|
1165
1189
|
schema: TJsonSchema;
|
|
1166
|
-
/** Optional contextual metadata associated with the schema. */
|
|
1167
|
-
meta?: SchemaMeta<SpecOf<TJsonSchema>>;
|
|
1168
1190
|
}
|
|
1169
1191
|
/**
|
|
1170
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.
|
|
1171
1193
|
*
|
|
1172
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`.
|
|
1173
1195
|
*
|
|
1174
|
-
* @see {@link
|
|
1196
|
+
* @see {@link SchemaEnvelope}
|
|
1175
1197
|
*/
|
|
1176
|
-
type
|
|
1177
|
-
interface SchemaMeta<TSpec> {
|
|
1178
|
-
/**
|
|
1179
|
-
* A string description (or a function that returns a string) of the schema.
|
|
1180
|
-
*/
|
|
1181
|
-
description?: string | ((spec: TSpec) => string);
|
|
1182
|
-
}
|
|
1198
|
+
type SchemaEnvelopeOf<TSpec> = SchemaEnvelope<JsonSchemaOf<TSpec>>;
|
|
1183
1199
|
/**
|
|
1184
1200
|
* Base metadata captured for schema source inputs.
|
|
1185
1201
|
*/
|
|
@@ -1243,12 +1259,12 @@ type SchemaSource<TSpec = any> = JsonSchemaSchemaSource<TSpec> | StandardSchemaS
|
|
|
1243
1259
|
/**
|
|
1244
1260
|
* A normalized schema plus metadata about the source that produced it.
|
|
1245
1261
|
*/
|
|
1246
|
-
interface
|
|
1262
|
+
interface ExtractedSchemaEnvelope<TSpec = any> extends SchemaEnvelopeOf<TSpec> {
|
|
1247
1263
|
/**
|
|
1248
1264
|
* The schema source that produced this normalized schema.
|
|
1249
1265
|
*/
|
|
1250
1266
|
source: SchemaSource<TSpec>;
|
|
1251
1267
|
}
|
|
1252
1268
|
//#endregion
|
|
1253
|
-
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 };
|
|
1254
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":";;;;;;;;;;AA+BA;KAAY,kBAAA,GAAqB,WAAW;;;AAAA;KAKhC,aAAA,GAAgB,QAAiB;;;;AAAA;AAS7C;;;KAAY,aAAA,qDAGK,SAAA,YAAqB,SAAA,aAClC,UAAA,CAAW,MAAA,EAAQ,OAAA,EAAS,MAAA;;;;;;KAOpB,uBAAA,WACF,2BAA2B;;;;;;KAOzB,cAAA,WAAyB,iBAAiB;;;;KAK1C,uBAAA;;AApB0B;AAOtC;KA0BY,uBAAA;;;AAzByB;KA8BzB,sBAAA,GACR,uBAAA,GACA,uBAAuB;;;;KAKf,sBAAA;AAzBZ;;;;AAAmC;AAAnC,UAsDiB,0BAAA;EAzCkB;;;AAAA;AAKnC;;EA2CE,GAAA;EA1CE;AACuB;AAK3B;;;;EA4CE,OAAA;EAfe;;;;;;EAuBf,WAAA,GAAc,MAAA;EAyBA;;;;;;EAjBd,QAAA;EAiBA;;;;;EAVA,OA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B,KAAA;;;;UAKP,uBAAA,sBAEP,gBAAA,CAAiB,KAAA;EA9Te;;;EAkUxC,MAAA,EAAQ,YAAA,CAAa,KAAA;AAAA"}
|
package/dist/types.d.mts
CHANGED
|
@@ -1,27 +1,11 @@
|
|
|
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
|
-
import {
|
|
4
|
-
import { InputObject, Schema
|
|
3
|
+
import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
|
|
4
|
+
import { InputObject, Schema } from "untyped";
|
|
5
5
|
import { BaseIssue, BaseSchema } from "valibot";
|
|
6
6
|
import * as z3 from "zod/v3";
|
|
7
7
|
|
|
8
8
|
//#region src/types.d.ts
|
|
9
|
-
/**
|
|
10
|
-
* Alias for the Untyped object-input schema shape.
|
|
11
|
-
*/
|
|
12
|
-
type UntypedInputObject = InputObject;
|
|
13
|
-
/**
|
|
14
|
-
* Alias for the Untyped schema document shape.
|
|
15
|
-
*/
|
|
16
|
-
type UntypedSchema = Schema$1;
|
|
17
|
-
/**
|
|
18
|
-
* A Valibot schema instance.
|
|
19
|
-
*
|
|
20
|
-
* @template TInput - The raw input type accepted by the schema.
|
|
21
|
-
* @template TOutput - The parsed output type produced by the schema.
|
|
22
|
-
* @template TIssue - The issue type emitted for validation errors.
|
|
23
|
-
*/
|
|
24
|
-
type ValibotSchema<TInput = unknown, TOutput = unknown, TIssue extends BaseIssue<unknown> = BaseIssue<unknown>> = BaseSchema<TInput, TOutput, TIssue>;
|
|
25
9
|
/**
|
|
26
10
|
* Primitive JSON Schema `type` keyword values.
|
|
27
11
|
*
|
|
@@ -118,6 +102,10 @@ interface JsonSchemaMetadataKeywords {
|
|
|
118
102
|
* 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.
|
|
119
103
|
*/
|
|
120
104
|
name?: string;
|
|
105
|
+
/**
|
|
106
|
+
* A version for the schema, which can be used by documentation tools or other libraries that support this feature to provide additional context or information about the schema's version. 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.
|
|
107
|
+
*/
|
|
108
|
+
version?: string | number;
|
|
121
109
|
/**
|
|
122
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.
|
|
123
111
|
*/
|
|
@@ -133,7 +121,11 @@ interface JsonSchemaMetadataKeywords {
|
|
|
133
121
|
/**
|
|
134
122
|
* 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.
|
|
135
123
|
*/
|
|
136
|
-
examples?: unknown
|
|
124
|
+
examples?: (unknown | {
|
|
125
|
+
name?: string;
|
|
126
|
+
description?: string;
|
|
127
|
+
value: unknown;
|
|
128
|
+
})[];
|
|
137
129
|
/**
|
|
138
130
|
* An array of strings or an alias reference to indicate that the field is an alias for one or more other fields.
|
|
139
131
|
*/
|
|
@@ -1136,50 +1128,74 @@ type SchemaSourceVariant = "standard-schema" | "json-schema" | "zod3" | "untyped
|
|
|
1136
1128
|
* Accepted schema input variants, including raw type definitions.
|
|
1137
1129
|
*/
|
|
1138
1130
|
type SchemaInputVariant = SchemaSourceVariant | "file-reference";
|
|
1131
|
+
/**
|
|
1132
|
+
* Alias for the Untyped object-input schema shape.
|
|
1133
|
+
*/
|
|
1134
|
+
type UntypedInputObject = InputObject;
|
|
1135
|
+
/**
|
|
1136
|
+
* Alias for the Untyped schema document shape.
|
|
1137
|
+
*/
|
|
1138
|
+
type UntypedSchema = Schema;
|
|
1139
|
+
/**
|
|
1140
|
+
* A Valibot schema instance.
|
|
1141
|
+
*
|
|
1142
|
+
* @template TInput - The raw input type accepted by the schema.
|
|
1143
|
+
* @template TOutput - The parsed output type produced by the schema.
|
|
1144
|
+
* @template TIssue - The issue type emitted for validation errors.
|
|
1145
|
+
*/
|
|
1146
|
+
type ValibotSchema<TInput = unknown, TOutput = unknown, TIssue extends BaseIssue<unknown> = BaseIssue<unknown>> = BaseSchema<TInput, TOutput, TIssue>;
|
|
1139
1147
|
/**
|
|
1140
1148
|
* Raw schema source input union before normalization.
|
|
1141
1149
|
*/
|
|
1142
1150
|
type SchemaSourceInput<TSpec = any> = StandardJSONSchemaV1<TSpec> | JsonSchemaOf<TSpec> | z3.ZodType<TSpec, any, any> | UntypedInputObject | UntypedSchema | ValibotSchema<TSpec>;
|
|
1143
1151
|
/**
|
|
1144
1152
|
* Any accepted schema input, including normalized schemas and references.
|
|
1153
|
+
*
|
|
1154
|
+
* @remarks
|
|
1155
|
+
* The `SchemaInput` type can be one of the following variants:
|
|
1156
|
+
* - A file path string (for example: `"./src/types.ts"`).
|
|
1157
|
+
* - A URL string (for example: `"https://example.com/config.json"`).
|
|
1158
|
+
* - A {@link GitHubReference | GitHub repository reference string}, starting with either `"github:"` or `"gh:"`, an optional branch or tag, and optionally including a specific file path within the repository (for example: `"github:main:storm-software/stryke/packages/resolve/src/types.ts"`). It is also valid to provide the branch or tag after the file path (for example: `"github:storm-software/stryke/packages/resolve/src/types.ts@main"`).
|
|
1159
|
+
* - A {@link GitLabReference | GitLab repository reference string}, starting with either `"gitlab:"` or `"gl:"`, an optional branch or tag, and optionally including a specific file path within the repository (for example: `"gitlab:master:storm-software/stryke/packages/resolve/src/types.ts"`). It is also valid to provide the branch or tag after the file path (for example: `"gitlab:storm-software/stryke/packages/resolve/src/types.ts@master"`).
|
|
1160
|
+
* - A TypeScript module name string (for example: `"@stryke/resolve"`), and optionally a specific module export from the package (for example: `"@stryke/resolve/some-module"`).
|
|
1161
|
+
* - A file reference string (this value can include both a path to the TypeScript module and the name of the module export separated by a ":", "#", or ";" character - for example: `"./src/types.ts#ExampleExport"`).
|
|
1162
|
+
* - A {@link FileReference} object, which contains information about a file reference.
|
|
1163
|
+
* - A {@link URL} object, which represents a URL to fetch the file from.
|
|
1164
|
+
* - A {@link SchemaSourceInput} object, which represents a raw schema input in one of the supported formats (Standard Schema, JSON Schema, Zod v3, Untyped, or Valibot).
|
|
1165
|
+
*
|
|
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`.
|
|
1167
|
+
*
|
|
1168
|
+
* @see {@link SchemaSourceInput}
|
|
1169
|
+
* @see {@link SchemaEnvelope}
|
|
1170
|
+
* @see {@link SchemaInputWithMeta}
|
|
1145
1171
|
*/
|
|
1146
|
-
type SchemaInput<TSpec = any> = SchemaSourceInput<TSpec> |
|
|
1147
|
-
|
|
1148
|
-
* Schema input wrapper that attaches optional contextual metadata.
|
|
1149
|
-
*/
|
|
1150
|
-
interface SchemaInputWithMeta<TSpec = any> {
|
|
1151
|
-
/** The underlying schema input payload. */
|
|
1152
|
-
schema: SchemaSourceInput<TSpec> | Schema<JsonSchemaOf<TSpec>> | FileReferenceInput;
|
|
1153
|
-
/** Optional contextual metadata associated with this schema input. */
|
|
1154
|
-
meta?: SchemaMeta<TSpec>;
|
|
1155
|
-
}
|
|
1172
|
+
type SchemaInput<TSpec = any> = LoadInput | SchemaSourceInput<TSpec> | SchemaEnvelope<JsonSchemaOf<TSpec>>;
|
|
1173
|
+
type InferExtractOptions<T extends SchemaInput> = T extends LoadInput ? InferLoadOptions<T> : {};
|
|
1156
1174
|
/**
|
|
1157
|
-
* A schema
|
|
1175
|
+
* A schema envelope that contains the normalized schema and its source variant.
|
|
1158
1176
|
*/
|
|
1159
|
-
interface
|
|
1160
|
-
/**
|
|
1177
|
+
interface SchemaEnvelope<TJsonSchema extends JsonSchema = JsonSchema> {
|
|
1178
|
+
/**
|
|
1179
|
+
* A stable content hash for the normalized schema.
|
|
1180
|
+
*/
|
|
1161
1181
|
hash: string;
|
|
1162
|
-
/**
|
|
1182
|
+
/**
|
|
1183
|
+
* The source variant used to derive the normalized {@link JsonSchema}.
|
|
1184
|
+
*/
|
|
1163
1185
|
variant: SchemaInputVariant;
|
|
1164
|
-
/**
|
|
1186
|
+
/**
|
|
1187
|
+
* The normalized schema definition.
|
|
1188
|
+
*/
|
|
1165
1189
|
schema: TJsonSchema;
|
|
1166
|
-
/** Optional contextual metadata associated with the schema. */
|
|
1167
|
-
meta?: SchemaMeta<SpecOf<TJsonSchema>>;
|
|
1168
1190
|
}
|
|
1169
1191
|
/**
|
|
1170
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.
|
|
1171
1193
|
*
|
|
1172
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`.
|
|
1173
1195
|
*
|
|
1174
|
-
* @see {@link
|
|
1196
|
+
* @see {@link SchemaEnvelope}
|
|
1175
1197
|
*/
|
|
1176
|
-
type
|
|
1177
|
-
interface SchemaMeta<TSpec> {
|
|
1178
|
-
/**
|
|
1179
|
-
* A string description (or a function that returns a string) of the schema.
|
|
1180
|
-
*/
|
|
1181
|
-
description?: string | ((spec: TSpec) => string);
|
|
1182
|
-
}
|
|
1198
|
+
type SchemaEnvelopeOf<TSpec> = SchemaEnvelope<JsonSchemaOf<TSpec>>;
|
|
1183
1199
|
/**
|
|
1184
1200
|
* Base metadata captured for schema source inputs.
|
|
1185
1201
|
*/
|
|
@@ -1243,12 +1259,12 @@ type SchemaSource<TSpec = any> = JsonSchemaSchemaSource<TSpec> | StandardSchemaS
|
|
|
1243
1259
|
/**
|
|
1244
1260
|
* A normalized schema plus metadata about the source that produced it.
|
|
1245
1261
|
*/
|
|
1246
|
-
interface
|
|
1262
|
+
interface ExtractedSchemaEnvelope<TSpec = any> extends SchemaEnvelopeOf<TSpec> {
|
|
1247
1263
|
/**
|
|
1248
1264
|
* The schema source that produced this normalized schema.
|
|
1249
1265
|
*/
|
|
1250
1266
|
source: SchemaSource<TSpec>;
|
|
1251
1267
|
}
|
|
1252
1268
|
//#endregion
|
|
1253
|
-
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 };
|
|
1254
1270
|
//# sourceMappingURL=types.d.mts.map
|