@warlock.js/seal 5.18.0 → 5.19.0

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 (156) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/esm/config.d.mts +1 -0
  3. package/esm/config.d.mts.map +1 -1
  4. package/esm/factory/validators.d.mts.map +1 -1
  5. package/esm/helpers/get-field-value.d.mts +1 -0
  6. package/esm/helpers/get-field-value.d.mts.map +1 -1
  7. package/esm/helpers/validation-helpers.d.mts +1 -0
  8. package/esm/helpers/validation-helpers.d.mts.map +1 -1
  9. package/esm/mutators/array-mutators.d.mts +1 -0
  10. package/esm/mutators/array-mutators.d.mts.map +1 -1
  11. package/esm/mutators/boolean-mutators.d.mts +1 -0
  12. package/esm/mutators/boolean-mutators.d.mts.map +1 -1
  13. package/esm/mutators/date-mutators.d.mts +1 -0
  14. package/esm/mutators/date-mutators.d.mts.map +1 -1
  15. package/esm/mutators/number-mutators.d.mts +1 -0
  16. package/esm/mutators/number-mutators.d.mts.map +1 -1
  17. package/esm/mutators/object-mutators.d.mts +1 -0
  18. package/esm/mutators/object-mutators.d.mts.map +1 -1
  19. package/esm/mutators/scalar-mutators.d.mts +1 -0
  20. package/esm/mutators/scalar-mutators.d.mts.map +1 -1
  21. package/esm/mutators/string-mutators.d.mts +1 -0
  22. package/esm/mutators/string-mutators.d.mts.map +1 -1
  23. package/esm/rules/array/array-rules.d.mts +1 -0
  24. package/esm/rules/array/array-rules.d.mts.map +1 -1
  25. package/esm/rules/color/color-rules.d.mts +1 -0
  26. package/esm/rules/color/color-rules.d.mts.map +1 -1
  27. package/esm/rules/common/enum.d.mts +1 -0
  28. package/esm/rules/common/enum.d.mts.map +1 -1
  29. package/esm/rules/common/equals-field-rules.d.mts +1 -0
  30. package/esm/rules/common/equals-field-rules.d.mts.map +1 -1
  31. package/esm/rules/common/instanceof.d.mts +1 -0
  32. package/esm/rules/common/instanceof.d.mts.map +1 -1
  33. package/esm/rules/common/literal.d.mts +1 -0
  34. package/esm/rules/common/literal.d.mts.map +1 -1
  35. package/esm/rules/common/type-rules.d.mts +1 -0
  36. package/esm/rules/common/type-rules.d.mts.map +1 -1
  37. package/esm/rules/common/unknown-key.d.mts +1 -0
  38. package/esm/rules/common/unknown-key.d.mts.map +1 -1
  39. package/esm/rules/conditional/forbidden-if-rules.d.mts +1 -0
  40. package/esm/rules/conditional/forbidden-if-rules.d.mts.map +1 -1
  41. package/esm/rules/conditional/present-if-rules.d.mts +1 -0
  42. package/esm/rules/conditional/present-if-rules.d.mts.map +1 -1
  43. package/esm/rules/conditional/present-unless-rules.d.mts +1 -0
  44. package/esm/rules/conditional/present-unless-rules.d.mts.map +1 -1
  45. package/esm/rules/conditional/present-with-rules.d.mts +1 -0
  46. package/esm/rules/conditional/present-with-rules.d.mts.map +1 -1
  47. package/esm/rules/conditional/present-without-rules.d.mts +1 -0
  48. package/esm/rules/conditional/present-without-rules.d.mts.map +1 -1
  49. package/esm/rules/conditional/required-if-rules.d.mts +1 -0
  50. package/esm/rules/conditional/required-if-rules.d.mts.map +1 -1
  51. package/esm/rules/conditional/required-unless-rules.d.mts +1 -0
  52. package/esm/rules/conditional/required-unless-rules.d.mts.map +1 -1
  53. package/esm/rules/conditional/required-when-rule.d.mts +1 -0
  54. package/esm/rules/conditional/required-when-rule.d.mts.map +1 -1
  55. package/esm/rules/conditional/required-with-rules.d.mts +1 -0
  56. package/esm/rules/conditional/required-with-rules.d.mts.map +1 -1
  57. package/esm/rules/conditional/required-without-rules.d.mts +1 -0
  58. package/esm/rules/conditional/required-without-rules.d.mts.map +1 -1
  59. package/esm/rules/core/equal.d.mts +1 -0
  60. package/esm/rules/core/equal.d.mts.map +1 -1
  61. package/esm/rules/core/forbidden.d.mts +1 -0
  62. package/esm/rules/core/forbidden.d.mts.map +1 -1
  63. package/esm/rules/core/required.d.mts +1 -0
  64. package/esm/rules/core/required.d.mts.map +1 -1
  65. package/esm/rules/core/union.d.mts.map +1 -1
  66. package/esm/rules/core/when.d.mts +1 -0
  67. package/esm/rules/core/when.d.mts.map +1 -1
  68. package/esm/rules/date/date-comparison-rules.d.mts +1 -0
  69. package/esm/rules/date/date-comparison-rules.d.mts.map +1 -1
  70. package/esm/rules/date/date-day-rules.d.mts +1 -0
  71. package/esm/rules/date/date-day-rules.d.mts.map +1 -1
  72. package/esm/rules/date/date-field-comparison-rules.d.mts +1 -0
  73. package/esm/rules/date/date-field-comparison-rules.d.mts.map +1 -1
  74. package/esm/rules/date/date-period-rules.d.mts +1 -0
  75. package/esm/rules/date/date-period-rules.d.mts.map +1 -1
  76. package/esm/rules/date/date-relative-rules.d.mts +1 -0
  77. package/esm/rules/date/date-relative-rules.d.mts.map +1 -1
  78. package/esm/rules/date/date-special-rules.d.mts +1 -0
  79. package/esm/rules/date/date-special-rules.d.mts.map +1 -1
  80. package/esm/rules/date/date.d.mts +1 -0
  81. package/esm/rules/date/date.d.mts.map +1 -1
  82. package/esm/rules/file/dimensions.d.mts +1 -0
  83. package/esm/rules/file/dimensions.d.mts.map +1 -1
  84. package/esm/rules/file/file-size.d.mts +1 -0
  85. package/esm/rules/file/file-size.d.mts.map +1 -1
  86. package/esm/rules/length/length-rules.d.mts +1 -0
  87. package/esm/rules/length/length-rules.d.mts.map +1 -1
  88. package/esm/rules/number/number-rules.d.mts +1 -0
  89. package/esm/rules/number/number-rules.d.mts.map +1 -1
  90. package/esm/rules/string/alpha.d.mts +1 -0
  91. package/esm/rules/string/alpha.d.mts.map +1 -1
  92. package/esm/rules/string/credit-card.d.mts +1 -0
  93. package/esm/rules/string/credit-card.d.mts.map +1 -1
  94. package/esm/rules/string/email.d.mts +1 -0
  95. package/esm/rules/string/email.d.mts.map +1 -1
  96. package/esm/rules/string/id-formats.d.mts +1 -0
  97. package/esm/rules/string/id-formats.d.mts.map +1 -1
  98. package/esm/rules/string/ip.d.mts +1 -0
  99. package/esm/rules/string/ip.d.mts.map +1 -1
  100. package/esm/rules/string/matches.d.mts +1 -0
  101. package/esm/rules/string/matches.d.mts.map +1 -1
  102. package/esm/rules/string/pattern.d.mts +1 -0
  103. package/esm/rules/string/pattern.d.mts.map +1 -1
  104. package/esm/rules/string/string-comparison.d.mts +1 -0
  105. package/esm/rules/string/string-comparison.d.mts.map +1 -1
  106. package/esm/rules/string/strong-password-rule.d.mts +1 -0
  107. package/esm/rules/string/strong-password-rule.d.mts.map +1 -1
  108. package/esm/rules/string/url.d.mts +1 -0
  109. package/esm/rules/string/url.d.mts.map +1 -1
  110. package/esm/rules/string/without-whitespace.d.mts +1 -0
  111. package/esm/rules/string/without-whitespace.d.mts.map +1 -1
  112. package/esm/standard-schema/map-result.d.mts +1 -0
  113. package/esm/standard-schema/map-result.d.mts.map +1 -1
  114. package/esm/validators/array-validator.d.mts.map +1 -1
  115. package/esm/validators/base-validator.d.mts +1 -0
  116. package/esm/validators/base-validator.d.mts.map +1 -1
  117. package/esm/validators/computed-validator.d.mts.map +1 -1
  118. package/esm/validators/date-validator.d.mts +1 -0
  119. package/esm/validators/date-validator.d.mts.map +1 -1
  120. package/esm/validators/discriminated-union-validator.d.mts.map +1 -1
  121. package/esm/validators/lazy-validator.d.mts.map +1 -1
  122. package/esm/validators/managed-validator.d.mts.map +1 -1
  123. package/esm/validators/methods/equality-conditional-methods.d.mts +1 -0
  124. package/esm/validators/methods/equality-conditional-methods.d.mts.map +1 -1
  125. package/esm/validators/methods/required-methods.d.mts +1 -0
  126. package/esm/validators/methods/required-methods.d.mts.map +1 -1
  127. package/esm/validators/object-validator.d.mts.map +1 -1
  128. package/esm/validators/record-validator.d.mts.map +1 -1
  129. package/esm/validators/tuple-validator.d.mts.map +1 -1
  130. package/llms-full.txt +9 -9
  131. package/llms.txt +9 -9
  132. package/package.json +1 -1
  133. package/skills/bridge-standard-schema/SKILL.md +1 -1
  134. package/skills/compose-seal-modifiers/SKILL.md +1 -1
  135. package/skills/define-structural-shape/SKILL.md +1 -1
  136. package/skills/extend-seal-with-plugins/SKILL.md +1 -1
  137. package/skills/generate-json-schema/SKILL.md +1 -1
  138. package/skills/handle-seal-errors/SKILL.md +1 -1
  139. package/skills/overview/SKILL.md +1 -1
  140. package/skills/pick-seal-primitive/SKILL.md +1 -1
  141. package/skills/seal-basics/SKILL.md +1 -1
  142. package/esm/helpers/index.d.mts +0 -5
  143. package/esm/mutators/index.d.mts +0 -7
  144. package/esm/rules/array/index.d.mts +0 -1
  145. package/esm/rules/color/index.d.mts +0 -1
  146. package/esm/rules/common/index.d.mts +0 -6
  147. package/esm/rules/conditional/index.d.mts +0 -10
  148. package/esm/rules/core/index.d.mts +0 -5
  149. package/esm/rules/date/index.d.mts +0 -7
  150. package/esm/rules/file/index.d.mts +0 -2
  151. package/esm/rules/index.d.mts +0 -45
  152. package/esm/rules/length/index.d.mts +0 -1
  153. package/esm/rules/number/index.d.mts +0 -1
  154. package/esm/rules/string/index.d.mts +0 -11
  155. package/esm/standard-schema/index.d.mts +0 -3
  156. package/esm/types/index.d.mts +0 -10
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: overview
3
- description: 'Front-door orientation for `@warlock.js/seal` — framework-agnostic, type-safe validation. The `v` factory builds schemas, `validate(schema, data)` runs them, `Infer<typeof schema>` extracts the type. Primitives, structural shapes (object/array/record/tuple/union/discriminatedUnion/lazy), modifiers, mutators, a plugin system, JSON-Schema export, and a Standard Schema bridge. TRIGGER when: code imports `v`, `validate`, or `Infer` from `@warlock.js/seal`; user asks "what does @warlock.js/seal do", "validation library for Warlock", "compare seal with zod / yup / valibot", "infer a type from a schema", "JSON schema from a validator", "Standard Schema interop"; package.json adds `@warlock.js/seal`. Skip: specific task already known — load the matching task skill directly (`seal-basics`, `pick-seal-primitive`, `define-structural-shape`, `compose-seal-modifiers`, `handle-seal-errors`, `generate-json-schema`, `bridge-standard-schema`, `extend-seal-with-plugins`); framework-specific validators (FileValidator, database rules) live in `@warlock.js/core/v`, not here.'
3
+ description: "@warlock.js/seal overview for orientation and choosing the focused skill for the task."
4
4
  ---
