@loomhelm/multi-task-flow 0.2.6 → 0.2.8

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 (1090) hide show
  1. package/README.md +12 -8
  2. package/package.json +2 -12
  3. package/src/build-info.ts +4 -2
  4. package/src/cli/release.ts +4 -40
  5. package/src/release-tarball.ts +1 -1
  6. package/src/release.ts +7 -1
  7. package/src/runtime-identity.ts +4 -2
  8. package/src/toolkit.ts +71 -15
  9. package/toolkit/artifact-manifest.json +609 -4208
  10. package/toolkit/package.json +1 -1
  11. package/toolkit/skills/docs/vendor/dot-codex/design/multi-task-flow/data-and-scripts.md +77 -23
  12. package/toolkit/skills/docs-migrate/scripts/_runtime/compatibility_cli.ts +12 -0
  13. package/toolkit/skills/docs-migrate/scripts/_runtime/compatibility_docs.ts +115 -0
  14. package/toolkit/skills/docs-migrate/scripts/_runtime/compatibility_shared.ts +230 -0
  15. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/checks/replay.ts +336 -0
  16. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/git.ts +54 -0
  17. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/hardware_ingest.ts +377 -0
  18. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/hardware_locks.ts +181 -0
  19. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/legacy_spec_id.ts +131 -0
  20. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/migration_common.ts +291 -0
  21. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/next_plan.ts +199 -0
  22. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/next_plan_support.ts +245 -0
  23. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/spec_contract.ts +299 -0
  24. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/spec_drift.ts +387 -0
  25. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/spec_drift_helpers.ts +381 -0
  26. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/spec_drift_legacy.ts +376 -0
  27. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/spec_drift_paths.ts +3 -0
  28. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/spec_drift_types.ts +27 -0
  29. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/spec_drift_validation.ts +251 -0
  30. package/toolkit/skills/docs-migrate/scripts/_runtime/modules/docs/spec_migration.ts +191 -0
  31. package/toolkit/skills/docs-migrate/scripts/gen_legacy_spec_id.ts +1 -1
  32. package/toolkit/skills/docs-migrate/scripts/specs_migrate_guard.ts +1 -1
  33. package/toolkit/skills/find-next-plan/scripts/_runtime/compatibility_cli.ts +12 -0
  34. package/toolkit/skills/find-next-plan/scripts/_runtime/compatibility_docs.ts +115 -0
  35. package/toolkit/skills/find-next-plan/scripts/_runtime/compatibility_shared.ts +230 -0
  36. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/checks/replay.ts +336 -0
  37. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/git.ts +54 -0
  38. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/hardware_ingest.ts +377 -0
  39. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/hardware_locks.ts +181 -0
  40. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/legacy_spec_id.ts +131 -0
  41. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/migration_common.ts +291 -0
  42. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/next_plan.ts +199 -0
  43. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/next_plan_support.ts +245 -0
  44. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/spec_contract.ts +299 -0
  45. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/spec_drift.ts +387 -0
  46. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/spec_drift_helpers.ts +381 -0
  47. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/spec_drift_legacy.ts +376 -0
  48. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/spec_drift_paths.ts +3 -0
  49. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/spec_drift_types.ts +27 -0
  50. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/spec_drift_validation.ts +251 -0
  51. package/toolkit/skills/find-next-plan/scripts/_runtime/modules/docs/spec_migration.ts +191 -0
  52. package/toolkit/skills/find-next-plan/scripts/find_next_plan.ts +1 -1
  53. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/compatibility_cli.ts +12 -0
  54. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/compatibility_docs.ts +115 -0
  55. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/compatibility_shared.ts +230 -0
  56. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/checks/replay.ts +336 -0
  57. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/git.ts +54 -0
  58. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/hardware_ingest.ts +377 -0
  59. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/hardware_locks.ts +181 -0
  60. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/legacy_spec_id.ts +131 -0
  61. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/migration_common.ts +291 -0
  62. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/next_plan.ts +199 -0
  63. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/next_plan_support.ts +245 -0
  64. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/spec_contract.ts +299 -0
  65. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/spec_drift.ts +387 -0
  66. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/spec_drift_helpers.ts +381 -0
  67. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/spec_drift_legacy.ts +376 -0
  68. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/spec_drift_paths.ts +3 -0
  69. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/spec_drift_types.ts +27 -0
  70. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/spec_drift_validation.ts +251 -0
  71. package/toolkit/skills/hardware-doc-ingest/scripts/_runtime/modules/docs/spec_migration.ts +191 -0
  72. package/toolkit/skills/hardware-doc-ingest/scripts/ingest_mineru_extract.ts +1 -1
  73. package/toolkit/skills/hardware-doc-ingest/scripts/verify_doc_locks.ts +1 -1
  74. package/toolkit/skills/multi-task-flow/dist/app.css +1 -1
  75. package/toolkit/skills/multi-task-flow/dist/app.js +45 -45
  76. package/toolkit/skills/multi-task-flow/lib/atomic-orchestration.ts +25 -3
  77. package/toolkit/skills/multi-task-flow/lib/engine.ts +71 -10
  78. package/toolkit/skills/multi-task-flow/lib/view.ts +115 -13
  79. package/toolkit/skills/multi-task-flow/scripts/package-client-skills.ts +24 -153
  80. package/toolkit/skills/multi-task-flow/scripts/preview-source.ts +3 -0
  81. package/toolkit/skills/multi-task-flow/tests/atomic-orchestration-schema.test.ts +35 -0
  82. package/toolkit/skills/multi-task-flow/tests/engine.test.ts +339 -0
  83. package/toolkit/skills/multi-task-flow/tests/source-preview.test.ts +29 -0
  84. package/toolkit/skills/multi-task-flow/tests/ui/details-content.test.ts +22 -0
  85. package/toolkit/skills/multi-task-flow/tests/view.test.ts +149 -0
  86. package/toolkit/skills/multi-task-flow/web/app.css +4 -0
  87. package/toolkit/skills/multi-task-flow/web/app.ts +11 -3
  88. package/toolkit/skills/multi-task-flow/web/atomic-graph-view.tsx +1 -1
  89. package/toolkit/skills/multi-task-flow/web/details-content.ts +7 -2
  90. package/toolkit/skills/multi-task-flow/web/graph-layout.ts +3 -3
  91. package/toolkit/skills/source-manifest.json +330 -26
  92. package/toolkit/skills/spec-sync/SKILL.md +1 -1
  93. package/toolkit/skills/spec-sync/scripts/_runtime/compatibility_cli.ts +12 -0
  94. package/toolkit/skills/spec-sync/scripts/_runtime/compatibility_docs.ts +115 -0
  95. package/toolkit/skills/spec-sync/scripts/_runtime/compatibility_shared.ts +230 -0
  96. package/toolkit/skills/spec-sync/scripts/_runtime/modules/checks/replay.ts +336 -0
  97. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/git.ts +54 -0
  98. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/hardware_ingest.ts +377 -0
  99. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/hardware_locks.ts +181 -0
  100. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/legacy_spec_id.ts +131 -0
  101. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/migration_common.ts +291 -0
  102. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/next_plan.ts +199 -0
  103. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/next_plan_support.ts +245 -0
  104. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/spec_contract.ts +299 -0
  105. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/spec_drift.ts +387 -0
  106. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/spec_drift_helpers.ts +381 -0
  107. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/spec_drift_legacy.ts +376 -0
  108. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/spec_drift_paths.ts +3 -0
  109. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/spec_drift_types.ts +27 -0
  110. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/spec_drift_validation.ts +251 -0
  111. package/toolkit/skills/spec-sync/scripts/_runtime/modules/docs/spec_migration.ts +191 -0
  112. package/toolkit/skills/spec-sync/scripts/spec_drift_check.ts +1 -1
  113. package/toolkit/skills/support-manifest.json +77 -1
  114. package/toolkit/skills/multi-task-flow/node_modules/zod/LICENSE +0 -21
  115. package/toolkit/skills/multi-task-flow/node_modules/zod/README.md +0 -218
  116. package/toolkit/skills/multi-task-flow/node_modules/zod/compile.cjs +0 -96
  117. package/toolkit/skills/multi-task-flow/node_modules/zod/compile.d.cts +0 -1
  118. package/toolkit/skills/multi-task-flow/node_modules/zod/compile.d.ts +0 -1
  119. package/toolkit/skills/multi-task-flow/node_modules/zod/compile.js +0 -52
  120. package/toolkit/skills/multi-task-flow/node_modules/zod/index.cjs +0 -52
  121. package/toolkit/skills/multi-task-flow/node_modules/zod/index.d.cts +0 -3
  122. package/toolkit/skills/multi-task-flow/node_modules/zod/index.d.ts +0 -3
  123. package/toolkit/skills/multi-task-flow/node_modules/zod/index.js +0 -7
  124. package/toolkit/skills/multi-task-flow/node_modules/zod/locales/index.cjs +0 -36
  125. package/toolkit/skills/multi-task-flow/node_modules/zod/locales/index.d.cts +0 -1
  126. package/toolkit/skills/multi-task-flow/node_modules/zod/locales/index.d.ts +0 -1
  127. package/toolkit/skills/multi-task-flow/node_modules/zod/locales/index.js +0 -1
  128. package/toolkit/skills/multi-task-flow/node_modules/zod/locales/package.json +0 -7
  129. package/toolkit/skills/multi-task-flow/node_modules/zod/mini/index.cjs +0 -51
  130. package/toolkit/skills/multi-task-flow/node_modules/zod/mini/index.d.cts +0 -3
  131. package/toolkit/skills/multi-task-flow/node_modules/zod/mini/index.d.ts +0 -3
  132. package/toolkit/skills/multi-task-flow/node_modules/zod/mini/index.js +0 -3
  133. package/toolkit/skills/multi-task-flow/node_modules/zod/mini/package.json +0 -7
  134. package/toolkit/skills/multi-task-flow/node_modules/zod/package.json +0 -147
  135. package/toolkit/skills/multi-task-flow/node_modules/zod/src/compile.ts +0 -56
  136. package/toolkit/skills/multi-task-flow/node_modules/zod/src/index.ts +0 -7
  137. package/toolkit/skills/multi-task-flow/node_modules/zod/src/locales/index.ts +0 -1
  138. package/toolkit/skills/multi-task-flow/node_modules/zod/src/mini/index.ts +0 -3
  139. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/ZodError.ts +0 -340
  140. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  141. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  142. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  143. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  144. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  145. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  146. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  147. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  148. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  149. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/errors.ts +0 -13
  150. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/external.ts +0 -6
  151. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  152. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  153. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  154. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  155. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  156. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/helpers/util.ts +0 -224
  157. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/index.ts +0 -4
  158. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/locales/en.ts +0 -124
  159. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/standard-schema.ts +0 -113
  160. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  161. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  162. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  163. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  164. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  165. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  166. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  167. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  168. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  169. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  170. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  171. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  172. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  173. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  174. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  175. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  176. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  177. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  178. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  179. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/error.test.ts +0 -586
  180. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  181. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  182. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  183. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  184. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  185. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/intersection.test.ts +0 -128
  186. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  187. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/language-server.test.ts +0 -206
  188. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  189. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  190. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  191. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  192. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  193. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  194. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  195. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  196. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  197. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  198. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/object.test.ts +0 -431
  199. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  200. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  201. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  202. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  203. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  204. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  205. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  206. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  207. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  208. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/readonly.test.ts +0 -114
  209. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  210. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  211. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  212. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  213. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  214. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  215. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/string.test.ts +0 -922
  216. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  217. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  218. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  219. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  220. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  221. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v3/types.ts +0 -5138
  222. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/checks.ts +0 -33
  223. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  224. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/compat.ts +0 -78
  225. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/deep-partial.ts +0 -76
  226. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/errors.ts +0 -97
  227. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/external.ts +0 -57
  228. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -944
  229. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/in-out.ts +0 -45
  230. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/index.ts +0 -5
  231. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/iso.ts +0 -20
  232. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/parse.ts +0 -88
  233. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/schemas.ts +0 -2937
  234. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  235. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -86
  236. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -291
  237. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -402
  238. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  239. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  240. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  241. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -89
  242. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  243. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -604
  244. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  245. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -572
  246. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -704
  247. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  248. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  249. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +0 -76
  250. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  251. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +0 -985
  252. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -92
  253. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -316
  254. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +0 -380
  255. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +0 -32
  256. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -455
  257. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  258. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  259. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -221
  260. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -942
  261. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -305
  262. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -917
  263. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -1108
  264. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
  265. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
  266. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  267. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -1467
  268. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -391
  269. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  270. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -32
  271. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -67
  272. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/iban.test.ts +0 -81
  273. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/in-out.test.ts +0 -159
  274. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -958
  275. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +0 -319
  276. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -127
  277. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -334
  278. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +0 -215
  279. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -39
  280. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  281. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -262
  282. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -128
  283. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
  284. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
  285. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -349
  286. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  287. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  288. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
  289. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  290. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -401
  291. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -1006
  292. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +0 -235
  293. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -366
  294. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -497
  295. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  296. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
  297. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -144
  298. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -44
  299. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
  300. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  301. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  302. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/properties.test.ts +0 -141
  303. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  304. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -184
  305. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -885
  306. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -707
  307. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/redos.test.ts +0 -68
  308. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -693
  309. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  310. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -196
  311. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -153
  312. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
  313. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1440
  314. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -124
  315. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -812
  316. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  317. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -4733
  318. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
  319. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -511
  320. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -310
  321. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  322. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/validate.test.ts +0 -645
  323. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  324. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  325. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/api.ts +0 -1875
  326. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/checks.ts +0 -1266
  327. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/compile.ts +0 -2322
  328. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/core.ts +0 -230
  329. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/doc.ts +0 -52
  330. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/errors.ts +0 -543
  331. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/index.ts +0 -19
  332. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -131
  333. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -934
  334. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/json-schema.ts +0 -148
  335. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/memoizer.ts +0 -331
  336. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/parse.ts +0 -309
  337. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/regexes.ts +0 -217
  338. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/registries.ts +0 -105
  339. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/schemas.ts +0 -5226
  340. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  341. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/cached.test.ts +0 -54
  342. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +0 -1004
  343. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +0 -445
  344. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/compile-global.test.ts +0 -89
  345. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +0 -26
  346. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +0 -34
  347. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/compile.test.ts +0 -2036
  348. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/email-regex.test.ts +0 -140
  349. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  350. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  351. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  352. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -214
  353. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  354. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -180
  355. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
  356. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  357. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
  358. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  359. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +0 -42
  360. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  361. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +0 -85
  362. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +0 -69
  363. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  364. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
  365. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +0 -46
  366. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
  367. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  368. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/treeshake.test.ts +0 -51
  369. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +0 -133
  370. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/to-json-schema.ts +0 -857
  371. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/util.ts +0 -1293
  372. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/versions.ts +0 -5
  373. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/visit.ts +0 -193
  374. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/core/zsf.ts +0 -323
  375. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/index.ts +0 -4
  376. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ar.ts +0 -120
  377. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/az.ts +0 -116
  378. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/be.ts +0 -188
  379. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/bg.ts +0 -133
  380. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/bn.ts +0 -123
  381. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ca.ts +0 -121
  382. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ckb.ts +0 -140
  383. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/cs.ts +0 -123
  384. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/da.ts +0 -128
  385. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/de.ts +0 -121
  386. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/el.ts +0 -124
  387. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/en.ts +0 -136
  388. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/eo.ts +0 -123
  389. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/es.ts +0 -145
  390. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/fa.ts +0 -131
  391. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/fi.ts +0 -126
  392. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/fr-CA.ts +0 -121
  393. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/fr.ts +0 -139
  394. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/gu.ts +0 -123
  395. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/he.ts +0 -253
  396. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/hi.ts +0 -126
  397. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/hr.ts +0 -135
  398. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/hu.ts +0 -122
  399. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/hy.ts +0 -175
  400. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/id.ts +0 -120
  401. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/index.ts +0 -63
  402. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/is.ts +0 -124
  403. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/it.ts +0 -121
  404. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ja.ts +0 -119
  405. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ka.ts +0 -128
  406. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/kh.ts +0 -7
  407. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/km.ts +0 -124
  408. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/kn.ts +0 -126
  409. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ko.ts +0 -126
  410. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/lt.ts +0 -243
  411. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/mk.ts +0 -123
  412. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ms.ts +0 -120
  413. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ne.ts +0 -128
  414. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/nl.ts +0 -126
  415. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/nn.ts +0 -121
  416. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/no.ts +0 -121
  417. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ota.ts +0 -122
  418. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/pl.ts +0 -123
  419. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ps.ts +0 -131
  420. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/pt-BR.ts +0 -161
  421. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/pt.ts +0 -159
  422. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ro.ts +0 -132
  423. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ru.ts +0 -188
  424. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/sk.ts +0 -123
  425. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/sl.ts +0 -123
  426. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/sv.ts +0 -124
  427. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ta.ts +0 -123
  428. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/tg.ts +0 -135
  429. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/th.ts +0 -124
  430. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/tk.ts +0 -113
  431. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/tr.ts +0 -116
  432. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ua.ts +0 -7
  433. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/uk.ts +0 -122
  434. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/ur.ts +0 -124
  435. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/uz.ts +0 -120
  436. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/vi.ts +0 -122
  437. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/yo.ts +0 -129
  438. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/zh-CN.ts +0 -121
  439. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/locales/zh-TW.ts +0 -120
  440. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/checks.ts +0 -33
  441. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  442. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/deep-partial.ts +0 -73
  443. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/external.ts +0 -52
  444. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/in-out.ts +0 -45
  445. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/index.ts +0 -3
  446. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/iso.ts +0 -66
  447. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/parse.ts +0 -16
  448. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/schemas.ts +0 -2051
  449. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -57
  450. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -190
  451. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  452. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -158
  453. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -582
  454. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -30
  455. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +0 -84
  456. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +0 -54
  457. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -41
  458. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -14
  459. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -1146
  460. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -109
  461. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -292
  462. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  463. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -341
  464. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  465. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -396
  466. package/toolkit/skills/multi-task-flow/node_modules/zod/src/v4-mini/index.ts +0 -3
  467. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/ZodError.cjs +0 -167
  468. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/ZodError.d.cts +0 -164
  469. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/ZodError.d.ts +0 -164
  470. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/ZodError.js +0 -143
  471. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/errors.cjs +0 -36
  472. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/errors.d.cts +0 -5
  473. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/errors.d.ts +0 -5
  474. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/errors.js +0 -9
  475. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/external.cjs +0 -41
  476. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/external.d.cts +0 -6
  477. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/external.d.ts +0 -6
  478. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/external.js +0 -6
  479. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/enumUtil.cjs +0 -21
  480. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  481. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  482. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  483. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/errorUtil.cjs +0 -28
  484. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  485. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  486. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  487. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/parseUtil.cjs +0 -143
  488. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  489. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  490. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  491. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/partialUtil.cjs +0 -21
  492. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  493. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  494. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  495. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/typeAliases.cjs +0 -21
  496. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  497. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  498. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  499. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/util.cjs +0 -156
  500. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/util.d.cts +0 -85
  501. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/util.d.ts +0 -85
  502. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/helpers/util.js +0 -133
  503. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/index.cjs +0 -52
  504. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/index.d.cts +0 -4
  505. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/index.d.ts +0 -4
  506. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/index.js +0 -4
  507. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/locales/en.cjs +0 -112
  508. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/locales/en.d.cts +0 -3
  509. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/locales/en.d.ts +0 -3
  510. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/locales/en.js +0 -109
  511. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/package.json +0 -7
  512. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/standard-schema.cjs +0 -21
  513. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/standard-schema.d.cts +0 -102
  514. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/standard-schema.d.ts +0 -102
  515. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/standard-schema.js +0 -1
  516. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/types.cjs +0 -3798
  517. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/types.d.cts +0 -1034
  518. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/types.d.ts +0 -1034
  519. package/toolkit/skills/multi-task-flow/node_modules/zod/v3/types.js +0 -3697
  520. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/checks.cjs +0 -53
  521. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/checks.d.cts +0 -1
  522. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/checks.d.ts +0 -1
  523. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/checks.js +0 -1
  524. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/coerce.cjs +0 -66
  525. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  526. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  527. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/coerce.js +0 -17
  528. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/compat.cjs +0 -80
  529. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/compat.d.cts +0 -48
  530. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/compat.d.ts +0 -48
  531. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/compat.js +0 -31
  532. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/deep-partial.cjs +0 -58
  533. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/deep-partial.d.cts +0 -14
  534. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/deep-partial.d.ts +0 -14
  535. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/deep-partial.js +0 -13
  536. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/errors.cjs +0 -102
  537. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/errors.d.cts +0 -29
  538. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/errors.d.ts +0 -29
  539. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/errors.js +0 -57
  540. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/external.cjs +0 -97
  541. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/external.d.cts +0 -19
  542. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/external.d.ts +0 -19
  543. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/external.js +0 -17
  544. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/from-json-schema.cjs +0 -926
  545. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
  546. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
  547. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/from-json-schema.js +0 -881
  548. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/in-out.cjs +0 -82
  549. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/in-out.d.cts +0 -8
  550. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/in-out.d.ts +0 -8
  551. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/in-out.js +0 -36
  552. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/index.cjs +0 -52
  553. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/index.d.cts +0 -3
  554. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/index.d.ts +0 -3
  555. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/index.js +0 -4
  556. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/iso.cjs +0 -68
  557. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/iso.d.cts +0 -7
  558. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/iso.d.ts +0 -7
  559. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/iso.js +0 -15
  560. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/package.json +0 -7
  561. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/parse.cjs +0 -63
  562. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/parse.d.cts +0 -44
  563. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/parse.d.ts +0 -44
  564. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/parse.js +0 -16
  565. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/schemas.cjs +0 -1676
  566. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/schemas.d.cts +0 -816
  567. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/schemas.d.ts +0 -816
  568. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/classic/schemas.js +0 -1535
  569. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/api.cjs +0 -1269
  570. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/api.d.cts +0 -335
  571. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/api.d.ts +0 -335
  572. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/api.js +0 -1107
  573. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/checks.cjs +0 -561
  574. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/checks.d.cts +0 -294
  575. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/checks.d.ts +0 -294
  576. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/checks.js +0 -516
  577. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/compile.cjs +0 -1916
  578. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/compile.d.cts +0 -65
  579. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/compile.d.ts +0 -65
  580. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/compile.js +0 -1866
  581. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/core.cjs +0 -167
  582. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/core.d.cts +0 -82
  583. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/core.d.ts +0 -82
  584. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/core.js +0 -141
  585. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/doc.cjs +0 -61
  586. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/doc.d.cts +0 -16
  587. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/doc.d.ts +0 -16
  588. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/doc.js +0 -38
  589. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/errors.cjs +0 -317
  590. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/errors.d.cts +0 -225
  591. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/errors.d.ts +0 -225
  592. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/errors.js +0 -267
  593. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/index.cjs +0 -70
  594. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/index.d.cts +0 -19
  595. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/index.d.ts +0 -19
  596. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/index.js +0 -19
  597. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/json-schema-generator.cjs +0 -122
  598. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
  599. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
  600. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/json-schema-generator.js +0 -99
  601. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/json-schema-processors.cjs +0 -929
  602. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -65
  603. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -65
  604. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/json-schema-processors.js +0 -843
  605. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/json-schema.cjs +0 -21
  606. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/json-schema.d.cts +0 -89
  607. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/json-schema.d.ts +0 -89
  608. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/json-schema.js +0 -1
  609. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/memoizer.cjs +0 -360
  610. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/memoizer.d.cts +0 -15
  611. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/memoizer.d.ts +0 -15
  612. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/memoizer.js +0 -311
  613. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/package.json +0 -7
  614. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/parse.cjs +0 -233
  615. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/parse.d.cts +0 -52
  616. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/parse.d.ts +0 -52
  617. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/parse.js +0 -175
  618. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/regexes.cjs +0 -209
  619. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/regexes.d.cts +0 -90
  620. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/regexes.d.ts +0 -90
  621. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/regexes.js +0 -156
  622. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/registries.cjs +0 -75
  623. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/registries.d.cts +0 -35
  624. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/registries.d.ts +0 -35
  625. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/registries.js +0 -51
  626. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/schemas.cjs +0 -2699
  627. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/schemas.d.cts +0 -1275
  628. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/schemas.d.ts +0 -1275
  629. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/schemas.js +0 -2636
  630. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/standard-schema.cjs +0 -21
  631. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
  632. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
  633. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/standard-schema.js +0 -1
  634. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/to-json-schema.cjs +0 -681
  635. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/to-json-schema.d.cts +0 -154
  636. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/to-json-schema.d.ts +0 -154
  637. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/to-json-schema.js +0 -651
  638. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/util.cjs +0 -964
  639. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/util.d.cts +0 -280
  640. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/util.d.ts +0 -280
  641. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/util.js +0 -873
  642. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/versions.cjs +0 -27
  643. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/versions.d.cts +0 -5
  644. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/versions.d.ts +0 -5
  645. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/versions.js +0 -5
  646. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/visit.cjs +0 -214
  647. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/visit.d.cts +0 -30
  648. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/visit.d.ts +0 -30
  649. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/core/visit.js +0 -169
  650. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/index.cjs +0 -51
  651. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/index.d.cts +0 -3
  652. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/index.d.ts +0 -3
  653. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/index.js +0 -4
  654. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ar.cjs +0 -138
  655. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ar.d.cts +0 -5
  656. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ar.d.ts +0 -4
  657. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ar.js +0 -111
  658. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/az.cjs +0 -137
  659. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/az.d.cts +0 -5
  660. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/az.d.ts +0 -4
  661. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/az.js +0 -110
  662. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/be.cjs +0 -195
  663. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/be.d.cts +0 -5
  664. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/be.d.ts +0 -4
  665. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/be.js +0 -168
  666. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/bg.cjs +0 -152
  667. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/bg.d.cts +0 -5
  668. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/bg.d.ts +0 -4
  669. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/bg.js +0 -125
  670. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/bn.cjs +0 -140
  671. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/bn.d.cts +0 -5
  672. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/bn.d.ts +0 -4
  673. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/bn.js +0 -113
  674. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ca.cjs +0 -139
  675. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ca.d.cts +0 -5
  676. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ca.d.ts +0 -4
  677. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ca.js +0 -112
  678. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ckb.cjs +0 -160
  679. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ckb.d.cts +0 -5
  680. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ckb.d.ts +0 -4
  681. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ckb.js +0 -133
  682. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/cs.cjs +0 -143
  683. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/cs.d.cts +0 -5
  684. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/cs.d.ts +0 -4
  685. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/cs.js +0 -116
  686. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/da.cjs +0 -147
  687. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/da.d.cts +0 -5
  688. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/da.d.ts +0 -4
  689. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/da.js +0 -120
  690. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/de.cjs +0 -140
  691. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/de.d.cts +0 -5
  692. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/de.d.ts +0 -4
  693. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/de.js +0 -113
  694. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/el.cjs +0 -139
  695. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/el.d.cts +0 -5
  696. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/el.d.ts +0 -4
  697. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/el.js +0 -112
  698. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/en.cjs +0 -152
  699. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/en.d.cts +0 -5
  700. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/en.d.ts +0 -4
  701. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/en.js +0 -125
  702. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/eo.cjs +0 -141
  703. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/eo.d.cts +0 -5
  704. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/eo.d.ts +0 -4
  705. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/eo.js +0 -114
  706. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/es.cjs +0 -163
  707. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/es.d.cts +0 -5
  708. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/es.d.ts +0 -4
  709. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/es.js +0 -136
  710. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fa.cjs +0 -146
  711. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fa.d.cts +0 -5
  712. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fa.d.ts +0 -4
  713. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fa.js +0 -119
  714. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fi.cjs +0 -144
  715. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fi.d.cts +0 -5
  716. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fi.d.ts +0 -4
  717. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fi.js +0 -117
  718. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fr-CA.cjs +0 -139
  719. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
  720. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  721. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fr-CA.js +0 -112
  722. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fr.cjs +0 -156
  723. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fr.d.cts +0 -5
  724. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fr.d.ts +0 -4
  725. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/fr.js +0 -129
  726. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/gu.cjs +0 -140
  727. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/gu.d.cts +0 -5
  728. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/gu.d.ts +0 -4
  729. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/gu.js +0 -113
  730. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/he.cjs +0 -248
  731. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/he.d.cts +0 -5
  732. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/he.d.ts +0 -4
  733. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/he.js +0 -221
  734. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hi.cjs +0 -138
  735. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hi.d.cts +0 -5
  736. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hi.d.ts +0 -4
  737. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hi.js +0 -111
  738. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hr.cjs +0 -153
  739. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hr.d.cts +0 -5
  740. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hr.d.ts +0 -4
  741. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hr.js +0 -126
  742. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hu.cjs +0 -140
  743. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hu.d.cts +0 -5
  744. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hu.d.ts +0 -4
  745. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hu.js +0 -113
  746. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hy.cjs +0 -185
  747. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hy.d.cts +0 -5
  748. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hy.d.ts +0 -4
  749. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/hy.js +0 -158
  750. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/id.cjs +0 -138
  751. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/id.d.cts +0 -5
  752. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/id.d.ts +0 -4
  753. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/id.js +0 -111
  754. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/index.cjs +0 -152
  755. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/index.d.cts +0 -63
  756. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/index.d.ts +0 -63
  757. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/index.js +0 -63
  758. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/is.cjs +0 -141
  759. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/is.d.cts +0 -5
  760. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/is.d.ts +0 -4
  761. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/is.js +0 -114
  762. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/it.cjs +0 -140
  763. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/it.d.cts +0 -5
  764. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/it.d.ts +0 -4
  765. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/it.js +0 -113
  766. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ja.cjs +0 -139
  767. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ja.d.cts +0 -5
  768. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ja.d.ts +0 -4
  769. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ja.js +0 -112
  770. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ka.cjs +0 -144
  771. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ka.d.cts +0 -5
  772. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ka.d.ts +0 -4
  773. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ka.js +0 -117
  774. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/kh.cjs +0 -12
  775. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/kh.d.cts +0 -5
  776. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/kh.d.ts +0 -5
  777. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/kh.js +0 -5
  778. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/km.cjs +0 -142
  779. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/km.d.cts +0 -5
  780. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/km.d.ts +0 -4
  781. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/km.js +0 -115
  782. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/kn.cjs +0 -143
  783. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/kn.d.cts +0 -5
  784. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/kn.d.ts +0 -4
  785. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/kn.js +0 -116
  786. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ko.cjs +0 -143
  787. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ko.d.cts +0 -5
  788. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ko.d.ts +0 -4
  789. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ko.js +0 -116
  790. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/lt.cjs +0 -234
  791. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/lt.d.cts +0 -5
  792. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/lt.d.ts +0 -4
  793. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/lt.js +0 -207
  794. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/mk.cjs +0 -141
  795. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/mk.d.cts +0 -5
  796. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/mk.d.ts +0 -4
  797. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/mk.js +0 -114
  798. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ms.cjs +0 -139
  799. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ms.d.cts +0 -5
  800. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ms.d.ts +0 -4
  801. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ms.js +0 -112
  802. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ne.cjs +0 -138
  803. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ne.d.cts +0 -5
  804. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ne.d.ts +0 -4
  805. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ne.js +0 -111
  806. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/nl.cjs +0 -142
  807. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/nl.d.cts +0 -5
  808. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/nl.d.ts +0 -4
  809. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/nl.js +0 -115
  810. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/nn.cjs +0 -140
  811. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/nn.d.cts +0 -5
  812. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/nn.d.ts +0 -4
  813. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/nn.js +0 -113
  814. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/no.cjs +0 -140
  815. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/no.d.cts +0 -5
  816. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/no.d.ts +0 -4
  817. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/no.js +0 -113
  818. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ota.cjs +0 -141
  819. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ota.d.cts +0 -5
  820. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ota.d.ts +0 -4
  821. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ota.js +0 -114
  822. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/package.json +0 -7
  823. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/pl.cjs +0 -141
  824. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/pl.d.cts +0 -5
  825. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/pl.d.ts +0 -4
  826. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/pl.js +0 -114
  827. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ps.cjs +0 -146
  828. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ps.d.cts +0 -5
  829. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ps.d.ts +0 -4
  830. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ps.js +0 -119
  831. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/pt-BR.cjs +0 -170
  832. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/pt-BR.d.cts +0 -5
  833. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/pt-BR.d.ts +0 -4
  834. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/pt-BR.js +0 -143
  835. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/pt.cjs +0 -169
  836. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/pt.d.cts +0 -5
  837. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/pt.d.ts +0 -4
  838. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/pt.js +0 -142
  839. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ro.cjs +0 -149
  840. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ro.d.cts +0 -5
  841. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ro.d.ts +0 -4
  842. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ro.js +0 -122
  843. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ru.cjs +0 -195
  844. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ru.d.cts +0 -5
  845. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ru.d.ts +0 -4
  846. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ru.js +0 -168
  847. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/sk.cjs +0 -143
  848. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/sk.d.cts +0 -5
  849. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/sk.d.ts +0 -4
  850. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/sk.js +0 -116
  851. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/sl.cjs +0 -141
  852. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/sl.d.cts +0 -5
  853. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/sl.d.ts +0 -4
  854. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/sl.js +0 -114
  855. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/sv.cjs +0 -142
  856. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/sv.d.cts +0 -5
  857. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/sv.d.ts +0 -4
  858. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/sv.js +0 -115
  859. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ta.cjs +0 -142
  860. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ta.d.cts +0 -5
  861. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ta.d.ts +0 -4
  862. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ta.js +0 -115
  863. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/tg.cjs +0 -144
  864. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/tg.d.cts +0 -5
  865. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/tg.d.ts +0 -4
  866. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/tg.js +0 -117
  867. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/th.cjs +0 -142
  868. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/th.d.cts +0 -5
  869. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/th.d.ts +0 -4
  870. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/th.js +0 -115
  871. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/tk.cjs +0 -134
  872. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/tk.d.cts +0 -5
  873. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/tk.d.ts +0 -4
  874. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/tk.js +0 -107
  875. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/tr.cjs +0 -137
  876. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/tr.d.cts +0 -5
  877. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/tr.d.ts +0 -4
  878. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/tr.js +0 -110
  879. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ua.cjs +0 -12
  880. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ua.d.cts +0 -5
  881. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ua.d.ts +0 -5
  882. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ua.js +0 -5
  883. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/uk.cjs +0 -140
  884. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/uk.d.cts +0 -5
  885. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/uk.d.ts +0 -4
  886. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/uk.js +0 -113
  887. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ur.cjs +0 -142
  888. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ur.d.cts +0 -5
  889. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ur.d.ts +0 -4
  890. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/ur.js +0 -115
  891. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/uz.cjs +0 -140
  892. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/uz.d.cts +0 -5
  893. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/uz.d.ts +0 -4
  894. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/uz.js +0 -113
  895. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/vi.cjs +0 -140
  896. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/vi.d.cts +0 -5
  897. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/vi.d.ts +0 -4
  898. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/vi.js +0 -113
  899. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/yo.cjs +0 -139
  900. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/yo.d.cts +0 -5
  901. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/yo.d.ts +0 -4
  902. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/yo.js +0 -112
  903. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/zh-CN.cjs +0 -141
  904. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
  905. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  906. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/zh-CN.js +0 -114
  907. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/zh-TW.cjs +0 -139
  908. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
  909. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  910. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/locales/zh-TW.js +0 -112
  911. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/checks.cjs +0 -54
  912. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/checks.d.cts +0 -1
  913. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/checks.d.ts +0 -1
  914. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/checks.js +0 -1
  915. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/coerce.cjs +0 -71
  916. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  917. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  918. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/coerce.js +0 -22
  919. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/deep-partial.cjs +0 -58
  920. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/deep-partial.d.cts +0 -14
  921. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/deep-partial.d.ts +0 -14
  922. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/deep-partial.js +0 -13
  923. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/external.cjs +0 -95
  924. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/external.d.cts +0 -16
  925. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/external.d.ts +0 -16
  926. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/external.js +0 -16
  927. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/in-out.cjs +0 -82
  928. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/in-out.d.cts +0 -8
  929. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/in-out.d.ts +0 -8
  930. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/in-out.js +0 -36
  931. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/index.cjs +0 -51
  932. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/index.d.cts +0 -3
  933. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/index.d.ts +0 -3
  934. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/index.js +0 -3
  935. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/iso.cjs +0 -83
  936. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/iso.d.cts +0 -22
  937. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/iso.d.ts +0 -22
  938. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/iso.js +0 -34
  939. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/package.json +0 -7
  940. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/parse.cjs +0 -37
  941. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/parse.d.cts +0 -1
  942. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/parse.d.ts +0 -1
  943. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/parse.js +0 -1
  944. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/schemas.cjs +0 -1147
  945. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/schemas.d.cts +0 -480
  946. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/schemas.d.ts +0 -480
  947. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/mini/schemas.js +0 -1002
  948. package/toolkit/skills/multi-task-flow/node_modules/zod/v4/package.json +0 -7
  949. package/toolkit/skills/multi-task-flow/node_modules/zod/v4-mini/index.cjs +0 -51
  950. package/toolkit/skills/multi-task-flow/node_modules/zod/v4-mini/index.d.cts +0 -3
  951. package/toolkit/skills/multi-task-flow/node_modules/zod/v4-mini/index.d.ts +0 -3
  952. package/toolkit/skills/multi-task-flow/node_modules/zod/v4-mini/index.js +0 -3
  953. package/toolkit/skills/multi-task-flow/node_modules/zod/v4-mini/package.json +0 -7
  954. package/toolkit/skills/node_modules/@img/colour/LICENSE.md +0 -82
  955. package/toolkit/skills/node_modules/@img/colour/README.md +0 -15
  956. package/toolkit/skills/node_modules/@img/colour/color.cjs +0 -1596
  957. package/toolkit/skills/node_modules/@img/colour/index.cjs +0 -1
  958. package/toolkit/skills/node_modules/@img/colour/index.d.ts +0 -929
  959. package/toolkit/skills/node_modules/@img/colour/package.json +0 -58
  960. package/toolkit/skills/node_modules/@img/sharp-libvips-linux-x64/README.md +0 -46
  961. package/toolkit/skills/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +0 -219
  962. package/toolkit/skills/node_modules/@img/sharp-libvips-linux-x64/lib/index.js +0 -1
  963. package/toolkit/skills/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.18.7 +0 -0
  964. package/toolkit/skills/node_modules/@img/sharp-libvips-linux-x64/package.json +0 -43
  965. package/toolkit/skills/node_modules/@img/sharp-libvips-linux-x64/versions.json +0 -30
  966. package/toolkit/skills/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +0 -46
  967. package/toolkit/skills/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +0 -219
  968. package/toolkit/skills/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +0 -1
  969. package/toolkit/skills/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.18.7 +0 -0
  970. package/toolkit/skills/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +0 -43
  971. package/toolkit/skills/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +0 -30
  972. package/toolkit/skills/node_modules/@img/sharp-linux-x64/LICENSE +0 -191
  973. package/toolkit/skills/node_modules/@img/sharp-linux-x64/README.md +0 -18
  974. package/toolkit/skills/node_modules/@img/sharp-linux-x64/index.cjs +0 -2
  975. package/toolkit/skills/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64-0.35.5.node +0 -0
  976. package/toolkit/skills/node_modules/@img/sharp-linux-x64/package.json +0 -47
  977. package/toolkit/skills/node_modules/@img/sharp-linuxmusl-x64/LICENSE +0 -191
  978. package/toolkit/skills/node_modules/@img/sharp-linuxmusl-x64/README.md +0 -18
  979. package/toolkit/skills/node_modules/@img/sharp-linuxmusl-x64/index.cjs +0 -2
  980. package/toolkit/skills/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64-0.35.5.node +0 -0
  981. package/toolkit/skills/node_modules/@img/sharp-linuxmusl-x64/package.json +0 -47
  982. package/toolkit/skills/node_modules/detect-libc/LICENSE +0 -201
  983. package/toolkit/skills/node_modules/detect-libc/README.md +0 -163
  984. package/toolkit/skills/node_modules/detect-libc/index.d.ts +0 -14
  985. package/toolkit/skills/node_modules/detect-libc/lib/detect-libc.js +0 -313
  986. package/toolkit/skills/node_modules/detect-libc/lib/elf.js +0 -39
  987. package/toolkit/skills/node_modules/detect-libc/lib/filesystem.js +0 -51
  988. package/toolkit/skills/node_modules/detect-libc/lib/process.js +0 -24
  989. package/toolkit/skills/node_modules/detect-libc/package.json +0 -44
  990. package/toolkit/skills/node_modules/semver/LICENSE +0 -15
  991. package/toolkit/skills/node_modules/semver/README.md +0 -680
  992. package/toolkit/skills/node_modules/semver/bin/semver.js +0 -195
  993. package/toolkit/skills/node_modules/semver/classes/comparator.js +0 -143
  994. package/toolkit/skills/node_modules/semver/classes/index.js +0 -7
  995. package/toolkit/skills/node_modules/semver/classes/range.js +0 -577
  996. package/toolkit/skills/node_modules/semver/classes/semver.js +0 -350
  997. package/toolkit/skills/node_modules/semver/functions/clean.js +0 -8
  998. package/toolkit/skills/node_modules/semver/functions/cmp.js +0 -54
  999. package/toolkit/skills/node_modules/semver/functions/coerce.js +0 -62
  1000. package/toolkit/skills/node_modules/semver/functions/compare-build.js +0 -9
  1001. package/toolkit/skills/node_modules/semver/functions/compare-loose.js +0 -5
  1002. package/toolkit/skills/node_modules/semver/functions/compare.js +0 -7
  1003. package/toolkit/skills/node_modules/semver/functions/diff.js +0 -60
  1004. package/toolkit/skills/node_modules/semver/functions/eq.js +0 -5
  1005. package/toolkit/skills/node_modules/semver/functions/gt.js +0 -5
  1006. package/toolkit/skills/node_modules/semver/functions/gte.js +0 -5
  1007. package/toolkit/skills/node_modules/semver/functions/inc.js +0 -21
  1008. package/toolkit/skills/node_modules/semver/functions/lt.js +0 -5
  1009. package/toolkit/skills/node_modules/semver/functions/lte.js +0 -5
  1010. package/toolkit/skills/node_modules/semver/functions/major.js +0 -5
  1011. package/toolkit/skills/node_modules/semver/functions/minor.js +0 -5
  1012. package/toolkit/skills/node_modules/semver/functions/neq.js +0 -5
  1013. package/toolkit/skills/node_modules/semver/functions/parse.js +0 -18
  1014. package/toolkit/skills/node_modules/semver/functions/patch.js +0 -5
  1015. package/toolkit/skills/node_modules/semver/functions/prerelease.js +0 -8
  1016. package/toolkit/skills/node_modules/semver/functions/rcompare.js +0 -5
  1017. package/toolkit/skills/node_modules/semver/functions/rsort.js +0 -5
  1018. package/toolkit/skills/node_modules/semver/functions/satisfies.js +0 -12
  1019. package/toolkit/skills/node_modules/semver/functions/sort.js +0 -5
  1020. package/toolkit/skills/node_modules/semver/functions/truncate.js +0 -48
  1021. package/toolkit/skills/node_modules/semver/functions/valid.js +0 -8
  1022. package/toolkit/skills/node_modules/semver/index.js +0 -93
  1023. package/toolkit/skills/node_modules/semver/internal/constants.js +0 -67
  1024. package/toolkit/skills/node_modules/semver/internal/debug.js +0 -11
  1025. package/toolkit/skills/node_modules/semver/internal/identifiers.js +0 -29
  1026. package/toolkit/skills/node_modules/semver/internal/lrucache.js +0 -42
  1027. package/toolkit/skills/node_modules/semver/internal/parse-options.js +0 -17
  1028. package/toolkit/skills/node_modules/semver/internal/re.js +0 -223
  1029. package/toolkit/skills/node_modules/semver/internal/trim-comparator-whitespace.js +0 -438
  1030. package/toolkit/skills/node_modules/semver/package.json +0 -78
  1031. package/toolkit/skills/node_modules/semver/preload.js +0 -4
  1032. package/toolkit/skills/node_modules/semver/range.bnf +0 -17
  1033. package/toolkit/skills/node_modules/semver/ranges/gtr.js +0 -6
  1034. package/toolkit/skills/node_modules/semver/ranges/intersects.js +0 -9
  1035. package/toolkit/skills/node_modules/semver/ranges/ltr.js +0 -6
  1036. package/toolkit/skills/node_modules/semver/ranges/max-satisfying.js +0 -27
  1037. package/toolkit/skills/node_modules/semver/ranges/min-satisfying.js +0 -26
  1038. package/toolkit/skills/node_modules/semver/ranges/min-version.js +0 -63
  1039. package/toolkit/skills/node_modules/semver/ranges/outside.js +0 -82
  1040. package/toolkit/skills/node_modules/semver/ranges/simplify.js +0 -49
  1041. package/toolkit/skills/node_modules/semver/ranges/subset.js +0 -249
  1042. package/toolkit/skills/node_modules/semver/ranges/to-comparators.js +0 -10
  1043. package/toolkit/skills/node_modules/semver/ranges/valid.js +0 -13
  1044. package/toolkit/skills/node_modules/sharp/LICENSE +0 -191
  1045. package/toolkit/skills/node_modules/sharp/README.md +0 -112
  1046. package/toolkit/skills/node_modules/sharp/dist/channel.cjs +0 -177
  1047. package/toolkit/skills/node_modules/sharp/dist/channel.mjs +0 -177
  1048. package/toolkit/skills/node_modules/sharp/dist/colour.cjs +0 -199
  1049. package/toolkit/skills/node_modules/sharp/dist/colour.mjs +0 -199
  1050. package/toolkit/skills/node_modules/sharp/dist/composite.cjs +0 -213
  1051. package/toolkit/skills/node_modules/sharp/dist/composite.mjs +0 -213
  1052. package/toolkit/skills/node_modules/sharp/dist/constructor.cjs +0 -511
  1053. package/toolkit/skills/node_modules/sharp/dist/constructor.mjs +0 -511
  1054. package/toolkit/skills/node_modules/sharp/dist/index.cjs +0 -25
  1055. package/toolkit/skills/node_modules/sharp/dist/index.d.cts +0 -1999
  1056. package/toolkit/skills/node_modules/sharp/dist/index.d.mts +0 -2046
  1057. package/toolkit/skills/node_modules/sharp/dist/index.mjs +0 -25
  1058. package/toolkit/skills/node_modules/sharp/dist/input.cjs +0 -819
  1059. package/toolkit/skills/node_modules/sharp/dist/input.mjs +0 -819
  1060. package/toolkit/skills/node_modules/sharp/dist/is.cjs +0 -149
  1061. package/toolkit/skills/node_modules/sharp/dist/is.mjs +0 -149
  1062. package/toolkit/skills/node_modules/sharp/dist/libvips.cjs +0 -212
  1063. package/toolkit/skills/node_modules/sharp/dist/libvips.mjs +0 -212
  1064. package/toolkit/skills/node_modules/sharp/dist/operation.cjs +0 -1002
  1065. package/toolkit/skills/node_modules/sharp/dist/operation.mjs +0 -1002
  1066. package/toolkit/skills/node_modules/sharp/dist/output.cjs +0 -1786
  1067. package/toolkit/skills/node_modules/sharp/dist/output.mjs +0 -1786
  1068. package/toolkit/skills/node_modules/sharp/dist/resize.cjs +0 -617
  1069. package/toolkit/skills/node_modules/sharp/dist/resize.mjs +0 -617
  1070. package/toolkit/skills/node_modules/sharp/dist/sharp.cjs +0 -174
  1071. package/toolkit/skills/node_modules/sharp/dist/sharp.mjs +0 -174
  1072. package/toolkit/skills/node_modules/sharp/dist/utility.cjs +0 -301
  1073. package/toolkit/skills/node_modules/sharp/dist/utility.mjs +0 -301
  1074. package/toolkit/skills/node_modules/sharp/install/build.js +0 -38
  1075. package/toolkit/skills/node_modules/sharp/lib/index.d.ts +0 -1999
  1076. package/toolkit/skills/node_modules/sharp/package.json +0 -227
  1077. package/toolkit/skills/node_modules/sharp/src/binding.gyp +0 -303
  1078. package/toolkit/skills/node_modules/sharp/src/common.cc +0 -1186
  1079. package/toolkit/skills/node_modules/sharp/src/common.h +0 -421
  1080. package/toolkit/skills/node_modules/sharp/src/metadata.cc +0 -404
  1081. package/toolkit/skills/node_modules/sharp/src/metadata.h +0 -95
  1082. package/toolkit/skills/node_modules/sharp/src/operations.cc +0 -516
  1083. package/toolkit/skills/node_modules/sharp/src/operations.h +0 -137
  1084. package/toolkit/skills/node_modules/sharp/src/pipeline.cc +0 -1973
  1085. package/toolkit/skills/node_modules/sharp/src/pipeline.h +0 -422
  1086. package/toolkit/skills/node_modules/sharp/src/sharp.cc +0 -43
  1087. package/toolkit/skills/node_modules/sharp/src/stats.cc +0 -186
  1088. package/toolkit/skills/node_modules/sharp/src/stats.h +0 -62
  1089. package/toolkit/skills/node_modules/sharp/src/utilities.cc +0 -289
  1090. package/toolkit/skills/node_modules/sharp/src/utilities.h +0 -22
