@power-plant/schema 0.0.4 → 0.0.5

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.
Files changed (76) hide show
  1. package/dist/codegen.cjs +6 -6
  2. package/dist/codegen.d.cts +1 -1
  3. package/dist/codegen.d.mts +1 -1
  4. package/dist/codegen.mjs +3 -3
  5. package/dist/constants-CwyhgVEl.cjs +1 -0
  6. package/dist/{constants.mjs → constants-lk1mMbgx.mjs} +2 -2
  7. package/dist/constants-lk1mMbgx.mjs.map +1 -0
  8. package/dist/helpers-B5sr5S3X.cjs +1 -0
  9. package/dist/helpers-Bh_V7xwV.mjs +2 -0
  10. package/dist/helpers-Bh_V7xwV.mjs.map +1 -0
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.d.cts +616 -31
  13. package/dist/index.d.cts.map +1 -1
  14. package/dist/index.d.mts +616 -31
  15. package/dist/index.d.mts.map +1 -1
  16. package/dist/index.mjs +2 -1
  17. package/dist/index.mjs.map +1 -0
  18. package/dist/{types.d.cts → types-BawP3FVI.d.mts} +72 -18
  19. package/dist/types-BawP3FVI.d.mts.map +1 -0
  20. package/dist/{types.d.mts → types-BmNamqlM.d.cts} +71 -17
  21. package/dist/types-BmNamqlM.d.cts.map +1 -0
  22. package/dist/valibot.cjs +1 -0
  23. package/dist/valibot.d.cts +14 -0
  24. package/dist/valibot.d.cts.map +1 -0
  25. package/dist/valibot.d.mts +14 -0
  26. package/dist/valibot.d.mts.map +1 -0
  27. package/dist/valibot.mjs +2 -0
  28. package/dist/valibot.mjs.map +1 -0
  29. package/dist/zod.cjs +1 -0
  30. package/dist/zod.d.cts +14 -0
  31. package/dist/zod.d.cts.map +1 -0
  32. package/dist/zod.d.mts +14 -0
  33. package/dist/zod.d.mts.map +1 -0
  34. package/dist/zod.mjs +2 -0
  35. package/dist/zod.mjs.map +1 -0
  36. package/package.json +26 -91
  37. package/dist/constants-lihlIQu7.d.cts +0 -31
  38. package/dist/constants-lihlIQu7.d.cts.map +0 -1
  39. package/dist/constants-lihlIQu7.d.mts +0 -31
  40. package/dist/constants-lihlIQu7.d.mts.map +0 -1
  41. package/dist/constants.cjs +0 -1
  42. package/dist/constants.d.cts +0 -2
  43. package/dist/constants.d.mts +0 -2
  44. package/dist/constants.mjs.map +0 -1
  45. package/dist/extract.cjs +0 -1
  46. package/dist/extract.d.cts +0 -135
  47. package/dist/extract.d.cts.map +0 -1
  48. package/dist/extract.d.mts +0 -135
  49. package/dist/extract.d.mts.map +0 -1
  50. package/dist/extract.mjs +0 -2
  51. package/dist/extract.mjs.map +0 -1
  52. package/dist/helpers.cjs +0 -1
  53. package/dist/helpers.d.cts +0 -134
  54. package/dist/helpers.d.cts.map +0 -1
  55. package/dist/helpers.d.mts +0 -134
  56. package/dist/helpers.d.mts.map +0 -1
  57. package/dist/helpers.mjs +0 -2
  58. package/dist/helpers.mjs.map +0 -1
  59. package/dist/metadata.cjs +0 -1
  60. package/dist/metadata.d.cts +0 -31
  61. package/dist/metadata.d.cts.map +0 -1
  62. package/dist/metadata.d.mts +0 -31
  63. package/dist/metadata.d.mts.map +0 -1
  64. package/dist/metadata.mjs +0 -2
  65. package/dist/metadata.mjs.map +0 -1
  66. package/dist/type-checks.cjs +0 -1
  67. package/dist/type-checks.d.cts +0 -331
  68. package/dist/type-checks.d.cts.map +0 -1
  69. package/dist/type-checks.d.mts +0 -331
  70. package/dist/type-checks.d.mts.map +0 -1
  71. package/dist/type-checks.mjs +0 -2
  72. package/dist/type-checks.mjs.map +0 -1
  73. package/dist/types.cjs +0 -0
  74. package/dist/types.d.cts.map +0 -1
  75. package/dist/types.d.mts.map +0 -1
  76. package/dist/types.mjs +0 -1