5
5
 
6
6
  # `@warlock.js/seal` — overview
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: pick-seal-primitive
3
- description: 'Pick the right `v` factory primitive — string / int / literal / date / enum / computed / managed / instanceof / any. Triggers: `v.string`, `v.email`, `v.number`, `v.int`, `v.float`, `v.numeric`, `v.boolean`, `v.scalar`, `v.date`, `v.literal`, `v.enum`, `v.instanceof`, `v.computed`, `v.managed`, `v.any`; "v.string vs v.scalar", "v.literal vs v.enum", "v.date vs v.instanceof(Date)", "what is v.computed"; typical import `import { v } from "@warlock.js/seal"`. Skip: structural shapes — `@warlock.js/seal/define-structural-shape/SKILL.md`; modifiers — `@warlock.js/seal/compose-seal-modifiers/SKILL.md`; competing libs `zod`, `valibot`, `yup`.'
3
+ description: "Picking the right primitive in @warlock.js/seal; use when you need to choose seal primitive."
4
4
  ---
5
5
 
6
6
  # Picking the right primitive
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: seal-basics
3
- description: 'Start with @warlock.js/seal — the `v` factory, `validate(schema, data)`, and `Infer<typeof schema>`. Triggers: `v`, `validate`, `Infer`, `Infer.Input`, `Infer.Output`, `v.object`, `v.lazy`, `v.discriminatedUnion`, `v.computed`, `v.managed`, `ValidationResult`; "how do I start with seal", "what is the v factory", "validate a schema in warlock", "Infer.Input vs Infer.Output"; typical import `import { v, validate, type Infer } from "@warlock.js/seal"`. Skip: primitive picking — `@warlock.js/seal/pick-seal-primitive/SKILL.md`; modifiers — `@warlock.js/seal/compose-seal-modifiers/SKILL.md`; competing libs `zod`, `valibot`, `yup`, `joi`, `ajv`.'
3
+ description: "Start here for @warlock.js/seal schemas, validation, parsing, and typed structural contracts."
4
4
  ---
