fullstacked 0.12.1-1359 → 0.12.1-1364

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 (335) hide show
  1. package/fullstacked_modules/@fullstacked/ai-agent/ai-agent.js +55352 -53576
  2. package/fullstacked_modules/@fullstacked/ai-agent/index.ts +0 -1
  3. package/fullstacked_modules/@fullstacked/ai-agent/lock.json +157 -152
  4. package/fullstacked_modules/@fullstacked/ai-agent/package.json +13 -13
  5. package/fullstacked_modules/@fullstacked/ai-agent/src/providers/ollama.ts +2 -2
  6. package/fullstacked_modules/@fullstacked/ui/index.js +6 -1
  7. package/fullstacked_modules/zod/README.md +4 -4
  8. package/fullstacked_modules/zod/index.cjs +2 -2
  9. package/fullstacked_modules/zod/index.d.cts +2 -2
  10. package/fullstacked_modules/zod/index.d.ts +2 -2
  11. package/fullstacked_modules/zod/index.js +2 -2
  12. package/fullstacked_modules/zod/locales/index.cjs +17 -0
  13. package/fullstacked_modules/zod/locales/index.d.cts +1 -0
  14. package/fullstacked_modules/zod/locales/index.d.ts +1 -0
  15. package/fullstacked_modules/zod/locales/index.js +1 -0
  16. package/fullstacked_modules/zod/locales/package.json +6 -0
  17. package/fullstacked_modules/zod/mini/index.cjs +17 -0
  18. package/fullstacked_modules/zod/mini/index.d.cts +1 -0
  19. package/fullstacked_modules/zod/mini/index.d.ts +1 -0
  20. package/fullstacked_modules/zod/mini/index.js +1 -0
  21. package/fullstacked_modules/zod/mini/package.json +6 -0
  22. package/fullstacked_modules/zod/package.json +29 -12
  23. package/fullstacked_modules/zod/src/index.ts +2 -2
  24. package/fullstacked_modules/zod/src/locales/index.ts +1 -0
  25. package/fullstacked_modules/zod/src/mini/index.ts +1 -0
  26. package/fullstacked_modules/zod/src/v3/ZodError.ts +1 -1
  27. package/fullstacked_modules/zod/src/v3/tests/object.test.ts +2 -2
  28. package/fullstacked_modules/zod/src/v3/tests/string.test.ts +2 -2
  29. package/fullstacked_modules/zod/src/v3/types.ts +3 -1
  30. package/fullstacked_modules/zod/src/v4/classic/checks.ts +1 -0
  31. package/fullstacked_modules/zod/src/v4/classic/compat.ts +4 -0
  32. package/fullstacked_modules/zod/src/v4/classic/errors.ts +9 -2
  33. package/fullstacked_modules/zod/src/v4/classic/external.ts +1 -1
  34. package/fullstacked_modules/zod/src/v4/classic/parse.ts +49 -0
  35. package/fullstacked_modules/zod/src/v4/classic/schemas.ts +224 -81
  36. package/fullstacked_modules/zod/src/v4/classic/tests/array.test.ts +6 -6
  37. package/fullstacked_modules/zod/src/v4/classic/tests/catch.test.ts +29 -5
  38. package/fullstacked_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
  39. package/fullstacked_modules/zod/src/v4/classic/tests/codec.test.ts +562 -0
  40. package/fullstacked_modules/zod/src/v4/classic/tests/continuability.test.ts +1 -1
  41. package/fullstacked_modules/zod/src/v4/classic/tests/datetime.test.ts +6 -0
  42. package/fullstacked_modules/zod/src/v4/classic/tests/default.test.ts +52 -0
  43. package/fullstacked_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +42 -0
  44. package/fullstacked_modules/zod/src/v4/classic/tests/error-utils.test.ts +70 -2
  45. package/fullstacked_modules/zod/src/v4/classic/tests/file.test.ts +9 -4
  46. package/fullstacked_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
  47. package/fullstacked_modules/zod/src/v4/classic/tests/function.test.ts +71 -31
  48. package/fullstacked_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
  49. package/fullstacked_modules/zod/src/v4/classic/tests/index.test.ts +15 -0
  50. package/fullstacked_modules/zod/src/v4/classic/tests/literal.test.ts +25 -0
  51. package/fullstacked_modules/zod/src/v4/classic/tests/nonoptional.test.ts +15 -0
  52. package/fullstacked_modules/zod/src/v4/classic/tests/number.test.ts +23 -0
  53. package/fullstacked_modules/zod/src/v4/classic/tests/object.test.ts +48 -2
  54. package/fullstacked_modules/zod/src/v4/classic/tests/optional.test.ts +13 -0
  55. package/fullstacked_modules/zod/src/v4/classic/tests/partial.test.ts +193 -0
  56. package/fullstacked_modules/zod/src/v4/classic/tests/pickomit.test.ts +5 -5
  57. package/fullstacked_modules/zod/src/v4/classic/tests/pipe.test.ts +25 -5
  58. package/fullstacked_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  59. package/fullstacked_modules/zod/src/v4/classic/tests/preprocess.test.ts +5 -21
  60. package/fullstacked_modules/zod/src/v4/classic/tests/record.test.ts +15 -1
  61. package/fullstacked_modules/zod/src/v4/classic/tests/recursive-types.test.ts +226 -0
  62. package/fullstacked_modules/zod/src/v4/classic/tests/refine.test.ts +78 -5
  63. package/fullstacked_modules/zod/src/v4/classic/tests/set.test.ts +5 -3
  64. package/fullstacked_modules/zod/src/v4/classic/tests/string-formats.test.ts +16 -0
  65. package/fullstacked_modules/zod/src/v4/classic/tests/string.test.ts +204 -5
  66. package/fullstacked_modules/zod/src/v4/classic/tests/stringbool.test.ts +40 -0
  67. package/fullstacked_modules/zod/src/v4/classic/tests/template-literal.test.ts +14 -9
  68. package/fullstacked_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +315 -7
  69. package/fullstacked_modules/zod/src/v4/classic/tests/transform.test.ts +111 -0
  70. package/fullstacked_modules/zod/src/v4/classic/tests/tuple.test.ts +2 -2
  71. package/fullstacked_modules/zod/src/v4/classic/tests/union.test.ts +90 -3
  72. package/fullstacked_modules/zod/src/v4/core/api.ts +160 -133
  73. package/fullstacked_modules/zod/src/v4/core/checks.ts +6 -2
  74. package/fullstacked_modules/zod/src/v4/core/core.ts +9 -28
  75. package/fullstacked_modules/zod/src/v4/core/doc.ts +2 -2
  76. package/fullstacked_modules/zod/src/v4/core/errors.ts +49 -60
  77. package/fullstacked_modules/zod/src/v4/core/index.ts +0 -1
  78. package/fullstacked_modules/zod/src/v4/core/json-schema.ts +7 -3
  79. package/fullstacked_modules/zod/src/v4/core/parse.ts +101 -0
  80. package/fullstacked_modules/zod/src/v4/core/regexes.ts +56 -14
  81. package/fullstacked_modules/zod/src/v4/core/registries.ts +5 -4
  82. package/fullstacked_modules/zod/src/v4/core/schemas.ts +705 -230
  83. package/fullstacked_modules/zod/src/v4/core/tests/extend.test.ts +18 -0
  84. package/fullstacked_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
  85. package/fullstacked_modules/zod/src/v4/core/to-json-schema.ts +100 -33
  86. package/fullstacked_modules/zod/src/v4/core/util.ts +237 -102
  87. package/fullstacked_modules/zod/src/v4/core/versions.ts +2 -2
  88. package/fullstacked_modules/zod/src/v4/locales/bg.ts +136 -0
  89. package/fullstacked_modules/zod/src/v4/locales/da.ts +141 -0
  90. package/fullstacked_modules/zod/src/v4/locales/es.ts +44 -10
  91. package/fullstacked_modules/zod/src/v4/locales/index.ts +8 -0
  92. package/fullstacked_modules/zod/src/v4/locales/is.ts +127 -0
  93. package/fullstacked_modules/zod/src/v4/locales/ka.ts +138 -0
  94. package/fullstacked_modules/zod/src/v4/locales/kh.ts +3 -122
  95. package/fullstacked_modules/zod/src/v4/locales/km.ts +126 -0
  96. package/fullstacked_modules/zod/src/v4/locales/lt.ts +265 -0
  97. package/fullstacked_modules/zod/src/v4/locales/ua.ts +3 -122
  98. package/fullstacked_modules/zod/src/v4/locales/uk.ts +126 -0
  99. package/fullstacked_modules/zod/src/v4/locales/yo.ts +131 -0
  100. package/fullstacked_modules/zod/src/v4/mini/external.ts +1 -1
  101. package/fullstacked_modules/zod/src/v4/mini/parse.ts +14 -1
  102. package/fullstacked_modules/zod/src/v4/mini/schemas.ts +186 -40
  103. package/fullstacked_modules/zod/src/v4/mini/tests/assignability.test.ts +1 -1
  104. package/fullstacked_modules/zod/src/v4/mini/tests/codec.test.ts +529 -0
  105. package/fullstacked_modules/zod/src/v4/mini/tests/computed.test.ts +1 -1
  106. package/fullstacked_modules/zod/src/v4/mini/tests/error.test.ts +1 -1
  107. package/fullstacked_modules/zod/src/v4/mini/tests/index.test.ts +29 -1
  108. package/fullstacked_modules/zod/src/v4/mini/tests/number.test.ts +1 -1
  109. package/fullstacked_modules/zod/src/v4/mini/tests/object.test.ts +16 -1
  110. package/fullstacked_modules/zod/src/v4/mini/tests/prototypes.test.ts +1 -1
  111. package/fullstacked_modules/zod/src/v4/mini/tests/recursive-types.test.ts +1 -1
  112. package/fullstacked_modules/zod/src/v4/mini/tests/string.test.ts +17 -1
  113. package/fullstacked_modules/zod/v3/ZodError.cjs +1 -1
  114. package/fullstacked_modules/zod/v3/ZodError.d.cts +6 -6
  115. package/fullstacked_modules/zod/v3/ZodError.d.ts +6 -6
  116. package/fullstacked_modules/zod/v3/ZodError.js +1 -1
  117. package/fullstacked_modules/zod/v3/locales/en.cjs +1 -0
  118. package/fullstacked_modules/zod/v3/locales/en.d.cts +1 -1
  119. package/fullstacked_modules/zod/v3/package.json +6 -0
  120. package/fullstacked_modules/zod/v3/types.cjs +2 -0
  121. package/fullstacked_modules/zod/v3/types.d.cts +4 -1
  122. package/fullstacked_modules/zod/v3/types.d.ts +4 -1
  123. package/fullstacked_modules/zod/v3/types.js +2 -0
  124. package/fullstacked_modules/zod/v4/classic/checks.d.cts +1 -1
  125. package/fullstacked_modules/zod/v4/classic/checks.d.ts +1 -1
  126. package/fullstacked_modules/zod/v4/classic/compat.cjs +5 -1
  127. package/fullstacked_modules/zod/v4/classic/compat.d.cts +4 -0
  128. package/fullstacked_modules/zod/v4/classic/compat.d.ts +4 -0
  129. package/fullstacked_modules/zod/v4/classic/compat.js +4 -0
  130. package/fullstacked_modules/zod/v4/classic/errors.cjs +9 -2
  131. package/fullstacked_modules/zod/v4/classic/errors.js +9 -2
  132. package/fullstacked_modules/zod/v4/classic/external.cjs +2 -2
  133. package/fullstacked_modules/zod/v4/classic/external.d.cts +1 -1
  134. package/fullstacked_modules/zod/v4/classic/external.d.ts +1 -1
  135. package/fullstacked_modules/zod/v4/classic/external.js +1 -1
  136. package/fullstacked_modules/zod/v4/classic/package.json +6 -0
  137. package/fullstacked_modules/zod/v4/classic/parse.cjs +10 -1
  138. package/fullstacked_modules/zod/v4/classic/parse.d.cts +8 -0
  139. package/fullstacked_modules/zod/v4/classic/parse.d.ts +8 -0
  140. package/fullstacked_modules/zod/v4/classic/parse.js +9 -0
  141. package/fullstacked_modules/zod/v4/classic/schemas.cjs +90 -48
  142. package/fullstacked_modules/zod/v4/classic/schemas.d.cts +70 -27
  143. package/fullstacked_modules/zod/v4/classic/schemas.d.ts +70 -27
  144. package/fullstacked_modules/zod/v4/classic/schemas.js +81 -47
  145. package/fullstacked_modules/zod/v4/core/api.cjs +52 -31
  146. package/fullstacked_modules/zod/v4/core/api.d.cts +87 -76
  147. package/fullstacked_modules/zod/v4/core/api.d.ts +87 -76
  148. package/fullstacked_modules/zod/v4/core/api.js +50 -31
  149. package/fullstacked_modules/zod/v4/core/checks.cjs +4 -0
  150. package/fullstacked_modules/zod/v4/core/checks.d.cts +2 -2
  151. package/fullstacked_modules/zod/v4/core/checks.d.ts +2 -2
  152. package/fullstacked_modules/zod/v4/core/checks.js +4 -0
  153. package/fullstacked_modules/zod/v4/core/core.cjs +8 -1
  154. package/fullstacked_modules/zod/v4/core/core.d.cts +5 -2
  155. package/fullstacked_modules/zod/v4/core/core.d.ts +5 -2
  156. package/fullstacked_modules/zod/v4/core/core.js +6 -0
  157. package/fullstacked_modules/zod/v4/core/doc.d.cts +1 -1
  158. package/fullstacked_modules/zod/v4/core/doc.d.ts +1 -1
  159. package/fullstacked_modules/zod/v4/core/errors.cjs +6 -19
  160. package/fullstacked_modules/zod/v4/core/errors.d.cts +24 -22
  161. package/fullstacked_modules/zod/v4/core/errors.d.ts +24 -22
  162. package/fullstacked_modules/zod/v4/core/errors.js +6 -19
  163. package/fullstacked_modules/zod/v4/core/index.cjs +0 -1
  164. package/fullstacked_modules/zod/v4/core/index.d.cts +0 -1
  165. package/fullstacked_modules/zod/v4/core/index.d.ts +0 -1
  166. package/fullstacked_modules/zod/v4/core/index.js +0 -1
  167. package/fullstacked_modules/zod/v4/core/json-schema.d.cts +4 -3
  168. package/fullstacked_modules/zod/v4/core/json-schema.d.ts +4 -3
  169. package/fullstacked_modules/zod/v4/core/package.json +6 -0
  170. package/fullstacked_modules/zod/v4/core/parse.cjs +45 -1
  171. package/fullstacked_modules/zod/v4/core/parse.d.cts +24 -0
  172. package/fullstacked_modules/zod/v4/core/parse.d.ts +24 -0
  173. package/fullstacked_modules/zod/v4/core/parse.js +36 -0
  174. package/fullstacked_modules/zod/v4/core/regexes.cjs +49 -16
  175. package/fullstacked_modules/zod/v4/core/regexes.d.cts +18 -2
  176. package/fullstacked_modules/zod/v4/core/regexes.d.ts +18 -2
  177. package/fullstacked_modules/zod/v4/core/regexes.js +46 -14
  178. package/fullstacked_modules/zod/v4/core/registries.cjs +4 -3
  179. package/fullstacked_modules/zod/v4/core/registries.d.cts +2 -2
  180. package/fullstacked_modules/zod/v4/core/registries.d.ts +2 -2
  181. package/fullstacked_modules/zod/v4/core/registries.js +4 -3
  182. package/fullstacked_modules/zod/v4/core/schemas.cjs +409 -171
  183. package/fullstacked_modules/zod/v4/core/schemas.d.cts +88 -16
  184. package/fullstacked_modules/zod/v4/core/schemas.d.ts +88 -16
  185. package/fullstacked_modules/zod/v4/core/schemas.js +408 -170
  186. package/fullstacked_modules/zod/v4/core/to-json-schema.cjs +97 -31
  187. package/fullstacked_modules/zod/v4/core/to-json-schema.d.cts +5 -3
  188. package/fullstacked_modules/zod/v4/core/to-json-schema.d.ts +5 -3
  189. package/fullstacked_modules/zod/v4/core/to-json-schema.js +97 -31
  190. package/fullstacked_modules/zod/v4/core/util.cjs +220 -101
  191. package/fullstacked_modules/zod/v4/core/util.d.cts +14 -0
  192. package/fullstacked_modules/zod/v4/core/util.d.ts +14 -0
  193. package/fullstacked_modules/zod/v4/core/util.js +209 -101
  194. package/fullstacked_modules/zod/v4/core/versions.cjs +2 -2
  195. package/fullstacked_modules/zod/v4/core/versions.d.cts +1 -1
  196. package/fullstacked_modules/zod/v4/core/versions.d.ts +1 -1
  197. package/fullstacked_modules/zod/v4/core/versions.js +2 -2
  198. package/fullstacked_modules/zod/v4/locales/ar.cjs +1 -0
  199. package/fullstacked_modules/zod/v4/locales/ar.d.cts +2 -1
  200. package/fullstacked_modules/zod/v4/locales/az.cjs +1 -0
  201. package/fullstacked_modules/zod/v4/locales/az.d.cts +2 -1
  202. package/fullstacked_modules/zod/v4/locales/be.cjs +1 -0
  203. package/fullstacked_modules/zod/v4/locales/be.d.cts +2 -1
  204. package/fullstacked_modules/zod/v4/locales/bg.cjs +156 -0
  205. package/fullstacked_modules/zod/v4/locales/bg.d.cts +5 -0
  206. package/fullstacked_modules/zod/v4/locales/bg.d.ts +5 -0
  207. package/fullstacked_modules/zod/v4/locales/bg.js +128 -0
  208. package/fullstacked_modules/zod/v4/locales/ca.cjs +1 -0
  209. package/fullstacked_modules/zod/v4/locales/ca.d.cts +2 -1
  210. package/fullstacked_modules/zod/v4/locales/cs.cjs +1 -0
  211. package/fullstacked_modules/zod/v4/locales/cs.d.cts +2 -1
  212. package/fullstacked_modules/zod/v4/locales/da.cjs +158 -0
  213. package/fullstacked_modules/zod/v4/locales/da.d.cts +5 -0
  214. package/fullstacked_modules/zod/v4/locales/da.d.ts +4 -0
  215. package/fullstacked_modules/zod/v4/locales/da.js +131 -0
  216. package/fullstacked_modules/zod/v4/locales/de.cjs +1 -0
  217. package/fullstacked_modules/zod/v4/locales/de.d.cts +2 -1
  218. package/fullstacked_modules/zod/v4/locales/es.cjs +43 -10
  219. package/fullstacked_modules/zod/v4/locales/es.d.cts +2 -1
  220. package/fullstacked_modules/zod/v4/locales/es.js +42 -10
  221. package/fullstacked_modules/zod/v4/locales/fa.cjs +1 -0
  222. package/fullstacked_modules/zod/v4/locales/fa.d.cts +2 -1
  223. package/fullstacked_modules/zod/v4/locales/fi.cjs +1 -0
  224. package/fullstacked_modules/zod/v4/locales/fi.d.cts +2 -1
  225. package/fullstacked_modules/zod/v4/locales/fr-CA.cjs +1 -0
  226. package/fullstacked_modules/zod/v4/locales/fr-CA.d.cts +2 -1
  227. package/fullstacked_modules/zod/v4/locales/fr.cjs +1 -0
  228. package/fullstacked_modules/zod/v4/locales/fr.d.cts +2 -1
  229. package/fullstacked_modules/zod/v4/locales/he.cjs +1 -0
  230. package/fullstacked_modules/zod/v4/locales/he.d.cts +2 -1
  231. package/fullstacked_modules/zod/v4/locales/hu.cjs +1 -0
  232. package/fullstacked_modules/zod/v4/locales/hu.d.cts +2 -1
  233. package/fullstacked_modules/zod/v4/locales/id.cjs +1 -0
  234. package/fullstacked_modules/zod/v4/locales/id.d.cts +2 -1
  235. package/fullstacked_modules/zod/v4/locales/index.cjs +17 -1
  236. package/fullstacked_modules/zod/v4/locales/index.d.cts +8 -0
  237. package/fullstacked_modules/zod/v4/locales/index.d.ts +8 -0
  238. package/fullstacked_modules/zod/v4/locales/index.js +8 -0
  239. package/fullstacked_modules/zod/v4/locales/is.cjs +145 -0
  240. package/fullstacked_modules/zod/v4/locales/is.d.cts +5 -0
  241. package/fullstacked_modules/zod/v4/locales/is.d.ts +5 -0
  242. package/fullstacked_modules/zod/v4/locales/is.js +117 -0
  243. package/fullstacked_modules/zod/v4/locales/it.cjs +1 -0
  244. package/fullstacked_modules/zod/v4/locales/it.d.cts +2 -1
  245. package/fullstacked_modules/zod/v4/locales/ja.cjs +1 -0
  246. package/fullstacked_modules/zod/v4/locales/ja.d.cts +2 -1
  247. package/fullstacked_modules/zod/v4/locales/ka.cjs +153 -0
  248. package/fullstacked_modules/zod/v4/locales/ka.d.cts +5 -0
  249. package/fullstacked_modules/zod/v4/locales/ka.d.ts +5 -0
  250. package/fullstacked_modules/zod/v4/locales/ka.js +125 -0
  251. package/fullstacked_modules/zod/v4/locales/kh.cjs +6 -137
  252. package/fullstacked_modules/zod/v4/locales/kh.d.cts +2 -1
  253. package/fullstacked_modules/zod/v4/locales/kh.d.ts +1 -0
  254. package/fullstacked_modules/zod/v4/locales/kh.js +3 -115
  255. package/fullstacked_modules/zod/v4/locales/km.cjs +144 -0
  256. package/fullstacked_modules/zod/v4/locales/km.d.cts +5 -0
  257. package/fullstacked_modules/zod/v4/locales/km.d.ts +4 -0
  258. package/fullstacked_modules/zod/v4/locales/km.js +117 -0
  259. package/fullstacked_modules/zod/v4/locales/ko.cjs +1 -0
  260. package/fullstacked_modules/zod/v4/locales/ko.d.cts +2 -1
  261. package/fullstacked_modules/zod/v4/locales/lt.cjs +258 -0
  262. package/fullstacked_modules/zod/v4/locales/lt.d.cts +5 -0
  263. package/fullstacked_modules/zod/v4/locales/lt.d.ts +5 -0
  264. package/fullstacked_modules/zod/v4/locales/lt.js +230 -0
  265. package/fullstacked_modules/zod/v4/locales/mk.cjs +1 -0
  266. package/fullstacked_modules/zod/v4/locales/mk.d.cts +2 -1
  267. package/fullstacked_modules/zod/v4/locales/ms.cjs +1 -0
  268. package/fullstacked_modules/zod/v4/locales/ms.d.cts +2 -1
  269. package/fullstacked_modules/zod/v4/locales/nl.cjs +1 -0
  270. package/fullstacked_modules/zod/v4/locales/nl.d.cts +2 -1
  271. package/fullstacked_modules/zod/v4/locales/no.cjs +1 -0
  272. package/fullstacked_modules/zod/v4/locales/no.d.cts +2 -1
  273. package/fullstacked_modules/zod/v4/locales/ota.cjs +1 -0
  274. package/fullstacked_modules/zod/v4/locales/ota.d.cts +2 -1
  275. package/fullstacked_modules/zod/v4/locales/package.json +6 -0
  276. package/fullstacked_modules/zod/v4/locales/pl.cjs +1 -0
  277. package/fullstacked_modules/zod/v4/locales/pl.d.cts +2 -1
  278. package/fullstacked_modules/zod/v4/locales/ps.cjs +1 -0
  279. package/fullstacked_modules/zod/v4/locales/ps.d.cts +2 -1
  280. package/fullstacked_modules/zod/v4/locales/pt.cjs +1 -0
  281. package/fullstacked_modules/zod/v4/locales/pt.d.cts +2 -1
  282. package/fullstacked_modules/zod/v4/locales/ru.cjs +1 -0
  283. package/fullstacked_modules/zod/v4/locales/ru.d.cts +2 -1
  284. package/fullstacked_modules/zod/v4/locales/sl.cjs +1 -0
  285. package/fullstacked_modules/zod/v4/locales/sl.d.cts +2 -1
  286. package/fullstacked_modules/zod/v4/locales/sv.cjs +1 -0
  287. package/fullstacked_modules/zod/v4/locales/sv.d.cts +2 -1
  288. package/fullstacked_modules/zod/v4/locales/ta.cjs +1 -0
  289. package/fullstacked_modules/zod/v4/locales/ta.d.cts +2 -1
  290. package/fullstacked_modules/zod/v4/locales/th.cjs +1 -0
  291. package/fullstacked_modules/zod/v4/locales/th.d.cts +2 -1
  292. package/fullstacked_modules/zod/v4/locales/ua.cjs +6 -137
  293. package/fullstacked_modules/zod/v4/locales/ua.d.cts +2 -1
  294. package/fullstacked_modules/zod/v4/locales/ua.d.ts +1 -0
  295. package/fullstacked_modules/zod/v4/locales/ua.js +3 -115
  296. package/fullstacked_modules/zod/v4/locales/uk.cjs +144 -0
  297. package/fullstacked_modules/zod/v4/locales/uk.d.cts +5 -0
  298. package/fullstacked_modules/zod/v4/locales/uk.d.ts +4 -0
  299. package/fullstacked_modules/zod/v4/locales/uk.js +117 -0
  300. package/fullstacked_modules/zod/v4/locales/ur.cjs +1 -0
  301. package/fullstacked_modules/zod/v4/locales/ur.d.cts +2 -1
  302. package/fullstacked_modules/zod/v4/locales/vi.cjs +1 -0
  303. package/fullstacked_modules/zod/v4/locales/vi.d.cts +2 -1
  304. package/fullstacked_modules/zod/v4/locales/yo.cjs +142 -0
  305. package/fullstacked_modules/zod/v4/locales/yo.d.cts +5 -0
  306. package/fullstacked_modules/zod/v4/locales/yo.d.ts +4 -0
  307. package/fullstacked_modules/zod/v4/locales/yo.js +115 -0
  308. package/fullstacked_modules/zod/v4/locales/zh-CN.cjs +1 -0
  309. package/fullstacked_modules/zod/v4/locales/zh-CN.d.cts +2 -1
  310. package/fullstacked_modules/zod/v4/locales/zh-TW.cjs +1 -0
  311. package/fullstacked_modules/zod/v4/locales/zh-TW.d.cts +2 -1
  312. package/fullstacked_modules/zod/v4/mini/external.cjs +2 -2
  313. package/fullstacked_modules/zod/v4/mini/external.d.cts +1 -1
  314. package/fullstacked_modules/zod/v4/mini/external.d.ts +1 -1
  315. package/fullstacked_modules/zod/v4/mini/external.js +1 -1
  316. package/fullstacked_modules/zod/v4/mini/package.json +6 -0
  317. package/fullstacked_modules/zod/v4/mini/parse.cjs +9 -1
  318. package/fullstacked_modules/zod/v4/mini/parse.d.cts +1 -1
  319. package/fullstacked_modules/zod/v4/mini/parse.d.ts +1 -1
  320. package/fullstacked_modules/zod/v4/mini/parse.js +1 -1
  321. package/fullstacked_modules/zod/v4/mini/schemas.cjs +77 -24
  322. package/fullstacked_modules/zod/v4/mini/schemas.d.cts +56 -5
  323. package/fullstacked_modules/zod/v4/mini/schemas.d.ts +56 -5
  324. package/fullstacked_modules/zod/v4/mini/schemas.js +66 -23
  325. package/fullstacked_modules/zod/v4/package.json +6 -0
  326. package/fullstacked_modules/zod/v4-mini/package.json +6 -0
  327. package/index.js +1 -1
  328. package/package.json +1 -1
  329. package/fullstacked_modules/@fullstacked/ai-agent/story.txt +0 -7
  330. package/fullstacked_modules/@fullstacked/ai-agent/summary.txt +0 -7
  331. package/fullstacked_modules/zod/src/v4/core/function.ts +0 -176
  332. package/fullstacked_modules/zod/v4/core/function.cjs +0 -102
  333. package/fullstacked_modules/zod/v4/core/function.d.cts +0 -52
  334. package/fullstacked_modules/zod/v4/core/function.d.ts +0 -52
  335. package/fullstacked_modules/zod/v4/core/function.js +0 -75
