fullstacked 0.12.0-1173 → 0.12.0-1184

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 (500) hide show
  1. package/fullstacked_modules/@fullstacked/ai-agent/README.md +1 -0
  2. package/fullstacked_modules/@fullstacked/ai-agent/chat.json +1 -0
  3. package/fullstacked_modules/@fullstacked/ai-agent/index.scss +15 -0
  4. package/fullstacked_modules/@fullstacked/ai-agent/index.ts +92 -0
  5. package/fullstacked_modules/@fullstacked/ai-agent/lock.json +726 -0
  6. package/fullstacked_modules/@fullstacked/ai-agent/package.json +15 -0
  7. package/fullstacked_modules/@fullstacked/ai-agent/src/conversation.ts +169 -0
  8. package/fullstacked_modules/@fullstacked/ai-agent/src/default.scss +23 -0
  9. package/fullstacked_modules/@fullstacked/ai-agent/src/index.ts +3 -0
  10. package/fullstacked_modules/@fullstacked/ai-agent/src/input.ts +36 -0
  11. package/fullstacked_modules/@fullstacked/ai-agent/src/markdown.ts +46 -0
  12. package/fullstacked_modules/@fullstacked/ai-agent/src/providers/interface.ts +6 -0
  13. package/fullstacked_modules/@fullstacked/ai-agent/src/providers/ollama.ts +42 -0
  14. package/fullstacked_modules/@fullstacked/ai-agent/src/providers/openai.ts +33 -0
  15. package/fullstacked_modules/@fullstacked/ai-agent/story.txt +7 -0
  16. package/fullstacked_modules/ai/index.d.ts +2 -0
  17. package/fullstacked_modules/ai/index.js +88268 -0
  18. package/fullstacked_modules/ai/index.ts +14 -0
  19. package/fullstacked_modules/ai/package.json +5 -0
  20. package/fullstacked_modules/ai/tools/fs.ts +60 -0
  21. package/{lib → fullstacked_modules}/archive/archive.ts +140 -140
  22. package/fullstacked_modules/archive/index.d.ts +2 -0
  23. package/{lib → fullstacked_modules}/archive/index.ts +4 -4
  24. package/{lib → fullstacked_modules}/base64.ts +144 -144
  25. package/fullstacked_modules/bridge/index.ts +120 -0
  26. package/{lib → fullstacked_modules}/bridge/platform/android.ts +18 -18
  27. package/{lib → fullstacked_modules}/bridge/platform/apple.ts +46 -46
  28. package/{lib → fullstacked_modules}/bridge/platform/electron.ts +14 -14
  29. package/{lib → fullstacked_modules}/bridge/platform/linux-gtk.ts +48 -48
  30. package/{lib → fullstacked_modules}/bridge/platform/linux-qt.ts +68 -68
  31. package/{lib → fullstacked_modules}/bridge/platform/node.ts +32 -32
  32. package/{lib → fullstacked_modules}/bridge/platform/wasm.ts +17 -17
  33. package/{lib → fullstacked_modules}/bridge/platform/windows.ts +49 -49
  34. package/{lib → fullstacked_modules}/bridge/serialization.ts +153 -153
  35. package/{lib → fullstacked_modules}/components/snackbar.ts +60 -60
  36. package/fullstacked_modules/config/config.ts +33 -0
  37. package/fullstacked_modules/config/index.ts +3 -0
  38. package/fullstacked_modules/connect/index.d.ts +2 -0
  39. package/{lib → fullstacked_modules}/connect/index.ts +125 -125
  40. package/{lib → fullstacked_modules}/core_message/core_message.ts +57 -76
  41. package/{lib → fullstacked_modules}/core_message/index.ts +3 -3
  42. package/fullstacked_modules/core_open.ts +9 -0
  43. package/fullstacked_modules/esbuild/esbuild.ts +101 -0
  44. package/fullstacked_modules/esbuild/index.ts +3 -0
  45. package/fullstacked_modules/esbuild/sass.ts +103 -0
  46. package/fullstacked_modules/fetch/index.d.ts +2 -0
  47. package/{lib → fullstacked_modules}/fetch/index.ts +332 -318
  48. package/{lib → fullstacked_modules}/fs/fs.ts +157 -157
  49. package/fullstacked_modules/fs/index.d.ts +2 -0
  50. package/{lib → fullstacked_modules}/fs/index.ts +3 -3
  51. package/fullstacked_modules/git/git.ts +238 -0
  52. package/fullstacked_modules/git/index.ts +3 -0
  53. package/fullstacked_modules/packages/index.ts +3 -0
  54. package/fullstacked_modules/packages/packages.ts +143 -0
  55. package/fullstacked_modules/platform/index.d.ts +2 -0
  56. package/{lib → fullstacked_modules}/platform/index.ts +14 -14
  57. package/fullstacked_modules/zod/LICENSE +21 -0
  58. package/fullstacked_modules/zod/README.md +208 -0
  59. package/fullstacked_modules/zod/index.d.cts +4 -0
  60. package/fullstacked_modules/zod/index.d.ts +4 -0
  61. package/fullstacked_modules/zod/locales/index.d.cts +1 -0
  62. package/fullstacked_modules/zod/locales/index.d.ts +1 -0
  63. package/fullstacked_modules/zod/mini/index.d.cts +1 -0
  64. package/fullstacked_modules/zod/mini/index.d.ts +1 -0
  65. package/fullstacked_modules/zod/package.json +134 -0
  66. package/fullstacked_modules/zod/src/index.ts +4 -0
  67. package/fullstacked_modules/zod/src/locales/index.ts +1 -0
  68. package/fullstacked_modules/zod/src/mini/index.ts +1 -0
  69. package/fullstacked_modules/zod/src/v3/ZodError.ts +330 -0
  70. package/fullstacked_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  71. package/fullstacked_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  72. package/fullstacked_modules/zod/src/v3/benchmarks/index.ts +59 -0
  73. package/fullstacked_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  74. package/fullstacked_modules/zod/src/v3/benchmarks/object.ts +69 -0
  75. package/fullstacked_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  76. package/fullstacked_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  77. package/fullstacked_modules/zod/src/v3/benchmarks/string.ts +55 -0
  78. package/fullstacked_modules/zod/src/v3/benchmarks/union.ts +80 -0
  79. package/fullstacked_modules/zod/src/v3/errors.ts +13 -0
  80. package/fullstacked_modules/zod/src/v3/external.ts +6 -0
  81. package/fullstacked_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  82. package/fullstacked_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  83. package/fullstacked_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  84. package/fullstacked_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  85. package/fullstacked_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  86. package/fullstacked_modules/zod/src/v3/helpers/util.ts +224 -0
  87. package/fullstacked_modules/zod/src/v3/index.ts +4 -0
  88. package/fullstacked_modules/zod/src/v3/locales/en.ts +124 -0
  89. package/fullstacked_modules/zod/src/v3/standard-schema.ts +113 -0
  90. package/fullstacked_modules/zod/src/v3/tests/Mocker.ts +54 -0
  91. package/fullstacked_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  92. package/fullstacked_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  93. package/fullstacked_modules/zod/src/v3/tests/array.test.ts +71 -0
  94. package/fullstacked_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  95. package/fullstacked_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  96. package/fullstacked_modules/zod/src/v3/tests/base.test.ts +29 -0
  97. package/fullstacked_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  98. package/fullstacked_modules/zod/src/v3/tests/branded.test.ts +53 -0
  99. package/fullstacked_modules/zod/src/v3/tests/catch.test.ts +220 -0
  100. package/fullstacked_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  101. package/fullstacked_modules/zod/src/v3/tests/complex.test.ts +56 -0
  102. package/fullstacked_modules/zod/src/v3/tests/custom.test.ts +31 -0
  103. package/fullstacked_modules/zod/src/v3/tests/date.test.ts +32 -0
  104. package/fullstacked_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  105. package/fullstacked_modules/zod/src/v3/tests/default.test.ts +112 -0
  106. package/fullstacked_modules/zod/src/v3/tests/description.test.ts +33 -0
  107. package/fullstacked_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  108. package/fullstacked_modules/zod/src/v3/tests/enum.test.ts +80 -0
  109. package/fullstacked_modules/zod/src/v3/tests/error.test.ts +551 -0
  110. package/fullstacked_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  111. package/fullstacked_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  112. package/fullstacked_modules/zod/src/v3/tests/function.test.ts +257 -0
  113. package/fullstacked_modules/zod/src/v3/tests/generics.test.ts +48 -0
  114. package/fullstacked_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  115. package/fullstacked_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  116. package/fullstacked_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  117. package/fullstacked_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  118. package/fullstacked_modules/zod/src/v3/tests/literal.test.ts +36 -0
  119. package/fullstacked_modules/zod/src/v3/tests/map.test.ts +110 -0
  120. package/fullstacked_modules/zod/src/v3/tests/masking.test.ts +4 -0
  121. package/fullstacked_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  122. package/fullstacked_modules/zod/src/v3/tests/nan.test.ts +21 -0
  123. package/fullstacked_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  124. package/fullstacked_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  125. package/fullstacked_modules/zod/src/v3/tests/number.test.ts +176 -0
  126. package/fullstacked_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  127. package/fullstacked_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  128. package/fullstacked_modules/zod/src/v3/tests/object.test.ts +434 -0
  129. package/fullstacked_modules/zod/src/v3/tests/optional.test.ts +42 -0
  130. package/fullstacked_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  131. package/fullstacked_modules/zod/src/v3/tests/parser.test.ts +41 -0
  132. package/fullstacked_modules/zod/src/v3/tests/partials.test.ts +243 -0
  133. package/fullstacked_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  134. package/fullstacked_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  135. package/fullstacked_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  136. package/fullstacked_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  137. package/fullstacked_modules/zod/src/v3/tests/promise.test.ts +90 -0
  138. package/fullstacked_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  139. package/fullstacked_modules/zod/src/v3/tests/record.test.ts +171 -0
  140. package/fullstacked_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  141. package/fullstacked_modules/zod/src/v3/tests/refine.test.ts +313 -0
  142. package/fullstacked_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  143. package/fullstacked_modules/zod/src/v3/tests/set.test.ts +142 -0
  144. package/fullstacked_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  145. package/fullstacked_modules/zod/src/v3/tests/string.test.ts +916 -0
  146. package/fullstacked_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  147. package/fullstacked_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  148. package/fullstacked_modules/zod/src/v3/tests/unions.test.ts +57 -0
  149. package/fullstacked_modules/zod/src/v3/tests/validations.test.ts +133 -0
  150. package/fullstacked_modules/zod/src/v3/tests/void.test.ts +15 -0
  151. package/fullstacked_modules/zod/src/v3/types.ts +5138 -0
  152. package/fullstacked_modules/zod/src/v4/classic/checks.ts +31 -0
  153. package/fullstacked_modules/zod/src/v4/classic/coerce.ts +27 -0
  154. package/fullstacked_modules/zod/src/v4/classic/compat.ts +70 -0
  155. package/fullstacked_modules/zod/src/v4/classic/errors.ts +82 -0
  156. package/fullstacked_modules/zod/src/v4/classic/external.ts +50 -0
  157. package/fullstacked_modules/zod/src/v4/classic/index.ts +5 -0
  158. package/fullstacked_modules/zod/src/v4/classic/iso.ts +90 -0
  159. package/fullstacked_modules/zod/src/v4/classic/parse.ts +33 -0
  160. package/fullstacked_modules/zod/src/v4/classic/schemas.ts +2031 -0
  161. package/fullstacked_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  162. package/fullstacked_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  163. package/fullstacked_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  164. package/fullstacked_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  165. package/fullstacked_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  166. package/fullstacked_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  167. package/fullstacked_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  168. package/fullstacked_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  169. package/fullstacked_modules/zod/src/v4/classic/tests/catch.test.ts +251 -0
  170. package/fullstacked_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  171. package/fullstacked_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  172. package/fullstacked_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  173. package/fullstacked_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  174. package/fullstacked_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  175. package/fullstacked_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
  176. package/fullstacked_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  177. package/fullstacked_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  178. package/fullstacked_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +661 -0
  179. package/fullstacked_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  180. package/fullstacked_modules/zod/src/v4/classic/tests/error-utils.test.ts +595 -0
  181. package/fullstacked_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  182. package/fullstacked_modules/zod/src/v4/classic/tests/file.test.ts +94 -0
  183. package/fullstacked_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  184. package/fullstacked_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  185. package/fullstacked_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  186. package/fullstacked_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  187. package/fullstacked_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  188. package/fullstacked_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  189. package/fullstacked_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  190. package/fullstacked_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  191. package/fullstacked_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
  192. package/fullstacked_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  193. package/fullstacked_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  194. package/fullstacked_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  195. package/fullstacked_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  196. package/fullstacked_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  197. package/fullstacked_modules/zod/src/v4/classic/tests/number.test.ts +270 -0
  198. package/fullstacked_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  199. package/fullstacked_modules/zod/src/v4/classic/tests/optional.test.ts +136 -0
  200. package/fullstacked_modules/zod/src/v4/classic/tests/partial.test.ts +340 -0
  201. package/fullstacked_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  202. package/fullstacked_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  203. package/fullstacked_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  204. package/fullstacked_modules/zod/src/v4/classic/tests/preprocess.test.ts +287 -0
  205. package/fullstacked_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  206. package/fullstacked_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  207. package/fullstacked_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  208. package/fullstacked_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  209. package/fullstacked_modules/zod/src/v4/classic/tests/record.test.ts +356 -0
  210. package/fullstacked_modules/zod/src/v4/classic/tests/recursive-types.test.ts +477 -0
  211. package/fullstacked_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  212. package/fullstacked_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  213. package/fullstacked_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  214. package/fullstacked_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  215. package/fullstacked_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  216. package/fullstacked_modules/zod/src/v4/classic/tests/string.test.ts +996 -0
  217. package/fullstacked_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  218. package/fullstacked_modules/zod/src/v4/classic/tests/template-literal.test.ts +761 -0
  219. package/fullstacked_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2341 -0
  220. package/fullstacked_modules/zod/src/v4/classic/tests/transform.test.ts +354 -0
  221. package/fullstacked_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  222. package/fullstacked_modules/zod/src/v4/classic/tests/union.test.ts +181 -0
  223. package/fullstacked_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  224. package/fullstacked_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  225. package/fullstacked_modules/zod/src/v4/core/api.ts +1628 -0
  226. package/fullstacked_modules/zod/src/v4/core/checks.ts +1285 -0
  227. package/fullstacked_modules/zod/src/v4/core/config.ts +15 -0
  228. package/fullstacked_modules/zod/src/v4/core/core.ts +134 -0
  229. package/fullstacked_modules/zod/src/v4/core/doc.ts +44 -0
  230. package/fullstacked_modules/zod/src/v4/core/errors.ts +423 -0
  231. package/fullstacked_modules/zod/src/v4/core/function.ts +176 -0
  232. package/fullstacked_modules/zod/src/v4/core/index.ts +15 -0
  233. package/fullstacked_modules/zod/src/v4/core/json-schema.ts +146 -0
  234. package/fullstacked_modules/zod/src/v4/core/parse.ts +94 -0
  235. package/fullstacked_modules/zod/src/v4/core/regexes.ts +138 -0
  236. package/fullstacked_modules/zod/src/v4/core/registries.ts +97 -0
  237. package/fullstacked_modules/zod/src/v4/core/schemas.ts +3900 -0
  238. package/fullstacked_modules/zod/src/v4/core/standard-schema.ts +64 -0
  239. package/fullstacked_modules/zod/src/v4/core/tests/extend.test.ts +18 -0
  240. package/fullstacked_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  241. package/fullstacked_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  242. package/fullstacked_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  243. package/fullstacked_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  244. package/fullstacked_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  245. package/fullstacked_modules/zod/src/v4/core/to-json-schema.ts +1004 -0
  246. package/fullstacked_modules/zod/src/v4/core/util.ts +827 -0
  247. package/fullstacked_modules/zod/src/v4/core/versions.ts +5 -0
  248. package/fullstacked_modules/zod/src/v4/core/zsf.ts +323 -0
  249. package/fullstacked_modules/zod/src/v4/index.ts +4 -0
  250. package/fullstacked_modules/zod/src/v4/locales/ar.ts +125 -0
  251. package/fullstacked_modules/zod/src/v4/locales/az.ts +121 -0
  252. package/fullstacked_modules/zod/src/v4/locales/be.ts +184 -0
  253. package/fullstacked_modules/zod/src/v4/locales/bg.ts +136 -0
  254. package/fullstacked_modules/zod/src/v4/locales/ca.ts +127 -0
  255. package/fullstacked_modules/zod/src/v4/locales/cs.ts +142 -0
  256. package/fullstacked_modules/zod/src/v4/locales/da.ts +141 -0
  257. package/fullstacked_modules/zod/src/v4/locales/de.ts +124 -0
  258. package/fullstacked_modules/zod/src/v4/locales/en.ts +127 -0
  259. package/fullstacked_modules/zod/src/v4/locales/eo.ts +125 -0
  260. package/fullstacked_modules/zod/src/v4/locales/es.ts +125 -0
  261. package/fullstacked_modules/zod/src/v4/locales/fa.ts +134 -0
  262. package/fullstacked_modules/zod/src/v4/locales/fi.ts +131 -0
  263. package/fullstacked_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  264. package/fullstacked_modules/zod/src/v4/locales/fr.ts +124 -0
  265. package/fullstacked_modules/zod/src/v4/locales/he.ts +125 -0
  266. package/fullstacked_modules/zod/src/v4/locales/hu.ts +126 -0
  267. package/fullstacked_modules/zod/src/v4/locales/id.ts +125 -0
  268. package/fullstacked_modules/zod/src/v4/locales/index.ts +42 -0
  269. package/fullstacked_modules/zod/src/v4/locales/is.ts +127 -0
  270. package/fullstacked_modules/zod/src/v4/locales/it.ts +125 -0
  271. package/fullstacked_modules/zod/src/v4/locales/ja.ts +122 -0
  272. package/fullstacked_modules/zod/src/v4/locales/kh.ts +126 -0
  273. package/fullstacked_modules/zod/src/v4/locales/ko.ts +131 -0
  274. package/fullstacked_modules/zod/src/v4/locales/mk.ts +127 -0
  275. package/fullstacked_modules/zod/src/v4/locales/ms.ts +124 -0
  276. package/fullstacked_modules/zod/src/v4/locales/nl.ts +126 -0
  277. package/fullstacked_modules/zod/src/v4/locales/no.ts +124 -0
  278. package/fullstacked_modules/zod/src/v4/locales/ota.ts +125 -0
  279. package/fullstacked_modules/zod/src/v4/locales/pl.ts +126 -0
  280. package/fullstacked_modules/zod/src/v4/locales/ps.ts +133 -0
  281. package/fullstacked_modules/zod/src/v4/locales/pt.ts +123 -0
  282. package/fullstacked_modules/zod/src/v4/locales/ru.ts +184 -0
  283. package/fullstacked_modules/zod/src/v4/locales/sl.ts +126 -0
  284. package/fullstacked_modules/zod/src/v4/locales/sv.ts +127 -0
  285. package/fullstacked_modules/zod/src/v4/locales/ta.ts +125 -0
  286. package/fullstacked_modules/zod/src/v4/locales/th.ts +126 -0
  287. package/fullstacked_modules/zod/src/v4/locales/tr.ts +121 -0
  288. package/fullstacked_modules/zod/src/v4/locales/ua.ts +126 -0
  289. package/fullstacked_modules/zod/src/v4/locales/ur.ts +126 -0
  290. package/fullstacked_modules/zod/src/v4/locales/vi.ts +125 -0
  291. package/fullstacked_modules/zod/src/v4/locales/yo.ts +131 -0
  292. package/fullstacked_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  293. package/fullstacked_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  294. package/fullstacked_modules/zod/src/v4/mini/checks.ts +32 -0
  295. package/fullstacked_modules/zod/src/v4/mini/coerce.ts +22 -0
  296. package/fullstacked_modules/zod/src/v4/mini/external.ts +40 -0
  297. package/fullstacked_modules/zod/src/v4/mini/index.ts +3 -0
  298. package/fullstacked_modules/zod/src/v4/mini/iso.ts +62 -0
  299. package/fullstacked_modules/zod/src/v4/mini/parse.ts +1 -0
  300. package/fullstacked_modules/zod/src/v4/mini/schemas.ts +1592 -0
  301. package/fullstacked_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  302. package/fullstacked_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  303. package/fullstacked_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  304. package/fullstacked_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  305. package/fullstacked_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  306. package/fullstacked_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  307. package/fullstacked_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  308. package/fullstacked_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  309. package/fullstacked_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  310. package/fullstacked_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  311. package/fullstacked_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  312. package/fullstacked_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  313. package/fullstacked_modules/zod/src/v4-mini/index.ts +1 -0
  314. package/fullstacked_modules/zod/v3/ZodError.d.cts +164 -0
  315. package/fullstacked_modules/zod/v3/ZodError.d.ts +164 -0
  316. package/fullstacked_modules/zod/v3/errors.d.cts +5 -0
  317. package/fullstacked_modules/zod/v3/errors.d.ts +5 -0
  318. package/fullstacked_modules/zod/v3/external.d.cts +6 -0
  319. package/fullstacked_modules/zod/v3/external.d.ts +6 -0
  320. package/fullstacked_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  321. package/fullstacked_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  322. package/fullstacked_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  323. package/fullstacked_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  324. package/fullstacked_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  325. package/fullstacked_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  326. package/fullstacked_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  327. package/fullstacked_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  328. package/fullstacked_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  329. package/fullstacked_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  330. package/fullstacked_modules/zod/v3/helpers/util.d.cts +85 -0
  331. package/fullstacked_modules/zod/v3/helpers/util.d.ts +85 -0
  332. package/fullstacked_modules/zod/v3/index.d.cts +4 -0
  333. package/fullstacked_modules/zod/v3/index.d.ts +4 -0
  334. package/fullstacked_modules/zod/v3/locales/en.d.cts +3 -0
  335. package/fullstacked_modules/zod/v3/locales/en.d.ts +3 -0
  336. package/fullstacked_modules/zod/v3/standard-schema.d.cts +102 -0
  337. package/fullstacked_modules/zod/v3/standard-schema.d.ts +102 -0
  338. package/fullstacked_modules/zod/v3/types.d.cts +1034 -0
  339. package/fullstacked_modules/zod/v3/types.d.ts +1034 -0
  340. package/fullstacked_modules/zod/v4/classic/checks.d.cts +1 -0
  341. package/fullstacked_modules/zod/v4/classic/checks.d.ts +1 -0
  342. package/fullstacked_modules/zod/v4/classic/coerce.d.cts +17 -0
  343. package/fullstacked_modules/zod/v4/classic/coerce.d.ts +17 -0
  344. package/fullstacked_modules/zod/v4/classic/compat.d.cts +50 -0
  345. package/fullstacked_modules/zod/v4/classic/compat.d.ts +50 -0
  346. package/fullstacked_modules/zod/v4/classic/errors.d.cts +30 -0
  347. package/fullstacked_modules/zod/v4/classic/errors.d.ts +30 -0
  348. package/fullstacked_modules/zod/v4/classic/external.d.cts +13 -0
  349. package/fullstacked_modules/zod/v4/classic/external.d.ts +13 -0
  350. package/fullstacked_modules/zod/v4/classic/index.d.cts +4 -0
  351. package/fullstacked_modules/zod/v4/classic/index.d.ts +4 -0
  352. package/fullstacked_modules/zod/v4/classic/iso.d.cts +22 -0
  353. package/fullstacked_modules/zod/v4/classic/iso.d.ts +22 -0
  354. package/fullstacked_modules/zod/v4/classic/parse.d.cts +23 -0
  355. package/fullstacked_modules/zod/v4/classic/parse.d.ts +23 -0
  356. package/fullstacked_modules/zod/v4/classic/schemas.d.cts +619 -0
  357. package/fullstacked_modules/zod/v4/classic/schemas.d.ts +619 -0
  358. package/fullstacked_modules/zod/v4/core/api.d.cts +296 -0
  359. package/fullstacked_modules/zod/v4/core/api.d.ts +296 -0
  360. package/fullstacked_modules/zod/v4/core/checks.d.cts +278 -0
  361. package/fullstacked_modules/zod/v4/core/checks.d.ts +278 -0
  362. package/fullstacked_modules/zod/v4/core/core.d.cts +49 -0
  363. package/fullstacked_modules/zod/v4/core/core.d.ts +49 -0
  364. package/fullstacked_modules/zod/v4/core/doc.d.cts +14 -0
  365. package/fullstacked_modules/zod/v4/core/doc.d.ts +14 -0
  366. package/fullstacked_modules/zod/v4/core/errors.d.cts +210 -0
  367. package/fullstacked_modules/zod/v4/core/errors.d.ts +210 -0
  368. package/fullstacked_modules/zod/v4/core/function.d.cts +52 -0
  369. package/fullstacked_modules/zod/v4/core/function.d.ts +52 -0
  370. package/fullstacked_modules/zod/v4/core/index.d.cts +15 -0
  371. package/fullstacked_modules/zod/v4/core/index.d.ts +15 -0
  372. package/fullstacked_modules/zod/v4/core/json-schema.d.cts +87 -0
  373. package/fullstacked_modules/zod/v4/core/json-schema.d.ts +87 -0
  374. package/fullstacked_modules/zod/v4/core/parse.d.cts +25 -0
  375. package/fullstacked_modules/zod/v4/core/parse.d.ts +25 -0
  376. package/fullstacked_modules/zod/v4/core/regexes.d.cts +62 -0
  377. package/fullstacked_modules/zod/v4/core/regexes.d.ts +62 -0
  378. package/fullstacked_modules/zod/v4/core/registries.d.cts +35 -0
  379. package/fullstacked_modules/zod/v4/core/registries.d.ts +35 -0
  380. package/fullstacked_modules/zod/v4/core/schemas.d.cts +1055 -0
  381. package/fullstacked_modules/zod/v4/core/schemas.d.ts +1055 -0
  382. package/fullstacked_modules/zod/v4/core/standard-schema.d.cts +55 -0
  383. package/fullstacked_modules/zod/v4/core/standard-schema.d.ts +55 -0
  384. package/fullstacked_modules/zod/v4/core/to-json-schema.d.cts +89 -0
  385. package/fullstacked_modules/zod/v4/core/to-json-schema.d.ts +89 -0
  386. package/fullstacked_modules/zod/v4/core/util.d.cts +185 -0
  387. package/fullstacked_modules/zod/v4/core/util.d.ts +185 -0
  388. package/fullstacked_modules/zod/v4/core/versions.d.cts +5 -0
  389. package/fullstacked_modules/zod/v4/core/versions.d.ts +5 -0
  390. package/fullstacked_modules/zod/v4/index.d.cts +3 -0
  391. package/fullstacked_modules/zod/v4/index.d.ts +3 -0
  392. package/fullstacked_modules/zod/v4/locales/ar.d.cts +5 -0
  393. package/fullstacked_modules/zod/v4/locales/ar.d.ts +4 -0
  394. package/fullstacked_modules/zod/v4/locales/az.d.cts +5 -0
  395. package/fullstacked_modules/zod/v4/locales/az.d.ts +4 -0
  396. package/fullstacked_modules/zod/v4/locales/be.d.cts +5 -0
  397. package/fullstacked_modules/zod/v4/locales/be.d.ts +4 -0
  398. package/fullstacked_modules/zod/v4/locales/bg.d.cts +5 -0
  399. package/fullstacked_modules/zod/v4/locales/bg.d.ts +5 -0
  400. package/fullstacked_modules/zod/v4/locales/ca.d.cts +5 -0
  401. package/fullstacked_modules/zod/v4/locales/ca.d.ts +4 -0
  402. package/fullstacked_modules/zod/v4/locales/cs.d.cts +5 -0
  403. package/fullstacked_modules/zod/v4/locales/cs.d.ts +4 -0
  404. package/fullstacked_modules/zod/v4/locales/da.d.cts +5 -0
  405. package/fullstacked_modules/zod/v4/locales/da.d.ts +4 -0
  406. package/fullstacked_modules/zod/v4/locales/de.d.cts +5 -0
  407. package/fullstacked_modules/zod/v4/locales/de.d.ts +4 -0
  408. package/fullstacked_modules/zod/v4/locales/en.d.cts +5 -0
  409. package/fullstacked_modules/zod/v4/locales/en.d.ts +5 -0
  410. package/fullstacked_modules/zod/v4/locales/eo.d.cts +5 -0
  411. package/fullstacked_modules/zod/v4/locales/eo.d.ts +5 -0
  412. package/fullstacked_modules/zod/v4/locales/es.d.cts +5 -0
  413. package/fullstacked_modules/zod/v4/locales/es.d.ts +4 -0
  414. package/fullstacked_modules/zod/v4/locales/fa.d.cts +5 -0
  415. package/fullstacked_modules/zod/v4/locales/fa.d.ts +4 -0
  416. package/fullstacked_modules/zod/v4/locales/fi.d.cts +5 -0
  417. package/fullstacked_modules/zod/v4/locales/fi.d.ts +4 -0
  418. package/fullstacked_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  419. package/fullstacked_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  420. package/fullstacked_modules/zod/v4/locales/fr.d.cts +5 -0
  421. package/fullstacked_modules/zod/v4/locales/fr.d.ts +4 -0
  422. package/fullstacked_modules/zod/v4/locales/he.d.cts +5 -0
  423. package/fullstacked_modules/zod/v4/locales/he.d.ts +4 -0
  424. package/fullstacked_modules/zod/v4/locales/hu.d.cts +5 -0
  425. package/fullstacked_modules/zod/v4/locales/hu.d.ts +4 -0
  426. package/fullstacked_modules/zod/v4/locales/id.d.cts +5 -0
  427. package/fullstacked_modules/zod/v4/locales/id.d.ts +4 -0
  428. package/fullstacked_modules/zod/v4/locales/index.d.cts +42 -0
  429. package/fullstacked_modules/zod/v4/locales/index.d.ts +42 -0
  430. package/fullstacked_modules/zod/v4/locales/is.d.cts +5 -0
  431. package/fullstacked_modules/zod/v4/locales/is.d.ts +5 -0
  432. package/fullstacked_modules/zod/v4/locales/it.d.cts +5 -0
  433. package/fullstacked_modules/zod/v4/locales/it.d.ts +4 -0
  434. package/fullstacked_modules/zod/v4/locales/ja.d.cts +5 -0
  435. package/fullstacked_modules/zod/v4/locales/ja.d.ts +4 -0
  436. package/fullstacked_modules/zod/v4/locales/kh.d.cts +5 -0
  437. package/fullstacked_modules/zod/v4/locales/kh.d.ts +4 -0
  438. package/fullstacked_modules/zod/v4/locales/ko.d.cts +5 -0
  439. package/fullstacked_modules/zod/v4/locales/ko.d.ts +4 -0
  440. package/fullstacked_modules/zod/v4/locales/mk.d.cts +5 -0
  441. package/fullstacked_modules/zod/v4/locales/mk.d.ts +4 -0
  442. package/fullstacked_modules/zod/v4/locales/ms.d.cts +5 -0
  443. package/fullstacked_modules/zod/v4/locales/ms.d.ts +4 -0
  444. package/fullstacked_modules/zod/v4/locales/nl.d.cts +5 -0
  445. package/fullstacked_modules/zod/v4/locales/nl.d.ts +4 -0
  446. package/fullstacked_modules/zod/v4/locales/no.d.cts +5 -0
  447. package/fullstacked_modules/zod/v4/locales/no.d.ts +4 -0
  448. package/fullstacked_modules/zod/v4/locales/ota.d.cts +5 -0
  449. package/fullstacked_modules/zod/v4/locales/ota.d.ts +4 -0
  450. package/fullstacked_modules/zod/v4/locales/pl.d.cts +5 -0
  451. package/fullstacked_modules/zod/v4/locales/pl.d.ts +4 -0
  452. package/fullstacked_modules/zod/v4/locales/ps.d.cts +5 -0
  453. package/fullstacked_modules/zod/v4/locales/ps.d.ts +4 -0
  454. package/fullstacked_modules/zod/v4/locales/pt.d.cts +5 -0
  455. package/fullstacked_modules/zod/v4/locales/pt.d.ts +4 -0
  456. package/fullstacked_modules/zod/v4/locales/ru.d.cts +5 -0
  457. package/fullstacked_modules/zod/v4/locales/ru.d.ts +4 -0
  458. package/fullstacked_modules/zod/v4/locales/sl.d.cts +5 -0
  459. package/fullstacked_modules/zod/v4/locales/sl.d.ts +4 -0
  460. package/fullstacked_modules/zod/v4/locales/sv.d.cts +5 -0
  461. package/fullstacked_modules/zod/v4/locales/sv.d.ts +4 -0
  462. package/fullstacked_modules/zod/v4/locales/ta.d.cts +5 -0
  463. package/fullstacked_modules/zod/v4/locales/ta.d.ts +4 -0
  464. package/fullstacked_modules/zod/v4/locales/th.d.cts +5 -0
  465. package/fullstacked_modules/zod/v4/locales/th.d.ts +4 -0
  466. package/fullstacked_modules/zod/v4/locales/tr.d.cts +5 -0
  467. package/fullstacked_modules/zod/v4/locales/tr.d.ts +5 -0
  468. package/fullstacked_modules/zod/v4/locales/ua.d.cts +5 -0
  469. package/fullstacked_modules/zod/v4/locales/ua.d.ts +4 -0
  470. package/fullstacked_modules/zod/v4/locales/ur.d.cts +5 -0
  471. package/fullstacked_modules/zod/v4/locales/ur.d.ts +4 -0
  472. package/fullstacked_modules/zod/v4/locales/vi.d.cts +5 -0
  473. package/fullstacked_modules/zod/v4/locales/vi.d.ts +4 -0
  474. package/fullstacked_modules/zod/v4/locales/yo.d.cts +5 -0
  475. package/fullstacked_modules/zod/v4/locales/yo.d.ts +4 -0
  476. package/fullstacked_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  477. package/fullstacked_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  478. package/fullstacked_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  479. package/fullstacked_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  480. package/fullstacked_modules/zod/v4/mini/checks.d.cts +1 -0
  481. package/fullstacked_modules/zod/v4/mini/checks.d.ts +1 -0
  482. package/fullstacked_modules/zod/v4/mini/coerce.d.cts +7 -0
  483. package/fullstacked_modules/zod/v4/mini/coerce.d.ts +7 -0
  484. package/fullstacked_modules/zod/v4/mini/external.d.cts +11 -0
  485. package/fullstacked_modules/zod/v4/mini/external.d.ts +11 -0
  486. package/fullstacked_modules/zod/v4/mini/index.d.cts +3 -0
  487. package/fullstacked_modules/zod/v4/mini/index.d.ts +3 -0
  488. package/fullstacked_modules/zod/v4/mini/iso.d.cts +22 -0
  489. package/fullstacked_modules/zod/v4/mini/iso.d.ts +22 -0
  490. package/fullstacked_modules/zod/v4/mini/parse.d.cts +1 -0
  491. package/fullstacked_modules/zod/v4/mini/parse.d.ts +1 -0
  492. package/fullstacked_modules/zod/v4/mini/schemas.d.cts +358 -0
  493. package/fullstacked_modules/zod/v4/mini/schemas.d.ts +358 -0
  494. package/fullstacked_modules/zod/v4-mini/index.d.cts +1 -0
  495. package/fullstacked_modules/zod/v4-mini/index.d.ts +1 -0
  496. package/index.js +17 -12
  497. package/package.json +1 -1
  498. package/lib/bridge/index.ts +0 -53
  499. package/lib/fullstacked.d.ts +0 -208
  500. /package/{lib → fullstacked_modules}/components/snackbar.css +0 -0