package/dist/index.mjs CHANGED
@@ -1 +1,2 @@
1
- import"./types.mjs";import{JSON_SCHEMA_METADATA_KEYS as e,JSON_SCHEMA_PRIMITIVE_TYPES as t,JSON_SCHEMA_TYPES as n,JsonSchemaTypeNames as r,SCHEMA_ARRAY_CONCAT_KEYWORDS as i,SCHEMA_RECORD_KEYWORDS as a,SCHEMA_SINGLE_KEYWORDS as o}from"./constants.mjs";import{isFileReference as s,isJsonSchema as c,isJsonSchemaAllOf as l,isJsonSchemaAny as u,isJsonSchemaAnyOf as d,isJsonSchemaArray as f,isJsonSchemaBigint as p,isJsonSchemaBoolean as m,isJsonSchemaDate as h,isJsonSchemaDecimal as g,isJsonSchemaEnum as _,isJsonSchemaInteger as v,isJsonSchemaKeywords as y,isJsonSchemaLiteral as b,isJsonSchemaMap as x,isJsonSchemaNativeEnum as S,isJsonSchemaNever as C,isJsonSchemaNull as w,isJsonSchemaNullable as T,isJsonSchemaNumber as E,isJsonSchemaObject as D,isJsonSchemaPrimitiveType as O,isJsonSchemaPrimitiveUnion as k,isJsonSchemaRecord as A,isJsonSchemaRef as j,isJsonSchemaSet as M,isJsonSchemaString as N,isJsonSchemaTuple as P,isJsonSchemaType as F,isJsonSchemaUndefined as I,isJsonSchemaUnion as L,isJsonSchemaUnknown as R,isNullOnlyJsonSchema as z,isSchema as B,isSchemaObject as V,isSchemaOf as H,isSchemaWithSource as U,isStandardSchema as W,isUntypedInput as G,isUntypedInputStrict as K,isUntypedSchema as q,isUntypedSchemaStrict as J,isValibotSchema as Y}from"./type-checks.mjs";import{applyJsonSchemaMetadata as X,getPrimarySchemaType as Z,readSchemaTypes as Q}from"./metadata.mjs";import{addProperty as $,getJsonSchema as ee,getJsonSchemaObject as te,getProperties as ne,getPropertiesList as re,getProperty as ie,isPropertyOptional as ae,isSchemaNullable as oe,isValidSchemaInputFile as se,merge as ce,mergeMetadata as le}from"./helpers.mjs";import{generateParserCode as ue,getJsonSchemaType as de,stringifyType as fe,stringifyValue as pe}from"./codegen.mjs";import{bundleReferences as me,extract as he,extractHash as ge,extractJsonSchema as _e,extractResolvedVariant as ve,extractSchema as ye,extractSchemaWithSource as be,extractSource as xe,extractTSType as Se,extractVariant as Ce}from"./extract.mjs";export{e as JSON_SCHEMA_METADATA_KEYS,t as JSON_SCHEMA_PRIMITIVE_TYPES,n as JSON_SCHEMA_TYPES,r as JsonSchemaTypeNames,i as SCHEMA_ARRAY_CONCAT_KEYWORDS,a as SCHEMA_RECORD_KEYWORDS,o as SCHEMA_SINGLE_KEYWORDS,$ as addProperty,X as applyJsonSchemaMetadata,me as bundleReferences,he as extract,ge as extractHash,_e as extractJsonSchema,ve as extractResolvedVariant,ye as extractSchema,be as extractSchemaWithSource,xe as extractSource,Se as extractTSType,Ce as extractVariant,ue as generateParserCode,ee as getJsonSchema,te as getJsonSchemaObject,de as getJsonSchemaType,Z as getPrimarySchemaType,ne as getProperties,re as getPropertiesList,ie as getProperty,s as isFileReference,c as isJsonSchema,l as isJsonSchemaAllOf,u as isJsonSchemaAny,d as isJsonSchemaAnyOf,f as isJsonSchemaArray,p as isJsonSchemaBigint,m as isJsonSchemaBoolean,h as isJsonSchemaDate,g as isJsonSchemaDecimal,_ as isJsonSchemaEnum,v as isJsonSchemaInteger,y as isJsonSchemaKeywords,b as isJsonSchemaLiteral,x as isJsonSchemaMap,S as isJsonSchemaNativeEnum,C as isJsonSchemaNever,w as isJsonSchemaNull,T as isJsonSchemaNullable,E as isJsonSchemaNumber,D as isJsonSchemaObject,O as isJsonSchemaPrimitiveType,k as isJsonSchemaPrimitiveUnion,A as isJsonSchemaRecord,j as isJsonSchemaRef,M as isJsonSchemaSet,N as isJsonSchemaString,P as isJsonSchemaTuple,F as isJsonSchemaType,I as isJsonSchemaUndefined,L as isJsonSchemaUnion,R as isJsonSchemaUnknown,z as isNullOnlyJsonSchema,ae as isPropertyOptional,B as isSchema,oe as isSchemaNullable,V as isSchemaObject,H as isSchemaOf,U as isSchemaWithSource,W as isStandardSchema,G as isUntypedInput,K as isUntypedInputStrict,q as isUntypedSchema,J as isUntypedSchemaStrict,Y as isValibotSchema,se as isValidSchemaInputFile,ce as merge,le as mergeMetadata,Q as readSchemaTypes,fe as stringifyType,pe as stringifyValue};
1
+ import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"./constants-lk1mMbgx.mjs";import{$ as s,A as c,B as ee,C as te,D as ne,E as re,F as l,G as u,H as ie,I as ae,J as d,K as f,L as oe,M as se,N as ce,O as le,P as ue,Q as de,R as fe,S as pe,T as me,U as he,V as ge,W as _e,X as p,Y as ve,Z as m,_ as ye,a as be,b as h,c as xe,d as Se,et as g,f as Ce,g as _,h as v,i as we,j as Te,k as Ee,l as De,m as Oe,n as y,nt as b,o as x,p as S,q as C,r as w,rt as T,s as ke,t as Ae,tt as E,u as je,v as Me,w as Ne,x as Pe,y as Fe,z as Ie}from"./helpers-Bh_V7xwV.mjs";import{extractFileReference as D}from"@stryke/convert/extract-file-reference";import{murmurhash as O}from"@stryke/hash";import{deepClone as Le}from"@stryke/helpers/deep-clone";import{isStandardJsonSchema as k}from"@stryke/json";import{findFileExtensionSafe as Re}from"@stryke/path/find";import{VALID_OBJECT_SOURCE_EXTENSIONS as A}from"@stryke/resolve/constants";import{loadSafe as ze}from"@stryke/resolve/load";import{list as Be}from"@stryke/string-format/list";import{isSetString as j}from"@stryke/type-checks";import{isSetObject as M}from"@stryke/type-checks/is-set-object";import{extractJsonSchema as Ve,isZod3Type as N}from"@stryke/zod";import{toJsonSchema as He}from"@valibot/to-json-schema";import{createGenerator as Ue}from"ts-json-schema-generator/dist/factory/generator.js";const P=`https://power-plant.invalid/`;function We(e){return!(!M(e)||!(`schema`in e)||`hash`in e||`variant`in e||`source`in e)}function F(e){return We(e)?e.schema:e}function I(e){return e.endsWith(`#`)?e.slice(0,-1):e}function L(e){let t=e.indexOf(`#`);return t>=0?e.slice(0,t):e}function Ge(e){return e.replaceAll(`~`,`~0`).replaceAll(`/`,`~1`)}function Ke(e){return e.length===0?``:`/${e.map(e=>Ge(e)).join(`/`)}`}function R(e,t){try{return I(new URL(e,t).toString())}catch{return I(e)}}function z(e,t,n,r,i){if(!M(e))return;let a=e,o=Ke(t),s=j(a.$id)?R(a.$id,n):n,c=L(s);if(r.set(s,o),r.set(c,o),j(a.$anchor)&&r.set(`${c}#${a.$anchor}`,o),j(a.$dynamicAnchor)){let e=`${c}#${a.$dynamicAnchor}`;r.set(e,o),i.set(e,`#${a.$dynamicAnchor}`)}for(let[e,n]of Object.entries(a)){if(Array.isArray(n)){n.forEach((n,a)=>{z(n,[...t,e,String(a)],s,r,i)});continue}z(n,[...t,e],s,r,i)}}function B(e,t,n,r,i){if(!M(e))return;let a=e,o=j(a.$id)?R(a.$id,n):n;if(j(a.$ref)){let e=R(a.$ref,o),t=r.get(e)??r.get(L(e));t!==void 0&&(a.$ref=t.length>0?`#${t}`:`#`)}if(j(a.$dynamicRef)){let e=R(a.$dynamicRef,o),t=i.get(e);if(t)a.$dynamicRef=t;else{let t=r.get(e)??r.get(L(e));t!==void 0&&(a.$dynamicRef=t.length>0?`#${t}`:`#`)}}for(let[e,n]of Object.entries(a)){if(Array.isArray(n)){n.forEach((n,a)=>{B(n,[...t,e,String(a)],o,r,i)});continue}B(n,[...t,e],o,r,i)}}function V(e){if(!M(e))return e;let t=Le(e),n=j(t.$id)?R(t.$id,P):P,r=new Map,i=new Map;return z(t,[],n,r,i),B(t,[],n,r,i),t}function H(e){if(E(e))return W(e);if(M(e)){if(s(e))return G(e);let t=e;if(`$schema`in t&&E(t.$schema))return W(t.$schema)}return e}function qe(e){return Array.isArray(e)?e.map(e=>H(e)):e}function U(e){return He(e,{target:`draft-2020-12`})}function W(e){let t=e,n={};for(let[e,r]of Object.entries(t))if(!(e===`tsType`||e===`markdownType`||e===`tags`||e===`args`||e===`resolve`)){if(e===`id`&&j(r)){n.$id=r;continue}if(e===`properties`||e===`patternProperties`||e===`dependentSchemas`||e===`$defs`||e===`definitions`){if(!M(r)){n[e]=r;continue}n[e]=Object.fromEntries(Object.entries(r).map(([e,t])=>[e,H(t)]));continue}if(e===`items`||e===`contains`||e===`if`||e===`then`||e===`else`||e===`not`||e===`propertyNames`||e===`additionalProperties`||e===`unevaluatedProperties`){n[e]=H(r);continue}if(e===`oneOf`||e===`anyOf`||e===`allOf`){n[e]=qe(r);continue}n[e]=r}return n}function G(e){let t=e,n=E(t.$schema)?W(t.$schema):{},r={};for(let[e,n]of Object.entries(t)){if(e.startsWith(`$`)||!M(n))continue;if(s(n)){r[e]=G(n);continue}let t=n;if(`$schema`in t&&E(t.$schema)){r[e]=W(t.$schema);continue}E(n)&&(r[e]=W(n))}if(!l(n))throw Error(`Failed to convert untyped input to JSON Schema. The base schema must be a valid JSON Schema object.`);let i={...M(n.properties)?n.properties:{},...r};return{...n,type:n.type??`object`,...Object.keys(i).length>0?{properties:i}:{}}}function K(e,t){let n=F(t);if(m(n)||d(n))return O({variant:e,input:n.schema});if(j(n)||typeof n==`boolean`)return O({variant:e,input:n});if(M(n)){if(N(n))return O({variant:e,input:n._def});if(k(n))return O({variant:e,input:n[`~standard`]});if(_(n))return O({variant:e,input:n});if(T(n))return O({variant:e,input:U(n)});if(s(n))return O({variant:e,input:G(n)});if(E(n))return O({variant:e,input:W(n)})}throw Error(`Failed to create an input hash for the provided schema definition input. The input must be a Zod schema, a Standard JSON Schema, a JSON Schema object, a Valibot BaseSchema, or a reflected Deepkit Type object.`)}function q(e){if(M(e)){if(N(e))return Ve(e,{target:`draft-2020-12`});if(g(e))return G(e);if(b(e))return W(e);if(k(e))return e[`~standard`].jsonSchema.input({target:`draft-2020-12`});if(T(e))return U(e);if(_(e))return e}}function J(e){if(M(e)){if(N(e))return`zod3`;if(g(e)||b(e))return`untyped`;if(k(e))return`standard-schema`;if(_(e))return`json-schema`;if(T(e))return`valibot`}throw Error(`Failed to determine the variant of the provided schema definition input. The input must be a Zod schema, a Standard JSON Schema, a JSON Schema object, a Valibot BaseSchema, a reflected Deepkit Type object, or an Untyped schema.`)}function Y(e){let t=F(e);return m(t)||d(t)?t.variant:j(t)||v(t)?`file-reference`:J(t)}async function X(e,t){if(m(e))return e.schema;let n=t??J(e),r;if((n===`zod3`||n===`json-schema`||n===`standard-schema`||n===`untyped`||n===`valibot`)&&(r=q(e)),r)return V(r);throw Error(`Failed to extract a valid schema from the provided input. The input must be a Zod schema, a Standard JSON Schema, a JSON Schema object, a Valibot BaseSchema, an untyped schema, or a reflected Deepkit Type object.`)}function Z(e,t){if(e===`zod3`)return{hash:K(e,t),variant:`zod3`,schema:t};if(e===`untyped`)return{hash:K(e,t),variant:`untyped`,schema:t};if(e===`standard-schema`)return{hash:K(e,t),variant:`standard-schema`,schema:t};if(e===`json-schema`)return{hash:K(e,t),variant:`json-schema`,schema:t};if(e===`valibot`)return{hash:K(e,t),variant:`valibot`,schema:t};throw Error(`Failed to extract source information from the provided input. The input must be a Zod schema, a Standard JSON Schema, a JSON Schema object, an untyped schema, or a reflected Deepkit Type object.`)}async function Q(e,t={}){let n=D(e);if(!n)throw Error(`Failed to extract a file reference from the provided input. The input must be a string or an object with a "file" property that specifies the file path and optional export name.`);let r=n.export??`*`;try{return Ue({path:n.file,type:r,expose:`export`,jsDoc:`extended`,...t}).createSchema(r)}catch(e){throw Error(`Failed to generate a JSON schema for "${n.file}" using the type "${r}". Error: ${e.message}`)}}async function $(e,t={}){let n=F(e);if(m(n))return n;if(d(n))return{...n,source:{hash:K(`json-schema`,n.schema),variant:`json-schema`,schema:n.schema}};let r,i=Y(n),a=K(i,n);if(i===`file-reference`){let e=D(n);if(!e)throw Error(`Failed to extract a valid file reference from the provided input "${JSON.stringify(n)}". Please ensure that the input is correctly formatted as a file reference (e.g. "./schema.ts#MySchema") and that the file exists at the specified path.`);let i=Re(e.file);if(i&&!A.includes(i))throw Error(`The provided schema file input "${e.file}" has an invalid file extension (.${i}). Please ensure that the file has one of the following extensions: ${Be(A,{conjunction:`or`})}.`);let a=await ze(n,t);a??=await Q(n,t);let o=F(a);r=m(o)?o.source:d(o)?{hash:K(`json-schema`,o.schema),variant:`json-schema`,schema:o.schema}:Z(J(o),o)}else if([`json-schema`,`standard-schema`,`zod3`,`untyped`,`valibot`,`reflection`].includes(i))r=Z(i,n);else throw Error(`Invalid schema definition input "${i}". The variant must be one of "file-reference", "json-schema", "standard-schema", "zod3", "valibot", "untyped", or "reflection".`);return{variant:i,source:r,schema:await X(r.schema,r.variant),hash:a}}async function Je(e,t={}){let n=F(e);if(m(n)||p(n))return n;let r=await $(e,t);if(!r?.schema)throw Error(`Failed to extract a valid schema from the provided input. The input must be a Zod schema, a Valibot schema, any Standard JSON Schema type, a plain JSON Schema object, an untyped schema, or a reflected Deepkit Type object.`);return r}export{o as JSON_SCHEMA_METADATA_KEYS,n as JSON_SCHEMA_PRIMITIVE_TYPES,i as JSON_SCHEMA_TYPES,t as JsonSchemaTypeNames,e as SCHEMA_ARRAY_CONCAT_KEYWORDS,r as SCHEMA_RECORD_KEYWORDS,a as SCHEMA_SINGLE_KEYWORDS,Ae as addProperty,Ce as applyJsonSchemaMetadata,V as bundleReferences,Je as extract,K as extractHash,q as extractJsonSchema,J as extractResolvedVariant,X as extractSchema,$ as extractSchemaWithSource,Z as extractSource,Q as extractTSType,Y as extractVariant,y as getJsonSchema,w as getJsonSchemaObject,S as getPrimarySchemaType,we as getProperties,be as getPropertiesList,x as getProperty,v as isFileReference,_ as isJsonSchema,ye as isJsonSchemaAllOf,Me as isJsonSchemaAny,Fe as isJsonSchemaAnyOf,h as isJsonSchemaArray,Pe as isJsonSchemaBigint,pe as isJsonSchemaBoolean,te as isJsonSchemaDate,Ne as isJsonSchemaDecimal,me as isJsonSchemaEnum,re as isJsonSchemaInteger,ne as isJsonSchemaKeywords,le as isJsonSchemaLiteral,Ee as isJsonSchemaMap,c as isJsonSchemaNativeEnum,Te as isJsonSchemaNever,se as isJsonSchemaNull,ce as isJsonSchemaNullable,ue as isJsonSchemaNumber,l as isJsonSchemaObject,ae as isJsonSchemaPrimitiveType,oe as isJsonSchemaPrimitiveUnion,fe as isJsonSchemaRecord,Ie as isJsonSchemaRef,ee as isJsonSchemaSet,ge as isJsonSchemaString,ie as isJsonSchemaTuple,he as isJsonSchemaType,_e as isJsonSchemaUndefined,u as isJsonSchemaUnion,f as isJsonSchemaUnknown,C as isNullOnlyJsonSchema,ke as isPropertyOptional,d as isSchema,xe as isSchemaNullable,ve as isSchemaObject,p as isSchemaOf,m as isSchemaWithSource,de as isStandardSchema,s as isUntypedConfig,g as isUntypedConfigStrict,E as isUntypedSchema,b as isUntypedSchemaStrict,T as isValibotSchema,De as isValidSchemaConfigFile,je as merge,Se as mergeMetadata,Oe as readSchemaTypes};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":[],"mappings":""}
@@ -1,10 +1,38 @@
1
- import { n as JSON_SCHEMA_PRIMITIVE_TYPES, r as JSON_SCHEMA_TYPES } from "./constants-lihlIQu7.cjs";
1
+ import { BaseIssue, BaseSchema } from "valibot";
2
2
  import { StandardJSONSchemaV1 } from "@standard-schema/spec";
