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,55 @@
1
+ /** The Standard Schema interface. */
2
+ export interface StandardSchemaV1<Input = unknown, Output = Input> {
3
+ /** The Standard Schema properties. */
4
+ readonly "~standard": StandardSchemaV1.Props<Input, Output>;
5
+ }
6
+ export declare namespace StandardSchemaV1 {
7
+ /** The Standard Schema properties interface. */
8
+ interface Props<Input = unknown, Output = Input> {
9
+ /** The version number of the standard. */
10
+ readonly version: 1;
11
+ /** The vendor name of the schema library. */
12
+ readonly vendor: string;
13
+ /** Validates unknown input values. */
14
+ readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
15
+ /** Inferred types associated with the schema. */
16
+ readonly types?: Types<Input, Output> | undefined;
17
+ }
18
+ /** The result interface of the validate function. */
19
+ type Result<Output> = SuccessResult<Output> | FailureResult;
20
+ /** The result interface if validation succeeds. */
21
+ interface SuccessResult<Output> {
22
+ /** The typed output value. */
23
+ readonly value: Output;
24
+ /** The non-existent issues. */
25
+ readonly issues?: undefined;
26
+ }
27
+ /** The result interface if validation fails. */
28
+ interface FailureResult {
29
+ /** The issues of failed validation. */
30
+ readonly issues: ReadonlyArray<Issue>;
31
+ }
32
+ /** The issue interface of the failure output. */
33
+ interface Issue {
34
+ /** The error message of the issue. */
35
+ readonly message: string;
36
+ /** The path of the issue, if any. */
37
+ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
38
+ }
39
+ /** The path segment interface of the issue. */
40
+ interface PathSegment {
41
+ /** The key representing a path segment. */
42
+ readonly key: PropertyKey;
43
+ }
44
+ /** The Standard Schema types interface. */
45
+ interface Types<Input = unknown, Output = Input> {
46
+ /** The input type of the schema. */
47
+ readonly input: Input;
48
+ /** The output type of the schema. */
49
+ readonly output: Output;
50
+ }
51
+ /** Infers the input type of a Standard Schema. */
52
+ type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
53
+ /** Infers the output type of a Standard Schema. */
54
+ type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
55
+ }
@@ -0,0 +1,55 @@
1
+ /** The Standard Schema interface. */
2
+ export interface StandardSchemaV1<Input = unknown, Output = Input> {
3
+ /** The Standard Schema properties. */
4
+ readonly "~standard": StandardSchemaV1.Props<Input, Output>;
5
+ }
6
+ export declare namespace StandardSchemaV1 {
7
+ /** The Standard Schema properties interface. */
8
+ interface Props<Input = unknown, Output = Input> {
9
+ /** The version number of the standard. */
10
+ readonly version: 1;
11
+ /** The vendor name of the schema library. */
12
+ readonly vendor: string;
13
+ /** Validates unknown input values. */
14
+ readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
15
+ /** Inferred types associated with the schema. */
16
+ readonly types?: Types<Input, Output> | undefined;
17
+ }
18
+ /** The result interface of the validate function. */
19
+ type Result<Output> = SuccessResult<Output> | FailureResult;
20
+ /** The result interface if validation succeeds. */
21
+ interface SuccessResult<Output> {
22
+ /** The typed output value. */
23
+ readonly value: Output;
24
+ /** The non-existent issues. */
25
+ readonly issues?: undefined;
26
+ }
27
+ /** The result interface if validation fails. */
28
+ interface FailureResult {
29
+ /** The issues of failed validation. */
30
+ readonly issues: ReadonlyArray<Issue>;
31
+ }
32
+ /** The issue interface of the failure output. */
33
+ interface Issue {
34
+ /** The error message of the issue. */
35
+ readonly message: string;
36
+ /** The path of the issue, if any. */
37
+ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
38
+ }
39
+ /** The path segment interface of the issue. */
40
+ interface PathSegment {
41
+ /** The key representing a path segment. */
42
+ readonly key: PropertyKey;
43
+ }
44
+ /** The Standard Schema types interface. */
45
+ interface Types<Input = unknown, Output = Input> {
46
+ /** The input type of the schema. */
47
+ readonly input: Input;
48
+ /** The output type of the schema. */
49
+ readonly output: Output;
50
+ }
51
+ /** Infers the input type of a Standard Schema. */
52
+ type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
53
+ /** Infers the output type of a Standard Schema. */
54
+ type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
55
+ }
@@ -0,0 +1,89 @@
1
+ import type * as JSONSchema from "./json-schema.cjs";
2
+ import { $ZodRegistry } from "./registries.cjs";
3
+ import type * as schemas from "./schemas.cjs";
4
+ interface JSONSchemaGeneratorParams {
5
+ /** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def.
6
+ * @default globalRegistry */
7
+ metadata?: $ZodRegistry<Record<string, any>>;
8
+ /** The JSON Schema version to target.
9
+ * - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12
10
+ * - `"draft-7"` — JSON Schema Draft 7
11
+ * - `"draft-4"` — JSON Schema Draft 4 */
12
+ target?: "draft-4" | "draft-7" | "draft-2020-12";
13
+ /** How to handle unrepresentable types.
14
+ * - `"throw"` — Default. Unrepresentable types throw an error
15
+ * - `"any"` — Unrepresentable types become `{}` */
16
+ unrepresentable?: "throw" | "any";
17
+ /** Arbitrary custom logic that can be used to modify the generated JSON Schema. */
18
+ override?: (ctx: {
19
+ zodSchema: schemas.$ZodTypes;
20
+ jsonSchema: JSONSchema.BaseSchema;
21
+ path: (string | number)[];
22
+ }) => void;
23
+ /** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, Error converting schema to JSONz, defaults, coerced primitives, etc.
24
+ * - `"output"` — Default. Convert the output schema.
25
+ * - `"input"` — Convert the input schema. */
26
+ io?: "input" | "output";
27
+ }
28
+ interface ProcessParams {
29
+ schemaPath: schemas.$ZodType[];
30
+ path: (string | number)[];
31
+ }
32
+ interface EmitParams {
33
+ /** How to handle cycles.
34
+ * - `"ref"` — Default. Cycles will be broken using $defs
35
+ * - `"throw"` — Cycles will throw an error if encountered */
36
+ cycles?: "ref" | "throw";
37
+ reused?: "ref" | "inline";
38
+ external?: {
39
+ /** */
40
+ registry: $ZodRegistry<{
41
+ id?: string | undefined;
42
+ }>;
43
+ uri?: ((id: string) => string) | undefined;
44
+ defs: Record<string, JSONSchema.BaseSchema>;
45
+ } | undefined;
46
+ }
47
+ interface Seen {
48
+ /** JSON Schema result for this Zod schema */
49
+ schema: JSONSchema.BaseSchema;
50
+ /** A cached version of the schema that doesn't get overwritten during ref resolution */
51
+ def?: JSONSchema.BaseSchema;
52
+ defId?: string | undefined;
53
+ /** Number of times this schema was encountered during traversal */
54
+ count: number;
55
+ /** Cycle path */
56
+ cycle?: (string | number)[] | undefined;
57
+ isParent?: boolean | undefined;
58
+ ref?: schemas.$ZodType | undefined | null;
59
+ /** JSON Schema property path for this schema */
60
+ path?: (string | number)[] | undefined;
61
+ }
62
+ export declare class JSONSchemaGenerator {
63
+ metadataRegistry: $ZodRegistry<Record<string, any>>;
64
+ target: "draft-4" | "draft-7" | "draft-2020-12";
65
+ unrepresentable: "throw" | "any";
66
+ override: (ctx: {
67
+ zodSchema: schemas.$ZodTypes;
68
+ jsonSchema: JSONSchema.BaseSchema;
69
+ path: (string | number)[];
70
+ }) => void;
71
+ io: "input" | "output";
72
+ counter: number;
73
+ seen: Map<schemas.$ZodType, Seen>;
74
+ constructor(params?: JSONSchemaGeneratorParams);
75
+ process(schema: schemas.$ZodType, _params?: ProcessParams): JSONSchema.BaseSchema;
76
+ emit(schema: schemas.$ZodType, _params?: EmitParams): JSONSchema.BaseSchema;
77
+ }
78
+ interface ToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, "external"> {
79
+ }
80
+ interface RegistryToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, "external"> {
81
+ uri?: (id: string) => string;
82
+ }
83
+ export declare function toJSONSchema(schema: schemas.$ZodType, _params?: ToJSONSchemaParams): JSONSchema.BaseSchema;
84
+ export declare function toJSONSchema(registry: $ZodRegistry<{
85
+ id?: string | undefined;
86
+ }>, _params?: RegistryToJSONSchemaParams): {
87
+ schemas: Record<string, JSONSchema.BaseSchema>;
88
+ };
89
+ export {};
@@ -0,0 +1,89 @@
1
+ import type * as JSONSchema from "./json-schema.js";
2
+ import { $ZodRegistry } from "./registries.js";
3
+ import type * as schemas from "./schemas.js";
4
+ interface JSONSchemaGeneratorParams {
5
+ /** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def.
6
+ * @default globalRegistry */
7
+ metadata?: $ZodRegistry<Record<string, any>>;
8
+ /** The JSON Schema version to target.
9
+ * - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12
10
+ * - `"draft-7"` — JSON Schema Draft 7
11
+ * - `"draft-4"` — JSON Schema Draft 4 */
12
+ target?: "draft-4" | "draft-7" | "draft-2020-12";
13
+ /** How to handle unrepresentable types.
14
+ * - `"throw"` — Default. Unrepresentable types throw an error
15
+ * - `"any"` — Unrepresentable types become `{}` */
16
+ unrepresentable?: "throw" | "any";
17
+ /** Arbitrary custom logic that can be used to modify the generated JSON Schema. */
18
+ override?: (ctx: {
19
+ zodSchema: schemas.$ZodTypes;
20
+ jsonSchema: JSONSchema.BaseSchema;
21
+ path: (string | number)[];
22
+ }) => void;
23
+ /** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, Error converting schema to JSONz, defaults, coerced primitives, etc.
24
+ * - `"output"` — Default. Convert the output schema.
25
+ * - `"input"` — Convert the input schema. */
26
+ io?: "input" | "output";
27
+ }
28
+ interface ProcessParams {
29
+ schemaPath: schemas.$ZodType[];
30
+ path: (string | number)[];
31
+ }
32
+ interface EmitParams {
33
+ /** How to handle cycles.
34
+ * - `"ref"` — Default. Cycles will be broken using $defs
35
+ * - `"throw"` — Cycles will throw an error if encountered */
36
+ cycles?: "ref" | "throw";
37
+ reused?: "ref" | "inline";
38
+ external?: {
39
+ /** */
40
+ registry: $ZodRegistry<{
41
+ id?: string | undefined;
42
+ }>;
43
+ uri?: ((id: string) => string) | undefined;
44
+ defs: Record<string, JSONSchema.BaseSchema>;
45
+ } | undefined;
46
+ }
47
+ interface Seen {
48
+ /** JSON Schema result for this Zod schema */
49
+ schema: JSONSchema.BaseSchema;
50
+ /** A cached version of the schema that doesn't get overwritten during ref resolution */
51
+ def?: JSONSchema.BaseSchema;
52
+ defId?: string | undefined;
53
+ /** Number of times this schema was encountered during traversal */
54
+ count: number;
55
+ /** Cycle path */
56
+ cycle?: (string | number)[] | undefined;
57
+ isParent?: boolean | undefined;
58
+ ref?: schemas.$ZodType | undefined | null;
59
+ /** JSON Schema property path for this schema */
60
+ path?: (string | number)[] | undefined;
61
+ }
62
+ export declare class JSONSchemaGenerator {
63
+ metadataRegistry: $ZodRegistry<Record<string, any>>;
64
+ target: "draft-4" | "draft-7" | "draft-2020-12";
65
+ unrepresentable: "throw" | "any";
66
+ override: (ctx: {
67
+ zodSchema: schemas.$ZodTypes;
68
+ jsonSchema: JSONSchema.BaseSchema;
69
+ path: (string | number)[];
70
+ }) => void;
71
+ io: "input" | "output";
72
+ counter: number;
73
+ seen: Map<schemas.$ZodType, Seen>;
74
+ constructor(params?: JSONSchemaGeneratorParams);
75
+ process(schema: schemas.$ZodType, _params?: ProcessParams): JSONSchema.BaseSchema;
76
+ emit(schema: schemas.$ZodType, _params?: EmitParams): JSONSchema.BaseSchema;
77
+ }
78
+ interface ToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, "external"> {
79
+ }
80
+ interface RegistryToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, "external"> {
81
+ uri?: (id: string) => string;
82
+ }
83
+ export declare function toJSONSchema(schema: schemas.$ZodType, _params?: ToJSONSchemaParams): JSONSchema.BaseSchema;
84
+ export declare function toJSONSchema(registry: $ZodRegistry<{
85
+ id?: string | undefined;
86
+ }>, _params?: RegistryToJSONSchemaParams): {
87
+ schemas: Record<string, JSONSchema.BaseSchema>;
88
+ };
89
+ export {};
@@ -0,0 +1,185 @@
1
+ import type * as checks from "./checks.cjs";
2
+ import type { $ZodConfig } from "./core.cjs";
3
+ import type * as errors from "./errors.cjs";
4
+ import type * as schemas from "./schemas.cjs";
5
+ export type JSONType = string | number | boolean | null | JSONType[] | {
6
+ [key: string]: JSONType;
7
+ };
8
+ export type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
9
+ export type IPVersion = "v4" | "v6";
10
+ export type MimeTypes = "application/json" | "application/xml" | "application/x-www-form-urlencoded" | "application/javascript" | "application/pdf" | "application/zip" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/octet-stream" | "application/graphql" | "text/html" | "text/plain" | "text/css" | "text/javascript" | "text/csv" | "image/png" | "image/jpeg" | "image/gif" | "image/svg+xml" | "image/webp" | "audio/mpeg" | "audio/ogg" | "audio/wav" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "font/woff" | "font/woff2" | "font/ttf" | "font/otf" | "multipart/form-data" | (string & {});
11
+ export type ParsedTypes = "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "file" | "date" | "array" | "map" | "set" | "nan" | "null" | "promise";
12
+ export type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;
13
+ export type AssertNotEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? false : true;
14
+ export type AssertExtends<T, U> = T extends U ? T : never;
15
+ export type IsAny<T> = 0 extends 1 & T ? true : false;
16
+ export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
17
+ export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
18
+ export type MakePartial<T, K extends keyof T> = Omit<T, K> & InexactPartial<Pick<T, K>>;
19
+ export type MakeRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
20
+ export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;
21
+ export type NoUndefined<T> = T extends undefined ? never : T;
22
+ export type Whatever = {} | undefined | null;
23
+ export type LoosePartial<T extends object> = InexactPartial<T> & {
24
+ [k: string]: unknown;
25
+ };
26
+ export type Mask<Keys extends PropertyKey> = {
27
+ [K in Keys]?: true;
28
+ };
29
+ export type Writeable<T> = {
30
+ -readonly [P in keyof T]: T[P];
31
+ } & {};
32
+ export type InexactPartial<T> = {
33
+ [P in keyof T]?: T[P] | undefined;
34
+ };
35
+ export type EmptyObject = Record<string, never>;
36
+ export type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
37
+ readonly [Symbol.toStringTag]: string;
38
+ } | Date | Error | Generator | Promise<unknown> | RegExp;
39
+ export type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
40
+ export type SomeObject = Record<PropertyKey, any>;
41
+ export type Identity<T> = T;
42
+ export type Flatten<T> = Identity<{
43
+ [k in keyof T]: T[k];
44
+ }>;
45
+ export type Mapped<T> = {
46
+ [k in keyof T]: T[k];
47
+ };
48
+ export type Prettify<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
51
+ export type NoNeverKeys<T> = {
52
+ [k in keyof T]: [T[k]] extends [never] ? never : k;
53
+ }[keyof T];
54
+ export type NoNever<T> = Identity<{
55
+ [k in NoNeverKeys<T>]: k extends keyof T ? T[k] : never;
56
+ }>;
57
+ export type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : {
58
+ [K in keyof A as K extends keyof B ? never : K]: A[K];
59
+ } & {
60
+ [K in keyof B]: B[K];
61
+ }>;
62
+ export type TupleItems = ReadonlyArray<schemas.SomeType>;
63
+ export type AnyFunc = (...args: any[]) => any;
64
+ export type IsProp<T, K extends keyof T> = T[K] extends AnyFunc ? never : K;
65
+ export type MaybeAsync<T> = T | Promise<T>;
66
+ export type KeyOf<T> = keyof OmitIndexSignature<T>;
67
+ export type OmitIndexSignature<T> = {
68
+ [K in keyof T as string extends K ? never : K extends string ? K : never]: T[K];
69
+ };
70
+ export type ExtractIndexSignature<T> = {
71
+ [K in keyof T as string extends K ? K : K extends string ? never : K]: T[K];
72
+ };
73
+ export type Keys<T extends object> = keyof OmitIndexSignature<T>;
74
+ export type SchemaClass<T extends schemas.SomeType> = {
75
+ new (def: T["_zod"]["def"]): T;
76
+ };
77
+ export type EnumValue = string | number;
78
+ export type EnumLike = Readonly<Record<string, EnumValue>>;
79
+ export type ToEnum<T extends EnumValue> = Flatten<{
80
+ [k in T]: k;
81
+ }>;
82
+ export type KeysEnum<T extends object> = ToEnum<Exclude<keyof T, symbol>>;
83
+ export type KeysArray<T extends object> = Flatten<(keyof T & string)[]>;
84
+ export type Literal = string | number | bigint | boolean | null | undefined;
85
+ export type LiteralArray = Array<Literal>;
86
+ export type Primitive = string | number | symbol | bigint | boolean | null | undefined;
87
+ export type PrimitiveArray = Array<Primitive>;
88
+ export type HasSize = {
89
+ size: number;
90
+ };
91
+ export type HasLength = {
92
+ length: number;
93
+ };
94
+ export type Numeric = number | bigint | Date;
95
+ export type SafeParseResult<T> = SafeParseSuccess<T> | SafeParseError<T>;
96
+ export type SafeParseSuccess<T> = {
97
+ success: true;
98
+ data: T;
99
+ error?: never;
100
+ };
101
+ export type SafeParseError<T> = {
102
+ success: false;
103
+ data?: never;
104
+ error: errors.$ZodError<T>;
105
+ };
106
+ export type PropValues = Record<string, Set<Primitive>>;
107
+ export type PrimitiveSet = Set<Primitive>;
108
+ export declare function assertEqual<A, B>(val: AssertEqual<A, B>): AssertEqual<A, B>;
109
+ export declare function assertNotEqual<A, B>(val: AssertNotEqual<A, B>): AssertNotEqual<A, B>;
110
+ export declare function assertIs<T>(_arg: T): void;
111
+ export declare function assertNever(_x: never): never;
112
+ export declare function assert<T>(_: any): asserts _ is T;
113
+ export declare function getEnumValues(entries: EnumLike): EnumValue[];
114
+ export declare function joinValues<T extends Primitive[]>(array: T, separator?: string): string;
115
+ export declare function jsonStringifyReplacer(_: string, value: any): any;
116
+ export declare function cached<T>(getter: () => T): {
117
+ value: T;
118
+ };
119
+ export declare function nullish(input: any): boolean;
120
+ export declare function cleanRegex(source: string): string;
121
+ export declare function floatSafeRemainder(val: number, step: number): number;
122
+ export declare function defineLazy<T, K extends keyof T>(object: T, key: K, getter: () => T[K]): void;
123
+ export declare function assignProp<T extends object, K extends PropertyKey>(target: T, prop: K, value: K extends keyof T ? T[K] : any): void;
124
+ export declare function mergeDefs(...defs: Record<string, any>[]): any;
125
+ export declare function cloneDef(schema: schemas.$ZodType): any;
126
+ export declare function getElementAtPath(obj: any, path: (string | number)[] | null | undefined): any;
127
+ export declare function promiseAllObject<T extends object>(promisesObj: T): Promise<{
128
+ [k in keyof T]: Awaited<T[k]>;
129
+ }>;
130
+ export declare function randomString(length?: number): string;
131
+ export declare function esc(str: string): string;
132
+ export declare const captureStackTrace: (targetObject: object, constructorOpt?: Function) => void;
133
+ export declare function isObject(data: any): data is Record<PropertyKey, unknown>;
134
+ export declare const allowsEval: {
135
+ value: boolean;
136
+ };
137
+ export declare function isPlainObject(o: any): o is Record<PropertyKey, unknown>;
138
+ export declare function numKeys(data: any): number;
139
+ export declare const getParsedType: (data: any) => ParsedTypes;
140
+ export declare const propertyKeyTypes: Set<string>;
141
+ export declare const primitiveTypes: Set<string>;
142
+ export declare function escapeRegex(str: string): string;
143
+ export declare function clone<T extends schemas.$ZodType>(inst: T, def?: T["_zod"]["def"], params?: {
144
+ parent: boolean;
145
+ }): T;
146
+ export type EmptyToNever<T> = keyof T extends never ? never : T;
147
+ export type Normalize<T> = T extends undefined ? never : T extends Record<any, any> ? Flatten<{
148
+ [k in keyof Omit<T, "error" | "message">]: T[k];
149
+ } & ("error" extends keyof T ? {
150
+ error?: Exclude<T["error"], string>;
151
+ } : unknown)> : never;
152
+ export declare function normalizeParams<T>(_params: T): Normalize<T>;
153
+ export declare function createTransparentProxy<T extends object>(getter: () => T): T;
154
+ export declare function stringifyPrimitive(value: any): string;
155
+ export declare function optionalKeys(shape: schemas.$ZodShape): string[];
156
+ export type CleanKey<T extends PropertyKey> = T extends `?${infer K}` ? K : T extends `${infer K}?` ? K : T;
157
+ export type ToCleanMap<T extends schemas.$ZodLooseShape> = {
158
+ [k in keyof T]: k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k;
159
+ };
160
+ export type FromCleanMap<T extends schemas.$ZodLooseShape> = {
161
+ [k in keyof T as k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k]: k;
162
+ };
163
+ export declare const NUMBER_FORMAT_RANGES: Record<checks.$ZodNumberFormats, [number, number]>;
164
+ export declare const BIGINT_FORMAT_RANGES: Record<checks.$ZodBigIntFormats, [bigint, bigint]>;
165
+ export declare function pick(schema: schemas.$ZodObject, mask: Record<string, unknown>): any;
166
+ export declare function omit(schema: schemas.$ZodObject, mask: object): any;
167
+ export declare function extend(schema: schemas.$ZodObject, shape: schemas.$ZodShape): any;
168
+ export declare function merge(a: schemas.$ZodObject, b: schemas.$ZodObject): any;
169
+ export declare function partial(Class: SchemaClass<schemas.$ZodOptional> | null, schema: schemas.$ZodObject, mask: object | undefined): any;
170
+ export declare function required(Class: SchemaClass<schemas.$ZodNonOptional>, schema: schemas.$ZodObject, mask: object | undefined): any;
171
+ export type Constructor<T, Def extends any[] = any[]> = new (...args: Def) => T;
172
+ export declare function aborted(x: schemas.ParsePayload, startIndex?: number): boolean;
173
+ export declare function prefixIssues(path: PropertyKey, issues: errors.$ZodRawIssue[]): errors.$ZodRawIssue[];
174
+ export declare function unwrapMessage(message: string | {
175
+ message: string;
176
+ } | undefined | null): string | undefined;
177
+ export declare function finalizeIssue(iss: errors.$ZodRawIssue, ctx: schemas.ParseContextInternal | undefined, config: $ZodConfig): errors.$ZodIssue;
178
+ export declare function getSizableOrigin(input: any): "set" | "map" | "file" | "unknown";
179
+ export declare function getLengthableOrigin(input: any): "array" | "string" | "unknown";
180
+ export declare function issue(_iss: string, input: any, inst: any): errors.$ZodRawIssue;
181
+ export declare function issue(_iss: errors.$ZodRawIssue): errors.$ZodRawIssue;
182
+ export declare function cleanEnum(obj: Record<string, EnumValue>): EnumValue[];
183
+ export declare abstract class Class {
184
+ constructor(..._args: any[]);
185
+ }
@@ -0,0 +1,185 @@
1
+ import type * as checks from "./checks.js";
2
+ import type { $ZodConfig } from "./core.js";
3
+ import type * as errors from "./errors.js";
4
+ import type * as schemas from "./schemas.js";
5
+ export type JSONType = string | number | boolean | null | JSONType[] | {
6
+ [key: string]: JSONType;
7
+ };
8
+ export type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
9
+ export type IPVersion = "v4" | "v6";
10
+ export type MimeTypes = "application/json" | "application/xml" | "application/x-www-form-urlencoded" | "application/javascript" | "application/pdf" | "application/zip" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/octet-stream" | "application/graphql" | "text/html" | "text/plain" | "text/css" | "text/javascript" | "text/csv" | "image/png" | "image/jpeg" | "image/gif" | "image/svg+xml" | "image/webp" | "audio/mpeg" | "audio/ogg" | "audio/wav" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "font/woff" | "font/woff2" | "font/ttf" | "font/otf" | "multipart/form-data" | (string & {});
11
+ export type ParsedTypes = "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "file" | "date" | "array" | "map" | "set" | "nan" | "null" | "promise";
12
+ export type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;
13
+ export type AssertNotEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? false : true;
14
+ export type AssertExtends<T, U> = T extends U ? T : never;
15
+ export type IsAny<T> = 0 extends 1 & T ? true : false;
16
+ export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
17
+ export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
18
+ export type MakePartial<T, K extends keyof T> = Omit<T, K> & InexactPartial<Pick<T, K>>;
19
+ export type MakeRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
20
+ export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;
21
+ export type NoUndefined<T> = T extends undefined ? never : T;
22
+ export type Whatever = {} | undefined | null;
23
+ export type LoosePartial<T extends object> = InexactPartial<T> & {
24
+ [k: string]: unknown;
25
+ };
26
+ export type Mask<Keys extends PropertyKey> = {
27
+ [K in Keys]?: true;
28
+ };
29
+ export type Writeable<T> = {
30
+ -readonly [P in keyof T]: T[P];
31
+ } & {};
32
+ export type InexactPartial<T> = {
33
+ [P in keyof T]?: T[P] | undefined;
34
+ };
35
+ export type EmptyObject = Record<string, never>;
36
+ export type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
37
+ readonly [Symbol.toStringTag]: string;
38
+ } | Date | Error | Generator | Promise<unknown> | RegExp;
39
+ export type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
40
+ export type SomeObject = Record<PropertyKey, any>;
41
+ export type Identity<T> = T;
42
+ export type Flatten<T> = Identity<{
43
+ [k in keyof T]: T[k];
44
+ }>;
45
+ export type Mapped<T> = {
46
+ [k in keyof T]: T[k];
47
+ };
48
+ export type Prettify<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
51
+ export type NoNeverKeys<T> = {
52
+ [k in keyof T]: [T[k]] extends [never] ? never : k;
53
+ }[keyof T];
54
+ export type NoNever<T> = Identity<{
55
+ [k in NoNeverKeys<T>]: k extends keyof T ? T[k] : never;
56
+ }>;
57
+ export type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : {
58
+ [K in keyof A as K extends keyof B ? never : K]: A[K];
59
+ } & {
60
+ [K in keyof B]: B[K];
61
+ }>;
62
+ export type TupleItems = ReadonlyArray<schemas.SomeType>;
63
+ export type AnyFunc = (...args: any[]) => any;
64
+ export type IsProp<T, K extends keyof T> = T[K] extends AnyFunc ? never : K;
65
+ export type MaybeAsync<T> = T | Promise<T>;
66
+ export type KeyOf<T> = keyof OmitIndexSignature<T>;
67
+ export type OmitIndexSignature<T> = {
68
+ [K in keyof T as string extends K ? never : K extends string ? K : never]: T[K];
69
+ };
70
+ export type ExtractIndexSignature<T> = {
71
+ [K in keyof T as string extends K ? K : K extends string ? never : K]: T[K];
72
+ };
73
+ export type Keys<T extends object> = keyof OmitIndexSignature<T>;
74
+ export type SchemaClass<T extends schemas.SomeType> = {
75
+ new (def: T["_zod"]["def"]): T;
76
+ };
77
+ export type EnumValue = string | number;
78
+ export type EnumLike = Readonly<Record<string, EnumValue>>;
79
+ export type ToEnum<T extends EnumValue> = Flatten<{
80
+ [k in T]: k;
81
+ }>;
82
+ export type KeysEnum<T extends object> = ToEnum<Exclude<keyof T, symbol>>;
83
+ export type KeysArray<T extends object> = Flatten<(keyof T & string)[]>;
84
+ export type Literal = string | number | bigint | boolean | null | undefined;
85
+ export type LiteralArray = Array<Literal>;
86
+ export type Primitive = string | number | symbol | bigint | boolean | null | undefined;
87
+ export type PrimitiveArray = Array<Primitive>;
88
+ export type HasSize = {
89
+ size: number;
90
+ };
91
+ export type HasLength = {
92
+ length: number;
93
+ };
94
+ export type Numeric = number | bigint | Date;
95
+ export type SafeParseResult<T> = SafeParseSuccess<T> | SafeParseError<T>;
96
+ export type SafeParseSuccess<T> = {
97
+ success: true;
98
+ data: T;
99
+ error?: never;
100
+ };
101
+ export type SafeParseError<T> = {
102
+ success: false;
103
+ data?: never;
104
+ error: errors.$ZodError<T>;
105
+ };
106
+ export type PropValues = Record<string, Set<Primitive>>;
107
+ export type PrimitiveSet = Set<Primitive>;
108
+ export declare function assertEqual<A, B>(val: AssertEqual<A, B>): AssertEqual<A, B>;
109
+ export declare function assertNotEqual<A, B>(val: AssertNotEqual<A, B>): AssertNotEqual<A, B>;
110
+ export declare function assertIs<T>(_arg: T): void;
111
+ export declare function assertNever(_x: never): never;
112
+ export declare function assert<T>(_: any): asserts _ is T;
113
+ export declare function getEnumValues(entries: EnumLike): EnumValue[];
114
+ export declare function joinValues<T extends Primitive[]>(array: T, separator?: string): string;
115
+ export declare function jsonStringifyReplacer(_: string, value: any): any;
116
+ export declare function cached<T>(getter: () => T): {
117
+ value: T;
118
+ };
119
+ export declare function nullish(input: any): boolean;
120
+ export declare function cleanRegex(source: string): string;
121
+ export declare function floatSafeRemainder(val: number, step: number): number;
122
+ export declare function defineLazy<T, K extends keyof T>(object: T, key: K, getter: () => T[K]): void;
123
+ export declare function assignProp<T extends object, K extends PropertyKey>(target: T, prop: K, value: K extends keyof T ? T[K] : any): void;
124
+ export declare function mergeDefs(...defs: Record<string, any>[]): any;
125
+ export declare function cloneDef(schema: schemas.$ZodType): any;
126
+ export declare function getElementAtPath(obj: any, path: (string | number)[] | null | undefined): any;
127
+ export declare function promiseAllObject<T extends object>(promisesObj: T): Promise<{
128
+ [k in keyof T]: Awaited<T[k]>;
129
+ }>;
130
+ export declare function randomString(length?: number): string;
131
+ export declare function esc(str: string): string;
132
+ export declare const captureStackTrace: (targetObject: object, constructorOpt?: Function) => void;
133
+ export declare function isObject(data: any): data is Record<PropertyKey, unknown>;
134
+ export declare const allowsEval: {
135
+ value: boolean;
136
+ };
137
+ export declare function isPlainObject(o: any): o is Record<PropertyKey, unknown>;
138
+ export declare function numKeys(data: any): number;
139
+ export declare const getParsedType: (data: any) => ParsedTypes;
140
+ export declare const propertyKeyTypes: Set<string>;
141
+ export declare const primitiveTypes: Set<string>;
142
+ export declare function escapeRegex(str: string): string;
143
+ export declare function clone<T extends schemas.$ZodType>(inst: T, def?: T["_zod"]["def"], params?: {
144
+ parent: boolean;
145
+ }): T;
146
+ export type EmptyToNever<T> = keyof T extends never ? never : T;
147
+ export type Normalize<T> = T extends undefined ? never : T extends Record<any, any> ? Flatten<{
148
+ [k in keyof Omit<T, "error" | "message">]: T[k];
149
+ } & ("error" extends keyof T ? {
150
+ error?: Exclude<T["error"], string>;
151
+ } : unknown)> : never;
152
+ export declare function normalizeParams<T>(_params: T): Normalize<T>;
153
+ export declare function createTransparentProxy<T extends object>(getter: () => T): T;
154
+ export declare function stringifyPrimitive(value: any): string;
155
+ export declare function optionalKeys(shape: schemas.$ZodShape): string[];
156
+ export type CleanKey<T extends PropertyKey> = T extends `?${infer K}` ? K : T extends `${infer K}?` ? K : T;
157
+ export type ToCleanMap<T extends schemas.$ZodLooseShape> = {
158
+ [k in keyof T]: k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k;
159
+ };
160
+ export type FromCleanMap<T extends schemas.$ZodLooseShape> = {
161
+ [k in keyof T as k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k]: k;
162
+ };
163
+ export declare const NUMBER_FORMAT_RANGES: Record<checks.$ZodNumberFormats, [number, number]>;
164
+ export declare const BIGINT_FORMAT_RANGES: Record<checks.$ZodBigIntFormats, [bigint, bigint]>;
165
+ export declare function pick(schema: schemas.$ZodObject, mask: Record<string, unknown>): any;
166
+ export declare function omit(schema: schemas.$ZodObject, mask: object): any;
167
+ export declare function extend(schema: schemas.$ZodObject, shape: schemas.$ZodShape): any;
168
+ export declare function merge(a: schemas.$ZodObject, b: schemas.$ZodObject): any;
169
+ export declare function partial(Class: SchemaClass<schemas.$ZodOptional> | null, schema: schemas.$ZodObject, mask: object | undefined): any;
170
+ export declare function required(Class: SchemaClass<schemas.$ZodNonOptional>, schema: schemas.$ZodObject, mask: object | undefined): any;
171
+ export type Constructor<T, Def extends any[] = any[]> = new (...args: Def) => T;
172
+ export declare function aborted(x: schemas.ParsePayload, startIndex?: number): boolean;
173
+ export declare function prefixIssues(path: PropertyKey, issues: errors.$ZodRawIssue[]): errors.$ZodRawIssue[];
174
+ export declare function unwrapMessage(message: string | {
175
+ message: string;
176
+ } | undefined | null): string | undefined;
177
+ export declare function finalizeIssue(iss: errors.$ZodRawIssue, ctx: schemas.ParseContextInternal | undefined, config: $ZodConfig): errors.$ZodIssue;
178
+ export declare function getSizableOrigin(input: any): "set" | "map" | "file" | "unknown";
179
+ export declare function getLengthableOrigin(input: any): "array" | "string" | "unknown";
180
+ export declare function issue(_iss: string, input: any, inst: any): errors.$ZodRawIssue;
181
+ export declare function issue(_iss: errors.$ZodRawIssue): errors.$ZodRawIssue;
182
+ export declare function cleanEnum(obj: Record<string, EnumValue>): EnumValue[];
183
+ export declare abstract class Class {
184
+ constructor(..._args: any[]);
185
+ }