@es-joy/jsoe 0.24.3 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (524) hide show
  1. package/.claude/settings.local.json +9 -0
  2. package/.ncurc.cjs +2 -2
  3. package/CHANGES.md +47 -0
  4. package/README.md +23 -13
  5. package/badges/coverage-badge.svg +1 -1
  6. package/dist/eslint.config.d.ts +3 -0
  7. package/dist/eslint.config.d.ts.map +1 -0
  8. package/dist/formatAndTypeChoices.d.ts +28 -30
  9. package/dist/formatAndTypeChoices.d.ts.map +1 -1
  10. package/dist/formats/indexedDBKey.d.ts.map +1 -1
  11. package/dist/formats/schema.d.ts +46 -3
  12. package/dist/formats/schema.d.ts.map +1 -1
  13. package/dist/formats/structuredCloning.d.ts +3 -0
  14. package/dist/formats/structuredCloning.d.ts.map +1 -1
  15. package/dist/formats.d.ts +24 -6
  16. package/dist/formats.d.ts.map +1 -1
  17. package/dist/fundamentalTypes/BooleanObjectType.d.ts.map +1 -1
  18. package/dist/fundamentalTypes/NumberObjectType.d.ts.map +1 -1
  19. package/dist/fundamentalTypes/StringObjectType.d.ts.map +1 -1
  20. package/dist/fundamentalTypes/arrayReferenceType.d.ts.map +1 -1
  21. package/dist/fundamentalTypes/arrayType.d.ts +7 -0
  22. package/dist/fundamentalTypes/arrayType.d.ts.map +1 -1
  23. package/dist/fundamentalTypes/bigintObjectType.d.ts.map +1 -1
  24. package/dist/fundamentalTypes/bigintType.d.ts +10 -0
  25. package/dist/fundamentalTypes/bigintType.d.ts.map +1 -1
  26. package/dist/fundamentalTypes/blobType.d.ts.map +1 -1
  27. package/dist/fundamentalTypes/booleanType.d.ts.map +1 -1
  28. package/dist/fundamentalTypes/catchType.d.ts +2 -2
  29. package/dist/fundamentalTypes/catchType.d.ts.map +1 -1
  30. package/dist/fundamentalTypes/dateType.d.ts.map +1 -1
  31. package/dist/fundamentalTypes/domexceptionType.d.ts.map +1 -1
  32. package/dist/fundamentalTypes/enumType.d.ts +2 -2
  33. package/dist/fundamentalTypes/enumType.d.ts.map +1 -1
  34. package/dist/fundamentalTypes/errorType.d.ts.map +1 -1
  35. package/dist/fundamentalTypes/fileType.d.ts +6 -0
  36. package/dist/fundamentalTypes/fileType.d.ts.map +1 -1
  37. package/dist/fundamentalTypes/functionType.d.ts.map +1 -1
  38. package/dist/fundamentalTypes/literalType.d.ts +3 -2
  39. package/dist/fundamentalTypes/literalType.d.ts.map +1 -1
  40. package/dist/fundamentalTypes/looseRecordType.d.ts +6 -0
  41. package/dist/fundamentalTypes/looseRecordType.d.ts.map +1 -0
  42. package/dist/fundamentalTypes/nanType.d.ts.map +1 -1
  43. package/dist/fundamentalTypes/neverType.d.ts +2 -2
  44. package/dist/fundamentalTypes/neverType.d.ts.map +1 -1
  45. package/dist/fundamentalTypes/noneditableType.d.ts.map +1 -1
  46. package/dist/fundamentalTypes/nullType.d.ts.map +1 -1
  47. package/dist/fundamentalTypes/numberType.d.ts.map +1 -1
  48. package/dist/fundamentalTypes/promiseType.d.ts.map +1 -1
  49. package/dist/fundamentalTypes/regexpType.d.ts.map +1 -1
  50. package/dist/fundamentalTypes/stringType.d.ts.map +1 -1
  51. package/dist/fundamentalTypes/symbolType.d.ts.map +1 -1
  52. package/dist/fundamentalTypes/undefinedType.d.ts.map +1 -1
  53. package/dist/fundamentalTypes/voidType.d.ts +2 -2
  54. package/dist/fundamentalTypes/voidType.d.ts.map +1 -1
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +6 -1
  57. package/dist/index.js.map +1 -1
  58. package/dist/rollup.config.d.ts +30 -0
  59. package/dist/rollup.config.d.ts.map +1 -0
  60. package/dist/server.d.ts +2 -0
  61. package/dist/server.d.ts.map +1 -0
  62. package/dist/src/formatAndTypeChoices.d.ts +108 -0
  63. package/dist/src/formatAndTypeChoices.d.ts.map +1 -0
  64. package/dist/src/formats/arbitraryJS.d.ts +4 -0
  65. package/dist/src/formats/arbitraryJS.d.ts.map +1 -0
  66. package/dist/src/formats/indexedDBKey.d.ts +4 -0
  67. package/dist/src/formats/indexedDBKey.d.ts.map +1 -0
  68. package/dist/src/formats/json.d.ts +4 -0
  69. package/dist/src/formats/json.d.ts.map +1 -0
  70. package/dist/src/formats/schema.d.ts +17 -0
  71. package/dist/src/formats/schema.d.ts.map +1 -0
  72. package/dist/src/formats/structuredCloning.d.ts +19 -0
  73. package/dist/src/formats/structuredCloning.d.ts.map +1 -0
  74. package/dist/src/formats.d.ts +135 -0
  75. package/dist/src/formats.d.ts.map +1 -0
  76. package/dist/src/fundamentalTypes/BooleanObjectType.d.ts +8 -0
  77. package/dist/src/fundamentalTypes/BooleanObjectType.d.ts.map +1 -0
  78. package/dist/src/fundamentalTypes/NumberObjectType.d.ts +6 -0
  79. package/dist/src/fundamentalTypes/NumberObjectType.d.ts.map +1 -0
  80. package/dist/src/fundamentalTypes/StringObjectType.d.ts +6 -0
  81. package/dist/src/fundamentalTypes/StringObjectType.d.ts.map +1 -0
  82. package/dist/src/fundamentalTypes/arrayReferenceType.d.ts +8 -0
  83. package/dist/src/fundamentalTypes/arrayReferenceType.d.ts.map +1 -0
  84. package/dist/src/fundamentalTypes/arrayType.d.ts +29 -0
  85. package/dist/src/fundamentalTypes/arrayType.d.ts.map +1 -0
  86. package/dist/src/fundamentalTypes/bigintObjectType.d.ts +6 -0
  87. package/dist/src/fundamentalTypes/bigintObjectType.d.ts.map +1 -0
  88. package/dist/src/fundamentalTypes/bigintType.d.ts +6 -0
  89. package/dist/src/fundamentalTypes/bigintType.d.ts.map +1 -0
  90. package/dist/src/fundamentalTypes/blobType.d.ts +11 -0
  91. package/dist/src/fundamentalTypes/blobType.d.ts.map +1 -0
  92. package/dist/src/fundamentalTypes/booleanType.d.ts +8 -0
  93. package/dist/src/fundamentalTypes/booleanType.d.ts.map +1 -0
  94. package/dist/src/fundamentalTypes/catchType.d.ts +6 -0
  95. package/dist/src/fundamentalTypes/catchType.d.ts.map +1 -0
  96. package/dist/src/fundamentalTypes/dateType.d.ts +26 -0
  97. package/dist/src/fundamentalTypes/dateType.d.ts.map +1 -0
  98. package/dist/src/fundamentalTypes/domexceptionType.d.ts +6 -0
  99. package/dist/src/fundamentalTypes/domexceptionType.d.ts.map +1 -0
  100. package/dist/src/fundamentalTypes/enumType.d.ts +6 -0
  101. package/dist/src/fundamentalTypes/enumType.d.ts.map +1 -0
  102. package/dist/src/fundamentalTypes/errorType.d.ts +6 -0
  103. package/dist/src/fundamentalTypes/errorType.d.ts.map +1 -0
  104. package/dist/src/fundamentalTypes/fileType.d.ts +13 -0
  105. package/dist/src/fundamentalTypes/fileType.d.ts.map +1 -0
  106. package/dist/src/fundamentalTypes/filelistType.d.ts +6 -0
  107. package/dist/src/fundamentalTypes/filelistType.d.ts.map +1 -0
  108. package/dist/src/fundamentalTypes/functionType.d.ts +7 -0
  109. package/dist/src/fundamentalTypes/functionType.d.ts.map +1 -0
  110. package/dist/src/fundamentalTypes/literalType.d.ts +6 -0
  111. package/dist/src/fundamentalTypes/literalType.d.ts.map +1 -0
  112. package/dist/src/fundamentalTypes/mapType.d.ts +6 -0
  113. package/dist/src/fundamentalTypes/mapType.d.ts.map +1 -0
  114. package/dist/src/fundamentalTypes/nanType.d.ts +6 -0
  115. package/dist/src/fundamentalTypes/nanType.d.ts.map +1 -0
  116. package/dist/src/fundamentalTypes/neverType.d.ts +6 -0
  117. package/dist/src/fundamentalTypes/neverType.d.ts.map +1 -0
  118. package/dist/src/fundamentalTypes/noneditableType.d.ts +6 -0
  119. package/dist/src/fundamentalTypes/noneditableType.d.ts.map +1 -0
  120. package/dist/src/fundamentalTypes/nullType.d.ts +6 -0
  121. package/dist/src/fundamentalTypes/nullType.d.ts.map +1 -0
  122. package/dist/src/fundamentalTypes/numberType.d.ts +6 -0
  123. package/dist/src/fundamentalTypes/numberType.d.ts.map +1 -0
  124. package/dist/src/fundamentalTypes/objectReferenceType.d.ts +8 -0
  125. package/dist/src/fundamentalTypes/objectReferenceType.d.ts.map +1 -0
  126. package/dist/src/fundamentalTypes/objectType.d.ts +6 -0
  127. package/dist/src/fundamentalTypes/objectType.d.ts.map +1 -0
  128. package/dist/src/fundamentalTypes/promiseType.d.ts +6 -0
  129. package/dist/src/fundamentalTypes/promiseType.d.ts.map +1 -0
  130. package/dist/src/fundamentalTypes/recordType.d.ts +6 -0
  131. package/dist/src/fundamentalTypes/recordType.d.ts.map +1 -0
  132. package/dist/src/fundamentalTypes/regexpType.d.ts +8 -0
  133. package/dist/src/fundamentalTypes/regexpType.d.ts.map +1 -0
  134. package/dist/src/fundamentalTypes/setType.d.ts +6 -0
  135. package/dist/src/fundamentalTypes/setType.d.ts.map +1 -0
  136. package/dist/src/fundamentalTypes/sparseUndefinedType.d.ts +6 -0
  137. package/dist/src/fundamentalTypes/sparseUndefinedType.d.ts.map +1 -0
  138. package/dist/src/fundamentalTypes/stringType.d.ts +6 -0
  139. package/dist/src/fundamentalTypes/stringType.d.ts.map +1 -0
  140. package/dist/src/fundamentalTypes/symbolType.d.ts +8 -0
  141. package/dist/src/fundamentalTypes/symbolType.d.ts.map +1 -0
  142. package/dist/src/fundamentalTypes/tupleType.d.ts +6 -0
  143. package/dist/src/fundamentalTypes/tupleType.d.ts.map +1 -0
  144. package/dist/src/fundamentalTypes/undefinedType.d.ts +6 -0
  145. package/dist/src/fundamentalTypes/undefinedType.d.ts.map +1 -0
  146. package/dist/src/fundamentalTypes/voidType.d.ts +6 -0
  147. package/dist/src/fundamentalTypes/voidType.d.ts.map +1 -0
  148. package/dist/src/index.d.ts +12 -0
  149. package/dist/src/index.d.ts.map +1 -0
  150. package/dist/src/subTypes/blobHTMLType.d.ts +20 -0
  151. package/dist/src/subTypes/blobHTMLType.d.ts.map +1 -0
  152. package/dist/src/subTypes/falseType.d.ts +8 -0
  153. package/dist/src/subTypes/falseType.d.ts.map +1 -0
  154. package/dist/src/subTypes/trueType.d.ts +8 -0
  155. package/dist/src/subTypes/trueType.d.ts.map +1 -0
  156. package/dist/src/superTypes/SpecialNumberType.d.ts +6 -0
  157. package/dist/src/superTypes/SpecialNumberType.d.ts.map +1 -0
  158. package/dist/src/superTypes/SpecialRealNumberType.d.ts +6 -0
  159. package/dist/src/superTypes/SpecialRealNumberType.d.ts.map +1 -0
  160. package/dist/src/superTypes/buffersourceType.d.ts +8 -0
  161. package/dist/src/superTypes/buffersourceType.d.ts.map +1 -0
  162. package/dist/src/superTypes/dommatrixType.d.ts +6 -0
  163. package/dist/src/superTypes/dommatrixType.d.ts.map +1 -0
  164. package/dist/src/superTypes/dompointType.d.ts +6 -0
  165. package/dist/src/superTypes/dompointType.d.ts.map +1 -0
  166. package/dist/src/superTypes/domrectType.d.ts +6 -0
  167. package/dist/src/superTypes/domrectType.d.ts.map +1 -0
  168. package/dist/src/superTypes/errorsSpecialType.d.ts +8 -0
  169. package/dist/src/superTypes/errorsSpecialType.d.ts.map +1 -0
  170. package/dist/src/typeChoices.d.ts +140 -0
  171. package/dist/src/typeChoices.d.ts.map +1 -0
  172. package/dist/src/types.d.ts +758 -0
  173. package/dist/src/types.d.ts.map +1 -0
  174. package/dist/src/utils/FileList.d.ts +26 -0
  175. package/dist/src/utils/FileList.d.ts.map +1 -0
  176. package/dist/src/utils/dialogs.d.ts +111 -0
  177. package/dist/src/utils/dialogs.d.ts.map +1 -0
  178. package/dist/src/utils/jsonPointer.d.ts +46 -0
  179. package/dist/src/utils/jsonPointer.d.ts.map +1 -0
  180. package/dist/src/utils/media.d.ts +18 -0
  181. package/dist/src/utils/media.d.ts.map +1 -0
  182. package/dist/src/utils/objects.d.ts +16 -0
  183. package/dist/src/utils/objects.d.ts.map +1 -0
  184. package/dist/src/utils/templateUtils.d.ts +59 -0
  185. package/dist/src/utils/templateUtils.d.ts.map +1 -0
  186. package/dist/src/utils/types.d.ts +2 -0
  187. package/dist/src/utils/types.d.ts.map +1 -0
  188. package/dist/src/vendor-imports.d.ts +4 -0
  189. package/dist/src/vendor-imports.d.ts.map +1 -0
  190. package/dist/subTypes/blobHTMLType.d.ts.map +1 -1
  191. package/dist/superTypes/SpecialRealNumberType.d.ts.map +1 -1
  192. package/dist/superTypes/buffersourceType.d.ts.map +1 -1
  193. package/dist/superTypes/dommatrixType.d.ts.map +1 -1
  194. package/dist/superTypes/dompointType.d.ts.map +1 -1
  195. package/dist/superTypes/domrectType.d.ts.map +1 -1
  196. package/dist/superTypes/errorsSpecialType.d.ts.map +1 -1
  197. package/dist/typeChoices.d.ts +21 -87
  198. package/dist/typeChoices.d.ts.map +1 -1
  199. package/dist/types.d.ts +90 -64
  200. package/dist/types.d.ts.map +1 -1
  201. package/dist/utils/FileList.d.ts +4 -3
  202. package/dist/utils/FileList.d.ts.map +1 -1
  203. package/dist/utils/dialogs.d.ts +4 -4
  204. package/dist/utils/dialogs.d.ts.map +1 -1
  205. package/dist/utils/media.d.ts.map +1 -1
  206. package/dist/utils/schemaMeta.d.ts +92 -0
  207. package/dist/utils/schemaMeta.d.ts.map +1 -0
  208. package/dist/utils/templateUtils.d.ts +3 -3
  209. package/dist/utils/templateUtils.d.ts.map +1 -1
  210. package/dist/utils/timing.d.ts +2 -0
  211. package/dist/utils/timing.d.ts.map +1 -0
  212. package/dist/utils/types.d.ts +1 -0
  213. package/dist/utils/types.d.ts.map +1 -1
  214. package/dist/vendor-imports.d.ts +3 -1
  215. package/docs/proposals/schema-meta.md +233 -0
  216. package/eslint.config.js +51 -4
  217. package/licenseInfo.json +1 -1
  218. package/package.json +52 -42
  219. package/pnpm-workspace.yaml +57 -0
  220. package/rollup.config.js +20 -18
  221. package/server.js +3 -3
  222. package/src/deepEqual.js.map +1 -1
  223. package/src/formatAndTypeChoices.js +62 -58
  224. package/src/formats/indexedDBKey.js +3 -4
  225. package/src/formats/schema.js +824 -475
  226. package/src/formats/structuredCloning.js +189 -79
  227. package/src/formats.js +17 -5
  228. package/src/fundamentalTypes/BooleanObjectType.js +4 -5
  229. package/src/fundamentalTypes/NumberObjectType.js +4 -4
  230. package/src/fundamentalTypes/StringObjectType.js +3 -4
  231. package/src/fundamentalTypes/arrayReferenceType.js +0 -2
  232. package/src/fundamentalTypes/arrayType.js +624 -389
  233. package/src/fundamentalTypes/bigintObjectType.js +3 -2
  234. package/src/fundamentalTypes/bigintType.js +79 -17
  235. package/src/fundamentalTypes/blobType.js +35 -35
  236. package/src/fundamentalTypes/booleanType.js +16 -8
  237. package/src/fundamentalTypes/dateType.js +6 -8
  238. package/src/fundamentalTypes/domexceptionType.js +5 -4
  239. package/src/fundamentalTypes/errorType.js +39 -32
  240. package/src/fundamentalTypes/fileType.js +238 -52
  241. package/src/fundamentalTypes/functionType.js +61 -41
  242. package/src/fundamentalTypes/nanType.js +5 -4
  243. package/src/fundamentalTypes/noneditableType.js +4 -3
  244. package/src/fundamentalTypes/nullType.js +3 -2
  245. package/src/fundamentalTypes/numberType.js +72 -20
  246. package/src/fundamentalTypes/promiseType.js +16 -40
  247. package/src/fundamentalTypes/regexpType.js +7 -13
  248. package/src/fundamentalTypes/stringType.js +176 -110
  249. package/src/fundamentalTypes/symbolType.js +3 -2
  250. package/src/fundamentalTypes/undefinedType.js +3 -2
  251. package/src/index.js +6 -5
  252. package/src/jsoe.css +107 -8
  253. package/src/subTypes/blobHTMLType.js +23 -10
  254. package/src/superTypes/SpecialNumberType.js +6 -6
  255. package/src/superTypes/SpecialRealNumberType.js +10 -9
  256. package/src/superTypes/buffersourceType.js +86 -75
  257. package/src/superTypes/dommatrixType.js +6 -5
  258. package/src/superTypes/dompointType.js +6 -5
  259. package/src/superTypes/domrectType.js +6 -5
  260. package/src/superTypes/errorsSpecialType.js +54 -35
  261. package/src/typeChoices.js +373 -53
  262. package/src/types.js +157 -97
  263. package/src/utils/FileList.js +3 -3
  264. package/src/utils/dialogs.js +5 -7
  265. package/src/utils/jsonPointer.js +1 -1
  266. package/src/utils/media.js +1 -0
  267. package/src/utils/schemaMeta.js +257 -0
  268. package/src/utils/templateUtils.js +3 -3
  269. package/src/utils/timing.js +12 -0
  270. package/src/utils/types.js +19 -0
  271. package/src/vendor-imports.js +10 -2
  272. package/tsconfig.json +2 -0
  273. package/vendor/acorn/dist/acorn.d.mts +46 -5
  274. package/vendor/acorn/dist/acorn.d.ts +46 -5
  275. package/vendor/acorn/dist/acorn.js +394 -117
  276. package/vendor/acorn/dist/acorn.mjs +394 -117
  277. package/vendor/acorn/dist/bin.js +1 -1
  278. package/vendor/jamilih/dist/{jml-es.js → jml.mjs} +590 -312
  279. package/vendor/jamilih/package.json +1 -1
  280. package/vendor/mime/dist/types/other.js +719 -0
  281. package/vendor/mime/dist/types/standard.js +366 -0
  282. package/vendor/typeson-registry/dist/index.js +519 -99
  283. package/vendor/zod/classic/checks.d.ts +1 -0
  284. package/vendor/zod/classic/checks.js +1 -0
  285. package/vendor/zod/classic/coerce.d.ts +17 -0
  286. package/vendor/zod/classic/coerce.js +17 -0
  287. package/vendor/zod/classic/compat.d.ts +48 -0
  288. package/vendor/zod/classic/compat.js +31 -0
  289. package/vendor/zod/classic/deep-partial.d.ts +14 -0
  290. package/vendor/zod/classic/deep-partial.js +13 -0
  291. package/vendor/zod/classic/errors.d.ts +29 -0
  292. package/vendor/zod/classic/errors.js +57 -0
  293. package/vendor/zod/classic/external.d.ts +19 -0
  294. package/vendor/zod/classic/external.js +17 -0
  295. package/vendor/zod/classic/from-json-schema.d.ts +12 -0
  296. package/vendor/zod/classic/from-json-schema.js +660 -0
  297. package/vendor/zod/classic/in-out.d.ts +8 -0
  298. package/vendor/zod/classic/in-out.js +36 -0
  299. package/vendor/zod/classic/index.d.ts +3 -0
  300. package/vendor/zod/classic/index.js +4 -0
  301. package/vendor/zod/classic/iso.d.ts +7 -0
  302. package/vendor/zod/classic/iso.js +15 -0
  303. package/vendor/zod/classic/package.json +7 -0
  304. package/vendor/zod/classic/parse.d.ts +44 -0
  305. package/vendor/zod/classic/parse.js +16 -0
  306. package/vendor/zod/classic/schemas.d.ts +802 -0
  307. package/vendor/zod/classic/schemas.js +1491 -0
  308. package/vendor/zod/core/api.d.ts +329 -0
  309. package/vendor/zod/core/api.js +1104 -0
  310. package/vendor/zod/core/checks.d.ts +278 -0
  311. package/vendor/zod/core/checks.js +581 -0
  312. package/vendor/zod/core/compile.d.ts +51 -0
  313. package/vendor/zod/core/compile.js +1783 -0
  314. package/vendor/zod/core/core.d.ts +82 -0
  315. package/vendor/zod/core/core.js +141 -0
  316. package/vendor/zod/core/doc.d.ts +16 -0
  317. package/vendor/zod/core/doc.js +33 -0
  318. package/vendor/zod/core/errors.d.ts +225 -0
  319. package/vendor/zod/core/errors.js +270 -0
  320. package/vendor/zod/core/index.d.ts +19 -0
  321. package/vendor/zod/core/index.js +19 -0
  322. package/vendor/zod/core/json-schema-generator.d.ts +65 -0
  323. package/vendor/zod/core/json-schema-generator.js +99 -0
  324. package/vendor/zod/core/json-schema-processors.d.ts +49 -0
  325. package/vendor/zod/core/json-schema-processors.js +747 -0
  326. package/vendor/zod/core/json-schema.d.ts +89 -0
  327. package/vendor/zod/core/memoizer.d.ts +15 -0
  328. package/vendor/zod/core/memoizer.js +265 -0
  329. package/vendor/zod/core/package.json +7 -0
  330. package/vendor/zod/core/parse.d.ts +52 -0
  331. package/vendor/zod/core/parse.js +154 -0
  332. package/vendor/zod/core/regexes.d.ts +87 -0
  333. package/vendor/zod/core/regexes.js +150 -0
  334. package/vendor/zod/core/registries.d.ts +35 -0
  335. package/vendor/zod/core/registries.js +51 -0
  336. package/vendor/zod/core/schemas.d.ts +1253 -0
  337. package/vendor/zod/core/schemas.js +2440 -0
  338. package/vendor/zod/core/standard-schema.d.ts +126 -0
  339. package/vendor/zod/core/to-json-schema.d.ts +153 -0
  340. package/vendor/zod/core/to-json-schema.js +650 -0
  341. package/vendor/zod/core/util.d.ts +257 -0
  342. package/vendor/zod/core/util.js +846 -0
  343. package/vendor/zod/core/versions.d.ts +5 -0
  344. package/vendor/zod/core/versions.js +5 -0
  345. package/vendor/zod/core/visit.d.ts +30 -0
  346. package/vendor/zod/core/visit.js +169 -0
  347. package/vendor/zod/index.d.ts +3 -0
  348. package/vendor/zod/index.js +4 -0
  349. package/vendor/zod/locales/ar.d.ts +4 -0
  350. package/vendor/zod/locales/ar.js +109 -0
  351. package/vendor/zod/locales/az.d.ts +4 -0
  352. package/vendor/zod/locales/az.js +108 -0
  353. package/vendor/zod/locales/be.d.ts +4 -0
  354. package/vendor/zod/locales/be.js +166 -0
  355. package/vendor/zod/locales/bg.d.ts +4 -0
  356. package/vendor/zod/locales/bg.js +123 -0
  357. package/vendor/zod/locales/bn.d.ts +4 -0
  358. package/vendor/zod/locales/bn.js +111 -0
  359. package/vendor/zod/locales/ca.d.ts +4 -0
  360. package/vendor/zod/locales/ca.js +110 -0
  361. package/vendor/zod/locales/ckb.d.ts +4 -0
  362. package/vendor/zod/locales/ckb.js +131 -0
  363. package/vendor/zod/locales/cs.d.ts +4 -0
  364. package/vendor/zod/locales/cs.js +114 -0
  365. package/vendor/zod/locales/da.d.ts +4 -0
  366. package/vendor/zod/locales/da.js +118 -0
  367. package/vendor/zod/locales/de.d.ts +4 -0
  368. package/vendor/zod/locales/de.js +111 -0
  369. package/vendor/zod/locales/el.d.ts +4 -0
  370. package/vendor/zod/locales/el.js +110 -0
  371. package/vendor/zod/locales/en.d.ts +4 -0
  372. package/vendor/zod/locales/en.js +123 -0
  373. package/vendor/zod/locales/eo.d.ts +4 -0
  374. package/vendor/zod/locales/eo.js +112 -0
  375. package/vendor/zod/locales/es.d.ts +4 -0
  376. package/vendor/zod/locales/es.js +134 -0
  377. package/vendor/zod/locales/fa.d.ts +4 -0
  378. package/vendor/zod/locales/fa.js +117 -0
  379. package/vendor/zod/locales/fi.d.ts +4 -0
  380. package/vendor/zod/locales/fi.js +115 -0
  381. package/vendor/zod/locales/fr-CA.d.ts +4 -0
  382. package/vendor/zod/locales/fr-CA.js +110 -0
  383. package/vendor/zod/locales/fr.d.ts +4 -0
  384. package/vendor/zod/locales/fr.js +127 -0
  385. package/vendor/zod/locales/gu.d.ts +4 -0
  386. package/vendor/zod/locales/gu.js +111 -0
  387. package/vendor/zod/locales/he.d.ts +4 -0
  388. package/vendor/zod/locales/he.js +219 -0
  389. package/vendor/zod/locales/hi.d.ts +4 -0
  390. package/vendor/zod/locales/hi.js +109 -0
  391. package/vendor/zod/locales/hr.d.ts +4 -0
  392. package/vendor/zod/locales/hr.js +124 -0
  393. package/vendor/zod/locales/hu.d.ts +4 -0
  394. package/vendor/zod/locales/hu.js +111 -0
  395. package/vendor/zod/locales/hy.d.ts +4 -0
  396. package/vendor/zod/locales/hy.js +156 -0
  397. package/vendor/zod/locales/id.d.ts +4 -0
  398. package/vendor/zod/locales/id.js +109 -0
  399. package/vendor/zod/locales/index.d.ts +62 -0
  400. package/vendor/zod/locales/index.js +62 -0
  401. package/vendor/zod/locales/is.d.ts +4 -0
  402. package/vendor/zod/locales/is.js +112 -0
  403. package/vendor/zod/locales/it.d.ts +4 -0
  404. package/vendor/zod/locales/it.js +111 -0
  405. package/vendor/zod/locales/ja.d.ts +4 -0
  406. package/vendor/zod/locales/ja.js +110 -0
  407. package/vendor/zod/locales/ka.d.ts +4 -0
  408. package/vendor/zod/locales/ka.js +115 -0
  409. package/vendor/zod/locales/kh.d.ts +5 -0
  410. package/vendor/zod/locales/kh.js +5 -0
  411. package/vendor/zod/locales/km.d.ts +4 -0
  412. package/vendor/zod/locales/km.js +113 -0
  413. package/vendor/zod/locales/kn.d.ts +4 -0
  414. package/vendor/zod/locales/kn.js +114 -0
  415. package/vendor/zod/locales/ko.d.ts +4 -0
  416. package/vendor/zod/locales/ko.js +114 -0
  417. package/vendor/zod/locales/lt.d.ts +4 -0
  418. package/vendor/zod/locales/lt.js +205 -0
  419. package/vendor/zod/locales/mk.d.ts +4 -0
  420. package/vendor/zod/locales/mk.js +112 -0
  421. package/vendor/zod/locales/ms.d.ts +4 -0
  422. package/vendor/zod/locales/ms.js +110 -0
  423. package/vendor/zod/locales/ne.d.ts +4 -0
  424. package/vendor/zod/locales/ne.js +109 -0
  425. package/vendor/zod/locales/nl.d.ts +4 -0
  426. package/vendor/zod/locales/nl.js +113 -0
  427. package/vendor/zod/locales/nn.d.ts +4 -0
  428. package/vendor/zod/locales/nn.js +111 -0
  429. package/vendor/zod/locales/no.d.ts +4 -0
  430. package/vendor/zod/locales/no.js +111 -0
  431. package/vendor/zod/locales/ota.d.ts +4 -0
  432. package/vendor/zod/locales/ota.js +112 -0
  433. package/vendor/zod/locales/package.json +7 -0
  434. package/vendor/zod/locales/pl.d.ts +4 -0
  435. package/vendor/zod/locales/pl.js +112 -0
  436. package/vendor/zod/locales/ps.d.ts +4 -0
  437. package/vendor/zod/locales/ps.js +117 -0
  438. package/vendor/zod/locales/pt-BR.d.ts +4 -0
  439. package/vendor/zod/locales/pt-BR.js +141 -0
  440. package/vendor/zod/locales/pt.d.ts +4 -0
  441. package/vendor/zod/locales/pt.js +140 -0
  442. package/vendor/zod/locales/ro.d.ts +4 -0
  443. package/vendor/zod/locales/ro.js +120 -0
  444. package/vendor/zod/locales/ru.d.ts +4 -0
  445. package/vendor/zod/locales/ru.js +166 -0
  446. package/vendor/zod/locales/sk.d.ts +4 -0
  447. package/vendor/zod/locales/sk.js +114 -0
  448. package/vendor/zod/locales/sl.d.ts +4 -0
  449. package/vendor/zod/locales/sl.js +112 -0
  450. package/vendor/zod/locales/sv.d.ts +4 -0
  451. package/vendor/zod/locales/sv.js +113 -0
  452. package/vendor/zod/locales/ta.d.ts +4 -0
  453. package/vendor/zod/locales/ta.js +113 -0
  454. package/vendor/zod/locales/th.d.ts +4 -0
  455. package/vendor/zod/locales/th.js +113 -0
  456. package/vendor/zod/locales/tk.d.ts +4 -0
  457. package/vendor/zod/locales/tk.js +105 -0
  458. package/vendor/zod/locales/tr.d.ts +4 -0
  459. package/vendor/zod/locales/tr.js +108 -0
  460. package/vendor/zod/locales/ua.d.ts +5 -0
  461. package/vendor/zod/locales/ua.js +5 -0
  462. package/vendor/zod/locales/uk.d.ts +4 -0
  463. package/vendor/zod/locales/uk.js +111 -0
  464. package/vendor/zod/locales/ur.d.ts +4 -0
  465. package/vendor/zod/locales/ur.js +113 -0
  466. package/vendor/zod/locales/uz.d.ts +4 -0
  467. package/vendor/zod/locales/uz.js +111 -0
  468. package/vendor/zod/locales/vi.d.ts +4 -0
  469. package/vendor/zod/locales/vi.js +111 -0
  470. package/vendor/zod/locales/yo.d.ts +4 -0
  471. package/vendor/zod/locales/yo.js +110 -0
  472. package/vendor/zod/locales/zh-CN.d.ts +4 -0
  473. package/vendor/zod/locales/zh-CN.js +112 -0
  474. package/vendor/zod/locales/zh-TW.d.ts +4 -0
  475. package/vendor/zod/locales/zh-TW.js +110 -0
  476. package/vendor/zod/mini/checks.d.ts +1 -0
  477. package/vendor/zod/mini/checks.js +1 -0
  478. package/vendor/zod/mini/coerce.d.ts +7 -0
  479. package/vendor/zod/mini/coerce.js +22 -0
  480. package/vendor/zod/mini/deep-partial.d.ts +14 -0
  481. package/vendor/zod/mini/deep-partial.js +13 -0
  482. package/vendor/zod/mini/external.d.ts +16 -0
  483. package/vendor/zod/mini/external.js +16 -0
  484. package/vendor/zod/mini/in-out.d.ts +8 -0
  485. package/vendor/zod/mini/in-out.js +36 -0
  486. package/vendor/zod/mini/index.d.ts +3 -0
  487. package/vendor/zod/mini/index.js +3 -0
  488. package/vendor/zod/mini/iso.d.ts +22 -0
  489. package/vendor/zod/mini/iso.js +34 -0
  490. package/vendor/zod/mini/package.json +7 -0
  491. package/vendor/zod/mini/parse.d.ts +1 -0
  492. package/vendor/zod/mini/parse.js +1 -0
  493. package/vendor/zod/mini/schemas.d.ts +475 -0
  494. package/vendor/zod/mini/schemas.js +987 -0
  495. package/vendor/zod/package.json +7 -0
  496. package/vendor/zodexy/dist/esm/index.js +1274 -0
  497. package/vendor/zodexy/dist/index.js +1088 -0
  498. package/vendor/zodexy/dist/schema.zodexy.json +1036 -0
  499. package/dist/fundamentalTypes/nativeEnumType.d.ts +0 -6
  500. package/dist/fundamentalTypes/nativeEnumType.d.ts.map +0 -1
  501. package/src/fundamentalTypes/catchType.js +0 -140
  502. package/src/fundamentalTypes/enumType.js +0 -52
  503. package/src/fundamentalTypes/literalType.js +0 -81
  504. package/src/fundamentalTypes/nativeEnumType.js +0 -157
  505. package/src/fundamentalTypes/neverType.js +0 -49
  506. package/src/fundamentalTypes/recordType.js +0 -42
  507. package/src/fundamentalTypes/tupleType.js +0 -39
  508. package/src/fundamentalTypes/voidType.js +0 -48
  509. package/vendor/zod/lib/index.mjs +0 -4236
  510. package/vendor/zodex/dist/esm/dezerialize.d.ts +0 -26
  511. package/vendor/zodex/dist/esm/dezerialize.js +0 -393
  512. package/vendor/zodex/dist/esm/index.d.ts +0 -9
  513. package/vendor/zodex/dist/esm/index.js +0 -4
  514. package/vendor/zodex/dist/esm/infer.d.ts +0 -29
  515. package/vendor/zodex/dist/esm/package.json +0 -1
  516. package/vendor/zodex/dist/esm/types.d.ts +0 -201
  517. package/vendor/zodex/dist/esm/types.js +0 -13
  518. package/vendor/zodex/dist/esm/ui.d.ts +0 -23
  519. package/vendor/zodex/dist/esm/ui.js +0 -10
  520. package/vendor/zodex/dist/esm/zerialize.d.ts +0 -50
  521. package/vendor/zodex/dist/esm/zerialize.js +0 -417
  522. package/vendor/zodex/dist/esm/zod-types.d.ts +0 -11
  523. /package/vendor/{zodex/dist/esm/infer.js → zod/core/json-schema.js} +0 -0
  524. /package/vendor/{zodex/dist/esm/zod-types.js → zod/core/standard-schema.js} +0 -0