3
- import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
3
+ import { InferLoadOptions, LoadReference } from "@stryke/resolve/types";
4
4
  import { InputObject, Schema } from "untyped";
5
- import { BaseIssue, BaseSchema } from "valibot";
6
5
  import * as z3 from "zod/v3";
7
6
 
7
+ //#region src/constants.d.ts
8
+ declare const JsonSchemaTypeNames: {
9
+ readonly STRING: "string";
10
+ readonly NUMBER: "number";
11
+ readonly INTEGER: "integer";
12
+ readonly BOOLEAN: "boolean";
13
+ readonly NULL: "null";
14
+ readonly OBJECT: "object";
15
+ readonly ARRAY: "array";
16
+ };
17
+ declare const JSON_SCHEMA_PRIMITIVE_TYPES: readonly ["string", "number", "integer", "boolean", "null"];
18
+ declare const JSON_SCHEMA_TYPES: readonly ["string", "number", "integer", "boolean", "null", "array", "object"];
19
+ declare const JSON_SCHEMA_METADATA_KEYS: ("$id" | "$schema" | "$vocabulary" | "$comment" | "$anchor" | "$defs" | "$dynamicRef" | "$dynamicAnchor" | "name" | "version" | "title" | "description" | "docs" | "examples" | "alias" | "tags" | "deprecated" | "hidden" | "ignore" | "internal" | "runtime" | "readOnly" | "writeOnly")[];
20
+ /**
21
+ * Keywords whose values are a flat record of named JSON Schema fragments.
22
+ * Each child schema is merged recursively with its counterpart.
23
+ */
24
+ declare const SCHEMA_RECORD_KEYWORDS: Set<string>;
25
+ /**
26
+ * Keywords whose value is a single JSON Schema fragment that should be
27
+ * recursively merged when both sides define it.
28
+ */
29
+ declare const SCHEMA_SINGLE_KEYWORDS: Set<string>;
30
+ /**
31
+ * Keywords whose values are arrays of JSON Schema fragments that should be
32
+ * concatenated (rather than overridden) during a merge.
33
+ */
34
+ declare const SCHEMA_ARRAY_CONCAT_KEYWORDS: Set<string>;
35
+ //#endregion
8
36
  //#region src/types.d.ts
