bantou 0.1.0 → 0.2.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 (515) hide show
  1. package/.output/nitro.json +13 -0
  2. package/.output/public/_nuxt/BmGsA4i2.js +1 -0
  3. package/.output/public/_nuxt/D_G6gzEa.js +1 -0
  4. package/.output/public/_nuxt/builds/latest.json +1 -0
  5. package/.output/public/_nuxt/builds/meta/1a8fc623-6671-445b-bdd3-c3d073520a3a.json +1 -0
  6. package/.output/public/_nuxt/entry.CZSvzYhH.css +1 -0
  7. package/.output/public/_nuxt/error-404.C3wqHTJz.css +1 -0
  8. package/.output/public/_nuxt/error-500.D6rBzoDj.css +1 -0
  9. package/.output/public/_nuxt/pdFQkwM_.js +4 -0
  10. package/.output/server/chunks/_/error-500.mjs +20 -0
  11. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  12. package/.output/server/chunks/nitro/nitro.mjs +5870 -0
  13. package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
  14. package/.output/server/chunks/routes/mcp.mjs +22 -0
  15. package/.output/server/chunks/routes/mcp.mjs.map +1 -0
  16. package/.output/server/chunks/routes/renderer.mjs +462 -0
  17. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  18. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  19. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  20. package/.output/server/chunks/virtual/precomputed.mjs +4 -0
  21. package/.output/server/chunks/virtual/precomputed.mjs.map +1 -0
  22. package/.output/server/index.mjs +18 -0
  23. package/.output/server/index.mjs.map +1 -0
  24. package/.output/server/node_modules/@babel/parser/lib/index.js +14657 -0
  25. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  26. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +64 -0
  27. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +16 -0
  28. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js +32 -0
  29. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +246 -0
  30. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/package.json +1 -0
  31. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +41 -0
  32. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +429 -0
  33. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +971 -0
  34. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/requestBody.js +58 -0
  35. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js +13 -0
  36. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +961 -0
  37. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +228 -0
  38. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +51 -0
  39. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js +57 -0
  40. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +1137 -0
  41. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js +92 -0
  42. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js +239 -0
  43. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +2065 -0
  44. package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +87 -0
  45. package/.output/server/node_modules/@modelcontextprotocol/sdk/package.json +165 -0
  46. package/.output/server/node_modules/@parcel/watcher-wasm/index.mjs +349 -0
  47. package/.output/server/node_modules/@parcel/watcher-wasm/package.json +44 -0
  48. package/.output/server/node_modules/@parcel/watcher-wasm/watcher.wasm +0 -0
  49. package/.output/server/node_modules/@parcel/watcher-wasm/wrapper.js +88 -0
  50. package/.output/server/node_modules/@unagents/messenger-broker/dist/index.mjs +12 -0
  51. package/.output/server/node_modules/@unagents/messenger-broker/dist/shared/messenger-broker.B8W77sqB.mjs +1177 -0
  52. package/.output/server/node_modules/@unagents/messenger-broker/package.json +37 -0
  53. package/.output/server/node_modules/@unagents/messenger-client/dist/index.mjs +9 -0
  54. package/.output/server/node_modules/@unagents/messenger-client/dist/shared/messenger-client.CfQVmH_Z.mjs +975 -0
  55. package/.output/server/node_modules/@unagents/messenger-client/dist/shared/messenger-client.CoDKzubj.mjs +1000 -0
  56. package/.output/server/node_modules/@unagents/messenger-client/package.json +37 -0
  57. package/.output/server/node_modules/@unagents/messenger-protocol/dist/index.mjs +103 -0
  58. package/.output/server/node_modules/@unagents/messenger-protocol/package.json +29 -0
  59. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6802 -0
  60. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  61. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +729 -0
  62. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  63. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1420 -0
  64. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  65. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1933 -0
  66. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  67. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +7085 -0
  68. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  69. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1917 -0
  70. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  71. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +951 -0
  72. package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
  73. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +655 -0
  74. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  75. package/.output/server/node_modules/ajv/dist/ajv.js +50 -0
  76. package/.output/server/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  77. package/.output/server/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  78. package/.output/server/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  79. package/.output/server/node_modules/ajv/dist/compile/errors.js +123 -0
  80. package/.output/server/node_modules/ajv/dist/compile/index.js +242 -0
  81. package/.output/server/node_modules/ajv/dist/compile/names.js +28 -0
  82. package/.output/server/node_modules/ajv/dist/compile/ref_error.js +12 -0
  83. package/.output/server/node_modules/ajv/dist/compile/resolve.js +155 -0
  84. package/.output/server/node_modules/ajv/dist/compile/rules.js +26 -0
  85. package/.output/server/node_modules/ajv/dist/compile/util.js +178 -0
  86. package/.output/server/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  87. package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  88. package/.output/server/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  89. package/.output/server/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  90. package/.output/server/node_modules/ajv/dist/compile/validate/index.js +520 -0
  91. package/.output/server/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  92. package/.output/server/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  93. package/.output/server/node_modules/ajv/dist/core.js +618 -0
  94. package/.output/server/node_modules/ajv/dist/refs/data.json +13 -0
  95. package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  96. package/.output/server/node_modules/ajv/dist/runtime/equal.js +7 -0
  97. package/.output/server/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  98. package/.output/server/node_modules/ajv/dist/runtime/uri.js +6 -0
  99. package/.output/server/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  100. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  101. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  102. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  103. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  104. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  105. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  106. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  107. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  108. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  109. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  110. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  111. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  112. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  113. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  114. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  115. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  116. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  117. package/.output/server/node_modules/ajv/dist/vocabularies/code.js +131 -0
  118. package/.output/server/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  119. package/.output/server/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  120. package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  121. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  122. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  123. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  124. package/.output/server/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  125. package/.output/server/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  126. package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  127. package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  128. package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  129. package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  130. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  131. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  132. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  133. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  134. package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  135. package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
  136. package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  137. package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  138. package/.output/server/node_modules/ajv/package.json +126 -0
  139. package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
  140. package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
  141. package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
  142. package/.output/server/node_modules/ajv-formats/package.json +74 -0
  143. package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  144. package/.output/server/node_modules/consola/dist/core.mjs +512 -0
  145. package/.output/server/node_modules/consola/dist/index.mjs +651 -0
  146. package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  147. package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  148. package/.output/server/node_modules/consola/dist/utils.mjs +54 -0
  149. package/.output/server/node_modules/consola/package.json +136 -0
  150. package/.output/server/node_modules/content-type/index.js +225 -0
  151. package/.output/server/node_modules/content-type/package.json +42 -0
  152. package/.output/server/node_modules/cookie-es/dist/index.mjs +268 -0
  153. package/.output/server/node_modules/cookie-es/package.json +46 -0
  154. package/.output/server/node_modules/crossws/dist/_chunks/_request.mjs +83 -0
  155. package/.output/server/node_modules/crossws/dist/_chunks/adapter.mjs +234 -0
  156. package/.output/server/node_modules/crossws/dist/_chunks/error.mjs +7 -0
  157. package/.output/server/node_modules/crossws/dist/_chunks/libs/ws.mjs +6 -0
  158. package/.output/server/node_modules/crossws/dist/_chunks/node.mjs +220 -0
  159. package/.output/server/node_modules/crossws/dist/_chunks/peer.mjs +208 -0
  160. package/.output/server/node_modules/crossws/dist/adapters/node.mjs +1 -0
  161. package/.output/server/node_modules/crossws/package.json +115 -0
  162. package/.output/server/node_modules/defu/dist/defu.mjs +69 -0
  163. package/.output/server/node_modules/defu/package.json +48 -0
  164. package/.output/server/node_modules/destr/dist/index.mjs +72 -0
  165. package/.output/server/node_modules/destr/package.json +47 -0
  166. package/.output/server/node_modules/devalue/index.js +17 -0
  167. package/.output/server/node_modules/devalue/package.json +39 -0
  168. package/.output/server/node_modules/devalue/src/base64.js +60 -0
  169. package/.output/server/node_modules/devalue/src/constants.js +12 -0
  170. package/.output/server/node_modules/devalue/src/operations.js +221 -0
  171. package/.output/server/node_modules/devalue/src/parse.js +279 -0
  172. package/.output/server/node_modules/devalue/src/stringify.js +433 -0
  173. package/.output/server/node_modules/devalue/src/uneval.js +698 -0
  174. package/.output/server/node_modules/devalue/src/utils.js +190 -0
  175. package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  176. package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  177. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  178. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  179. package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  180. package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  181. package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  182. package/.output/server/node_modules/entities/package.json +120 -0
  183. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  184. package/.output/server/node_modules/estree-walker/package.json +37 -0
  185. package/.output/server/node_modules/fast-deep-equal/index.js +46 -0
  186. package/.output/server/node_modules/fast-deep-equal/package.json +61 -0
  187. package/.output/server/node_modules/fast-uri/index.js +711 -0
  188. package/.output/server/node_modules/fast-uri/lib/schemes.js +272 -0
  189. package/.output/server/node_modules/fast-uri/lib/utils.js +799 -0
  190. package/.output/server/node_modules/fast-uri/package.json +68 -0
  191. package/.output/server/node_modules/get-port-please/dist/index.mjs +430 -0
  192. package/.output/server/node_modules/get-port-please/package.json +39 -0
  193. package/.output/server/node_modules/h3/dist/index.mjs +2498 -0
  194. package/.output/server/node_modules/h3/package.json +75 -0
  195. package/.output/server/node_modules/hookable/dist/index.mjs +257 -0
  196. package/.output/server/node_modules/hookable/package.json +54 -0
  197. package/.output/server/node_modules/http-shutdown/index.js +85 -0
  198. package/.output/server/node_modules/http-shutdown/package.json +32 -0
  199. package/.output/server/node_modules/iron-webcrypto/dist/index.js +298 -0
  200. package/.output/server/node_modules/iron-webcrypto/package.json +72 -0
  201. package/.output/server/node_modules/is-extglob/index.js +20 -0
  202. package/.output/server/node_modules/is-extglob/package.json +69 -0
  203. package/.output/server/node_modules/is-glob/index.js +150 -0
  204. package/.output/server/node_modules/is-glob/package.json +81 -0
  205. package/.output/server/node_modules/jiti/dist/jiti.cjs +1 -0
  206. package/.output/server/node_modules/jiti/lib/jiti.mjs +29 -0
  207. package/.output/server/node_modules/jiti/package.json +146 -0
  208. package/.output/server/node_modules/json-schema-traverse/index.js +93 -0
  209. package/.output/server/node_modules/json-schema-traverse/package.json +43 -0
  210. package/.output/server/node_modules/listhen/dist/chunks/xdg-open.mjs +1069 -0
  211. package/.output/server/node_modules/listhen/dist/index.mjs +19 -0
  212. package/.output/server/node_modules/listhen/dist/shared/listhen.tqe5I1Rl.mjs +1040 -0
  213. package/.output/server/node_modules/listhen/package.json +84 -0
  214. package/.output/server/node_modules/napi-wasm/index.mjs +1371 -0
  215. package/.output/server/node_modules/napi-wasm/package.json +33 -0
  216. package/.output/server/node_modules/node-forge/lib/aes.js +1091 -0
  217. package/.output/server/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
  218. package/.output/server/node_modules/node-forge/lib/asn1-validator.js +91 -0
  219. package/.output/server/node_modules/node-forge/lib/asn1.js +1522 -0
  220. package/.output/server/node_modules/node-forge/lib/baseN.js +186 -0
  221. package/.output/server/node_modules/node-forge/lib/cipher.js +230 -0
  222. package/.output/server/node_modules/node-forge/lib/cipherModes.js +1027 -0
  223. package/.output/server/node_modules/node-forge/lib/des.js +496 -0
  224. package/.output/server/node_modules/node-forge/lib/ed25519.js +1091 -0
  225. package/.output/server/node_modules/node-forge/lib/forge.js +13 -0
  226. package/.output/server/node_modules/node-forge/lib/hmac.js +146 -0
  227. package/.output/server/node_modules/node-forge/lib/index.js +33 -0
  228. package/.output/server/node_modules/node-forge/lib/jsbn.js +1294 -0
  229. package/.output/server/node_modules/node-forge/lib/kem.js +168 -0
  230. package/.output/server/node_modules/node-forge/lib/log.js +319 -0
  231. package/.output/server/node_modules/node-forge/lib/md.all.js +13 -0
  232. package/.output/server/node_modules/node-forge/lib/md.js +11 -0
  233. package/.output/server/node_modules/node-forge/lib/md5.js +289 -0
  234. package/.output/server/node_modules/node-forge/lib/mgf.js +12 -0
  235. package/.output/server/node_modules/node-forge/lib/mgf1.js +57 -0
  236. package/.output/server/node_modules/node-forge/lib/oids.js +180 -0
  237. package/.output/server/node_modules/node-forge/lib/pbe.js +1029 -0
  238. package/.output/server/node_modules/node-forge/lib/pbkdf2.js +211 -0
  239. package/.output/server/node_modules/node-forge/lib/pem.js +413 -0
  240. package/.output/server/node_modules/node-forge/lib/pkcs1.js +276 -0
  241. package/.output/server/node_modules/node-forge/lib/pkcs12.js +1081 -0
  242. package/.output/server/node_modules/node-forge/lib/pkcs7.js +1260 -0
  243. package/.output/server/node_modules/node-forge/lib/pkcs7asn1.js +410 -0
  244. package/.output/server/node_modules/node-forge/lib/pki.js +102 -0
  245. package/.output/server/node_modules/node-forge/lib/prime.js +297 -0
  246. package/.output/server/node_modules/node-forge/lib/prng.js +419 -0
  247. package/.output/server/node_modules/node-forge/lib/pss.js +241 -0
  248. package/.output/server/node_modules/node-forge/lib/random.js +191 -0
  249. package/.output/server/node_modules/node-forge/lib/rc2.js +410 -0
  250. package/.output/server/node_modules/node-forge/lib/rsa.js +2014 -0
  251. package/.output/server/node_modules/node-forge/lib/sha1.js +319 -0
  252. package/.output/server/node_modules/node-forge/lib/sha256.js +327 -0
  253. package/.output/server/node_modules/node-forge/lib/sha512.js +561 -0
  254. package/.output/server/node_modules/node-forge/lib/ssh.js +236 -0
  255. package/.output/server/node_modules/node-forge/lib/tls.js +4334 -0
  256. package/.output/server/node_modules/node-forge/lib/util.js +2652 -0
  257. package/.output/server/node_modules/node-forge/lib/x509.js +3257 -0
  258. package/.output/server/node_modules/node-forge/package.json +123 -0
  259. package/.output/server/node_modules/node-mock-http/dist/_polyfill/buffer/node.mjs +1 -0
  260. package/.output/server/node_modules/node-mock-http/dist/_polyfill/events/node.mjs +1 -0
  261. package/.output/server/node_modules/node-mock-http/dist/index.mjs +1 -0
  262. package/.output/server/node_modules/node-mock-http/package.json +63 -0
  263. package/.output/server/node_modules/nostics/dist/formatters/ansi.mjs +19 -0
  264. package/.output/server/node_modules/nostics/dist/index.mjs +194 -0
  265. package/.output/server/node_modules/nostics/package.json +126 -0
  266. package/.output/server/node_modules/pathe/dist/index.mjs +19 -0
  267. package/.output/server/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +249 -0
  268. package/.output/server/node_modules/pathe/package.json +61 -0
  269. package/.output/server/node_modules/picomatch/index.js +17 -0
  270. package/.output/server/node_modules/picomatch/lib/constants.js +184 -0
  271. package/.output/server/node_modules/picomatch/lib/parse.js +1425 -0
  272. package/.output/server/node_modules/picomatch/lib/picomatch.js +361 -0
  273. package/.output/server/node_modules/picomatch/lib/scan.js +403 -0
  274. package/.output/server/node_modules/picomatch/lib/utils.js +72 -0
  275. package/.output/server/node_modules/picomatch/package.json +83 -0
  276. package/.output/server/node_modules/radix3/dist/index.mjs +262 -0
  277. package/.output/server/node_modules/radix3/package.json +52 -0
  278. package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  279. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  280. package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  281. package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  282. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  283. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +141 -0
  284. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1236 -0
  285. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +446 -0
  286. package/.output/server/node_modules/source-map-js/lib/source-node.js +420 -0
  287. package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  288. package/.output/server/node_modules/source-map-js/package.json +71 -0
  289. package/.output/server/node_modules/source-map-js/source-map.js +8 -0
  290. package/.output/server/node_modules/std-env/dist/index.mjs +1 -0
  291. package/.output/server/node_modules/std-env/package.json +43 -0
  292. package/.output/server/node_modules/tinyclip/dist/index.js +143 -0
  293. package/.output/server/node_modules/tinyclip/package.json +48 -0
  294. package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  295. package/.output/server/node_modules/ufo/package.json +48 -0
  296. package/.output/server/node_modules/uncrypto/dist/crypto.node.mjs +16 -0
  297. package/.output/server/node_modules/uncrypto/package.json +60 -0
  298. package/.output/server/node_modules/unhead/dist/client.mjs +22 -0
  299. package/.output/server/node_modules/unhead/dist/legacy.mjs +33 -0
  300. package/.output/server/node_modules/unhead/dist/minify.mjs +183 -0
  301. package/.output/server/node_modules/unhead/dist/parser.mjs +518 -0
  302. package/.output/server/node_modules/unhead/dist/plugins.mjs +782 -0
  303. package/.output/server/node_modules/unhead/dist/server.mjs +99 -0
  304. package/.output/server/node_modules/unhead/dist/shared/unhead.BEmVMkeA.mjs +673 -0
  305. package/.output/server/node_modules/unhead/dist/shared/unhead.Bf_fPVYA.mjs +6 -0
  306. package/.output/server/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs +17 -0
  307. package/.output/server/node_modules/unhead/dist/shared/unhead.C5Bksi2B.mjs +49 -0
  308. package/.output/server/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs +32 -0
  309. package/.output/server/node_modules/unhead/dist/shared/unhead.CHEy9ana.mjs +7 -0
  310. package/.output/server/node_modules/unhead/dist/shared/unhead.C_7zwq8E.mjs +11 -0
  311. package/.output/server/node_modules/unhead/dist/shared/unhead.CaeaMM5q.mjs +19 -0
  312. package/.output/server/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs +59 -0
  313. package/.output/server/node_modules/unhead/dist/shared/unhead.D9VfQWNo.mjs +240 -0
  314. package/.output/server/node_modules/unhead/dist/shared/unhead.DD4N5B4k.mjs +224 -0
  315. package/.output/server/node_modules/unhead/dist/shared/unhead.DGl9jcjg.mjs +196 -0
  316. package/.output/server/node_modules/unhead/dist/shared/unhead.DJuZwX9c.mjs +400 -0
  317. package/.output/server/node_modules/unhead/dist/shared/unhead.DkxnqlHC.mjs +264 -0
  318. package/.output/server/node_modules/unhead/dist/shared/unhead.DspMpm6y.mjs +48 -0
  319. package/.output/server/node_modules/unhead/dist/shared/unhead.o8j9utSy.mjs +208 -0
  320. package/.output/server/node_modules/unhead/dist/stream/client.mjs +33 -0
  321. package/.output/server/node_modules/unhead/dist/stream/iife.mjs +2 -0
  322. package/.output/server/node_modules/unhead/dist/stream/server.mjs +446 -0
  323. package/.output/server/node_modules/unhead/dist/utils.mjs +7 -0
  324. package/.output/server/node_modules/unhead/package.json +179 -0
  325. package/.output/server/node_modules/untun/dist/_chunks/cloudflared.mjs +179 -0
  326. package/.output/server/node_modules/untun/dist/_chunks/log.mjs +27 -0
  327. package/.output/server/node_modules/untun/dist/index.mjs +47 -0
  328. package/.output/server/node_modules/untun/package.json +44 -0
  329. package/.output/server/node_modules/uqr/dist/index.mjs +739 -0
  330. package/.output/server/node_modules/uqr/package.json +69 -0
  331. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  332. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  333. package/.output/server/node_modules/vue/index.js +7 -0
  334. package/.output/server/node_modules/vue/index.mjs +1 -0
  335. package/.output/server/node_modules/vue/package.json +112 -0
  336. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  337. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +687 -0
  338. package/.output/server/node_modules/vue-bundle-renderer/package.json +66 -0
  339. package/.output/server/node_modules/zod/index.js +7 -0
  340. package/.output/server/node_modules/zod/package.json +147 -0
  341. package/.output/server/node_modules/zod/v3/ZodError.js +143 -0
  342. package/.output/server/node_modules/zod/v3/errors.js +9 -0
  343. package/.output/server/node_modules/zod/v3/external.js +6 -0
  344. package/.output/server/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  345. package/.output/server/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  346. package/.output/server/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  347. package/.output/server/node_modules/zod/v3/helpers/util.js +133 -0
  348. package/.output/server/node_modules/zod/v3/index.js +4 -0
  349. package/.output/server/node_modules/zod/v3/locales/en.js +109 -0
  350. package/.output/server/node_modules/zod/v3/package.json +7 -0
  351. package/.output/server/node_modules/zod/v3/types.js +3697 -0
  352. package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
  353. package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
  354. package/.output/server/node_modules/zod/v4/classic/compat.js +31 -0
  355. package/.output/server/node_modules/zod/v4/classic/deep-partial.js +13 -0
  356. package/.output/server/node_modules/zod/v4/classic/errors.js +57 -0
  357. package/.output/server/node_modules/zod/v4/classic/external.js +17 -0
  358. package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  359. package/.output/server/node_modules/zod/v4/classic/in-out.js +36 -0
  360. package/.output/server/node_modules/zod/v4/classic/index.js +4 -0
  361. package/.output/server/node_modules/zod/v4/classic/iso.js +15 -0
  362. package/.output/server/node_modules/zod/v4/classic/package.json +7 -0
  363. package/.output/server/node_modules/zod/v4/classic/parse.js +16 -0
  364. package/.output/server/node_modules/zod/v4/classic/schemas.js +1535 -0
  365. package/.output/server/node_modules/zod/v4/core/api.js +1107 -0
  366. package/.output/server/node_modules/zod/v4/core/checks.js +516 -0
  367. package/.output/server/node_modules/zod/v4/core/compile.js +1866 -0
  368. package/.output/server/node_modules/zod/v4/core/core.js +141 -0
  369. package/.output/server/node_modules/zod/v4/core/doc.js +38 -0
  370. package/.output/server/node_modules/zod/v4/core/errors.js +267 -0
  371. package/.output/server/node_modules/zod/v4/core/index.js +19 -0
  372. package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  373. package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  374. package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
  375. package/.output/server/node_modules/zod/v4/core/memoizer.js +311 -0
  376. package/.output/server/node_modules/zod/v4/core/package.json +7 -0
  377. package/.output/server/node_modules/zod/v4/core/parse.js +175 -0
  378. package/.output/server/node_modules/zod/v4/core/regexes.js +156 -0
  379. package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
  380. package/.output/server/node_modules/zod/v4/core/schemas.js +2636 -0
  381. package/.output/server/node_modules/zod/v4/core/to-json-schema.js +651 -0
  382. package/.output/server/node_modules/zod/v4/core/util.js +873 -0
  383. package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
  384. package/.output/server/node_modules/zod/v4/core/visit.js +169 -0
  385. package/.output/server/node_modules/zod/v4/index.js +4 -0
  386. package/.output/server/node_modules/zod/v4/locales/ar.js +111 -0
  387. package/.output/server/node_modules/zod/v4/locales/az.js +110 -0
  388. package/.output/server/node_modules/zod/v4/locales/be.js +168 -0
  389. package/.output/server/node_modules/zod/v4/locales/bg.js +125 -0
  390. package/.output/server/node_modules/zod/v4/locales/bn.js +113 -0
  391. package/.output/server/node_modules/zod/v4/locales/ca.js +112 -0
  392. package/.output/server/node_modules/zod/v4/locales/ckb.js +133 -0
  393. package/.output/server/node_modules/zod/v4/locales/cs.js +116 -0
  394. package/.output/server/node_modules/zod/v4/locales/da.js +120 -0
  395. package/.output/server/node_modules/zod/v4/locales/de.js +113 -0
  396. package/.output/server/node_modules/zod/v4/locales/el.js +112 -0
  397. package/.output/server/node_modules/zod/v4/locales/en.js +125 -0
  398. package/.output/server/node_modules/zod/v4/locales/eo.js +114 -0
  399. package/.output/server/node_modules/zod/v4/locales/es.js +136 -0
  400. package/.output/server/node_modules/zod/v4/locales/fa.js +119 -0
  401. package/.output/server/node_modules/zod/v4/locales/fi.js +117 -0
  402. package/.output/server/node_modules/zod/v4/locales/fr-CA.js +112 -0
  403. package/.output/server/node_modules/zod/v4/locales/fr.js +129 -0
  404. package/.output/server/node_modules/zod/v4/locales/gu.js +113 -0
  405. package/.output/server/node_modules/zod/v4/locales/he.js +221 -0
  406. package/.output/server/node_modules/zod/v4/locales/hi.js +111 -0
  407. package/.output/server/node_modules/zod/v4/locales/hr.js +126 -0
  408. package/.output/server/node_modules/zod/v4/locales/hu.js +113 -0
  409. package/.output/server/node_modules/zod/v4/locales/hy.js +158 -0
  410. package/.output/server/node_modules/zod/v4/locales/id.js +111 -0
  411. package/.output/server/node_modules/zod/v4/locales/index.js +63 -0
  412. package/.output/server/node_modules/zod/v4/locales/is.js +114 -0
  413. package/.output/server/node_modules/zod/v4/locales/it.js +113 -0
  414. package/.output/server/node_modules/zod/v4/locales/ja.js +112 -0
  415. package/.output/server/node_modules/zod/v4/locales/ka.js +117 -0
  416. package/.output/server/node_modules/zod/v4/locales/kh.js +5 -0
  417. package/.output/server/node_modules/zod/v4/locales/km.js +115 -0
  418. package/.output/server/node_modules/zod/v4/locales/kn.js +116 -0
  419. package/.output/server/node_modules/zod/v4/locales/ko.js +116 -0
  420. package/.output/server/node_modules/zod/v4/locales/lt.js +207 -0
  421. package/.output/server/node_modules/zod/v4/locales/mk.js +114 -0
  422. package/.output/server/node_modules/zod/v4/locales/ms.js +112 -0
  423. package/.output/server/node_modules/zod/v4/locales/ne.js +111 -0
  424. package/.output/server/node_modules/zod/v4/locales/nl.js +115 -0
  425. package/.output/server/node_modules/zod/v4/locales/nn.js +113 -0
  426. package/.output/server/node_modules/zod/v4/locales/no.js +113 -0
  427. package/.output/server/node_modules/zod/v4/locales/ota.js +114 -0
  428. package/.output/server/node_modules/zod/v4/locales/package.json +7 -0
  429. package/.output/server/node_modules/zod/v4/locales/pl.js +114 -0
  430. package/.output/server/node_modules/zod/v4/locales/ps.js +119 -0
  431. package/.output/server/node_modules/zod/v4/locales/pt-BR.js +143 -0
  432. package/.output/server/node_modules/zod/v4/locales/pt.js +142 -0
  433. package/.output/server/node_modules/zod/v4/locales/ro.js +122 -0
  434. package/.output/server/node_modules/zod/v4/locales/ru.js +168 -0
  435. package/.output/server/node_modules/zod/v4/locales/sk.js +116 -0
  436. package/.output/server/node_modules/zod/v4/locales/sl.js +114 -0
  437. package/.output/server/node_modules/zod/v4/locales/sv.js +115 -0
  438. package/.output/server/node_modules/zod/v4/locales/ta.js +115 -0
  439. package/.output/server/node_modules/zod/v4/locales/tg.js +117 -0
  440. package/.output/server/node_modules/zod/v4/locales/th.js +115 -0
  441. package/.output/server/node_modules/zod/v4/locales/tk.js +107 -0
  442. package/.output/server/node_modules/zod/v4/locales/tr.js +110 -0
  443. package/.output/server/node_modules/zod/v4/locales/ua.js +5 -0
  444. package/.output/server/node_modules/zod/v4/locales/uk.js +113 -0
  445. package/.output/server/node_modules/zod/v4/locales/ur.js +115 -0
  446. package/.output/server/node_modules/zod/v4/locales/uz.js +113 -0
  447. package/.output/server/node_modules/zod/v4/locales/vi.js +113 -0
  448. package/.output/server/node_modules/zod/v4/locales/yo.js +112 -0
  449. package/.output/server/node_modules/zod/v4/locales/zh-CN.js +114 -0
  450. package/.output/server/node_modules/zod/v4/locales/zh-TW.js +112 -0
  451. package/.output/server/node_modules/zod/v4/mini/checks.js +1 -0
  452. package/.output/server/node_modules/zod/v4/mini/coerce.js +22 -0
  453. package/.output/server/node_modules/zod/v4/mini/deep-partial.js +13 -0
  454. package/.output/server/node_modules/zod/v4/mini/external.js +16 -0
  455. package/.output/server/node_modules/zod/v4/mini/in-out.js +36 -0
  456. package/.output/server/node_modules/zod/v4/mini/iso.js +34 -0
  457. package/.output/server/node_modules/zod/v4/mini/package.json +7 -0
  458. package/.output/server/node_modules/zod/v4/mini/parse.js +1 -0
  459. package/.output/server/node_modules/zod/v4/mini/schemas.js +1002 -0
  460. package/.output/server/node_modules/zod/v4/package.json +7 -0
  461. package/.output/server/node_modules/zod/v4-mini/index.js +3 -0
  462. package/.output/server/node_modules/zod/v4-mini/package.json +7 -0
  463. package/.output/server/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
  464. package/.output/server/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
  465. package/.output/server/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
  466. package/.output/server/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
  467. package/.output/server/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
  468. package/.output/server/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
  469. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
  470. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
  471. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
  472. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
  473. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
  474. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
  475. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
  476. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
  477. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
  478. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
  479. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
  480. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
  481. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
  482. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
  483. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
  484. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
  485. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
  486. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
  487. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
  488. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
  489. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
  490. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
  491. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
  492. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
  493. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
  494. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
  495. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
  496. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
  497. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
  498. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
  499. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
  500. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
  501. package/.output/server/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
  502. package/.output/server/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
  503. package/.output/server/node_modules/zod-to-json-schema/package.json +85 -0
  504. package/.output/server/package.json +64 -0
  505. package/README.md +227 -24
  506. package/bin/bantou.mjs +33 -0
  507. package/package.json +18 -8
  508. package/protocol/PROTOCOL.md +26 -0
  509. package/protocol/protocol.json +92 -0
  510. package/dist/cap.js +0 -7
  511. package/dist/cli.js +0 -27
  512. package/dist/config.js +0 -23
  513. package/dist/daemon.js +0 -23
  514. package/dist/session.js +0 -7
  515. package/dist/workspace.js +0 -8
