@btc-embedded/cdk-extensions 0.10.5 → 0.11.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 (349) hide show
  1. package/.jsii +3 -4
  2. package/CHANGELOG.md +15 -0
  3. package/lib/constructs/EventPipe.js +1 -1
  4. package/lib/constructs/S3Bucket.js +1 -1
  5. package/lib/constructs/SecureRestApi.js +1 -1
  6. package/lib/constructs/SecureRestApiV2.js +1 -1
  7. package/lib/extensions/ApiGatewayExtension.js +1 -1
  8. package/lib/extensions/ApplicationLoadBalancerExtension.js +1 -1
  9. package/lib/extensions/ApplicationLoadBalancerExtensionV2.js +1 -1
  10. package/lib/extensions/CloudMapExtension.js +1 -1
  11. package/lib/extensions/DeactivatableServiceExtension.js +1 -1
  12. package/lib/extensions/DocumentDbAccessExtension.js +1 -1
  13. package/lib/extensions/DomainEventMessagingExtension.js +1 -1
  14. package/lib/extensions/ExtraContainerExtension.js +1 -1
  15. package/lib/extensions/HTTPApiExtension.js +1 -1
  16. package/lib/extensions/LogExtension.js +1 -1
  17. package/lib/extensions/ModifyContainerDefinitionExtension.js +1 -1
  18. package/lib/extensions/ModifyTaskDefinitionExtension.js +1 -1
  19. package/lib/extensions/OpenTelemetryExtension.js +1 -1
  20. package/lib/extensions/PostgresDbAccessExtension.js +1 -1
  21. package/lib/extensions/SharedVolumeExtension.js +1 -1
  22. package/lib/extensions/TcpKeepAliveExtension.js +1 -1
  23. package/lib/platform/ApiGateway.js +1 -1
  24. package/lib/platform/ApiGatewayV2.js +2 -2
  25. package/lib/platform/ApplicationLoadBalancer.js +1 -1
  26. package/lib/platform/ApplicationLoadBalancerV2.js +2 -2
  27. package/lib/platform/CognitoUserPool.js +2 -2
  28. package/lib/platform/DefaultUserPoolClients.js +1 -1
  29. package/lib/platform/DocumentDB.js +2 -2
  30. package/lib/platform/PrivateDnsNamespace.js +1 -1
  31. package/lib/platform/ResourceServer.js +1 -1
  32. package/lib/platform/Vpc.js +1 -1
  33. package/lib/utils/BTCLogGroup.js +1 -1
  34. package/lib/utils/StackParameter.js +1 -1
  35. package/lib/utils/configFileParsing.d.ts +17 -9
  36. package/lib/utils/configFileParsing.js +12 -5
  37. package/package.json +5 -6
  38. package/node_modules/zod/LICENSE +0 -21
  39. package/node_modules/zod/README.md +0 -208
  40. package/node_modules/zod/dist/cjs/index.js +0 -22
  41. package/node_modules/zod/dist/cjs/package.json +0 -3
  42. package/node_modules/zod/dist/cjs/v3/ZodError.js +0 -137
  43. package/node_modules/zod/dist/cjs/v3/benchmarks/datetime.js +0 -54
  44. package/node_modules/zod/dist/cjs/v3/benchmarks/discriminatedUnion.js +0 -79
  45. package/node_modules/zod/dist/cjs/v3/benchmarks/index.js +0 -59
  46. package/node_modules/zod/dist/cjs/v3/benchmarks/ipv4.js +0 -54
  47. package/node_modules/zod/dist/cjs/v3/benchmarks/object.js +0 -70
  48. package/node_modules/zod/dist/cjs/v3/benchmarks/primitives.js +0 -159
  49. package/node_modules/zod/dist/cjs/v3/benchmarks/realworld.js +0 -56
  50. package/node_modules/zod/dist/cjs/v3/benchmarks/string.js +0 -55
  51. package/node_modules/zod/dist/cjs/v3/benchmarks/union.js +0 -79
  52. package/node_modules/zod/dist/cjs/v3/errors.js +0 -17
  53. package/node_modules/zod/dist/cjs/v3/external.js +0 -22
  54. package/node_modules/zod/dist/cjs/v3/helpers/enumUtil.js +0 -2
  55. package/node_modules/zod/dist/cjs/v3/helpers/errorUtil.js +0 -9
  56. package/node_modules/zod/dist/cjs/v3/helpers/parseUtil.js +0 -124
  57. package/node_modules/zod/dist/cjs/v3/helpers/partialUtil.js +0 -2
  58. package/node_modules/zod/dist/cjs/v3/helpers/typeAliases.js +0 -2
  59. package/node_modules/zod/dist/cjs/v3/helpers/util.js +0 -137
  60. package/node_modules/zod/dist/cjs/v3/index.js +0 -33
  61. package/node_modules/zod/dist/cjs/v3/locales/en.js +0 -109
  62. package/node_modules/zod/dist/cjs/v3/standard-schema.js +0 -2
  63. package/node_modules/zod/dist/cjs/v3/tests/Mocker.js +0 -57
  64. package/node_modules/zod/dist/cjs/v3/types.js +0 -3773
  65. package/node_modules/zod/dist/cjs/v4/classic/checks.js +0 -32
  66. package/node_modules/zod/dist/cjs/v4/classic/coerce.js +0 -47
  67. package/node_modules/zod/dist/cjs/v4/classic/compat.js +0 -63
  68. package/node_modules/zod/dist/cjs/v4/classic/errors.js +0 -67
  69. package/node_modules/zod/dist/cjs/v4/classic/external.js +0 -69
  70. package/node_modules/zod/dist/cjs/v4/classic/index.js +0 -33
  71. package/node_modules/zod/dist/cjs/v4/classic/iso.js +0 -60
  72. package/node_modules/zod/dist/cjs/v4/classic/parse.js +0 -32
  73. package/node_modules/zod/dist/cjs/v4/classic/schemas.js +0 -1100
  74. package/node_modules/zod/dist/cjs/v4/core/api.js +0 -1021
  75. package/node_modules/zod/dist/cjs/v4/core/checks.js +0 -580
  76. package/node_modules/zod/dist/cjs/v4/core/config.js +0 -10
  77. package/node_modules/zod/dist/cjs/v4/core/core.js +0 -63
  78. package/node_modules/zod/dist/cjs/v4/core/doc.js +0 -39
  79. package/node_modules/zod/dist/cjs/v4/core/errors.js +0 -222
  80. package/node_modules/zod/dist/cjs/v4/core/function.js +0 -102
  81. package/node_modules/zod/dist/cjs/v4/core/index.js +0 -44
  82. package/node_modules/zod/dist/cjs/v4/core/json-schema.js +0 -2
  83. package/node_modules/zod/dist/cjs/v4/core/parse.js +0 -87
  84. package/node_modules/zod/dist/cjs/v4/core/regexes.js +0 -103
  85. package/node_modules/zod/dist/cjs/v4/core/registries.js +0 -47
  86. package/node_modules/zod/dist/cjs/v4/core/schemas.js +0 -1719
  87. package/node_modules/zod/dist/cjs/v4/core/standard-schema.js +0 -2
  88. package/node_modules/zod/dist/cjs/v4/core/to-json-schema.js +0 -833
  89. package/node_modules/zod/dist/cjs/v4/core/util.js +0 -537
  90. package/node_modules/zod/dist/cjs/v4/core/versions.js +0 -8
  91. package/node_modules/zod/dist/cjs/v4/core/zsf.js +0 -172
  92. package/node_modules/zod/dist/cjs/v4/index.js +0 -22
  93. package/node_modules/zod/dist/cjs/v4/locales/ar.js +0 -142
  94. package/node_modules/zod/dist/cjs/v4/locales/az.js +0 -141
  95. package/node_modules/zod/dist/cjs/v4/locales/be.js +0 -190
  96. package/node_modules/zod/dist/cjs/v4/locales/ca.js +0 -144
  97. package/node_modules/zod/dist/cjs/v4/locales/cs.js +0 -161
  98. package/node_modules/zod/dist/cjs/v4/locales/de.js +0 -142
  99. package/node_modules/zod/dist/cjs/v4/locales/en.js +0 -145
  100. package/node_modules/zod/dist/cjs/v4/locales/es.js +0 -143
  101. package/node_modules/zod/dist/cjs/v4/locales/fa.js +0 -148
  102. package/node_modules/zod/dist/cjs/v4/locales/fi.js +0 -148
  103. package/node_modules/zod/dist/cjs/v4/locales/fr-CA.js +0 -143
  104. package/node_modules/zod/dist/cjs/v4/locales/fr.js +0 -142
  105. package/node_modules/zod/dist/cjs/v4/locales/he.js +0 -143
  106. package/node_modules/zod/dist/cjs/v4/locales/hu.js +0 -143
  107. package/node_modules/zod/dist/cjs/v4/locales/id.js +0 -142
  108. package/node_modules/zod/dist/cjs/v4/locales/index.js +0 -82
  109. package/node_modules/zod/dist/cjs/v4/locales/it.js +0 -143
  110. package/node_modules/zod/dist/cjs/v4/locales/ja.js +0 -141
  111. package/node_modules/zod/dist/cjs/v4/locales/kh.js +0 -143
  112. package/node_modules/zod/dist/cjs/v4/locales/ko.js +0 -147
  113. package/node_modules/zod/dist/cjs/v4/locales/mk.js +0 -144
  114. package/node_modules/zod/dist/cjs/v4/locales/ms.js +0 -142
  115. package/node_modules/zod/dist/cjs/v4/locales/nl.js +0 -143
  116. package/node_modules/zod/dist/cjs/v4/locales/no.js +0 -142
  117. package/node_modules/zod/dist/cjs/v4/locales/ota.js +0 -143
  118. package/node_modules/zod/dist/cjs/v4/locales/pl.js +0 -143
  119. package/node_modules/zod/dist/cjs/v4/locales/ps.js +0 -148
  120. package/node_modules/zod/dist/cjs/v4/locales/pt.js +0 -142
  121. package/node_modules/zod/dist/cjs/v4/locales/ru.js +0 -190
  122. package/node_modules/zod/dist/cjs/v4/locales/sl.js +0 -143
  123. package/node_modules/zod/dist/cjs/v4/locales/sv.js +0 -144
  124. package/node_modules/zod/dist/cjs/v4/locales/ta.js +0 -143
  125. package/node_modules/zod/dist/cjs/v4/locales/th.js +0 -143
  126. package/node_modules/zod/dist/cjs/v4/locales/tr.js +0 -143
  127. package/node_modules/zod/dist/cjs/v4/locales/ua.js +0 -143
  128. package/node_modules/zod/dist/cjs/v4/locales/ur.js +0 -143
  129. package/node_modules/zod/dist/cjs/v4/locales/vi.js +0 -142
  130. package/node_modules/zod/dist/cjs/v4/locales/zh-CN.js +0 -142
  131. package/node_modules/zod/dist/cjs/v4/locales/zh-TW.js +0 -143
  132. package/node_modules/zod/dist/cjs/v4/mini/checks.js +0 -34
  133. package/node_modules/zod/dist/cjs/v4/mini/coerce.js +0 -47
  134. package/node_modules/zod/dist/cjs/v4/mini/external.js +0 -61
  135. package/node_modules/zod/dist/cjs/v4/mini/index.js +0 -32
  136. package/node_modules/zod/dist/cjs/v4/mini/iso.js +0 -60
  137. package/node_modules/zod/dist/cjs/v4/mini/parse.js +0 -8
  138. package/node_modules/zod/dist/cjs/v4/mini/schemas.js +0 -831
  139. package/node_modules/zod/dist/esm/index.js +0 -3
  140. package/node_modules/zod/dist/esm/package.json +0 -3
  141. package/node_modules/zod/dist/esm/v3/ZodError.js +0 -132
  142. package/node_modules/zod/dist/esm/v3/benchmarks/datetime.js +0 -49
  143. package/node_modules/zod/dist/esm/v3/benchmarks/discriminatedUnion.js +0 -74
  144. package/node_modules/zod/dist/esm/v3/benchmarks/index.js +0 -54
  145. package/node_modules/zod/dist/esm/v3/benchmarks/ipv4.js +0 -49
  146. package/node_modules/zod/dist/esm/v3/benchmarks/object.js +0 -65
  147. package/node_modules/zod/dist/esm/v3/benchmarks/primitives.js +0 -154
  148. package/node_modules/zod/dist/esm/v3/benchmarks/realworld.js +0 -51
  149. package/node_modules/zod/dist/esm/v3/benchmarks/string.js +0 -50
  150. package/node_modules/zod/dist/esm/v3/benchmarks/union.js +0 -74
  151. package/node_modules/zod/dist/esm/v3/errors.js +0 -9
  152. package/node_modules/zod/dist/esm/v3/external.js +0 -6
  153. package/node_modules/zod/dist/esm/v3/helpers/enumUtil.js +0 -1
  154. package/node_modules/zod/dist/esm/v3/helpers/errorUtil.js +0 -6
  155. package/node_modules/zod/dist/esm/v3/helpers/parseUtil.js +0 -109
  156. package/node_modules/zod/dist/esm/v3/helpers/partialUtil.js +0 -1
  157. package/node_modules/zod/dist/esm/v3/helpers/typeAliases.js +0 -1
  158. package/node_modules/zod/dist/esm/v3/helpers/util.js +0 -133
  159. package/node_modules/zod/dist/esm/v3/index.js +0 -4
  160. package/node_modules/zod/dist/esm/v3/locales/en.js +0 -107
  161. package/node_modules/zod/dist/esm/v3/standard-schema.js +0 -1
  162. package/node_modules/zod/dist/esm/v3/tests/Mocker.js +0 -53
  163. package/node_modules/zod/dist/esm/v3/types.js +0 -3691
  164. package/node_modules/zod/dist/esm/v4/classic/checks.js +0 -1
  165. package/node_modules/zod/dist/esm/v4/classic/coerce.js +0 -17
  166. package/node_modules/zod/dist/esm/v4/classic/compat.js +0 -33
  167. package/node_modules/zod/dist/esm/v4/classic/errors.js +0 -41
  168. package/node_modules/zod/dist/esm/v4/classic/external.js +0 -18
  169. package/node_modules/zod/dist/esm/v4/classic/index.js +0 -4
  170. package/node_modules/zod/dist/esm/v4/classic/iso.js +0 -30
  171. package/node_modules/zod/dist/esm/v4/classic/parse.js +0 -6
  172. package/node_modules/zod/dist/esm/v4/classic/schemas.js +0 -998
  173. package/node_modules/zod/dist/esm/v4/core/api.js +0 -889
  174. package/node_modules/zod/dist/esm/v4/core/checks.js +0 -554
  175. package/node_modules/zod/dist/esm/v4/core/config.js +0 -6
  176. package/node_modules/zod/dist/esm/v4/core/core.js +0 -57
  177. package/node_modules/zod/dist/esm/v4/core/doc.js +0 -35
  178. package/node_modules/zod/dist/esm/v4/core/errors.js +0 -191
  179. package/node_modules/zod/dist/esm/v4/core/function.js +0 -75
  180. package/node_modules/zod/dist/esm/v4/core/index.js +0 -15
  181. package/node_modules/zod/dist/esm/v4/core/json-schema.js +0 -1
  182. package/node_modules/zod/dist/esm/v4/core/parse.js +0 -57
  183. package/node_modules/zod/dist/esm/v4/core/regexes.js +0 -95
  184. package/node_modules/zod/dist/esm/v4/core/registries.js +0 -42
  185. package/node_modules/zod/dist/esm/v4/core/schemas.js +0 -1688
  186. package/node_modules/zod/dist/esm/v4/core/standard-schema.js +0 -1
  187. package/node_modules/zod/dist/esm/v4/core/to-json-schema.js +0 -828
  188. package/node_modules/zod/dist/esm/v4/core/util.js +0 -491
  189. package/node_modules/zod/dist/esm/v4/core/versions.js +0 -5
  190. package/node_modules/zod/dist/esm/v4/core/zsf.js +0 -171
  191. package/node_modules/zod/dist/esm/v4/index.js +0 -3
  192. package/node_modules/zod/dist/esm/v4/locales/ar.js +0 -116
  193. package/node_modules/zod/dist/esm/v4/locales/az.js +0 -115
  194. package/node_modules/zod/dist/esm/v4/locales/be.js +0 -164
  195. package/node_modules/zod/dist/esm/v4/locales/ca.js +0 -118
  196. package/node_modules/zod/dist/esm/v4/locales/cs.js +0 -135
  197. package/node_modules/zod/dist/esm/v4/locales/de.js +0 -116
  198. package/node_modules/zod/dist/esm/v4/locales/en.js +0 -117
  199. package/node_modules/zod/dist/esm/v4/locales/es.js +0 -117
  200. package/node_modules/zod/dist/esm/v4/locales/fa.js +0 -122
  201. package/node_modules/zod/dist/esm/v4/locales/fi.js +0 -122
  202. package/node_modules/zod/dist/esm/v4/locales/fr-CA.js +0 -117
  203. package/node_modules/zod/dist/esm/v4/locales/fr.js +0 -116
  204. package/node_modules/zod/dist/esm/v4/locales/he.js +0 -117
  205. package/node_modules/zod/dist/esm/v4/locales/hu.js +0 -117
  206. package/node_modules/zod/dist/esm/v4/locales/id.js +0 -116
  207. package/node_modules/zod/dist/esm/v4/locales/index.js +0 -38
  208. package/node_modules/zod/dist/esm/v4/locales/it.js +0 -117
  209. package/node_modules/zod/dist/esm/v4/locales/ja.js +0 -115
  210. package/node_modules/zod/dist/esm/v4/locales/kh.js +0 -117
  211. package/node_modules/zod/dist/esm/v4/locales/ko.js +0 -121
  212. package/node_modules/zod/dist/esm/v4/locales/mk.js +0 -118
  213. package/node_modules/zod/dist/esm/v4/locales/ms.js +0 -116
  214. package/node_modules/zod/dist/esm/v4/locales/nl.js +0 -117
  215. package/node_modules/zod/dist/esm/v4/locales/no.js +0 -116
  216. package/node_modules/zod/dist/esm/v4/locales/ota.js +0 -117
  217. package/node_modules/zod/dist/esm/v4/locales/pl.js +0 -117
  218. package/node_modules/zod/dist/esm/v4/locales/ps.js +0 -122
  219. package/node_modules/zod/dist/esm/v4/locales/pt.js +0 -116
  220. package/node_modules/zod/dist/esm/v4/locales/ru.js +0 -164
  221. package/node_modules/zod/dist/esm/v4/locales/sl.js +0 -117
  222. package/node_modules/zod/dist/esm/v4/locales/sv.js +0 -118
  223. package/node_modules/zod/dist/esm/v4/locales/ta.js +0 -117
  224. package/node_modules/zod/dist/esm/v4/locales/th.js +0 -117
  225. package/node_modules/zod/dist/esm/v4/locales/tr.js +0 -115
  226. package/node_modules/zod/dist/esm/v4/locales/ua.js +0 -117
  227. package/node_modules/zod/dist/esm/v4/locales/ur.js +0 -117
  228. package/node_modules/zod/dist/esm/v4/locales/vi.js +0 -116
  229. package/node_modules/zod/dist/esm/v4/locales/zh-CN.js +0 -116
  230. package/node_modules/zod/dist/esm/v4/locales/zh-TW.js +0 -117
  231. package/node_modules/zod/dist/esm/v4/mini/checks.js +0 -1
  232. package/node_modules/zod/dist/esm/v4/mini/coerce.js +0 -17
  233. package/node_modules/zod/dist/esm/v4/mini/external.js +0 -13
  234. package/node_modules/zod/dist/esm/v4/mini/index.js +0 -3
  235. package/node_modules/zod/dist/esm/v4/mini/iso.js +0 -30
  236. package/node_modules/zod/dist/esm/v4/mini/parse.js +0 -1
  237. package/node_modules/zod/dist/esm/v4/mini/schemas.js +0 -725
  238. package/node_modules/zod/dist/types/index.d.ts +0 -3
  239. package/node_modules/zod/dist/types/package.json +0 -3
  240. package/node_modules/zod/dist/types/v3/ZodError.d.ts +0 -164
  241. package/node_modules/zod/dist/types/v3/benchmarks/datetime.d.ts +0 -5
  242. package/node_modules/zod/dist/types/v3/benchmarks/discriminatedUnion.d.ts +0 -5
  243. package/node_modules/zod/dist/types/v3/benchmarks/index.d.ts +0 -1
  244. package/node_modules/zod/dist/types/v3/benchmarks/ipv4.d.ts +0 -5
  245. package/node_modules/zod/dist/types/v3/benchmarks/object.d.ts +0 -5
  246. package/node_modules/zod/dist/types/v3/benchmarks/primitives.d.ts +0 -5
  247. package/node_modules/zod/dist/types/v3/benchmarks/realworld.d.ts +0 -5
  248. package/node_modules/zod/dist/types/v3/benchmarks/string.d.ts +0 -5
  249. package/node_modules/zod/dist/types/v3/benchmarks/union.d.ts +0 -5
  250. package/node_modules/zod/dist/types/v3/errors.d.ts +0 -5
  251. package/node_modules/zod/dist/types/v3/external.d.ts +0 -6
  252. package/node_modules/zod/dist/types/v3/helpers/enumUtil.d.ts +0 -8
  253. package/node_modules/zod/dist/types/v3/helpers/errorUtil.d.ts +0 -9
  254. package/node_modules/zod/dist/types/v3/helpers/parseUtil.d.ts +0 -78
  255. package/node_modules/zod/dist/types/v3/helpers/partialUtil.d.ts +0 -8
  256. package/node_modules/zod/dist/types/v3/helpers/typeAliases.d.ts +0 -2
  257. package/node_modules/zod/dist/types/v3/helpers/util.d.ts +0 -85
  258. package/node_modules/zod/dist/types/v3/index.d.ts +0 -4
  259. package/node_modules/zod/dist/types/v3/locales/en.d.ts +0 -3
  260. package/node_modules/zod/dist/types/v3/standard-schema.d.ts +0 -102
  261. package/node_modules/zod/dist/types/v3/tests/Mocker.d.ts +0 -17
  262. package/node_modules/zod/dist/types/v3/types.d.ts +0 -1031
  263. package/node_modules/zod/dist/types/v4/classic/checks.d.ts +0 -1
  264. package/node_modules/zod/dist/types/v4/classic/coerce.d.ts +0 -17
  265. package/node_modules/zod/dist/types/v4/classic/compat.d.ts +0 -48
  266. package/node_modules/zod/dist/types/v4/classic/errors.d.ts +0 -30
  267. package/node_modules/zod/dist/types/v4/classic/external.d.ts +0 -13
  268. package/node_modules/zod/dist/types/v4/classic/index.d.ts +0 -4
  269. package/node_modules/zod/dist/types/v4/classic/iso.d.ts +0 -22
  270. package/node_modules/zod/dist/types/v4/classic/parse.d.ts +0 -23
  271. package/node_modules/zod/dist/types/v4/classic/schemas.d.ts +0 -624
  272. package/node_modules/zod/dist/types/v4/core/api.d.ts +0 -281
  273. package/node_modules/zod/dist/types/v4/core/checks.d.ts +0 -277
  274. package/node_modules/zod/dist/types/v4/core/config.d.ts +0 -9
  275. package/node_modules/zod/dist/types/v4/core/core.d.ts +0 -47
  276. package/node_modules/zod/dist/types/v4/core/doc.d.ts +0 -14
  277. package/node_modules/zod/dist/types/v4/core/errors.d.ts +0 -204
  278. package/node_modules/zod/dist/types/v4/core/function.d.ts +0 -52
  279. package/node_modules/zod/dist/types/v4/core/index.d.ts +0 -15
  280. package/node_modules/zod/dist/types/v4/core/json-schema.d.ts +0 -87
  281. package/node_modules/zod/dist/types/v4/core/parse.d.ts +0 -25
  282. package/node_modules/zod/dist/types/v4/core/regexes.d.ts +0 -62
  283. package/node_modules/zod/dist/types/v4/core/registries.d.ts +0 -39
  284. package/node_modules/zod/dist/types/v4/core/schemas.d.ts +0 -1005
  285. package/node_modules/zod/dist/types/v4/core/standard-schema.d.ts +0 -55
  286. package/node_modules/zod/dist/types/v4/core/to-json-schema.d.ts +0 -84
  287. package/node_modules/zod/dist/types/v4/core/util.d.ts +0 -183
  288. package/node_modules/zod/dist/types/v4/core/versions.d.ts +0 -5
  289. package/node_modules/zod/dist/types/v4/core/zsf.d.ts +0 -91
  290. package/node_modules/zod/dist/types/v4/index.d.ts +0 -3
  291. package/node_modules/zod/dist/types/v4/locales/ar.d.ts +0 -4
  292. package/node_modules/zod/dist/types/v4/locales/az.d.ts +0 -4
  293. package/node_modules/zod/dist/types/v4/locales/be.d.ts +0 -4
  294. package/node_modules/zod/dist/types/v4/locales/ca.d.ts +0 -4
  295. package/node_modules/zod/dist/types/v4/locales/cs.d.ts +0 -4
  296. package/node_modules/zod/dist/types/v4/locales/de.d.ts +0 -4
  297. package/node_modules/zod/dist/types/v4/locales/en.d.ts +0 -5
  298. package/node_modules/zod/dist/types/v4/locales/es.d.ts +0 -4
  299. package/node_modules/zod/dist/types/v4/locales/fa.d.ts +0 -4
  300. package/node_modules/zod/dist/types/v4/locales/fi.d.ts +0 -4
  301. package/node_modules/zod/dist/types/v4/locales/fr-CA.d.ts +0 -4
  302. package/node_modules/zod/dist/types/v4/locales/fr.d.ts +0 -4
  303. package/node_modules/zod/dist/types/v4/locales/he.d.ts +0 -4
  304. package/node_modules/zod/dist/types/v4/locales/hu.d.ts +0 -4
  305. package/node_modules/zod/dist/types/v4/locales/id.d.ts +0 -4
  306. package/node_modules/zod/dist/types/v4/locales/index.d.ts +0 -38
  307. package/node_modules/zod/dist/types/v4/locales/it.d.ts +0 -4
  308. package/node_modules/zod/dist/types/v4/locales/ja.d.ts +0 -4
  309. package/node_modules/zod/dist/types/v4/locales/kh.d.ts +0 -4
  310. package/node_modules/zod/dist/types/v4/locales/ko.d.ts +0 -4
  311. package/node_modules/zod/dist/types/v4/locales/mk.d.ts +0 -4
  312. package/node_modules/zod/dist/types/v4/locales/ms.d.ts +0 -4
  313. package/node_modules/zod/dist/types/v4/locales/nl.d.ts +0 -4
  314. package/node_modules/zod/dist/types/v4/locales/no.d.ts +0 -4
  315. package/node_modules/zod/dist/types/v4/locales/ota.d.ts +0 -4
  316. package/node_modules/zod/dist/types/v4/locales/pl.d.ts +0 -4
  317. package/node_modules/zod/dist/types/v4/locales/ps.d.ts +0 -4
  318. package/node_modules/zod/dist/types/v4/locales/pt.d.ts +0 -4
  319. package/node_modules/zod/dist/types/v4/locales/ru.d.ts +0 -4
  320. package/node_modules/zod/dist/types/v4/locales/sl.d.ts +0 -4
  321. package/node_modules/zod/dist/types/v4/locales/sv.d.ts +0 -4
  322. package/node_modules/zod/dist/types/v4/locales/ta.d.ts +0 -4
  323. package/node_modules/zod/dist/types/v4/locales/th.d.ts +0 -4
  324. package/node_modules/zod/dist/types/v4/locales/tr.d.ts +0 -5
  325. package/node_modules/zod/dist/types/v4/locales/ua.d.ts +0 -4
  326. package/node_modules/zod/dist/types/v4/locales/ur.d.ts +0 -4
  327. package/node_modules/zod/dist/types/v4/locales/vi.d.ts +0 -4
  328. package/node_modules/zod/dist/types/v4/locales/zh-CN.d.ts +0 -4
  329. package/node_modules/zod/dist/types/v4/locales/zh-TW.d.ts +0 -4
  330. package/node_modules/zod/dist/types/v4/mini/checks.d.ts +0 -1
  331. package/node_modules/zod/dist/types/v4/mini/coerce.d.ts +0 -7
  332. package/node_modules/zod/dist/types/v4/mini/external.d.ts +0 -11
  333. package/node_modules/zod/dist/types/v4/mini/index.d.ts +0 -3
  334. package/node_modules/zod/dist/types/v4/mini/iso.d.ts +0 -22
  335. package/node_modules/zod/dist/types/v4/mini/parse.d.ts +0 -1
  336. package/node_modules/zod/dist/types/v4/mini/schemas.d.ts +0 -351
  337. package/node_modules/zod/package.json +0 -120
  338. package/node_modules/zod/v3/index.d.ts +0 -3
  339. package/node_modules/zod/v3/index.js +0 -1
  340. package/node_modules/zod/v4/core/index.d.ts +0 -1
  341. package/node_modules/zod/v4/core/index.js +0 -1
  342. package/node_modules/zod/v4/index.d.ts +0 -3
  343. package/node_modules/zod/v4/index.js +0 -1
  344. package/node_modules/zod/v4/locales/en.d.ts +0 -2
  345. package/node_modules/zod/v4/locales/en.js +0 -2
  346. package/node_modules/zod/v4/locales/index.d.ts +0 -1
  347. package/node_modules/zod/v4/locales/index.js +0 -1
  348. package/node_modules/zod/v4-mini/index.d.ts +0 -1
  349. package/node_modules/zod/v4-mini/index.js +0 -1