@@ -2,6 +2,7 @@ import * as core from "../core/index.js";
2
2
  import { util } from "../core/index.js";
3
3
  type SomeType = core.SomeType;
4
4
  export interface ZodMiniType<out Output = unknown, out Input = unknown, out Internals extends core.$ZodTypeInternals<Output, Input> = core.$ZodTypeInternals<Output, Input>> extends core.$ZodType<Output, Input, Internals> {
5
+ type: Internals["def"]["type"];
5
6
  check(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this;
6
7
  clone(def?: Internals["def"], params?: {
7
8
  parent: boolean;
@@ -46,6 +47,7 @@ export interface ZodMiniURL extends _ZodMiniString<core.$ZodURLInternals> {
46
47
  }
47
48
  export declare const ZodMiniURL: core.$constructor<ZodMiniURL>;
48
49
  export declare function url(params?: string | core.$ZodURLParams): ZodMiniURL;
50
+ export declare function httpUrl(params?: string | Omit<core.$ZodURLParams, "protocol" | "hostname">): ZodMiniURL;
49
51
  export interface ZodMiniEmoji extends _ZodMiniString<core.$ZodEmojiInternals> {
50
52
  }
51
53
  export declare const ZodMiniEmoji: core.$constructor<ZodMiniEmoji>;
@@ -111,6 +113,11 @@ export interface ZodMiniCustomStringFormat<Format extends string = string> exten
111
113
  }
112
114
  export declare const ZodMiniCustomStringFormat: core.$constructor<ZodMiniCustomStringFormat>;
113
115
  export declare function stringFormat<Format extends string>(format: Format, fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp, _params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<Format>;
116
+ export declare function hostname(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hostname">;
117
+ export declare function hex(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hex">;
118
+ export declare function hash<Alg extends util.HashAlgorithm, Enc extends util.HashEncoding = "hex">(alg: Alg, params?: {
119
+ enc?: Enc;
120
+ } & core.$ZodStringFormatParams): ZodMiniCustomStringFormat<`${Alg}_${Enc}`>;
114
121
  interface _ZodMiniNumber<T extends core.$ZodNumberInternals<unknown> = core.$ZodNumberInternals<unknown>> extends _ZodMiniType<T>, core.$ZodNumber<T["input"]> {
115
122
  _zod: T;
116
123
  }
@@ -178,7 +185,7 @@ export interface ZodMiniArray<T extends SomeType = core.$ZodType> extends _ZodMi
178
185
  }
179
186
  export declare const ZodMiniArray: core.$constructor<ZodMiniArray>;
180
187
  export declare function array<T extends SomeType>(element: T, params?: string | core.$ZodArrayParams): ZodMiniArray<T>;
181
- export declare function keyof<T extends ZodMiniObject>(schema: T): ZodMiniLiteral<Exclude<keyof T["shape"], symbol>>;
188
+ export declare function keyof<T extends ZodMiniObject>(schema: T): ZodMiniEnum<util.KeysEnum<T["shape"]>>;
182
189
  export interface ZodMiniObject<
183
190
  /** @ts-ignore Cast variance */
184
191
  out Shape extends core.$ZodShape = core.$ZodShape, out Config extends core.$ZodObjectConfig = core.$strip> extends ZodMiniType<any, any, core.$ZodObjectInternals<Shape, Config>>, core.$ZodObject<Shape, Config> {
@@ -189,6 +196,10 @@ export declare function object<T extends core.$ZodLooseShape = Record<never, Som
189
196
  export declare function strictObject<T extends core.$ZodLooseShape>(shape: T, params?: string | core.$ZodObjectParams): ZodMiniObject<T, core.$strict>;
190
197
  export declare function looseObject<T extends core.$ZodLooseShape>(shape: T, params?: string | core.$ZodObjectParams): ZodMiniObject<T, core.$loose>;
191
198
  export declare function extend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(schema: T, shape: U): ZodMiniObject<util.Extend<T["shape"], U>, T["_zod"]["config"]>;
199
+ export type SafeExtendShape<Base extends core.$ZodShape, Ext extends core.$ZodLooseShape> = {
200
+ [K in keyof Ext]: K extends keyof Base ? core.output<Ext[K]> extends core.output<Base[K]> ? core.input<Ext[K]> extends core.input<Base[K]> ? Ext[K] : never : never : Ext[K];
201
+ };
202
+ export declare function safeExtend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(schema: T, shape: SafeExtendShape<T["shape"], U>): ZodMiniObject<util.Extend<T["shape"], U>, T["_zod"]["config"]>;
192
203
  /** @deprecated Identical to `z.extend(A, B)` */
193
204
  export declare function merge<T extends ZodMiniObject, U extends ZodMiniObject>(a: T, b: U): ZodMiniObject<util.Extend<T["shape"], U["shape"]>, T["_zod"]["config"]>;
194
205
  export declare function pick<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(schema: T, mask: M): ZodMiniObject<util.Flatten<Pick<T["shape"], keyof T["shape"] & keyof M>>, T["_zod"]["config"]>;
@@ -215,11 +226,11 @@ export interface ZodMiniUnion<T extends readonly SomeType[] = readonly core.$Zod
215
226
  }
216
227
  export declare const ZodMiniUnion: core.$constructor<ZodMiniUnion>;
217
228
  export declare function union<const T extends readonly SomeType[]>(options: T, params?: string | core.$ZodUnionParams): ZodMiniUnion<T>;
218
- export interface ZodMiniDiscriminatedUnion<Options extends readonly SomeType[] = readonly core.$ZodType[]> extends ZodMiniUnion<Options> {
219
- _zod: core.$ZodDiscriminatedUnionInternals<Options>;
229
+ export interface ZodMiniDiscriminatedUnion<Options extends readonly SomeType[] = readonly core.$ZodType[], Disc extends string = string> extends ZodMiniUnion<Options> {
230
+ _zod: core.$ZodDiscriminatedUnionInternals<Options, Disc>;
220
231
  }
221
232
  export declare const ZodMiniDiscriminatedUnion: core.$constructor<ZodMiniDiscriminatedUnion>;
222
- export declare function discriminatedUnion<Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]]>(discriminator: string, options: Types, params?: string | core.$ZodDiscriminatedUnionParams): ZodMiniDiscriminatedUnion<Types>;
233
+ export declare function discriminatedUnion<Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]], Disc extends string>(discriminator: Disc, options: Types, params?: string | core.$ZodDiscriminatedUnionParams): ZodMiniDiscriminatedUnion<Types, Disc>;
223
234
  export interface ZodMiniIntersection<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodIntersectionInternals<A, B>> {
224
235
  }
225
236
  export declare const ZodMiniIntersection: core.$constructor<ZodMiniIntersection>;
@@ -244,6 +255,7 @@ export interface ZodMiniSet<T extends SomeType = core.$ZodType> extends _ZodMini
244
255
  export declare const ZodMiniSet: core.$constructor<ZodMiniSet>;
245
256
  export declare function set<Value extends SomeType>(valueType: Value, params?: string | core.$ZodSetParams): ZodMiniSet<Value>;
246
257
  export interface ZodMiniEnum<T extends util.EnumLike = util.EnumLike> extends _ZodMiniType<core.$ZodEnumInternals<T>> {
258
+ options: Array<T[keyof T]>;
247
259
  }
248
260
  export declare const ZodMiniEnum: core.$constructor<ZodMiniEnum>;
249
261
  declare function _enum<const T extends readonly string[]>(values: T, params?: string | core.$ZodEnumParams): ZodMiniEnum<util.ToEnum<T[number]>>;
@@ -308,6 +320,15 @@ export interface ZodMiniPipe<A extends SomeType = core.$ZodType, B extends SomeT
308
320
  }
309
321
  export declare const ZodMiniPipe: core.$constructor<ZodMiniPipe>;
310
322
  export declare function pipe<const A extends SomeType, B extends core.$ZodType<unknown, core.output<A>> = core.$ZodType<unknown, core.output<A>>>(in_: A, out: B | core.$ZodType<unknown, core.output<A>>): ZodMiniPipe<A, B>;
323
+ export interface ZodMiniCodec<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType> extends ZodMiniPipe<A, B>, core.$ZodCodec<A, B> {
324
+ _zod: core.$ZodCodecInternals<A, B>;
325
+ def: core.$ZodCodecDef<A, B>;
326
+ }
327
+ export declare const ZodMiniCodec: core.$constructor<ZodMiniCodec>;
328
+ export declare function codec<const A extends SomeType, B extends core.SomeType = core.$ZodType>(in_: A, out: B, params: {
329
+ decode: (value: core.output<A>, payload: core.ParsePayload<core.output<A>>) => core.util.MaybeAsync<core.input<B>>;
330
+ encode: (value: core.input<B>, payload: core.ParsePayload<core.input<B>>) => core.util.MaybeAsync<core.output<A>>;
331
+ }): ZodMiniCodec<A, B>;
311
332
  export interface ZodMiniReadonly<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodReadonlyInternals<T>> {
312
333
  }
313
334
  export declare const ZodMiniReadonly: core.$constructor<ZodMiniReadonly>;
@@ -331,12 +352,13 @@ export declare const ZodMiniCustom: core.$constructor<ZodMiniCustom>;
331
352
  export declare function check<O = unknown>(fn: core.CheckFn<O>, params?: string | core.$ZodCustomParams): core.$ZodCheck<O>;
332
353
  export declare function custom<O = unknown, I = O>(fn?: (data: O) => unknown, _params?: string | core.$ZodCustomParams | undefined): ZodMiniCustom<O, I>;
333
354
  export declare function refine<T>(fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>, _params?: string | core.$ZodCustomParams): core.$ZodCheck<T>;
355
+ export declare function superRefine<T>(fn: (arg: T, payload: core.$RefinementCtx<T>) => void | Promise<void>): core.$ZodCheck<T>;
334
356
  declare abstract class Class {
335
357
  constructor(..._args: any[]);
336
358
  }
337
359
  declare function _instanceof<T extends typeof Class>(cls: T, params?: core.$ZodCustomParams): ZodMiniCustom<InstanceType<T>, InstanceType<T>>;
338
360
  export { _instanceof as instanceof };
339
- export declare const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodMiniPipe<ZodMiniPipe<ZodMiniString, ZodMiniTransform<boolean, string>>, ZodMiniBoolean>;
361
+ export declare const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodMiniCodec<ZodMiniString, ZodMiniBoolean>;
340
362
  type _ZodMiniJSONSchema = ZodMiniUnion<[
341
363
  ZodMiniString,
342
364
  ZodMiniNumber,
@@ -354,3 +376,32 @@ export interface ZodMiniJSONSchema extends _ZodMiniJSONSchema {
354
376
  _zod: ZodMiniJSONSchemaInternals;
355
377
  }
356
378
  export declare function json(): ZodMiniJSONSchema;
379
+ export interface ZodMiniFunction<Args extends core.$ZodFunctionIn = core.$ZodFunctionIn, Returns extends core.$ZodFunctionOut = core.$ZodFunctionOut> extends _ZodMiniType<core.$ZodFunctionInternals<Args, Returns>>, core.$ZodFunction<Args, Returns> {
380
+ _def: core.$ZodFunctionDef<Args, Returns>;
381
+ _input: core.$InferInnerFunctionType<Args, Returns>;
382
+ _output: core.$InferOuterFunctionType<Args, Returns>;
383
+ input<const Items extends util.TupleItems, const Rest extends core.$ZodFunctionOut = core.$ZodFunctionOut>(args: Items, rest?: Rest): ZodMiniFunction<ZodMiniTuple<Items, Rest>, Returns>;
384
+ input<NewArgs extends core.$ZodFunctionIn>(args: NewArgs): ZodMiniFunction<NewArgs, Returns>;
385
+ input(...args: any[]): ZodMiniFunction<any, Returns>;
386
+ output<NewReturns extends core.$ZodFunctionOut>(output: NewReturns): ZodMiniFunction<Args, NewReturns>;
387
+ }
388
+ export declare const ZodMiniFunction: core.$constructor<ZodMiniFunction>;
389
+ export declare function _function(): ZodMiniFunction;
390
+ export declare function _function<const In extends Array<SomeType> = Array<SomeType>>(params: {
391
+ input: In;
392
+ }): ZodMiniFunction<ZodMiniTuple<In, null>, core.$ZodFunctionOut>;
393
+ export declare function _function<const In extends Array<SomeType> = Array<SomeType>, const Out extends core.$ZodFunctionOut = core.$ZodFunctionOut>(params: {
394
+ input: In;
395
+ output: Out;
396
+ }): ZodMiniFunction<ZodMiniTuple<In, null>, Out>;
397
+ export declare function _function<const In extends core.$ZodFunctionIn = core.$ZodFunctionIn>(params: {
398
+ input: In;
399
+ }): ZodMiniFunction<In, core.$ZodFunctionOut>;
400
+ export declare function _function<const Out extends core.$ZodFunctionOut = core.$ZodFunctionOut>(params: {
401
+ output: Out;
402
+ }): ZodMiniFunction<core.$ZodFunctionIn, Out>;
403
+ export declare function _function<In extends core.$ZodFunctionIn = core.$ZodFunctionIn, Out extends core.$ZodFunctionOut = core.$ZodFunctionOut>(params?: {
404
+ input: In;
405
+ output: Out;
406
+ }): ZodMiniFunction<In, Out>;
407
+ export { _function as function };
@@ -6,6 +6,7 @@ export const ZodMiniType = /*@__PURE__*/ core.$constructor("ZodMiniType", (inst,
6
6
  throw new Error("Uninitialized schema in ZodMiniType.");
7
7
  core.$ZodType.init(inst, def);
8
8
  inst.def = def;
9
+ inst.type = def.type;
9
10
  inst.parse = (data, params) => parse.parse(inst, data, params, { callee: inst.parse });
10
11
  inst.safeParse = (data, params) => parse.safeParse(inst, data, params);
11
12
  inst.parseAsync = async (data, params) => parse.parseAsync(inst, data, params, { callee: inst.parseAsync });
@@ -78,6 +79,13 @@ export const ZodMiniURL = /*@__PURE__*/ core.$constructor("ZodMiniURL", (inst, d
78
79
  export function url(params) {
79
80
  return core._url(ZodMiniURL, params);
80
81
  }
82
+ export function httpUrl(params) {
83
+ return core._url(ZodMiniURL, {
84
+ protocol: /^https?$/,
85
+ hostname: core.regexes.domain,
86
+ ...util.normalizeParams(params),
87
+ });
88
+ }
81
89
  export const ZodMiniEmoji = /*@__PURE__*/ core.$constructor("ZodMiniEmoji", (inst, def) => {
82
90
  core.$ZodEmoji.init(inst, def);
83
91
  ZodMiniStringFormat.init(inst, def);
@@ -190,6 +198,21 @@ export const ZodMiniCustomStringFormat = /*@__PURE__*/ core.$constructor("ZodMin
190
198
  export function stringFormat(format, fnOrRegex, _params = {}) {
191
199
  return core._stringFormat(ZodMiniCustomStringFormat, format, fnOrRegex, _params);
192
200
  }
201
+ export function hostname(_params) {
202
+ return core._stringFormat(ZodMiniCustomStringFormat, "hostname", core.regexes.hostname, _params);
203
+ }
204
+ export function hex(_params) {
205
+ return core._stringFormat(ZodMiniCustomStringFormat, "hex", core.regexes.hex, _params);
206
+ }
207
+ export function hash(alg, params) {
208
+ const enc = params?.enc ?? "hex";
209
+ const format = `${alg}_${enc}`;
210
+ const regex = core.regexes[format];
211
+ // check for unrecognized format
212
+ if (!regex)
213
+ throw new Error(`Unrecognized hash format: ${format}`);
214
+ return core._stringFormat(ZodMiniCustomStringFormat, format, regex, params);
215
+ }
193
216
  export const ZodMiniNumber = /*@__PURE__*/ core.$constructor("ZodMiniNumber", (inst, def) => {
194
217
  core.$ZodNumber.init(inst, def);
195
218
  ZodMiniType.init(inst, def);
@@ -320,7 +343,7 @@ export function array(element, params) {
320
343
  // .keyof
321
344
  export function keyof(schema) {
322
345
  const shape = schema._zod.def.shape;
323
- return literal(Object.keys(shape));
346
+ return _enum(Object.keys(shape));
324
347
  }
325
348
  export const ZodMiniObject = /*@__PURE__*/ core.$constructor("ZodMiniObject", (inst, def) => {
326
349
  core.$ZodObject.init(inst, def);
@@ -330,10 +353,7 @@ export const ZodMiniObject = /*@__PURE__*/ core.$constructor("ZodMiniObject", (i
330
353
  export function object(shape, params) {
331
354
  const def = {
332
355
  type: "object",
333
- get shape() {
334
- util.assignProp(this, "shape", { ...shape });
335
- return this.shape;
336
- },
356
+ shape: shape ?? {},
337
357
  ...util.normalizeParams(params),
338
358
  };
339
359
  return new ZodMiniObject(def);
@@ -342,11 +362,7 @@ export function object(shape, params) {
342
362
  export function strictObject(shape, params) {
343
363
  return new ZodMiniObject({
344
364
  type: "object",
345
- // shape: shape as core.$ZodLooseShape,
346
- get shape() {
347
- util.assignProp(this, "shape", { ...shape });
348
- return this.shape;
349
- },
365
+ shape,
350
366
  catchall: never(),
351
367
  ...util.normalizeParams(params),
352
368
  });
@@ -355,14 +371,7 @@ export function strictObject(shape, params) {
355
371
  export function looseObject(shape, params) {
356
372
  return new ZodMiniObject({
357
373
  type: "object",
358
- // shape: shape as core.$ZodLooseShape,
359
- get shape() {
360
- util.assignProp(this, "shape", { ...shape });
361
- return this.shape;
362
- },
363
- // get optional() {
364
- // return util.optionalKeys(shape);
365
- // },
374
+ shape,
366
375
  catchall: unknown(),
367
376
  ...util.normalizeParams(params),
368
377
  });
@@ -371,6 +380,9 @@ export function looseObject(shape, params) {
371
380
  export function extend(schema, shape) {
372
381
  return util.extend(schema, shape);
373
382
  }
383
+ export function safeExtend(schema, shape) {
384
+ return util.safeExtend(schema, shape);
385
+ }
374
386
  export function merge(schema, shape) {
375
387
  return util.extend(schema, shape);
376
388
  }
@@ -452,9 +464,11 @@ export function record(keyType, valueType, params) {
452
464
  });
453
465
  }
454
466
  export function partialRecord(keyType, valueType, params) {
467
+ const k = core.clone(keyType);
468
+ k._zod.values = undefined;
455
469
  return new ZodMiniRecord({
456
470
  type: "record",
457
- keyType: union([keyType, never()]),
471
+ keyType: k,
458
472
  valueType: valueType,
459
473
  ...util.normalizeParams(params),
460
474
  });
@@ -485,6 +499,7 @@ export function set(valueType, params) {
485
499
  export const ZodMiniEnum = /*@__PURE__*/ core.$constructor("ZodMiniEnum", (inst, def) => {
486
500
  core.$ZodEnum.init(inst, def);
487
501
  ZodMiniType.init(inst, def);
502
+ inst.options = Object.values(def.entries);
488
503
  });
489
504
  function _enum(values, params) {
490
505
  const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
@@ -570,7 +585,7 @@ export function _default(innerType, defaultValue) {
570
585
  type: "default",
571
586
  innerType: innerType,
572
587
  get defaultValue() {
573
- return typeof defaultValue === "function" ? defaultValue() : defaultValue;
588
+ return typeof defaultValue === "function" ? defaultValue() : util.shallowClone(defaultValue);
574
589
  },
575
590
  });
576
591
  }
@@ -583,7 +598,7 @@ export function prefault(innerType, defaultValue) {
583
598
  type: "prefault",
584
599
  innerType: innerType,
585
600
  get defaultValue() {
586
- return typeof defaultValue === "function" ? defaultValue() : defaultValue;
601
+ return typeof defaultValue === "function" ? defaultValue() : util.shallowClone(defaultValue);
587
602
  },
588
603
  });
589
604
  }
@@ -638,6 +653,19 @@ export function pipe(in_, out) {
638
653
  out: out,
639
654
  });
640
655
  }
656
+ export const ZodMiniCodec = /*@__PURE__*/ core.$constructor("ZodMiniCodec", (inst, def) => {
657
+ ZodMiniPipe.init(inst, def);
658
+ core.$ZodCodec.init(inst, def);
659
+ });
660
+ export function codec(in_, out, params) {
661
+ return new ZodMiniCodec({
662
+ type: "pipe",
663
+ in: in_,
664
+ out: out,
665
+ transform: params.decode,
666
+ reverseTransform: params.encode,
667
+ });
668
+ }
641
669
  export const ZodMiniReadonly = /*@__PURE__*/ core.$constructor("ZodMiniReadonly", (inst, def) => {
642
670
  core.$ZodReadonly.init(inst, def);
643
671
  ZodMiniType.init(inst, def);
@@ -705,6 +733,10 @@ export function custom(fn, _params) {
705
733
  export function refine(fn, _params = {}) {
706
734
  return core._refine(ZodMiniCustom, fn, _params);
707
735
  }
736
+ // superRefine
737
+ export function superRefine(fn) {
738
+ return core._superRefine(fn);
739
+ }
708
740
  // instanceof
709
741
  class Class {
710
742
  constructor(..._args) { }
@@ -719,10 +751,9 @@ function _instanceof(cls, params = {
719
751
  export { _instanceof as instanceof };
720
752
  // stringbool
721
753
  export const stringbool = (...args) => core._stringbool({
722
- Pipe: ZodMiniPipe,
754
+ Codec: ZodMiniCodec,
723
755
  Boolean: ZodMiniBoolean,
724
756
  String: ZodMiniString,
725
- Transform: ZodMiniTransform,
726
757
  }, ...args);
727
758
  export function json() {
728
759
  const jsonSchema = _lazy(() => {
@@ -730,3 +761,15 @@ export function json() {
730
761
  });
731
762
  return jsonSchema;
732
763
  }
764
+ export const ZodMiniFunction = /*@__PURE__*/ core.$constructor("ZodMiniFunction", (inst, def) => {
765
+ core.$ZodFunction.init(inst, def);
766
+ ZodMiniType.init(inst, def);
767
+ });
768
+ export function _function(params) {
769
+ return new ZodMiniFunction({
770
+ type: "function",
771
+ input: Array.isArray(params?.input) ? tuple(params?.input) : (params?.input ?? array(unknown())),
772
+ output: params?.output ?? unknown(),
773
+ });
774
+ }
775
+ export { _function as function };
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "module",
3
+ "main": "./index.cjs",
4
+ "module": "./index.js",
5
+ "types": "./index.d.cts"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "module",
3
+ "main": "./index.cjs",
4
+ "module": "./index.js",
5
+ "types": "./index.d.cts"
6
+ }
package/index.js CHANGED
@@ -565,7 +565,7 @@ var compilerOptions = {
565
565
  esModuleInterop: true,
566
566
  module: "es2022",
567
567
  target: "es2022",
568
- moduleResolution: "node10",
568
+ moduleResolution: "bundler",
569
569
  allowJs: true,
570
570
  lib: ["dom", "dom.iterable", "es2023"],
571
571
  jsx: "react",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fullstacked",
3
- "version": "0.12.1-1359",
3
+ "version": "0.12.1-1364",
4
4
  "scripts": {
5
5
  "build": "node build.js",
6
6
  "postbuild": "node build.js --binding",
@@ -1,7 +0,0 @@
1
- Once upon a time, in a land far away, there was a curious little fox named Felix. Felix had a peculiar habit of collecting shiny objects. One day, while exploring the forest, he stumbled upon a magical mirror that showed not his reflection, but his deepest desires.
2
-
3
- Felix looked into the mirror and saw himself as a mighty king, ruling over a grand kingdom. He wished for that life instantly. The mirror granted his wish, and suddenly, Felix was a king with a golden crown and a kingdom of his own.
4
-
5
- But as days passed, Felix realized that being a king was lonely. He missed the simplicity of his forest life. One day, he decided to return to the mirror and wished to be himself again. The mirror, surprised by his honesty, granted his wish and returned him to the forest.
6
-
7
- From that day on, Felix learned that true happiness comes from being himself, not from what he desires. And so, he continued his adventures, collecting shiny objects, but always remembering the lesson he learned from the magical mirror.
@@ -1,7 +0,0 @@
1
- Once upon a time, in a land far away, there was a curious little fox named Felix. Felix had a peculiar habit of collecting shiny objects. One day, while exploring the forest, he stumbled upon a magical mirror that showed not his reflection, but his deepest desires.
2
-
3
- Felix looked into the mirror and saw himself as a mighty king, ruling over a grand kingdom. He wished for that life instantly. The mirror granted his wish, and suddenly, Felix was a king with a golden crown and a kingdom of his own.
4
-
5
- But as days passed, Felix realized that being a king was lonely. He missed the simplicity of his forest life. One day, he decided to return to the mirror and wished to be himself again. The mirror, surprised by his honesty, granted his wish and returned him to the forest.
6
-
7
- From that day on, Felix learned that true happiness comes from being himself, not from what he desires. And so, he continued his adventures, collecting shiny objects, but always remembering the lesson he learned from the magical mirror.
@@ -1,176 +0,0 @@
1
- import { _array, _tuple, _unknown } from "./api.js";
2
- import type * as core from "./core.js";
3
- import { parse, parseAsync } from "./parse.js";
4
- import * as schemas from "./schemas.js";
5
- import { $ZodTuple } from "./schemas.js";
6
- import type * as util from "./util.js";
7
-
8
- //////////////////////////////////////////
9
- //////////////////////////////////////////
10
- ////////// //////////
11
- ////////// $ZodFunction //////////
12
- ////////// //////////
13
- //////////////////////////////////////////
14
- //////////////////////////////////////////
15
- export interface $ZodFunctionDef<
16
- In extends $ZodFunctionIn = $ZodFunctionIn,
17
- Out extends $ZodFunctionOut = $ZodFunctionOut,
18
- > {
19
- type: "function";
20
- input: In;
21
- output: Out;
22
- }
23
-
24
- export type $ZodFunctionArgs = schemas.$ZodType<unknown[], unknown[]>;
25
- export type $ZodFunctionIn = $ZodFunctionArgs;
26
- export type $ZodFunctionOut = schemas.$ZodType;
27
-
28
- export type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (
29
- ...args: $ZodFunctionIn extends Args ? never[] : core.output<Args>
30
- ) => core.input<Returns>;
31
-
32
- export type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (
33
- ...args: $ZodFunctionIn extends Args ? never[] : core.output<Args>
34
- ) => util.MaybeAsync<core.input<Returns>>;
35
-
36
- export type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (
37
- ...args: $ZodFunctionIn extends Args ? never[] : core.input<Args>
38
- ) => core.output<Returns>;
39
-
40
- export type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (
41
- ...args: $ZodFunctionIn extends Args ? never[] : core.input<Args>
42
- ) => util.MaybeAsync<core.output<Returns>>;
43
-
44
- export class $ZodFunction<
45
- Args extends $ZodFunctionIn = $ZodFunctionIn,
46
- Returns extends $ZodFunctionOut = $ZodFunctionOut,
47
- > {
48
- def: $ZodFunctionDef<Args, Returns>;
49
-
50
- /** @deprecated */
51
- _def!: $ZodFunctionDef<Args, Returns>;
52
- _input!: $InferInnerFunctionType<Args, Returns>;
53
- _output!: $InferOuterFunctionType<Args, Returns>;
54
-
55
- constructor(def: $ZodFunctionDef<Args, Returns>) {
56
- this._def = def;
57
- this.def = def;
58
- }
59
-
60
- implement<F extends $InferInnerFunctionType<Args, Returns>>(
61
- func: F
62
- ): // allow for return type inference
63
- (
64
- ...args: Parameters<this["_output"]>
65
- ) => ReturnType<F> extends ReturnType<this["_output"]> ? ReturnType<F> : ReturnType<this["_output"]> {
66
- if (typeof func !== "function") {
67
- throw new Error("implement() must be called with a function");
68
- }
69
- const impl = ((...args: any[]) => {
70
- const parsedArgs = this._def.input ? parse(this._def.input, args, undefined, { callee: impl }) : args;
71
- if (!Array.isArray(parsedArgs)) {
72
- throw new Error("Invalid arguments schema: not an array or tuple schema.");
73
- }
74
- const output = func(...(parsedArgs as any));
75
- return this._def.output ? parse(this._def.output, output, undefined, { callee: impl }) : output;
76
- }) as any;
77
- return impl;
78
- }
79
-
80
- implementAsync<F extends $InferInnerFunctionTypeAsync<Args, Returns>>(
81
- func: F
82
- ): F extends $InferOuterFunctionTypeAsync<Args, Returns> ? F : $InferOuterFunctionTypeAsync<Args, Returns> {
83
- if (typeof func !== "function") {
84
- throw new Error("implement() must be called with a function");
85
- }
86
-
87
- const impl = (async (...args: any[]) => {
88
- const parsedArgs = this._def.input ? await parseAsync(this._def.input, args, undefined, { callee: impl }) : args;
89
- if (!Array.isArray(parsedArgs)) {
90
- throw new Error("Invalid arguments schema: not an array or tuple schema.");
91
- }
92
- const output = await func(...(parsedArgs as any));
93
- return this._def.output ? parseAsync(this._def.output, output, undefined, { callee: impl }) : output;
94
- }) as any;
95
- return impl;
96
- }
97
-
98
- input<const Items extends util.TupleItems, const Rest extends $ZodFunctionOut = $ZodFunctionOut>(
99
- args: Items,
100
- rest?: Rest
101
- ): $ZodFunction<schemas.$ZodTuple<Items, Rest>, Returns>;
102
- input<NewArgs extends $ZodFunctionIn>(args: NewArgs): $ZodFunction<NewArgs, Returns>;
103
- input(...args: any[]): $ZodFunction<any, Returns> {
104
- const F: any = this.constructor;
105
- if (Array.isArray(args[0])) {
106
- return new F({
107
- type: "function",
108
- input: new $ZodTuple({
109
- type: "tuple",
110
- items: args[0],
111
- rest: args[1],
112
- }),
113
- output: this._def.output,
114
- });
115
- }
116
-
117
- return new F({
118
- type: "function",
119
- input: args[0],
120
- output: this._def.output,
121
- });
122
- }
123
-
124
- output<NewReturns extends schemas.$ZodType>(output: NewReturns): $ZodFunction<Args, NewReturns> {
125
- const F: any = this.constructor;
126
- return new F({
127
- type: "function",
128
- input: this._def.input,
129
- output,
130
- });
131
- }
132
- }
133
-
134
- export interface $ZodFunctionParams<I extends $ZodFunctionIn, O extends schemas.$ZodType> {
135
- input?: I;
136
- output?: O;
137
- }
138
-
139
- function _function(): $ZodFunction;
140
- function _function<const In extends Array<schemas.$ZodType> = Array<schemas.$ZodType>>(params: {
141
- input: In;
142
- }): $ZodFunction<$ZodTuple<In, null>, $ZodFunctionOut>;
143
- function _function<
144
- const In extends Array<schemas.$ZodType> = Array<schemas.$ZodType>,
145
- const Out extends $ZodFunctionOut = $ZodFunctionOut,
146
- >(params: {
147
- input: In;
148
- output: Out;
149
- }): $ZodFunction<$ZodTuple<In, null>, Out>;
150
- function _function<const In extends $ZodFunctionIn = $ZodFunctionIn>(params: {
151
- input: In;
152
- }): $ZodFunction<In, $ZodFunctionOut>;
153
- function _function<const Out extends $ZodFunctionOut = $ZodFunctionOut>(params: {
154
- output: Out;
155
- }): $ZodFunction<$ZodFunctionIn, Out>;
156
- function _function<
157
- In extends $ZodFunctionIn = $ZodFunctionIn,
158
- Out extends schemas.$ZodType = schemas.$ZodType,
159
- >(params?: {
160
- input: In;
161
- output: Out;
162
- }): $ZodFunction<In, Out>;
163
- function _function(params?: {
164
- output?: schemas.$ZodType;
165
- input?: $ZodFunctionArgs | Array<schemas.$ZodType>;
166
- }): any {
167
- return new $ZodFunction({
168
- type: "function",
169
- input: Array.isArray(params?.input)
170
- ? _tuple(schemas.$ZodTuple, params?.input as any)
171
- : (params?.input ?? _array(schemas.$ZodArray, _unknown(schemas.$ZodUnknown))),
172
- output: params?.output ?? _unknown(schemas.$ZodUnknown),
173
- });
174
- }
175
-
176
- export { _function as function };
@@ -1,102 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.$ZodFunction = void 0;
27
- exports.function = _function;
28
- const api_js_1 = require("./api.cjs");
29
- const parse_js_1 = require("./parse.cjs");
30
- const schemas = __importStar(require("./schemas.cjs"));
31
- const schemas_js_1 = require("./schemas.cjs");
32
- class $ZodFunction {
33
- constructor(def) {
34
- this._def = def;
35
- this.def = def;
36
- }
37
- implement(func) {
38
- if (typeof func !== "function") {
39
- throw new Error("implement() must be called with a function");
40
- }
41
- const impl = ((...args) => {
42
- const parsedArgs = this._def.input ? (0, parse_js_1.parse)(this._def.input, args, undefined, { callee: impl }) : args;
43
- if (!Array.isArray(parsedArgs)) {
44
- throw new Error("Invalid arguments schema: not an array or tuple schema.");
45
- }
46
- const output = func(...parsedArgs);
47
- return this._def.output ? (0, parse_js_1.parse)(this._def.output, output, undefined, { callee: impl }) : output;
48
- });
49
- return impl;
50
- }
51
- implementAsync(func) {
52
- if (typeof func !== "function") {
53
- throw new Error("implement() must be called with a function");
54
- }
55
- const impl = (async (...args) => {
56
- const parsedArgs = this._def.input ? await (0, parse_js_1.parseAsync)(this._def.input, args, undefined, { callee: impl }) : args;
57
- if (!Array.isArray(parsedArgs)) {
58
- throw new Error("Invalid arguments schema: not an array or tuple schema.");
59
- }
60
- const output = await func(...parsedArgs);
61
- return this._def.output ? (0, parse_js_1.parseAsync)(this._def.output, output, undefined, { callee: impl }) : output;
62
- });
63
- return impl;
64
- }
65
- input(...args) {
66
- const F = this.constructor;
67
- if (Array.isArray(args[0])) {
68
- return new F({
69
- type: "function",
70
- input: new schemas_js_1.$ZodTuple({
71
- type: "tuple",
72
- items: args[0],
73
- rest: args[1],
74
- }),
75
- output: this._def.output,
76
- });
77
- }
78
- return new F({
79
- type: "function",
80
- input: args[0],
81
- output: this._def.output,
82
- });
83
- }
84
- output(output) {
85
- const F = this.constructor;
86
- return new F({
87
- type: "function",
88
- input: this._def.input,
89
- output,
90
- });
91
- }
92
- }
93
- exports.$ZodFunction = $ZodFunction;
94
- function _function(params) {
95
- return new $ZodFunction({
96
- type: "function",
97
- input: Array.isArray(params?.input)
98
- ? (0, api_js_1._tuple)(schemas.$ZodTuple, params?.input)
99
- : (params?.input ?? (0, api_js_1._array)(schemas.$ZodArray, (0, api_js_1._unknown)(schemas.$ZodUnknown))),
100
- output: params?.output ?? (0, api_js_1._unknown)(schemas.$ZodUnknown),
101
- });
102
- }