@@ -0,0 +1,1002 @@
1
+ import * as core from "../core/index.js";
2
+ import * as regexes from "../core/regexes.js";
3
+ import * as util from "../core/util.js";
4
+ import * as parse from "./parse.js";
5
+ export const ZodMiniType = /*@__PURE__*/ core.$constructor("ZodMiniType", (inst, def) => {
6
+ if (!inst._zod)
7
+ throw new Error("Uninitialized schema in ZodMiniType.");
8
+ core.$ZodType.init(inst, def);
9
+ inst.def = def;
10
+ inst.type = def.type;
11
+ }, {
12
+ // `with` is an alias for `check`: the same function object, not a wrapper.
13
+ get with() {
14
+ return this.check;
15
+ },
16
+ set with(value) {
17
+ util.own(this, "with", value);
18
+ },
19
+ parse(data, params) {
20
+ return parse.parse(this, data, params, { callee: this.parse });
21
+ },
22
+ parseAsync(data, params) {
23
+ return parse.parseAsync(this, data, params, { callee: this.parseAsync });
24
+ },
25
+ safeParse(data, params) {
26
+ return parse.safeParse(this, data, params);
27
+ },
28
+ safeParseAsync(data, params) {
29
+ return parse.safeParseAsync(this, data, params);
30
+ },
31
+ check(...checks) {
32
+ const def = this.def;
33
+ return this.clone({
34
+ ...def,
35
+ checks: [
36
+ ...(def.checks ?? []),
37
+ ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch),
38
+ ],
39
+ }, { parent: true });
40
+ },
41
+ clone(_def, params) {
42
+ return core.clone(this, _def, params);
43
+ },
44
+ brand() {
45
+ return this;
46
+ },
47
+ register(reg, meta) {
48
+ reg.add(this, meta);
49
+ return this;
50
+ },
51
+ apply(fn, ...args) {
52
+ return args.length === 0 ? fn(this) : fn(this, ...args);
53
+ },
54
+ });
55
+ export const ZodMiniString = /*@__PURE__*/ core.$constructor("ZodMiniString", (inst, def) => {
56
+ core.$ZodString.init(inst, def);
57
+ ZodMiniType.init(inst, def);
58
+ });
59
+ // @__NO_SIDE_EFFECTS__
60
+ export function string(params) {
61
+ return core._string(ZodMiniString, params);
62
+ }
63
+ export const ZodMiniStringFormat = /*@__PURE__*/ core.$constructor("ZodMiniStringFormat", (inst, def) => {
64
+ core.$ZodStringFormat.init(inst, def);
65
+ ZodMiniString.init(inst, def);
66
+ });
67
+ export const ZodMiniEmail = /*@__PURE__*/ core.$constructor("ZodMiniEmail", (inst, def) => {
68
+ core.$ZodEmail.init(inst, def);
69
+ ZodMiniStringFormat.init(inst, def);
70
+ });
71
+ // @__NO_SIDE_EFFECTS__
72
+ export function email(params) {
73
+ return core._email(ZodMiniEmail, params);
74
+ }
75
+ export const ZodMiniGUID = /*@__PURE__*/ core.$constructor("ZodMiniGUID", (inst, def) => {
76
+ core.$ZodGUID.init(inst, def);
77
+ ZodMiniStringFormat.init(inst, def);
78
+ });
79
+ // @__NO_SIDE_EFFECTS__
80
+ export function guid(params) {
81
+ return core._guid(ZodMiniGUID, params);
82
+ }
83
+ export const ZodMiniUUID = /*@__PURE__*/ core.$constructor("ZodMiniUUID", (inst, def) => {
84
+ core.$ZodUUID.init(inst, def);
85
+ ZodMiniStringFormat.init(inst, def);
86
+ });
87
+ // @__NO_SIDE_EFFECTS__
88
+ export function uuid(params) {
89
+ return core._uuid(ZodMiniUUID, params);
90
+ }
91
+ // @__NO_SIDE_EFFECTS__
92
+ export function uuidv4(params) {
93
+ return core._uuidv4(ZodMiniUUID, params);
94
+ }
95
+ // ZodMiniUUIDv6
96
+ // @__NO_SIDE_EFFECTS__
97
+ export function uuidv6(params) {
98
+ return core._uuidv6(ZodMiniUUID, params);
99
+ }
100
+ // ZodMiniUUIDv7
101
+ // @__NO_SIDE_EFFECTS__
102
+ export function uuidv7(params) {
103
+ return core._uuidv7(ZodMiniUUID, params);
104
+ }
105
+ export const ZodMiniURL = /*@__PURE__*/ core.$constructor("ZodMiniURL", (inst, def) => {
106
+ core.$ZodURL.init(inst, def);
107
+ ZodMiniStringFormat.init(inst, def);
108
+ });
109
+ // @__NO_SIDE_EFFECTS__
110
+ export function url(params) {
111
+ return core._url(ZodMiniURL, params);
112
+ }
113
+ // @__NO_SIDE_EFFECTS__
114
+ export function httpUrl(params) {
115
+ return core._url(ZodMiniURL, {
116
+ protocol: regexes.httpProtocol,
117
+ hostname: regexes.domain,
118
+ ...util.normalizeParams(params),
119
+ });
120
+ }
121
+ export const ZodMiniEmoji = /*@__PURE__*/ core.$constructor("ZodMiniEmoji", (inst, def) => {
122
+ core.$ZodEmoji.init(inst, def);
123
+ ZodMiniStringFormat.init(inst, def);
124
+ });
125
+ // @__NO_SIDE_EFFECTS__
126
+ export function emoji(params) {
127
+ return core._emoji(ZodMiniEmoji, params);
128
+ }
129
+ export const ZodMiniNanoID = /*@__PURE__*/ core.$constructor("ZodMiniNanoID", (inst, def) => {
130
+ core.$ZodNanoID.init(inst, def);
131
+ ZodMiniStringFormat.init(inst, def);
132
+ });
133
+ // @__NO_SIDE_EFFECTS__
134
+ export function nanoid(params) {
135
+ return core._nanoid(ZodMiniNanoID, params);
136
+ }
137
+ /**
138
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
139
+ * (timestamps embedded in the id). Use {@link ZodMiniCUID2} instead.
140
+ * See https://github.com/paralleldrive/cuid.
141
+ */
142
+ export const ZodMiniCUID = /*@__PURE__*/ core.$constructor("ZodMiniCUID", (inst, def) => {
143
+ core.$ZodCUID.init(inst, def);
144
+ ZodMiniStringFormat.init(inst, def);
145
+ });
146
+ /**
147
+ * Validates a CUID v1 string.
148
+ *
149
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
150
+ * (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.
151
+ * See https://github.com/paralleldrive/cuid.
152
+ */
153
+ // @__NO_SIDE_EFFECTS__
154
+ export function cuid(params) {
155
+ return core._cuid(ZodMiniCUID, params);
156
+ }
157
+ export const ZodMiniCUID2 = /*@__PURE__*/ core.$constructor("ZodMiniCUID2", (inst, def) => {
158
+ core.$ZodCUID2.init(inst, def);
159
+ ZodMiniStringFormat.init(inst, def);
160
+ });
161
+ // @__NO_SIDE_EFFECTS__
162
+ export function cuid2(params) {
163
+ return core._cuid2(ZodMiniCUID2, params);
164
+ }
165
+ export const ZodMiniULID = /*@__PURE__*/ core.$constructor("ZodMiniULID", (inst, def) => {
166
+ core.$ZodULID.init(inst, def);
167
+ ZodMiniStringFormat.init(inst, def);
168
+ });
169
+ // @__NO_SIDE_EFFECTS__
170
+ export function ulid(params) {
171
+ return core._ulid(ZodMiniULID, params);
172
+ }
173
+ export const ZodMiniXID = /*@__PURE__*/ core.$constructor("ZodMiniXID", (inst, def) => {
174
+ core.$ZodXID.init(inst, def);
175
+ ZodMiniStringFormat.init(inst, def);
176
+ });
177
+ // @__NO_SIDE_EFFECTS__
178
+ export function xid(params) {
179
+ return core._xid(ZodMiniXID, params);
180
+ }
181
+ export const ZodMiniKSUID = /*@__PURE__*/ core.$constructor("ZodMiniKSUID", (inst, def) => {
182
+ core.$ZodKSUID.init(inst, def);
183
+ ZodMiniStringFormat.init(inst, def);
184
+ });
185
+ // @__NO_SIDE_EFFECTS__
186
+ export function ksuid(params) {
187
+ return core._ksuid(ZodMiniKSUID, params);
188
+ }
189
+ export const ZodMiniIPv4 = /*@__PURE__*/ core.$constructor("ZodMiniIPv4", (inst, def) => {
190
+ core.$ZodIPv4.init(inst, def);
191
+ ZodMiniStringFormat.init(inst, def);
192
+ });
193
+ // @__NO_SIDE_EFFECTS__
194
+ export function ipv4(params) {
195
+ return core._ipv4(ZodMiniIPv4, params);
196
+ }
197
+ export const ZodMiniIPv6 = /*@__PURE__*/ core.$constructor("ZodMiniIPv6", (inst, def) => {
198
+ core.$ZodIPv6.init(inst, def);
199
+ ZodMiniStringFormat.init(inst, def);
200
+ });
201
+ // @__NO_SIDE_EFFECTS__
202
+ export function ipv6(params) {
203
+ return core._ipv6(ZodMiniIPv6, params);
204
+ }
205
+ export const ZodMiniCIDRv4 = /*@__PURE__*/ core.$constructor("ZodMiniCIDRv4", (inst, def) => {
206
+ core.$ZodCIDRv4.init(inst, def);
207
+ ZodMiniStringFormat.init(inst, def);
208
+ });
209
+ // @__NO_SIDE_EFFECTS__
210
+ export function cidrv4(params) {
211
+ return core._cidrv4(ZodMiniCIDRv4, params);
212
+ }
213
+ export const ZodMiniCIDRv6 = /*@__PURE__*/ core.$constructor("ZodMiniCIDRv6", (inst, def) => {
214
+ core.$ZodCIDRv6.init(inst, def);
215
+ ZodMiniStringFormat.init(inst, def);
216
+ });
217
+ // @__NO_SIDE_EFFECTS__
218
+ export function cidrv6(params) {
219
+ return core._cidrv6(ZodMiniCIDRv6, params);
220
+ }
221
+ export const ZodMiniMAC = /*@__PURE__*/ core.$constructor("ZodMiniMAC", (inst, def) => {
222
+ core.$ZodMAC.init(inst, def);
223
+ ZodMiniStringFormat.init(inst, def);
224
+ });
225
+ // @__NO_SIDE_EFFECTS__
226
+ export function mac(params) {
227
+ return core._mac(ZodMiniMAC, params);
228
+ }
229
+ export const ZodMiniBase64 = /*@__PURE__*/ core.$constructor("ZodMiniBase64", (inst, def) => {
230
+ core.$ZodBase64.init(inst, def);
231
+ ZodMiniStringFormat.init(inst, def);
232
+ });
233
+ // @__NO_SIDE_EFFECTS__
234
+ export function base64(params) {
235
+ return core._base64(ZodMiniBase64, params);
236
+ }
237
+ export const ZodMiniBase64URL = /*@__PURE__*/ core.$constructor("ZodMiniBase64URL", (inst, def) => {
238
+ core.$ZodBase64URL.init(inst, def);
239
+ ZodMiniStringFormat.init(inst, def);
240
+ });
241
+ // @__NO_SIDE_EFFECTS__
242
+ export function base64url(params) {
243
+ return core._base64url(ZodMiniBase64URL, params);
244
+ }
245
+ export const ZodMiniE164 = /*@__PURE__*/ core.$constructor("ZodMiniE164", (inst, def) => {
246
+ core.$ZodE164.init(inst, def);
247
+ ZodMiniStringFormat.init(inst, def);
248
+ });
249
+ // @__NO_SIDE_EFFECTS__
250
+ export function e164(params) {
251
+ return core._e164(ZodMiniE164, params);
252
+ }
253
+ export const ZodMiniCreditCard = /*@__PURE__*/ core.$constructor("ZodMiniCreditCard", (inst, def) => {
254
+ core.$ZodCreditCard.init(inst, def);
255
+ ZodMiniStringFormat.init(inst, def);
256
+ });
257
+ // @__NO_SIDE_EFFECTS__
258
+ export function creditCard(params) {
259
+ return core._creditCard(ZodMiniCreditCard, params);
260
+ }
261
+ export const ZodMiniIBAN = /*@__PURE__*/ core.$constructor("ZodMiniIBAN", (inst, def) => {
262
+ core.$ZodIBAN.init(inst, def);
263
+ ZodMiniStringFormat.init(inst, def);
264
+ });
265
+ // @__NO_SIDE_EFFECTS__
266
+ export function iban(params) {
267
+ return core._iban(ZodMiniIBAN, params);
268
+ }
269
+ export const ZodMiniJWT = /*@__PURE__*/ core.$constructor("ZodMiniJWT", (inst, def) => {
270
+ core.$ZodJWT.init(inst, def);
271
+ ZodMiniStringFormat.init(inst, def);
272
+ });
273
+ // @__NO_SIDE_EFFECTS__
274
+ export function jwt(params) {
275
+ return core._jwt(ZodMiniJWT, params);
276
+ }
277
+ export const ZodMiniCustomStringFormat = /*@__PURE__*/ core.$constructor("ZodMiniCustomStringFormat", (inst, def) => {
278
+ core.$ZodCustomStringFormat.init(inst, def);
279
+ ZodMiniStringFormat.init(inst, def);
280
+ });
281
+ // @__NO_SIDE_EFFECTS__
282
+ export function stringFormat(format, fnOrRegex, _params = {}) {
283
+ return core._stringFormat(ZodMiniCustomStringFormat, format, fnOrRegex, _params);
284
+ }
285
+ // @__NO_SIDE_EFFECTS__
286
+ export function hostname(_params) {
287
+ return core._stringFormat(ZodMiniCustomStringFormat, "hostname", regexes.hostname, _params);
288
+ }
289
+ // @__NO_SIDE_EFFECTS__
290
+ export function hex(_params) {
291
+ return core._stringFormat(ZodMiniCustomStringFormat, "hex", regexes.hex, _params);
292
+ }
293
+ // @__NO_SIDE_EFFECTS__
294
+ export function currencyCode(_params) {
295
+ return core._stringFormat(ZodMiniCustomStringFormat, "currency_code", regexes.currencyCode, _params);
296
+ }
297
+ // @__NO_SIDE_EFFECTS__
298
+ export function hash(alg, params) {
299
+ const enc = params?.enc ?? "hex";
300
+ const format = `${alg}_${enc}`;
301
+ const regex = core.regexes[format];
302
+ // check for unrecognized format
303
+ if (!regex)
304
+ throw new Error(`Unrecognized hash format: ${format}`);
305
+ return core._stringFormat(ZodMiniCustomStringFormat, format, regex, params);
306
+ }
307
+ export const ZodMiniNumber = /*@__PURE__*/ core.$constructor("ZodMiniNumber", (inst, def) => {
308
+ core.$ZodNumber.init(inst, def);
309
+ ZodMiniType.init(inst, def);
310
+ });
311
+ // @__NO_SIDE_EFFECTS__
312
+ export function number(params) {
313
+ return core._number(ZodMiniNumber, params);
314
+ }
315
+ export const ZodMiniNumberFormat = /*@__PURE__*/ core.$constructor("ZodMiniNumberFormat", (inst, def) => {
316
+ core.$ZodNumberFormat.init(inst, def);
317
+ ZodMiniNumber.init(inst, def);
318
+ });
319
+ export function int(params) {
320
+ return core._int(ZodMiniNumberFormat, params);
321
+ }
322
+ export function float32(params) {
323
+ return core._float32(ZodMiniNumberFormat, params);
324
+ }
325
+ export function float64(params) {
326
+ return core._float64(ZodMiniNumberFormat, params);
327
+ }
328
+ export function int32(params) {
329
+ return core._int32(ZodMiniNumberFormat, params);
330
+ }
331
+ export function uint32(params) {
332
+ return core._uint32(ZodMiniNumberFormat, params);
333
+ }
334
+ export const ZodMiniBoolean = /*@__PURE__*/ core.$constructor("ZodMiniBoolean", (inst, def) => {
335
+ core.$ZodBoolean.init(inst, def);
336
+ ZodMiniType.init(inst, def);
337
+ });
338
+ // @__NO_SIDE_EFFECTS__
339
+ export function boolean(params) {
340
+ return core._boolean(ZodMiniBoolean, params);
341
+ }
342
+ export const ZodMiniBigInt = /*@__PURE__*/ core.$constructor("ZodMiniBigInt", (inst, def) => {
343
+ core.$ZodBigInt.init(inst, def);
344
+ ZodMiniType.init(inst, def);
345
+ });
346
+ // @__NO_SIDE_EFFECTS__
347
+ export function bigint(params) {
348
+ return core._bigint(ZodMiniBigInt, params);
349
+ }
350
+ export const ZodMiniBigIntFormat = /*@__PURE__*/ core.$constructor("ZodMiniBigIntFormat", (inst, def) => {
351
+ core.$ZodBigIntFormat.init(inst, def);
352
+ ZodMiniBigInt.init(inst, def);
353
+ });
354
+ export function int64(params) {
355
+ return core._int64(ZodMiniBigIntFormat, params);
356
+ }
357
+ export function uint64(params) {
358
+ return core._uint64(ZodMiniBigIntFormat, params);
359
+ }
360
+ export const ZodMiniSymbol = /*@__PURE__*/ core.$constructor("ZodMiniSymbol", (inst, def) => {
361
+ core.$ZodSymbol.init(inst, def);
362
+ ZodMiniType.init(inst, def);
363
+ });
364
+ // @__NO_SIDE_EFFECTS__
365
+ export function symbol(params) {
366
+ return core._symbol(ZodMiniSymbol, params);
367
+ }
368
+ export const ZodMiniUndefined = /*@__PURE__*/ core.$constructor("ZodMiniUndefined", (inst, def) => {
369
+ core.$ZodUndefined.init(inst, def);
370
+ ZodMiniType.init(inst, def);
371
+ });
372
+ // @__NO_SIDE_EFFECTS__
373
+ function _undefined(params) {
374
+ return core._undefined(ZodMiniUndefined, params);
375
+ }
376
+ export { _undefined as undefined };
377
+ export const ZodMiniNull = /*@__PURE__*/ core.$constructor("ZodMiniNull", (inst, def) => {
378
+ core.$ZodNull.init(inst, def);
379
+ ZodMiniType.init(inst, def);
380
+ });
381
+ // @__NO_SIDE_EFFECTS__
382
+ function _null(params) {
383
+ return core._null(ZodMiniNull, params);
384
+ }
385
+ export { _null as null };
386
+ export const ZodMiniAny = /*@__PURE__*/ core.$constructor("ZodMiniAny", (inst, def) => {
387
+ core.$ZodAny.init(inst, def);
388
+ ZodMiniType.init(inst, def);
389
+ });
390
+ // @__NO_SIDE_EFFECTS__
391
+ export function any() {
392
+ return core._any(ZodMiniAny);
393
+ }
394
+ export const ZodMiniUnknown = /*@__PURE__*/ core.$constructor("ZodMiniUnknown", (inst, def) => {
395
+ core.$ZodUnknown.init(inst, def);
396
+ ZodMiniType.init(inst, def);
397
+ });
398
+ // @__NO_SIDE_EFFECTS__
399
+ export function unknown() {
400
+ return core._unknown(ZodMiniUnknown);
401
+ }
402
+ export const ZodMiniNever = /*@__PURE__*/ core.$constructor("ZodMiniNever", (inst, def) => {
403
+ core.$ZodNever.init(inst, def);
404
+ ZodMiniType.init(inst, def);
405
+ });
406
+ // @__NO_SIDE_EFFECTS__
407
+ export function never(params) {
408
+ return core._never(ZodMiniNever, params);
409
+ }
410
+ export const ZodMiniVoid = /*@__PURE__*/ core.$constructor("ZodMiniVoid", (inst, def) => {
411
+ core.$ZodVoid.init(inst, def);
412
+ ZodMiniType.init(inst, def);
413
+ });
414
+ // @__NO_SIDE_EFFECTS__
415
+ function _void(params) {
416
+ return core._void(ZodMiniVoid, params);
417
+ }
418
+ export { _void as void };
419
+ export const ZodMiniDate = /*@__PURE__*/ core.$constructor("ZodMiniDate", (inst, def) => {
420
+ core.$ZodDate.init(inst, def);
421
+ ZodMiniType.init(inst, def);
422
+ });
423
+ // @__NO_SIDE_EFFECTS__
424
+ export function date(params) {
425
+ return core._date(ZodMiniDate, params);
426
+ }
427
+ export const ZodMiniArray = /*@__PURE__*/ core.$constructor("ZodMiniArray", (inst, def) => {
428
+ core.$ZodArray.init(inst, def);
429
+ ZodMiniType.init(inst, def);
430
+ });
431
+ // @__NO_SIDE_EFFECTS__
432
+ export function array(element, params) {
433
+ return new ZodMiniArray({
434
+ type: "array",
435
+ element: element,
436
+ ...util.normalizeParams(params),
437
+ });
438
+ }
439
+ // .keyof
440
+ // @__NO_SIDE_EFFECTS__
441
+ export function keyof(schema) {
442
+ const shape = schema._zod.def.shape;
443
+ return _enum(Object.keys(shape));
444
+ }
445
+ export const ZodMiniObject = /*@__PURE__*/ core.$constructor("ZodMiniObject", (inst, def) => {
446
+ core.$ZodObject.init(inst, def);
447
+ ZodMiniType.init(inst, def);
448
+ util.installLazyProp(inst, "shape", (self) => self._zod.def.shape, false);
449
+ });
450
+ // @__NO_SIDE_EFFECTS__
451
+ export function object(shape, params) {
452
+ const def = {
453
+ type: "object",
454
+ shape: shape ?? {},
455
+ ...util.normalizeParams(params),
456
+ };
457
+ return new ZodMiniObject(def);
458
+ }
459
+ // strictObject
460
+ // @__NO_SIDE_EFFECTS__
461
+ export function strictObject(shape, params) {
462
+ return new ZodMiniObject({
463
+ type: "object",
464
+ shape,
465
+ catchall: never(),
466
+ ...util.normalizeParams(params),
467
+ });
468
+ }
469
+ // looseObject
470
+ // @__NO_SIDE_EFFECTS__
471
+ export function looseObject(shape, params) {
472
+ return new ZodMiniObject({
473
+ type: "object",
474
+ shape,
475
+ catchall: unknown(),
476
+ ...util.normalizeParams(params),
477
+ });
478
+ }
479
+ // object methods
480
+ // @__NO_SIDE_EFFECTS__
481
+ export function extend(schema, shape) {
482
+ return util.extend(schema, shape);
483
+ }
484
+ // @__NO_SIDE_EFFECTS__
485
+ export function safeExtend(schema, shape) {
486
+ return util.safeExtend(schema, shape);
487
+ }
488
+ /**
489
+ * @deprecated Use [`z.extend(A, B.shape)`](https://zod.dev/api?id=extend) instead.
490
+ */
491
+ // @__NO_SIDE_EFFECTS__
492
+ export function merge(a, b) {
493
+ return util.merge(a, b);
494
+ }
495
+ // @__NO_SIDE_EFFECTS__
496
+ export function pick(schema, mask) {
497
+ return util.pick(schema, mask);
498
+ }
499
+ // .omit
500
+ // @__NO_SIDE_EFFECTS__
501
+ export function omit(schema, mask) {
502
+ return util.omit(schema, mask);
503
+ }
504
+ // @__NO_SIDE_EFFECTS__
505
+ export function partial(schema, mask) {
506
+ const def = schema._zod.def;
507
+ if (def.type !== "tuple")
508
+ return util.partial(ZodMiniOptional, schema, mask);
509
+ // a refinement was authored against the full arity; partialing would run it on a shorter array
510
+ if (def.checks?.length)
511
+ throw new Error(".partial() cannot be used on tuple schemas containing refinements");
512
+ return util.clone(schema, {
513
+ ...def,
514
+ items: def.items.map((item) => new ZodMiniOptional({ type: "optional", innerType: item })),
515
+ });
516
+ }
517
+ // @__NO_SIDE_EFFECTS__
518
+ export function exactPartial(schema, mask) {
519
+ return util.partial(ZodMiniExactOptional, schema, mask, "exactPartial");
520
+ }
521
+ // @__NO_SIDE_EFFECTS__
522
+ export function required(schema, mask) {
523
+ return util.required(ZodMiniNonOptional, schema, mask);
524
+ }
525
+ // @__NO_SIDE_EFFECTS__
526
+ export function catchall(inst, catchall) {
527
+ // `mergeDefs` rather than a spread: spreading reads `shape`, and resolving it can mint a whole fresh subtree
528
+ return inst.clone(util.mergeDefs(inst._zod.def, { catchall: catchall }));
529
+ }
530
+ export const ZodMiniUnion = /*@__PURE__*/ core.$constructor("ZodMiniUnion", (inst, def) => {
531
+ core.$ZodUnion.init(inst, def);
532
+ ZodMiniType.init(inst, def);
533
+ });
534
+ // @__NO_SIDE_EFFECTS__
535
+ export function union(options, params) {
536
+ return new ZodMiniUnion({
537
+ type: "union",
538
+ options: options,
539
+ ...util.normalizeParams(params),
540
+ });
541
+ }
542
+ export const ZodMiniXor = /*@__PURE__*/ core.$constructor("ZodMiniXor", (inst, def) => {
543
+ ZodMiniUnion.init(inst, def);
544
+ core.$ZodXor.init(inst, def);
545
+ });
546
+ /** Creates an exclusive union (XOR) where exactly one option must match.
547
+ * Unlike regular unions that succeed when any option matches, xor fails if
548
+ * zero or more than one option matches the input. */
549
+ export function xor(options, params) {
550
+ return new ZodMiniXor({
551
+ type: "union",
552
+ options: options,
553
+ inclusive: false,
554
+ ...util.normalizeParams(params),
555
+ });
556
+ }
557
+ export const ZodMiniDiscriminatedUnion = /*@__PURE__*/ core.$constructor("ZodMiniDiscriminatedUnion", (inst, def) => {
558
+ core.$ZodDiscriminatedUnion.init(inst, def);
559
+ ZodMiniType.init(inst, def);
560
+ });
561
+ // @__NO_SIDE_EFFECTS__
562
+ export function discriminatedUnion(discriminator, options, params) {
563
+ return new ZodMiniDiscriminatedUnion({
564
+ type: "union",
565
+ options: options,
566
+ discriminator,
567
+ ...util.normalizeParams(params),
568
+ });
569
+ }
570
+ export const ZodMiniIntersection = /*@__PURE__*/ core.$constructor("ZodMiniIntersection", (inst, def) => {
571
+ core.$ZodIntersection.init(inst, def);
572
+ ZodMiniType.init(inst, def);
573
+ });
574
+ // @__NO_SIDE_EFFECTS__
575
+ export function intersection(left, right) {
576
+ return new ZodMiniIntersection({
577
+ type: "intersection",
578
+ left: left,
579
+ right: right,
580
+ });
581
+ }
582
+ export const ZodMiniTuple = /*@__PURE__*/ core.$constructor("ZodMiniTuple", (inst, def) => {
583
+ core.$ZodTuple.init(inst, def);
584
+ ZodMiniType.init(inst, def);
585
+ });
586
+ // @__NO_SIDE_EFFECTS__
587
+ export function tuple(items, _paramsOrRest, _params) {
588
+ const hasRest = _paramsOrRest instanceof core.$ZodType;
589
+ const params = hasRest ? _params : _paramsOrRest;
590
+ const rest = hasRest ? _paramsOrRest : null;
591
+ return new ZodMiniTuple({
592
+ type: "tuple",
593
+ items: items,
594
+ rest,
595
+ ...util.normalizeParams(params),
596
+ });
597
+ }
598
+ export const ZodMiniRecord = /*@__PURE__*/ core.$constructor("ZodMiniRecord", (inst, def) => {
599
+ core.$ZodRecord.init(inst, def);
600
+ ZodMiniType.init(inst, def);
601
+ });
602
+ // @__NO_SIDE_EFFECTS__
603
+ export function record(keyType, valueType, params) {
604
+ // v3-compat: z.record(valueType, params?) — defaults keyType to z.string()
605
+ if (!valueType || !valueType._zod) {
606
+ return new ZodMiniRecord({
607
+ type: "record",
608
+ keyType: string(),
609
+ valueType: keyType,
610
+ ...util.normalizeParams(valueType),
611
+ });
612
+ }
613
+ return new ZodMiniRecord({
614
+ type: "record",
615
+ keyType,
616
+ valueType: valueType,
617
+ ...util.normalizeParams(params),
618
+ });
619
+ }
620
+ // @__NO_SIDE_EFFECTS__
621
+ export function partialRecord(keyType, valueType, params) {
622
+ return new ZodMiniRecord({
623
+ type: "record",
624
+ keyType,
625
+ valueType: valueType,
626
+ ...util.normalizeParams(params),
627
+ partial: true,
628
+ });
629
+ }
630
+ export function looseRecord(keyType, valueType, params) {
631
+ return new ZodMiniRecord({
632
+ type: "record",
633
+ keyType,
634
+ valueType: valueType,
635
+ mode: "loose",
636
+ ...util.normalizeParams(params),
637
+ });
638
+ }
639
+ export const ZodMiniMap = /*@__PURE__*/ core.$constructor("ZodMiniMap", (inst, def) => {
640
+ core.$ZodMap.init(inst, def);
641
+ ZodMiniType.init(inst, def);
642
+ });
643
+ // @__NO_SIDE_EFFECTS__
644
+ export function map(keyType, valueType, params) {
645
+ return new ZodMiniMap({
646
+ type: "map",
647
+ keyType: keyType,
648
+ valueType: valueType,
649
+ ...util.normalizeParams(params),
650
+ });
651
+ }
652
+ export const ZodMiniSet = /*@__PURE__*/ core.$constructor("ZodMiniSet", (inst, def) => {
653
+ core.$ZodSet.init(inst, def);
654
+ ZodMiniType.init(inst, def);
655
+ });
656
+ // @__NO_SIDE_EFFECTS__
657
+ export function set(valueType, params) {
658
+ return new ZodMiniSet({
659
+ type: "set",
660
+ valueType: valueType,
661
+ ...util.normalizeParams(params),
662
+ });
663
+ }
664
+ export const ZodMiniEnum = /*@__PURE__*/ core.$constructor("ZodMiniEnum", (inst, def) => {
665
+ core.$ZodEnum.init(inst, def);
666
+ ZodMiniType.init(inst, def);
667
+ // reuse the parsed value set so a numeric TS enum's reverse-mapping keys stay out
668
+ inst.options = [...inst._zod.values];
669
+ });
670
+ // @__NO_SIDE_EFFECTS__
671
+ function _enum(values, params) {
672
+ const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
673
+ return new ZodMiniEnum({
674
+ type: "enum",
675
+ entries,
676
+ ...util.normalizeParams(params),
677
+ });
678
+ }
679
+ export { _enum as enum };
680
+ // @__NO_SIDE_EFFECTS__
681
+ /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
682
+ *
683
+ * ```ts
684
+ * enum Colors { red, green, blue }
685
+ * z.enum(Colors);
686
+ * ```
687
+ */
688
+ export function nativeEnum(entries, params) {
689
+ return new ZodMiniEnum({
690
+ type: "enum",
691
+ entries,
692
+ ...util.normalizeParams(params),
693
+ });
694
+ }
695
+ export const ZodMiniLiteral = /*@__PURE__*/ core.$constructor("ZodMiniLiteral", (inst, def) => {
696
+ core.$ZodLiteral.init(inst, def);
697
+ ZodMiniType.init(inst, def);
698
+ });
699
+ // @__NO_SIDE_EFFECTS__
700
+ export function literal(value, params) {
701
+ return new ZodMiniLiteral({
702
+ type: "literal",
703
+ values: Array.isArray(value) ? value : [value],
704
+ ...util.normalizeParams(params),
705
+ });
706
+ }
707
+ export const ZodMiniFile = /*@__PURE__*/ core.$constructor("ZodMiniFile", (inst, def) => {
708
+ core.$ZodFile.init(inst, def);
709
+ ZodMiniType.init(inst, def);
710
+ });
711
+ // @__NO_SIDE_EFFECTS__
712
+ export function file(params) {
713
+ return core._file(ZodMiniFile, params);
714
+ }
715
+ export const ZodMiniTransform = /*@__PURE__*/ core.$constructor("ZodMiniTransform", (inst, def) => {
716
+ core.$ZodTransform.init(inst, def);
717
+ ZodMiniType.init(inst, def);
718
+ });
719
+ // @__NO_SIDE_EFFECTS__
720
+ export function transform(fn) {
721
+ return new ZodMiniTransform({
722
+ type: "transform",
723
+ transform: fn,
724
+ });
725
+ }
726
+ export const ZodMiniOptional = /*@__PURE__*/ core.$constructor("ZodMiniOptional", (inst, def) => {
727
+ core.$ZodOptional.init(inst, def);
728
+ ZodMiniType.init(inst, def);
729
+ });
730
+ // @__NO_SIDE_EFFECTS__
731
+ export function optional(innerType) {
732
+ return new ZodMiniOptional({
733
+ type: "optional",
734
+ innerType: innerType,
735
+ });
736
+ }
737
+ export const ZodMiniExactOptional = /*@__PURE__*/ core.$constructor("ZodMiniExactOptional", (inst, def) => {
738
+ core.$ZodExactOptional.init(inst, def);
739
+ ZodMiniType.init(inst, def);
740
+ });
741
+ // @__NO_SIDE_EFFECTS__
742
+ export function exactOptional(innerType) {
743
+ return new ZodMiniExactOptional({
744
+ type: "optional",
745
+ innerType: innerType,
746
+ });
747
+ }
748
+ export const ZodMiniNullable = /*@__PURE__*/ core.$constructor("ZodMiniNullable", (inst, def) => {
749
+ core.$ZodNullable.init(inst, def);
750
+ ZodMiniType.init(inst, def);
751
+ });
752
+ // @__NO_SIDE_EFFECTS__
753
+ export function nullable(innerType) {
754
+ return new ZodMiniNullable({
755
+ type: "nullable",
756
+ innerType: innerType,
757
+ });
758
+ }
759
+ // nullish
760
+ // @__NO_SIDE_EFFECTS__
761
+ export function nullish(innerType) {
762
+ return optional(nullable(innerType));
763
+ }
764
+ export const ZodMiniDefault = /*@__PURE__*/ core.$constructor("ZodMiniDefault", (inst, def) => {
765
+ core.$ZodDefault.init(inst, def);
766
+ ZodMiniType.init(inst, def);
767
+ });
768
+ // @__NO_SIDE_EFFECTS__
769
+ export function _default(innerType, defaultValue) {
770
+ return new ZodMiniDefault({
771
+ type: "default",
772
+ innerType: innerType,
773
+ get defaultValue() {
774
+ return typeof defaultValue === "function" ? defaultValue() : util.shallowClone(defaultValue);
775
+ },
776
+ });
777
+ }
778
+ export const ZodMiniPrefault = /*@__PURE__*/ core.$constructor("ZodMiniPrefault", (inst, def) => {
779
+ core.$ZodPrefault.init(inst, def);
780
+ ZodMiniType.init(inst, def);
781
+ });
782
+ // @__NO_SIDE_EFFECTS__
783
+ export function prefault(innerType, defaultValue) {
784
+ return new ZodMiniPrefault({
785
+ type: "prefault",
786
+ innerType: innerType,
787
+ get defaultValue() {
788
+ return typeof defaultValue === "function" ? defaultValue() : util.shallowClone(defaultValue);
789
+ },
790
+ });
791
+ }
792
+ export const ZodMiniNonOptional = /*@__PURE__*/ core.$constructor("ZodMiniNonOptional", (inst, def) => {
793
+ core.$ZodNonOptional.init(inst, def);
794
+ ZodMiniType.init(inst, def);
795
+ });
796
+ // @__NO_SIDE_EFFECTS__
797
+ export function nonoptional(innerType, params) {
798
+ return new ZodMiniNonOptional({
799
+ type: "nonoptional",
800
+ innerType: innerType,
801
+ ...util.normalizeParams(params),
802
+ });
803
+ }
804
+ export const ZodMiniSuccess = /*@__PURE__*/ core.$constructor("ZodMiniSuccess", (inst, def) => {
805
+ core.$ZodSuccess.init(inst, def);
806
+ ZodMiniType.init(inst, def);
807
+ });
808
+ // @__NO_SIDE_EFFECTS__
809
+ export function success(innerType) {
810
+ return new ZodMiniSuccess({
811
+ type: "success",
812
+ innerType: innerType,
813
+ });
814
+ }
815
+ export const ZodMiniCatch = /*@__PURE__*/ core.$constructor("ZodMiniCatch", (inst, def) => {
816
+ core.$ZodCatch.init(inst, def);
817
+ ZodMiniType.init(inst, def);
818
+ });
819
+ // @__NO_SIDE_EFFECTS__
820
+ function _catch(innerType, catchValue) {
821
+ return new ZodMiniCatch({
822
+ type: "catch",
823
+ innerType: innerType,
824
+ catchValue: (typeof catchValue === "function" ? catchValue : core.util.constantCatch(catchValue)),
825
+ });
826
+ }
827
+ export { _catch as catch };
828
+ export const ZodMiniNaN = /*@__PURE__*/ core.$constructor("ZodMiniNaN", (inst, def) => {
829
+ core.$ZodNaN.init(inst, def);
830
+ ZodMiniType.init(inst, def);
831
+ });
832
+ // @__NO_SIDE_EFFECTS__
833
+ export function nan(params) {
834
+ return core._nan(ZodMiniNaN, params);
835
+ }
836
+ export const ZodMiniPipe = /*@__PURE__*/ core.$constructor("ZodMiniPipe", (inst, def) => {
837
+ core.$ZodPipe.init(inst, def);
838
+ ZodMiniType.init(inst, def);
839
+ });
840
+ // @__NO_SIDE_EFFECTS__
841
+ export function pipe(in_, out) {
842
+ return new ZodMiniPipe({
843
+ type: "pipe",
844
+ in: in_,
845
+ out: out,
846
+ });
847
+ }
848
+ export const ZodMiniCodec = /*@__PURE__*/ core.$constructor("ZodMiniCodec", (inst, def) => {
849
+ ZodMiniPipe.init(inst, def);
850
+ core.$ZodCodec.init(inst, def);
851
+ });
852
+ // @__NO_SIDE_EFFECTS__
853
+ export function codec(in_, out, params) {
854
+ return new ZodMiniCodec({
855
+ type: "pipe",
856
+ in: in_,
857
+ out: out,
858
+ transform: params.decode,
859
+ reverseTransform: params.encode,
860
+ });
861
+ }
862
+ // @__NO_SIDE_EFFECTS__
863
+ export function invertCodec(codec) {
864
+ const def = codec._zod.def;
865
+ return new ZodMiniCodec({
866
+ type: "pipe",
867
+ in: def.out,
868
+ out: def.in,
869
+ transform: def.reverseTransform,
870
+ reverseTransform: def.transform,
871
+ });
872
+ }
873
+ export const ZodMiniReadonly = /*@__PURE__*/ core.$constructor("ZodMiniReadonly", (inst, def) => {
874
+ core.$ZodReadonly.init(inst, def);
875
+ ZodMiniType.init(inst, def);
876
+ });
877
+ // @__NO_SIDE_EFFECTS__
878
+ export function readonly(innerType) {
879
+ return new ZodMiniReadonly({
880
+ type: "readonly",
881
+ innerType: innerType,
882
+ });
883
+ }
884
+ export const ZodMiniTemplateLiteral = /*@__PURE__*/ core.$constructor("ZodMiniTemplateLiteral", (inst, def) => {
885
+ core.$ZodTemplateLiteral.init(inst, def);
886
+ ZodMiniType.init(inst, def);
887
+ });
888
+ // @__NO_SIDE_EFFECTS__
889
+ export function templateLiteral(parts, params) {
890
+ return new ZodMiniTemplateLiteral({
891
+ type: "template_literal",
892
+ parts,
893
+ ...util.normalizeParams(params),
894
+ });
895
+ }
896
+ export const ZodMiniLazy = /*@__PURE__*/ core.$constructor("ZodMiniLazy", (inst, def) => {
897
+ core.$ZodLazy.init(inst, def);
898
+ ZodMiniType.init(inst, def);
899
+ });
900
+ // export function lazy<T extends object>(getter: () => T): T {
901
+ // return util.createTransparentProxy<T>(getter);
902
+ // }
903
+ // @__NO_SIDE_EFFECTS__
904
+ function _lazy(getter) {
905
+ return new ZodMiniLazy({
906
+ type: "lazy",
907
+ getter: getter,
908
+ });
909
+ }
910
+ export { _lazy as lazy };
911
+ export const ZodMiniPromise = /*@__PURE__*/ core.$constructor("ZodMiniPromise", (inst, def) => {
912
+ core.$ZodPromise.init(inst, def);
913
+ ZodMiniType.init(inst, def);
914
+ });
915
+ // @__NO_SIDE_EFFECTS__
916
+ export function promise(innerType) {
917
+ return new ZodMiniPromise({
918
+ type: "promise",
919
+ innerType: innerType,
920
+ });
921
+ }
922
+ export const ZodMiniCustom = /*@__PURE__*/ core.$constructor("ZodMiniCustom", (inst, def) => {
923
+ core.$ZodCustom.init(inst, def);
924
+ ZodMiniType.init(inst, def);
925
+ });
926
+ // custom checks
927
+ // @__NO_SIDE_EFFECTS__
928
+ export function check(fn, params) {
929
+ const ch = new core.$ZodCheck({
930
+ check: "custom",
931
+ ...util.normalizeParams(params),
932
+ });
933
+ ch._zod.check = fn;
934
+ return ch;
935
+ }
936
+ // ZodCustom custom schema
937
+ // @__NO_SIDE_EFFECTS__
938
+ export function custom(fn, _params) {
939
+ return core._custom(ZodMiniCustom, fn ?? (() => true), _params);
940
+ }
941
+ // refine
942
+ // @__NO_SIDE_EFFECTS__
943
+ export function refine(fn, _params = {}) {
944
+ return core._refine(ZodMiniCustom, fn, _params);
945
+ }
946
+ // superRefine
947
+ // @__NO_SIDE_EFFECTS__
948
+ export function superRefine(fn, params) {
949
+ return core._superRefine(fn, params);
950
+ }
951
+ // Re-export describe and meta from core
952
+ export const describe = core.describe;
953
+ export const meta = core.meta;
954
+ // instanceof
955
+ class Class {
956
+ constructor(..._args) { }
957
+ }
958
+ // @__NO_SIDE_EFFECTS__
959
+ function _instanceof(cls, params = {}) {
960
+ const inst = custom((data) => data instanceof cls, params);
961
+ inst._zod.bag.Class = cls;
962
+ // Override check to emit invalid_type instead of custom
963
+ inst._zod.check = (payload) => {
964
+ if (!(payload.value instanceof cls)) {
965
+ payload.issues.push({
966
+ code: "invalid_type",
967
+ expected: cls.name,
968
+ input: payload.value,
969
+ inst,
970
+ path: [...(inst._zod.def.path ?? [])],
971
+ });
972
+ }
973
+ };
974
+ return inst;
975
+ }
976
+ export { _instanceof as instanceof };
977
+ // stringbool
978
+ export const stringbool = (...args) => core._stringbool({
979
+ Codec: ZodMiniCodec,
980
+ Boolean: ZodMiniBoolean,
981
+ String: ZodMiniString,
982
+ }, ...args);
983
+ // @__NO_SIDE_EFFECTS__
984
+ export function json() {
985
+ const jsonSchema = _lazy(() => {
986
+ return union([string(), number(), boolean(), _null(), array(jsonSchema), record(string(), jsonSchema)]);
987
+ });
988
+ return jsonSchema;
989
+ }
990
+ export const ZodMiniFunction = /*@__PURE__*/ core.$constructor("ZodMiniFunction", (inst, def) => {
991
+ core.$ZodFunction.init(inst, def);
992
+ ZodMiniType.init(inst, def);
993
+ });
994
+ // @__NO_SIDE_EFFECTS__
995
+ export function _function(params) {
996
+ return new ZodMiniFunction({
997
+ type: "function",
998
+ input: Array.isArray(params?.input) ? tuple(params?.input) : (params?.input ?? array(unknown())),
999
+ output: params?.output ?? unknown(),
1000
+ });
1001
+ }
1002
+ export { _function as function };