9
37
  /**
10
38
  * Primitive JSON Schema `type` keyword values.
@@ -1127,11 +1155,11 @@ type SchemaSourceVariant = "standard-schema" | "json-schema" | "zod3" | "untyped
1127
1155
  /**
1128
1156
  * Accepted schema input variants, including raw type definitions.
1129
1157
  */
1130
- type SchemaInputVariant = SchemaSourceVariant | "file-reference";
1158
+ type SchemaConfigVariant = SchemaSourceVariant | "file-reference";
1131
1159
  /**
1132
1160
  * Alias for the Untyped object-input schema shape.
1133
1161
  */
1134
- type UntypedInputObject = InputObject;
1162
+ type UntypedConfigObject = InputObject;
1135
1163
  /**
1136
1164
  * Alias for the Untyped schema document shape.
1137
1165
  */
@@ -1139,7 +1167,7 @@ type UntypedSchema = Schema;
1139
1167
  /**
1140
1168
  * A Valibot schema instance.
1141
1169
  *
1142
- * @template TInput - The raw input type accepted by the schema.
1170
+ * @template TConfig - The raw input type accepted by the schema.
1143
1171
  * @template TOutput - The parsed output type produced by the schema.
1144
1172
  * @template TIssue - The issue type emitted for validation errors.
1145
1173
  */
@@ -1147,12 +1175,12 @@ type ValibotSchema<TInput = unknown, TOutput = unknown, TIssue extends BaseIssue
1147
1175
  /**
1148
1176
  * Raw schema source input union before normalization.
1149
1177
  */
1150
- type SchemaSourceInput<TSpec = any> = StandardJSONSchemaV1<TSpec> | JsonSchemaOf<TSpec> | z3.ZodType<TSpec, any, any> | UntypedInputObject | UntypedSchema | ValibotSchema<TSpec>;
1178
+ type SchemaSourceConfig<TSpec = any> = StandardJSONSchemaV1<TSpec> | JsonSchemaOf<TSpec> | z3.ZodType<TSpec, any, any> | UntypedConfigObject | UntypedSchema | ValibotSchema<TSpec>;
1151
1179
  /**
1152
1180
  * Any accepted schema input, including normalized schemas and references.
1153
1181
  *
1154
1182
  * @remarks
1155
- * The `SchemaInput` type can be one of the following variants:
1183
+ * The `SchemaConfig` type can be one of the following variants:
1156
1184
  * - A file path string (for example: `"./src/types.ts"`).
1157
1185
  * - A URL string (for example: `"https://example.com/config.json"`).
1158
1186
  * - 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"`).
@@ -1161,16 +1189,16 @@ type SchemaSourceInput<TSpec = any> = StandardJSONSchemaV1<TSpec> | JsonSchemaOf
1161
1189
  * - 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
1190
  * - A {@link FileReference} object, which contains information about a file reference.
1163
1191
  * - 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).
1192
+ * - A {@link SchemaSourceConfig} object, which represents a raw schema input in one of the supported formats (Standard Schema, JSON Schema, Zod v3, Untyped, or Valibot).
1165
1193
  *
1166
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`.
1167
1195
  *
1168
- * @see {@link SchemaSourceInput}
1196
+ * @see {@link SchemaSourceConfig}
1169
1197
  * @see {@link SchemaEnvelope}
1170
- * @see {@link SchemaInputWithMeta}
1198
+ * @see {@link SchemaConfigWithMeta}
1171
1199
  */
1172
- type SchemaInput<TSpec = any> = LoadInput | SchemaSourceInput<TSpec> | SchemaEnvelope<JsonSchemaOf<TSpec>>;
1173
- type InferExtractOptions<T extends SchemaInput> = T extends LoadInput ? InferLoadOptions<T> : {};
1200
+ type SchemaConfig<TSpec = any> = LoadReference | SchemaSourceConfig<TSpec> | SchemaEnvelope<JsonSchemaOf<TSpec>>;
1201
+ type InferExtractOptions<T extends SchemaConfig> = T extends LoadReference ? InferLoadOptions<T> : {};
1174
1202
  /**
1175
1203
  * A schema envelope that contains the normalized schema and its source variant.
1176
1204
  */
@@ -1182,7 +1210,7 @@ interface SchemaEnvelope<TJsonSchema extends JsonSchema = JsonSchema> {
1182
1210
  /**
1183
1211
  * The source variant used to derive the normalized {@link JsonSchema}.
1184
1212
  */
1185
- variant: SchemaInputVariant;
1213
+ variant: SchemaConfigVariant;
1186
1214
  /**
1187
1215
  * The normalized schema definition.
1188
1216
  */
@@ -1205,7 +1233,7 @@ interface BaseSchemaSource<TSpec = any> {
1205
1233
  /** The specific source format used for the schema input. */
1206
1234
  variant: SchemaSourceVariant;
1207
1235
  /** The original schema input captured before normalization. */
1208
- schema: SchemaSourceInput<TSpec>;
1236
+ schema: SchemaSourceConfig<TSpec>;
1209
1237
  }
1210
1238
  /**
1211
1239
  * Source descriptor for schemas that already use JSON Schema.
@@ -1241,7 +1269,7 @@ interface UntypedSchemaSource<TSpec = any> extends BaseSchemaSource<TSpec> {
1241
1269
  /** Indicates the source input comes from the Untyped schema model. */
1242
1270
  variant: "untyped";
1243
1271
  /** The original Untyped schema input. */
1244
- schema: UntypedInputObject | UntypedSchema;
1272
+ schema: UntypedConfigObject | UntypedSchema;
1245
1273
  }
1246
1274
  /**
1247
1275
  * Source descriptor for Valibot schema inputs.
@@ -1265,6 +1293,32 @@ interface ExtractedSchemaEnvelope<TSpec = any> extends SchemaEnvelopeOf<TSpec> {
1265
1293
  */
1266
1294
  source: SchemaSource<TSpec>;
1267
1295
  }
1296
+ declare module "zod" {
1297
+ interface GlobalMeta {
1298
+ id?: string;
1299
+ title?: string;
1300
+ description?: string;
1301
+ docs?: string;
1302
+ alias?: string[];
1303
+ tags?: string[];
1304
+ deprecated?: boolean;
1305
+ hidden?: boolean;
1306
+ ignore?: boolean;
1307
+ internal?: boolean;
1308
+ runtime?: boolean;
1309
+ examples?: unknown | {
1310
+ name?: string;
1311
+ description?: string;
1312
+ value: unknown;
1313
+ }[];
1314
+ readOnly?: boolean;
1315
+ writeOnly?: boolean;
1316
+ contentEncoding?: string;
1317
+ contentMediaType?: string;
1318
+ contentSchema?: string;
1319
+ [keyword: string]: unknown;
1320
+ }
1321
+ }
1268
1322
  //#endregion
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 };
1270
- //# sourceMappingURL=types.d.cts.map
1323
+ export { SpecOf as $, JsonSchemaObject as A, JsonSchemaStringFormat as B, JsonSchemaMetadataKeywords as C, JsonSchemaNullable as D, JsonSchemaNull as E, JsonSchemaRecordPropertyNames as F, JsonSchemaUnknown as G, JsonSchemaType as H, JsonSchemaRef as I, SchemaEnvelope as J, SchemaConfig as K, JsonSchemaSchemaSource as L, JsonSchemaPrimitiveType as M, JsonSchemaPrimitiveUnion as N, JsonSchemaNumber as O, JsonSchemaRecord as P, SchemaSourceVariant as Q, JsonSchemaSet as R, JsonSchemaMap as S, JsonSchemaNever as T, JsonSchemaUndefined as U, JsonSchemaTuple as V, JsonSchemaUnion as W, SchemaSource as X, SchemaEnvelopeOf as Y, SchemaSourceConfig as Z, JsonSchemaIntegerFormat as _, JsonSchemaAllOf as a, ValibotSchemaSource as at, JsonSchemaLiteral as b, JsonSchemaArray as c, JSON_SCHEMA_PRIMITIVE_TYPES as ct, JsonSchemaConditionalKeywords as d, SCHEMA_ARRAY_CONCAT_KEYWORDS as dt, StandardSchemaSchemaSource as et, JsonSchemaDate as f, SCHEMA_RECORD_KEYWORDS as ft, JsonSchemaInteger as g, JsonSchemaEnum as h, JsonSchema as i, ValibotSchema as it, JsonSchemaOf as j, JsonSchemaNumberFormat as k, JsonSchemaBigint as l, JSON_SCHEMA_TYPES as lt, JsonSchemaDecimalFormat as m, ExtractedSchemaEnvelope as n, UntypedSchema as nt, JsonSchemaAny as o, Zod3SchemaSource as ot, JsonSchemaDecimal as p, SCHEMA_SINGLE_KEYWORDS as pt, SchemaConfigVariant as q, InferExtractOptions as r, UntypedSchemaSource as rt, JsonSchemaAnyOf as s, JSON_SCHEMA_METADATA_KEYS as st, BaseSchemaSource as t, UntypedConfigObject as tt, JsonSchemaBoolean as u, JsonSchemaTypeNames as ut, JsonSchemaKeywords as v, JsonSchemaNativeEnum as w, JsonSchemaLogicKeywords as x, JsonSchemaLike as y, JsonSchemaString as z };
1324
+ //# sourceMappingURL=types-BawP3FVI.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-BawP3FVI.d.mts","names":[],"sources":["../src/constants.ts","../src/types.ts"],"mappings":""}
@@ -1,10 +1,38 @@
1
- import { n as JSON_SCHEMA_PRIMITIVE_TYPES, r as JSON_SCHEMA_TYPES } from "./constants-lihlIQu7.mjs";
2
1
  import { StandardJSONSchemaV1 } from "@standard-schema/spec";