@@ -0,0 +1,278 @@
1
+ import * as core from "./core.js";
2
+ import type * as errors from "./errors.js";
3
+ import type * as schemas from "./schemas.js";
4
+ import * as util from "./util.js";
5
+ export interface $ZodCheckDef {
6
+ check: string;
7
+ error?: errors.$ZodErrorMap<never> | undefined;
8
+ /** If true, no later checks will be executed if this check fails. Default `false`. */
9
+ abort?: boolean | undefined;
10
+ /** If provided, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */
11
+ when?: ((payload: schemas.ParsePayload) => boolean) | undefined;
12
+ }
13
+ export interface $ZodCheckInternals<T> {
14
+ def: $ZodCheckDef;
15
+ /** The set of issues this check might throw. */
16
+ issc?: errors.$ZodIssueBase;
17
+ check(payload: schemas.ParsePayload<T>): util.MaybeAsync<void>;
18
+ onattach: ((schema: schemas.$ZodType) => void)[];
19
+ }
20
+ export interface $ZodCheck<in T = never> {
21
+ _zod: $ZodCheckInternals<T>;
22
+ }
23
+ export declare const $ZodCheck: core.$constructor<$ZodCheck<any>>;
24
+ export interface $ZodCheckLessThanDef extends $ZodCheckDef {
25
+ check: "less_than";
26
+ value: util.Numeric;
27
+ inclusive: boolean;
28
+ }
29
+ export interface $ZodCheckLessThanInternals<T extends util.Numeric = util.Numeric> extends $ZodCheckInternals<T> {
30
+ def: $ZodCheckLessThanDef;
31
+ issc: errors.$ZodIssueTooBig<T>;
32
+ }
33
+ export interface $ZodCheckLessThan<T extends util.Numeric = util.Numeric> extends $ZodCheck<T> {
34
+ _zod: $ZodCheckLessThanInternals<T>;
35
+ }
36
+ export declare const $ZodCheckLessThan: core.$constructor<$ZodCheckLessThan>;
37
+ export interface $ZodCheckGreaterThanDef extends $ZodCheckDef {
38
+ check: "greater_than";
39
+ value: util.Numeric;
40
+ inclusive: boolean;
41
+ }
42
+ export interface $ZodCheckGreaterThanInternals<T extends util.Numeric = util.Numeric> extends $ZodCheckInternals<T> {
43
+ def: $ZodCheckGreaterThanDef;
44
+ issc: errors.$ZodIssueTooSmall<T>;
45
+ }
46
+ export interface $ZodCheckGreaterThan<T extends util.Numeric = util.Numeric> extends $ZodCheck<T> {
47
+ _zod: $ZodCheckGreaterThanInternals<T>;
48
+ }
49
+ export declare const $ZodCheckGreaterThan: core.$constructor<$ZodCheckGreaterThan>;
50
+ export interface $ZodCheckMultipleOfDef<T extends number | bigint = number | bigint> extends $ZodCheckDef {
51
+ check: "multiple_of";
52
+ value: T;
53
+ }
54
+ export interface $ZodCheckMultipleOfInternals<T extends number | bigint = number | bigint> extends $ZodCheckInternals<T> {
55
+ def: $ZodCheckMultipleOfDef<T>;
56
+ issc: errors.$ZodIssueNotMultipleOf;
57
+ }
58
+ export interface $ZodCheckMultipleOf<T extends number | bigint = number | bigint> extends $ZodCheck<T> {
59
+ _zod: $ZodCheckMultipleOfInternals<T>;
60
+ }
61
+ export declare const $ZodCheckMultipleOf: core.$constructor<$ZodCheckMultipleOf<number | bigint>>;
62
+ export type $ZodNumberFormats = "int32" | "uint32" | "float32" | "float64" | "safeint";
63
+ export interface $ZodCheckNumberFormatDef extends $ZodCheckDef {
64
+ check: "number_format";
65
+ format: $ZodNumberFormats;
66
+ }
67
+ export interface $ZodCheckNumberFormatInternals extends $ZodCheckInternals<number> {
68
+ def: $ZodCheckNumberFormatDef;
69
+ issc: errors.$ZodIssueInvalidType | errors.$ZodIssueTooBig<"number"> | errors.$ZodIssueTooSmall<"number">;
70
+ }
71
+ export interface $ZodCheckNumberFormat extends $ZodCheck<number> {
72
+ _zod: $ZodCheckNumberFormatInternals;
73
+ }
74
+ export declare const $ZodCheckNumberFormat: core.$constructor<$ZodCheckNumberFormat>;
75
+ export type $ZodBigIntFormats = "int64" | "uint64";
76
+ export interface $ZodCheckBigIntFormatDef extends $ZodCheckDef {
77
+ check: "bigint_format";
78
+ format: $ZodBigIntFormats | undefined;
79
+ }
80
+ export interface $ZodCheckBigIntFormatInternals extends $ZodCheckInternals<bigint> {
81
+ def: $ZodCheckBigIntFormatDef;
82
+ issc: errors.$ZodIssueTooBig<"bigint"> | errors.$ZodIssueTooSmall<"bigint">;
83
+ }
84
+ export interface $ZodCheckBigIntFormat extends $ZodCheck<bigint> {
85
+ _zod: $ZodCheckBigIntFormatInternals;
86
+ }
87
+ export declare const $ZodCheckBigIntFormat: core.$constructor<$ZodCheckBigIntFormat>;
88
+ export interface $ZodCheckMaxSizeDef extends $ZodCheckDef {
89
+ check: "max_size";
90
+ maximum: number;
91
+ }
92
+ export interface $ZodCheckMaxSizeInternals<T extends util.HasSize = util.HasSize> extends $ZodCheckInternals<T> {
93
+ def: $ZodCheckMaxSizeDef;
94
+ issc: errors.$ZodIssueTooBig<T>;
95
+ }
96
+ export interface $ZodCheckMaxSize<T extends util.HasSize = util.HasSize> extends $ZodCheck<T> {
97
+ _zod: $ZodCheckMaxSizeInternals<T>;
98
+ }
99
+ export declare const $ZodCheckMaxSize: core.$constructor<$ZodCheckMaxSize>;
100
+ export interface $ZodCheckMinSizeDef extends $ZodCheckDef {
101
+ check: "min_size";
102
+ minimum: number;
103
+ }
104
+ export interface $ZodCheckMinSizeInternals<T extends util.HasSize = util.HasSize> extends $ZodCheckInternals<T> {
105
+ def: $ZodCheckMinSizeDef;
106
+ issc: errors.$ZodIssueTooSmall<T>;
107
+ }
108
+ export interface $ZodCheckMinSize<T extends util.HasSize = util.HasSize> extends $ZodCheck<T> {
109
+ _zod: $ZodCheckMinSizeInternals<T>;
110
+ }
111
+ export declare const $ZodCheckMinSize: core.$constructor<$ZodCheckMinSize>;
112
+ export interface $ZodCheckSizeEqualsDef extends $ZodCheckDef {
113
+ check: "size_equals";
114
+ size: number;
115
+ }
116
+ export interface $ZodCheckSizeEqualsInternals<T extends util.HasSize = util.HasSize> extends $ZodCheckInternals<T> {
117
+ def: $ZodCheckSizeEqualsDef;
118
+ issc: errors.$ZodIssueTooBig<T> | errors.$ZodIssueTooSmall<T>;
119
+ }
120
+ export interface $ZodCheckSizeEquals<T extends util.HasSize = util.HasSize> extends $ZodCheck<T> {
121
+ _zod: $ZodCheckSizeEqualsInternals<T>;
122
+ }
123
+ export declare const $ZodCheckSizeEquals: core.$constructor<$ZodCheckSizeEquals>;
124
+ export interface $ZodCheckMaxLengthDef extends $ZodCheckDef {
125
+ check: "max_length";
126
+ maximum: number;
127
+ }
128
+ export interface $ZodCheckMaxLengthInternals<T extends util.HasLength = util.HasLength> extends $ZodCheckInternals<T> {
129
+ def: $ZodCheckMaxLengthDef;
130
+ issc: errors.$ZodIssueTooBig<T>;
131
+ }
132
+ export interface $ZodCheckMaxLength<T extends util.HasLength = util.HasLength> extends $ZodCheck<T> {
133
+ _zod: $ZodCheckMaxLengthInternals<T>;
134
+ }
135
+ export declare const $ZodCheckMaxLength: core.$constructor<$ZodCheckMaxLength>;
136
+ export interface $ZodCheckMinLengthDef extends $ZodCheckDef {
137
+ check: "min_length";
138
+ minimum: number;
139
+ }
140
+ export interface $ZodCheckMinLengthInternals<T extends util.HasLength = util.HasLength> extends $ZodCheckInternals<T> {
141
+ def: $ZodCheckMinLengthDef;
142
+ issc: errors.$ZodIssueTooSmall<T>;
143
+ }
144
+ export interface $ZodCheckMinLength<T extends util.HasLength = util.HasLength> extends $ZodCheck<T> {
145
+ _zod: $ZodCheckMinLengthInternals<T>;
146
+ }
147
+ export declare const $ZodCheckMinLength: core.$constructor<$ZodCheckMinLength>;
148
+ export interface $ZodCheckLengthEqualsDef extends $ZodCheckDef {
149
+ check: "length_equals";
150
+ length: number;
151
+ }
152
+ export interface $ZodCheckLengthEqualsInternals<T extends util.HasLength = util.HasLength> extends $ZodCheckInternals<T> {
153
+ def: $ZodCheckLengthEqualsDef;
154
+ issc: errors.$ZodIssueTooBig<T> | errors.$ZodIssueTooSmall<T>;
155
+ }
156
+ export interface $ZodCheckLengthEquals<T extends util.HasLength = util.HasLength> extends $ZodCheck<T> {
157
+ _zod: $ZodCheckLengthEqualsInternals<T>;
158
+ }
159
+ export declare const $ZodCheckLengthEquals: core.$constructor<$ZodCheckLengthEquals>;
160
+ export type $ZodStringFormats = "email" | "url" | "emoji" | "uuid" | "guid" | "nanoid" | "cuid" | "cuid2" | "ulid" | "xid" | "ksuid" | "datetime" | "date" | "time" | "duration" | "ipv4" | "ipv6" | "cidrv4" | "cidrv6" | "base64" | "base64url" | "json_string" | "e164" | "lowercase" | "uppercase" | "regex" | "jwt" | "starts_with" | "ends_with" | "includes";
161
+ export interface $ZodCheckStringFormatDef<Format extends string = string> extends $ZodCheckDef {
162
+ check: "string_format";
163
+ format: Format;
164
+ pattern?: RegExp | undefined;
165
+ }
166
+ export interface $ZodCheckStringFormatInternals extends $ZodCheckInternals<string> {
167
+ def: $ZodCheckStringFormatDef;
168
+ issc: errors.$ZodIssueInvalidStringFormat;
169
+ }
170
+ export interface $ZodCheckStringFormat extends $ZodCheck<string> {
171
+ _zod: $ZodCheckStringFormatInternals;
172
+ }
173
+ export declare const $ZodCheckStringFormat: core.$constructor<$ZodCheckStringFormat>;
174
+ export interface $ZodCheckRegexDef extends $ZodCheckStringFormatDef {
175
+ format: "regex";
176
+ pattern: RegExp;
177
+ }
178
+ export interface $ZodCheckRegexInternals extends $ZodCheckInternals<string> {
179
+ def: $ZodCheckRegexDef;
180
+ issc: errors.$ZodIssueInvalidStringFormat;
181
+ }
182
+ export interface $ZodCheckRegex extends $ZodCheck<string> {
183
+ _zod: $ZodCheckRegexInternals;
184
+ }
185
+ export declare const $ZodCheckRegex: core.$constructor<$ZodCheckRegex>;
186
+ export interface $ZodCheckLowerCaseDef extends $ZodCheckStringFormatDef<"lowercase"> {
187
+ }
188
+ export interface $ZodCheckLowerCaseInternals extends $ZodCheckInternals<string> {
189
+ def: $ZodCheckLowerCaseDef;
190
+ issc: errors.$ZodIssueInvalidStringFormat;
191
+ }
192
+ export interface $ZodCheckLowerCase extends $ZodCheck<string> {
193
+ _zod: $ZodCheckLowerCaseInternals;
194
+ }
195
+ export declare const $ZodCheckLowerCase: core.$constructor<$ZodCheckLowerCase>;
196
+ export interface $ZodCheckUpperCaseDef extends $ZodCheckStringFormatDef<"uppercase"> {
197
+ }
198
+ export interface $ZodCheckUpperCaseInternals extends $ZodCheckInternals<string> {
199
+ def: $ZodCheckUpperCaseDef;
200
+ issc: errors.$ZodIssueInvalidStringFormat;
201
+ }
202
+ export interface $ZodCheckUpperCase extends $ZodCheck<string> {
203
+ _zod: $ZodCheckUpperCaseInternals;
204
+ }
205
+ export declare const $ZodCheckUpperCase: core.$constructor<$ZodCheckUpperCase>;
206
+ export interface $ZodCheckIncludesDef extends $ZodCheckStringFormatDef<"includes"> {
207
+ includes: string;
208
+ position?: number | undefined;
209
+ }
210
+ export interface $ZodCheckIncludesInternals extends $ZodCheckInternals<string> {
211
+ def: $ZodCheckIncludesDef;
212
+ issc: errors.$ZodIssueInvalidStringFormat;
213
+ }
214
+ export interface $ZodCheckIncludes extends $ZodCheck<string> {
215
+ _zod: $ZodCheckIncludesInternals;
216
+ }
217
+ export declare const $ZodCheckIncludes: core.$constructor<$ZodCheckIncludes>;
218
+ export interface $ZodCheckStartsWithDef extends $ZodCheckStringFormatDef<"starts_with"> {
219
+ prefix: string;
220
+ }
221
+ export interface $ZodCheckStartsWithInternals extends $ZodCheckInternals<string> {
222
+ def: $ZodCheckStartsWithDef;
223
+ issc: errors.$ZodIssueInvalidStringFormat;
224
+ }
225
+ export interface $ZodCheckStartsWith extends $ZodCheck<string> {
226
+ _zod: $ZodCheckStartsWithInternals;
227
+ }
228
+ export declare const $ZodCheckStartsWith: core.$constructor<$ZodCheckStartsWith>;
229
+ export interface $ZodCheckEndsWithDef extends $ZodCheckStringFormatDef<"ends_with"> {
230
+ suffix: string;
231
+ }
232
+ export interface $ZodCheckEndsWithInternals extends $ZodCheckInternals<string> {
233
+ def: $ZodCheckEndsWithDef;
234
+ issc: errors.$ZodIssueInvalidStringFormat;
235
+ }
236
+ export interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
237
+ _zod: $ZodCheckEndsWithInternals;
238
+ }
239
+ export declare const $ZodCheckEndsWith: core.$constructor<$ZodCheckEndsWith>;
240
+ export interface $ZodCheckPropertyDef extends $ZodCheckDef {
241
+ check: "property";
242
+ property: string;
243
+ schema: schemas.$ZodType;
244
+ }
245
+ export interface $ZodCheckPropertyInternals<T extends object = object> extends $ZodCheckInternals<T> {
246
+ def: $ZodCheckPropertyDef;
247
+ issc: errors.$ZodIssue;
248
+ }
249
+ export interface $ZodCheckProperty<T extends object = object> extends $ZodCheck<T> {
250
+ _zod: $ZodCheckPropertyInternals<T>;
251
+ }
252
+ export declare const $ZodCheckProperty: core.$constructor<$ZodCheckProperty>;
253
+ export interface $ZodCheckMimeTypeDef extends $ZodCheckDef {
254
+ check: "mime_type";
255
+ mime: util.MimeTypes[];
256
+ }
257
+ export interface $ZodCheckMimeTypeInternals<T extends schemas.File = schemas.File> extends $ZodCheckInternals<T> {
258
+ def: $ZodCheckMimeTypeDef;
259
+ issc: errors.$ZodIssueInvalidValue;
260
+ }
261
+ export interface $ZodCheckMimeType<T extends schemas.File = schemas.File> extends $ZodCheck<T> {
262
+ _zod: $ZodCheckMimeTypeInternals<T>;
263
+ }
264
+ export declare const $ZodCheckMimeType: core.$constructor<$ZodCheckMimeType>;
265
+ export interface $ZodCheckOverwriteDef<T = unknown> extends $ZodCheckDef {
266
+ check: "overwrite";
267
+ tx(value: T): T;
268
+ }
269
+ export interface $ZodCheckOverwriteInternals<T = unknown> extends $ZodCheckInternals<T> {
270
+ def: $ZodCheckOverwriteDef<T>;
271
+ issc: never;
272
+ }
273
+ export interface $ZodCheckOverwrite<T = unknown> extends $ZodCheck<T> {
274
+ _zod: $ZodCheckOverwriteInternals<T>;
275
+ }
276
+ export declare const $ZodCheckOverwrite: core.$constructor<$ZodCheckOverwrite>;
277
+ export type $ZodChecks = $ZodCheckLessThan | $ZodCheckGreaterThan | $ZodCheckMultipleOf | $ZodCheckNumberFormat | $ZodCheckBigIntFormat | $ZodCheckMaxSize | $ZodCheckMinSize | $ZodCheckSizeEquals | $ZodCheckMaxLength | $ZodCheckMinLength | $ZodCheckLengthEquals | $ZodCheckStringFormat | $ZodCheckProperty | $ZodCheckMimeType | $ZodCheckOverwrite;
278
+ export type $ZodStringFormatChecks = $ZodCheckRegex | $ZodCheckLowerCase | $ZodCheckUpperCase | $ZodCheckIncludes | $ZodCheckStartsWith | $ZodCheckEndsWith | schemas.$ZodStringFormatTypes;
@@ -0,0 +1,49 @@
1
+ import type * as errors from "./errors.cjs";
2
+ import type * as schemas from "./schemas.cjs";
3
+ import type { Class } from "./util.cjs";
4
+ type ZodTrait = {
5
+ _zod: {
6
+ def: any;
7
+ [k: string]: any;
8
+ };
9
+ };
10
+ export interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
11
+ new (def: D): T;
12
+ init(inst: T, def: D): asserts inst is T;
13
+ }
14
+ /** A special constant with type `never` */
15
+ export declare const NEVER: never;
16
+ export declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: string, initializer: (inst: T, def: D) => void, params?: {
17
+ Parent?: typeof Class;
18
+ }): $constructor<T, D>;
19
+ export declare const $brand: unique symbol;
20
+ export type $brand<T extends string | number | symbol = string | number | symbol> = {
21
+ [$brand]: {
22
+ [k in T]: true;
23
+ };
24
+ };
25
+ export type $ZodBranded<T extends schemas.SomeType, Brand extends string | number | symbol> = T & Record<"_zod", Record<"output", output<T> & $brand<Brand>>>;
26
+ export declare class $ZodAsyncError extends Error {
27
+ constructor();
28
+ }
29
+ export type input<T> = T extends {
30
+ _zod: {
31
+ input: any;
32
+ };
33
+ } ? Required<T["_zod"]>["input"] : unknown;
34
+ export type output<T> = T extends {
35
+ _zod: {
36
+ output: any;
37
+ };
38
+ } ? Required<T["_zod"]>["output"] : unknown;
39
+ export type { output as infer };
40
+ export interface $ZodConfig {
41
+ /** Custom error map. Overrides `config().localeError`. */
42
+ customError?: errors.$ZodErrorMap | undefined;
43
+ /** Localized error map. Lowest priority. */
44
+ localeError?: errors.$ZodErrorMap | undefined;
45
+ /** Disable JIT schema compilation. Useful in environments that disallow `eval`. */
46
+ jitless?: boolean | undefined;
47
+ }
48
+ export declare const globalConfig: $ZodConfig;
49
+ export declare function config(newConfig?: Partial<$ZodConfig>): $ZodConfig;
@@ -0,0 +1,49 @@
1
+ import type * as errors from "./errors.js";
2
+ import type * as schemas from "./schemas.js";
3
+ import type { Class } from "./util.js";
4
+ type ZodTrait = {
5
+ _zod: {
6
+ def: any;
7
+ [k: string]: any;
8
+ };
9
+ };
10
+ export interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
11
+ new (def: D): T;
12
+ init(inst: T, def: D): asserts inst is T;
13
+ }
14
+ /** A special constant with type `never` */
15
+ export declare const NEVER: never;
16
+ export declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: string, initializer: (inst: T, def: D) => void, params?: {
17
+ Parent?: typeof Class;
18
+ }): $constructor<T, D>;
19
+ export declare const $brand: unique symbol;
20
+ export type $brand<T extends string | number | symbol = string | number | symbol> = {
21
+ [$brand]: {
22
+ [k in T]: true;
23
+ };
24
+ };
25
+ export type $ZodBranded<T extends schemas.SomeType, Brand extends string | number | symbol> = T & Record<"_zod", Record<"output", output<T> & $brand<Brand>>>;
26
+ export declare class $ZodAsyncError extends Error {
27
+ constructor();
28
+ }
29
+ export type input<T> = T extends {
30
+ _zod: {
31
+ input: any;
32
+ };
33
+ } ? Required<T["_zod"]>["input"] : unknown;
34
+ export type output<T> = T extends {
35
+ _zod: {
36
+ output: any;
37
+ };
38
+ } ? Required<T["_zod"]>["output"] : unknown;
39
+ export type { output as infer };
40
+ export interface $ZodConfig {
41
+ /** Custom error map. Overrides `config().localeError`. */
42
+ customError?: errors.$ZodErrorMap | undefined;
43
+ /** Localized error map. Lowest priority. */
44
+ localeError?: errors.$ZodErrorMap | undefined;
45
+ /** Disable JIT schema compilation. Useful in environments that disallow `eval`. */
46
+ jitless?: boolean | undefined;
47
+ }
48
+ export declare const globalConfig: $ZodConfig;
49
+ export declare function config(newConfig?: Partial<$ZodConfig>): $ZodConfig;
@@ -0,0 +1,14 @@
1
+ type ModeWriter = (doc: Doc, modes: {
2
+ execution: "sync" | "async";
3
+ }) => void;
4
+ export declare class Doc {
5
+ args: string[];
6
+ content: string[];
7
+ indent: number;
8
+ constructor(args?: string[]);
9
+ indented(fn: (doc: Doc) => void): void;
10
+ write(fn: ModeWriter): void;
11
+ write(line: string): void;
12
+ compile(): any;
13
+ }
14
+ export {};
@@ -0,0 +1,14 @@
1
+ type ModeWriter = (doc: Doc, modes: {
2
+ execution: "sync" | "async";
3
+ }) => void;
4
+ export declare class Doc {
5
+ args: string[];
6
+ content: string[];
7
+ indent: number;
8
+ constructor(args?: string[]);
9
+ indented(fn: (doc: Doc) => void): void;
10
+ write(fn: ModeWriter): void;
11
+ write(line: string): void;
12
+ compile(): any;
13
+ }
14
+ export {};
@@ -0,0 +1,210 @@
1
+ import type { $ZodCheck, $ZodStringFormats } from "./checks.cjs";
2
+ import { $constructor } from "./core.cjs";
3
+ import type { $ZodType } from "./schemas.cjs";
4
+ import type { StandardSchemaV1 } from "./standard-schema.cjs";
5
+ import * as util from "./util.cjs";
6
+ export interface $ZodIssueBase {
7
+ readonly code?: string;
8
+ readonly input?: unknown;
9
+ readonly path: PropertyKey[];
10
+ readonly message: string;
11
+ }
12
+ export interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase {
13
+ readonly code: "invalid_type";
14
+ readonly expected: $ZodType["_zod"]["def"]["type"];
15
+ readonly input?: Input;
16
+ }
17
+ export interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {
18
+ readonly code: "too_big";
19
+ readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
20
+ readonly maximum: number | bigint;
21
+ readonly inclusive?: boolean;
22
+ readonly exact?: boolean;
23
+ readonly input?: Input;
24
+ }
25
+ export interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {
26
+ readonly code: "too_small";
27
+ readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
28
+ readonly minimum: number | bigint;
29
+ /** True if the allowable range includes the minimum */
30
+ readonly inclusive?: boolean;
31
+ /** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */
32
+ readonly exact?: boolean;
33
+ readonly input?: Input;
34
+ }
35
+ export interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {
36
+ readonly code: "invalid_format";
37
+ readonly format: $ZodStringFormats | (string & {});
38
+ readonly pattern?: string;
39
+ readonly input?: string;
40
+ }
41
+ export interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase {
42
+ readonly code: "not_multiple_of";
43
+ readonly divisor: number;
44
+ readonly input?: Input;
45
+ }
46
+ export interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase {
47
+ readonly code: "unrecognized_keys";
48
+ readonly keys: string[];
49
+ readonly input?: Record<string, unknown>;
50
+ }
51
+ export interface $ZodIssueInvalidUnion extends $ZodIssueBase {
52
+ readonly code: "invalid_union";
53
+ readonly errors: $ZodIssue[][];
54
+ readonly input?: unknown;
55
+ readonly discriminator?: string | undefined;
56
+ }
57
+ export interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {
58
+ readonly code: "invalid_key";
59
+ readonly origin: "map" | "record";
60
+ readonly issues: $ZodIssue[];
61
+ readonly input?: Input;
62
+ }
63
+ export interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase {
64
+ readonly code: "invalid_element";
65
+ readonly origin: "map" | "set";
66
+ readonly key: unknown;
67
+ readonly issues: $ZodIssue[];
68
+ readonly input?: Input;
69
+ }
70
+ export interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase {
71
+ readonly code: "invalid_value";
72
+ readonly values: util.Primitive[];
73
+ readonly input?: Input;
74
+ }
75
+ export interface $ZodIssueCustom extends $ZodIssueBase {
76
+ readonly code: "custom";
77
+ readonly params?: Record<string, any> | undefined;
78
+ readonly input?: unknown;
79
+ }
80
+ export interface $ZodIssueStringCommonFormats extends $ZodIssueInvalidStringFormat {
81
+ format: Exclude<$ZodStringFormats, "regex" | "jwt" | "starts_with" | "ends_with" | "includes">;
82
+ }
83
+ export interface $ZodIssueStringInvalidRegex extends $ZodIssueInvalidStringFormat {
84
+ format: "regex";
85
+ pattern: string;
86
+ }
87
+ export interface $ZodIssueStringInvalidJWT extends $ZodIssueInvalidStringFormat {
88
+ format: "jwt";
89
+ algorithm?: string;
90
+ }
91
+ export interface $ZodIssueStringStartsWith extends $ZodIssueInvalidStringFormat {
92
+ format: "starts_with";
93
+ prefix: string;
94
+ }
95
+ export interface $ZodIssueStringEndsWith extends $ZodIssueInvalidStringFormat {
96
+ format: "ends_with";
97
+ suffix: string;
98
+ }
99
+ export interface $ZodIssueStringIncludes extends $ZodIssueInvalidStringFormat {
100
+ format: "includes";
101
+ includes: string;
102
+ }
103
+ export type $ZodStringFormatIssues = $ZodIssueStringCommonFormats | $ZodIssueStringInvalidRegex | $ZodIssueStringInvalidJWT | $ZodIssueStringStartsWith | $ZodIssueStringEndsWith | $ZodIssueStringIncludes;
104
+ export type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;
105
+ export type $ZodIssueCode = $ZodIssue["code"];
106
+ export type $ZodInternalIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;
107
+ type RawIssue<T extends $ZodIssueBase> = T extends any ? util.Flatten<util.MakePartial<T, "message" | "path"> & {
108
+ /** The input data */
109
+ readonly input: unknown;
110
+ /** The schema or check that originated this issue. */
111
+ readonly inst?: $ZodType | $ZodCheck;
112
+ /** If `true`, Zod will continue executing checks/refinements after this issue. */
113
+ readonly continue?: boolean | undefined;
114
+ } & Record<string, unknown>> : never;
115
+ export type $ZodRawIssue<T extends $ZodIssueBase = $ZodIssue> = $ZodInternalIssue<T>;
116
+ export interface $ZodErrorMap<T extends $ZodIssueBase = $ZodIssue> {
117
+ (issue: $ZodRawIssue<T>): {
118
+ message: string;
119
+ } | string | undefined | null;
120
+ }
121
+ export interface $ZodError<T = unknown> extends Error {
122
+ type: T;
123
+ issues: $ZodIssue[];
124
+ _zod: {
125
+ output: T;
126
+ def: $ZodIssue[];
127
+ };
128
+ stack?: string;
129
+ name: string;
130
+ }
131
+ export declare const $ZodError: $constructor<$ZodError>;
132
+ interface $ZodRealError<T = any> extends $ZodError<T> {
133
+ }
134
+ export declare const $ZodRealError: $constructor<$ZodRealError>;
135
+ export type $ZodFlattenedError<T, U = string> = _FlattenedError<T, U>;
136
+ type _FlattenedError<T, U = string> = {
137
+ formErrors: U[];
138
+ fieldErrors: {
139
+ [P in keyof T]?: U[];
140
+ };
141
+ };
142
+ export declare function flattenError<T>(error: $ZodError<T>): _FlattenedError<T>;
143
+ export declare function flattenError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): _FlattenedError<T, U>;
144
+ type _ZodFormattedError<T, U = string> = T extends [any, ...any[]] ? {
145
+ [K in keyof T]?: $ZodFormattedError<T[K], U>;
146
+ } : T extends any[] ? {
147
+ [k: number]: $ZodFormattedError<T[number], U>;
148
+ } : T extends object ? util.Flatten<{
149
+ [K in keyof T]?: $ZodFormattedError<T[K], U>;
150
+ }> : any;
151
+ export type $ZodFormattedError<T, U = string> = {
152
+ _errors: U[];
153
+ } & util.Flatten<_ZodFormattedError<T, U>>;
154
+ export declare function formatError<T>(error: $ZodError<T>): $ZodFormattedError<T>;
155
+ export declare function formatError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): $ZodFormattedError<T, U>;
156
+ export type $ZodErrorTree<T, U = string> = T extends util.Primitive ? {
157
+ errors: U[];
158
+ } : T extends [any, ...any[]] ? {
159
+ errors: U[];
160
+ items?: {
161
+ [K in keyof T]?: $ZodErrorTree<T[K], U>;
162
+ };
163
+ } : T extends any[] ? {
164
+ errors: U[];
165
+ items?: Array<$ZodErrorTree<T[number], U>>;
166
+ } : T extends object ? {
167
+ errors: U[];
168
+ properties?: {
169
+ [K in keyof T]?: $ZodErrorTree<T[K], U>;
170
+ };
171
+ } : {
172
+ errors: U[];
173
+ };
174
+ export declare function treeifyError<T>(error: $ZodError<T>): $ZodErrorTree<T>;
175
+ export declare function treeifyError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): $ZodErrorTree<T, U>;
176
+ /** Format a ZodError as a human-readable string in the following form.
177
+ *
178
+ * From
179
+ *
180
+ * ```ts
181
+ * ZodError {
182
+ * issues: [
183
+ * {
184
+ * expected: 'string',
185
+ * code: 'invalid_type',
186
+ * path: [ 'username' ],
187
+ * message: 'Invalid input: expected string'
188
+ * },
189
+ * {
190
+ * expected: 'number',
191
+ * code: 'invalid_type',
192
+ * path: [ 'favoriteNumbers', 1 ],
193
+ * message: 'Invalid input: expected number'
194
+ * }
195
+ * ];
196
+ * }
197
+ * ```
198
+ *
199
+ * to
200
+ *
201
+ * ```
202
+ * username
203
+ * ✖ Expected number, received string at "username
204
+ * favoriteNumbers[0]
205
+ * ✖ Invalid input: expected number
206
+ * ```
207
+ */
208
+ export declare function toDotPath(_path: readonly (string | number | symbol | StandardSchemaV1.PathSegment)[]): string;
209
+ export declare function prettifyError(error: StandardSchemaV1.FailureResult): string;
210
+ export {};