@@ -0,0 +1,1253 @@
1
+ import * as checks from "./checks.js";
2
+ import type { $ZodNumberFormats } from "./checks.js";
3
+ import type { $ZodBigIntFormats } from "./checks.js";
4
+ import * as core from "./core.js";
5
+ import type * as errors from "./errors.js";
6
+ import type * as JSONSchema from "./json-schema.js";
7
+ import type { StandardSchemaV1 } from "./standard-schema.js";
8
+ import type { ProcessParams, ToJSONSchemaContext } from "./to-json-schema.js";
9
+ import * as util from "./util.js";
10
+ import { version } from "./versions.js";
11
+ export interface ParseContext<T extends errors.$ZodIssueBase = never> {
12
+ /** Customize error messages. */
13
+ readonly error?: errors.$ZodErrorMap<T>;
14
+ /** Include the `input` field in issue objects. Default `false`. */
15
+ readonly reportInput?: boolean;
16
+ /** Skip eval-based fast path. Default `false`. */
17
+ readonly jitless?: boolean;
18
+ }
19
+ /** @internal */
20
+ export interface ParseContextInternal<T extends errors.$ZodIssueBase = never> extends ParseContext<T> {
21
+ readonly async?: boolean | undefined;
22
+ readonly direction?: "forward" | "backward";
23
+ readonly skipChecks?: boolean;
24
+ }
25
+ /** Gives a container cycle support: `attach` wraps its parse, and `alloc` registers the object it builds into before any child is parsed so a reference back to the same input resolves to it. */
26
+ export interface $ZodMemoizer {
27
+ attach(inst: $ZodType): void;
28
+ guard(inst: $ZodType): void;
29
+ alloc<T extends object>(inst: $ZodType, payload: ParsePayload, empty: T, ctx: ParseContextInternal): T;
30
+ }
31
+ export interface ParsePayload<T = unknown> {
32
+ value: T;
33
+ issues: errors.$ZodRawIssue[];
34
+ /** A way to mark a whole payload as aborted. Used in codecs/pipes. */
35
+ aborted?: boolean;
36
+ /** @internal Set when the value came from a repeat visit to a node still being
37
+ * parsed. Its checks run on the node itself, against the finished value. */
38
+ memo?: boolean | undefined;
39
+ }
40
+ export type CheckFn<T> = (input: ParsePayload<T>) => util.MaybeAsync<void>;
41
+ export interface $ZodTypeDef {
42
+ type: "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "null" | "undefined" | "void" | "never" | "any" | "unknown" | "date" | "object" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "function" | "custom";
43
+ error?: errors.$ZodErrorMap<never> | undefined;
44
+ checks?: checks.$ZodCheck<never>[];
45
+ }
46
+ export interface _$ZodTypeInternals {
47
+ /** The `@zod/core` version of this schema */
48
+ version: typeof version;
49
+ /** Schema definition. */
50
+ def: $ZodTypeDef;
51
+ /** @internal Randomly generated ID for this schema. */
52
+ /** @internal List of deferred initializers. */
53
+ deferred: util.AnyFunc[] | undefined;
54
+ /** @internal Parses input and runs all checks (refinements). */
55
+ run(payload: ParsePayload<any>, ctx: ParseContextInternal): util.MaybeAsync<ParsePayload>;
56
+ /** @internal Parses input, doesn't run checks. */
57
+ parse(payload: ParsePayload<any>, ctx: ParseContextInternal): util.MaybeAsync<ParsePayload>;
58
+ /** @internal Stores identifiers for the set of traits implemented by this schema. */
59
+ traits: Set<string>;
60
+ /** @internal Indicates that a schema output type should be considered optional inside objects.
61
+ * @default Required
62
+ */
63
+ /** @internal Three rungs, each strictly stronger than the last:
64
+ * undefined — required; the container may not omit this slot
65
+ * "optional" — the container may omit it; nothing is supplied in its place
66
+ * "defaulted" — the container may omit it AND this schema substitutes a value
67
+ * Consumers asking "may the slot be absent?" test `!== undefined`.
68
+ * $ZodOptional asks the stronger question and tests `=== "defaulted"`. */
69
+ optin?: "optional" | "defaulted" | undefined;
70
+ /** @internal */
71
+ optout?: "optional" | undefined;
72
+ /** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
73
+ *
74
+ * Defined on: enum, const, literal, null, undefined
75
+ * Passthrough: optional, nullable, branded, default, catch, pipe
76
+ * Todo: unions?
77
+ */
78
+ values?: util.PrimitiveSet | undefined;
79
+ /** Default value bubbled up from */
80
+ /** @internal A set of literal discriminators used for the fast path in discriminated unions. */
81
+ propValues?: util.PropValues | undefined;
82
+ /** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
83
+ pattern: RegExp | undefined;
84
+ /** @internal The constructor function of this schema. */
85
+ constr: new (def: any) => $ZodType;
86
+ /** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */
87
+ bag: Record<string, unknown>;
88
+ /** @internal The set of issues this schema might throw during type checking. */
89
+ isst: errors.$ZodIssueBase;
90
+ /** @internal Subject to change, not a public API. */
91
+ processJSONSchema?: ((ctx: ToJSONSchemaContext, json: JSONSchema.BaseSchema, params: ProcessParams) => void) | undefined;
92
+ /** An optional method used to override `toJSONSchema` logic. */
93
+ toJSONSchema?: () => unknown;
94
+ /** @internal The parent of this schema. Only set during certain clone operations. */
95
+ parent?: $ZodType | undefined;
96
+ }
97
+ /** @internal */
98
+ export interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals {
99
+ /** @internal The inferred output type */
100
+ output: O;
101
+ /** @internal The inferred input type */
102
+ input: I;
103
+ }
104
+ export type $ZodStandardSchema<T> = StandardSchemaV1.Props<core.input<T>, core.output<T>>;
105
+ export type SomeType = {
106
+ _zod: _$ZodTypeInternals;
107
+ };
108
+ export interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
109
+ _zod: Internals;
110
+ "~standard": $ZodStandardSchema<this>;
111
+ }
112
+ export interface _$ZodType<T extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T["output"], T["input"], T> {
113
+ }
114
+ export declare const $ZodType: core.$constructor<$ZodType>;
115
+ export declare function standardProps(inst: $ZodType): StandardSchemaV1.Props<any, any>;
116
+ export { clone } from "./util.js";
117
+ export interface $ZodStringDef extends $ZodTypeDef {
118
+ type: "string";
119
+ coerce?: boolean;
120
+ checks?: checks.$ZodCheck<string>[];
121
+ }
122
+ export interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
123
+ def: $ZodStringDef;
124
+ /** @deprecated Internal API, use with caution (not deprecated) */
125
+ pattern: RegExp;
126
+ /** @deprecated Internal API, use with caution (not deprecated) */
127
+ isst: errors.$ZodIssueInvalidType;
128
+ bag: util.LoosePartial<{
129
+ minimum: number;
130
+ maximum: number;
131
+ patterns: Set<RegExp>;
132
+ format: string;
133
+ contentEncoding: string;
134
+ /** the pattern admits strings its `format` keyword forbids, so `toJSONSchema` must not emit it */
135
+ laxFormat: boolean;
136
+ }>;
137
+ }
138
+ export interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> {
139
+ }
140
+ export declare const $ZodString: core.$constructor<$ZodString>;
141
+ export interface $ZodStringFormatDef<Format extends string = string> extends $ZodStringDef, checks.$ZodCheckStringFormatDef<Format> {
142
+ }
143
+ export interface $ZodStringFormatInternals<Format extends string = string> extends $ZodStringInternals<string>, checks.$ZodCheckStringFormatInternals {
144
+ def: $ZodStringFormatDef<Format>;
145
+ }
146
+ export interface $ZodStringFormat<Format extends string = string> extends $ZodType {
147
+ _zod: $ZodStringFormatInternals<Format>;
148
+ }
149
+ export declare const $ZodStringFormat: core.$constructor<$ZodStringFormat>;
150
+ export interface $ZodGUIDDef extends $ZodStringFormatDef<"guid"> {
151
+ }
152
+ export interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {
153
+ }
154
+ export interface $ZodGUID extends $ZodType {
155
+ _zod: $ZodGUIDInternals;
156
+ }
157
+ export declare const $ZodGUID: core.$constructor<$ZodGUID>;
158
+ export interface $ZodUUIDDef extends $ZodStringFormatDef<"uuid"> {
159
+ version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8";
160
+ }
161
+ export interface $ZodUUIDInternals extends $ZodStringFormatInternals<"uuid"> {
162
+ def: $ZodUUIDDef;
163
+ }
164
+ export interface $ZodUUID extends $ZodType {
165
+ _zod: $ZodUUIDInternals;
166
+ }
167
+ export declare const $ZodUUID: core.$constructor<$ZodUUID>;
168
+ export interface $ZodEmailDef extends $ZodStringFormatDef<"email"> {
169
+ }
170
+ export interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {
171
+ }
172
+ export interface $ZodEmail extends $ZodType {
173
+ _zod: $ZodEmailInternals;
174
+ }
175
+ export declare const $ZodEmail: core.$constructor<$ZodEmail>;
176
+ export interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
177
+ hostname?: RegExp | undefined;
178
+ protocol?: RegExp | undefined;
179
+ normalize?: boolean | undefined;
180
+ }
181
+ export interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
182
+ def: $ZodURLDef;
183
+ }
184
+ export interface $ZodURL extends $ZodType {
185
+ _zod: $ZodURLInternals;
186
+ }
187
+ /** The `://` guard rejected the input before the URL constructor saw it. */
188
+ export declare const URL_BAD_FORMAT = 1;
189
+ /** The URL constructor rejected the input. */
190
+ export declare const URL_UNPARSEABLE = 2;
191
+ /** Parses a URL for `$ZodURL`, applying the one guard the URL constructor cannot express. Returns the parsed URL, or a code naming the stage that rejected it — the runtime needs that distinction to pick an issue note, and compiled code only needs to know it is not a URL. */
192
+ export declare function parseURLObject(trimmed: string, def: Pick<$ZodURLDef, "protocol" | "normalize">): URL | typeof URL_BAD_FORMAT | typeof URL_UNPARSEABLE;
193
+ /** The URL parser deletes every ASCII tab, LF and CR from its input before it parses, so `new URL("https://exa\nmple.com")` reports on `example.com`. Applying the same deletion to the returned value closes the half of that divergence which can move the host; the parser's other rewrite, stripping C0 controls at the edges, cannot. */
194
+ export declare function stripTabAndNewline(value: string): string;
195
+ export declare function urlHostnameOk(url: URL, hostname: RegExp): boolean;
196
+ export declare function urlProtocolOk(url: URL, protocol: RegExp): boolean;
197
+ export declare const $ZodURL: core.$constructor<$ZodURL>;
198
+ export interface $ZodEmojiDef extends $ZodStringFormatDef<"emoji"> {
199
+ }
200
+ export interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {
201
+ }
202
+ export interface $ZodEmoji extends $ZodType {
203
+ _zod: $ZodEmojiInternals;
204
+ }
205
+ export declare const $ZodEmoji: core.$constructor<$ZodEmoji>;
206
+ export interface $ZodNanoIDDef extends $ZodStringFormatDef<"nanoid"> {
207
+ length?: number | undefined;
208
+ }
209
+ export interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {
210
+ def: $ZodNanoIDDef;
211
+ }
212
+ export interface $ZodNanoID extends $ZodType {
213
+ _zod: $ZodNanoIDInternals;
214
+ }
215
+ export declare const $ZodNanoID: core.$constructor<$ZodNanoID>;
216
+ /**
217
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
218
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
219
+ * See https://github.com/paralleldrive/cuid.
220
+ */
221
+ export interface $ZodCUIDDef extends $ZodStringFormatDef<"cuid"> {
222
+ }
223
+ /**
224
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
225
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
226
+ * See https://github.com/paralleldrive/cuid.
227
+ */
228
+ export interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {
229
+ }
230
+ /**
231
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
232
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
233
+ * See https://github.com/paralleldrive/cuid.
234
+ */
235
+ export interface $ZodCUID extends $ZodType {
236
+ _zod: $ZodCUIDInternals;
237
+ }
238
+ /**
239
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
240
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
241
+ * See https://github.com/paralleldrive/cuid.
242
+ */
243
+ export declare const $ZodCUID: core.$constructor<$ZodCUID>;
244
+ export interface $ZodCUID2Def extends $ZodStringFormatDef<"cuid2"> {
245
+ }
246
+ export interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {
247
+ }
248
+ export interface $ZodCUID2 extends $ZodType {
249
+ _zod: $ZodCUID2Internals;
250
+ }
251
+ export declare const $ZodCUID2: core.$constructor<$ZodCUID2>;
252
+ export interface $ZodULIDDef extends $ZodStringFormatDef<"ulid"> {
253
+ }
254
+ export interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {
255
+ }
256
+ export interface $ZodULID extends $ZodType {
257
+ _zod: $ZodULIDInternals;
258
+ }
259
+ export declare const $ZodULID: core.$constructor<$ZodULID>;
260
+ export interface $ZodXIDDef extends $ZodStringFormatDef<"xid"> {
261
+ }
262
+ export interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {
263
+ }
264
+ export interface $ZodXID extends $ZodType {
265
+ _zod: $ZodXIDInternals;
266
+ }
267
+ export declare const $ZodXID: core.$constructor<$ZodXID>;
268
+ export interface $ZodKSUIDDef extends $ZodStringFormatDef<"ksuid"> {
269
+ }
270
+ export interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {
271
+ }
272
+ export interface $ZodKSUID extends $ZodType {
273
+ _zod: $ZodKSUIDInternals;
274
+ }
275
+ export declare const $ZodKSUID: core.$constructor<$ZodKSUID>;
276
+ export interface $ZodISODateTimeDef extends $ZodStringFormatDef<"datetime"> {
277
+ precision: number | null;
278
+ offset: boolean;
279
+ local: boolean;
280
+ }
281
+ export interface $ZodISODateTimeInternals extends $ZodStringFormatInternals {
282
+ def: $ZodISODateTimeDef;
283
+ }
284
+ export interface $ZodISODateTime extends $ZodType {
285
+ _zod: $ZodISODateTimeInternals;
286
+ }
287
+ export declare const $ZodISODateTime: core.$constructor<$ZodISODateTime>;
288
+ export interface $ZodISODateDef extends $ZodStringFormatDef<"date"> {
289
+ }
290
+ export interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {
291
+ }
292
+ export interface $ZodISODate extends $ZodType {
293
+ _zod: $ZodISODateInternals;
294
+ }
295
+ export declare const $ZodISODate: core.$constructor<$ZodISODate>;
296
+ export interface $ZodISOTimeDef extends $ZodStringFormatDef<"time"> {
297
+ precision?: number | null;
298
+ }
299
+ export interface $ZodISOTimeInternals extends $ZodStringFormatInternals<"time"> {
300
+ def: $ZodISOTimeDef;
301
+ }
302
+ export interface $ZodISOTime extends $ZodType {
303
+ _zod: $ZodISOTimeInternals;
304
+ }
305
+ export declare const $ZodISOTime: core.$constructor<$ZodISOTime>;
306
+ export interface $ZodISODurationDef extends $ZodStringFormatDef<"duration"> {
307
+ }
308
+ export interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {
309
+ }
310
+ export interface $ZodISODuration extends $ZodType {
311
+ _zod: $ZodISODurationInternals;
312
+ }
313
+ export declare const $ZodISODuration: core.$constructor<$ZodISODuration>;
314
+ export interface $ZodIPv4Def extends $ZodStringFormatDef<"ipv4"> {
315
+ version?: "v4";
316
+ }
317
+ export interface $ZodIPv4Internals extends $ZodStringFormatInternals<"ipv4"> {
318
+ def: $ZodIPv4Def;
319
+ }
320
+ export interface $ZodIPv4 extends $ZodType {
321
+ _zod: $ZodIPv4Internals;
322
+ }
323
+ export declare const $ZodIPv4: core.$constructor<$ZodIPv4>;
324
+ export interface $ZodIPv6Def extends $ZodStringFormatDef<"ipv6"> {
325
+ version?: "v6";
326
+ }
327
+ export interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> {
328
+ def: $ZodIPv6Def;
329
+ }
330
+ export interface $ZodIPv6 extends $ZodType {
331
+ _zod: $ZodIPv6Internals;
332
+ }
333
+ export declare function isValidIPv6(value: string): boolean;
334
+ export declare const $ZodIPv6: core.$constructor<$ZodIPv6>;
335
+ export interface $ZodMACDef extends $ZodStringFormatDef<"mac"> {
336
+ delimiter?: string;
337
+ }
338
+ export interface $ZodMACInternals extends $ZodStringFormatInternals<"mac"> {
339
+ def: $ZodMACDef;
340
+ }
341
+ export interface $ZodMAC extends $ZodType {
342
+ _zod: $ZodMACInternals;
343
+ }
344
+ export declare const $ZodMAC: core.$constructor<$ZodMAC>;
345
+ export interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> {
346
+ version?: "v4";
347
+ }
348
+ export interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<"cidrv4"> {
349
+ def: $ZodCIDRv4Def;
350
+ }
351
+ export interface $ZodCIDRv4 extends $ZodType {
352
+ _zod: $ZodCIDRv4Internals;
353
+ }
354
+ export declare const $ZodCIDRv4: core.$constructor<$ZodCIDRv4>;
355
+ export interface $ZodCIDRv6Def extends $ZodStringFormatDef<"cidrv6"> {
356
+ version?: "v6";
357
+ }
358
+ export interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> {
359
+ def: $ZodCIDRv6Def;
360
+ }
361
+ export interface $ZodCIDRv6 extends $ZodType {
362
+ _zod: $ZodCIDRv6Internals;
363
+ }
364
+ export declare function isValidCIDRv6(value: string): boolean;
365
+ export declare const $ZodCIDRv6: core.$constructor<$ZodCIDRv6>;
366
+ export declare function isValidBase64(data: string): boolean;
367
+ export interface $ZodBase64Def extends $ZodStringFormatDef<"base64"> {
368
+ }
369
+ export interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {
370
+ }
371
+ export interface $ZodBase64 extends $ZodType {
372
+ _zod: $ZodBase64Internals;
373
+ }
374
+ export declare const $ZodBase64: core.$constructor<$ZodBase64>;
375
+ export declare function isValidBase64URL(data: string): boolean;
376
+ export interface $ZodBase64URLDef extends $ZodStringFormatDef<"base64url"> {
377
+ }
378
+ export interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {
379
+ }
380
+ export interface $ZodBase64URL extends $ZodType {
381
+ _zod: $ZodBase64URLInternals;
382
+ }
383
+ export declare const $ZodBase64URL: core.$constructor<$ZodBase64URL>;
384
+ export interface $ZodE164Def extends $ZodStringFormatDef<"e164"> {
385
+ }
386
+ export interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {
387
+ }
388
+ export interface $ZodE164 extends $ZodType {
389
+ _zod: $ZodE164Internals;
390
+ }
391
+ export declare const $ZodE164: core.$constructor<$ZodE164>;
392
+ export declare function isValidCreditCard(input: string): boolean;
393
+ export interface $ZodCreditCardDef extends $ZodStringFormatDef<"credit_card"> {
394
+ }
395
+ export interface $ZodCreditCardInternals extends $ZodStringFormatInternals<"credit_card"> {
396
+ def: $ZodCreditCardDef;
397
+ }
398
+ export interface $ZodCreditCard extends $ZodType {
399
+ _zod: $ZodCreditCardInternals;
400
+ }
401
+ export declare const $ZodCreditCard: core.$constructor<$ZodCreditCard>;
402
+ export declare function isValidJWT(token: string, algorithm?: util.JWTAlgorithm | null): boolean;
403
+ export interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> {
404
+ alg?: util.JWTAlgorithm | undefined;
405
+ }
406
+ export interface $ZodJWTInternals extends $ZodStringFormatInternals<"jwt"> {
407
+ def: $ZodJWTDef;
408
+ }
409
+ export interface $ZodJWT extends $ZodType {
410
+ _zod: $ZodJWTInternals;
411
+ }
412
+ export declare const $ZodJWT: core.$constructor<$ZodJWT>;
413
+ export interface $ZodCustomStringFormatDef<Format extends string = string> extends $ZodStringFormatDef<Format> {
414
+ fn: (val: string) => unknown;
415
+ }
416
+ export interface $ZodCustomStringFormatInternals<Format extends string = string> extends $ZodStringFormatInternals<Format> {
417
+ def: $ZodCustomStringFormatDef<Format>;
418
+ }
419
+ export interface $ZodCustomStringFormat<Format extends string = string> extends $ZodStringFormat<Format> {
420
+ _zod: $ZodCustomStringFormatInternals<Format>;
421
+ }
422
+ export declare const $ZodCustomStringFormat: core.$constructor<$ZodCustomStringFormat>;
423
+ export interface $ZodNumberDef extends $ZodTypeDef {
424
+ type: "number";
425
+ coerce?: boolean;
426
+ }
427
+ export interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
428
+ def: $ZodNumberDef;
429
+ /** @deprecated Internal API, use with caution (not deprecated) */
430
+ pattern: RegExp;
431
+ /** @deprecated Internal API, use with caution (not deprecated) */
432
+ isst: errors.$ZodIssueInvalidType;
433
+ bag: util.LoosePartial<{
434
+ minimum: number;
435
+ maximum: number;
436
+ exclusiveMinimum: number;
437
+ exclusiveMaximum: number;
438
+ format: string;
439
+ pattern: RegExp;
440
+ }>;
441
+ }
442
+ export interface $ZodNumber<Input = unknown> extends $ZodType {
443
+ _zod: $ZodNumberInternals<Input>;
444
+ }
445
+ export declare const $ZodNumber: core.$constructor<$ZodNumber>;
446
+ export interface $ZodNumberFormatDef<Format extends $ZodNumberFormats = $ZodNumberFormats> extends $ZodNumberDef, checks.$ZodCheckNumberFormatDef<Format> {
447
+ }
448
+ export interface $ZodNumberFormatInternals<Format extends $ZodNumberFormats = $ZodNumberFormats> extends $ZodNumberInternals<number>, checks.$ZodCheckNumberFormatInternals<Format> {
449
+ def: $ZodNumberFormatDef<Format>;
450
+ isst: errors.$ZodIssueInvalidType;
451
+ }
452
+ export interface $ZodNumberFormat<Format extends $ZodNumberFormats = $ZodNumberFormats> extends $ZodType {
453
+ _zod: $ZodNumberFormatInternals<Format>;
454
+ }
455
+ export declare const $ZodNumberFormat: core.$constructor<$ZodNumberFormat>;
456
+ export interface $ZodBooleanDef extends $ZodTypeDef {
457
+ type: "boolean";
458
+ coerce?: boolean;
459
+ checks?: checks.$ZodCheck<boolean>[];
460
+ }
461
+ export interface $ZodBooleanInternals<T = unknown> extends $ZodTypeInternals<boolean, T> {
462
+ pattern: RegExp;
463
+ def: $ZodBooleanDef;
464
+ isst: errors.$ZodIssueInvalidType;
465
+ }
466
+ export interface $ZodBoolean<T = unknown> extends $ZodType {
467
+ _zod: $ZodBooleanInternals<T>;
468
+ }
469
+ export declare const $ZodBoolean: core.$constructor<$ZodBoolean>;
470
+ export interface $ZodBigIntDef extends $ZodTypeDef {
471
+ type: "bigint";
472
+ coerce?: boolean;
473
+ }
474
+ export interface $ZodBigIntInternals<T = unknown> extends $ZodTypeInternals<bigint, T> {
475
+ pattern: RegExp;
476
+ /** @internal Internal API, use with caution */
477
+ def: $ZodBigIntDef;
478
+ isst: errors.$ZodIssueInvalidType;
479
+ bag: util.LoosePartial<{
480
+ minimum: bigint;
481
+ maximum: bigint;
482
+ format: string;
483
+ }>;
484
+ }
485
+ export interface $ZodBigInt<T = unknown> extends $ZodType {
486
+ _zod: $ZodBigIntInternals<T>;
487
+ }
488
+ export declare const $ZodBigInt: core.$constructor<$ZodBigInt>;
489
+ export interface $ZodBigIntFormatDef<Format extends $ZodBigIntFormats = $ZodBigIntFormats> extends $ZodBigIntDef, checks.$ZodCheckBigIntFormatDef<Format> {
490
+ check: "bigint_format";
491
+ }
492
+ export interface $ZodBigIntFormatInternals<Format extends $ZodBigIntFormats = $ZodBigIntFormats> extends $ZodBigIntInternals<bigint>, checks.$ZodCheckBigIntFormatInternals<Format> {
493
+ def: $ZodBigIntFormatDef<Format>;
494
+ }
495
+ export interface $ZodBigIntFormat<Format extends $ZodBigIntFormats = $ZodBigIntFormats> extends $ZodType {
496
+ _zod: $ZodBigIntFormatInternals<Format>;
497
+ }
498
+ export declare const $ZodBigIntFormat: core.$constructor<$ZodBigIntFormat>;
499
+ export interface $ZodSymbolDef extends $ZodTypeDef {
500
+ type: "symbol";
501
+ }
502
+ export interface $ZodSymbolInternals extends $ZodTypeInternals<symbol, symbol> {
503
+ def: $ZodSymbolDef;
504
+ isst: errors.$ZodIssueInvalidType;
505
+ }
506
+ export interface $ZodSymbol extends $ZodType {
507
+ _zod: $ZodSymbolInternals;
508
+ }
509
+ export declare const $ZodSymbol: core.$constructor<$ZodSymbol>;
510
+ export interface $ZodUndefinedDef extends $ZodTypeDef {
511
+ type: "undefined";
512
+ }
513
+ export interface $ZodUndefinedInternals extends $ZodTypeInternals<undefined, undefined> {
514
+ pattern: RegExp;
515
+ def: $ZodUndefinedDef;
516
+ values: util.PrimitiveSet;
517
+ isst: errors.$ZodIssueInvalidType;
518
+ }
519
+ export interface $ZodUndefined extends $ZodType {
520
+ _zod: $ZodUndefinedInternals;
521
+ }
522
+ export declare const $ZodUndefined: core.$constructor<$ZodUndefined>;
523
+ export interface $ZodNullDef extends $ZodTypeDef {
524
+ type: "null";
525
+ }
526
+ export interface $ZodNullInternals extends $ZodTypeInternals<null, null> {
527
+ pattern: RegExp;
528
+ def: $ZodNullDef;
529
+ values: util.PrimitiveSet;
530
+ isst: errors.$ZodIssueInvalidType;
531
+ }
532
+ export interface $ZodNull extends $ZodType {
533
+ _zod: $ZodNullInternals;
534
+ }
535
+ export declare const $ZodNull: core.$constructor<$ZodNull>;
536
+ export interface $ZodAnyDef extends $ZodTypeDef {
537
+ type: "any";
538
+ }
539
+ export interface $ZodAnyInternals extends $ZodTypeInternals<any, any> {
540
+ def: $ZodAnyDef;
541
+ isst: never;
542
+ }
543
+ export interface $ZodAny extends $ZodType {
544
+ _zod: $ZodAnyInternals;
545
+ }
546
+ export declare const $ZodAny: core.$constructor<$ZodAny>;
547
+ export interface $ZodUnknownDef extends $ZodTypeDef {
548
+ type: "unknown";
549
+ }
550
+ export interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> {
551
+ def: $ZodUnknownDef;
552
+ isst: never;
553
+ }
554
+ export interface $ZodUnknown extends $ZodType {
555
+ _zod: $ZodUnknownInternals;
556
+ }
557
+ export declare const $ZodUnknown: core.$constructor<$ZodUnknown>;
558
+ export interface $ZodNeverDef extends $ZodTypeDef {
559
+ type: "never";
560
+ }
561
+ export interface $ZodNeverInternals extends $ZodTypeInternals<never, never> {
562
+ def: $ZodNeverDef;
563
+ isst: errors.$ZodIssueInvalidType;
564
+ }
565
+ export interface $ZodNever extends $ZodType {
566
+ _zod: $ZodNeverInternals;
567
+ }
568
+ export declare const $ZodNever: core.$constructor<$ZodNever>;
569
+ export interface $ZodVoidDef extends $ZodTypeDef {
570
+ type: "void";
571
+ }
572
+ export interface $ZodVoidInternals extends $ZodTypeInternals<void, void> {
573
+ def: $ZodVoidDef;
574
+ isst: errors.$ZodIssueInvalidType;
575
+ }
576
+ export interface $ZodVoid extends $ZodType {
577
+ _zod: $ZodVoidInternals;
578
+ }
579
+ export declare const $ZodVoid: core.$constructor<$ZodVoid>;
580
+ export interface $ZodDateDef extends $ZodTypeDef {
581
+ type: "date";
582
+ coerce?: boolean;
583
+ }
584
+ export interface $ZodDateInternals<T = unknown> extends $ZodTypeInternals<Date, T> {
585
+ def: $ZodDateDef;
586
+ isst: errors.$ZodIssueInvalidType;
587
+ bag: util.LoosePartial<{
588
+ minimum: Date;
589
+ maximum: Date;
590
+ format: string;
591
+ }>;
592
+ }
593
+ export interface $ZodDate<T = unknown> extends $ZodType {
594
+ _zod: $ZodDateInternals<T>;
595
+ }
596
+ export declare const $ZodDate: core.$constructor<$ZodDate>;
597
+ export interface $ZodArrayDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
598
+ type: "array";
599
+ element: T;
600
+ }
601
+ export interface $ZodArrayInternals<T extends SomeType = $ZodType> extends _$ZodTypeInternals {
602
+ def: $ZodArrayDef<T>;
603
+ isst: errors.$ZodIssueInvalidType;
604
+ output: core.output<T>[];
605
+ input: core.input<T>[];
606
+ }
607
+ export interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T>> {
608
+ }
609
+ export declare const $ZodArray: core.$constructor<$ZodArray>;
610
+ type OptionalOutSchema = {
611
+ _zod: {
612
+ optout: "optional";
613
+ };
614
+ };
615
+ type OptionalInSchema = {
616
+ _zod: {
617
+ optin: "optional" | "defaulted";
618
+ };
619
+ };
620
+ export type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? util.IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, core.output<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : util.Prettify<{
621
+ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: T[k]["_zod"]["output"];
622
+ } & {
623
+ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: T[k]["_zod"]["output"];
624
+ } & Extra>;
625
+ export type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? util.IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, core.input<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : util.Prettify<{
626
+ -readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: T[k]["_zod"]["input"];
627
+ } & {
628
+ -readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: T[k]["_zod"]["input"];
629
+ } & Extra>;
630
+ export type $ZodObjectConfig = {
631
+ out: Record<string, unknown>;
632
+ in: Record<string, unknown>;
633
+ };
634
+ export type $loose = {
635
+ out: Record<string, unknown>;
636
+ in: Record<string, unknown>;
637
+ };
638
+ export type $strict = {
639
+ out: {};
640
+ in: {};
641
+ };
642
+ export type $strip = {
643
+ out: {};
644
+ in: {};
645
+ };
646
+ export type $catchall<T extends SomeType> = {
647
+ out: {
648
+ [k: string]: core.output<T>;
649
+ };
650
+ in: {
651
+ [k: string]: core.input<T>;
652
+ };
653
+ };
654
+ export type $ZodShape = Readonly<{
655
+ [k: string]: $ZodType;
656
+ }>;
657
+ export interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
658
+ type: "object";
659
+ shape: Shape;
660
+ catchall?: $ZodType | undefined;
661
+ }
662
+ export interface $ZodObjectInternals<
663
+ /** @ts-ignore Cast variance */
664
+ out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
665
+ def: $ZodObjectDef<Shape>;
666
+ config: Config;
667
+ isst: errors.$ZodIssueInvalidType | errors.$ZodIssueUnrecognizedKeys;
668
+ propValues: util.PropValues;
669
+ output: $InferObjectOutput<Shape, Config["out"]>;
670
+ input: $InferObjectInput<Shape, Config["in"]>;
671
+ optin?: "optional" | undefined;
672
+ optout?: "optional" | undefined;
673
+ }
674
+ export type $ZodLooseShape = Record<string, any>;
675
+ export interface $ZodObject<
676
+ /** @ts-ignore Cast variance */
677
+ out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {
678
+ }
679
+ export declare const $ZodObject: core.$constructor<$ZodObject>;
680
+ export declare const $ZodObjectJIT: core.$constructor<$ZodObject>;
681
+ export type $InferUnionOutput<T extends SomeType> = T extends any ? core.output<T> : never;
682
+ export type $InferUnionInput<T extends SomeType> = T extends any ? core.input<T> : never;
683
+ export interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
684
+ type: "union";
685
+ options: Options;
686
+ inclusive?: boolean;
687
+ }
688
+ type IsOptionalIn<T extends SomeType> = T extends OptionalInSchema ? true : false;
689
+ type IsOptionalOut<T extends SomeType> = T extends OptionalOutSchema ? true : false;
690
+ export interface $ZodUnionInternals<T extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals {
691
+ def: $ZodUnionDef<T>;
692
+ isst: errors.$ZodIssueInvalidUnion;
693
+ pattern: T[number]["_zod"]["pattern"];
694
+ values: T[number]["_zod"]["values"];
695
+ output: $InferUnionOutput<T[number]>;
696
+ input: $InferUnionInput<T[number]>;
697
+ optin: IsOptionalIn<T[number]> extends false ? "optional" | "defaulted" | undefined : "optional" | "defaulted";
698
+ optout: IsOptionalOut<T[number]> extends false ? "optional" | undefined : "optional";
699
+ }
700
+ export interface $ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T>> {
701
+ _zod: $ZodUnionInternals<T>;
702
+ }
703
+ export declare const $ZodUnion: core.$constructor<$ZodUnion>;
704
+ export interface $ZodXorInternals<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodUnionInternals<T> {
705
+ }
706
+ export interface $ZodXor<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodXorInternals<T>> {
707
+ _zod: $ZodXorInternals<T>;
708
+ }
709
+ export declare const $ZodXor: core.$constructor<$ZodXor>;
710
+ export interface $ZodDiscriminatedUnionDef<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends $ZodUnionDef<Options> {
711
+ discriminator: Disc;
712
+ unionFallback?: boolean;
713
+ }
714
+ export interface $ZodDiscriminatedUnionInternals<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends $ZodUnionInternals<Options> {
715
+ def: $ZodDiscriminatedUnionDef<Options, Disc>;
716
+ propValues: util.PropValues;
717
+ bag: util.LoosePartial<{
718
+ optionsMap: Map<util.Primitive, $ZodType>;
719
+ }>;
720
+ }
721
+ /** The discriminator values a member of `Options` can declare. An omittable discriminator contributes `undefined`, matching what `propValues` claims for it. */
722
+ export type $DiscriminatorValue<Options extends readonly SomeType[], Disc extends string> = {
723
+ [I in keyof Options]: Options[I] extends {
724
+ _zod: {
725
+ output: infer Out;
726
+ };
727
+ } ? Disc extends keyof Out ? Out[Disc] : never : never;
728
+ }[number];
729
+ /** The member of `Options` that declares `V`. */
730
+ export type $DiscriminatedOption<Options extends readonly SomeType[], Disc extends string, V> = {
731
+ [I in keyof Options]: Options[I] extends {
732
+ _zod: {
733
+ output: infer Out;
734
+ };
735
+ } ? Disc extends keyof Out ? V extends Out[Disc] ? Options[I] : never : never : never;
736
+ }[number];
737
+ /** Returns the option of `union` whose discriminator claims `value`. */
738
+ export declare function getDiscriminatedOption<Options extends readonly SomeType[], Disc extends string, const V extends $DiscriminatorValue<Options, Disc>>(union: $ZodDiscriminatedUnion<Options, Disc>, value: V): $DiscriminatedOption<Options, Disc, V>;
739
+ export interface $ZodDiscriminatedUnion<Options extends readonly SomeType[] = readonly $ZodType[], Disc extends string = string> extends $ZodType {
740
+ _zod: $ZodDiscriminatedUnionInternals<Options, Disc>;
741
+ }
742
+ export declare const $ZodDiscriminatedUnion: core.$constructor<$ZodDiscriminatedUnion>;
743
+ export interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef {
744
+ type: "intersection";
745
+ left: Left;
746
+ right: Right;
747
+ }
748
+ export interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals {
749
+ def: $ZodIntersectionDef<A, B>;
750
+ isst: never;
751
+ optin: A["_zod"]["optin"] | B["_zod"]["optin"];
752
+ optout: A["_zod"]["optout"] | B["_zod"]["optout"];
753
+ output: core.output<A> & core.output<B>;
754
+ input: core.input<A> & core.input<B>;
755
+ }
756
+ export interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
757
+ _zod: $ZodIntersectionInternals<A, B>;
758
+ }
759
+ export declare const $ZodIntersection: core.$constructor<$ZodIntersection>;
760
+ export declare function mergeValues(a: any, b: any): {
761
+ valid: true;
762
+ data: any;
763
+ } | {
764
+ valid: false;
765
+ mergeErrorPath: (string | number)[];
766
+ };
767
+ export interface $ZodTupleDef<T extends util.TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodTypeDef {
768
+ type: "tuple";
769
+ items: T;
770
+ rest: Rest;
771
+ }
772
+ export type $InferTupleInputType<T extends util.TupleItems, Rest extends SomeType | null> = [
773
+ ...TupleInputTypeWithOptionals<T>,
774
+ ...(Rest extends SomeType ? core.input<Rest>[] : [])
775
+ ];
776
+ type TupleInputTypeNoOptionals<T extends util.TupleItems> = {
777
+ [k in keyof T]: core.input<T[k]>;
778
+ };
779
+ type TupleInputTypeWithOptionals<T extends util.TupleItems> = T extends readonly [
780
+ ...infer Prefix extends SomeType[],
781
+ infer Tail extends SomeType
782
+ ] ? Tail["_zod"]["optin"] extends "optional" | "defaulted" ? [...TupleInputTypeWithOptionals<Prefix>, core.input<Tail>?] : TupleInputTypeNoOptionals<T> : [];
783
+ export type $InferTupleOutputType<T extends util.TupleItems, Rest extends SomeType | null> = [
784
+ ...TupleOutputTypeWithOptionals<T>,
785
+ ...(Rest extends SomeType ? core.output<Rest>[] : [])
786
+ ];
787
+ type TupleOutputTypeNoOptionals<T extends util.TupleItems> = {
788
+ [k in keyof T]: core.output<T[k]>;
789
+ };
790
+ type TupleOutputTypeWithOptionals<T extends util.TupleItems> = T extends readonly [
791
+ ...infer Prefix extends SomeType[],
792
+ infer Tail extends SomeType
793
+ ] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals<Prefix>, core.output<Tail>?] : TupleOutputTypeNoOptionals<T> : [];
794
+ export interface $ZodTupleInternals<T extends util.TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends _$ZodTypeInternals {
795
+ def: $ZodTupleDef<T, Rest>;
796
+ isst: errors.$ZodIssueInvalidType | errors.$ZodIssueTooBig<unknown[]> | errors.$ZodIssueTooSmall<unknown[]>;
797
+ output: $InferTupleOutputType<T, Rest>;
798
+ input: $InferTupleInputType<T, Rest>;
799
+ }
800
+ export interface $ZodTuple<T extends util.TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodType {
801
+ _zod: $ZodTupleInternals<T, Rest>;
802
+ }
803
+ export declare const $ZodTuple: core.$constructor<$ZodTuple>;
804
+ export type $ZodRecordKey = $ZodType<string | number | symbol, unknown>;
805
+ export interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef {
806
+ type: "record";
807
+ keyType: Key;
808
+ valueType: Value;
809
+ /** @default "strict" - errors on keys not matching keyType. "loose" passes through non-matching keys unchanged. */
810
+ mode?: "strict" | "loose";
811
+ partial?: boolean;
812
+ }
813
+ export type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<core.output<Key>, core.output<Value>>> : Record<core.output<Key>, core.output<Value>>;
814
+ export type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<core.input<Key> & PropertyKey, core.input<Value>>> : [
815
+ Value
816
+ ] extends [OptionalInSchema] ? Partial<Record<core.input<Key> & PropertyKey, core.input<Value>>> : Record<core.input<Key> & PropertyKey, core.input<Value>>;
817
+ export interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
818
+ def: $ZodRecordDef<Key, Value>;
819
+ isst: errors.$ZodIssueInvalidType | errors.$ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
820
+ optin?: "optional" | undefined;
821
+ optout?: "optional" | undefined;
822
+ }
823
+ export type $partial = {
824
+ "~~partial": true;
825
+ };
826
+ export interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodType {
827
+ _zod: $ZodRecordInternals<Key, Value>;
828
+ }
829
+ export declare const $ZodRecord: core.$constructor<$ZodRecord>;
830
+ export interface $ZodMapDef<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeDef {
831
+ type: "map";
832
+ keyType: Key;
833
+ valueType: Value;
834
+ }
835
+ export interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<core.output<Key>, core.output<Value>>, Map<core.input<Key>, core.input<Value>>> {
836
+ def: $ZodMapDef<Key, Value>;
837
+ isst: errors.$ZodIssueInvalidType | errors.$ZodIssueInvalidKey | errors.$ZodIssueInvalidElement<unknown>;
838
+ optin?: "optional" | undefined;
839
+ optout?: "optional" | undefined;
840
+ }
841
+ export interface $ZodMap<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodType {
842
+ _zod: $ZodMapInternals<Key, Value>;
843
+ }
844
+ export declare const $ZodMap: core.$constructor<$ZodMap>;
845
+ export interface $ZodSetDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
846
+ type: "set";
847
+ valueType: T;
848
+ }
849
+ export interface $ZodSetInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Set<core.output<T>>, Set<core.input<T>>> {
850
+ def: $ZodSetDef<T>;
851
+ isst: errors.$ZodIssueInvalidType;
852
+ optin?: "optional" | undefined;
853
+ optout?: "optional" | undefined;
854
+ }
855
+ export interface $ZodSet<T extends SomeType = $ZodType> extends $ZodType {
856
+ _zod: $ZodSetInternals<T>;
857
+ }
858
+ export declare const $ZodSet: core.$constructor<$ZodSet>;
859
+ export type $InferEnumOutput<T extends util.EnumLike> = T[keyof T] & {};
860
+ export type $InferEnumInput<T extends util.EnumLike> = T[keyof T] & {};
861
+ export interface $ZodEnumDef<T extends util.EnumLike = util.EnumLike> extends $ZodTypeDef {
862
+ type: "enum";
863
+ entries: T;
864
+ }
865
+ export interface $ZodEnumInternals<
866
+ /** @ts-ignore Cast variance */
867
+ out T extends util.EnumLike = util.EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T>, $InferEnumInput<T>> {
868
+ def: $ZodEnumDef<T>;
869
+ /** @deprecated Internal API, use with caution (not deprecated) */
870
+ values: util.PrimitiveSet;
871
+ /** @deprecated Internal API, use with caution (not deprecated) */
872
+ pattern: RegExp;
873
+ isst: errors.$ZodIssueInvalidValue;
874
+ }
875
+ export interface $ZodEnum<T extends util.EnumLike = util.EnumLike> extends $ZodType {
876
+ _zod: $ZodEnumInternals<T>;
877
+ }
878
+ export declare const $ZodEnum: core.$constructor<$ZodEnum>;
879
+ export interface $ZodLiteralDef<T extends util.Literal> extends $ZodTypeDef {
880
+ type: "literal";
881
+ values: T[];
882
+ }
883
+ export interface $ZodLiteralInternals<T extends util.Literal = util.Literal> extends $ZodTypeInternals<T, T> {
884
+ def: $ZodLiteralDef<T>;
885
+ values: Set<T>;
886
+ pattern: RegExp;
887
+ isst: errors.$ZodIssueInvalidValue;
888
+ }
889
+ export interface $ZodLiteral<T extends util.Literal = util.Literal> extends $ZodType {
890
+ _zod: $ZodLiteralInternals<T>;
891
+ }
892
+ export declare const $ZodLiteral: core.$constructor<$ZodLiteral>;
893
+ type _File = typeof globalThis extends {
894
+ File: infer F extends new (...args: any[]) => any;
895
+ } ? InstanceType<F> : {};
896
+ /** Do not reference this directly. */
897
+ export interface File extends _File {
898
+ readonly type: string;
899
+ readonly size: number;
900
+ }
901
+ export interface $ZodFileDef extends $ZodTypeDef {
902
+ type: "file";
903
+ }
904
+ export interface $ZodFileInternals extends $ZodTypeInternals<File, File> {
905
+ def: $ZodFileDef;
906
+ isst: errors.$ZodIssueInvalidType;
907
+ bag: util.LoosePartial<{
908
+ minimum: number;
909
+ maximum: number;
910
+ mime: util.MimeTypes[];
911
+ }>;
912
+ }
913
+ export interface $ZodFile extends $ZodType {
914
+ _zod: $ZodFileInternals;
915
+ }
916
+ export declare const $ZodFile: core.$constructor<$ZodFile>;
917
+ export interface $ZodTransformDef extends $ZodTypeDef {
918
+ type: "transform";
919
+ transform: (input: unknown, payload: ParsePayload<unknown>) => util.MaybeAsync<unknown>;
920
+ }
921
+ export interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
922
+ def: $ZodTransformDef;
923
+ isst: never;
924
+ }
925
+ export interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
926
+ _zod: $ZodTransformInternals<O, I>;
927
+ }
928
+ export declare const $ZodTransform: core.$constructor<$ZodTransform>;
929
+ export interface $ZodOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
930
+ type: "optional";
931
+ innerType: T;
932
+ }
933
+ export interface $ZodOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<T> | undefined, core.input<T> | undefined> {
934
+ def: $ZodOptionalDef<T>;
935
+ optin: "optional" | "defaulted";
936
+ optout: "optional";
937
+ isst: never;
938
+ values: T["_zod"]["values"];
939
+ pattern: T["_zod"]["pattern"];
940
+ }
941
+ export interface $ZodOptional<T extends SomeType = $ZodType> extends $ZodType {
942
+ _zod: $ZodOptionalInternals<T>;
943
+ }
944
+ export declare const $ZodOptional: core.$constructor<$ZodOptional>;
945
+ export interface $ZodExactOptionalDef<T extends SomeType = $ZodType> extends $ZodOptionalDef<T> {
946
+ }
947
+ export interface $ZodExactOptionalInternals<T extends SomeType = $ZodType> extends $ZodOptionalInternals<T> {
948
+ def: $ZodExactOptionalDef<T>;
949
+ output: core.output<T>;
950
+ input: core.input<T>;
951
+ }
952
+ export interface $ZodExactOptional<T extends SomeType = $ZodType> extends $ZodType {
953
+ _zod: $ZodExactOptionalInternals<T>;
954
+ }
955
+ export declare const $ZodExactOptional: core.$constructor<$ZodExactOptional>;
956
+ export interface $ZodNullableDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
957
+ type: "nullable";
958
+ innerType: T;
959
+ }
960
+ export interface $ZodNullableInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<T> | null, core.input<T> | null> {
961
+ def: $ZodNullableDef<T>;
962
+ optin: T["_zod"]["optin"];
963
+ optout: T["_zod"]["optout"];
964
+ isst: never;
965
+ values: T["_zod"]["values"];
966
+ pattern: T["_zod"]["pattern"];
967
+ }
968
+ export interface $ZodNullable<T extends SomeType = $ZodType> extends $ZodType {
969
+ _zod: $ZodNullableInternals<T>;
970
+ }
971
+ export declare const $ZodNullable: core.$constructor<$ZodNullable>;
972
+ export interface $ZodDefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
973
+ type: "default";
974
+ innerType: T;
975
+ /** The default value. May be a getter. */
976
+ defaultValue: util.NoUndefined<core.output<T>>;
977
+ }
978
+ export interface $ZodDefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<util.NoUndefined<core.output<T>>, core.input<T> | undefined> {
979
+ def: $ZodDefaultDef<T>;
980
+ optin: "defaulted";
981
+ optout?: "optional" | undefined;
982
+ isst: never;
983
+ values: T["_zod"]["values"];
984
+ }
985
+ export interface $ZodDefault<T extends SomeType = $ZodType> extends $ZodType {
986
+ _zod: $ZodDefaultInternals<T>;
987
+ }
988
+ export declare const $ZodDefault: core.$constructor<$ZodDefault>;
989
+ export interface $ZodPrefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
990
+ type: "prefault";
991
+ innerType: T;
992
+ /** The default value. May be a getter. */
993
+ defaultValue: core.input<T>;
994
+ }
995
+ export interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<util.NoUndefined<core.output<T>>, core.input<T> | undefined> {
996
+ def: $ZodPrefaultDef<T>;
997
+ optin: "defaulted";
998
+ optout?: "optional" | undefined;
999
+ isst: never;
1000
+ values: T["_zod"]["values"];
1001
+ }
1002
+ export interface $ZodPrefault<T extends SomeType = $ZodType> extends $ZodType {
1003
+ _zod: $ZodPrefaultInternals<T>;
1004
+ }
1005
+ export declare const $ZodPrefault: core.$constructor<$ZodPrefault>;
1006
+ export interface $ZodNonOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1007
+ type: "nonoptional";
1008
+ innerType: T;
1009
+ }
1010
+ export interface $ZodNonOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<util.NoUndefined<core.output<T>>, util.NoUndefined<core.input<T>>> {
1011
+ def: $ZodNonOptionalDef<T>;
1012
+ isst: errors.$ZodIssueInvalidType;
1013
+ values: T["_zod"]["values"];
1014
+ optin: "optional" | undefined;
1015
+ optout: "optional" | undefined;
1016
+ }
1017
+ export interface $ZodNonOptional<T extends SomeType = $ZodType> extends $ZodType {
1018
+ _zod: $ZodNonOptionalInternals<T>;
1019
+ }
1020
+ export declare const $ZodNonOptional: core.$constructor<$ZodNonOptional>;
1021
+ export interface $ZodSuccessDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1022
+ type: "success";
1023
+ innerType: T;
1024
+ }
1025
+ export interface $ZodSuccessInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, core.input<T>> {
1026
+ def: $ZodSuccessDef<T>;
1027
+ isst: never;
1028
+ optin: T["_zod"]["optin"];
1029
+ optout: "optional" | undefined;
1030
+ }
1031
+ export interface $ZodSuccess<T extends SomeType = $ZodType> extends $ZodType {
1032
+ _zod: $ZodSuccessInternals<T>;
1033
+ }
1034
+ export declare const $ZodSuccess: core.$constructor<$ZodSuccess>;
1035
+ export interface $ZodCatchCtx extends ParsePayload {
1036
+ /** @deprecated Use `ctx.issues` */
1037
+ error: {
1038
+ issues: errors.$ZodIssue[];
1039
+ };
1040
+ /** @deprecated Use `ctx.value` */
1041
+ input: unknown;
1042
+ }
1043
+ export interface $ZodCatchDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1044
+ type: "catch";
1045
+ innerType: T;
1046
+ catchValue: (ctx: $ZodCatchCtx) => unknown;
1047
+ }
1048
+ export interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<T>, core.input<T>> {
1049
+ def: $ZodCatchDef<T>;
1050
+ optin: T["_zod"]["optin"];
1051
+ optout: T["_zod"]["optout"];
1052
+ isst: never;
1053
+ values: T["_zod"]["values"];
1054
+ }
1055
+ export interface $ZodCatch<T extends SomeType = $ZodType> extends $ZodType {
1056
+ _zod: $ZodCatchInternals<T>;
1057
+ }
1058
+ export declare const $ZodCatch: core.$constructor<$ZodCatch>;
1059
+ export interface $ZodNaNDef extends $ZodTypeDef {
1060
+ type: "nan";
1061
+ }
1062
+ export interface $ZodNaNInternals extends $ZodTypeInternals<number, number> {
1063
+ def: $ZodNaNDef;
1064
+ isst: errors.$ZodIssueInvalidType;
1065
+ }
1066
+ export interface $ZodNaN extends $ZodType {
1067
+ _zod: $ZodNaNInternals;
1068
+ }
1069
+ export declare const $ZodNaN: core.$constructor<$ZodNaN>;
1070
+ export interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
1071
+ type: "pipe";
1072
+ in: A;
1073
+ out: B;
1074
+ /** Only defined inside $ZodCodec instances. */
1075
+ transform?: (value: core.output<A>, payload: ParsePayload<core.output<A>>) => util.MaybeAsync<core.input<B>>;
1076
+ /** Only defined inside $ZodCodec instances. */
1077
+ reverseTransform?: (value: core.input<B>, payload: ParsePayload<core.input<B>>) => util.MaybeAsync<core.output<A>>;
1078
+ }
1079
+ export interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<B>, core.input<A>> {
1080
+ def: $ZodPipeDef<A, B>;
1081
+ isst: never;
1082
+ values: A["_zod"]["values"];
1083
+ optin: A["_zod"]["optin"];
1084
+ optout: B["_zod"]["optout"];
1085
+ propValues: A["_zod"]["propValues"];
1086
+ }
1087
+ export interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
1088
+ _zod: $ZodPipeInternals<A, B>;
1089
+ }
1090
+ export declare const $ZodPipe: core.$constructor<$ZodPipe>;
1091
+ export interface $ZodCodecDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodPipeDef<A, B> {
1092
+ transform: (value: core.output<A>, payload: ParsePayload<core.output<A>>) => util.MaybeAsync<core.input<B>>;
1093
+ reverseTransform: (value: core.input<B>, payload: ParsePayload<core.input<B>>) => util.MaybeAsync<core.output<A>>;
1094
+ }
1095
+ export interface $ZodCodecInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<B>, core.input<A>> {
1096
+ def: $ZodCodecDef<A, B>;
1097
+ isst: never;
1098
+ values: A["_zod"]["values"];
1099
+ optin: A["_zod"]["optin"];
1100
+ optout: B["_zod"]["optout"];
1101
+ propValues: A["_zod"]["propValues"];
1102
+ }
1103
+ export interface $ZodCodec<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
1104
+ _zod: $ZodCodecInternals<A, B>;
1105
+ }
1106
+ export declare const $ZodCodec: core.$constructor<$ZodCodec>;
1107
+ export interface $ZodPreprocessDef<B extends SomeType = $ZodType, I = unknown> extends $ZodPipeDef<$ZodTransform<unknown, I>, B> {
1108
+ in: $ZodTransform<unknown, I>;
1109
+ out: B;
1110
+ }
1111
+ export interface $ZodPreprocessInternals<B extends SomeType = $ZodType, I = unknown> extends $ZodPipeInternals<$ZodTransform<unknown, I>, B> {
1112
+ def: $ZodPreprocessDef<B, I>;
1113
+ optin: B["_zod"]["optin"];
1114
+ optout: B["_zod"]["optout"];
1115
+ }
1116
+ export interface $ZodPreprocess<B extends SomeType = $ZodType, I = unknown> extends $ZodPipe<$ZodTransform<unknown, I>, B> {
1117
+ _zod: $ZodPreprocessInternals<B, I>;
1118
+ }
1119
+ export declare const $ZodPreprocess: core.$constructor<$ZodPreprocess>;
1120
+ export interface $ZodReadonlyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1121
+ type: "readonly";
1122
+ innerType: T;
1123
+ }
1124
+ export interface $ZodReadonlyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<util.MakeReadonly<core.output<T>>, util.MakeReadonly<core.input<T>>> {
1125
+ def: $ZodReadonlyDef<T>;
1126
+ optin: T["_zod"]["optin"];
1127
+ optout: T["_zod"]["optout"];
1128
+ isst: never;
1129
+ propValues: T["_zod"]["propValues"];
1130
+ values: T["_zod"]["values"];
1131
+ }
1132
+ export interface $ZodReadonly<T extends SomeType = $ZodType> extends $ZodType {
1133
+ _zod: $ZodReadonlyInternals<T>;
1134
+ }
1135
+ export declare const $ZodReadonly: core.$constructor<$ZodReadonly>;
1136
+ export interface $ZodTemplateLiteralDef extends $ZodTypeDef {
1137
+ type: "template_literal";
1138
+ parts: $ZodTemplateLiteralPart[];
1139
+ format?: string | undefined;
1140
+ }
1141
+ export interface $ZodTemplateLiteralInternals<Template extends string = string> extends $ZodTypeInternals<Template, Template> {
1142
+ pattern: RegExp;
1143
+ def: $ZodTemplateLiteralDef;
1144
+ isst: errors.$ZodIssueInvalidType;
1145
+ }
1146
+ export interface $ZodTemplateLiteral<Template extends string = string> extends $ZodType {
1147
+ _zod: $ZodTemplateLiteralInternals<Template>;
1148
+ }
1149
+ type LiteralPart = Exclude<util.Literal, symbol>;
1150
+ interface SchemaPartInternals extends $ZodTypeInternals<LiteralPart, LiteralPart> {
1151
+ pattern: RegExp;
1152
+ }
1153
+ interface SchemaPart extends $ZodType {
1154
+ _zod: SchemaPartInternals;
1155
+ }
1156
+ export type $ZodTemplateLiteralPart = LiteralPart | SchemaPart;
1157
+ type UndefinedToEmptyString<T> = T extends undefined ? "" : T;
1158
+ type AppendToTemplateLiteral<Template extends string, Suffix extends LiteralPart | $ZodType> = Suffix extends LiteralPart ? `${Template}${UndefinedToEmptyString<Suffix>}` : Suffix extends $ZodType ? `${Template}${core.output<Suffix> extends infer T extends LiteralPart ? UndefinedToEmptyString<T> : never}` : never;
1159
+ export type ConcatenateTupleOfStrings<T extends string[]> = T extends [
1160
+ infer First extends string,
1161
+ ...infer Rest extends string[]
1162
+ ] ? Rest extends string[] ? First extends "" ? ConcatenateTupleOfStrings<Rest> : `${First}${ConcatenateTupleOfStrings<Rest>}` : never : "";
1163
+ export type ConvertPartsToStringTuple<Parts extends $ZodTemplateLiteralPart[]> = {
1164
+ [K in keyof Parts]: Parts[K] extends LiteralPart ? `${UndefinedToEmptyString<Parts[K]>}` : Parts[K] extends $ZodType ? `${core.output<Parts[K]> extends infer T extends LiteralPart ? UndefinedToEmptyString<T> : never}` : never;
1165
+ };
1166
+ export type ToTemplateLiteral<Parts extends $ZodTemplateLiteralPart[]> = ConcatenateTupleOfStrings<ConvertPartsToStringTuple<Parts>>;
1167
+ export type $PartsToTemplateLiteral<Parts extends $ZodTemplateLiteralPart[]> = [] extends Parts ? `` : Parts extends [...infer Rest, infer Last extends $ZodTemplateLiteralPart] ? Rest extends $ZodTemplateLiteralPart[] ? AppendToTemplateLiteral<$PartsToTemplateLiteral<Rest>, Last> : never : never;
1168
+ export declare const $ZodTemplateLiteral: core.$constructor<$ZodTemplateLiteral>;
1169
+ export type $ZodFunctionArgs = $ZodType<unknown[], unknown[]>;
1170
+ export type $ZodFunctionIn = $ZodFunctionArgs;
1171
+ export type $ZodFunctionOut = $ZodType;
1172
+ export type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : core.output<Args>) => core.input<Returns>;
1173
+ export type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : core.output<Args>) => util.MaybeAsync<core.input<Returns>>;
1174
+ export type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : core.input<Args>) => core.output<Returns>;
1175
+ export type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : core.input<Args>) => Promise<core.output<Returns>>;
1176
+ export interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodTypeDef {
1177
+ type: "function";
1178
+ input: In;
1179
+ output: Out;
1180
+ }
1181
+ export interface $ZodFunctionInternals<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> extends $ZodTypeInternals<$InferOuterFunctionType<Args, Returns>, $InferInnerFunctionType<Args, Returns>> {
1182
+ def: $ZodFunctionDef<Args, Returns>;
1183
+ isst: errors.$ZodIssueInvalidType;
1184
+ }
1185
+ export interface $ZodFunction<Args extends $ZodFunctionIn = $ZodFunctionIn, Returns extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodType<any, any, $ZodFunctionInternals<Args, Returns>> {
1186
+ /** @deprecated */
1187
+ _def: $ZodFunctionDef<Args, Returns>;
1188
+ _input: $InferInnerFunctionType<Args, Returns>;
1189
+ _output: $InferOuterFunctionType<Args, Returns>;
1190
+ implement<F extends $InferInnerFunctionType<Args, Returns>>(func: F): (...args: Parameters<this["_output"]>) => ReturnType<F> extends ReturnType<this["_output"]> ? ReturnType<F> : ReturnType<this["_output"]>;
1191
+ implementAsync<F extends $InferInnerFunctionTypeAsync<Args, Returns>>(func: F): F extends $InferOuterFunctionTypeAsync<Args, Returns> ? F : $InferOuterFunctionTypeAsync<Args, Returns>;
1192
+ input<const Items extends util.TupleItems, const Rest extends $ZodFunctionOut = $ZodFunctionOut>(args: Items, rest?: Rest): $ZodFunction<$ZodTuple<Items, Rest>, Returns>;
1193
+ input<NewArgs extends $ZodFunctionIn>(args: NewArgs): $ZodFunction<NewArgs, Returns>;
1194
+ input(...args: any[]): $ZodFunction<any, Returns>;
1195
+ output<NewReturns extends $ZodType>(output: NewReturns): $ZodFunction<Args, NewReturns>;
1196
+ }
1197
+ export interface $ZodFunctionParams<I extends $ZodFunctionIn, O extends $ZodType> {
1198
+ input?: I;
1199
+ output?: O;
1200
+ }
1201
+ export declare const $ZodFunction: core.$constructor<$ZodFunction>;
1202
+ export interface $ZodPromiseDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1203
+ type: "promise";
1204
+ innerType: T;
1205
+ }
1206
+ export interface $ZodPromiseInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<core.output<T>>, util.MaybeAsync<core.input<T>>> {
1207
+ def: $ZodPromiseDef<T>;
1208
+ isst: never;
1209
+ }
1210
+ export interface $ZodPromise<T extends SomeType = $ZodType> extends $ZodType {
1211
+ _zod: $ZodPromiseInternals<T>;
1212
+ }
1213
+ export declare const $ZodPromise: core.$constructor<$ZodPromise>;
1214
+ export interface $ZodLazyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1215
+ type: "lazy";
1216
+ getter: () => T;
1217
+ }
1218
+ export interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<T>, core.input<T>> {
1219
+ def: $ZodLazyDef<T>;
1220
+ isst: never;
1221
+ /** Auto-cached way to retrieve the inner schema */
1222
+ innerType: T;
1223
+ pattern: T["_zod"]["pattern"];
1224
+ propValues: T["_zod"]["propValues"];
1225
+ optin: T["_zod"]["optin"];
1226
+ optout: T["_zod"]["optout"];
1227
+ }
1228
+ export interface $ZodLazy<T extends SomeType = $ZodType> extends $ZodType {
1229
+ _zod: $ZodLazyInternals<T>;
1230
+ }
1231
+ export declare const $ZodLazy: core.$constructor<$ZodLazy>;
1232
+ export interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, checks.$ZodCheckDef {
1233
+ type: "custom";
1234
+ check: "custom";
1235
+ path?: PropertyKey[] | undefined;
1236
+ error?: errors.$ZodErrorMap | undefined;
1237
+ params?: Record<string, any> | undefined;
1238
+ fn: (arg: O) => unknown;
1239
+ }
1240
+ export interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, checks.$ZodCheckInternals<O> {
1241
+ def: $ZodCustomDef;
1242
+ issc: errors.$ZodIssue;
1243
+ isst: never;
1244
+ bag: util.LoosePartial<{
1245
+ Class: typeof util.Class;
1246
+ }>;
1247
+ }
1248
+ export interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
1249
+ _zod: $ZodCustomInternals<O, I>;
1250
+ }
1251
+ export declare const $ZodCustom: core.$constructor<$ZodCustom>;
1252
+ export type $ZodTypes = $ZodString | $ZodNumber | $ZodBigInt | $ZodBoolean | $ZodDate | $ZodSymbol | $ZodUndefined | $ZodNullable | $ZodNull | $ZodAny | $ZodUnknown | $ZodNever | $ZodVoid | $ZodArray | $ZodObject | $ZodUnion | $ZodIntersection | $ZodTuple | $ZodRecord | $ZodMap | $ZodSet | $ZodLiteral | $ZodEnum | $ZodFunction | $ZodPromise | $ZodLazy | $ZodOptional | $ZodDefault | $ZodPrefault | $ZodTemplateLiteral | $ZodCustom | $ZodTransform | $ZodNonOptional | $ZodReadonly | $ZodNaN | $ZodPipe | $ZodSuccess | $ZodCatch | $ZodFile;
1253
+ export type $ZodStringFormatTypes = $ZodGUID | $ZodUUID | $ZodEmail | $ZodURL | $ZodEmoji | $ZodNanoID | $ZodCUID | $ZodCUID2 | $ZodULID | $ZodXID | $ZodKSUID | $ZodISODateTime | $ZodISODate | $ZodISOTime | $ZodISODuration | $ZodIPv4 | $ZodIPv6 | $ZodMAC | $ZodCIDRv4 | $ZodCIDRv6 | $ZodBase64 | $ZodBase64URL | $ZodE164 | $ZodCreditCard | $ZodJWT | $ZodCustomStringFormat<"hex"> | $ZodCustomStringFormat<util.HashFormat> | $ZodCustomStringFormat<"hostname">;