3
- import { InferLoadOptions, LoadInput } from "@stryke/resolve/types";
2
+ import { InferLoadOptions, LoadReference } from "@stryke/resolve/types";
4
3
  import { InputObject, Schema } from "untyped";
5
4
  import { BaseIssue, BaseSchema } from "valibot";
6
5
  import * as z3 from "zod/v3";
7
6
 
7
+ //#region src/constants.d.ts
8
+ declare const JsonSchemaTypeNames: {
9
+ readonly STRING: "string";
10
+ readonly NUMBER: "number";
11
+ readonly INTEGER: "integer";
12
+ readonly BOOLEAN: "boolean";
13
+ readonly NULL: "null";
14
+ readonly OBJECT: "object";
15
+ readonly ARRAY: "array";
16
+ };
17
+ declare const JSON_SCHEMA_PRIMITIVE_TYPES: readonly ["string", "number", "integer", "boolean", "null"];
18
+ declare const JSON_SCHEMA_TYPES: readonly ["string", "number", "integer", "boolean", "null", "array", "object"];
19
+ declare const JSON_SCHEMA_METADATA_KEYS: ("$id" | "$schema" | "$vocabulary" | "$comment" | "$anchor" | "$defs" | "$dynamicRef" | "$dynamicAnchor" | "name" | "version" | "title" | "description" | "docs" | "examples" | "alias" | "tags" | "deprecated" | "hidden" | "ignore" | "internal" | "runtime" | "readOnly" | "writeOnly")[];
20
+ /**
21
+ * Keywords whose values are a flat record of named JSON Schema fragments.
22
+ * Each child schema is merged recursively with its counterpart.
23
+ */
24
+ declare const SCHEMA_RECORD_KEYWORDS: Set<string>;
25
+ /**
26
+ * Keywords whose value is a single JSON Schema fragment that should be
27
+ * recursively merged when both sides define it.
28
+ */
29
+ declare const SCHEMA_SINGLE_KEYWORDS: Set<string>;
30
+ /**
31
+ * Keywords whose values are arrays of JSON Schema fragments that should be
32
+ * concatenated (rather than overridden) during a merge.
33
+ */
34
+ declare const SCHEMA_ARRAY_CONCAT_KEYWORDS: Set<string>;
35
+ //#endregion
8
36
  //#region src/types.d.ts
9
37
  /**
10
38
  * Primitive JSON Schema `type` keyword values.
@@ -1127,11 +1155,11 @@ type SchemaSourceVariant = "standard-schema" | "json-schema" | "zod3" | "untyped
1127
1155
  /**
1128
1156
  * Accepted schema input variants, including raw type definitions.
1129
1157
  */
1130
- type SchemaInputVariant = SchemaSourceVariant | "file-reference";
1158
+ type SchemaConfigVariant = SchemaSourceVariant | "file-reference";
1131
1159
  /**
1132
1160
  * Alias for the Untyped object-input schema shape.
1133
1161
  */
1134
- type UntypedInputObject = InputObject;
1162
+ type UntypedConfigObject = InputObject;
1135
1163
  /**
1136
1164
  * Alias for the Untyped schema document shape.
1137
1165
  */
@@ -1139,7 +1167,7 @@ type UntypedSchema = Schema;
1139
1167
  /**
1140
1168
  * A Valibot schema instance.
1141
1169
  *
1142
- * @template TInput - The raw input type accepted by the schema.
1170
+ * @template TConfig - The raw input type accepted by the schema.
1143
1171
  * @template TOutput - The parsed output type produced by the schema.
1144
1172
  * @template TIssue - The issue type emitted for validation errors.
1145
1173
  */
@@ -1147,12 +1175,12 @@ type ValibotSchema<TInput = unknown, TOutput = unknown, TIssue extends BaseIssue
1147
1175
  /**
1148
1176
  * Raw schema source input union before normalization.
1149
1177
  */
1150
- type SchemaSourceInput<TSpec = any> = StandardJSONSchemaV1<TSpec> | JsonSchemaOf<TSpec> | z3.ZodType<TSpec, any, any> | UntypedInputObject | UntypedSchema | ValibotSchema<TSpec>;
1178
+ type SchemaSourceConfig<TSpec = any> = StandardJSONSchemaV1<TSpec> | JsonSchemaOf<TSpec> | z3.ZodType<TSpec, any, any> | UntypedConfigObject | UntypedSchema | ValibotSchema<TSpec>;
1151
1179
  /**
1152
1180
  * Any accepted schema input, including normalized schemas and references.
1153
1181
  *
1154
1182
  * @remarks
1155
- * The `SchemaInput` type can be one of the following variants:
1183
+ * The `SchemaConfig` type can be one of the following variants:
1156
1184
  * - A file path string (for example: `"./src/types.ts"`).
1157
1185
  * - A URL string (for example: `"https://example.com/config.json"`).
1158
1186
  * - 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"`).
@@ -1161,16 +1189,16 @@ type SchemaSourceInput<TSpec = any> = StandardJSONSchemaV1<TSpec> | JsonSchemaOf
1161
1189
  * - 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
1190
  * - A {@link FileReference} object, which contains information about a file reference.
1163
1191
  * - 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).
1192
+ * - A {@link SchemaSourceConfig} object, which represents a raw schema input in one of the supported formats (Standard Schema, JSON Schema, Zod v3, Untyped, or Valibot).
1165
1193
  *
1166
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`.
1167
1195
  *
1168
- * @see {@link SchemaSourceInput}
1196
+ * @see {@link SchemaSourceConfig}
1169
1197
  * @see {@link SchemaEnvelope}
1170
- * @see {@link SchemaInputWithMeta}
1198
+ * @see {@link SchemaConfigWithMeta}
1171
1199
  */
1172
- type SchemaInput<TSpec = any> = LoadInput | SchemaSourceInput<TSpec> | SchemaEnvelope<JsonSchemaOf<TSpec>>;
1173
- type InferExtractOptions<T extends SchemaInput> = T extends LoadInput ? InferLoadOptions<T> : {};
1200
+ type SchemaConfig<TSpec = any> = LoadReference | SchemaSourceConfig<TSpec> | SchemaEnvelope<JsonSchemaOf<TSpec>>;
1201
+ type InferExtractOptions<T extends SchemaConfig> = T extends LoadReference ? InferLoadOptions<T> : {};
1174
1202
  /**
1175
1203
  * A schema envelope that contains the normalized schema and its source variant.
1176
1204
  */
@@ -1182,7 +1210,7 @@ interface SchemaEnvelope<TJsonSchema extends JsonSchema = JsonSchema> {
1182
1210
  /**
1183
1211
  * The source variant used to derive the normalized {@link JsonSchema}.
1184
1212
  */
1185
- variant: SchemaInputVariant;
1213
+ variant: SchemaConfigVariant;
1186
1214
  /**
1187
1215
  * The normalized schema definition.
1188
1216
  */
@@ -1205,7 +1233,7 @@ interface BaseSchemaSource<TSpec = any> {
1205
1233
  /** The specific source format used for the schema input. */
1206
1234
  variant: SchemaSourceVariant;
1207
1235
  /** The original schema input captured before normalization. */
1208
- schema: SchemaSourceInput<TSpec>;
1236
+ schema: SchemaSourceConfig<TSpec>;
1209
1237
  }
1210
1238
  /**
1211
1239
  * Source descriptor for schemas that already use JSON Schema.
@@ -1241,7 +1269,7 @@ interface UntypedSchemaSource<TSpec = any> extends BaseSchemaSource<TSpec> {
1241
1269
  /** Indicates the source input comes from the Untyped schema model. */
1242
1270
  variant: "untyped";
1243
1271
  /** The original Untyped schema input. */
1244
- schema: UntypedInputObject | UntypedSchema;
1272
+ schema: UntypedConfigObject | UntypedSchema;
1245
1273
  }