@@ -1,725 +0,0 @@
1
- import * as core from "zod/v4/core";
2
- import { util } from "zod/v4/core";
3
- import * as parse from "./parse.js";
4
- export const ZodMiniType = /*@__PURE__*/ core.$constructor("ZodMiniType", (inst, def) => {
5
- if (!inst._zod)
6
- throw new Error("Uninitialized schema in ZodMiniType.");
7
- core.$ZodType.init(inst, def);
8
- inst.def = def;
9
- inst.parse = (data, params) => parse.parse(inst, data, params, { callee: inst.parse });
10
- inst.safeParse = (data, params) => parse.safeParse(inst, data, params);
11
- inst.parseAsync = async (data, params) => parse.parseAsync(inst, data, params, { callee: inst.parseAsync });
12
- inst.safeParseAsync = async (data, params) => parse.safeParseAsync(inst, data, params);
13
- inst.check = (...checks) => {
14
- return inst.clone({
15
- ...def,
16
- checks: [
17
- ...(def.checks ?? []),
18
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch),
19
- ],
20
- }
21
- // { parent: true }
22
- );
23
- };
24
- inst.clone = (_def, params) => core.clone(inst, _def, params);
25
- inst.brand = () => inst;
26
- inst.register = ((reg, meta) => {
27
- reg.add(inst, meta);
28
- return inst;
29
- });
30
- });
31
- export const ZodMiniString = /*@__PURE__*/ core.$constructor("ZodMiniString", (inst, def) => {
32
- core.$ZodString.init(inst, def);
33
- ZodMiniType.init(inst, def);
34
- });
35
- export function string(params) {
36
- return core._string(ZodMiniString, params);
37
- }
38
- export const ZodMiniStringFormat = /*@__PURE__*/ core.$constructor("ZodMiniStringFormat", (inst, def) => {
39
- core.$ZodStringFormat.init(inst, def);
40
- ZodMiniString.init(inst, def);
41
- });
42
- export const ZodMiniEmail = /*@__PURE__*/ core.$constructor("ZodMiniEmail", (inst, def) => {
43
- core.$ZodEmail.init(inst, def);
44
- ZodMiniStringFormat.init(inst, def);
45
- });
46
- export function email(params) {
47
- return core._email(ZodMiniEmail, params);
48
- }
49
- export const ZodMiniGUID = /*@__PURE__*/ core.$constructor("ZodMiniGUID", (inst, def) => {
50
- core.$ZodGUID.init(inst, def);
51
- ZodMiniStringFormat.init(inst, def);
52
- });
53
- export function guid(params) {
54
- return core._guid(ZodMiniGUID, params);
55
- }
56
- export const ZodMiniUUID = /*@__PURE__*/ core.$constructor("ZodMiniUUID", (inst, def) => {
57
- core.$ZodUUID.init(inst, def);
58
- ZodMiniStringFormat.init(inst, def);
59
- });
60
- export function uuid(params) {
61
- return core._uuid(ZodMiniUUID, params);
62
- }
63
- export function uuidv4(params) {
64
- return core._uuidv4(ZodMiniUUID, params);
65
- }
66
- // ZodMiniUUIDv6
67
- export function uuidv6(params) {
68
- return core._uuidv6(ZodMiniUUID, params);
69
- }
70
- // ZodMiniUUIDv7
71
- export function uuidv7(params) {
72
- return core._uuidv7(ZodMiniUUID, params);
73
- }
74
- export const ZodMiniURL = /*@__PURE__*/ core.$constructor("ZodMiniURL", (inst, def) => {
75
- core.$ZodURL.init(inst, def);
76
- ZodMiniStringFormat.init(inst, def);
77
- });
78
- export function url(params) {
79
- return core._url(ZodMiniURL, params);
80
- }
81
- export const ZodMiniEmoji = /*@__PURE__*/ core.$constructor("ZodMiniEmoji", (inst, def) => {
82
- core.$ZodEmoji.init(inst, def);
83
- ZodMiniStringFormat.init(inst, def);
84
- });
85
- export function emoji(params) {
86
- return core._emoji(ZodMiniEmoji, params);
87
- }
88
- export const ZodMiniNanoID = /*@__PURE__*/ core.$constructor("ZodMiniNanoID", (inst, def) => {
89
- core.$ZodNanoID.init(inst, def);
90
- ZodMiniStringFormat.init(inst, def);
91
- });
92
- export function nanoid(params) {
93
- return core._nanoid(ZodMiniNanoID, params);
94
- }
95
- export const ZodMiniCUID = /*@__PURE__*/ core.$constructor("ZodMiniCUID", (inst, def) => {
96
- core.$ZodCUID.init(inst, def);
97
- ZodMiniStringFormat.init(inst, def);
98
- });
99
- export function cuid(params) {
100
- return core._cuid(ZodMiniCUID, params);
101
- }
102
- export const ZodMiniCUID2 = /*@__PURE__*/ core.$constructor("ZodMiniCUID2", (inst, def) => {
103
- core.$ZodCUID2.init(inst, def);
104
- ZodMiniStringFormat.init(inst, def);
105
- });
106
- export function cuid2(params) {
107
- return core._cuid2(ZodMiniCUID2, params);
108
- }
109
- export const ZodMiniULID = /*@__PURE__*/ core.$constructor("ZodMiniULID", (inst, def) => {
110
- core.$ZodULID.init(inst, def);
111
- ZodMiniStringFormat.init(inst, def);
112
- });
113
- export function ulid(params) {
114
- return core._ulid(ZodMiniULID, params);
115
- }
116
- export const ZodMiniXID = /*@__PURE__*/ core.$constructor("ZodMiniXID", (inst, def) => {
117
- core.$ZodXID.init(inst, def);
118
- ZodMiniStringFormat.init(inst, def);
119
- });
120
- export function xid(params) {
121
- return core._xid(ZodMiniXID, params);
122
- }
123
- export const ZodMiniKSUID = /*@__PURE__*/ core.$constructor("ZodMiniKSUID", (inst, def) => {
124
- core.$ZodKSUID.init(inst, def);
125
- ZodMiniStringFormat.init(inst, def);
126
- });
127
- export function ksuid(params) {
128
- return core._ksuid(ZodMiniKSUID, params);
129
- }
130
- export const ZodMiniIPv4 = /*@__PURE__*/ core.$constructor("ZodMiniIPv4", (inst, def) => {
131
- core.$ZodIPv4.init(inst, def);
132
- ZodMiniStringFormat.init(inst, def);
133
- });
134
- export function ipv4(params) {
135
- return core._ipv4(ZodMiniIPv4, params);
136
- }
137
- export const ZodMiniIPv6 = /*@__PURE__*/ core.$constructor("ZodMiniIPv6", (inst, def) => {
138
- core.$ZodIPv6.init(inst, def);
139
- ZodMiniStringFormat.init(inst, def);
140
- });
141
- export function ipv6(params) {
142
- return core._ipv6(ZodMiniIPv6, params);
143
- }
144
- export const ZodMiniCIDRv4 = /*@__PURE__*/ core.$constructor("ZodMiniCIDRv4", (inst, def) => {
145
- core.$ZodCIDRv4.init(inst, def);
146
- ZodMiniStringFormat.init(inst, def);
147
- });
148
- export function cidrv4(params) {
149
- return core._cidrv4(ZodMiniCIDRv4, params);
150
- }
151
- export const ZodMiniCIDRv6 = /*@__PURE__*/ core.$constructor("ZodMiniCIDRv6", (inst, def) => {
152
- core.$ZodCIDRv6.init(inst, def);
153
- ZodMiniStringFormat.init(inst, def);
154
- });
155
- export function cidrv6(params) {
156
- return core._cidrv6(ZodMiniCIDRv6, params);
157
- }
158
- export const ZodMiniBase64 = /*@__PURE__*/ core.$constructor("ZodMiniBase64", (inst, def) => {
159
- core.$ZodBase64.init(inst, def);
160
- ZodMiniStringFormat.init(inst, def);
161
- });
162
- export function base64(params) {
163
- return core._base64(ZodMiniBase64, params);
164
- }
165
- export const ZodMiniBase64URL = /*@__PURE__*/ core.$constructor("ZodMiniBase64URL", (inst, def) => {
166
- core.$ZodBase64URL.init(inst, def);
167
- ZodMiniStringFormat.init(inst, def);
168
- });
169
- export function base64url(params) {
170
- return core._base64url(ZodMiniBase64URL, params);
171
- }
172
- export const ZodMiniE164 = /*@__PURE__*/ core.$constructor("ZodMiniE164", (inst, def) => {
173
- core.$ZodE164.init(inst, def);
174
- ZodMiniStringFormat.init(inst, def);
175
- });
176
- export function e164(params) {
177
- return core._e164(ZodMiniE164, params);
178
- }
179
- export const ZodMiniJWT = /*@__PURE__*/ core.$constructor("ZodMiniJWT", (inst, def) => {
180
- core.$ZodJWT.init(inst, def);
181
- ZodMiniStringFormat.init(inst, def);
182
- });
183
- export function jwt(params) {
184
- return core._jwt(ZodMiniJWT, params);
185
- }
186
- export const ZodMiniNumber = /*@__PURE__*/ core.$constructor("ZodMiniNumber", (inst, def) => {
187
- core.$ZodNumber.init(inst, def);
188
- ZodMiniType.init(inst, def);
189
- });
190
- export function number(params) {
191
- return core._number(ZodMiniNumber, params);
192
- }
193
- export const ZodMiniNumberFormat = /*@__PURE__*/ core.$constructor("ZodMiniNumberFormat", (inst, def) => {
194
- core.$ZodNumberFormat.init(inst, def);
195
- ZodMiniNumber.init(inst, def);
196
- });
197
- // int
198
- export function int(params) {
199
- return core._int(ZodMiniNumberFormat, params);
200
- }
201
- // float32
202
- export function float32(params) {
203
- return core._float32(ZodMiniNumberFormat, params);
204
- }
205
- // float64
206
- export function float64(params) {
207
- return core._float64(ZodMiniNumberFormat, params);
208
- }
209
- // int32
210
- export function int32(params) {
211
- return core._int32(ZodMiniNumberFormat, params);
212
- }
213
- // uint32
214
- export function uint32(params) {
215
- return core._uint32(ZodMiniNumberFormat, params);
216
- }
217
- export const ZodMiniBoolean = /*@__PURE__*/ core.$constructor("ZodMiniBoolean", (inst, def) => {
218
- core.$ZodBoolean.init(inst, def);
219
- ZodMiniType.init(inst, def);
220
- });
221
- export function boolean(params) {
222
- return core._boolean(ZodMiniBoolean, params);
223
- }
224
- export const ZodMiniBigInt = /*@__PURE__*/ core.$constructor("ZodMiniBigInt", (inst, def) => {
225
- core.$ZodBigInt.init(inst, def);
226
- ZodMiniType.init(inst, def);
227
- });
228
- export function bigint(params) {
229
- return core._bigint(ZodMiniBigInt, params);
230
- }
231
- export const ZodMiniBigIntFormat = /*@__PURE__*/ core.$constructor("ZodMiniBigIntFormat", (inst, def) => {
232
- core.$ZodBigIntFormat.init(inst, def);
233
- ZodMiniBigInt.init(inst, def);
234
- });
235
- // int64
236
- export function int64(params) {
237
- return core._int64(ZodMiniBigIntFormat, params);
238
- }
239
- // uint64
240
- export function uint64(params) {
241
- return core._uint64(ZodMiniBigIntFormat, params);
242
- }
243
- export const ZodMiniSymbol = /*@__PURE__*/ core.$constructor("ZodMiniSymbol", (inst, def) => {
244
- core.$ZodSymbol.init(inst, def);
245
- ZodMiniType.init(inst, def);
246
- });
247
- export function symbol(params) {
248
- return core._symbol(ZodMiniSymbol, params);
249
- }
250
- export const ZodMiniUndefined = /*@__PURE__*/ core.$constructor("ZodMiniUndefined", (inst, def) => {
251
- core.$ZodUndefined.init(inst, def);
252
- ZodMiniType.init(inst, def);
253
- });
254
- function _undefined(params) {
255
- return core._undefined(ZodMiniUndefined, params);
256
- }
257
- export { _undefined as undefined };
258
- export const ZodMiniNull = /*@__PURE__*/ core.$constructor("ZodMiniNull", (inst, def) => {
259
- core.$ZodNull.init(inst, def);
260
- ZodMiniType.init(inst, def);
261
- });
262
- function _null(params) {
263
- return core._null(ZodMiniNull, params);
264
- }
265
- export { _null as null };
266
- export const ZodMiniAny = /*@__PURE__*/ core.$constructor("ZodMiniAny", (inst, def) => {
267
- core.$ZodAny.init(inst, def);
268
- ZodMiniType.init(inst, def);
269
- });
270
- export function any() {
271
- return core._any(ZodMiniAny);
272
- }
273
- export const ZodMiniUnknown = /*@__PURE__*/ core.$constructor("ZodMiniUnknown", (inst, def) => {
274
- core.$ZodUnknown.init(inst, def);
275
- ZodMiniType.init(inst, def);
276
- });
277
- export function unknown() {
278
- return core._unknown(ZodMiniUnknown);
279
- }
280
- export const ZodMiniNever = /*@__PURE__*/ core.$constructor("ZodMiniNever", (inst, def) => {
281
- core.$ZodNever.init(inst, def);
282
- ZodMiniType.init(inst, def);
283
- });
284
- export function never(params) {
285
- return core._never(ZodMiniNever, params);
286
- }
287
- export const ZodMiniVoid = /*@__PURE__*/ core.$constructor("ZodMiniVoid", (inst, def) => {
288
- core.$ZodVoid.init(inst, def);
289
- ZodMiniType.init(inst, def);
290
- });
291
- function _void(params) {
292
- return core._void(ZodMiniVoid, params);
293
- }
294
- export { _void as void };
295
- export const ZodMiniDate = /*@__PURE__*/ core.$constructor("ZodMiniDate", (inst, def) => {
296
- core.$ZodDate.init(inst, def);
297
- ZodMiniType.init(inst, def);
298
- });
299
- export function date(params) {
300
- return core._date(ZodMiniDate, params);
301
- }
302
- export const ZodMiniArray = /*@__PURE__*/ core.$constructor("ZodMiniArray", (inst, def) => {
303
- core.$ZodArray.init(inst, def);
304
- ZodMiniType.init(inst, def);
305
- });
306
- export function array(element, params) {
307
- return new ZodMiniArray({
308
- type: "array",
309
- element: element,
310
- ...util.normalizeParams(params),
311
- });
312
- }
313
- // .keyof
314
- export function keyof(schema) {
315
- const shape = schema._zod.def.shape;
316
- return literal(Object.keys(shape));
317
- }
318
- export const ZodMiniObject = /*@__PURE__*/ core.$constructor("ZodMiniObject", (inst, def) => {
319
- core.$ZodObject.init(inst, def);
320
- ZodMiniType.init(inst, def);
321
- util.defineLazy(inst, "shape", () => def.shape);
322
- });
323
- export function object(shape, params) {
324
- const def = {
325
- type: "object",
326
- get shape() {
327
- util.assignProp(this, "shape", { ...shape });
328
- return this.shape;
329
- },
330
- ...util.normalizeParams(params),
331
- };
332
- return new ZodMiniObject(def);
333
- }
334
- // strictObject
335
- export function strictObject(shape, params) {
336
- return new ZodMiniObject({
337
- type: "object",
338
- // shape: shape as core.$ZodLooseShape,
339
- get shape() {
340
- util.assignProp(this, "shape", { ...shape });
341
- return this.shape;
342
- },
343
- catchall: never(),
344
- ...util.normalizeParams(params),
345
- });
346
- }
347
- // looseObject
348
- export function looseObject(shape, params) {
349
- return new ZodMiniObject({
350
- type: "object",
351
- // shape: shape as core.$ZodLooseShape,
352
- get shape() {
353
- util.assignProp(this, "shape", { ...shape });
354
- return this.shape;
355
- },
356
- // get optional() {
357
- // return util.optionalKeys(shape);
358
- // },
359
- catchall: unknown(),
360
- ...util.normalizeParams(params),
361
- });
362
- }
363
- // object methods
364
- export function extend(schema, shape) {
365
- return util.extend(schema, shape);
366
- }
367
- export function merge(schema, shape) {
368
- return util.extend(schema, shape);
369
- }
370
- export function pick(schema, mask) {
371
- return util.pick(schema, mask);
372
- }
373
- // .omit
374
- export function omit(schema, mask) {
375
- return util.omit(schema, mask);
376
- }
377
- export function partial(schema, mask) {
378
- return util.partial(ZodMiniOptional, schema, mask);
379
- }
380
- export function required(schema, mask) {
381
- return util.required(ZodMiniNonOptional, schema, mask);
382
- }
383
- export function catchall(inst, catchall) {
384
- return inst.clone({ ...inst._zod.def, catchall: catchall });
385
- }
386
- export const ZodMiniUnion = /*@__PURE__*/ core.$constructor("ZodMiniUnion", (inst, def) => {
387
- core.$ZodUnion.init(inst, def);
388
- ZodMiniType.init(inst, def);
389
- });
390
- export function union(options, params) {
391
- return new ZodMiniUnion({
392
- type: "union",
393
- options: options,
394
- ...util.normalizeParams(params),
395
- });
396
- }
397
- export const ZodMiniDiscriminatedUnion = /*@__PURE__*/ core.$constructor("ZodMiniDiscriminatedUnion", (inst, def) => {
398
- core.$ZodDiscriminatedUnion.init(inst, def);
399
- ZodMiniType.init(inst, def);
400
- });
401
- export function discriminatedUnion(discriminator, options, params) {
402
- return new ZodMiniDiscriminatedUnion({
403
- type: "union",
404
- options,
405
- discriminator,
406
- ...util.normalizeParams(params),
407
- });
408
- }
409
- export const ZodMiniIntersection = /*@__PURE__*/ core.$constructor("ZodMiniIntersection", (inst, def) => {
410
- core.$ZodIntersection.init(inst, def);
411
- ZodMiniType.init(inst, def);
412
- });
413
- export function intersection(left, right) {
414
- return new ZodMiniIntersection({
415
- type: "intersection",
416
- left: left,
417
- right: right,
418
- });
419
- }
420
- export const ZodMiniTuple = /*@__PURE__*/ core.$constructor("ZodMiniTuple", (inst, def) => {
421
- core.$ZodTuple.init(inst, def);
422
- ZodMiniType.init(inst, def);
423
- });
424
- export function tuple(items, _paramsOrRest, _params) {
425
- const hasRest = _paramsOrRest instanceof core.$ZodType;
426
- const params = hasRest ? _params : _paramsOrRest;
427
- const rest = hasRest ? _paramsOrRest : null;
428
- return new ZodMiniTuple({
429
- type: "tuple",
430
- items: items,
431
- rest,
432
- ...util.normalizeParams(params),
433
- });
434
- }
435
- export const ZodMiniRecord = /*@__PURE__*/ core.$constructor("ZodMiniRecord", (inst, def) => {
436
- core.$ZodRecord.init(inst, def);
437
- ZodMiniType.init(inst, def);
438
- });
439
- export function record(keyType, valueType, params) {
440
- return new ZodMiniRecord({
441
- type: "record",
442
- keyType,
443
- valueType: valueType,
444
- ...util.normalizeParams(params),
445
- });
446
- }
447
- export function partialRecord(keyType, valueType, params) {
448
- return new ZodMiniRecord({
449
- type: "record",
450
- keyType: union([keyType, never()]),
451
- valueType: valueType,
452
- ...util.normalizeParams(params),
453
- });
454
- }
455
- export const ZodMiniMap = /*@__PURE__*/ core.$constructor("ZodMiniMap", (inst, def) => {
456
- core.$ZodMap.init(inst, def);
457
- ZodMiniType.init(inst, def);
458
- });
459
- export function map(keyType, valueType, params) {
460
- return new ZodMiniMap({
461
- type: "map",
462
- keyType: keyType,
463
- valueType: valueType,
464
- ...util.normalizeParams(params),
465
- });
466
- }
467
- export const ZodMiniSet = /*@__PURE__*/ core.$constructor("ZodMiniSet", (inst, def) => {
468
- core.$ZodSet.init(inst, def);
469
- ZodMiniType.init(inst, def);
470
- });
471
- export function set(valueType, params) {
472
- return new ZodMiniSet({
473
- type: "set",
474
- valueType: valueType,
475
- ...util.normalizeParams(params),
476
- });
477
- }
478
- export const ZodMiniEnum = /*@__PURE__*/ core.$constructor("ZodMiniEnum", (inst, def) => {
479
- core.$ZodEnum.init(inst, def);
480
- ZodMiniType.init(inst, def);
481
- });
482
- function _enum(values, params) {
483
- const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
484
- return new ZodMiniEnum({
485
- type: "enum",
486
- entries,
487
- ...util.normalizeParams(params),
488
- });
489
- }
490
- export { _enum as enum };
491
- /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
492
- *
493
- * ```ts
494
- * enum Colors { red, green, blue }
495
- * z.enum(Colors);
496
- * ```
497
- */
498
- export function nativeEnum(entries, params) {
499
- return new ZodMiniEnum({
500
- type: "enum",
501
- entries,
502
- ...util.normalizeParams(params),
503
- });
504
- }
505
- export const ZodMiniLiteral = /*@__PURE__*/ core.$constructor("ZodMiniLiteral", (inst, def) => {
506
- core.$ZodLiteral.init(inst, def);
507
- ZodMiniType.init(inst, def);
508
- });
509
- export function literal(value, params) {
510
- return new ZodMiniLiteral({
511
- type: "literal",
512
- values: Array.isArray(value) ? value : [value],
513
- ...util.normalizeParams(params),
514
- });
515
- }
516
- export const ZodMiniFile = /*@__PURE__*/ core.$constructor("ZodMiniFile", (inst, def) => {
517
- core.$ZodFile.init(inst, def);
518
- ZodMiniType.init(inst, def);
519
- });
520
- export function file(params) {
521
- return core._file(ZodMiniFile, params);
522
- }
523
- export const ZodMiniTransform = /*@__PURE__*/ core.$constructor("ZodMiniTransform", (inst, def) => {
524
- core.$ZodTransform.init(inst, def);
525
- ZodMiniType.init(inst, def);
526
- });
527
- export function transform(fn) {
528
- return new ZodMiniTransform({
529
- type: "transform",
530
- transform: fn,
531
- });
532
- }
533
- export const ZodMiniOptional = /*@__PURE__*/ core.$constructor("ZodMiniOptional", (inst, def) => {
534
- core.$ZodOptional.init(inst, def);
535
- ZodMiniType.init(inst, def);
536
- });
537
- export function optional(innerType) {
538
- return new ZodMiniOptional({
539
- type: "optional",
540
- innerType: innerType,
541
- });
542
- }
543
- export const ZodMiniNullable = /*@__PURE__*/ core.$constructor("ZodMiniNullable", (inst, def) => {
544
- core.$ZodNullable.init(inst, def);
545
- ZodMiniType.init(inst, def);
546
- });
547
- export function nullable(innerType) {
548
- return new ZodMiniNullable({
549
- type: "nullable",
550
- innerType: innerType,
551
- });
552
- }
553
- // nullish
554
- export function nullish(innerType) {
555
- return optional(nullable(innerType));
556
- }
557
- export const ZodMiniDefault = /*@__PURE__*/ core.$constructor("ZodMiniDefault", (inst, def) => {
558
- core.$ZodDefault.init(inst, def);
559
- ZodMiniType.init(inst, def);
560
- });
561
- export function _default(innerType, defaultValue) {
562
- return new ZodMiniDefault({
563
- type: "default",
564
- innerType: innerType,
565
- get defaultValue() {
566
- return typeof defaultValue === "function" ? defaultValue() : defaultValue;
567
- },
568
- });
569
- }
570
- export const ZodMiniPrefault = /*@__PURE__*/ core.$constructor("ZodMiniPrefault", (inst, def) => {
571
- core.$ZodPrefault.init(inst, def);
572
- ZodMiniType.init(inst, def);
573
- });
574
- export function prefault(innerType, defaultValue) {
575
- return new ZodMiniPrefault({
576
- type: "prefault",
577
- innerType: innerType,
578
- get defaultValue() {
579
- return typeof defaultValue === "function" ? defaultValue() : defaultValue;
580
- },
581
- });
582
- }
583
- export const ZodMiniNonOptional = /*@__PURE__*/ core.$constructor("ZodMiniNonOptional", (inst, def) => {
584
- core.$ZodNonOptional.init(inst, def);
585
- ZodMiniType.init(inst, def);
586
- });
587
- export function nonoptional(innerType, params) {
588
- return new ZodMiniNonOptional({
589
- type: "nonoptional",
590
- innerType: innerType,
591
- ...util.normalizeParams(params),
592
- });
593
- }
594
- export const ZodMiniSuccess = /*@__PURE__*/ core.$constructor("ZodMiniSuccess", (inst, def) => {
595
- core.$ZodSuccess.init(inst, def);
596
- ZodMiniType.init(inst, def);
597
- });
598
- export function success(innerType) {
599
- return new ZodMiniSuccess({
600
- type: "success",
601
- innerType: innerType,
602
- });
603
- }
604
- export const ZodMiniCatch = /*@__PURE__*/ core.$constructor("ZodMiniCatch", (inst, def) => {
605
- core.$ZodCatch.init(inst, def);
606
- ZodMiniType.init(inst, def);
607
- });
608
- function _catch(innerType, catchValue) {
609
- return new ZodMiniCatch({
610
- type: "catch",
611
- innerType: innerType,
612
- catchValue: (typeof catchValue === "function" ? catchValue : () => catchValue),
613
- });
614
- }
615
- export { _catch as catch };
616
- export const ZodMiniNaN = /*@__PURE__*/ core.$constructor("ZodMiniNaN", (inst, def) => {
617
- core.$ZodNaN.init(inst, def);
618
- ZodMiniType.init(inst, def);
619
- });
620
- export function nan(params) {
621
- return core._nan(ZodMiniNaN, params);
622
- }
623
- export const ZodMiniPipe = /*@__PURE__*/ core.$constructor("ZodMiniPipe", (inst, def) => {
624
- core.$ZodPipe.init(inst, def);
625
- ZodMiniType.init(inst, def);
626
- });
627
- export function pipe(in_, out) {
628
- return new ZodMiniPipe({
629
- type: "pipe",
630
- in: in_,
631
- out: out,
632
- });
633
- }
634
- export const ZodMiniReadonly = /*@__PURE__*/ core.$constructor("ZodMiniReadonly", (inst, def) => {
635
- core.$ZodReadonly.init(inst, def);
636
- ZodMiniType.init(inst, def);
637
- });
638
- export function readonly(innerType) {
639
- return new ZodMiniReadonly({
640
- type: "readonly",
641
- innerType: innerType,
642
- });
643
- }
644
- export const ZodMiniTemplateLiteral = /*@__PURE__*/ core.$constructor("ZodMiniTemplateLiteral", (inst, def) => {
645
- core.$ZodTemplateLiteral.init(inst, def);
646
- ZodMiniType.init(inst, def);
647
- });
648
- export function templateLiteral(parts, params) {
649
- return new ZodMiniTemplateLiteral({
650
- type: "template_literal",
651
- parts,
652
- ...util.normalizeParams(params),
653
- });
654
- }
655
- export const ZodMiniLazy = /*@__PURE__*/ core.$constructor("ZodMiniLazy", (inst, def) => {
656
- core.$ZodLazy.init(inst, def);
657
- ZodMiniType.init(inst, def);
658
- });
659
- // export function lazy<T extends object>(getter: () => T): T {
660
- // return util.createTransparentProxy<T>(getter);
661
- // }
662
- function _lazy(getter) {
663
- return new ZodMiniLazy({
664
- type: "lazy",
665
- getter: getter,
666
- });
667
- }
668
- export { _lazy as lazy };
669
- export const ZodMiniPromise = /*@__PURE__*/ core.$constructor("ZodMiniPromise", (inst, def) => {
670
- core.$ZodPromise.init(inst, def);
671
- ZodMiniType.init(inst, def);
672
- });
673
- export function promise(innerType) {
674
- return new ZodMiniPromise({
675
- type: "promise",
676
- innerType: innerType,
677
- });
678
- }
679
- export const ZodMiniCustom = /*@__PURE__*/ core.$constructor("ZodMiniCustom", (inst, def) => {
680
- core.$ZodCustom.init(inst, def);
681
- ZodMiniType.init(inst, def);
682
- });
683
- // custom checks
684
- export function check(fn, params) {
685
- const ch = new core.$ZodCheck({
686
- check: "custom",
687
- ...util.normalizeParams(params),
688
- });
689
- ch._zod.check = fn;
690
- return ch;
691
- }
692
- // ZodCustom
693
- // custom schema
694
- export function custom(fn, _params) {
695
- return core._custom(ZodMiniCustom, fn ?? (() => true), _params);
696
- }
697
- // refine
698
- export function refine(fn, _params = {}) {
699
- return core._refine(ZodMiniCustom, fn, _params);
700
- }
701
- // instanceof
702
- class Class {
703
- constructor(..._args) { }
704
- }
705
- function _instanceof(cls, params = {
706
- error: `Input not instance of ${cls.name}`,
707
- }) {
708
- const inst = custom((data) => data instanceof cls, params);
709
- inst._zod.bag.Class = cls;
710
- return inst;
711
- }
712
- export { _instanceof as instanceof };
713
- // stringbool
714
- export const stringbool = (...args) => core._stringbool({
715
- Pipe: ZodMiniPipe,
716
- Boolean: ZodMiniBoolean,
717
- String: ZodMiniString,
718
- Transform: ZodMiniTransform,
719
- }, ...args);
720
- export function json() {
721
- const jsonSchema = _lazy(() => {
722
- return union([string(), number(), boolean(), _null(), array(jsonSchema), record(string(), jsonSchema)]);
723
- });
724
- return jsonSchema;
725
- }