5
5
 
6
6
  # Validate with seal
@@ -1,5 +0,0 @@
1
- import { isDateValue } from "./date-helpers.mjs";
2
- import { humanizeSize, resolveFileSize } from "./file.utils.mjs";
3
- import { getFieldValue } from "./get-field-value.mjs";
4
- import { setKeyPath } from "./path-helpers.mjs";
5
- import { VALID_RULE, invalidRule, resolveTranslation } from "./validation-helpers.mjs";
@@ -1,7 +0,0 @@
1
- import { flipArrayMutator, removeEmptyArrayElementsMutator, reverseArrayMutator, sortArrayMutator, uniqueArrayMutator } from "./array-mutators.mjs";
2
- import { booleanCoerceMutator, formBooleanMutator } from "./boolean-mutators.mjs";
3
- import { addDaysMutator, addHoursMutator, addMonthsMutator, addYearsMutator, dateMutator, toDateOnlyMutator, toEndOfDayMutator, toEndOfMonthMutator, toEndOfYearMutator, toFormatMutator, toISOStringMutator, toStartOfDayMutator, toStartOfMonthMutator, toStartOfYearMutator, toTimeOnlyMutator, toTimestampMutator, toUTCMutator } from "./date-mutators.mjs";
4
- import { absMutator, booleanMutator, ceilMutator, floorMutator, numberMutator, numericMutator, roundMutator, roundNumberMutator, toFixedMutator } from "./number-mutators.mjs";
5
- import { jsonMutator, objectTrimMutator, stripUnknownMutator } from "./object-mutators.mjs";
6
- import { stringMutator } from "./scalar-mutators.mjs";
7
- import { alphaOnlyMutator, alphanumericOnlyMutator, appendMutator, base64DecodeMutator, base64EncodeMutator, camelCaseMutator, capitalizeMutator, htmlEscapeMutator, kebabCaseMutator, lowercaseMutator, ltrimMutator, maskMutator, padEndMutator, padStartMutator, pascalCaseMutator, prependMutator, removeNumbersMutator, removeSpecialCharactersMutator, repeatMutator, replaceAllMutator, replaceMutator, reverseMutator, rtrimMutator, safeHtmlMutator, slugMutator, snakeCaseMutator, stringifyMutator, stripTagsMutator, titleCaseMutator, trimMultipleWhitespaceMutator, trimMutator, truncateMutator, unescapeHtmlMutator, uppercaseMutator, urlDecodeMutator, urlEncodeMutator } from "./string-mutators.mjs";
@@ -1 +0,0 @@
1
- import { sortedArrayRule, uniqueArrayRule } from "./array-rules.mjs";
@@ -1 +0,0 @@
1
- import { colorRule, darkColorRule, hexColorRule, hslColorRule, lightColorRule, rgbColorRule, rgbaColorRule } from "./color-rules.mjs";
@@ -1,6 +0,0 @@
1
- import { allowedValuesRule, enumRule, inRule, notAllowedValuesRule } from "./enum.mjs";
2
- import { equalsFieldRule, notEqualsFieldRule } from "./equals-field-rules.mjs";
3
- import { instanceofRule } from "./instanceof.mjs";
4
- import { literalRule } from "./literal.mjs";
5
- import { arrayRule, booleanRule, floatRule, intRule, numberRule, objectRule, plainObjectRule, scalarRule, stringRule } from "./type-rules.mjs";
6
- import { unknownKeyRule } from "./unknown-key.mjs";
@@ -1,10 +0,0 @@
1
- import { requiredIfAllEmptyRule, requiredIfAllNotEmptyRule, requiredIfAnyEmptyRule, requiredIfAnyNotEmptyRule, requiredIfEmptyRule, requiredIfInRule, requiredIfNotEmptyRule, requiredIfNotInRule, requiredIfRule } from "./required-if-rules.mjs";
2
- import { requiredUnlessRule } from "./required-unless-rules.mjs";
3
- import { requiredWhenRule } from "./required-when-rule.mjs";
4
- import { requiredWithAllRule, requiredWithAnyRule, requiredWithRule } from "./required-with-rules.mjs";
5
- import { requiredWithoutAllRule, requiredWithoutAnyRule, requiredWithoutRule } from "./required-without-rules.mjs";
6
- import { presentIfEmptyRule, presentIfInRule, presentIfNotEmptyRule, presentIfNotInRule, presentIfRule } from "./present-if-rules.mjs";
7
- import { presentUnlessRule } from "./present-unless-rules.mjs";
8
- import { presentWithAllRule, presentWithAnyRule, presentWithRule } from "./present-with-rules.mjs";
9
- import { presentWithoutAllRule, presentWithoutAnyRule, presentWithoutRule } from "./present-without-rules.mjs";
10
- import { forbiddenIfEmptyRule, forbiddenIfInRule, forbiddenIfNotEmptyRule, forbiddenIfNotInRule, forbiddenIfNotRule, forbiddenIfRule } from "./forbidden-if-rules.mjs";
@@ -1,5 +0,0 @@
1
- import { equalRule } from "./equal.mjs";
2
- import { forbiddenRule } from "./forbidden.mjs";
3
- import { presentRule, requiredRule } from "./required.mjs";
4
- import { unionRule } from "./union.mjs";
5
- import { whenRule } from "./when.mjs";
@@ -1,7 +0,0 @@
1
- import { ageRule, beforeHourRule, beforeMinuteRule, beforeTodayRule, betweenHoursRule, betweenMinutesRule, dateRule, fromHourRule, fromMinuteRule, fromTodayRule, maxAgeRule, maxDateRule, minAgeRule, minDateRule, weekDayRule } from "./date.mjs";
2
- import { afterTodayRule, betweenDatesRule, futureRule, pastRule, todayRule } from "./date-comparison-rules.mjs";
3
- import { businessDayRule, weekdayRule, weekdaysRule, weekendRule } from "./date-day-rules.mjs";
4
- import { afterFieldRule, beforeFieldRule, sameAsFieldDateRule } from "./date-field-comparison-rules.mjs";
5
- import { Month, betweenDaysRule, betweenMonthsRule, betweenTimesRule, betweenYearsRule, maxDayRule, maxMonthRule, maxYearRule, minDayRule, minMonthRule, minYearRule, monthRule, quarterRule, yearRule } from "./date-period-rules.mjs";
6
- import { withinDaysRule, withinFutureDaysRule, withinPastDaysRule } from "./date-relative-rules.mjs";
7
- import { betweenAgeRule, birthdayRule, leapYearRule } from "./date-special-rules.mjs";
@@ -1,2 +0,0 @@
1
- import { maxHeightRule, maxWidthRule, minHeightRule, minWidthRule } from "./dimensions.mjs";
2
- import { maxFileSizeRule, minFileSizeRule } from "./file-size.mjs";
@@ -1,45 +0,0 @@
1
- import { equalRule } from "./core/equal.mjs";
2
- import { forbiddenRule } from "./core/forbidden.mjs";
3
- import { presentRule, requiredRule } from "./core/required.mjs";
4
- import { unionRule } from "./core/union.mjs";
5
- import { whenRule } from "./core/when.mjs";
6
- import { alphaNumericRule, alphaRule, isNumericRule } from "./string/alpha.mjs";
7
- import { isCreditCardRule } from "./string/credit-card.mjs";
8
- import { emailRule } from "./string/email.mjs";
9
- import { UUIDVersion, cuidRule, nanoidRule, ulidRule, uuidRule } from "./string/id-formats.mjs";
10
- import { ip4Rule, ip6Rule, ipRule, isIP, isIPv4, isIPv6 } from "./string/ip.mjs";
11
- import { matchesRule } from "./string/matches.mjs";
12
- import { patternRule } from "./string/pattern.mjs";
13
- import { containsRule, endsWithRule, notContainsRule, startsWithRule } from "./string/string-comparison.mjs";
14
- import { strongPasswordRule } from "./string/strong-password-rule.mjs";
15
- import { urlRule } from "./string/url.mjs";
16
- import { withoutWhitespaceRule } from "./string/without-whitespace.mjs";
17
- import { betweenNumbersRule, evenRule, greaterThanRule, lessThanRule, maxRule, minRule, moduloRule, negativeRule, oddRule, positiveRule } from "./number/number-rules.mjs";
18
- import { betweenLengthRule, lengthRule, maxLengthRule, maxWordsRule, minLengthRule, minWordsRule, wordsRule } from "./length/length-rules.mjs";
19
- import { sortedArrayRule, uniqueArrayRule } from "./array/array-rules.mjs";
20
- import { ageRule, beforeHourRule, beforeMinuteRule, beforeTodayRule, betweenHoursRule, betweenMinutesRule, dateRule, fromHourRule, fromMinuteRule, fromTodayRule, maxAgeRule, maxDateRule, minAgeRule, minDateRule, weekDayRule } from "./date/date.mjs";
21
- import { afterTodayRule, betweenDatesRule, futureRule, pastRule, todayRule } from "./date/date-comparison-rules.mjs";
22
- import { businessDayRule, weekdayRule, weekdaysRule, weekendRule } from "./date/date-day-rules.mjs";
23
- import { afterFieldRule, beforeFieldRule, sameAsFieldDateRule } from "./date/date-field-comparison-rules.mjs";
24
- import { Month, betweenDaysRule, betweenMonthsRule, betweenTimesRule, betweenYearsRule, maxDayRule, maxMonthRule, maxYearRule, minDayRule, minMonthRule, minYearRule, monthRule, quarterRule, yearRule } from "./date/date-period-rules.mjs";
25
- import { withinDaysRule, withinFutureDaysRule, withinPastDaysRule } from "./date/date-relative-rules.mjs";
26
- import { betweenAgeRule, birthdayRule, leapYearRule } from "./date/date-special-rules.mjs";
27
- import { maxHeightRule, maxWidthRule, minHeightRule, minWidthRule } from "./file/dimensions.mjs";
28
- import { maxFileSizeRule, minFileSizeRule } from "./file/file-size.mjs";
29
- import { colorRule, darkColorRule, hexColorRule, hslColorRule, lightColorRule, rgbColorRule, rgbaColorRule } from "./color/color-rules.mjs";
30
- import { requiredIfAllEmptyRule, requiredIfAllNotEmptyRule, requiredIfAnyEmptyRule, requiredIfAnyNotEmptyRule, requiredIfEmptyRule, requiredIfInRule, requiredIfNotEmptyRule, requiredIfNotInRule, requiredIfRule } from "./conditional/required-if-rules.mjs";
31
- import { requiredUnlessRule } from "./conditional/required-unless-rules.mjs";
32
- import { requiredWhenRule } from "./conditional/required-when-rule.mjs";
33
- import { requiredWithAllRule, requiredWithAnyRule, requiredWithRule } from "./conditional/required-with-rules.mjs";
34
- import { requiredWithoutAllRule, requiredWithoutAnyRule, requiredWithoutRule } from "./conditional/required-without-rules.mjs";
35
- import { presentIfEmptyRule, presentIfInRule, presentIfNotEmptyRule, presentIfNotInRule, presentIfRule } from "./conditional/present-if-rules.mjs";
36
- import { presentUnlessRule } from "./conditional/present-unless-rules.mjs";
37
- import { presentWithAllRule, presentWithAnyRule, presentWithRule } from "./conditional/present-with-rules.mjs";
38
- import { presentWithoutAllRule, presentWithoutAnyRule, presentWithoutRule } from "./conditional/present-without-rules.mjs";
39
- import { forbiddenIfEmptyRule, forbiddenIfInRule, forbiddenIfNotEmptyRule, forbiddenIfNotInRule, forbiddenIfNotRule, forbiddenIfRule } from "./conditional/forbidden-if-rules.mjs";
40
- import { allowedValuesRule, enumRule, inRule, notAllowedValuesRule } from "./common/enum.mjs";
41
- import { equalsFieldRule, notEqualsFieldRule } from "./common/equals-field-rules.mjs";
42
- import { instanceofRule } from "./common/instanceof.mjs";
43
- import { literalRule } from "./common/literal.mjs";
44
- import { arrayRule, booleanRule, floatRule, intRule, numberRule, objectRule, plainObjectRule, scalarRule, stringRule } from "./common/type-rules.mjs";
45
- import { unknownKeyRule } from "./common/unknown-key.mjs";
@@ -1 +0,0 @@
1
- import { betweenLengthRule, lengthRule, maxLengthRule, maxWordsRule, minLengthRule, minWordsRule, wordsRule } from "./length-rules.mjs";
@@ -1 +0,0 @@
1
- import { betweenNumbersRule, evenRule, greaterThanRule, lessThanRule, maxRule, minRule, moduloRule, negativeRule, oddRule, positiveRule } from "./number-rules.mjs";
@@ -1,11 +0,0 @@
1
- import { alphaNumericRule, alphaRule, isNumericRule } from "./alpha.mjs";
2
- import { isCreditCardRule } from "./credit-card.mjs";
3
- import { emailRule } from "./email.mjs";
4
- import { UUIDVersion, cuidRule, nanoidRule, ulidRule, uuidRule } from "./id-formats.mjs";
5
- import { ip4Rule, ip6Rule, ipRule, isIP, isIPv4, isIPv6 } from "./ip.mjs";
6
- import { matchesRule } from "./matches.mjs";
7
- import { patternRule } from "./pattern.mjs";
8
- import { containsRule, endsWithRule, notContainsRule, startsWithRule } from "./string-comparison.mjs";
9
- import { strongPasswordRule } from "./strong-password-rule.mjs";
10
- import { urlRule } from "./url.mjs";
11
- import { withoutWhitespaceRule } from "./without-whitespace.mjs";
@@ -1,3 +0,0 @@
1
- import { StandardJSONSchemaV1, StandardSchemaV1 } from "./types.mjs";
2
- import { JsonSchemaResult, JsonSchemaTarget, applyNullable, getRuleOptions, wrapNullableStrict } from "./json-schema.mjs";
3
- import { mapToStandardResult } from "./map-result.mjs";
@@ -1,10 +0,0 @@
1
- import { Schema } from "./schema-types.mjs";
2
- import { ContextualSchemaRule, RuleResult, SchemaRule, SchemaRuleOptions, ValidationAttributesList } from "./rule-types.mjs";
3
- import { AttributeTranslation, RuleTranslation, SchemaContext } from "./context-types.mjs";
4
- import { ValidationResult } from "./result-types.mjs";
5
- import { ContextualizedMutator, Mutator, MutatorContext } from "./mutator-types.mjs";
6
- import { WhenRuleOptions } from "./conditional-types.mjs";
7
- import { ContextualizedTransformer, SimpleTransformerCallback, TransformerCallback } from "./data-transformer-types.mjs";
8
- import { Infer, InferInput, InferInputObjectShape, InferObjectShape, InferOutput, InferOutputObjectShape, IsInputOptionalKey, IsOptionalKey, IsOutputOptionalKey } from "./inference-types.mjs";
9
- import { WEEK_DAYS, WeekDay } from "./date-types.mjs";
10
- import { FileSizeOption } from "./file.types.mjs";