1246
1274
  /**
1247
1275
  * Source descriptor for Valibot schema inputs.
@@ -1265,6 +1293,32 @@ interface ExtractedSchemaEnvelope<TSpec = any> extends SchemaEnvelopeOf<TSpec> {
1265
1293
  */
1266
1294
  source: SchemaSource<TSpec>;
1267
1295
  }
1296
+ declare module "zod" {
1297
+ interface GlobalMeta {
1298
+ id?: string;
1299
+ title?: string;
1300
+ description?: string;
1301
+ docs?: string;
1302
+ alias?: string[];
1303
+ tags?: string[];
1304
+ deprecated?: boolean;
1305
+ hidden?: boolean;
1306
+ ignore?: boolean;
1307
+ internal?: boolean;
1308
+ runtime?: boolean;
1309
+ examples?: unknown | {
1310
+ name?: string;
1311
+ description?: string;
1312
+ value: unknown;
1313
+ }[];
1314
+ readOnly?: boolean;
1315
+ writeOnly?: boolean;
1316
+ contentEncoding?: string;
1317
+ contentMediaType?: string;
1318
+ contentSchema?: string;
1319
+ [keyword: string]: unknown;
1320
+ }
1321
+ }
1268
1322
  //#endregion
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 };
1270
- //# sourceMappingURL=types.d.mts.map
1323
+ export { SpecOf as $, JsonSchemaObject as A, JsonSchemaStringFormat as B, JsonSchemaMetadataKeywords as C, JsonSchemaNullable as D, JsonSchemaNull as E, JsonSchemaRecordPropertyNames as F, JsonSchemaUnknown as G, JsonSchemaType as H, JsonSchemaRef as I, SchemaEnvelope as J, SchemaConfig as K, JsonSchemaSchemaSource as L, JsonSchemaPrimitiveType as M, JsonSchemaPrimitiveUnion as N, JsonSchemaNumber as O, JsonSchemaRecord as P, SchemaSourceVariant as Q, JsonSchemaSet as R, JsonSchemaMap as S, JsonSchemaNever as T, JsonSchemaUndefined as U, JsonSchemaTuple as V, JsonSchemaUnion as W, SchemaSource as X, SchemaEnvelopeOf as Y, SchemaSourceConfig as Z, JsonSchemaIntegerFormat as _, JsonSchemaAllOf as a, ValibotSchemaSource as at, JsonSchemaLiteral as b, JsonSchemaArray as c, JSON_SCHEMA_PRIMITIVE_TYPES as ct, JsonSchemaConditionalKeywords as d, SCHEMA_ARRAY_CONCAT_KEYWORDS as dt, StandardSchemaSchemaSource as et, JsonSchemaDate as f, SCHEMA_RECORD_KEYWORDS as ft, JsonSchemaInteger as g, JsonSchemaEnum as h, JsonSchema as i, ValibotSchema as it, JsonSchemaOf as j, JsonSchemaNumberFormat as k, JsonSchemaBigint as l, JSON_SCHEMA_TYPES as lt, JsonSchemaDecimalFormat as m, ExtractedSchemaEnvelope as n, UntypedSchema as nt, JsonSchemaAny as o, Zod3SchemaSource as ot, JsonSchemaDecimal as p, SCHEMA_SINGLE_KEYWORDS as pt, SchemaConfigVariant as q, InferExtractOptions as r, UntypedSchemaSource as rt, JsonSchemaAnyOf as s, JSON_SCHEMA_METADATA_KEYS as st, BaseSchemaSource as t, UntypedConfigObject as tt, JsonSchemaBoolean as u, JsonSchemaTypeNames as ut, JsonSchemaKeywords as v, JsonSchemaNativeEnum as w, JsonSchemaLogicKeywords as x, JsonSchemaLike as y, JsonSchemaString as z };
1324
+ //# sourceMappingURL=types-BmNamqlM.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-BmNamqlM.d.cts","names":[],"sources":["../src/constants.ts","../src/types.ts"],"mappings":";;;;;;;cAoBa,mBAAA;EAAA;;;;;;;;cAUA,2BAAA;AAAA,cAQA,iBAAA;AAAA,cAMA,yBAAA;;;;;cA8BA,sBAAA,EAAsB,GAAA;;;;AA5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,OAAA;EAAA;AAAA"}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./constants-CwyhgVEl.cjs");let t=require("valibot");t=e.c(t,1);const n=t.picklist(e.r),r=t.union([t.string(),t.number(),t.bigint(),t.boolean(),t.null()]),i=t.union([t.number(),t.bigint()]),a=t.union([t.boolean(),t.string(),t.object({message:t.optional(t.string()),since:t.optional(t.string()),alternative:t.optional(t.string())})]),o=t.union([t.unknown(),t.object({name:t.optional(t.string()),description:t.optional(t.string()),value:t.unknown()})]),s=t.pipe(t.number(),t.integer(),t.minValue(0)),c=t.object({$ref:t.pipe(t.string(),t.minLength(1,`Reference must be a non-empty URI`))});function l(e){return t.union([c,e])}const u=t.object({$id:t.optional(t.string()),$schema:t.optional(t.string()),$vocabulary:t.optional(t.record(t.string(),t.boolean())),$comment:t.optional(t.string()),$anchor:t.optional(t.string()),$dynamicRef:t.optional(t.string()),$dynamicAnchor:t.optional(t.string()),name:t.optional(t.string()),version:t.optional(t.union([t.string(),t.number()])),title:t.optional(t.string()),description:t.optional(t.string()),docs:t.optional(t.string()),examples:t.optional(t.array(o)),alias:t.optional(t.array(t.string())),tags:t.optional(t.array(t.string())),deprecated:t.optional(a),hidden:t.optional(t.boolean()),ignore:t.optional(t.boolean()),internal:t.optional(t.boolean()),runtime:t.optional(t.boolean()),readOnly:t.optional(t.boolean()),writeOnly:t.optional(t.boolean())}),d=t.lazy(()=>{let e=t.object({type:t.literal(`array`),prefixItems:t.tuple([d,d]),items:t.optional(t.literal(!1)),minItems:t.literal(2),maxItems:t.literal(2)}),a=t.object({...u.entries,$ref:t.optional(t.string()),$defs:t.optional(t.record(t.string(),d)),type:t.optional(t.union([n,t.array(n)])),const:t.optional(t.unknown()),enum:t.optional(t.array(r)),format:t.optional(t.string()),default:t.optional(t.unknown()),allOf:t.optional(t.array(d)),anyOf:t.optional(t.array(d)),oneOf:t.optional(t.array(d)),not:t.optional(d),if:t.optional(d),then:t.optional(d),else:t.optional(d),properties:t.optional(t.record(t.string(),d)),patternProperties:t.optional(t.record(t.string(),d)),additionalProperties:t.optional(t.union([t.boolean(),d])),required:t.optional(t.array(t.string())),propertyNames:t.optional(d),dependencies:t.optional(t.record(t.string(),t.union([t.array(t.string()),d]))),dependentRequired:t.optional(t.record(t.string(),t.array(t.string()))),dependentSchemas:t.optional(t.record(t.string(),d)),minProperties:t.optional(s),maxProperties:t.optional(s),primaryKey:t.optional(t.array(t.string())),databaseSchema:t.optional(t.string()),unevaluatedProperties:t.optional(t.union([t.boolean(),d])),prefixItems:t.optional(t.array(d)),items:t.optional(t.union([d,e])),contains:t.optional(d),minItems:t.optional(s),maxItems:t.optional(s),uniqueItems:t.optional(t.boolean()),minContains:t.optional(s),maxContains:t.optional(s),unevaluatedItems:t.optional(t.union([t.boolean(),d])),minLength:t.optional(s),maxLength:t.optional(s),pattern:t.optional(t.string()),contentMediaType:t.optional(t.string()),contentEncoding:t.optional(t.string()),contentSchema:t.optional(t.string()),minimum:t.optional(i),maximum:t.optional(i),exclusiveMinimum:t.optional(i),exclusiveMaximum:t.optional(i),multipleOf:t.optional(i)});return t.union([c,a])});exports.jsonSchema=d,exports.refOr=l,exports.referenceSchema=c;
@@ -0,0 +1,14 @@
1
+ import { i as JsonSchema } from "./types-BmNamqlM.cjs";
2
+ import * as v from "valibot";
3
+
4
+ //#region src/valibot.d.ts
5
+ declare const referenceSchema: v.ObjectSchema<{
6
+ readonly $ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Reference must be a non-empty URI">]>;
7
+ }, undefined>;
8
+ declare function refOr<TSchema extends v.GenericSchema>(schema: TSchema): v.UnionSchema<[v.ObjectSchema<{
9
+ readonly $ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Reference must be a non-empty URI">]>;
10
+ }, undefined>, TSchema], undefined>;
11
+ declare const jsonSchema: v.GenericSchema<JsonSchema>;
12
+ //#endregion
13
+ export { jsonSchema, refOr, referenceSchema };
14
+ //# sourceMappingURL=valibot.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valibot.d.cts","names":[],"sources":["../src/valibot.ts"],"mappings":";;;;cAuDa,eAAA,EAAe,CAAA,CAAA,YAAA;EAAA;;iBAIZ,KAAA,iBAAsB,CAAA,CAAE,aAAA,EAAe,MAAA,EAAQ,OAAA,GAAO,CAAA,CAAA,WAAA,EAAA,CAAA,CAAA,YAAA;EAAA;;cA6BzD,UAAA,EAAY,CAAA,CAAE,aAAa,CAAC,UAAA"}
@@ -0,0 +1,14 @@
1
+ import { i as JsonSchema } from "./types-BawP3FVI.mjs";
2
+ import * as v from "valibot";
3
+
4
+ //#region src/valibot.d.ts
5
+ declare const referenceSchema: v.ObjectSchema<{
6
+ readonly $ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Reference must be a non-empty URI">]>;
7
+ }, undefined>;
8
+ declare function refOr<TSchema extends v.GenericSchema>(schema: TSchema): v.UnionSchema<[v.ObjectSchema<{
9
+ readonly $ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "Reference must be a non-empty URI">]>;
10
+ }, undefined>, TSchema], undefined>;
11
+ declare const jsonSchema: v.GenericSchema<JsonSchema>;
12
+ //#endregion
13
+ export { jsonSchema, refOr, referenceSchema };
14
+ //# sourceMappingURL=valibot.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valibot.d.mts","names":[],"sources":["../src/valibot.ts"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{r as e}from"./constants-lk1mMbgx.mjs";import*as t from"valibot";const n=t.picklist(e),r=t.union([t.string(),t.number(),t.bigint(),t.boolean(),t.null()]),i=t.union([t.number(),t.bigint()]),a=t.union([t.boolean(),t.string(),t.object({message:t.optional(t.string()),since:t.optional(t.string()),alternative:t.optional(t.string())})]),o=t.union([t.unknown(),t.object({name:t.optional(t.string()),description:t.optional(t.string()),value:t.unknown()})]),s=t.pipe(t.number(),t.integer(),t.minValue(0)),c=t.object({$ref:t.pipe(t.string(),t.minLength(1,`Reference must be a non-empty URI`))});function l(e){return t.union([c,e])}const u=t.object({$id:t.optional(t.string()),$schema:t.optional(t.string()),$vocabulary:t.optional(t.record(t.string(),t.boolean())),$comment:t.optional(t.string()),$anchor:t.optional(t.string()),$dynamicRef:t.optional(t.string()),$dynamicAnchor:t.optional(t.string()),name:t.optional(t.string()),version:t.optional(t.union([t.string(),t.number()])),title:t.optional(t.string()),description:t.optional(t.string()),docs:t.optional(t.string()),examples:t.optional(t.array(o)),alias:t.optional(t.array(t.string())),tags:t.optional(t.array(t.string())),deprecated:t.optional(a),hidden:t.optional(t.boolean()),ignore:t.optional(t.boolean()),internal:t.optional(t.boolean()),runtime:t.optional(t.boolean()),readOnly:t.optional(t.boolean()),writeOnly:t.optional(t.boolean())}),d=t.lazy(()=>{let e=t.object({type:t.literal(`array`),prefixItems:t.tuple([d,d]),items:t.optional(t.literal(!1)),minItems:t.literal(2),maxItems:t.literal(2)}),a=t.object({...u.entries,$ref:t.optional(t.string()),$defs:t.optional(t.record(t.string(),d)),type:t.optional(t.union([n,t.array(n)])),const:t.optional(t.unknown()),enum:t.optional(t.array(r)),format:t.optional(t.string()),default:t.optional(t.unknown()),allOf:t.optional(t.array(d)),anyOf:t.optional(t.array(d)),oneOf:t.optional(t.array(d)),not:t.optional(d),if:t.optional(d),then:t.optional(d),else:t.optional(d),properties:t.optional(t.record(t.string(),d)),patternProperties:t.optional(t.record(t.string(),d)),additionalProperties:t.optional(t.union([t.boolean(),d])),required:t.optional(t.array(t.string())),propertyNames:t.optional(d),dependencies:t.optional(t.record(t.string(),t.union([t.array(t.string()),d]))),dependentRequired:t.optional(t.record(t.string(),t.array(t.string()))),dependentSchemas:t.optional(t.record(t.string(),d)),minProperties:t.optional(s),maxProperties:t.optional(s),primaryKey:t.optional(t.array(t.string())),databaseSchema:t.optional(t.string()),unevaluatedProperties:t.optional(t.union([t.boolean(),d])),prefixItems:t.optional(t.array(d)),items:t.optional(t.union([d,e])),contains:t.optional(d),minItems:t.optional(s),maxItems:t.optional(s),uniqueItems:t.optional(t.boolean()),minContains:t.optional(s),maxContains:t.optional(s),unevaluatedItems:t.optional(t.union([t.boolean(),d])),minLength:t.optional(s),maxLength:t.optional(s),pattern:t.optional(t.string()),contentMediaType:t.optional(t.string()),contentEncoding:t.optional(t.string()),contentSchema:t.optional(t.string()),minimum:t.optional(i),maximum:t.optional(i),exclusiveMinimum:t.optional(i),exclusiveMaximum:t.optional(i),multipleOf:t.optional(i)});return t.union([c,a])});export{d as jsonSchema,l as refOr,c as referenceSchema};
2
+ //# sourceMappingURL=valibot.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valibot.mjs","names":[],"sources":[],"mappings":""}
package/dist/zod.cjs ADDED
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./constants-CwyhgVEl.cjs");let t=require("zod/mini");t=e.c(t,1);const n=t.enum(e.r),r=t.union([t.string(),t.number(),t.bigint(),t.boolean(),t.null()]),i=t.union([t.number(),t.bigint()]),a=t.union([t.boolean(),t.string(),t.object({message:t.optional(t.string()),since:t.optional(t.string()),alternative:t.optional(t.string())})]),o=t.union([t.unknown(),t.object({name:t.optional(t.string()),description:t.optional(t.string()),value:t.unknown()})]),s=t.number().check(t.int(),t.nonnegative()),c=t.object({$ref:t.string().check(t.minLength(1,`Reference must be a non-empty URI`))});function l(e){return t.union([c,e])}const u=t.object({$id:t.optional(t.string()),$schema:t.optional(t.string()),$vocabulary:t.optional(t.record(t.string(),t.boolean())),$comment:t.optional(t.string()),$anchor:t.optional(t.string()),$dynamicRef:t.optional(t.string()),$dynamicAnchor:t.optional(t.string()),name:t.optional(t.string()),version:t.optional(t.union([t.string(),t.number()])),title:t.optional(t.string()),description:t.optional(t.string()),docs:t.optional(t.string()),examples:t.optional(t.array(o)),alias:t.optional(t.array(t.string())),tags:t.optional(t.array(t.string())),deprecated:t.optional(a),hidden:t.optional(t.boolean()),ignore:t.optional(t.boolean()),internal:t.optional(t.boolean()),runtime:t.optional(t.boolean()),readOnly:t.optional(t.boolean()),writeOnly:t.optional(t.boolean())}),d=t.lazy(()=>{let e=t.object({type:t.literal(`array`),prefixItems:t.tuple([d,d]),items:t.optional(t.literal(!1)),minItems:t.literal(2),maxItems:t.literal(2)}),a=t.extend(u,{$ref:t.optional(t.string()),$defs:t.optional(t.record(t.string(),d)),type:t.optional(t.union([n,t.array(n)])),const:t.optional(t.unknown()),enum:t.optional(t.array(r)),format:t.optional(t.string()),default:t.optional(t.unknown()),allOf:t.optional(t.array(d)),anyOf:t.optional(t.array(d)),oneOf:t.optional(t.array(d)),not:t.optional(d),if:t.optional(d),then:t.optional(d),else:t.optional(d),properties:t.optional(t.record(t.string(),d)),patternProperties:t.optional(t.record(t.string(),d)),additionalProperties:t.optional(t.union([t.boolean(),d])),required:t.optional(t.array(t.string())),propertyNames:t.optional(d),dependencies:t.optional(t.record(t.string(),t.union([t.array(t.string()),d]))),dependentRequired:t.optional(t.record(t.string(),t.array(t.string()))),dependentSchemas:t.optional(t.record(t.string(),d)),minProperties:t.optional(s),maxProperties:t.optional(s),primaryKey:t.optional(t.array(t.string())),databaseSchema:t.optional(t.string()),unevaluatedProperties:t.optional(t.union([t.boolean(),d])),prefixItems:t.optional(t.array(d)),items:t.optional(t.union([d,e])),contains:t.optional(d),minItems:t.optional(s),maxItems:t.optional(s),uniqueItems:t.optional(t.boolean()),minContains:t.optional(s),maxContains:t.optional(s),unevaluatedItems:t.optional(t.union([t.boolean(),d])),minLength:t.optional(s),maxLength:t.optional(s),pattern:t.optional(t.string()),contentMediaType:t.optional(t.string()),contentEncoding:t.optional(t.string()),contentSchema:t.optional(t.string()),minimum:t.optional(i),maximum:t.optional(i),exclusiveMinimum:t.optional(i),exclusiveMaximum:t.optional(i),multipleOf:t.optional(i)});return t.union([c,a])});exports.jsonSchema=d,exports.refOr=l,exports.referenceSchema=c;
package/dist/zod.d.cts ADDED
@@ -0,0 +1,14 @@
1
+ import { i as JsonSchema } from "./types-BmNamqlM.cjs";
2
+ import * as z from "zod/mini";
3
+
4
+ //#region src/zod.d.ts
5
+ declare const referenceSchema: z.ZodMiniObject<{
6
+ $ref: z.ZodMiniString<string>;
7
+ }, z.core.$strip>;
8
+ declare function refOr<T extends z.ZodMiniType>(schema: T): z.ZodMiniUnion<readonly [z.ZodMiniObject<{
9
+ $ref: z.ZodMiniString<string>;
10
+ }, z.core.$strip>, T]>;
11
+ declare const jsonSchema: z.ZodMiniType<JsonSchema>;
12
+ //#endregion
13
+ export { jsonSchema, refOr, referenceSchema };
14
+ //# sourceMappingURL=zod.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zod.d.cts","names":[],"sources":["../src/zod.ts"],"mappings":";;;;cAuDa,eAAA,EAAe,CAAA,CAAA,aAAA;;;iBAIZ,KAAA,WAAgB,CAAA,CAAE,WAAA,EAAa,MAAA,EAAQ,CAAA,GAAC,CAAA,CAAA,YAAA,WAAA,CAAA,CAAA,aAAA;;;cA6B3C,UAAA,EAAY,CAAA,CAAE,WAAW,CAAC,UAAA"}
package/dist/zod.d.mts ADDED
@@ -0,0 +1,14 @@
1
+ import { i as JsonSchema } from "./types-BawP3FVI.mjs";
2
+ import * as z from "zod/mini";
3
+
4
+ //#region src/zod.d.ts
5
+ declare const referenceSchema: z.ZodMiniObject<{
6
+ $ref: z.ZodMiniString<string>;
7
+ }, z.core.$strip>;
8
+ declare function refOr<T extends z.ZodMiniType>(schema: T): z.ZodMiniUnion<readonly [z.ZodMiniObject<{
9
+ $ref: z.ZodMiniString<string>;
10
+ }, z.core.$strip>, T]>;
11
+ declare const jsonSchema: z.ZodMiniType<JsonSchema>;
12
+ //#endregion
13
+ export { jsonSchema, refOr, referenceSchema };
14
+ //# sourceMappingURL=zod.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zod.d.mts","names":[],"sources":["../src/zod.ts"],"mappings":""}
package/dist/zod.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import{r as e}from"./constants-lk1mMbgx.mjs";import*as t from"zod/mini";const n=t.enum(e),r=t.union([t.string(),t.number(),t.bigint(),t.boolean(),t.null()]),i=t.union([t.number(),t.bigint()]),a=t.union([t.boolean(),t.string(),t.object({message:t.optional(t.string()),since:t.optional(t.string()),alternative:t.optional(t.string())})]),o=t.union([t.unknown(),t.object({name:t.optional(t.string()),description:t.optional(t.string()),value:t.unknown()})]),s=t.number().check(t.int(),t.nonnegative()),c=t.object({$ref:t.string().check(t.minLength(1,`Reference must be a non-empty URI`))});function l(e){return t.union([c,e])}const u=t.object({$id:t.optional(t.string()),$schema:t.optional(t.string()),$vocabulary:t.optional(t.record(t.string(),t.boolean())),$comment:t.optional(t.string()),$anchor:t.optional(t.string()),$dynamicRef:t.optional(t.string()),$dynamicAnchor:t.optional(t.string()),name:t.optional(t.string()),version:t.optional(t.union([t.string(),t.number()])),title:t.optional(t.string()),description:t.optional(t.string()),docs:t.optional(t.string()),examples:t.optional(t.array(o)),alias:t.optional(t.array(t.string())),tags:t.optional(t.array(t.string())),deprecated:t.optional(a),hidden:t.optional(t.boolean()),ignore:t.optional(t.boolean()),internal:t.optional(t.boolean()),runtime:t.optional(t.boolean()),readOnly:t.optional(t.boolean()),writeOnly:t.optional(t.boolean())}),d=t.lazy(()=>{let e=t.object({type:t.literal(`array`),prefixItems:t.tuple([d,d]),items:t.optional(t.literal(!1)),minItems:t.literal(2),maxItems:t.literal(2)}),a=t.extend(u,{$ref:t.optional(t.string()),$defs:t.optional(t.record(t.string(),d)),type:t.optional(t.union([n,t.array(n)])),const:t.optional(t.unknown()),enum:t.optional(t.array(r)),format:t.optional(t.string()),default:t.optional(t.unknown()),allOf:t.optional(t.array(d)),anyOf:t.optional(t.array(d)),oneOf:t.optional(t.array(d)),not:t.optional(d),if:t.optional(d),then:t.optional(d),else:t.optional(d),properties:t.optional(t.record(t.string(),d)),patternProperties:t.optional(t.record(t.string(),d)),additionalProperties:t.optional(t.union([t.boolean(),d])),required:t.optional(t.array(t.string())),propertyNames:t.optional(d),dependencies:t.optional(t.record(t.string(),t.union([t.array(t.string()),d]))),dependentRequired:t.optional(t.record(t.string(),t.array(t.string()))),dependentSchemas:t.optional(t.record(t.string(),d)),minProperties:t.optional(s),maxProperties:t.optional(s),primaryKey:t.optional(t.array(t.string())),databaseSchema:t.optional(t.string()),unevaluatedProperties:t.optional(t.union([t.boolean(),d])),prefixItems:t.optional(t.array(d)),items:t.optional(t.union([d,e])),contains:t.optional(d),minItems:t.optional(s),maxItems:t.optional(s),uniqueItems:t.optional(t.boolean()),minContains:t.optional(s),maxContains:t.optional(s),unevaluatedItems:t.optional(t.union([t.boolean(),d])),minLength:t.optional(s),maxLength:t.optional(s),pattern:t.optional(t.string()),contentMediaType:t.optional(t.string()),contentEncoding:t.optional(t.string()),contentSchema:t.optional(t.string()),minimum:t.optional(i),maximum:t.optional(i),exclusiveMinimum:t.optional(i),exclusiveMaximum:t.optional(i),multipleOf:t.optional(i)});return t.union([c,a])});export{d as jsonSchema,l as refOr,c as referenceSchema};
2
+ //# sourceMappingURL=zod.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zod.mjs","names":[],"sources":[],"mappings":""}