@@ -1,1875 +0,0 @@
1
- import * as checks from "./checks.js";
2
- import type * as core from "./core.js";
3
- import type * as errors from "./errors.js";
4
- import * as registries from "./registries.js";
5
- import * as schemas from "./schemas.js";
6
- import * as util from "./util.js";
7
-
8
- export type Params<
9
- T extends schemas.$ZodType | checks.$ZodCheck,
10
- IssueTypes extends errors.$ZodIssueBase,
11
- OmitKeys extends keyof T["_zod"]["def"] = never,
12
- > = util.Flatten<
13
- Partial<
14
- util.EmptyToNever<
15
- Omit<T["_zod"]["def"], OmitKeys> &
16
- ([IssueTypes] extends [never]
17
- ? {} // unknown
18
- : {
19
- error?: string | errors.$ZodErrorMap<IssueTypes> | undefined;
20
- /** @deprecated This parameter is deprecated. Use `error` instead. */
21
- message?: string | undefined; // supported in Zod 3
22
- })
23
- >
24
- >
25
- >;
26
-
27
- export type TypeParams<
28
- T extends schemas.$ZodType = schemas.$ZodType & { _isst: never },
29
- AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error"> = never,
30
- > = Params<T, NonNullable<T["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
31
-
32
- // strips types that are not exposed in the public factory
33
- // incl. `error`, `check`
34
- export type CheckParams<
35
- T extends checks.$ZodCheck = checks.$ZodCheck, // & { _issc: never },
36
- AlsoOmit extends Exclude<keyof T["_zod"]["def"], "check" | "error"> = never,
37
- > = Params<T, NonNullable<T["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
38
-
39
- // strips types that are not exposed in the public factory
40
- // incl. `type`, `checks`, `error`, `check`, `format`
41
- export type StringFormatParams<
42
- T extends schemas.$ZodStringFormat = schemas.$ZodStringFormat,
43
- AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never,
44
- > = Params<
45
- T,
46
- NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>,
47
- "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit
48
- >;
49
-
50
- export type CheckStringFormatParams<
51
- T extends schemas.$ZodStringFormat = schemas.$ZodStringFormat,
52
- AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never,
53
- > = Params<T, NonNullable<T["_zod"]["issc"]>, "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit>;
54
-
55
- export type CheckTypeParams<
56
- T extends schemas.$ZodType & checks.$ZodCheck = schemas.$ZodType & checks.$ZodCheck,
57
- AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error" | "check"> = never,
58
- > = Params<T, NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>, "type" | "checks" | "error" | "check" | AlsoOmit>;
59
-
60
- // String
61
- export type $ZodStringParams = TypeParams<schemas.$ZodString<string>, "coerce"> & {
62
- checks?: readonly checks.$ZodCheck<string>[];
63
- };
64
-
65
- function snapshotChecks<T extends { checks?: readonly checks.$ZodCheck<never>[] }>(def: T) {
66
- if (def.checks) def.checks = [...def.checks];
67
- return def as T & { checks?: NonNullable<T["checks"]>[number][] };
68
- }
69
- // @__NO_SIDE_EFFECTS__
70
- export function _string<T extends schemas.$ZodString>(
71
- Class: util.SchemaClass<T>,
72
- params?: string | $ZodStringParams
73
- ): T {
74
- return new Class(snapshotChecks({ type: "string" as const, ...util.normalizeParams(params) }));
75
- }
76
-
77
- // @__NO_SIDE_EFFECTS__
78
- export function _coercedString<T extends schemas.$ZodString>(
79
- Class: util.SchemaClass<T>,
80
- params?: string | $ZodStringParams
81
- ): T {
82
- return new Class(snapshotChecks({ type: "string" as const, coerce: true, ...util.normalizeParams(params) }));
83
- }
84
-
85
- export type $ZodStringFormatParams = CheckTypeParams<
86
- schemas.$ZodStringFormat,
87
- "format" | "coerce" | "when" | "pattern"
88
- >;
89
- export type $ZodCheckStringFormatParams = CheckParams<checks.$ZodCheckStringFormat, "format">;
90
- // custom format
91
-
92
- // Email
93
- export type $ZodEmailParams = StringFormatParams<schemas.$ZodEmail, "when">;
94
- export type $ZodCheckEmailParams = CheckStringFormatParams<schemas.$ZodEmail, "when">;
95
- // @__NO_SIDE_EFFECTS__
96
- export function _email<T extends schemas.$ZodEmail>(
97
- Class: util.SchemaClass<T>,
98
- params?: string | $ZodEmailParams | $ZodCheckEmailParams
99
- ): T {
100
- return new Class({
101
- type: "string",
102
- format: "email",
103
- check: "string_format",
104
- abort: false,
105
- ...util.normalizeParams(params),
106
- });
107
- }
108
-
109
- // GUID
110
- export type $ZodGUIDParams = StringFormatParams<schemas.$ZodGUID, "pattern" | "when">;
111
- export type $ZodCheckGUIDParams = CheckStringFormatParams<schemas.$ZodGUID, "pattern" | "when">;
112
- // @__NO_SIDE_EFFECTS__
113
- export function _guid<T extends schemas.$ZodGUID>(
114
- Class: util.SchemaClass<T>,
115
- params?: string | $ZodGUIDParams | $ZodCheckGUIDParams
116
- ): T {
117
- return new Class({
118
- type: "string",
119
- format: "guid",
120
- check: "string_format",
121
- abort: false,
122
- ...util.normalizeParams(params),
123
- });
124
- }
125
-
126
- // UUID
127
- export type $ZodUUIDParams = StringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
128
- export type $ZodCheckUUIDParams = CheckStringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
129
- // @__NO_SIDE_EFFECTS__
130
- export function _uuid<T extends schemas.$ZodUUID>(
131
- Class: util.SchemaClass<T>,
132
- params?: string | $ZodUUIDParams | $ZodCheckUUIDParams
133
- ): T {
134
- return new Class({
135
- type: "string",
136
- format: "uuid",
137
- check: "string_format",
138
- abort: false,
139
- ...util.normalizeParams(params),
140
- });
141
- }
142
-
143
- // UUIDv4
144
- export type $ZodUUIDv4Params = StringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
145
- export type $ZodCheckUUIDv4Params = CheckStringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
146
- // @__NO_SIDE_EFFECTS__
147
- export function _uuidv4<T extends schemas.$ZodUUID>(
148
- Class: util.SchemaClass<T>,
149
- params?: string | $ZodUUIDv4Params | $ZodCheckUUIDv4Params
150
- ): T {
151
- return new Class({
152
- type: "string",
153
- format: "uuid",
154
- check: "string_format",
155
- abort: false,
156
- version: "v4",
157
- ...util.normalizeParams(params),
158
- });
159
- }
160
-
161
- // UUIDv6
162
- export type $ZodUUIDv6Params = StringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
163
- export type $ZodCheckUUIDv6Params = CheckStringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
164
- // @__NO_SIDE_EFFECTS__
165
- export function _uuidv6<T extends schemas.$ZodUUID>(
166
- Class: util.SchemaClass<T>,
167
- params?: string | $ZodUUIDv6Params | $ZodCheckUUIDv6Params
168
- ): T {
169
- return new Class({
170
- type: "string",
171
- format: "uuid",
172
- check: "string_format",
173
- abort: false,
174
- version: "v6",
175
- ...util.normalizeParams(params),
176
- });
177
- }
178
-
179
- // UUIDv7
180
- export type $ZodUUIDv7Params = StringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
181
- export type $ZodCheckUUIDv7Params = CheckStringFormatParams<schemas.$ZodUUID, "pattern" | "when">;
182
- // @__NO_SIDE_EFFECTS__
183
- export function _uuidv7<T extends schemas.$ZodUUID>(
184
- Class: util.SchemaClass<T>,
185
- params?: string | $ZodUUIDv7Params | $ZodCheckUUIDv7Params
186
- ): T {
187
- return new Class({
188
- type: "string",
189
- format: "uuid",
190
- check: "string_format",
191
- abort: false,
192
- version: "v7",
193
- ...util.normalizeParams(params),
194
- });
195
- }
196
-
197
- // URL
198
- export type $ZodURLParams = StringFormatParams<schemas.$ZodURL, "when">;
199
- export type $ZodCheckURLParams = CheckStringFormatParams<schemas.$ZodURL, "when">;
200
- // @__NO_SIDE_EFFECTS__
201
- export function _url<T extends schemas.$ZodURL>(
202
- Class: util.SchemaClass<T>,
203
- params?: string | $ZodURLParams | $ZodCheckURLParams
204
- ): T {
205
- return new Class({
206
- type: "string",
207
- format: "url",
208
- check: "string_format",
209
- abort: false,
210
- ...util.normalizeParams(params),
211
- });
212
- }
213
-
214
- // Emoji
215
- export type $ZodEmojiParams = StringFormatParams<schemas.$ZodEmoji, "when">;
216
- export type $ZodCheckEmojiParams = CheckStringFormatParams<schemas.$ZodEmoji, "when">;
217
- // @__NO_SIDE_EFFECTS__
218
- export function _emoji<T extends schemas.$ZodEmoji>(
219
- Class: util.SchemaClass<T>,
220
- params?: string | $ZodEmojiParams | $ZodCheckEmojiParams
221
- ): T {
222
- return new Class({
223
- type: "string",
224
- format: "emoji",
225
- check: "string_format",
226
- abort: false,
227
- ...util.normalizeParams(params),
228
- });
229
- }
230
-
231
- // NanoID
232
- export type $ZodNanoIDParams = StringFormatParams<schemas.$ZodNanoID, "when" | "pattern">;
233
- export type $ZodCheckNanoIDParams = CheckStringFormatParams<schemas.$ZodNanoID, "when" | "pattern">;
234
- // @__NO_SIDE_EFFECTS__
235
- export function _nanoid<T extends schemas.$ZodNanoID>(
236
- Class: util.SchemaClass<T>,
237
- params?: string | $ZodNanoIDParams | $ZodCheckNanoIDParams
238
- ): T {
239
- return new Class({
240
- type: "string",
241
- format: "nanoid",
242
- check: "string_format",
243
- abort: false,
244
- ...util.normalizeParams(params),
245
- });
246
- }
247
-
248
- // CUID
249
- /**
250
- * @deprecated CUID v1 is deprecated by its authors due to information leakage
251
- * (timestamps embedded in the id). Use {@link _cuid2} instead.
252
- * See https://github.com/paralleldrive/cuid.
253
- */
254
- export type $ZodCUIDParams = StringFormatParams<schemas.$ZodCUID, "when">;
255
- /**
256
- * @deprecated CUID v1 is deprecated by its authors due to information leakage
257
- * (timestamps embedded in the id). Use {@link _cuid2} instead.
258
- * See https://github.com/paralleldrive/cuid.
259
- */
260
- export type $ZodCheckCUIDParams = CheckStringFormatParams<schemas.$ZodCUID, "when">;
261
- /**
262
- * @deprecated CUID v1 is deprecated by its authors due to information leakage
263
- * (timestamps embedded in the id). Use {@link _cuid2} instead.
264
- * See https://github.com/paralleldrive/cuid.
265
- */
266
- // @__NO_SIDE_EFFECTS__
267
- export function _cuid<T extends schemas.$ZodCUID>(
268
- Class: util.SchemaClass<T>,
269
- params?: string | $ZodCUIDParams | $ZodCheckCUIDParams
270
- ): T {
271
- return new Class({
272
- type: "string",
273
- format: "cuid",
274
- check: "string_format",
275
- abort: false,
276
- ...util.normalizeParams(params),
277
- });
278
- }
279
-
280
- // CUID2
281
- export type $ZodCUID2Params = StringFormatParams<schemas.$ZodCUID2, "when">;
282
- export type $ZodCheckCUID2Params = CheckStringFormatParams<schemas.$ZodCUID2, "when">;
283
- // @__NO_SIDE_EFFECTS__
284
- export function _cuid2<T extends schemas.$ZodCUID2>(
285
- Class: util.SchemaClass<T>,
286
- params?: string | $ZodCUID2Params | $ZodCheckCUID2Params
287
- ): T {
288
- return new Class({
289
- type: "string",
290
- format: "cuid2",
291
- check: "string_format",
292
- abort: false,
293
- ...util.normalizeParams(params),
294
- });
295
- }
296
-
297
- // ULID
298
- export type $ZodULIDParams = StringFormatParams<schemas.$ZodULID, "when">;
299
- export type $ZodCheckULIDParams = CheckStringFormatParams<schemas.$ZodULID, "when">;
300
- // @__NO_SIDE_EFFECTS__
301
- export function _ulid<T extends schemas.$ZodULID>(
302
- Class: util.SchemaClass<T>,
303
- params?: string | $ZodULIDParams | $ZodCheckULIDParams
304
- ): T {
305
- return new Class({
306
- type: "string",
307
- format: "ulid",
308
- check: "string_format",
309
- abort: false,
310
- ...util.normalizeParams(params),
311
- });
312
- }
313
-
314
- // XID
315
- export type $ZodXIDParams = StringFormatParams<schemas.$ZodXID, "when">;
316
- export type $ZodCheckXIDParams = CheckStringFormatParams<schemas.$ZodXID, "when">;
317
- // @__NO_SIDE_EFFECTS__
318
- export function _xid<T extends schemas.$ZodXID>(
319
- Class: util.SchemaClass<T>,
320
- params?: string | $ZodXIDParams | $ZodCheckXIDParams
321
- ): T {
322
- return new Class({
323
- type: "string",
324
- format: "xid",
325
- check: "string_format",
326
- abort: false,
327
- ...util.normalizeParams(params),
328
- });
329
- }
330
-
331
- // KSUID
332
- export type $ZodKSUIDParams = StringFormatParams<schemas.$ZodKSUID, "when">;
333
- export type $ZodCheckKSUIDParams = CheckStringFormatParams<schemas.$ZodKSUID, "when">;
334
- // @__NO_SIDE_EFFECTS__
335
- export function _ksuid<T extends schemas.$ZodKSUID>(
336
- Class: util.SchemaClass<T>,
337
- params?: string | $ZodKSUIDParams | $ZodCheckKSUIDParams
338
- ): T {
339
- return new Class({
340
- type: "string",
341
- format: "ksuid",
342
- check: "string_format",
343
- abort: false,
344
- ...util.normalizeParams(params),
345
- });
346
- }
347
-
348
- // IPv4
349
- export type $ZodIPv4Params = StringFormatParams<schemas.$ZodIPv4, "pattern" | "when" | "version">;
350
- export type $ZodCheckIPv4Params = CheckStringFormatParams<schemas.$ZodIPv4, "pattern" | "when" | "version">;
351
- // @__NO_SIDE_EFFECTS__
352
- export function _ipv4<T extends schemas.$ZodIPv4>(
353
- Class: util.SchemaClass<T>,
354
- params?: string | $ZodIPv4Params | $ZodCheckIPv4Params
355
- ): T {
356
- return new Class({
357
- type: "string",
358
- format: "ipv4",
359
- check: "string_format",
360
- abort: false,
361
- ...util.normalizeParams(params),
362
- });
363
- }
364
-
365
- // IPv6
366
- export type $ZodIPv6Params = StringFormatParams<schemas.$ZodIPv6, "pattern" | "when" | "version">;
367
- export type $ZodCheckIPv6Params = CheckStringFormatParams<schemas.$ZodIPv6, "pattern" | "when" | "version">;
368
- // @__NO_SIDE_EFFECTS__
369
- export function _ipv6<T extends schemas.$ZodIPv6>(
370
- Class: util.SchemaClass<T>,
371
- params?: string | $ZodIPv6Params | $ZodCheckIPv6Params
372
- ): T {
373
- return new Class({
374
- type: "string",
375
- format: "ipv6",
376
- check: "string_format",
377
- abort: false,
378
- ...util.normalizeParams(params),
379
- });
380
- }
381
-
382
- // MAC
383
- export type $ZodMACParams = StringFormatParams<schemas.$ZodMAC, "pattern" | "when">;
384
- export type $ZodCheckMACParams = CheckStringFormatParams<schemas.$ZodMAC, "pattern" | "when">;
385
- // @__NO_SIDE_EFFECTS__
386
- export function _mac<T extends schemas.$ZodMAC>(
387
- Class: util.SchemaClass<T>,
388
- params?: string | $ZodMACParams | $ZodCheckMACParams
389
- ): T {
390
- return new Class({
391
- type: "string",
392
- format: "mac",
393
- check: "string_format",
394
- abort: false,
395
- ...util.normalizeParams(params),
396
- });
397
- }
398
-
399
- // CIDRv4
400
- export type $ZodCIDRv4Params = StringFormatParams<schemas.$ZodCIDRv4, "pattern" | "when">;
401
- export type $ZodCheckCIDRv4Params = CheckStringFormatParams<schemas.$ZodCIDRv4, "pattern" | "when">;
402
- // @__NO_SIDE_EFFECTS__
403
- export function _cidrv4<T extends schemas.$ZodCIDRv4>(
404
- Class: util.SchemaClass<T>,
405
- params?: string | $ZodCIDRv4Params | $ZodCheckCIDRv4Params
406
- ): T {
407
- return new Class({
408
- type: "string",
409
- format: "cidrv4",
410
- check: "string_format",
411
- abort: false,
412
- ...util.normalizeParams(params),
413
- });
414
- }
415
-
416
- // CIDRv6
417
- export type $ZodCIDRv6Params = StringFormatParams<schemas.$ZodCIDRv6, "pattern" | "when">;
418
- export type $ZodCheckCIDRv6Params = CheckStringFormatParams<schemas.$ZodCIDRv6, "pattern" | "when">;
419
- // @__NO_SIDE_EFFECTS__
420
- export function _cidrv6<T extends schemas.$ZodCIDRv6>(
421
- Class: util.SchemaClass<T>,
422
- params?: string | $ZodCIDRv6Params | $ZodCheckCIDRv6Params
423
- ): T {
424
- return new Class({
425
- type: "string",
426
- format: "cidrv6",
427
- check: "string_format",
428
- abort: false,
429
- ...util.normalizeParams(params),
430
- });
431
- }
432
-
433
- // Base64
434
- export type $ZodBase64Params = StringFormatParams<schemas.$ZodBase64, "pattern" | "when">;
435
- export type $ZodCheckBase64Params = CheckStringFormatParams<schemas.$ZodBase64, "pattern" | "when">;
436
- // @__NO_SIDE_EFFECTS__
437
- export function _base64<T extends schemas.$ZodBase64>(
438
- Class: util.SchemaClass<T>,
439
- params?: string | $ZodBase64Params | $ZodCheckBase64Params
440
- ): T {
441
- return new Class({
442
- type: "string",
443
- format: "base64",
444
- check: "string_format",
445
- abort: false,
446
- ...util.normalizeParams(params),
447
- });
448
- }
449
-
450
- // base64url
451
- export type $ZodBase64URLParams = StringFormatParams<schemas.$ZodBase64URL, "pattern" | "when">;
452
- export type $ZodCheckBase64URLParams = CheckStringFormatParams<schemas.$ZodBase64URL, "pattern" | "when">;
453
- // @__NO_SIDE_EFFECTS__
454
- export function _base64url<T extends schemas.$ZodBase64URL>(
455
- Class: util.SchemaClass<T>,
456
- params?: string | $ZodBase64URLParams | $ZodCheckBase64URLParams
457
- ): T {
458
- return new Class({
459
- type: "string",
460
- format: "base64url",
461
- check: "string_format",
462
- abort: false,
463
- ...util.normalizeParams(params),
464
- });
465
- }
466
-
467
- // E164
468
- export type $ZodE164Params = StringFormatParams<schemas.$ZodE164, "when">;
469
- export type $ZodCheckE164Params = CheckStringFormatParams<schemas.$ZodE164, "when">;
470
- // @__NO_SIDE_EFFECTS__
471
- export function _e164<T extends schemas.$ZodE164>(
472
- Class: util.SchemaClass<T>,
473
- params?: string | $ZodE164Params | $ZodCheckE164Params
474
- ): T {
475
- return new Class({
476
- type: "string",
477
- format: "e164",
478
- check: "string_format",
479
- abort: false,
480
- ...util.normalizeParams(params),
481
- });
482
- }
483
-
484
- // CreditCard
485
- export type $ZodCreditCardParams = StringFormatParams<schemas.$ZodCreditCard, "pattern" | "when">;
486
- export type $ZodCheckCreditCardParams = CheckStringFormatParams<schemas.$ZodCreditCard, "pattern" | "when">;
487
- // @__NO_SIDE_EFFECTS__
488
- export function _creditCard<T extends schemas.$ZodCreditCard>(
489
- Class: util.SchemaClass<T>,
490
- params?: string | $ZodCreditCardParams | $ZodCheckCreditCardParams
491
- ): T {
492
- return new Class({
493
- type: "string",
494
- format: "credit_card",
495
- check: "string_format",
496
- abort: false,
497
- ...util.normalizeParams(params),
498
- });
499
- }
500
-
501
- // IBAN
502
- export type $ZodIBANParams = StringFormatParams<schemas.$ZodIBAN, "pattern" | "when">;
503
- export type $ZodCheckIBANParams = CheckStringFormatParams<schemas.$ZodIBAN, "pattern" | "when">;
504
- // @__NO_SIDE_EFFECTS__
505
- export function _iban<T extends schemas.$ZodIBAN>(
506
- Class: util.SchemaClass<T>,
507
- params?: string | $ZodIBANParams | $ZodCheckIBANParams
508
- ): T {
509
- return new Class({
510
- type: "string",
511
- format: "iban",
512
- check: "string_format",
513
- abort: false,
514
- ...util.normalizeParams(params),
515
- });
516
- }
517
-
518
- // JWT
519
- export type $ZodJWTParams = StringFormatParams<schemas.$ZodJWT, "pattern" | "when">;
520
- export type $ZodCheckJWTParams = CheckStringFormatParams<schemas.$ZodJWT, "pattern" | "when">;
521
- // @__NO_SIDE_EFFECTS__
522
- export function _jwt<T extends schemas.$ZodJWT>(
523
- Class: util.SchemaClass<T>,
524
- params?: string | $ZodJWTParams | $ZodCheckJWTParams
525
- ): T {
526
- return new Class({
527
- type: "string",
528
- format: "jwt",
529
- check: "string_format",
530
- abort: false,
531
- ...util.normalizeParams(params),
532
- });
533
- }
534
-
535
- export const TimePrecision = {
536
- Any: null,
537
- Minute: -1,
538
- Second: 0,
539
- Millisecond: 3,
540
- Microsecond: 6,
541
- } as const;
542
- // ISODateTime
543
- export type $ZodISODateTimeParams = StringFormatParams<schemas.$ZodISODateTime, "pattern" | "when">;
544
- export type $ZodCheckISODateTimeParams = CheckStringFormatParams<schemas.$ZodISODateTime, "pattern" | "when">;
545
- // @__NO_SIDE_EFFECTS__
546
- export function _isoDateTime<T extends schemas.$ZodISODateTime>(
547
- Class: util.SchemaClass<T>,
548
- params?: string | $ZodISODateTimeParams | $ZodCheckISODateTimeParams
549
- ): T {
550
- return new Class({
551
- type: "string",
552
- format: "datetime",
553
- check: "string_format",
554
- offset: false,
555
- local: false,
556
- precision: null,
557
- ...util.normalizeParams(params),
558
- });
559
- }
560
-
561
- // ISODate
562
- export type $ZodISODateParams = StringFormatParams<schemas.$ZodISODate, "pattern" | "when">;
563
- export type $ZodCheckISODateParams = CheckStringFormatParams<schemas.$ZodISODate, "pattern" | "when">;
564
- // @__NO_SIDE_EFFECTS__
565
- export function _isoDate<T extends schemas.$ZodISODate>(
566
- Class: util.SchemaClass<T>,
567
- params?: string | $ZodISODateParams | $ZodCheckISODateParams
568
- ): T {
569
- return new Class({
570
- type: "string",
571
- format: "date",
572
- check: "string_format",
573
- ...util.normalizeParams(params),
574
- });
575
- }
576
-
577
- // ISOTime
578
- export type $ZodISOTimeParams = StringFormatParams<schemas.$ZodISOTime, "pattern" | "when">;
579
- export type $ZodCheckISOTimeParams = CheckStringFormatParams<schemas.$ZodISOTime, "pattern" | "when">;
580
- // @__NO_SIDE_EFFECTS__
581
- export function _isoTime<T extends schemas.$ZodISOTime>(
582
- Class: util.SchemaClass<T>,
583
- params?: string | $ZodISOTimeParams | $ZodCheckISOTimeParams
584
- ): T {
585
- return new Class({
586
- type: "string",
587
- format: "time",
588
- check: "string_format",
589
- precision: null,
590
- ...util.normalizeParams(params),
591
- });
592
- }
593
-
594
- // ISODuration
595
- export type $ZodISODurationParams = StringFormatParams<schemas.$ZodISODuration, "when">;
596
- export type $ZodCheckISODurationParams = CheckStringFormatParams<schemas.$ZodISODuration, "when">;
597
- // @__NO_SIDE_EFFECTS__
598
- export function _isoDuration<T extends schemas.$ZodISODuration>(
599
- Class: util.SchemaClass<T>,
600
- params?: string | $ZodISODurationParams | $ZodCheckISODurationParams
601
- ): T {
602
- return new Class({
603
- type: "string",
604
- format: "duration",
605
- check: "string_format",
606
- ...util.normalizeParams(params),
607
- });
608
- }
609
-
610
- // Number
611
- export type $ZodNumberParams = TypeParams<schemas.$ZodNumber<number>, "coerce"> & {
612
- checks?: readonly checks.$ZodCheck<number>[];
613
- };
614
- export type $ZodNumberFormatParams = CheckTypeParams<schemas.$ZodNumberFormat, "format" | "coerce">;
615
- export type $ZodCheckNumberFormatParams = CheckParams<checks.$ZodCheckNumberFormat, "format" | "when">;
616
- // @__NO_SIDE_EFFECTS__
617
- export function _number<T extends schemas.$ZodNumber>(
618
- Class: util.SchemaClass<T>,
619
- params?: string | $ZodNumberParams
620
- ): T {
621
- return new Class(snapshotChecks({ type: "number" as const, checks: [], ...util.normalizeParams(params) }));
622
- }
623
-
624
- // @__NO_SIDE_EFFECTS__
625
- export function _coercedNumber<T extends schemas.$ZodNumber>(
626
- Class: util.SchemaClass<T>,
627
- params?: string | $ZodNumberParams
628
- ): T {
629
- return new Class(
630
- snapshotChecks({ type: "number" as const, coerce: true, checks: [], ...util.normalizeParams(params) })
631
- );
632
- }
633
-
634
- // @__NO_SIDE_EFFECTS__
635
- export function _int<T extends schemas.$ZodNumberFormat>(
636
- Class: util.SchemaClass<T>,
637
- params?: string | $ZodCheckNumberFormatParams
638
- ): T {
639
- return new Class({
640
- type: "number",
641
- check: "number_format",
642
- abort: false,
643
- format: "safeint",
644
- ...util.normalizeParams(params),
645
- });
646
- }
647
- // @__NO_SIDE_EFFECTS__
648
- export function _float32<T extends schemas.$ZodNumberFormat>(
649
- Class: util.SchemaClass<T>,
650
- params?: string | $ZodCheckNumberFormatParams
651
- ): T {
652
- return new Class({
653
- type: "number",
654
- check: "number_format",
655
- abort: false,
656
- format: "float32",
657
- ...util.normalizeParams(params),
658
- });
659
- }
660
- // @__NO_SIDE_EFFECTS__
661
- export function _float64<T extends schemas.$ZodNumberFormat>(
662
- Class: util.SchemaClass<T>,
663
- params?: string | $ZodCheckNumberFormatParams
664
- ): T {
665
- return new Class({
666
- type: "number",
667
- check: "number_format",
668
- abort: false,
669
- format: "float64",
670
- ...util.normalizeParams(params),
671
- });
672
- }
673
- // @__NO_SIDE_EFFECTS__
674
- export function _int32<T extends schemas.$ZodNumberFormat>(
675
- Class: util.SchemaClass<T>,
676
- params?: string | $ZodCheckNumberFormatParams
677
- ): T {
678
- return new Class({
679
- type: "number",
680
- check: "number_format",
681
- abort: false,
682
- format: "int32",
683
- ...util.normalizeParams(params),
684
- });
685
- }
686
- // @__NO_SIDE_EFFECTS__
687
- export function _uint32<T extends schemas.$ZodNumberFormat>(
688
- Class: util.SchemaClass<T>,
689
- params?: string | $ZodCheckNumberFormatParams
690
- ): T {
691
- return new Class({
692
- type: "number",
693
- check: "number_format",
694
- abort: false,
695
- format: "uint32",
696
- ...util.normalizeParams(params),
697
- });
698
- }
699
-
700
- // Boolean
701
- export type $ZodBooleanParams = TypeParams<schemas.$ZodBoolean<boolean>, "coerce">;
702
- // @__NO_SIDE_EFFECTS__
703
- export function _boolean<T extends schemas.$ZodBoolean>(
704
- Class: util.SchemaClass<T>,
705
- params?: string | $ZodBooleanParams
706
- ): T {
707
- return new Class({
708
- type: "boolean",
709
- ...util.normalizeParams(params),
710
- });
711
- }
712
- // @__NO_SIDE_EFFECTS__
713
- export function _coercedBoolean<T extends schemas.$ZodBoolean>(
714
- Class: util.SchemaClass<T>,
715
- params?: string | $ZodBooleanParams
716
- ): T {
717
- return new Class({
718
- type: "boolean",
719
- coerce: true,
720
- ...util.normalizeParams(params),
721
- });
722
- }
723
-
724
- // BigInt
725
- export type $ZodBigIntParams = TypeParams<schemas.$ZodBigInt<bigint>>;
726
- export type $ZodBigIntFormatParams = CheckTypeParams<schemas.$ZodBigIntFormat, "format" | "coerce">;
727
- export type $ZodCheckBigIntFormatParams = CheckParams<checks.$ZodCheckBigIntFormat, "format" | "when">;
728
- // @__NO_SIDE_EFFECTS__
729
- export function _bigint<T extends schemas.$ZodBigInt>(
730
- Class: util.SchemaClass<T>,
731
- params?: string | $ZodBigIntParams
732
- ): T {
733
- return new Class({
734
- type: "bigint",
735
- ...util.normalizeParams(params),
736
- });
737
- }
738
- // @__NO_SIDE_EFFECTS__
739
- export function _coercedBigint<T extends schemas.$ZodBigInt>(
740
- Class: util.SchemaClass<T>,
741
- params?: string | $ZodBigIntParams
742
- ): T {
743
- return new Class({
744
- type: "bigint",
745
- coerce: true,
746
- ...util.normalizeParams(params),
747
- });
748
- }
749
-
750
- // @__NO_SIDE_EFFECTS__
751
- export function _int64<T extends schemas.$ZodBigIntFormat>(
752
- Class: util.SchemaClass<T>,
753
- params?: string | $ZodBigIntFormatParams
754
- ): T {
755
- return new Class({
756
- type: "bigint",
757
- check: "bigint_format",
758
- abort: false,
759
- format: "int64",
760
- ...util.normalizeParams(params),
761
- });
762
- }
763
- // @__NO_SIDE_EFFECTS__
764
- export function _uint64<T extends schemas.$ZodBigIntFormat>(
765
- Class: util.SchemaClass<T>,
766
- params?: string | $ZodBigIntFormatParams
767
- ): T {
768
- return new Class({
769
- type: "bigint",
770
- check: "bigint_format",
771
- abort: false,
772
- format: "uint64",
773
- ...util.normalizeParams(params),
774
- });
775
- }
776
-
777
- // Symbol
778
- export type $ZodSymbolParams = TypeParams<schemas.$ZodSymbol>;
779
- // @__NO_SIDE_EFFECTS__
780
- export function _symbol<T extends schemas.$ZodSymbol>(
781
- Class: util.SchemaClass<T>,
782
- params?: string | $ZodSymbolParams
783
- ): T {
784
- return new Class({
785
- type: "symbol",
786
- ...util.normalizeParams(params),
787
- });
788
- }
789
-
790
- // Undefined
791
- export type $ZodUndefinedParams = TypeParams<schemas.$ZodUndefined>;
792
- // @__NO_SIDE_EFFECTS__
793
- export function _undefined<T extends schemas.$ZodUndefined>(
794
- Class: util.SchemaClass<T>,
795
- params?: string | $ZodUndefinedParams
796
- ): T {
797
- return new Class({
798
- type: "undefined",
799
- ...util.normalizeParams(params),
800
- });
801
- }
802
-
803
- // Null
804
- export type $ZodNullParams = TypeParams<schemas.$ZodNull>;
805
- // @__NO_SIDE_EFFECTS__
806
- export function _null<T extends schemas.$ZodNull>(Class: util.SchemaClass<T>, params?: string | $ZodNullParams): T {
807
- return new Class({
808
- type: "null",
809
- ...util.normalizeParams(params),
810
- });
811
- }
812
-
813
- // Any
814
- export type $ZodAnyParams = TypeParams<schemas.$ZodAny>;
815
- // @__NO_SIDE_EFFECTS__
816
- export function _any<T extends schemas.$ZodAny>(Class: util.SchemaClass<T>): T {
817
- return new Class({
818
- type: "any",
819
- });
820
- }
821
-
822
- // Unknown
823
- export type $ZodUnknownParams = TypeParams<schemas.$ZodUnknown>;
824
- // @__NO_SIDE_EFFECTS__
825
- export function _unknown<T extends schemas.$ZodUnknown>(Class: util.SchemaClass<T>): T {
826
- return new Class({
827
- type: "unknown",
828
- });
829
- }
830
-
831
- // Never
832
- export type $ZodNeverParams = TypeParams<schemas.$ZodNever>;
833
- // @__NO_SIDE_EFFECTS__
834
- export function _never<T extends schemas.$ZodNever>(Class: util.SchemaClass<T>, params?: string | $ZodNeverParams): T {
835
- return new Class({
836
- type: "never",
837
- ...util.normalizeParams(params),
838
- });
839
- }
840
-
841
- // Void
842
- export type $ZodVoidParams = TypeParams<schemas.$ZodVoid>;
843
- // @__NO_SIDE_EFFECTS__
844
- export function _void<T extends schemas.$ZodVoid>(Class: util.SchemaClass<T>, params?: string | $ZodVoidParams): T {
845
- return new Class({
846
- type: "void",
847
- ...util.normalizeParams(params),
848
- });
849
- }
850
-
851
- // Date
852
- export type $ZodDateParams = TypeParams<schemas.$ZodDate, "coerce">;
853
- // @__NO_SIDE_EFFECTS__
854
- export function _date<T extends schemas.$ZodDate>(Class: util.SchemaClass<T>, params?: string | $ZodDateParams): T {
855
- return new Class({
856
- type: "date",
857
- ...util.normalizeParams(params),
858
- });
859
- }
860
- // @__NO_SIDE_EFFECTS__
861
- export function _coercedDate<T extends schemas.$ZodDate>(
862
- Class: util.SchemaClass<T>,
863
- params?: string | $ZodDateParams
864
- ): T {
865
- return new Class({
866
- type: "date",
867
- coerce: true,
868
- ...util.normalizeParams(params),
869
- });
870
- }
871
-
872
- // NaN
873
- export type $ZodNaNParams = TypeParams<schemas.$ZodNaN>;
874
- // @__NO_SIDE_EFFECTS__
875
- export function _nan<T extends schemas.$ZodNaN>(Class: util.SchemaClass<T>, params?: string | $ZodNaNParams): T {
876
- return new Class({
877
- type: "nan",
878
- ...util.normalizeParams(params),
879
- });
880
- }
881
-
882
- // export type $ZodCheckParams = CheckParams<checks.$ZodCheck, "abort" | "when">;
883
-
884
- export type $ZodCheckLessThanParams = CheckParams<checks.$ZodCheckLessThan, "inclusive" | "value" | "when">;
885
- // @__NO_SIDE_EFFECTS__
886
- export function _lt(
887
- value: util.Numeric,
888
- params?: string | $ZodCheckLessThanParams
889
- ): checks.$ZodCheckLessThan<util.Numeric> {
890
- return new checks.$ZodCheckLessThan({
891
- check: "less_than",
892
- ...util.normalizeParams(params),
893
- value,
894
- inclusive: false,
895
- });
896
- }
897
-
898
- // @__NO_SIDE_EFFECTS__
899
- export function _lte(
900
- value: util.Numeric,
901
- params?: string | $ZodCheckLessThanParams
902
- ): checks.$ZodCheckLessThan<util.Numeric> {
903
- return new checks.$ZodCheckLessThan({
904
- check: "less_than",
905
-
906
- ...util.normalizeParams(params),
907
- value,
908
- inclusive: true,
909
- });
910
- }
911
- export {
912
- /** @deprecated Use `z.lte()` instead. */
913
- _lte as _max,
914
- };
915
-
916
- // ZodCheckGreaterThan
917
- export type $ZodCheckGreaterThanParams = CheckParams<checks.$ZodCheckGreaterThan, "inclusive" | "value" | "when">;
918
- // @__NO_SIDE_EFFECTS__
919
- export function _gt(value: util.Numeric, params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan {
920
- return new checks.$ZodCheckGreaterThan({
921
- check: "greater_than",
922
-
923
- ...util.normalizeParams(params),
924
- value,
925
- inclusive: false,
926
- });
927
- }
928
-
929
- // @__NO_SIDE_EFFECTS__
930
- export function _gte(value: util.Numeric, params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan {
931
- return new checks.$ZodCheckGreaterThan({
932
- check: "greater_than",
933
- ...util.normalizeParams(params),
934
- value,
935
- inclusive: true,
936
- });
937
- }
938
-
939
- export {
940
- /** @deprecated Use `z.gte()` instead. */
941
- _gte as _min,
942
- };
943
-
944
- // @__NO_SIDE_EFFECTS__
945
- export function _positive(params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan {
946
- return _gt(0, params);
947
- }
948
-
949
- // negative
950
- // @__NO_SIDE_EFFECTS__
951
- export function _negative(params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan {
952
- return _lt(0, params);
953
- }
954
-
955
- // nonpositive
956
- // @__NO_SIDE_EFFECTS__
957
- export function _nonpositive(params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan {
958
- return _lte(0, params);
959
- }
960
-
961
- // nonnegative
962
- // @__NO_SIDE_EFFECTS__
963
- export function _nonnegative(params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan {
964
- return _gte(0, params);
965
- }
966
-
967
- export type $ZodCheckMultipleOfParams = CheckParams<checks.$ZodCheckMultipleOf, "value" | "when">;
968
- // @__NO_SIDE_EFFECTS__
969
- export function _multipleOf(
970
- value: number | bigint,
971
- params?: string | $ZodCheckMultipleOfParams
972
- ): checks.$ZodCheckMultipleOf {
973
- return new checks.$ZodCheckMultipleOf({
974
- check: "multiple_of",
975
- ...util.normalizeParams(params),
976
- value,
977
- });
978
- }
979
-
980
- export type $ZodCheckMaxSizeParams = CheckParams<checks.$ZodCheckMaxSize, "maximum" | "when">;
981
- // @__NO_SIDE_EFFECTS__
982
- export function _maxSize(
983
- maximum: number,
984
- params?: string | $ZodCheckMaxSizeParams
985
- ): checks.$ZodCheckMaxSize<util.HasSize> {
986
- return new checks.$ZodCheckMaxSize({
987
- check: "max_size",
988
- ...util.normalizeParams(params),
989
- maximum,
990
- });
991
- }
992
-
993
- export type $ZodCheckMinSizeParams = CheckParams<checks.$ZodCheckMinSize, "minimum" | "when">;
994
- // @__NO_SIDE_EFFECTS__
995
- export function _minSize(
996
- minimum: number,
997
- params?: string | $ZodCheckMinSizeParams
998
- ): checks.$ZodCheckMinSize<util.HasSize> {
999
- return new checks.$ZodCheckMinSize({
1000
- check: "min_size",
1001
- ...util.normalizeParams(params),
1002
- minimum,
1003
- });
1004
- }
1005
-
1006
- export type $ZodCheckSizeEqualsParams = CheckParams<checks.$ZodCheckSizeEquals, "size" | "when">;
1007
- // @__NO_SIDE_EFFECTS__
1008
- export function _size(
1009
- size: number,
1010
- params?: string | $ZodCheckSizeEqualsParams
1011
- ): checks.$ZodCheckSizeEquals<util.HasSize> {
1012
- return new checks.$ZodCheckSizeEquals({
1013
- check: "size_equals",
1014
- ...util.normalizeParams(params),
1015
- size,
1016
- });
1017
- }
1018
-
1019
- export type $ZodCheckMaxLengthParams = CheckParams<checks.$ZodCheckMaxLength, "maximum" | "when">;
1020
- // @__NO_SIDE_EFFECTS__
1021
- export function _maxLength(
1022
- maximum: number,
1023
- params?: string | $ZodCheckMaxLengthParams
1024
- ): checks.$ZodCheckMaxLength<util.HasLength> {
1025
- const ch = new checks.$ZodCheckMaxLength({
1026
- check: "max_length",
1027
- ...util.normalizeParams(params),
1028
- maximum,
1029
- });
1030
- return ch;
1031
- }
1032
-
1033
- export type $ZodCheckMinLengthParams = CheckParams<checks.$ZodCheckMinLength, "minimum" | "when">;
1034
- // @__NO_SIDE_EFFECTS__
1035
- export function _minLength(
1036
- minimum: number,
1037
- params?: string | $ZodCheckMinLengthParams
1038
- ): checks.$ZodCheckMinLength<util.HasLength> {
1039
- return new checks.$ZodCheckMinLength({
1040
- check: "min_length",
1041
- ...util.normalizeParams(params),
1042
- minimum,
1043
- });
1044
- }
1045
-
1046
- export type $ZodCheckLengthEqualsParams = CheckParams<checks.$ZodCheckLengthEquals, "length" | "when">;
1047
- // @__NO_SIDE_EFFECTS__
1048
- export function _length(
1049
- length: number,
1050
- params?: string | $ZodCheckLengthEqualsParams
1051
- ): checks.$ZodCheckLengthEquals<util.HasLength> {
1052
- return new checks.$ZodCheckLengthEquals({
1053
- check: "length_equals",
1054
- ...util.normalizeParams(params),
1055
- length,
1056
- });
1057
- }
1058
-
1059
- export type $ZodCheckRegexParams = CheckParams<checks.$ZodCheckRegex, "format" | "pattern" | "when">;
1060
- // @__NO_SIDE_EFFECTS__
1061
- export function _regex(pattern: RegExp, params?: string | $ZodCheckRegexParams): checks.$ZodCheckRegex {
1062
- return new checks.$ZodCheckRegex({
1063
- check: "string_format",
1064
- format: "regex",
1065
- ...util.normalizeParams(params),
1066
- pattern,
1067
- });
1068
- }
1069
-
1070
- export type $ZodCheckLowerCaseParams = CheckParams<checks.$ZodCheckLowerCase, "format" | "when">;
1071
- // @__NO_SIDE_EFFECTS__
1072
- export function _lowercase(params?: string | $ZodCheckLowerCaseParams): checks.$ZodCheckLowerCase {
1073
- return new checks.$ZodCheckLowerCase({
1074
- check: "string_format",
1075
- format: "lowercase",
1076
- ...util.normalizeParams(params),
1077
- });
1078
- }
1079
-
1080
- export type $ZodCheckUpperCaseParams = CheckParams<checks.$ZodCheckUpperCase, "format" | "when">;
1081
-
1082
- // @__NO_SIDE_EFFECTS__
1083
- export function _uppercase(params?: string | $ZodCheckUpperCaseParams): checks.$ZodCheckUpperCase {
1084
- return new checks.$ZodCheckUpperCase({
1085
- check: "string_format",
1086
- format: "uppercase",
1087
- ...util.normalizeParams(params),
1088
- });
1089
- }
1090
-
1091
- export type $ZodCheckIncludesParams = CheckParams<checks.$ZodCheckIncludes, "includes" | "format" | "when" | "pattern">;
1092
- // @__NO_SIDE_EFFECTS__
1093
- export function _includes(includes: string, params?: string | $ZodCheckIncludesParams): checks.$ZodCheckIncludes {
1094
- return new checks.$ZodCheckIncludes({
1095
- check: "string_format",
1096
- format: "includes",
1097
- ...util.normalizeParams(params),
1098
- includes,
1099
- });
1100
- }
1101
- export type $ZodCheckStartsWithParams = CheckParams<
1102
- checks.$ZodCheckStartsWith,
1103
- "prefix" | "format" | "when" | "pattern"
1104
- >;
1105
- // @__NO_SIDE_EFFECTS__
1106
- export function _startsWith(prefix: string, params?: string | $ZodCheckStartsWithParams): checks.$ZodCheckStartsWith {
1107
- return new checks.$ZodCheckStartsWith({
1108
- check: "string_format",
1109
- format: "starts_with",
1110
- ...util.normalizeParams(params),
1111
- prefix,
1112
- });
1113
- }
1114
-
1115
- export type $ZodCheckEndsWithParams = CheckParams<checks.$ZodCheckEndsWith, "suffix" | "format" | "pattern" | "when">;
1116
-
1117
- // @__NO_SIDE_EFFECTS__
1118
- export function _endsWith(suffix: string, params?: string | $ZodCheckEndsWithParams): checks.$ZodCheckEndsWith {
1119
- return new checks.$ZodCheckEndsWith({
1120
- check: "string_format",
1121
- format: "ends_with",
1122
- ...util.normalizeParams(params),
1123
- suffix,
1124
- });
1125
- }
1126
-
1127
- export type $ZodCheckPropertyParams = CheckParams<checks.$ZodCheckProperty, "property" | "schema" | "when">;
1128
- // @__NO_SIDE_EFFECTS__
1129
- export function _property<K extends string, T extends schemas.$ZodType>(
1130
- property: K,
1131
- schema: T,
1132
- params?: string | $ZodCheckPropertyParams
1133
- ): checks.$ZodCheckProperty<{ [k in K]: util.Widen<core.input<T>> }> {
1134
- return new checks.$ZodCheckProperty({
1135
- check: "property",
1136
- property,
1137
- schema,
1138
- ...util.normalizeParams(params),
1139
- });
1140
- }
1141
-
1142
- export type $ZodCheckPropertiesParams = CheckParams<checks.$ZodCheckProperties, "shape" | "when">;
1143
- // @__NO_SIDE_EFFECTS__
1144
- export function _properties<Shape extends schemas.$ZodShape>(
1145
- shape: Shape,
1146
- params?: string | $ZodCheckPropertiesParams
1147
- ): checks.$ZodCheckProperties<Shape> {
1148
- return new checks.$ZodCheckProperties({
1149
- check: "properties",
1150
- shape,
1151
- ...util.normalizeParams(params),
1152
- }) as any;
1153
- }
1154
-
1155
- export type $ZodCheckMimeTypeParams = CheckParams<checks.$ZodCheckMimeType, "mime" | "when">;
1156
- // @__NO_SIDE_EFFECTS__
1157
- export function _mime(types: util.MimeTypes[], params?: string | $ZodCheckMimeTypeParams): checks.$ZodCheckMimeType {
1158
- return new checks.$ZodCheckMimeType({
1159
- check: "mime_type",
1160
- mime: types,
1161
- ...util.normalizeParams(params),
1162
- });
1163
- }
1164
-
1165
- // @__NO_SIDE_EFFECTS__
1166
- export function _overwrite<T>(tx: (input: T) => T): checks.$ZodCheckOverwrite<T> {
1167
- return new checks.$ZodCheckOverwrite({
1168
- check: "overwrite",
1169
- tx,
1170
- }) as checks.$ZodCheckOverwrite<T>;
1171
- }
1172
- // normalize
1173
- // @__NO_SIDE_EFFECTS__
1174
- export function _normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): checks.$ZodCheckOverwrite<string> {
1175
- return _overwrite((input) => input.normalize(form));
1176
- }
1177
-
1178
- // trim
1179
- // @__NO_SIDE_EFFECTS__
1180
- export function _trim(): checks.$ZodCheckOverwrite<string> {
1181
- return _overwrite((input) => input.trim());
1182
- }
1183
- // toLowerCase
1184
- // @__NO_SIDE_EFFECTS__
1185
- export function _toLowerCase(): checks.$ZodCheckOverwrite<string> {
1186
- return _overwrite((input) => input.toLowerCase());
1187
- }
1188
- // toUpperCase
1189
- // @__NO_SIDE_EFFECTS__
1190
- export function _toUpperCase(): checks.$ZodCheckOverwrite<string> {
1191
- return _overwrite((input) => input.toUpperCase());
1192
- }
1193
- // slugify
1194
- // @__NO_SIDE_EFFECTS__
1195
- export function _slugify(): checks.$ZodCheckOverwrite<string> {
1196
- return _overwrite((input) => util.slugify(input));
1197
- }
1198
-
1199
- /////// collections ///////
1200
-
1201
- // Array
1202
- export type $ZodArrayParams = TypeParams<schemas.$ZodArray, "element">;
1203
- // @__NO_SIDE_EFFECTS__
1204
- export function _array<T extends schemas.$ZodType>(
1205
- Class: util.SchemaClass<schemas.$ZodArray>,
1206
- element: T,
1207
- params?: string | $ZodArrayParams
1208
- ): schemas.$ZodArray<T> {
1209
- return new Class({
1210
- type: "array",
1211
- element,
1212
- // get element() {
1213
- // return element;
1214
- // },
1215
- ...util.normalizeParams(params),
1216
- }) as any;
1217
- }
1218
-
1219
- export type $ZodObjectParams = TypeParams<schemas.$ZodObject, "shape" | "catchall">;
1220
-
1221
- // ZodUnion
1222
- export type $ZodUnionParams = TypeParams<schemas.$ZodUnion, "options">;
1223
- // @__NO_SIDE_EFFECTS__
1224
- export function _union<const T extends readonly schemas.$ZodObject[]>(
1225
- Class: util.SchemaClass<schemas.$ZodUnion>,
1226
- options: T,
1227
- params?: string | $ZodUnionParams
1228
- ): schemas.$ZodUnion<T> {
1229
- return new Class({
1230
- type: "union",
1231
- options,
1232
- ...util.normalizeParams(params),
1233
- }) as any;
1234
- }
1235
-
1236
- // ZodXor
1237
- export type $ZodXorParams = TypeParams<schemas.$ZodXor, "options">;
1238
- export function _xor<const T extends readonly schemas.$ZodObject[]>(
1239
- Class: util.SchemaClass<schemas.$ZodXor>,
1240
- options: T,
1241
- params?: string | $ZodXorParams
1242
- ): schemas.$ZodXor<T> {
1243
- return new Class({
1244
- type: "union",
1245
- options,
1246
- inclusive: false,
1247
- ...util.normalizeParams(params),
1248
- }) as any;
1249
- }
1250
-
1251
- // ZodDiscriminatedUnion
1252
-
1253
- // The bound stops at `propValues`; it deliberately does not check that the option carries the discriminator. Any such check has to name the option's `input`, and constraining `input` in argument position forces TypeScript to resolve it while checking the call — circular for an option whose input references the union, which collapses the whole union to `any`. `$ZodDiscriminatedUnion` validates the discriminator lazily instead, when it builds its lookup map.
1254
- //
1255
- // Validating eagerly through `propValues` is not available: reading it runs the option's shape getters, and for a recursive option that getter references the union whose initializer is still running, so it throws `ReferenceError: Cannot access '...' before initialization`.
1256
- //
1257
- // `Object.keys` on the shape is recursion-safe by contrast — it lists the keys without invoking them — so an eager check is reachable. It was tried and reverted: a key list derived from the shape cannot be kept in agreement with `shape` itself, which resolves lazily over the object the caller passed and then freezes to a copy, and it charged every object schema construction time and memory for a check only this one type reads.
1258
- //
1259
- // `_Disc` is unused and retained only so `$ZodTypeDiscriminable<"kind">` keeps compiling for external callers.
1260
- export interface $ZodTypeDiscriminableInternals<_Disc extends string = string> extends schemas._$ZodTypeInternals {
1261
- propValues: util.PropValues;
1262
- }
1263
-
1264
- export interface $ZodTypeDiscriminable<_Disc extends string = string> extends schemas.SomeType {
1265
- _zod: $ZodTypeDiscriminableInternals;
1266
- }
1267
-
1268
- export type $ZodDiscriminatedUnionParams = TypeParams<schemas.$ZodDiscriminatedUnion, "options" | "discriminator">;
1269
- // @__NO_SIDE_EFFECTS__
1270
- export function _discriminatedUnion<
1271
- Types extends [$ZodTypeDiscriminable, ...$ZodTypeDiscriminable[]],
1272
- Disc extends string,
1273
- >(
1274
- Class: util.SchemaClass<schemas.$ZodDiscriminatedUnion>,
1275
- discriminator: Disc,
1276
- options: Types,
1277
- params?: string | $ZodDiscriminatedUnionParams
1278
- ): schemas.$ZodDiscriminatedUnion<Types, Disc> {
1279
- return new Class({
1280
- type: "union",
1281
- options: options as any as schemas.$ZodType[],
1282
- discriminator,
1283
- ...util.normalizeParams(params),
1284
- }) as any;
1285
- }
1286
-
1287
- // ZodIntersection
1288
- export type $ZodIntersectionParams = TypeParams<schemas.$ZodIntersection, "left" | "right">;
1289
- // @__NO_SIDE_EFFECTS__
1290
- export function _intersection<T extends schemas.$ZodObject, U extends schemas.$ZodObject>(
1291
- Class: util.SchemaClass<schemas.$ZodIntersection>,
1292
- left: T,
1293
- right: U
1294
- ): schemas.$ZodIntersection<T, U> {
1295
- return new Class({
1296
- type: "intersection",
1297
- left,
1298
- right,
1299
- }) as any;
1300
- }
1301
-
1302
- // ZodTuple
1303
- export type $ZodTupleParams = TypeParams<schemas.$ZodTuple, "items" | "rest">;
1304
- // @__NO_SIDE_EFFECTS__
1305
- export function _tuple<T extends readonly [schemas.$ZodType, ...schemas.$ZodType[]]>(
1306
- Class: util.SchemaClass<schemas.$ZodTuple>,
1307
- items: T,
1308
- params?: string | $ZodTupleParams
1309
- ): schemas.$ZodTuple<T, null>;
1310
- // @__NO_SIDE_EFFECTS__
1311
- export function _tuple<T extends readonly [schemas.$ZodType, ...schemas.$ZodType[]], Rest extends schemas.$ZodType>(
1312
- Class: util.SchemaClass<schemas.$ZodTuple>,
1313
- items: T,
1314
- rest: Rest,
1315
- params?: string | $ZodTupleParams
1316
- ): schemas.$ZodTuple<T, Rest>;
1317
- // export function _tuple(
1318
- // Class: util.SchemaClass<schemas.$ZodTuple>,
1319
- // items: [],
1320
- // params?: string | $ZodTupleParams
1321
- // ): schemas.$ZodTuple<[], null>;
1322
- // @__NO_SIDE_EFFECTS__
1323
- export function _tuple(
1324
- Class: util.SchemaClass<schemas.$ZodTuple>,
1325
- items: schemas.$ZodType[],
1326
- _paramsOrRest?: string | $ZodTupleParams | schemas.$ZodType,
1327
- _params?: string | $ZodTupleParams
1328
- ) {
1329
- const hasRest = _paramsOrRest instanceof schemas.$ZodType;
1330
- const params = hasRest ? _params : _paramsOrRest;
1331
- const rest = hasRest ? _paramsOrRest : null;
1332
- return new Class({
1333
- type: "tuple",
1334
- items,
1335
- rest,
1336
- ...util.normalizeParams(params),
1337
- });
1338
- }
1339
-
1340
- // ZodRecord
1341
- export type $ZodRecordParams = TypeParams<schemas.$ZodRecord, "keyType" | "valueType" | "partial">;
1342
- // @__NO_SIDE_EFFECTS__
1343
- export function _record<Key extends schemas.$ZodRecordKey, Value extends schemas.$ZodObject>(
1344
- Class: util.SchemaClass<schemas.$ZodRecord>,
1345
- keyType: Key,
1346
- valueType: Value,
1347
- params?: string | $ZodRecordParams
1348
- ): schemas.$ZodRecord<Key, Value> {
1349
- return new Class({
1350
- type: "record",
1351
- keyType,
1352
- valueType,
1353
- ...util.normalizeParams(params),
1354
- }) as any;
1355
- }
1356
-
1357
- // ZodMap
1358
- export type $ZodMapParams = TypeParams<schemas.$ZodMap, "keyType" | "valueType">;
1359
- // @__NO_SIDE_EFFECTS__
1360
- export function _map<Key extends schemas.$ZodObject, Value extends schemas.$ZodObject>(
1361
- Class: util.SchemaClass<schemas.$ZodMap>,
1362
- keyType: Key,
1363
- valueType: Value,
1364
- params?: string | $ZodMapParams
1365
- ): schemas.$ZodMap<Key, Value> {
1366
- return new Class({
1367
- type: "map",
1368
- keyType,
1369
- valueType,
1370
- ...util.normalizeParams(params),
1371
- }) as any;
1372
- }
1373
-
1374
- // ZodSet
1375
- export type $ZodSetParams = TypeParams<schemas.$ZodSet, "valueType">;
1376
- // @__NO_SIDE_EFFECTS__
1377
- export function _set<Value extends schemas.$ZodObject>(
1378
- Class: util.SchemaClass<schemas.$ZodSet>,
1379
- valueType: Value,
1380
- params?: string | $ZodSetParams
1381
- ): schemas.$ZodSet<Value> {
1382
- return new Class({
1383
- type: "set",
1384
- valueType,
1385
- ...util.normalizeParams(params),
1386
- }) as any;
1387
- }
1388
-
1389
- // ZodEnum
1390
- export type $ZodEnumParams = TypeParams<schemas.$ZodEnum, "entries">;
1391
- // @__NO_SIDE_EFFECTS__
1392
- export function _enum<const T extends string[]>(
1393
- Class: util.SchemaClass<schemas.$ZodEnum>,
1394
- values: T,
1395
- params?: string | $ZodEnumParams
1396
- ): schemas.$ZodEnum<util.ToEnum<T[number]>>;
1397
- // @__NO_SIDE_EFFECTS__
1398
- export function _enum<T extends util.EnumLike>(
1399
- Class: util.SchemaClass<schemas.$ZodEnum>,
1400
- entries: T,
1401
- params?: string | $ZodEnumParams
1402
- ): schemas.$ZodEnum<T>;
1403
- // @__NO_SIDE_EFFECTS__
1404
- export function _enum(Class: util.SchemaClass<schemas.$ZodEnum>, values: any, params?: string | $ZodEnumParams) {
1405
- const entries: any = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
1406
- // if (Array.isArray(values)) {
1407
- // for (const value of values) {
1408
- // entries[value] = value;
1409
- // }
1410
- // } else {
1411
- // Object.assign(entries, values);
1412
- // }
1413
- // const entries: util.EnumLike = {};
1414
- // for (const val of values) {
1415
- // entries[val] = val;
1416
- // }
1417
-
1418
- return new Class({
1419
- type: "enum",
1420
- entries,
1421
- ...util.normalizeParams(params),
1422
- }) as any;
1423
- }
1424
-
1425
- // @__NO_SIDE_EFFECTS__
1426
- /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
1427
- *
1428
- * ```ts
1429
- * enum Colors { red, green, blue }
1430
- * z.enum(Colors);
1431
- * ```
1432
- */
1433
- export function _nativeEnum<T extends util.EnumLike>(
1434
- Class: util.SchemaClass<schemas.$ZodEnum>,
1435
- entries: T,
1436
- params?: string | $ZodEnumParams
1437
- ): schemas.$ZodEnum<T> {
1438
- return new Class({
1439
- type: "enum",
1440
- entries,
1441
- ...util.normalizeParams(params),
1442
- }) as any;
1443
- }
1444
-
1445
- // ZodLiteral
1446
- export type $ZodLiteralParams = TypeParams<schemas.$ZodLiteral, "values">;
1447
- export function _literal<const T extends Array<util.Literal>>(
1448
- Class: util.SchemaClass<schemas.$ZodLiteral>,
1449
- value: T,
1450
- params?: string | $ZodLiteralParams
1451
- ): schemas.$ZodLiteral<T[number]>;
1452
- export function _literal<const T extends util.Literal>(
1453
- Class: util.SchemaClass<schemas.$ZodLiteral>,
1454
- value: T,
1455
- params?: string | $ZodLiteralParams
1456
- ): schemas.$ZodLiteral<T>;
1457
- // @__NO_SIDE_EFFECTS__
1458
- export function _literal(Class: util.SchemaClass<schemas.$ZodLiteral>, value: any, params: any) {
1459
- return new Class({
1460
- type: "literal",
1461
- values: Array.isArray(value) ? value : [value],
1462
- ...util.normalizeParams(params),
1463
- });
1464
- }
1465
-
1466
- // ZodFile
1467
- export type $ZodFileParams = TypeParams<schemas.$ZodFile>;
1468
- // @__NO_SIDE_EFFECTS__
1469
- export function _file(Class: util.SchemaClass<schemas.$ZodFile>, params?: string | $ZodFileParams): schemas.$ZodFile {
1470
- return new Class({
1471
- type: "file",
1472
- ...util.normalizeParams(params),
1473
- });
1474
- }
1475
-
1476
- // ZodTransform
1477
- export type $ZodTransformParams = TypeParams<schemas.$ZodTransform, "transform">;
1478
- // @__NO_SIDE_EFFECTS__
1479
- export function _transform<I = unknown, O = I>(
1480
- Class: util.SchemaClass<schemas.$ZodTransform>,
1481
- fn: (input: I, ctx?: schemas.ParsePayload) => O
1482
- ): schemas.$ZodTransform<Awaited<O>, I> {
1483
- return new Class({
1484
- type: "transform",
1485
- transform: fn as any,
1486
- }) as any;
1487
- }
1488
-
1489
- // ZodOptional
1490
- export type $ZodOptionalParams = TypeParams<schemas.$ZodOptional, "innerType">;
1491
- // @__NO_SIDE_EFFECTS__
1492
- export function _optional<T extends schemas.$ZodObject>(
1493
- Class: util.SchemaClass<schemas.$ZodOptional>,
1494
- innerType: T
1495
- ): schemas.$ZodOptional<T> {
1496
- return new Class({
1497
- type: "optional",
1498
- innerType,
1499
- }) as any;
1500
- }
1501
-
1502
- // ZodNullable
1503
- export type $ZodNullableParams = TypeParams<schemas.$ZodNullable, "innerType">;
1504
- // @__NO_SIDE_EFFECTS__
1505
- export function _nullable<T extends schemas.$ZodObject>(
1506
- Class: util.SchemaClass<schemas.$ZodNullable>,
1507
- innerType: T
1508
- ): schemas.$ZodNullable<T> {
1509
- return new Class({
1510
- type: "nullable",
1511
- innerType,
1512
- }) as any;
1513
- }
1514
-
1515
- // ZodDefault
1516
- export type $ZodDefaultParams = TypeParams<schemas.$ZodDefault, "innerType" | "defaultValue">;
1517
- // @__NO_SIDE_EFFECTS__
1518
- export function _default<T extends schemas.$ZodObject>(
1519
- Class: util.SchemaClass<schemas.$ZodDefault>,
1520
- innerType: T,
1521
- defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)
1522
- ): schemas.$ZodDefault<T> {
1523
- return new Class({
1524
- type: "default",
1525
- innerType,
1526
- get defaultValue() {
1527
- return typeof defaultValue === "function" ? (defaultValue as Function)() : util.shallowClone(defaultValue);
1528
- },
1529
- }) as any;
1530
- }
1531
-
1532
- // ZodNonOptional
1533
- export type $ZodNonOptionalParams = TypeParams<schemas.$ZodNonOptional, "innerType">;
1534
- // @__NO_SIDE_EFFECTS__
1535
- export function _nonoptional<T extends schemas.$ZodObject>(
1536
- Class: util.SchemaClass<schemas.$ZodNonOptional>,
1537
- innerType: T,
1538
- params?: string | $ZodNonOptionalParams
1539
- ): schemas.$ZodNonOptional<T> {
1540
- return new Class({
1541
- type: "nonoptional",
1542
- innerType,
1543
- ...util.normalizeParams(params),
1544
- }) as any;
1545
- }
1546
-
1547
- // ZodSuccess
1548
- export type $ZodSuccessParams = TypeParams<schemas.$ZodSuccess, "innerType">;
1549
- // @__NO_SIDE_EFFECTS__
1550
- export function _success<T extends schemas.$ZodObject>(
1551
- Class: util.SchemaClass<schemas.$ZodSuccess>,
1552
- innerType: T
1553
- ): schemas.$ZodSuccess<T> {
1554
- return new Class({
1555
- type: "success",
1556
- innerType,
1557
- }) as any;
1558
- }
1559
-
1560
- // ZodCatch
1561
- export type $ZodCatchParams = TypeParams<schemas.$ZodCatch, "innerType" | "catchValue">;
1562
- // @__NO_SIDE_EFFECTS__
1563
- export function _catch<T extends schemas.$ZodObject>(
1564
- Class: util.SchemaClass<schemas.$ZodCatch>,
1565
- innerType: T,
1566
- catchValue: core.output<T> | ((ctx: schemas.$ZodCatchCtx) => core.output<T>)
1567
- ): schemas.$ZodCatch<T> {
1568
- return new Class({
1569
- type: "catch",
1570
- innerType,
1571
- catchValue: (typeof catchValue === "function" ? catchValue : util.constantCatch(catchValue)) as any,
1572
- }) as any;
1573
- }
1574
-
1575
- // ZodPipe
1576
- export type $ZodPipeParams = TypeParams<schemas.$ZodPipe, "in" | "out">;
1577
- // @__NO_SIDE_EFFECTS__
1578
- export function _pipe<
1579
- const A extends schemas.$ZodType,
1580
- B extends schemas.$ZodType<unknown, core.output<A>> = schemas.$ZodType<unknown, core.output<A>>,
1581
- >(
1582
- Class: util.SchemaClass<schemas.$ZodPipe>,
1583
- in_: A,
1584
- out: B | schemas.$ZodType<unknown, core.output<A>>
1585
- ): schemas.$ZodPipe<A, B> {
1586
- return new Class({
1587
- type: "pipe",
1588
- in: in_,
1589
- out,
1590
- }) as any;
1591
- }
1592
-
1593
- // ZodReadonly
1594
- export type $ZodReadonlyParams = TypeParams<schemas.$ZodReadonly, "innerType">;
1595
- // @__NO_SIDE_EFFECTS__
1596
- export function _readonly<T extends schemas.$ZodObject>(
1597
- Class: util.SchemaClass<schemas.$ZodReadonly>,
1598
- innerType: T
1599
- ): schemas.$ZodReadonly<T> {
1600
- return new Class({
1601
- type: "readonly",
1602
- innerType,
1603
- }) as any;
1604
- }
1605
-
1606
- // ZodTemplateLiteral
1607
- export type $ZodTemplateLiteralParams = TypeParams<schemas.$ZodTemplateLiteral, "parts">;
1608
- // @__NO_SIDE_EFFECTS__
1609
- export function _templateLiteral<const Parts extends schemas.$ZodTemplateLiteralPart[]>(
1610
- Class: util.SchemaClass<schemas.$ZodTemplateLiteral>,
1611
- parts: Parts,
1612
- params?: string | $ZodTemplateLiteralParams
1613
- ): schemas.$ZodTemplateLiteral<schemas.$PartsToTemplateLiteral<Parts>> {
1614
- return new Class({
1615
- type: "template_literal",
1616
- parts,
1617
- ...util.normalizeParams(params),
1618
- }) as any;
1619
- }
1620
-
1621
- // ZodLazy
1622
- export type $ZodLazyParams = TypeParams<schemas.$ZodLazy, "getter">;
1623
- // @__NO_SIDE_EFFECTS__
1624
- export function _lazy<T extends schemas.$ZodType>(
1625
- Class: util.SchemaClass<schemas.$ZodLazy>,
1626
- getter: () => T
1627
- ): schemas.$ZodLazy<T> {
1628
- return new Class({
1629
- type: "lazy",
1630
- getter,
1631
- }) as any;
1632
- }
1633
-
1634
- // ZodPromise
1635
- export type $ZodPromiseParams = TypeParams<schemas.$ZodPromise, "innerType">;
1636
- // @__NO_SIDE_EFFECTS__
1637
- export function _promise<T extends schemas.$ZodObject>(
1638
- Class: util.SchemaClass<schemas.$ZodPromise>,
1639
- innerType: T
1640
- ): schemas.$ZodPromise<T> {
1641
- return new Class({
1642
- type: "promise",
1643
- innerType,
1644
- }) as any;
1645
- }
1646
-
1647
- // ZodCustom
1648
- export type $ZodCustomParams = CheckTypeParams<schemas.$ZodCustom, "fn">;
1649
- // @__NO_SIDE_EFFECTS__
1650
- export function _custom<O = unknown, I = O>(
1651
- Class: util.SchemaClass<schemas.$ZodCustom>,
1652
- fn: (data: O) => unknown,
1653
- _params: string | $ZodCustomParams | undefined
1654
- ): schemas.$ZodCustom<O, I> {
1655
- const norm = util.normalizeParams(_params);
1656
- norm.abort ??= true; // default to abort:false
1657
- const schema = new Class({
1658
- type: "custom",
1659
- check: "custom",
1660
- fn: fn as any,
1661
- ...norm,
1662
- });
1663
-
1664
- return schema as any;
1665
- }
1666
-
1667
- // same as _custom but defaults to abort:false
1668
- // @__NO_SIDE_EFFECTS__
1669
- export function _refine<O = unknown, I = O>(
1670
- Class: util.SchemaClass<schemas.$ZodCustom>,
1671
- fn: (data: O) => unknown,
1672
- _params: string | $ZodCustomParams | undefined
1673
- ): schemas.$ZodCustom<O, I> {
1674
- const schema = new Class({
1675
- type: "custom",
1676
- check: "custom",
1677
- fn: fn as any,
1678
- ...util.normalizeParams(_params),
1679
- });
1680
-
1681
- return schema as any;
1682
- }
1683
-
1684
- export type $ZodSuperRefineIssue<T extends errors.$ZodIssueBase = errors.$ZodIssue> = T extends any
1685
- ? RawIssue<T>
1686
- : never;
1687
- type RawIssue<T extends errors.$ZodIssueBase> = T extends any
1688
- ? util.Flatten<
1689
- util.MakePartial<T, "message" | "path"> & {
1690
- /** The schema or check that originated this issue. */
1691
- readonly inst?: schemas.$ZodType | checks.$ZodCheck;
1692
- /** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */
1693
- readonly continue?: boolean | undefined;
1694
- } & Record<string, unknown>
1695
- >
1696
- : never;
1697
-
1698
- export interface $RefinementCtx<T = unknown> extends schemas.ParsePayload<T> {
1699
- addIssue(arg: string | $ZodSuperRefineIssue): void;
1700
- }
1701
-
1702
- export interface $ZodSuperRefineParams {
1703
- /** If provided, the refinement runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
1704
- when?: ((payload: schemas.ParsePayload) => boolean) | undefined;
1705
- }
1706
-
1707
- // @__NO_SIDE_EFFECTS__
1708
- export function _superRefine<T>(
1709
- fn: (arg: T, payload: $RefinementCtx<T>) => void | Promise<void>,
1710
- params?: $ZodSuperRefineParams
1711
- ): checks.$ZodCheck<T> {
1712
- const ch = _check<T>((payload) => {
1713
- (payload as $RefinementCtx).addIssue = (issue) => {
1714
- if (typeof issue === "string") {
1715
- payload.issues.push(util.issue(issue, payload.value, ch._zod.def));
1716
- } else {
1717
- // for Zod 3 backwards compatibility
1718
- const _issue: any = issue;
1719
- if (_issue.fatal) _issue.continue = false;
1720
- _issue.code ??= "custom";
1721
- if (!("input" in _issue)) _issue.input = payload.value;
1722
- _issue.inst ??= ch;
1723
- _issue.continue ??= !ch._zod.def.abort; // abort is always undefined, so this is always true...
1724
- payload.issues.push(util.issue(_issue));
1725
- }
1726
- };
1727
-
1728
- return fn(payload.value, payload as $RefinementCtx<T>);
1729
- }, params);
1730
- return ch;
1731
- }
1732
-
1733
- // @__NO_SIDE_EFFECTS__
1734
- export function _check<O = unknown>(fn: schemas.CheckFn<O>, params?: string | $ZodCustomParams): checks.$ZodCheck<O> {
1735
- const ch = new checks.$ZodCheck({
1736
- check: "custom",
1737
- ...util.normalizeParams(params),
1738
- });
1739
-
1740
- ch._zod.check = fn;
1741
- return ch;
1742
- }
1743
-
1744
- // @__NO_SIDE_EFFECTS__
1745
- export function describe<T>(description: string): checks.$ZodCheck<T> {
1746
- const ch = new checks.$ZodCheck({ check: "describe" });
1747
- ch._zod.onattach = [
1748
- (inst) => {
1749
- const existing = registries.globalRegistry.get(inst) ?? {};
1750
- registries.globalRegistry.add(inst, { ...existing, description });
1751
- },
1752
- ];
1753
- ch._zod.check = () => {}; // no-op check
1754
- return ch;
1755
- }
1756
-
1757
- // @__NO_SIDE_EFFECTS__
1758
- export function meta<T>(metadata: registries.GlobalMeta): checks.$ZodCheck<T> {
1759
- const ch = new checks.$ZodCheck({ check: "meta" });
1760
- ch._zod.onattach = [
1761
- (inst) => {
1762
- const existing = registries.globalRegistry.get(inst) ?? {};
1763
- registries.globalRegistry.add(inst, { ...existing, ...metadata });
1764
- },
1765
- ];
1766
- ch._zod.check = () => {}; // no-op check
1767
- return ch;
1768
- }
1769
-
1770
- // export type $ZodCustomParams = CheckTypeParams<schemas.$ZodCustom, "fn">
1771
-
1772
- ///////// STRINGBOOL /////////
1773
-
1774
- // stringbool
1775
- export interface $ZodStringBoolParams extends TypeParams {
1776
- truthy?: string[];
1777
- falsy?: string[];
1778
- /**
1779
- * Options: `"sensitive"`, `"insensitive"`
1780
- *
1781
- * @default `"insensitive"`
1782
- */
1783
- case?: "sensitive" | "insensitive" | undefined;
1784
- }
1785
-
1786
- // @__NO_SIDE_EFFECTS__
1787
- export function _stringbool(
1788
- Classes: {
1789
- Codec?: typeof schemas.$ZodCodec;
1790
- Boolean?: typeof schemas.$ZodBoolean;
1791
- String?: typeof schemas.$ZodString;
1792
- },
1793
- _params?: string | $ZodStringBoolParams
1794
- ): schemas.$ZodCodec<schemas.$ZodString, schemas.$ZodBoolean> {
1795
- const params = util.normalizeParams(_params);
1796
-
1797
- let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
1798
- let falsyArray = params.falsy ?? ["false", "0", "no", "off", "n", "disabled"];
1799
- if (params.case !== "sensitive") {
1800
- truthyArray = truthyArray.map((v) => (typeof v === "string" ? v.toLowerCase() : v));
1801
- falsyArray = falsyArray.map((v) => (typeof v === "string" ? v.toLowerCase() : v));
1802
- }
1803
-
1804
- const truthySet = new Set(truthyArray);
1805
- const falsySet = new Set(falsyArray);
1806
-
1807
- const _Codec = Classes.Codec ?? schemas.$ZodCodec;
1808
- const _Boolean = Classes.Boolean ?? schemas.$ZodBoolean;
1809
- const _String = Classes.String ?? schemas.$ZodString;
1810
-
1811
- const stringSchema = new _String({ type: "string", error: params.error });
1812
- const booleanSchema = new _Boolean({ type: "boolean", error: params.error });
1813
-
1814
- const codec = new _Codec({
1815
- type: "pipe",
1816
- in: stringSchema as any,
1817
- out: booleanSchema as any,
1818
- transform: ((input: string, payload: schemas.ParsePayload<string>) => {
1819
- let data: string = input;
1820
- if (params.case !== "sensitive") data = data.toLowerCase();
1821
- if (truthySet.has(data)) {
1822
- return true;
1823
- } else if (falsySet.has(data)) {
1824
- return false;
1825
- } else {
1826
- payload.issues.push({
1827
- code: "invalid_value",
1828
- expected: "stringbool",
1829
- values: [...truthySet, ...falsySet],
1830
- input: payload.value,
1831
- inst: codec,
1832
- continue: false,
1833
- });
1834
- return {} as never;
1835
- }
1836
- }) as any,
1837
- reverseTransform: ((input: boolean, _payload: schemas.ParsePayload<boolean>) => {
1838
- if (input === true) {
1839
- return truthyArray[0] || "true";
1840
- } else {
1841
- return falsyArray[0] || "false";
1842
- }
1843
- }) as any,
1844
- error: params.error,
1845
- }) as any;
1846
-
1847
- codec._zod.bag.truthy = truthyArray;
1848
- codec._zod.bag.falsy = falsyArray;
1849
- codec._zod.bag.case = params.case ?? "insensitive";
1850
-
1851
- return codec;
1852
- }
1853
-
1854
- // @__NO_SIDE_EFFECTS__
1855
- export function _stringFormat<Format extends string>(
1856
- Class: typeof schemas.$ZodCustomStringFormat,
1857
- format: Format,
1858
- fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp,
1859
- _params: string | $ZodStringFormatParams = {}
1860
- ): schemas.$ZodCustomStringFormat<Format> {
1861
- const params = util.normalizeParams(_params);
1862
- const def: schemas.$ZodCustomStringFormatDef = {
1863
- check: "string_format",
1864
- type: "string",
1865
- format,
1866
- fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
1867
- ...params,
1868
- };
1869
- if (fnOrRegex instanceof RegExp) {
1870
- def.pattern = fnOrRegex;
1871
- }
1872
-
1873
- const inst = new Class(def);
1874
- return inst as any;
1875
- }