@salesforce/b2c-dx-mcp 2.1.2 → 3.0.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 (1439) hide show
  1. package/README.md +20 -129
  2. package/content/guidance/b2c/b2c-business-manager-extensions/SKILL.md +361 -0
  3. package/content/guidance/b2c/b2c-business-manager-extensions/references/EXTENSIONS-XML.md +458 -0
  4. package/content/guidance/b2c/b2c-controllers/SKILL.md +301 -0
  5. package/content/guidance/b2c/b2c-controllers/references/CLASSIC-PATTERNS.md +335 -0
  6. package/content/guidance/b2c/b2c-controllers/references/SFRA-PATTERNS.md +400 -0
  7. package/content/guidance/b2c/b2c-custom-api-development/SKILL.md +281 -0
  8. package/content/guidance/b2c/b2c-custom-api-development/references/CONTRACT.md +142 -0
  9. package/content/guidance/b2c/b2c-custom-api-development/references/IMPLEMENTATION.md +153 -0
  10. package/content/guidance/b2c/b2c-custom-api-development/references/TESTING.md +118 -0
  11. package/content/guidance/b2c/b2c-custom-caches/SKILL.md +279 -0
  12. package/content/guidance/b2c/b2c-custom-job-steps/SKILL.md +520 -0
  13. package/content/guidance/b2c/b2c-custom-job-steps/references/CHUNK-ORIENTED.md +377 -0
  14. package/content/guidance/b2c/b2c-custom-job-steps/references/JOBS-XML.md +212 -0
  15. package/content/guidance/b2c/b2c-custom-job-steps/references/STEPTYPES-JSON.md +373 -0
  16. package/content/guidance/b2c/b2c-custom-job-steps/references/TASK-ORIENTED.md +344 -0
  17. package/content/guidance/b2c/b2c-custom-objects/SKILL.md +327 -0
  18. package/content/guidance/b2c/b2c-custom-objects/references/OCAPI-SEARCH.md +298 -0
  19. package/content/guidance/b2c/b2c-forms/SKILL.md +242 -0
  20. package/content/guidance/b2c/b2c-forms/references/FORM-XML.md +409 -0
  21. package/content/guidance/b2c/b2c-hooks/SKILL.md +500 -0
  22. package/content/guidance/b2c/b2c-hooks/references/OCAPI-SCAPI-HOOKS.md +403 -0
  23. package/content/guidance/b2c/b2c-hooks/references/ORDER-HOOK-LIFECYCLE.md +169 -0
  24. package/content/guidance/b2c/b2c-hooks/references/SYSTEM-HOOKS.md +433 -0
  25. package/content/guidance/b2c/b2c-isml/SKILL.md +320 -0
  26. package/content/guidance/b2c/b2c-isml/references/EXPRESSIONS.md +366 -0
  27. package/content/guidance/b2c/b2c-isml/references/TAGS.md +443 -0
  28. package/content/guidance/b2c/b2c-localization/SKILL.md +344 -0
  29. package/content/guidance/b2c/b2c-localization/references/PATTERNS.md +407 -0
  30. package/content/guidance/b2c/b2c-logging/SKILL.md +352 -0
  31. package/content/guidance/b2c/b2c-logging/references/LOG-FILES.md +282 -0
  32. package/content/guidance/b2c/b2c-metadata/SKILL.md +406 -0
  33. package/content/guidance/b2c/b2c-metadata/references/SYSTEM-OBJECTS.md +320 -0
  34. package/content/guidance/b2c/b2c-metadata/references/XML-EXAMPLES.md +366 -0
  35. package/content/guidance/b2c/b2c-onboarding/SKILL.md +154 -0
  36. package/content/guidance/b2c/b2c-ordering/SKILL.md +391 -0
  37. package/content/guidance/b2c/b2c-page-designer/SKILL.md +410 -0
  38. package/content/guidance/b2c/b2c-page-designer/references/ATTRIBUTE-TYPES.md +436 -0
  39. package/content/guidance/b2c/b2c-page-designer/references/META-DEFINITIONS.md +340 -0
  40. package/content/guidance/b2c/b2c-querying-data/SKILL.md +289 -0
  41. package/content/guidance/b2c/b2c-querying-data/references/PERFORMANCE-APIS.md +74 -0
  42. package/content/guidance/b2c/b2c-scapi-admin/SKILL.md +53 -0
  43. package/content/guidance/b2c/b2c-scapi-admin/references/CLIENT-EXAMPLES.md +440 -0
  44. package/content/guidance/b2c/b2c-scapi-admin/references/INTEGRATION-PATTERNS.md +518 -0
  45. package/content/guidance/b2c/b2c-scapi-admin/references/OAUTH-SCOPES.md +337 -0
  46. package/content/guidance/b2c/b2c-scapi-shopper/SKILL.md +56 -0
  47. package/content/guidance/b2c/b2c-scapi-shopper/references/CHECKOUT-FLOW.md +466 -0
  48. package/content/guidance/b2c/b2c-scapi-shopper/references/CLIENT-EXAMPLES.md +352 -0
  49. package/content/guidance/b2c/b2c-scapi-shopper/references/COMMON-PATTERNS.md +390 -0
  50. package/content/guidance/b2c/b2c-scapi-shopper/references/SCOPES.md +290 -0
  51. package/content/guidance/b2c/b2c-slas-auth-patterns/SKILL.md +420 -0
  52. package/content/guidance/b2c/b2c-slas-auth-patterns/references/PASSKEYS.md +126 -0
  53. package/content/guidance/b2c/b2c-slas-auth-patterns/references/SESSION-BRIDGE.md +267 -0
  54. package/content/guidance/b2c/b2c-slas-auth-patterns/references/TOKEN-LIFECYCLE.md +367 -0
  55. package/content/guidance/b2c/b2c-webservices/SKILL.md +318 -0
  56. package/content/guidance/b2c/b2c-webservices/references/FTP-SERVICES.md +524 -0
  57. package/content/guidance/b2c/b2c-webservices/references/HTTP-SERVICES.md +578 -0
  58. package/content/guidance/b2c/b2c-webservices/references/SERVICES-XML.md +351 -0
  59. package/content/guidance/b2c/b2c-webservices/references/SOAP-SERVICES.md +587 -0
  60. package/content/guidance/b2c-cli/b2c-am/SKILL.md +277 -0
  61. package/content/guidance/b2c-cli/b2c-bm-users-roles/SKILL.md +210 -0
  62. package/content/guidance/b2c-cli/b2c-cap/SKILL.md +131 -0
  63. package/content/guidance/b2c-cli/b2c-cip/SKILL.md +116 -0
  64. package/content/guidance/b2c-cli/b2c-cip/references/KNOWN_TABLES.md +105 -0
  65. package/content/guidance/b2c-cli/b2c-cip/references/SALES_ANALYSIS.md +50 -0
  66. package/content/guidance/b2c-cli/b2c-cip/references/STARTER_QUERIES.md +147 -0
  67. package/content/guidance/b2c-cli/b2c-code/SKILL.md +146 -0
  68. package/content/guidance/b2c-cli/b2c-config/SKILL.md +412 -0
  69. package/content/guidance/b2c-cli/b2c-content/SKILL.md +176 -0
  70. package/content/guidance/b2c-cli/b2c-debug/SKILL.md +138 -0
  71. package/content/guidance/b2c-cli/b2c-docs/SKILL.md +274 -0
  72. package/content/guidance/b2c-cli/b2c-ecdn/SKILL.md +135 -0
  73. package/content/guidance/b2c-cli/b2c-ecdn/references/ADVANCED.md +82 -0
  74. package/content/guidance/b2c-cli/b2c-ecdn/references/SECURITY.md +75 -0
  75. package/content/guidance/b2c-cli/b2c-import-set-migrations/SKILL.md +265 -0
  76. package/content/guidance/b2c-cli/b2c-job/SKILL.md +62 -0
  77. package/content/guidance/b2c-cli/b2c-job/references/EXPORT.md +115 -0
  78. package/content/guidance/b2c-cli/b2c-job/references/IMPORT.md +43 -0
  79. package/content/guidance/b2c-cli/b2c-job/references/RUN-AND-MONITOR.md +119 -0
  80. package/content/guidance/b2c-cli/b2c-logs/SKILL.md +249 -0
  81. package/content/guidance/b2c-cli/b2c-metrics/SKILL.md +315 -0
  82. package/content/guidance/b2c-cli/b2c-mrt/SKILL.md +206 -0
  83. package/content/guidance/b2c-cli/b2c-mrt/references/BUNDLE-COMMANDS.md +185 -0
  84. package/content/guidance/b2c-cli/b2c-mrt/references/ENVIRONMENT-COMMANDS.md +195 -0
  85. package/content/guidance/b2c-cli/b2c-mrt/references/PROJECT-COMMANDS.md +154 -0
  86. package/content/guidance/b2c-cli/b2c-sandbox/SKILL.md +112 -0
  87. package/content/guidance/b2c-cli/b2c-scapi-custom/SKILL.md +126 -0
  88. package/content/guidance/b2c-cli/b2c-scapi-schemas/SKILL.md +64 -0
  89. package/content/guidance/b2c-cli/b2c-scapi-schemas/references/CLI-EXAMPLES.md +108 -0
  90. package/content/guidance/b2c-cli/b2c-site-import-export/SKILL.md +57 -0
  91. package/content/guidance/b2c-cli/b2c-site-import-export/references/IMPORT-OPTIONS.md +118 -0
  92. package/content/guidance/b2c-cli/b2c-site-import-export/references/METADATA-XML.md +381 -0
  93. package/content/guidance/b2c-cli/b2c-site-import-export/references/WORKFLOWS.md +182 -0
  94. package/content/guidance/b2c-cli/b2c-sites/SKILL.md +112 -0
  95. package/content/guidance/b2c-cli/b2c-slas/SKILL.md +182 -0
  96. package/content/guidance/b2c-cli/b2c-webdav/SKILL.md +169 -0
  97. package/content/guidance/b2c-ops/b2c-checkout-triage/SKILL.md +68 -0
  98. package/content/guidance/b2c-ops/b2c-job-health/SKILL.md +75 -0
  99. package/content/guidance/b2c-ops/b2c-job-health/references/job-logs.md +21 -0
  100. package/content/guidance/b2c-ops/b2c-order-failure-triage/SKILL.md +66 -0
  101. package/content/guidance/b2c-ops/b2c-order-failure-triage/references/order-evidence.md +87 -0
  102. package/content/guidance/b2c-ops/b2c-production-triage/SKILL.md +87 -0
  103. package/content/guidance/b2c-ops/b2c-production-triage/references/escalation.md +57 -0
  104. package/content/guidance/index.json +1427 -0
  105. package/content/guidance/mcp/b2c-config/SKILL.md +86 -0
  106. package/content/guidance/mcp/cip/SKILL.md +86 -0
  107. package/content/guidance/mcp/debugger/SKILL.md +71 -0
  108. package/content/guidance/mcp/scapi/SKILL.md +153 -0
  109. package/content/guidance/mcp/scapi/references/custom-apis.md +51 -0
  110. package/content/guidance/mcp/scapi/references/custom-properties.md +43 -0
  111. package/content/guidance/mcp/scapi/references/jobs.md +30 -0
  112. package/content/guidance/mcp/scapi/references/products.md +37 -0
  113. package/content/guidance/mcp/scapi/references/promotions.md +19 -0
  114. package/content/guidance/mcp/scapi/references/saving.md +12 -0
  115. package/content/guidance/mcp/scapi/references/snippets.md +89 -0
  116. package/content/guidance/mcp/scapi/references/tokens.md +56 -0
  117. package/content/guidance/mcp/server/SKILL.md +99 -0
  118. package/content/guidance/mcp/server/references/files.md +37 -0
  119. package/content/guidance/storefront-next/sfnext-authentication/SKILL.md +120 -0
  120. package/content/guidance/storefront-next/sfnext-components/SKILL.md +191 -0
  121. package/content/guidance/storefront-next/sfnext-configuration/SKILL.md +160 -0
  122. package/content/guidance/storefront-next/sfnext-create-component/SKILL.md +195 -0
  123. package/content/guidance/storefront-next/sfnext-create-component/references/COMPONENT-AUTHORING.md +206 -0
  124. package/content/guidance/storefront-next/sfnext-create-component/references/PROJECT-STRUCTURE.md +43 -0
  125. package/content/guidance/storefront-next/sfnext-create-component/references/TOKEN-SYSTEM.md +130 -0
  126. package/content/guidance/storefront-next/sfnext-create-component/references/TROUBLESHOOTING.md +34 -0
  127. package/content/guidance/storefront-next/sfnext-create-vertical/SKILL.md +135 -0
  128. package/content/guidance/storefront-next/sfnext-create-vertical/references/COMPONENT-AUTHORING.md +206 -0
  129. package/content/guidance/storefront-next/sfnext-create-vertical/references/PROJECT-STRUCTURE.md +43 -0
  130. package/content/guidance/storefront-next/sfnext-create-vertical/references/TOKEN-SYSTEM.md +130 -0
  131. package/content/guidance/storefront-next/sfnext-create-vertical/references/TROUBLESHOOTING.md +34 -0
  132. package/content/guidance/storefront-next/sfnext-custom-apis/SKILL.md +221 -0
  133. package/content/guidance/storefront-next/sfnext-custom-apis/references/WORKFLOW-EXAMPLES.md +294 -0
  134. package/content/guidance/storefront-next/sfnext-data-fetching/SKILL.md +190 -0
  135. package/content/guidance/storefront-next/sfnext-data-fetching/references/LOADER-PATTERNS.md +102 -0
  136. package/content/guidance/storefront-next/sfnext-data-fetching/references/SCAPI-FETCHER.md +93 -0
  137. package/content/guidance/storefront-next/sfnext-deployment/SKILL.md +141 -0
  138. package/content/guidance/storefront-next/sfnext-deployment/references/MRT-DEPLOYMENT.md +90 -0
  139. package/content/guidance/storefront-next/sfnext-extensions/SKILL.md +142 -0
  140. package/content/guidance/storefront-next/sfnext-extensions/references/BASE-AUDIT.md +65 -0
  141. package/content/guidance/storefront-next/sfnext-extensions/references/EXTENSION-EXAMPLES.md +116 -0
  142. package/content/guidance/storefront-next/sfnext-hybrid-storefronts/SKILL.md +148 -0
  143. package/content/guidance/storefront-next/sfnext-hybrid-storefronts/references/HYBRID-PROXY-CONFIG.md +123 -0
  144. package/content/guidance/storefront-next/sfnext-i18n/SKILL.md +187 -0
  145. package/content/guidance/storefront-next/sfnext-page-designer/SKILL.md +181 -0
  146. package/content/guidance/storefront-next/sfnext-page-designer/references/COMPONENT-REGISTRY.md +78 -0
  147. package/content/guidance/storefront-next/sfnext-page-designer/references/DECORATOR-PATTERNS.md +180 -0
  148. package/content/guidance/storefront-next/sfnext-performance/SKILL.md +132 -0
  149. package/content/guidance/storefront-next/sfnext-project-setup/SKILL.md +160 -0
  150. package/content/guidance/storefront-next/sfnext-project-setup/references/ENV-VARIABLES.md +82 -0
  151. package/content/guidance/storefront-next/sfnext-project-setup/references/PROJECT-STRUCTURE.md +99 -0
  152. package/content/guidance/storefront-next/sfnext-routing/SKILL.md +180 -0
  153. package/content/guidance/storefront-next/sfnext-routing/references/ROUTE-CONVENTIONS.md +65 -0
  154. package/content/guidance/storefront-next/sfnext-scapi-management/SKILL.md +203 -0
  155. package/content/guidance/storefront-next/sfnext-scapi-management/references/CLI-COMMANDS.md +122 -0
  156. package/content/guidance/storefront-next/sfnext-state-management/SKILL.md +123 -0
  157. package/content/guidance/storefront-next/sfnext-testing/SKILL.md +184 -0
  158. package/content/guidance/storefront-next/sfnext-testing/references/STORYBOOK-PATTERNS.md +118 -0
  159. package/dist/commands/mcp.d.ts +2 -3
  160. package/dist/commands/mcp.js +53 -48
  161. package/dist/guidance.d.ts +6 -0
  162. package/dist/guidance.js +157 -0
  163. package/dist/registry.d.ts +2 -1
  164. package/dist/registry.js +22 -170
  165. package/dist/server.d.ts +19 -5
  166. package/dist/server.js +65 -8
  167. package/dist/skill-references.d.ts +28 -0
  168. package/dist/skill-references.js +14 -0
  169. package/dist/tools/adapter.d.ts +8 -5
  170. package/dist/tools/adapter.js +19 -7
  171. package/dist/tools/cartridges/index.js +38 -15
  172. package/dist/tools/cartridges/selected-files.d.ts +11 -0
  173. package/dist/tools/cartridges/selected-files.js +61 -0
  174. package/dist/tools/cip/client.d.ts +9 -0
  175. package/dist/tools/cip/client.js +44 -0
  176. package/dist/tools/cip/index.d.ts +6 -0
  177. package/dist/tools/cip/index.js +209 -0
  178. package/dist/tools/diagnostics/config-inspect.js +8 -4
  179. package/dist/tools/diagnostics/debug-capture-at-breakpoint.js +37 -11
  180. package/dist/tools/diagnostics/{debug-step.d.ts → debug-control.d.ts} +1 -1
  181. package/dist/tools/diagnostics/debug-control.js +36 -0
  182. package/dist/tools/diagnostics/debug-end-session.js +6 -7
  183. package/dist/tools/diagnostics/debug-evaluate.js +8 -6
  184. package/dist/tools/diagnostics/{debug-continue.d.ts → debug-inspect.d.ts} +1 -1
  185. package/dist/tools/diagnostics/debug-inspect.js +70 -0
  186. package/dist/tools/diagnostics/debug-list-sessions.js +4 -2
  187. package/dist/tools/diagnostics/debug-set-breakpoints.js +16 -15
  188. package/dist/tools/diagnostics/debug-start-session.js +5 -2
  189. package/dist/tools/diagnostics/debug-wait-for-stop.js +5 -2
  190. package/dist/tools/diagnostics/index.d.ts +2 -2
  191. package/dist/tools/diagnostics/index.js +8 -20
  192. package/dist/tools/diagnostics/log-watch-registry.d.ts +1 -1
  193. package/dist/tools/diagnostics/log-watch-registry.js +2 -2
  194. package/dist/tools/diagnostics/logs-get-recent.js +4 -1
  195. package/dist/tools/diagnostics/logs-list-files.js +4 -2
  196. package/dist/tools/diagnostics/logs-watch-poll.js +7 -11
  197. package/dist/tools/diagnostics/{logs-watch-start.d.ts → logs-watch.d.ts} +1 -1
  198. package/dist/tools/diagnostics/{logs-watch-start.js → logs-watch.js} +45 -12
  199. package/dist/tools/diagnostics/mrt-log-watch-registry.js +2 -2
  200. package/dist/tools/diagnostics/mrt-logs-watch-poll.js +6 -8
  201. package/dist/tools/diagnostics/{mrt-logs-watch-start.d.ts → mrt-logs-watch.d.ts} +1 -1
  202. package/dist/tools/diagnostics/{mrt-logs-watch-start.js → mrt-logs-watch.js} +44 -11
  203. package/dist/tools/diagnostics/watch-lifecycle.d.ts +3 -0
  204. package/dist/tools/diagnostics/watch-lifecycle.js +47 -0
  205. package/dist/tools/docs/docs-list.js +12 -8
  206. package/dist/tools/docs/docs-read.js +8 -2
  207. package/dist/tools/docs/docs-schema-list.js +5 -1
  208. package/dist/tools/docs/docs-schema-read.js +5 -1
  209. package/dist/tools/docs/docs-schema-search.js +5 -1
  210. package/dist/tools/docs/docs-search.js +8 -7
  211. package/dist/tools/docs/storefront.d.ts +21 -1
  212. package/dist/tools/docs/storefront.js +25 -0
  213. package/dist/tools/index.d.ts +2 -2
  214. package/dist/tools/index.js +2 -2
  215. package/dist/tools/mrt/index.js +3 -1
  216. package/dist/tools/project-context.d.ts +5 -3
  217. package/dist/tools/project-context.js +1 -1
  218. package/dist/tools/scapi/index.d.ts +1 -1
  219. package/dist/tools/scapi/index.js +2 -2
  220. package/dist/tools/scapi/metrics-get.js +3 -1
  221. package/dist/tools/scapi/scapi-code.d.ts +3 -0
  222. package/dist/tools/scapi/scapi-code.js +237 -0
  223. package/dist/tools/scapi/scapi-custom-apis-get-status.js +3 -1
  224. package/dist/tools/scapi/scapi-schemas-list.js +8 -1
  225. package/dist/tools/webdav/files.d.ts +14 -0
  226. package/dist/tools/webdav/files.js +118 -0
  227. package/dist/tools/webdav/index.d.ts +3 -0
  228. package/dist/tools/webdav/index.js +160 -0
  229. package/dist/utils/constants.d.ts +2 -2
  230. package/dist/utils/constants.js +1 -1
  231. package/dist/utils/index.d.ts +1 -0
  232. package/dist/utils/index.js +1 -0
  233. package/dist/utils/tool-effects.d.ts +4 -0
  234. package/dist/utils/tool-effects.js +15 -0
  235. package/dist/utils/types.d.ts +17 -8
  236. package/dist/utils/types.js +0 -5
  237. package/node_modules/@modelcontextprotocol/core/LICENSE +216 -0
  238. package/node_modules/@modelcontextprotocol/core/README.md +40 -0
  239. package/node_modules/@modelcontextprotocol/core/dist/auth-BWdKR39I.d.mts +8501 -0
  240. package/node_modules/@modelcontextprotocol/core/dist/auth-BWdKR39I.d.mts.map +1 -0
  241. package/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs +1678 -0
  242. package/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs.map +1 -0
  243. package/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs +2899 -0
  244. package/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs.map +1 -0
  245. package/node_modules/@modelcontextprotocol/core/dist/auth-hYtaIUZm.d.cts +8501 -0
  246. package/node_modules/@modelcontextprotocol/core/dist/auth-hYtaIUZm.d.cts.map +1 -0
  247. package/node_modules/@modelcontextprotocol/core/dist/index.cjs +175 -0
  248. package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +2 -0
  249. package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +2 -0
  250. package/node_modules/@modelcontextprotocol/core/dist/index.mjs +3 -0
  251. package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +201 -0
  252. package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +99 -0
  253. package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts.map +1 -0
  254. package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +99 -0
  255. package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts.map +1 -0
  256. package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +3 -0
  257. package/node_modules/@modelcontextprotocol/core/package.json +85 -0
  258. package/node_modules/@modelcontextprotocol/server/LICENSE +216 -0
  259. package/node_modules/@modelcontextprotocol/server/README.md +30 -0
  260. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs +7514 -0
  261. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs.map +1 -0
  262. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CgI-5L6O.d.mts +1071 -0
  263. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CgI-5L6O.d.mts.map +1 -0
  264. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-FOQRM7up.d.cts +1071 -0
  265. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-FOQRM7up.d.cts.map +1 -0
  266. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs +7531 -0
  267. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs.map +1 -0
  268. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs +986 -0
  269. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs.map +1 -0
  270. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts +74 -0
  271. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts.map +1 -0
  272. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts +74 -0
  273. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts.map +1 -0
  274. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs +981 -0
  275. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs.map +1 -0
  276. package/node_modules/@modelcontextprotocol/server/dist/chunk-Bnu9O96Y.cjs +60 -0
  277. package/node_modules/@modelcontextprotocol/server/dist/chunk-Br0eD_fh.mjs +42 -0
  278. package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-CLhGwQTn.d.mts +4043 -0
  279. package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-CLhGwQTn.d.mts.map +1 -0
  280. package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-dBHMsxwf.d.cts +4045 -0
  281. package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-dBHMsxwf.d.cts.map +1 -0
  282. package/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs +46 -0
  283. package/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs.map +1 -0
  284. package/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs +34 -0
  285. package/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs.map +1 -0
  286. package/node_modules/@modelcontextprotocol/server/dist/index.cjs +2055 -0
  287. package/node_modules/@modelcontextprotocol/server/dist/index.cjs.map +1 -0
  288. package/node_modules/@modelcontextprotocol/server/dist/index.d.cts +739 -0
  289. package/node_modules/@modelcontextprotocol/server/dist/index.d.cts.map +1 -0
  290. package/node_modules/@modelcontextprotocol/server/dist/index.d.mts +739 -0
  291. package/node_modules/@modelcontextprotocol/server/dist/index.d.mts.map +1 -0
  292. package/node_modules/@modelcontextprotocol/server/dist/index.mjs +1870 -0
  293. package/node_modules/@modelcontextprotocol/server/dist/index.mjs.map +1 -0
  294. package/node_modules/@modelcontextprotocol/server/dist/mcp-D7GmuPnv.cjs +2022 -0
  295. package/node_modules/@modelcontextprotocol/server/dist/mcp-D7GmuPnv.cjs.map +1 -0
  296. package/node_modules/@modelcontextprotocol/server/dist/mcp-DXXb3Vv3.mjs +1931 -0
  297. package/node_modules/@modelcontextprotocol/server/dist/mcp-DXXb3Vv3.mjs.map +1 -0
  298. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs +23 -0
  299. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs.map +1 -0
  300. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts +11 -0
  301. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts.map +1 -0
  302. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts +11 -0
  303. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts.map +1 -0
  304. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs +22 -0
  305. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs.map +1 -0
  306. package/node_modules/@modelcontextprotocol/server/dist/shimsNode.cjs +12 -0
  307. package/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.cts +3 -0
  308. package/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.mts +3 -0
  309. package/node_modules/@modelcontextprotocol/server/dist/shimsNode.mjs +4 -0
  310. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs +30 -0
  311. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs.map +1 -0
  312. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts +10 -0
  313. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts.map +1 -0
  314. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts +10 -0
  315. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts.map +1 -0
  316. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs +29 -0
  317. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs.map +1 -0
  318. package/node_modules/@modelcontextprotocol/server/dist/src-CX2iR2pK.mjs +7606 -0
  319. package/node_modules/@modelcontextprotocol/server/dist/src-CX2iR2pK.mjs.map +1 -0
  320. package/node_modules/@modelcontextprotocol/server/dist/src-STyD_Vvf.cjs +8104 -0
  321. package/node_modules/@modelcontextprotocol/server/dist/src-STyD_Vvf.cjs.map +1 -0
  322. package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs +564 -0
  323. package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs.map +1 -0
  324. package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts +107 -0
  325. package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts.map +1 -0
  326. package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts +107 -0
  327. package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts.map +1 -0
  328. package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs +562 -0
  329. package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs.map +1 -0
  330. package/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts +1099 -0
  331. package/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts.map +1 -0
  332. package/node_modules/@modelcontextprotocol/server/dist/types-DsbMXNFL.d.cts +1099 -0
  333. package/node_modules/@modelcontextprotocol/server/dist/types-DsbMXNFL.d.cts.map +1 -0
  334. package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.cjs +5 -0
  335. package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.cts +2 -0
  336. package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.mts +2 -0
  337. package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.mjs +3 -0
  338. package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.cjs +3 -0
  339. package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.cts +2 -0
  340. package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.mts +2 -0
  341. package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.mjs +3 -0
  342. package/node_modules/@modelcontextprotocol/server/package.json +160 -0
  343. package/node_modules/@salesforce/b2c-agent-plugins/CHANGELOG.md +351 -0
  344. package/node_modules/@salesforce/b2c-agent-plugins/README.md +84 -0
  345. package/node_modules/@salesforce/b2c-agent-plugins/b2c/.codex-plugin/plugin.json +40 -0
  346. package/node_modules/@salesforce/b2c-agent-plugins/b2c/README.md +42 -0
  347. package/node_modules/@salesforce/b2c-agent-plugins/b2c/assets/logo.svg +31 -0
  348. package/node_modules/@salesforce/b2c-agent-plugins/b2c/plugin.json +44 -0
  349. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-business-manager-extensions/SKILL.md +361 -0
  350. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-business-manager-extensions/evals/trigger-evals.json +12 -0
  351. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-business-manager-extensions/references/EXTENSIONS-XML.md +458 -0
  352. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-controllers/SKILL.md +301 -0
  353. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-controllers/evals/trigger-evals.json +12 -0
  354. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-controllers/references/CLASSIC-PATTERNS.md +335 -0
  355. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-controllers/references/SFRA-PATTERNS.md +400 -0
  356. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-api-development/SKILL.md +281 -0
  357. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-api-development/evals/trigger-evals.json +12 -0
  358. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-api-development/references/CONTRACT.md +142 -0
  359. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-api-development/references/IMPLEMENTATION.md +153 -0
  360. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-api-development/references/TESTING.md +118 -0
  361. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-caches/SKILL.md +279 -0
  362. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-caches/evals/trigger-evals.json +12 -0
  363. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-job-steps/SKILL.md +520 -0
  364. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-job-steps/evals/trigger-evals.json +12 -0
  365. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-job-steps/references/CHUNK-ORIENTED.md +377 -0
  366. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-job-steps/references/JOBS-XML.md +212 -0
  367. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-job-steps/references/STEPTYPES-JSON.md +373 -0
  368. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-job-steps/references/TASK-ORIENTED.md +344 -0
  369. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-objects/SKILL.md +327 -0
  370. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-objects/evals/trigger-evals.json +12 -0
  371. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-custom-objects/references/OCAPI-SEARCH.md +298 -0
  372. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-forms/SKILL.md +242 -0
  373. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-forms/evals/trigger-evals.json +12 -0
  374. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-forms/references/FORM-XML.md +409 -0
  375. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-hooks/SKILL.md +500 -0
  376. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-hooks/evals/trigger-evals.json +14 -0
  377. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-hooks/references/OCAPI-SCAPI-HOOKS.md +403 -0
  378. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-hooks/references/ORDER-HOOK-LIFECYCLE.md +169 -0
  379. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-hooks/references/SYSTEM-HOOKS.md +433 -0
  380. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-isml/SKILL.md +320 -0
  381. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-isml/evals/trigger-evals.json +12 -0
  382. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-isml/references/EXPRESSIONS.md +366 -0
  383. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-isml/references/TAGS.md +443 -0
  384. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-localization/SKILL.md +344 -0
  385. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-localization/evals/trigger-evals.json +12 -0
  386. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-localization/references/PATTERNS.md +407 -0
  387. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-logging/SKILL.md +352 -0
  388. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-logging/evals/trigger-evals.json +12 -0
  389. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-logging/references/LOG-FILES.md +282 -0
  390. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-metadata/SKILL.md +406 -0
  391. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-metadata/evals/trigger-evals.json +12 -0
  392. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-metadata/references/SYSTEM-OBJECTS.md +320 -0
  393. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-metadata/references/XML-EXAMPLES.md +366 -0
  394. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-onboarding/SKILL.md +154 -0
  395. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-ordering/SKILL.md +391 -0
  396. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-ordering/evals/trigger-evals.json +12 -0
  397. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-page-designer/SKILL.md +410 -0
  398. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-page-designer/evals/trigger-evals.json +12 -0
  399. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-page-designer/references/ATTRIBUTE-TYPES.md +436 -0
  400. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-page-designer/references/META-DEFINITIONS.md +340 -0
  401. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-querying-data/SKILL.md +289 -0
  402. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-querying-data/evals/trigger-evals.json +12 -0
  403. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-querying-data/references/PERFORMANCE-APIS.md +74 -0
  404. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-admin/SKILL.md +53 -0
  405. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-admin/evals/trigger-evals.json +12 -0
  406. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-admin/references/CLIENT-EXAMPLES.md +440 -0
  407. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-admin/references/INTEGRATION-PATTERNS.md +518 -0
  408. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-admin/references/OAUTH-SCOPES.md +337 -0
  409. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-shopper/SKILL.md +56 -0
  410. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-shopper/evals/trigger-evals.json +12 -0
  411. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-shopper/references/CHECKOUT-FLOW.md +466 -0
  412. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-shopper/references/CLIENT-EXAMPLES.md +352 -0
  413. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-shopper/references/COMMON-PATTERNS.md +390 -0
  414. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-scapi-shopper/references/SCOPES.md +290 -0
  415. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-slas-auth-patterns/SKILL.md +420 -0
  416. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-slas-auth-patterns/evals/trigger-evals.json +12 -0
  417. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-slas-auth-patterns/references/PASSKEYS.md +126 -0
  418. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-slas-auth-patterns/references/SESSION-BRIDGE.md +267 -0
  419. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-slas-auth-patterns/references/TOKEN-LIFECYCLE.md +367 -0
  420. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-webservices/SKILL.md +318 -0
  421. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-webservices/evals/trigger-evals.json +12 -0
  422. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-webservices/references/FTP-SERVICES.md +524 -0
  423. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-webservices/references/HTTP-SERVICES.md +578 -0
  424. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-webservices/references/SERVICES-XML.md +351 -0
  425. package/node_modules/@salesforce/b2c-agent-plugins/b2c/skills/b2c-webservices/references/SOAP-SERVICES.md +587 -0
  426. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/.codex-plugin/plugin.json +40 -0
  427. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/README.md +42 -0
  428. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/assets/logo.svg +31 -0
  429. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/plugin.json +44 -0
  430. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-am/SKILL.md +277 -0
  431. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-am/evals/trigger-evals.json +12 -0
  432. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-bm-users-roles/SKILL.md +210 -0
  433. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-cap/SKILL.md +131 -0
  434. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-cip/SKILL.md +116 -0
  435. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-cip/evals/trigger-evals.json +12 -0
  436. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-cip/references/KNOWN_TABLES.md +105 -0
  437. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-cip/references/SALES_ANALYSIS.md +50 -0
  438. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-cip/references/STARTER_QUERIES.md +147 -0
  439. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-code/SKILL.md +146 -0
  440. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-code/evals/trigger-evals.json +14 -0
  441. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-config/SKILL.md +412 -0
  442. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-config/evals/trigger-evals.json +12 -0
  443. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-content/SKILL.md +176 -0
  444. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-content/evals/trigger-evals.json +12 -0
  445. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-debug/SKILL.md +138 -0
  446. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-debug/evals/trigger-evals.json +16 -0
  447. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-docs/SKILL.md +274 -0
  448. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-docs/evals/trigger-evals.json +12 -0
  449. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-ecdn/SKILL.md +135 -0
  450. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-ecdn/evals/trigger-evals.json +12 -0
  451. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-ecdn/references/ADVANCED.md +82 -0
  452. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-ecdn/references/SECURITY.md +75 -0
  453. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-import-set-migrations/SKILL.md +265 -0
  454. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-import-set-migrations/evals/trigger-evals.json +12 -0
  455. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-job/SKILL.md +62 -0
  456. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-job/evals/trigger-evals.json +12 -0
  457. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-job/references/EXPORT.md +115 -0
  458. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-job/references/IMPORT.md +43 -0
  459. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-job/references/RUN-AND-MONITOR.md +119 -0
  460. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-logs/SKILL.md +249 -0
  461. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-logs/evals/trigger-evals.json +12 -0
  462. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-metrics/SKILL.md +315 -0
  463. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-mrt/SKILL.md +206 -0
  464. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-mrt/evals/trigger-evals.json +12 -0
  465. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-mrt/references/BUNDLE-COMMANDS.md +185 -0
  466. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-mrt/references/ENVIRONMENT-COMMANDS.md +195 -0
  467. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-mrt/references/PROJECT-COMMANDS.md +154 -0
  468. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-sandbox/SKILL.md +112 -0
  469. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-sandbox/evals/trigger-evals.json +12 -0
  470. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-scapi-custom/SKILL.md +126 -0
  471. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-scapi-custom/evals/trigger-evals.json +12 -0
  472. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-scapi-schemas/SKILL.md +64 -0
  473. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-scapi-schemas/evals/trigger-evals.json +12 -0
  474. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-scapi-schemas/references/CLI-EXAMPLES.md +108 -0
  475. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-site-import-export/SKILL.md +57 -0
  476. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-site-import-export/evals/trigger-evals.json +14 -0
  477. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-site-import-export/references/IMPORT-OPTIONS.md +118 -0
  478. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-site-import-export/references/METADATA-XML.md +381 -0
  479. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-site-import-export/references/WORKFLOWS.md +182 -0
  480. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-sites/SKILL.md +112 -0
  481. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-sites/evals/trigger-evals.json +12 -0
  482. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-slas/SKILL.md +182 -0
  483. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-slas/evals/trigger-evals.json +12 -0
  484. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-webdav/SKILL.md +169 -0
  485. package/node_modules/@salesforce/b2c-agent-plugins/b2c-cli/skills/b2c-webdav/evals/trigger-evals.json +12 -0
  486. package/node_modules/@salesforce/b2c-agent-plugins/b2c-experimental/skills/b2c-scaffold/SKILL.md +168 -0
  487. package/node_modules/@salesforce/b2c-agent-plugins/b2c-experimental/skills/b2c-scaffold/evals/trigger-evals.json +12 -0
  488. package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/.codex-plugin/plugin.json +39 -0
  489. package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/README.md +31 -0
  490. package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/assets/logo.svg +31 -0
  491. package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/plugin.json +43 -0
  492. package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/skills/b2c-checkout-triage/SKILL.md +68 -0
  493. package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/skills/b2c-job-health/SKILL.md +75 -0
  494. package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/skills/b2c-job-health/references/job-logs.md +21 -0
  495. package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/skills/b2c-order-failure-triage/SKILL.md +66 -0
  496. package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/skills/b2c-order-failure-triage/references/order-evidence.md +87 -0
  497. package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/skills/b2c-production-triage/SKILL.md +87 -0
  498. package/node_modules/@salesforce/b2c-agent-plugins/b2c-ops/skills/b2c-production-triage/references/escalation.md +57 -0
  499. package/node_modules/@salesforce/b2c-agent-plugins/eval/README.md +160 -0
  500. package/node_modules/@salesforce/b2c-agent-plugins/eval/eval_lib.py +705 -0
  501. package/node_modules/@salesforce/b2c-agent-plugins/eval/project/CLAUDE.md +10 -0
  502. package/node_modules/@salesforce/b2c-agent-plugins/eval/project/README.md +24 -0
  503. package/node_modules/@salesforce/b2c-agent-plugins/eval/project/cartridges/app_storefront_custom/cartridge/controllers/Loyalty.js +16 -0
  504. package/node_modules/@salesforce/b2c-agent-plugins/eval/project/cartridges/app_storefront_custom/cartridge/models/loyalty.js +13 -0
  505. package/node_modules/@salesforce/b2c-agent-plugins/eval/project/cartridges/app_storefront_custom/cartridge/templates/default/loyalty/dashboard.isml +22 -0
  506. package/node_modules/@salesforce/b2c-agent-plugins/eval/project/dw.json +5 -0
  507. package/node_modules/@salesforce/b2c-agent-plugins/eval/run_eval.py +187 -0
  508. package/node_modules/@salesforce/b2c-agent-plugins/eval/run_loop.py +467 -0
  509. package/node_modules/@salesforce/b2c-agent-plugins/figma-to-sfnext-pagedesigner/.codex-plugin/plugin.json +40 -0
  510. package/node_modules/@salesforce/b2c-agent-plugins/figma-to-sfnext-pagedesigner/README.md +55 -0
  511. package/node_modules/@salesforce/b2c-agent-plugins/figma-to-sfnext-pagedesigner/assets/logo.svg +31 -0
  512. package/node_modules/@salesforce/b2c-agent-plugins/figma-to-sfnext-pagedesigner/plugin.json +44 -0
  513. package/node_modules/@salesforce/b2c-agent-plugins/figma-to-sfnext-pagedesigner/skills/figma-to-sfnext-pagedesigner/SKILL.md +444 -0
  514. package/node_modules/@salesforce/b2c-agent-plugins/figma-to-sfnext-pagedesigner/skills/figma-to-sfnext-pagedesigner/evals/trigger-evals.json +12 -0
  515. package/node_modules/@salesforce/b2c-agent-plugins/figma-to-sfnext-pagedesigner/skills/figma-to-sfnext-pagedesigner/references/PAGE-DESIGNER-SFN.md +120 -0
  516. package/node_modules/@salesforce/b2c-agent-plugins/package.json +6 -0
  517. package/node_modules/@salesforce/b2c-agent-plugins/plugins.json +23 -0
  518. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/.codex-plugin/plugin.json +39 -0
  519. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/README.md +56 -0
  520. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/assets/logo.svg +31 -0
  521. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/plugin.json +43 -0
  522. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-authentication/SKILL.md +120 -0
  523. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-components/SKILL.md +191 -0
  524. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-configuration/SKILL.md +160 -0
  525. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-component/SKILL.md +195 -0
  526. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-component/evals/trigger-evals.json +12 -0
  527. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-component/references/COMPONENT-AUTHORING.md +206 -0
  528. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-component/references/PROJECT-STRUCTURE.md +43 -0
  529. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-component/references/TOKEN-SYSTEM.md +130 -0
  530. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-component/references/TROUBLESHOOTING.md +34 -0
  531. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-vertical/SKILL.md +135 -0
  532. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-vertical/evals/trigger-evals.json +12 -0
  533. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-vertical/references/COMPONENT-AUTHORING.md +206 -0
  534. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-vertical/references/PROJECT-STRUCTURE.md +43 -0
  535. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-vertical/references/TOKEN-SYSTEM.md +130 -0
  536. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-create-vertical/references/TROUBLESHOOTING.md +34 -0
  537. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-custom-apis/SKILL.md +221 -0
  538. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-custom-apis/evals/trigger-evals.json +12 -0
  539. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-custom-apis/references/WORKFLOW-EXAMPLES.md +294 -0
  540. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-data-fetching/SKILL.md +190 -0
  541. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-data-fetching/references/LOADER-PATTERNS.md +102 -0
  542. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-data-fetching/references/SCAPI-FETCHER.md +93 -0
  543. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-deployment/SKILL.md +141 -0
  544. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-deployment/references/MRT-DEPLOYMENT.md +90 -0
  545. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-extensions/SKILL.md +142 -0
  546. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-extensions/references/BASE-AUDIT.md +65 -0
  547. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-extensions/references/EXTENSION-EXAMPLES.md +116 -0
  548. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-hybrid-storefronts/SKILL.md +148 -0
  549. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-hybrid-storefronts/references/HYBRID-PROXY-CONFIG.md +123 -0
  550. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-i18n/SKILL.md +187 -0
  551. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-page-designer/SKILL.md +181 -0
  552. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-page-designer/references/COMPONENT-REGISTRY.md +78 -0
  553. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-page-designer/references/DECORATOR-PATTERNS.md +180 -0
  554. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-performance/SKILL.md +132 -0
  555. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-project-setup/SKILL.md +160 -0
  556. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-project-setup/references/ENV-VARIABLES.md +82 -0
  557. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-project-setup/references/PROJECT-STRUCTURE.md +99 -0
  558. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-routing/SKILL.md +180 -0
  559. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-routing/references/ROUTE-CONVENTIONS.md +65 -0
  560. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-scapi-management/SKILL.md +203 -0
  561. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-scapi-management/evals/trigger-evals.json +12 -0
  562. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-scapi-management/references/CLI-COMMANDS.md +122 -0
  563. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-state-management/SKILL.md +123 -0
  564. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-testing/SKILL.md +184 -0
  565. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next/skills/sfnext-testing/references/STORYBOOK-PATTERNS.md +118 -0
  566. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/.codex-plugin/plugin.json +40 -0
  567. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/README.md +45 -0
  568. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/assets/logo.svg +31 -0
  569. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/plugin.json +44 -0
  570. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/skills/sfnext-create-figma-kit/SKILL.md +133 -0
  571. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/skills/sfnext-create-figma-kit/evals/trigger-evals.json +12 -0
  572. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/skills/sfnext-create-figma-kit/references/FIGMA-COMPONENT-EDITING.md +92 -0
  573. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/skills/sfnext-create-figma-kit/references/PROJECT-STRUCTURE.md +43 -0
  574. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/skills/sfnext-create-figma-kit/references/TOKEN-SYSTEM.md +130 -0
  575. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/skills/sfnext-create-figma-kit/references/TROUBLESHOOTING.md +34 -0
  576. package/node_modules/@salesforce/b2c-agent-plugins/storefront-next-figma/skills/sfnext-create-figma-kit/references/VERTICAL-FIGMA-SYNC.md +45 -0
  577. package/node_modules/zod/LICENSE +21 -0
  578. package/node_modules/zod/README.md +218 -0
  579. package/node_modules/zod/compile.cjs +77 -0
  580. package/node_modules/zod/compile.d.cts +1 -0
  581. package/node_modules/zod/compile.d.ts +1 -0
  582. package/node_modules/zod/compile.js +52 -0
  583. package/node_modules/zod/index.cjs +33 -0
  584. package/node_modules/zod/index.d.cts +3 -0
  585. package/node_modules/zod/index.d.ts +3 -0
  586. package/node_modules/zod/index.js +7 -0
  587. package/node_modules/zod/locales/index.cjs +17 -0
  588. package/node_modules/zod/locales/index.d.cts +1 -0
  589. package/node_modules/zod/locales/index.d.ts +1 -0
  590. package/node_modules/zod/locales/index.js +1 -0
  591. package/node_modules/zod/locales/package.json +7 -0
  592. package/node_modules/zod/mini/index.cjs +32 -0
  593. package/node_modules/zod/mini/index.d.cts +3 -0
  594. package/node_modules/zod/mini/index.d.ts +3 -0
  595. package/node_modules/zod/mini/index.js +3 -0
  596. package/node_modules/zod/mini/package.json +7 -0
  597. package/node_modules/zod/package.json +146 -0
  598. package/node_modules/zod/src/compile.ts +56 -0
  599. package/node_modules/zod/src/index.ts +7 -0
  600. package/node_modules/zod/src/locales/index.ts +1 -0
  601. package/node_modules/zod/src/mini/index.ts +3 -0
  602. package/node_modules/zod/src/v3/ZodError.ts +340 -0
  603. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  604. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  605. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  606. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  607. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  608. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  609. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  610. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  611. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  612. package/node_modules/zod/src/v3/errors.ts +13 -0
  613. package/node_modules/zod/src/v3/external.ts +6 -0
  614. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  615. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  616. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  617. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  618. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  619. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  620. package/node_modules/zod/src/v3/index.ts +4 -0
  621. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  622. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  623. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  624. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  625. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  626. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  627. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  628. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  629. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  630. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  631. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  632. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  633. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  634. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  635. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  636. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  637. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  638. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  639. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  640. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  641. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  642. package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  643. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  644. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  645. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  646. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  647. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  648. package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  649. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  650. package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  651. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  652. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  653. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  654. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  655. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  656. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  657. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  658. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  659. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  660. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  661. package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  662. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  663. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  664. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  665. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  666. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  667. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  668. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  669. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  670. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  671. package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  672. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  673. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  674. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  675. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  676. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  677. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  678. package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  679. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  680. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  681. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  682. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  683. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  684. package/node_modules/zod/src/v3/types.ts +5138 -0
  685. package/node_modules/zod/src/v4/classic/checks.ts +33 -0
  686. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  687. package/node_modules/zod/src/v4/classic/compat.ts +78 -0
  688. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  689. package/node_modules/zod/src/v4/classic/errors.ts +97 -0
  690. package/node_modules/zod/src/v4/classic/external.ts +55 -0
  691. package/node_modules/zod/src/v4/classic/from-json-schema.ts +721 -0
  692. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  693. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  694. package/node_modules/zod/src/v4/classic/iso.ts +20 -0
  695. package/node_modules/zod/src/v4/classic/parse.ts +88 -0
  696. package/node_modules/zod/src/v4/classic/schemas.ts +2862 -0
  697. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  698. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  699. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  700. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +351 -0
  701. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  702. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  703. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  704. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +83 -0
  705. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  706. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  707. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  708. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  709. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  710. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  711. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  712. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  713. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  714. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +720 -0
  715. package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  716. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  717. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  718. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  719. package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  720. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  721. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  722. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  723. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +836 -0
  724. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +296 -0
  725. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  726. package/node_modules/zod/src/v4/classic/tests/error.test.ts +979 -0
  727. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  728. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  729. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  730. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1310 -0
  731. package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  732. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  733. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  734. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  735. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  736. package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  737. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +281 -0
  738. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +107 -0
  739. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  740. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +183 -0
  741. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  742. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  743. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  744. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  745. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  746. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  747. package/node_modules/zod/src/v4/classic/tests/map.test.ts +342 -0
  748. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  749. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  750. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  751. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  752. package/node_modules/zod/src/v4/classic/tests/number.test.ts +362 -0
  753. package/node_modules/zod/src/v4/classic/tests/object.test.ts +950 -0
  754. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +234 -0
  755. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  756. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  757. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  758. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  759. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
  760. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  761. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  762. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  763. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  764. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  765. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  766. package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  767. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +662 -0
  768. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  769. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  770. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  771. package/node_modules/zod/src/v4/classic/tests/set.test.ts +190 -0
  772. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
  773. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  774. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1346 -0
  775. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  776. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +780 -0
  777. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  778. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4537 -0
  779. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  780. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  781. package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  782. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  783. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +76 -0
  784. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  785. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  786. package/node_modules/zod/src/v4/core/api.ts +1859 -0
  787. package/node_modules/zod/src/v4/core/checks.ts +1306 -0
  788. package/node_modules/zod/src/v4/core/compile.ts +2188 -0
  789. package/node_modules/zod/src/v4/core/core.ts +232 -0
  790. package/node_modules/zod/src/v4/core/doc.ts +48 -0
  791. package/node_modules/zod/src/v4/core/errors.ts +546 -0
  792. package/node_modules/zod/src/v4/core/index.ts +19 -0
  793. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  794. package/node_modules/zod/src/v4/core/json-schema-processors.ts +830 -0
  795. package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  796. package/node_modules/zod/src/v4/core/memoizer.ts +284 -0
  797. package/node_modules/zod/src/v4/core/parse.ts +288 -0
  798. package/node_modules/zod/src/v4/core/regexes.ts +207 -0
  799. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  800. package/node_modules/zod/src/v4/core/schemas.ts +5028 -0
  801. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  802. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +969 -0
  803. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  804. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  805. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  806. package/node_modules/zod/src/v4/core/tests/compile.test.ts +1639 -0
  807. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  808. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  809. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  810. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  811. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  812. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  813. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  814. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  815. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  816. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  817. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  818. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  819. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  820. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  821. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  822. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  823. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  824. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  825. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +31 -0
  826. package/node_modules/zod/src/v4/core/to-json-schema.ts +855 -0
  827. package/node_modules/zod/src/v4/core/util.ts +1209 -0
  828. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  829. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  830. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  831. package/node_modules/zod/src/v4/index.ts +4 -0
  832. package/node_modules/zod/src/v4/locales/ar.ts +118 -0
  833. package/node_modules/zod/src/v4/locales/az.ts +114 -0
  834. package/node_modules/zod/src/v4/locales/be.ts +186 -0
  835. package/node_modules/zod/src/v4/locales/bg.ts +131 -0
  836. package/node_modules/zod/src/v4/locales/bn.ts +121 -0
  837. package/node_modules/zod/src/v4/locales/ca.ts +119 -0
  838. package/node_modules/zod/src/v4/locales/ckb.ts +138 -0
  839. package/node_modules/zod/src/v4/locales/cs.ts +121 -0
  840. package/node_modules/zod/src/v4/locales/da.ts +126 -0
  841. package/node_modules/zod/src/v4/locales/de.ts +119 -0
  842. package/node_modules/zod/src/v4/locales/el.ts +122 -0
  843. package/node_modules/zod/src/v4/locales/en.ts +134 -0
  844. package/node_modules/zod/src/v4/locales/eo.ts +121 -0
  845. package/node_modules/zod/src/v4/locales/es.ts +143 -0
  846. package/node_modules/zod/src/v4/locales/fa.ts +129 -0
  847. package/node_modules/zod/src/v4/locales/fi.ts +124 -0
  848. package/node_modules/zod/src/v4/locales/fr-CA.ts +119 -0
  849. package/node_modules/zod/src/v4/locales/fr.ts +137 -0
  850. package/node_modules/zod/src/v4/locales/gu.ts +121 -0
  851. package/node_modules/zod/src/v4/locales/he.ts +251 -0
  852. package/node_modules/zod/src/v4/locales/hi.ts +124 -0
  853. package/node_modules/zod/src/v4/locales/hr.ts +133 -0
  854. package/node_modules/zod/src/v4/locales/hu.ts +120 -0
  855. package/node_modules/zod/src/v4/locales/hy.ts +173 -0
  856. package/node_modules/zod/src/v4/locales/id.ts +118 -0
  857. package/node_modules/zod/src/v4/locales/index.ts +62 -0
  858. package/node_modules/zod/src/v4/locales/is.ts +122 -0
  859. package/node_modules/zod/src/v4/locales/it.ts +119 -0
  860. package/node_modules/zod/src/v4/locales/ja.ts +117 -0
  861. package/node_modules/zod/src/v4/locales/ka.ts +126 -0
  862. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  863. package/node_modules/zod/src/v4/locales/km.ts +122 -0
  864. package/node_modules/zod/src/v4/locales/kn.ts +124 -0
  865. package/node_modules/zod/src/v4/locales/ko.ts +124 -0
  866. package/node_modules/zod/src/v4/locales/lt.ts +241 -0
  867. package/node_modules/zod/src/v4/locales/mk.ts +121 -0
  868. package/node_modules/zod/src/v4/locales/ms.ts +118 -0
  869. package/node_modules/zod/src/v4/locales/ne.ts +126 -0
  870. package/node_modules/zod/src/v4/locales/nl.ts +124 -0
  871. package/node_modules/zod/src/v4/locales/nn.ts +119 -0
  872. package/node_modules/zod/src/v4/locales/no.ts +119 -0
  873. package/node_modules/zod/src/v4/locales/ota.ts +120 -0
  874. package/node_modules/zod/src/v4/locales/pl.ts +121 -0
  875. package/node_modules/zod/src/v4/locales/ps.ts +129 -0
  876. package/node_modules/zod/src/v4/locales/pt-BR.ts +159 -0
  877. package/node_modules/zod/src/v4/locales/pt.ts +157 -0
  878. package/node_modules/zod/src/v4/locales/ro.ts +130 -0
  879. package/node_modules/zod/src/v4/locales/ru.ts +186 -0
  880. package/node_modules/zod/src/v4/locales/sk.ts +121 -0
  881. package/node_modules/zod/src/v4/locales/sl.ts +121 -0
  882. package/node_modules/zod/src/v4/locales/sv.ts +122 -0
  883. package/node_modules/zod/src/v4/locales/ta.ts +121 -0
  884. package/node_modules/zod/src/v4/locales/th.ts +122 -0
  885. package/node_modules/zod/src/v4/locales/tk.ts +111 -0
  886. package/node_modules/zod/src/v4/locales/tr.ts +114 -0
  887. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  888. package/node_modules/zod/src/v4/locales/uk.ts +120 -0
  889. package/node_modules/zod/src/v4/locales/ur.ts +122 -0
  890. package/node_modules/zod/src/v4/locales/uz.ts +118 -0
  891. package/node_modules/zod/src/v4/locales/vi.ts +120 -0
  892. package/node_modules/zod/src/v4/locales/yo.ts +127 -0
  893. package/node_modules/zod/src/v4/locales/zh-CN.ts +119 -0
  894. package/node_modules/zod/src/v4/locales/zh-TW.ts +118 -0
  895. package/node_modules/zod/src/v4/mini/checks.ts +33 -0
  896. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  897. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  898. package/node_modules/zod/src/v4/mini/external.ts +50 -0
  899. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  900. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  901. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  902. package/node_modules/zod/src/v4/mini/parse.ts +16 -0
  903. package/node_modules/zod/src/v4/mini/schemas.ts +2026 -0
  904. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  905. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  906. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  907. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  908. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  909. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  910. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  911. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  912. package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  913. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  914. package/node_modules/zod/src/v4/mini/tests/index.test.ts +1060 -0
  915. package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  916. package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  917. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  918. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
  919. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  920. package/node_modules/zod/src/v4/mini/tests/string.test.ts +373 -0
  921. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  922. package/node_modules/zod/v3/ZodError.cjs +148 -0
  923. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  924. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  925. package/node_modules/zod/v3/ZodError.js +143 -0
  926. package/node_modules/zod/v3/errors.cjs +17 -0
  927. package/node_modules/zod/v3/errors.d.cts +5 -0
  928. package/node_modules/zod/v3/errors.d.ts +5 -0
  929. package/node_modules/zod/v3/errors.js +9 -0
  930. package/node_modules/zod/v3/external.cjs +22 -0
  931. package/node_modules/zod/v3/external.d.cts +6 -0
  932. package/node_modules/zod/v3/external.d.ts +6 -0
  933. package/node_modules/zod/v3/external.js +6 -0
  934. package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  935. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  936. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  937. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  938. package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  939. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  940. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  941. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  942. package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  943. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  944. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  945. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  946. package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  947. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  948. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  949. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  950. package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  951. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  952. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  953. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  954. package/node_modules/zod/v3/helpers/util.cjs +137 -0
  955. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  956. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  957. package/node_modules/zod/v3/helpers/util.js +133 -0
  958. package/node_modules/zod/v3/index.cjs +33 -0
  959. package/node_modules/zod/v3/index.d.cts +4 -0
  960. package/node_modules/zod/v3/index.d.ts +4 -0
  961. package/node_modules/zod/v3/index.js +4 -0
  962. package/node_modules/zod/v3/locales/en.cjs +112 -0
  963. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  964. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  965. package/node_modules/zod/v3/locales/en.js +109 -0
  966. package/node_modules/zod/v3/package.json +7 -0
  967. package/node_modules/zod/v3/standard-schema.cjs +2 -0
  968. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  969. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  970. package/node_modules/zod/v3/standard-schema.js +1 -0
  971. package/node_modules/zod/v3/types.cjs +3779 -0
  972. package/node_modules/zod/v3/types.d.cts +1034 -0
  973. package/node_modules/zod/v3/types.d.ts +1034 -0
  974. package/node_modules/zod/v3/types.js +3697 -0
  975. package/node_modules/zod/v4/classic/checks.cjs +34 -0
  976. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  977. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  978. package/node_modules/zod/v4/classic/checks.js +1 -0
  979. package/node_modules/zod/v4/classic/coerce.cjs +47 -0
  980. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  981. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  982. package/node_modules/zod/v4/classic/coerce.js +17 -0
  983. package/node_modules/zod/v4/classic/compat.cjs +61 -0
  984. package/node_modules/zod/v4/classic/compat.d.cts +48 -0
  985. package/node_modules/zod/v4/classic/compat.d.ts +48 -0
  986. package/node_modules/zod/v4/classic/compat.js +31 -0
  987. package/node_modules/zod/v4/classic/deep-partial.cjs +39 -0
  988. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  989. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  990. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  991. package/node_modules/zod/v4/classic/errors.cjs +83 -0
  992. package/node_modules/zod/v4/classic/errors.d.cts +29 -0
  993. package/node_modules/zod/v4/classic/errors.d.ts +29 -0
  994. package/node_modules/zod/v4/classic/errors.js +57 -0
  995. package/node_modules/zod/v4/classic/external.cjs +76 -0
  996. package/node_modules/zod/v4/classic/external.d.cts +19 -0
  997. package/node_modules/zod/v4/classic/external.d.ts +19 -0
  998. package/node_modules/zod/v4/classic/external.js +17 -0
  999. package/node_modules/zod/v4/classic/from-json-schema.cjs +686 -0
  1000. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  1001. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  1002. package/node_modules/zod/v4/classic/from-json-schema.js +660 -0
  1003. package/node_modules/zod/v4/classic/in-out.cjs +63 -0
  1004. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  1005. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  1006. package/node_modules/zod/v4/classic/in-out.js +36 -0
  1007. package/node_modules/zod/v4/classic/index.cjs +33 -0
  1008. package/node_modules/zod/v4/classic/index.d.cts +3 -0
  1009. package/node_modules/zod/v4/classic/index.d.ts +3 -0
  1010. package/node_modules/zod/v4/classic/index.js +4 -0
  1011. package/node_modules/zod/v4/classic/iso.cjs +49 -0
  1012. package/node_modules/zod/v4/classic/iso.d.cts +7 -0
  1013. package/node_modules/zod/v4/classic/iso.d.ts +7 -0
  1014. package/node_modules/zod/v4/classic/iso.js +15 -0
  1015. package/node_modules/zod/v4/classic/package.json +7 -0
  1016. package/node_modules/zod/v4/classic/parse.cjs +44 -0
  1017. package/node_modules/zod/v4/classic/parse.d.cts +44 -0
  1018. package/node_modules/zod/v4/classic/parse.d.ts +44 -0
  1019. package/node_modules/zod/v4/classic/parse.js +16 -0
  1020. package/node_modules/zod/v4/classic/schemas.cjs +1611 -0
  1021. package/node_modules/zod/v4/classic/schemas.d.cts +802 -0
  1022. package/node_modules/zod/v4/classic/schemas.d.ts +802 -0
  1023. package/node_modules/zod/v4/classic/schemas.js +1491 -0
  1024. package/node_modules/zod/v4/core/api.cjs +1246 -0
  1025. package/node_modules/zod/v4/core/api.d.cts +329 -0
  1026. package/node_modules/zod/v4/core/api.d.ts +329 -0
  1027. package/node_modules/zod/v4/core/api.js +1104 -0
  1028. package/node_modules/zod/v4/core/checks.cjs +607 -0
  1029. package/node_modules/zod/v4/core/checks.d.cts +278 -0
  1030. package/node_modules/zod/v4/core/checks.d.ts +278 -0
  1031. package/node_modules/zod/v4/core/checks.js +581 -0
  1032. package/node_modules/zod/v4/core/compile.cjs +1813 -0
  1033. package/node_modules/zod/v4/core/compile.d.cts +51 -0
  1034. package/node_modules/zod/v4/core/compile.d.ts +51 -0
  1035. package/node_modules/zod/v4/core/compile.js +1783 -0
  1036. package/node_modules/zod/v4/core/core.cjs +148 -0
  1037. package/node_modules/zod/v4/core/core.d.cts +82 -0
  1038. package/node_modules/zod/v4/core/core.d.ts +82 -0
  1039. package/node_modules/zod/v4/core/core.js +141 -0
  1040. package/node_modules/zod/v4/core/doc.cjs +37 -0
  1041. package/node_modules/zod/v4/core/doc.d.cts +16 -0
  1042. package/node_modules/zod/v4/core/doc.d.ts +16 -0
  1043. package/node_modules/zod/v4/core/doc.js +33 -0
  1044. package/node_modules/zod/v4/core/errors.cjs +301 -0
  1045. package/node_modules/zod/v4/core/errors.d.cts +225 -0
  1046. package/node_modules/zod/v4/core/errors.d.ts +225 -0
  1047. package/node_modules/zod/v4/core/errors.js +270 -0
  1048. package/node_modules/zod/v4/core/index.cjs +51 -0
  1049. package/node_modules/zod/v4/core/index.d.cts +19 -0
  1050. package/node_modules/zod/v4/core/index.d.ts +19 -0
  1051. package/node_modules/zod/v4/core/index.js +19 -0
  1052. package/node_modules/zod/v4/core/json-schema-generator.cjs +103 -0
  1053. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  1054. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  1055. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  1056. package/node_modules/zod/v4/core/json-schema-processors.cjs +813 -0
  1057. package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
  1058. package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
  1059. package/node_modules/zod/v4/core/json-schema-processors.js +747 -0
  1060. package/node_modules/zod/v4/core/json-schema.cjs +2 -0
  1061. package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  1062. package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  1063. package/node_modules/zod/v4/core/json-schema.js +1 -0
  1064. package/node_modules/zod/v4/core/memoizer.cjs +272 -0
  1065. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  1066. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  1067. package/node_modules/zod/v4/core/memoizer.js +265 -0
  1068. package/node_modules/zod/v4/core/package.json +7 -0
  1069. package/node_modules/zod/v4/core/parse.cjs +193 -0
  1070. package/node_modules/zod/v4/core/parse.d.cts +52 -0
  1071. package/node_modules/zod/v4/core/parse.d.ts +52 -0
  1072. package/node_modules/zod/v4/core/parse.js +154 -0
  1073. package/node_modules/zod/v4/core/regexes.cjs +184 -0
  1074. package/node_modules/zod/v4/core/regexes.d.cts +87 -0
  1075. package/node_modules/zod/v4/core/regexes.d.ts +87 -0
  1076. package/node_modules/zod/v4/core/regexes.js +150 -0
  1077. package/node_modules/zod/v4/core/registries.cjs +56 -0
  1078. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  1079. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  1080. package/node_modules/zod/v4/core/registries.js +51 -0
  1081. package/node_modules/zod/v4/core/schemas.cjs +2481 -0
  1082. package/node_modules/zod/v4/core/schemas.d.cts +1253 -0
  1083. package/node_modules/zod/v4/core/schemas.d.ts +1253 -0
  1084. package/node_modules/zod/v4/core/schemas.js +2440 -0
  1085. package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  1086. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  1087. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  1088. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  1089. package/node_modules/zod/v4/core/to-json-schema.cjs +660 -0
  1090. package/node_modules/zod/v4/core/to-json-schema.d.cts +153 -0
  1091. package/node_modules/zod/v4/core/to-json-schema.d.ts +153 -0
  1092. package/node_modules/zod/v4/core/to-json-schema.js +650 -0
  1093. package/node_modules/zod/v4/core/util.cjs +915 -0
  1094. package/node_modules/zod/v4/core/util.d.cts +257 -0
  1095. package/node_modules/zod/v4/core/util.d.ts +257 -0
  1096. package/node_modules/zod/v4/core/util.js +846 -0
  1097. package/node_modules/zod/v4/core/versions.cjs +8 -0
  1098. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  1099. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  1100. package/node_modules/zod/v4/core/versions.js +5 -0
  1101. package/node_modules/zod/v4/core/visit.cjs +195 -0
  1102. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  1103. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  1104. package/node_modules/zod/v4/core/visit.js +169 -0
  1105. package/node_modules/zod/v4/index.cjs +32 -0
  1106. package/node_modules/zod/v4/index.d.cts +3 -0
  1107. package/node_modules/zod/v4/index.d.ts +3 -0
  1108. package/node_modules/zod/v4/index.js +4 -0
  1109. package/node_modules/zod/v4/locales/ar.cjs +136 -0
  1110. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  1111. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  1112. package/node_modules/zod/v4/locales/ar.js +109 -0
  1113. package/node_modules/zod/v4/locales/az.cjs +135 -0
  1114. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  1115. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  1116. package/node_modules/zod/v4/locales/az.js +108 -0
  1117. package/node_modules/zod/v4/locales/be.cjs +193 -0
  1118. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  1119. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  1120. package/node_modules/zod/v4/locales/be.js +166 -0
  1121. package/node_modules/zod/v4/locales/bg.cjs +150 -0
  1122. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  1123. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  1124. package/node_modules/zod/v4/locales/bg.js +123 -0
  1125. package/node_modules/zod/v4/locales/bn.cjs +138 -0
  1126. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  1127. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  1128. package/node_modules/zod/v4/locales/bn.js +111 -0
  1129. package/node_modules/zod/v4/locales/ca.cjs +137 -0
  1130. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  1131. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  1132. package/node_modules/zod/v4/locales/ca.js +110 -0
  1133. package/node_modules/zod/v4/locales/ckb.cjs +158 -0
  1134. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  1135. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  1136. package/node_modules/zod/v4/locales/ckb.js +131 -0
  1137. package/node_modules/zod/v4/locales/cs.cjs +141 -0
  1138. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  1139. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  1140. package/node_modules/zod/v4/locales/cs.js +114 -0
  1141. package/node_modules/zod/v4/locales/da.cjs +145 -0
  1142. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  1143. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  1144. package/node_modules/zod/v4/locales/da.js +118 -0
  1145. package/node_modules/zod/v4/locales/de.cjs +138 -0
  1146. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  1147. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  1148. package/node_modules/zod/v4/locales/de.js +111 -0
  1149. package/node_modules/zod/v4/locales/el.cjs +137 -0
  1150. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  1151. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  1152. package/node_modules/zod/v4/locales/el.js +110 -0
  1153. package/node_modules/zod/v4/locales/en.cjs +150 -0
  1154. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  1155. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  1156. package/node_modules/zod/v4/locales/en.js +123 -0
  1157. package/node_modules/zod/v4/locales/eo.cjs +139 -0
  1158. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  1159. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  1160. package/node_modules/zod/v4/locales/eo.js +112 -0
  1161. package/node_modules/zod/v4/locales/es.cjs +161 -0
  1162. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  1163. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  1164. package/node_modules/zod/v4/locales/es.js +134 -0
  1165. package/node_modules/zod/v4/locales/fa.cjs +144 -0
  1166. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  1167. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1168. package/node_modules/zod/v4/locales/fa.js +117 -0
  1169. package/node_modules/zod/v4/locales/fi.cjs +142 -0
  1170. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  1171. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1172. package/node_modules/zod/v4/locales/fi.js +115 -0
  1173. package/node_modules/zod/v4/locales/fr-CA.cjs +137 -0
  1174. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  1175. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1176. package/node_modules/zod/v4/locales/fr-CA.js +110 -0
  1177. package/node_modules/zod/v4/locales/fr.cjs +154 -0
  1178. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  1179. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1180. package/node_modules/zod/v4/locales/fr.js +127 -0
  1181. package/node_modules/zod/v4/locales/gu.cjs +138 -0
  1182. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  1183. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  1184. package/node_modules/zod/v4/locales/gu.js +111 -0
  1185. package/node_modules/zod/v4/locales/he.cjs +246 -0
  1186. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  1187. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  1188. package/node_modules/zod/v4/locales/he.js +219 -0
  1189. package/node_modules/zod/v4/locales/hi.cjs +136 -0
  1190. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  1191. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  1192. package/node_modules/zod/v4/locales/hi.js +109 -0
  1193. package/node_modules/zod/v4/locales/hr.cjs +151 -0
  1194. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  1195. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  1196. package/node_modules/zod/v4/locales/hr.js +124 -0
  1197. package/node_modules/zod/v4/locales/hu.cjs +138 -0
  1198. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  1199. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1200. package/node_modules/zod/v4/locales/hu.js +111 -0
  1201. package/node_modules/zod/v4/locales/hy.cjs +183 -0
  1202. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  1203. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  1204. package/node_modules/zod/v4/locales/hy.js +156 -0
  1205. package/node_modules/zod/v4/locales/id.cjs +136 -0
  1206. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  1207. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  1208. package/node_modules/zod/v4/locales/id.js +109 -0
  1209. package/node_modules/zod/v4/locales/index.cjs +131 -0
  1210. package/node_modules/zod/v4/locales/index.d.cts +62 -0
  1211. package/node_modules/zod/v4/locales/index.d.ts +62 -0
  1212. package/node_modules/zod/v4/locales/index.js +62 -0
  1213. package/node_modules/zod/v4/locales/is.cjs +139 -0
  1214. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  1215. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  1216. package/node_modules/zod/v4/locales/is.js +112 -0
  1217. package/node_modules/zod/v4/locales/it.cjs +138 -0
  1218. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  1219. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  1220. package/node_modules/zod/v4/locales/it.js +111 -0
  1221. package/node_modules/zod/v4/locales/ja.cjs +137 -0
  1222. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  1223. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1224. package/node_modules/zod/v4/locales/ja.js +110 -0
  1225. package/node_modules/zod/v4/locales/ka.cjs +142 -0
  1226. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  1227. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  1228. package/node_modules/zod/v4/locales/ka.js +115 -0
  1229. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  1230. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  1231. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  1232. package/node_modules/zod/v4/locales/kh.js +5 -0
  1233. package/node_modules/zod/v4/locales/km.cjs +140 -0
  1234. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  1235. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  1236. package/node_modules/zod/v4/locales/km.js +113 -0
  1237. package/node_modules/zod/v4/locales/kn.cjs +141 -0
  1238. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  1239. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  1240. package/node_modules/zod/v4/locales/kn.js +114 -0
  1241. package/node_modules/zod/v4/locales/ko.cjs +141 -0
  1242. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  1243. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1244. package/node_modules/zod/v4/locales/ko.js +114 -0
  1245. package/node_modules/zod/v4/locales/lt.cjs +232 -0
  1246. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  1247. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  1248. package/node_modules/zod/v4/locales/lt.js +205 -0
  1249. package/node_modules/zod/v4/locales/mk.cjs +139 -0
  1250. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  1251. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1252. package/node_modules/zod/v4/locales/mk.js +112 -0
  1253. package/node_modules/zod/v4/locales/ms.cjs +137 -0
  1254. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  1255. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1256. package/node_modules/zod/v4/locales/ms.js +110 -0
  1257. package/node_modules/zod/v4/locales/ne.cjs +136 -0
  1258. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  1259. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  1260. package/node_modules/zod/v4/locales/ne.js +109 -0
  1261. package/node_modules/zod/v4/locales/nl.cjs +140 -0
  1262. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  1263. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1264. package/node_modules/zod/v4/locales/nl.js +113 -0
  1265. package/node_modules/zod/v4/locales/nn.cjs +138 -0
  1266. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  1267. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  1268. package/node_modules/zod/v4/locales/nn.js +111 -0
  1269. package/node_modules/zod/v4/locales/no.cjs +138 -0
  1270. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  1271. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  1272. package/node_modules/zod/v4/locales/no.js +111 -0
  1273. package/node_modules/zod/v4/locales/ota.cjs +139 -0
  1274. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  1275. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1276. package/node_modules/zod/v4/locales/ota.js +112 -0
  1277. package/node_modules/zod/v4/locales/package.json +7 -0
  1278. package/node_modules/zod/v4/locales/pl.cjs +139 -0
  1279. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  1280. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1281. package/node_modules/zod/v4/locales/pl.js +112 -0
  1282. package/node_modules/zod/v4/locales/ps.cjs +144 -0
  1283. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  1284. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1285. package/node_modules/zod/v4/locales/ps.js +117 -0
  1286. package/node_modules/zod/v4/locales/pt-BR.cjs +168 -0
  1287. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  1288. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  1289. package/node_modules/zod/v4/locales/pt-BR.js +141 -0
  1290. package/node_modules/zod/v4/locales/pt.cjs +167 -0
  1291. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  1292. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1293. package/node_modules/zod/v4/locales/pt.js +140 -0
  1294. package/node_modules/zod/v4/locales/ro.cjs +147 -0
  1295. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  1296. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  1297. package/node_modules/zod/v4/locales/ro.js +120 -0
  1298. package/node_modules/zod/v4/locales/ru.cjs +193 -0
  1299. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  1300. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1301. package/node_modules/zod/v4/locales/ru.js +166 -0
  1302. package/node_modules/zod/v4/locales/sk.cjs +141 -0
  1303. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  1304. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  1305. package/node_modules/zod/v4/locales/sk.js +114 -0
  1306. package/node_modules/zod/v4/locales/sl.cjs +139 -0
  1307. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  1308. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1309. package/node_modules/zod/v4/locales/sl.js +112 -0
  1310. package/node_modules/zod/v4/locales/sv.cjs +140 -0
  1311. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  1312. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1313. package/node_modules/zod/v4/locales/sv.js +113 -0
  1314. package/node_modules/zod/v4/locales/ta.cjs +140 -0
  1315. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  1316. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1317. package/node_modules/zod/v4/locales/ta.js +113 -0
  1318. package/node_modules/zod/v4/locales/th.cjs +140 -0
  1319. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  1320. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  1321. package/node_modules/zod/v4/locales/th.js +113 -0
  1322. package/node_modules/zod/v4/locales/tk.cjs +132 -0
  1323. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  1324. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  1325. package/node_modules/zod/v4/locales/tk.js +105 -0
  1326. package/node_modules/zod/v4/locales/tr.cjs +135 -0
  1327. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1328. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  1329. package/node_modules/zod/v4/locales/tr.js +108 -0
  1330. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  1331. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  1332. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  1333. package/node_modules/zod/v4/locales/ua.js +5 -0
  1334. package/node_modules/zod/v4/locales/uk.cjs +138 -0
  1335. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  1336. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  1337. package/node_modules/zod/v4/locales/uk.js +111 -0
  1338. package/node_modules/zod/v4/locales/ur.cjs +140 -0
  1339. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  1340. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1341. package/node_modules/zod/v4/locales/ur.js +113 -0
  1342. package/node_modules/zod/v4/locales/uz.cjs +138 -0
  1343. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  1344. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  1345. package/node_modules/zod/v4/locales/uz.js +111 -0
  1346. package/node_modules/zod/v4/locales/vi.cjs +138 -0
  1347. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  1348. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1349. package/node_modules/zod/v4/locales/vi.js +111 -0
  1350. package/node_modules/zod/v4/locales/yo.cjs +137 -0
  1351. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  1352. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  1353. package/node_modules/zod/v4/locales/yo.js +110 -0
  1354. package/node_modules/zod/v4/locales/zh-CN.cjs +139 -0
  1355. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  1356. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1357. package/node_modules/zod/v4/locales/zh-CN.js +112 -0
  1358. package/node_modules/zod/v4/locales/zh-TW.cjs +137 -0
  1359. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  1360. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1361. package/node_modules/zod/v4/locales/zh-TW.js +110 -0
  1362. package/node_modules/zod/v4/mini/checks.cjs +35 -0
  1363. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1364. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  1365. package/node_modules/zod/v4/mini/checks.js +1 -0
  1366. package/node_modules/zod/v4/mini/coerce.cjs +52 -0
  1367. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1368. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1369. package/node_modules/zod/v4/mini/coerce.js +22 -0
  1370. package/node_modules/zod/v4/mini/deep-partial.cjs +39 -0
  1371. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  1372. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  1373. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  1374. package/node_modules/zod/v4/mini/external.cjs +74 -0
  1375. package/node_modules/zod/v4/mini/external.d.cts +16 -0
  1376. package/node_modules/zod/v4/mini/external.d.ts +16 -0
  1377. package/node_modules/zod/v4/mini/external.js +16 -0
  1378. package/node_modules/zod/v4/mini/in-out.cjs +63 -0
  1379. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  1380. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  1381. package/node_modules/zod/v4/mini/in-out.js +36 -0
  1382. package/node_modules/zod/v4/mini/index.cjs +32 -0
  1383. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  1384. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  1385. package/node_modules/zod/v4/mini/index.js +3 -0
  1386. package/node_modules/zod/v4/mini/iso.cjs +64 -0
  1387. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1388. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1389. package/node_modules/zod/v4/mini/iso.js +34 -0
  1390. package/node_modules/zod/v4/mini/package.json +7 -0
  1391. package/node_modules/zod/v4/mini/parse.cjs +18 -0
  1392. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1393. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  1394. package/node_modules/zod/v4/mini/parse.js +1 -0
  1395. package/node_modules/zod/v4/mini/schemas.cjs +1111 -0
  1396. package/node_modules/zod/v4/mini/schemas.d.cts +475 -0
  1397. package/node_modules/zod/v4/mini/schemas.d.ts +475 -0
  1398. package/node_modules/zod/v4/mini/schemas.js +987 -0
  1399. package/node_modules/zod/v4/package.json +7 -0
  1400. package/node_modules/zod/v4-mini/index.cjs +32 -0
  1401. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  1402. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  1403. package/node_modules/zod/v4-mini/index.js +3 -0
  1404. package/node_modules/zod/v4-mini/package.json +7 -0
  1405. package/oclif.manifest.json +88 -62
  1406. package/package.json +17 -9
  1407. package/content/pwav3/components.md +0 -400
  1408. package/content/pwav3/config.md +0 -124
  1409. package/content/pwav3/data-fetching.md +0 -213
  1410. package/content/pwav3/extensibility.md +0 -167
  1411. package/content/pwav3/i18n.md +0 -214
  1412. package/content/pwav3/quick-reference.md +0 -169
  1413. package/content/pwav3/routing.md +0 -107
  1414. package/content/pwav3/state-management.md +0 -193
  1415. package/content/pwav3/styling.md +0 -248
  1416. package/content/pwav3/testing.md +0 -124
  1417. package/content/site-theming/theming-accessibility.md +0 -126
  1418. package/content/site-theming/theming-questions.md +0 -208
  1419. package/content/site-theming/theming-validation.md +0 -174
  1420. package/dist/tools/diagnostics/debug-continue.js +0 -27
  1421. package/dist/tools/diagnostics/debug-get-stack.d.ts +0 -4
  1422. package/dist/tools/diagnostics/debug-get-stack.js +0 -31
  1423. package/dist/tools/diagnostics/debug-get-variables.d.ts +0 -4
  1424. package/dist/tools/diagnostics/debug-get-variables.js +0 -45
  1425. package/dist/tools/diagnostics/debug-step.js +0 -38
  1426. package/dist/tools/diagnostics/logs-watch-list.d.ts +0 -4
  1427. package/dist/tools/diagnostics/logs-watch-list.js +0 -37
  1428. package/dist/tools/diagnostics/logs-watch-stop.d.ts +0 -4
  1429. package/dist/tools/diagnostics/logs-watch-stop.js +0 -36
  1430. package/dist/tools/diagnostics/mrt-logs-watch-list.d.ts +0 -4
  1431. package/dist/tools/diagnostics/mrt-logs-watch-list.js +0 -37
  1432. package/dist/tools/diagnostics/mrt-logs-watch-stop.d.ts +0 -4
  1433. package/dist/tools/diagnostics/mrt-logs-watch-stop.js +0 -37
  1434. package/dist/tools/pwav3/index.d.ts +0 -22
  1435. package/dist/tools/pwav3/index.js +0 -20
  1436. package/dist/tools/pwav3/pwa-kit-development-guidelines.d.ts +0 -9
  1437. package/dist/tools/pwav3/pwa-kit-development-guidelines.js +0 -111
  1438. package/dist/tools/scapi/scapi-custom-api-generate-scaffold.d.ts +0 -67
  1439. package/dist/tools/scapi/scapi-custom-api-generate-scaffold.js +0 -204
@@ -0,0 +1,2862 @@
1
+ import type { $ZodBigIntFormats } from "../core/checks.js";
2
+ import * as core from "../core/index.js";
3
+ import { util, type $ZodNumberFormats } from "../core/index.js";
4
+ import * as processors from "../core/json-schema-processors.js";
5
+ import type { StandardSchemaWithJSONProps } from "../core/standard-schema.js";
6
+ import { createStandardJSONSchemaMethod, createToJSONSchemaMethod } from "../core/to-json-schema.js";
7
+ import en from "../locales/en.js";
8
+
9
+ import * as checks from "./checks.js";
10
+ import * as parse from "./parse.js";
11
+
12
+ // Register English as the default locale on first ZodType construction. Hooked into the `ZodType` `$constructor` (rather than a top-level `config(en())` in `external.ts`) so bundlers honoring `sideEffects: false` can't tree-shake it out — see #5953, #5725. An explicit `z.config(z.locales.xx())` call wins regardless of order, since this only sets the default when none is present.
13
+ function _ensureDefaultLocale(): void {
14
+ if (!core.globalConfig.localeError) core.config(en());
15
+ }
16
+
17
+ // the default memoizer is read by the core container init, which runs before `ZodType.init`, so each container calls this first
18
+ function _ensureDefaultMemoizer(): void {
19
+ if (!core.globalConfig.memoizer) core.config({ memoizer: core.memoizer() });
20
+ }
21
+
22
+ // Methods live on each concrete constructor's prototype and materialize per instance on first access, so a schema only pays for what it is asked for.
23
+
24
+ ///////////////////////////////////////////
25
+ ///////////////////////////////////////////
26
+ //////////// ////////////
27
+ //////////// ZodType ////////////
28
+ //////////// ////////////
29
+ ///////////////////////////////////////////
30
+ ///////////////////////////////////////////
31
+
32
+ export type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<core.input<T>, core.output<T>>;
33
+ export interface ZodType<
34
+ out Output = unknown,
35
+ out Input = unknown,
36
+ out Internals extends core.$ZodTypeInternals<Output, Input> = core.$ZodTypeInternals<Output, Input>,
37
+ > extends core.$ZodType<Output, Input, Internals> {
38
+ def: Internals["def"];
39
+ type: Internals["def"]["type"];
40
+
41
+ /** @deprecated Use `.def` instead. */
42
+ _def: Internals["def"];
43
+ /** @deprecated Use `z.output<typeof schema>` instead. */
44
+ _output: Internals["output"];
45
+ /** @deprecated Use `z.input<typeof schema>` instead. */
46
+ _input: Internals["input"];
47
+
48
+ "~standard": ZodStandardSchemaWithJSON<this>;
49
+ /** Converts this schema to a JSON Schema representation. */
50
+ toJSONSchema(params?: core.ToJSONSchemaParams): core.ZodStandardJSONSchemaPayload<this>;
51
+
52
+ // base methods
53
+ check(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this;
54
+ with(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this;
55
+ clone(def?: Internals["def"], params?: { parent: boolean }): this;
56
+ register<R extends core.$ZodRegistry>(
57
+ registry: R,
58
+ ...meta: this extends R["_schema"]
59
+ ? undefined extends R["_meta"]
60
+ ? [core.$replace<R["_meta"], this>?]
61
+ : [core.$replace<R["_meta"], this>]
62
+ : ["Incompatible schema"]
63
+ ): this;
64
+
65
+ brand<T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(
66
+ value?: T
67
+ ): PropertyKey extends T ? this : core.$ZodBranded<this, T, Dir>;
68
+
69
+ // parsing
70
+ parse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): core.output<this>;
71
+ safeParse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): parse.ZodSafeParseResult<core.output<this>>;
72
+ parseAsync(data: unknown, params?: core.ParseContext<core.$ZodIssue>): Promise<core.output<this>>;
73
+ safeParseAsync(
74
+ data: unknown,
75
+ params?: core.ParseContext<core.$ZodIssue>
76
+ ): Promise<parse.ZodSafeParseResult<core.output<this>>>;
77
+ spa: (
78
+ data: unknown,
79
+ params?: core.ParseContext<core.$ZodIssue>
80
+ ) => Promise<parse.ZodSafeParseResult<core.output<this>>>;
81
+
82
+ // encoding/decoding
83
+ encode(data: core.output<this>, params?: core.ParseContext<core.$ZodIssue>): core.input<this>;
84
+ decode(data: core.input<this>, params?: core.ParseContext<core.$ZodIssue>): core.output<this>;
85
+ encodeAsync(data: core.output<this>, params?: core.ParseContext<core.$ZodIssue>): Promise<core.input<this>>;
86
+ decodeAsync(data: core.input<this>, params?: core.ParseContext<core.$ZodIssue>): Promise<core.output<this>>;
87
+ safeEncode(
88
+ data: core.output<this>,
89
+ params?: core.ParseContext<core.$ZodIssue>
90
+ ): parse.ZodSafeParseResult<core.input<this>>;
91
+ safeDecode(
92
+ data: core.input<this>,
93
+ params?: core.ParseContext<core.$ZodIssue>
94
+ ): parse.ZodSafeParseResult<core.output<this>>;
95
+ safeEncodeAsync(
96
+ data: core.output<this>,
97
+ params?: core.ParseContext<core.$ZodIssue>
98
+ ): Promise<parse.ZodSafeParseResult<core.input<this>>>;
99
+ safeDecodeAsync(
100
+ data: core.input<this>,
101
+ params?: core.ParseContext<core.$ZodIssue>
102
+ ): Promise<parse.ZodSafeParseResult<core.output<this>>>;
103
+
104
+ // refinements
105
+ refine<Ch extends (arg: core.output<this>) => unknown | Promise<unknown>>(
106
+ check: Ch,
107
+ params?: string | core.$ZodCustomParams
108
+ ): Ch extends (arg: any) => arg is infer R ? this & ZodType<R, core.input<this>> : this;
109
+ superRefine(
110
+ refinement: (arg: core.output<this>, ctx: core.$RefinementCtx<core.output<this>>) => void | Promise<void>,
111
+ params?: core.$ZodSuperRefineParams
112
+ ): this;
113
+ overwrite(fn: (x: core.output<this>) => core.output<this>): this;
114
+
115
+ // wrappers
116
+ optional(): ZodOptional<this>;
117
+ exactOptional(): ZodExactOptional<this>;
118
+ nonoptional(params?: string | core.$ZodNonOptionalParams): ZodNonOptional<this>;
119
+ nullable(): ZodNullable<this>;
120
+ nullish(): ZodOptional<ZodNullable<this>>;
121
+ default(def: util.NoUndefined<core.output<this>>): ZodDefault<this>;
122
+ default(def: () => util.NoUndefined<core.output<this>>): ZodDefault<this>;
123
+ prefault(def: () => core.input<this>): ZodPrefault<this>;
124
+ prefault(def: core.input<this>): ZodPrefault<this>;
125
+ array(): ZodArray<this>;
126
+ or<T extends core.SomeType>(option: T): ZodUnion<[this, T]>;
127
+ and<T extends core.SomeType>(incoming: T): ZodIntersection<this, T>;
128
+ transform<NewOut>(
129
+ transform: (arg: core.output<this>, ctx: core.$RefinementCtx<core.output<this>>) => NewOut | Promise<NewOut>
130
+ ): ZodPipe<this, ZodTransform<Awaited<NewOut>, core.output<this>>>;
131
+ catch(def: core.output<this>): ZodCatch<this>;
132
+ catch(def: (ctx: core.$ZodCatchCtx) => core.output<this>): ZodCatch<this>;
133
+ pipe<T extends core.$ZodType<any, core.output<this>>>(
134
+ target: T | core.$ZodType<any, core.output<this>>
135
+ ): ZodPipe<this, T>;
136
+ readonly(): ZodReadonly<this>;
137
+
138
+ /** Returns a new instance that has been registered in `z.globalRegistry` with the specified description */
139
+ describe(description: string): this;
140
+ description?: string;
141
+ /** Returns the metadata associated with this instance in `z.globalRegistry` */
142
+ meta(): core.$replace<core.GlobalMeta, this> | undefined;
143
+ /** Returns a new instance that has been registered in `z.globalRegistry` with the specified metadata */
144
+ meta(data: core.$replace<core.GlobalMeta, this>): this;
145
+
146
+ // helpers
147
+ /** @deprecated Try safe-parsing `undefined` (this is what `isOptional` does internally):
148
+ *
149
+ * ```ts
150
+ * const schema = z.string().optional();
151
+ * const isOptional = schema.safeParse(undefined).success; // true
152
+ * ```
153
+ */
154
+ isOptional(): boolean;
155
+ /**
156
+ * @deprecated Try safe-parsing `null` (this is what `isNullable` does internally):
157
+ *
158
+ * ```ts
159
+ * const schema = z.string().nullable();
160
+ * const isNullable = schema.safeParse(null).success; // true
161
+ * ```
162
+ */
163
+ isNullable(): boolean;
164
+ apply<T, TArgs extends unknown[] = []>(fn: (schema: this, ...args: TArgs) => T, ...args: TArgs): T;
165
+ }
166
+
167
+ export interface _ZodType<out Internals extends core.$ZodTypeInternals = core.$ZodTypeInternals>
168
+ extends ZodType<any, any, Internals> {}
169
+
170
+ export const ZodType: core.$constructor<ZodType> = /*@__PURE__*/ core.$constructor<ZodType>(
171
+ "ZodType",
172
+ (inst, def) => {
173
+ _ensureDefaultLocale();
174
+ core.$ZodType.init(inst, def);
175
+
176
+ inst.def = def;
177
+ inst.type = def.type;
178
+
179
+ return inst;
180
+ },
181
+ {
182
+ check(...chks) {
183
+ const def = this.def;
184
+ return this.clone(
185
+ util.mergeDefs(def, {
186
+ checks: [
187
+ ...(def.checks ?? []),
188
+ ...chks.map((ch) =>
189
+ typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch
190
+ ),
191
+ ],
192
+ }),
193
+ { parent: true }
194
+ );
195
+ },
196
+ with(...chks) {
197
+ return this.check(...chks);
198
+ },
199
+ clone(def, params) {
200
+ return core.clone(this, def, params);
201
+ },
202
+ brand() {
203
+ return this;
204
+ },
205
+ register(reg, meta) {
206
+ reg.add(this, meta);
207
+ return this;
208
+ },
209
+ refine(check, params) {
210
+ return this.check(refine(check, params));
211
+ },
212
+ superRefine(refinement, params) {
213
+ return this.check(superRefine(refinement, params));
214
+ },
215
+ overwrite(fn) {
216
+ return this.check(checks.overwrite(fn));
217
+ },
218
+ optional() {
219
+ return optional(this);
220
+ },
221
+ exactOptional() {
222
+ return exactOptional(this);
223
+ },
224
+ nullable() {
225
+ return nullable(this);
226
+ },
227
+ nullish() {
228
+ return optional(nullable(this));
229
+ },
230
+ nonoptional(params) {
231
+ return nonoptional(this, params);
232
+ },
233
+ array() {
234
+ return array(this);
235
+ },
236
+ or(arg) {
237
+ return union([this, arg]);
238
+ },
239
+ and(arg) {
240
+ return intersection(this, arg);
241
+ },
242
+ transform(tx) {
243
+ return pipe(this, transform(tx));
244
+ },
245
+ default(d) {
246
+ return _default(this, d);
247
+ },
248
+ prefault(d) {
249
+ return prefault(this, d);
250
+ },
251
+ catch(params) {
252
+ return _catch(this, params);
253
+ },
254
+ pipe(target) {
255
+ return pipe(this, target);
256
+ },
257
+ readonly() {
258
+ return readonly(this);
259
+ },
260
+ describe(description) {
261
+ const cl = this.clone();
262
+ core.globalRegistry.add(cl, { description });
263
+ return cl;
264
+ },
265
+ meta(...args: any[]): any {
266
+ // overloaded: meta() returns the registered metadata, meta(data) returns a clone with `data` registered. The mapped type picks up the second overload, so we accept variadic any-args and return `any` to satisfy both at runtime.
267
+ if (args.length === 0) return core.globalRegistry.get(this);
268
+ const cl = this.clone();
269
+ core.globalRegistry.add(cl, args[0]);
270
+ return cl;
271
+ },
272
+ isOptional() {
273
+ return this.safeParse(undefined).success;
274
+ },
275
+ isNullable() {
276
+ return this.safeParse(null).success;
277
+ },
278
+ apply(fn, ...args) {
279
+ return args.length === 0 ? fn(this) : fn(this, ...args);
280
+ },
281
+ // Overrides core's `~standard` to add `jsonSchema`. Must stay a prototype entry: redefining it per instance demotes instances to dictionary mode.
282
+ get "~standard"(): ZodType["~standard"] {
283
+ return util.hide(this, "~standard", {
284
+ ...core.standardProps(this),
285
+ jsonSchema: {
286
+ input: createStandardJSONSchemaMethod(this, "input"),
287
+ output: createStandardJSONSchemaMethod(this, "output"),
288
+ },
289
+ } as ZodType["~standard"]);
290
+ },
291
+ set "~standard"(value: ZodType["~standard"]) {
292
+ util.own(this, "~standard", value);
293
+ },
294
+ parse: function _parse(data, params) {
295
+ return parse.parse(this, data, params, { callee: _parse });
296
+ },
297
+ parseAsync: async function _parseAsync(data, params) {
298
+ return await parse.parseAsync(this, data, params, { callee: _parseAsync });
299
+ },
300
+ safeParse(data, params) {
301
+ return parse.safeParse(this, data, params);
302
+ },
303
+ async safeParseAsync(data, params) {
304
+ return parse.safeParseAsync(this, data, params);
305
+ },
306
+ // `spa` is an alias: same function object as `safeParseAsync`, as before.
307
+ get spa(): ZodType["safeParseAsync"] {
308
+ return this?.safeParseAsync;
309
+ },
310
+ set spa(value: ZodType["safeParseAsync"]) {
311
+ util.own(this, "spa", value);
312
+ },
313
+ encode: function _encode(data, params) {
314
+ return parse.encode(this, data, params, { callee: _encode });
315
+ },
316
+ decode: function _decode(data, params) {
317
+ return parse.decode(this, data, params, { callee: _decode });
318
+ },
319
+ encodeAsync: async function _encodeAsync(data, params) {
320
+ return await parse.encodeAsync(this, data, params, { callee: _encodeAsync });
321
+ },
322
+ decodeAsync: async function _decodeAsync(data, params) {
323
+ return await parse.decodeAsync(this, data, params, { callee: _decodeAsync });
324
+ },
325
+ safeEncode(data, params) {
326
+ return parse.safeEncode(this, data, params);
327
+ },
328
+ safeDecode(data, params) {
329
+ return parse.safeDecode(this, data, params);
330
+ },
331
+ async safeEncodeAsync(data, params) {
332
+ return parse.safeEncodeAsync(this, data, params);
333
+ },
334
+ async safeDecodeAsync(data, params) {
335
+ return parse.safeDecodeAsync(this, data, params);
336
+ },
337
+ toJSONSchema(params) {
338
+ return createToJSONSchemaMethod(this, {})(params);
339
+ },
340
+ // Reads through to the registry on every access, so it must not cache.
341
+ get description(): string | undefined {
342
+ return core.globalRegistry.get(this as unknown as ZodType)?.description;
343
+ },
344
+ // No setter: `schema._def = x` throws, as it did when `_def` was a non-writable own property.
345
+ get _def(): core.$ZodTypeDef {
346
+ return (this as unknown as ZodType)._zod.def;
347
+ },
348
+ }
349
+ );
350
+
351
+ // ZodString
352
+ export interface _ZodString<T extends core.$ZodStringInternals<unknown> = core.$ZodStringInternals<unknown>>
353
+ extends _ZodType<T> {
354
+ format: string | null;
355
+ minLength: number | null;
356
+ maxLength: number | null;
357
+
358
+ // miscellaneous checks
359
+ regex(regex: RegExp, params?: string | core.$ZodCheckRegexParams): this;
360
+ includes(value: string, params?: string | core.$ZodCheckIncludesParams): this;
361
+ startsWith(value: string, params?: string | core.$ZodCheckStartsWithParams): this;
362
+ endsWith(value: string, params?: string | core.$ZodCheckEndsWithParams): this;
363
+ min(minLength: number, params?: string | core.$ZodCheckMinLengthParams): this;
364
+ max(maxLength: number, params?: string | core.$ZodCheckMaxLengthParams): this;
365
+ length(len: number, params?: string | core.$ZodCheckLengthEqualsParams): this;
366
+ nonempty(params?: string | core.$ZodCheckMinLengthParams): this;
367
+ lowercase(params?: string | core.$ZodCheckLowerCaseParams): this;
368
+ uppercase(params?: string | core.$ZodCheckUpperCaseParams): this;
369
+
370
+ // transforms
371
+ trim(): this;
372
+ normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): this;
373
+ toLowerCase(): this;
374
+ toUpperCase(): this;
375
+ slugify(): this;
376
+ }
377
+
378
+ /** @internal */
379
+ export const _ZodString: core.$constructor<_ZodString> = /*@__PURE__*/ core.$constructor<_ZodString>(
380
+ "_ZodString",
381
+ (inst, def) => {
382
+ core.$ZodString.init(inst, def);
383
+ ZodType.init(inst, def);
384
+
385
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.stringProcessor(inst, ctx, json, params);
386
+
387
+ const bag = inst._zod.bag;
388
+ inst.format = bag.format ?? null;
389
+ inst.minLength = bag.minimum ?? null;
390
+ inst.maxLength = bag.maximum ?? null;
391
+ },
392
+ {
393
+ regex(...args) {
394
+ return this.check((checks.regex as any)(...args));
395
+ },
396
+ includes(...args) {
397
+ return this.check((checks.includes as any)(...args));
398
+ },
399
+ startsWith(...args) {
400
+ return this.check((checks.startsWith as any)(...args));
401
+ },
402
+ endsWith(...args) {
403
+ return this.check((checks.endsWith as any)(...args));
404
+ },
405
+ min(...args) {
406
+ return this.check((checks.minLength as any)(...args));
407
+ },
408
+ max(...args) {
409
+ return this.check((checks.maxLength as any)(...args));
410
+ },
411
+ length(...args) {
412
+ return this.check((checks.length as any)(...args));
413
+ },
414
+ nonempty(...args) {
415
+ return this.check((checks.minLength as any)(1, ...args));
416
+ },
417
+ lowercase(params) {
418
+ return this.check(checks.lowercase(params));
419
+ },
420
+ uppercase(params) {
421
+ return this.check(checks.uppercase(params));
422
+ },
423
+ trim() {
424
+ return this.check(checks.trim());
425
+ },
426
+ normalize(...args) {
427
+ return this.check(checks.normalize(...args));
428
+ },
429
+ toLowerCase() {
430
+ return this.check(checks.toLowerCase());
431
+ },
432
+ toUpperCase() {
433
+ return this.check(checks.toUpperCase());
434
+ },
435
+ slugify() {
436
+ return this.check(checks.slugify());
437
+ },
438
+ }
439
+ );
440
+
441
+ export interface ZodString extends _ZodString<core.$ZodStringInternals<string>> {
442
+ // string format checks
443
+
444
+ /** @deprecated Use `z.email()` instead. */
445
+ email(params?: string | core.$ZodCheckEmailParams): this;
446
+ /** @deprecated Use `z.url()` instead. */
447
+ url(params?: string | core.$ZodCheckURLParams): this;
448
+ /** @deprecated Use `z.jwt()` instead. */
449
+ jwt(params?: string | core.$ZodCheckJWTParams): this;
450
+ /** @deprecated Use `z.emoji()` instead. */
451
+ emoji(params?: string | core.$ZodCheckEmojiParams): this;
452
+ /** @deprecated Use `z.guid()` instead. */
453
+ guid(params?: string | core.$ZodCheckGUIDParams): this;
454
+ /** @deprecated Use `z.uuid()` instead. */
455
+ uuid(params?: string | core.$ZodCheckUUIDParams): this;
456
+ /** @deprecated Use `z.uuid()` instead. */
457
+ uuidv4(params?: string | core.$ZodCheckUUIDParams): this;
458
+ /** @deprecated Use `z.uuid()` instead. */
459
+ uuidv6(params?: string | core.$ZodCheckUUIDParams): this;
460
+ /** @deprecated Use `z.uuid()` instead. */
461
+ uuidv7(params?: string | core.$ZodCheckUUIDParams): this;
462
+ /** @deprecated Use `z.nanoid()` instead. */
463
+ nanoid(params?: string | core.$ZodCheckNanoIDParams): this;
464
+ /** @deprecated Use `z.guid()` instead. */
465
+ guid(params?: string | core.$ZodCheckGUIDParams): this;
466
+ /**
467
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
468
+ * (timestamps embedded in the id). Use `z.cuid2()` instead.
469
+ * See https://github.com/paralleldrive/cuid.
470
+ */
471
+ cuid(params?: string | core.$ZodCheckCUIDParams): this;
472
+ /** @deprecated Use `z.cuid2()` instead. */
473
+ cuid2(params?: string | core.$ZodCheckCUID2Params): this;
474
+ /** @deprecated Use `z.ulid()` instead. */
475
+ ulid(params?: string | core.$ZodCheckULIDParams): this;
476
+ /** @deprecated Use `z.base64()` instead. */
477
+ base64(params?: string | core.$ZodCheckBase64Params): this;
478
+ /** @deprecated Use `z.base64url()` instead. */
479
+ base64url(params?: string | core.$ZodCheckBase64URLParams): this;
480
+ // /** @deprecated Use `z.jsonString()` instead. */
481
+ // jsonString(params?: string | core.$ZodCheckJSONStringParams): this;
482
+ /** @deprecated Use `z.xid()` instead. */
483
+ xid(params?: string | core.$ZodCheckXIDParams): this;
484
+ /** @deprecated Use `z.ksuid()` instead. */
485
+ ksuid(params?: string | core.$ZodCheckKSUIDParams): this;
486
+ // /** @deprecated Use `z.ipv4()` or `z.ipv6()` instead. */
487
+ // ip(params?: string | (core.$ZodCheckIPv4Params & { version?: "v4" | "v6" })): ZodUnion<[this, this]>;
488
+ /** @deprecated Use `z.ipv4()` instead. */
489
+ ipv4(params?: string | core.$ZodCheckIPv4Params): this;
490
+ /** @deprecated Use `z.ipv6()` instead. */
491
+ ipv6(params?: string | core.$ZodCheckIPv6Params): this;
492
+ /** @deprecated Use `z.cidrv4()` instead. */
493
+ cidrv4(params?: string | core.$ZodCheckCIDRv4Params): this;
494
+ /** @deprecated Use `z.cidrv6()` instead. */
495
+ cidrv6(params?: string | core.$ZodCheckCIDRv6Params): this;
496
+ /** @deprecated Use `z.e164()` instead. */
497
+ e164(params?: string | core.$ZodCheckE164Params): this;
498
+
499
+ // ISO 8601 checks
500
+ /** @deprecated Use `z.iso.datetime()` instead. */
501
+ datetime(params?: string | core.$ZodCheckISODateTimeParams): this;
502
+ /** @deprecated Use `z.iso.date()` instead. */
503
+ date(params?: string | core.$ZodCheckISODateParams): this;
504
+ /** @deprecated Use `z.iso.time()` instead. */
505
+ time(
506
+ params?:
507
+ | string
508
+ // | {
509
+ // message?: string | undefined;
510
+ // precision?: number | null;
511
+ // }
512
+ | core.$ZodCheckISOTimeParams
513
+ ): this;
514
+ /** @deprecated Use `z.iso.duration()` instead. */
515
+ duration(params?: string | core.$ZodCheckISODurationParams): this;
516
+ }
517
+
518
+ export const ZodString: core.$constructor<ZodString> = /*@__PURE__*/ core.$constructor<ZodString>(
519
+ "ZodString",
520
+ (inst, def) => {
521
+ core.$ZodString.init(inst, def);
522
+ _ZodString.init(inst, def);
523
+ },
524
+ {
525
+ email(params) {
526
+ return this.check(core._email(ZodEmail, params));
527
+ },
528
+ url(params) {
529
+ return this.check(core._url(ZodURL, params));
530
+ },
531
+ jwt(params) {
532
+ return this.check(core._jwt(ZodJWT, params));
533
+ },
534
+ emoji(params) {
535
+ return this.check(core._emoji(ZodEmoji, params));
536
+ },
537
+ guid(params) {
538
+ return this.check(core._guid(ZodGUID, params));
539
+ },
540
+ uuid(params) {
541
+ return this.check(core._uuid(ZodUUID, params));
542
+ },
543
+ uuidv4(params) {
544
+ return this.check(core._uuidv4(ZodUUID, params));
545
+ },
546
+ uuidv6(params) {
547
+ return this.check(core._uuidv6(ZodUUID, params));
548
+ },
549
+ uuidv7(params) {
550
+ return this.check(core._uuidv7(ZodUUID, params));
551
+ },
552
+ nanoid(params) {
553
+ return this.check(core._nanoid(ZodNanoID, params));
554
+ },
555
+ cuid(params) {
556
+ return this.check(core._cuid(ZodCUID, params));
557
+ },
558
+ cuid2(params) {
559
+ return this.check(core._cuid2(ZodCUID2, params));
560
+ },
561
+ ulid(params) {
562
+ return this.check(core._ulid(ZodULID, params));
563
+ },
564
+ base64(params) {
565
+ return this.check(core._base64(ZodBase64, params));
566
+ },
567
+ base64url(params) {
568
+ return this.check(core._base64url(ZodBase64URL, params));
569
+ },
570
+ xid(params) {
571
+ return this.check(core._xid(ZodXID, params));
572
+ },
573
+ ksuid(params) {
574
+ return this.check(core._ksuid(ZodKSUID, params));
575
+ },
576
+ ipv4(params) {
577
+ return this.check(core._ipv4(ZodIPv4, params));
578
+ },
579
+ ipv6(params) {
580
+ return this.check(core._ipv6(ZodIPv6, params));
581
+ },
582
+ cidrv4(params) {
583
+ return this.check(core._cidrv4(ZodCIDRv4, params));
584
+ },
585
+ cidrv6(params) {
586
+ return this.check(core._cidrv6(ZodCIDRv6, params));
587
+ },
588
+ e164(params) {
589
+ return this.check(core._e164(ZodE164, params));
590
+ },
591
+ datetime(params) {
592
+ return this.check(core._isoDateTime(ZodISODateTime, params as any));
593
+ },
594
+ date(params) {
595
+ return this.check(core._isoDate(ZodISODate, params as any));
596
+ },
597
+ time(params) {
598
+ return this.check(core._isoTime(ZodISOTime, params as any));
599
+ },
600
+ duration(params) {
601
+ return this.check(core._isoDuration(ZodISODuration, params as any));
602
+ },
603
+ }
604
+ );
605
+
606
+ export function string(params?: string | core.$ZodStringParams): ZodString;
607
+ export function string<T extends string>(params?: string | core.$ZodStringParams): core.$ZodType<T, T>;
608
+ export function string(params?: string | core.$ZodStringParams): ZodString {
609
+ return core._string(ZodString, params);
610
+ }
611
+
612
+ // ZodStringFormat
613
+ export interface ZodStringFormat<Format extends string = string>
614
+ extends _ZodString<core.$ZodStringFormatInternals<Format>> {}
615
+ export const ZodStringFormat: core.$constructor<ZodStringFormat> = /*@__PURE__*/ core.$constructor(
616
+ "ZodStringFormat",
617
+ (inst, def) => {
618
+ core.$ZodStringFormat.init(inst, def);
619
+ _ZodString.init(inst, def);
620
+ }
621
+ );
622
+
623
+ //////////////////////////////////////////////
624
+ //////////////////////////////////////////////
625
+ ////////// //////////
626
+ ////////// ZodISODateTime //////////
627
+ ////////// //////////
628
+ //////////////////////////////////////////////
629
+ //////////////////////////////////////////////
630
+ export interface ZodISODateTime extends ZodStringFormat {
631
+ _zod: core.$ZodISODateTimeInternals;
632
+ }
633
+ export const ZodISODateTime: core.$constructor<ZodISODateTime> = /*@__PURE__*/ core.$constructor(
634
+ "ZodISODateTime",
635
+ (inst, def) => {
636
+ core.$ZodISODateTime.init(inst, def);
637
+ ZodStringFormat.init(inst, def);
638
+ }
639
+ );
640
+
641
+ //////////////////////////////////////////
642
+ //////////////////////////////////////////
643
+ ////////// //////////
644
+ ////////// ZodISODate //////////
645
+ ////////// //////////
646
+ //////////////////////////////////////////
647
+ //////////////////////////////////////////
648
+ export interface ZodISODate extends ZodStringFormat {
649
+ _zod: core.$ZodISODateInternals;
650
+ }
651
+ export const ZodISODate: core.$constructor<ZodISODate> = /*@__PURE__*/ core.$constructor("ZodISODate", (inst, def) => {
652
+ core.$ZodISODate.init(inst, def);
653
+ ZodStringFormat.init(inst, def);
654
+ });
655
+
656
+ //////////////////////////////////////////
657
+ //////////////////////////////////////////
658
+ ////////// //////////
659
+ ////////// ZodISOTime //////////
660
+ ////////// //////////
661
+ //////////////////////////////////////////
662
+ //////////////////////////////////////////
663
+ export interface ZodISOTime extends ZodStringFormat {
664
+ _zod: core.$ZodISOTimeInternals;
665
+ }
666
+ export const ZodISOTime: core.$constructor<ZodISOTime> = /*@__PURE__*/ core.$constructor("ZodISOTime", (inst, def) => {
667
+ core.$ZodISOTime.init(inst, def);
668
+ ZodStringFormat.init(inst, def);
669
+ });
670
+
671
+ //////////////////////////////////////////////
672
+ //////////////////////////////////////////////
673
+ ////////// //////////
674
+ ////////// ZodISODuration //////////
675
+ ////////// //////////
676
+ //////////////////////////////////////////////
677
+ //////////////////////////////////////////////
678
+ export interface ZodISODuration extends ZodStringFormat {
679
+ _zod: core.$ZodISODurationInternals;
680
+ }
681
+ export const ZodISODuration: core.$constructor<ZodISODuration> = /*@__PURE__*/ core.$constructor(
682
+ "ZodISODuration",
683
+ (inst, def) => {
684
+ core.$ZodISODuration.init(inst, def);
685
+ ZodStringFormat.init(inst, def);
686
+ }
687
+ );
688
+
689
+ // ZodEmail
690
+ export interface ZodEmail extends ZodStringFormat<"email"> {
691
+ _zod: core.$ZodEmailInternals;
692
+ }
693
+ export const ZodEmail: core.$constructor<ZodEmail> = /*@__PURE__*/ core.$constructor("ZodEmail", (inst, def) => {
694
+ // ZodStringFormat.init(inst, def);
695
+ core.$ZodEmail.init(inst, def);
696
+ ZodStringFormat.init(inst, def);
697
+ });
698
+
699
+ export function email(params?: string | core.$ZodEmailParams): ZodEmail {
700
+ return core._email(ZodEmail, params);
701
+ }
702
+
703
+ // ZodGUID
704
+ export interface ZodGUID extends ZodStringFormat<"guid"> {
705
+ _zod: core.$ZodGUIDInternals;
706
+ }
707
+ export const ZodGUID: core.$constructor<ZodGUID> = /*@__PURE__*/ core.$constructor("ZodGUID", (inst, def) => {
708
+ // ZodStringFormat.init(inst, def);
709
+ core.$ZodGUID.init(inst, def);
710
+ ZodStringFormat.init(inst, def);
711
+ });
712
+
713
+ export function guid(params?: string | core.$ZodGUIDParams): ZodGUID {
714
+ return core._guid(ZodGUID, params);
715
+ }
716
+
717
+ // ZodUUID
718
+ export interface ZodUUID extends ZodStringFormat<"uuid"> {
719
+ _zod: core.$ZodUUIDInternals;
720
+ }
721
+ export const ZodUUID: core.$constructor<ZodUUID> = /*@__PURE__*/ core.$constructor("ZodUUID", (inst, def) => {
722
+ // ZodStringFormat.init(inst, def);
723
+ core.$ZodUUID.init(inst, def);
724
+ ZodStringFormat.init(inst, def);
725
+ });
726
+
727
+ export function uuid(params?: string | core.$ZodUUIDParams): ZodUUID {
728
+ return core._uuid(ZodUUID, params);
729
+ }
730
+
731
+ export function uuidv4(params?: string | core.$ZodUUIDv4Params): ZodUUID {
732
+ return core._uuidv4(ZodUUID, params);
733
+ }
734
+
735
+ // ZodUUIDv6
736
+
737
+ export function uuidv6(params?: string | core.$ZodUUIDv6Params): ZodUUID {
738
+ return core._uuidv6(ZodUUID, params);
739
+ }
740
+
741
+ // ZodUUIDv7
742
+
743
+ export function uuidv7(params?: string | core.$ZodUUIDv7Params): ZodUUID {
744
+ return core._uuidv7(ZodUUID, params);
745
+ }
746
+
747
+ // ZodURL
748
+ export interface ZodURL extends ZodStringFormat<"url"> {
749
+ _zod: core.$ZodURLInternals;
750
+ }
751
+ export const ZodURL: core.$constructor<ZodURL> = /*@__PURE__*/ core.$constructor("ZodURL", (inst, def) => {
752
+ // ZodStringFormat.init(inst, def);
753
+ core.$ZodURL.init(inst, def);
754
+ ZodStringFormat.init(inst, def);
755
+ });
756
+
757
+ export function url(params?: string | core.$ZodURLParams): ZodURL {
758
+ return core._url(ZodURL, params);
759
+ }
760
+
761
+ export function httpUrl(params?: string | Omit<core.$ZodURLParams, "protocol" | "hostname">): ZodURL {
762
+ return core._url(ZodURL, {
763
+ protocol: core.regexes.httpProtocol,
764
+ hostname: core.regexes.domain,
765
+ ...util.normalizeParams(params),
766
+ });
767
+ }
768
+
769
+ // ZodEmoji
770
+ export interface ZodEmoji extends ZodStringFormat<"emoji"> {
771
+ _zod: core.$ZodEmojiInternals;
772
+ }
773
+ export const ZodEmoji: core.$constructor<ZodEmoji> = /*@__PURE__*/ core.$constructor("ZodEmoji", (inst, def) => {
774
+ // ZodStringFormat.init(inst, def);
775
+ core.$ZodEmoji.init(inst, def);
776
+ ZodStringFormat.init(inst, def);
777
+ });
778
+
779
+ export function emoji(params?: string | core.$ZodEmojiParams): ZodEmoji {
780
+ return core._emoji(ZodEmoji, params);
781
+ }
782
+
783
+ // ZodNanoID
784
+ export interface ZodNanoID extends ZodStringFormat<"nanoid"> {
785
+ _zod: core.$ZodNanoIDInternals;
786
+ }
787
+ export const ZodNanoID: core.$constructor<ZodNanoID> = /*@__PURE__*/ core.$constructor("ZodNanoID", (inst, def) => {
788
+ // ZodStringFormat.init(inst, def);
789
+ core.$ZodNanoID.init(inst, def);
790
+ ZodStringFormat.init(inst, def);
791
+ });
792
+
793
+ export function nanoid(params?: string | core.$ZodNanoIDParams): ZodNanoID {
794
+ return core._nanoid(ZodNanoID, params);
795
+ }
796
+
797
+ // ZodCUID
798
+ /**
799
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
800
+ * (timestamps embedded in the id). Use {@link ZodCUID2} instead.
801
+ * See https://github.com/paralleldrive/cuid.
802
+ */
803
+ export interface ZodCUID extends ZodStringFormat<"cuid"> {
804
+ _zod: core.$ZodCUIDInternals;
805
+ }
806
+ /**
807
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
808
+ * (timestamps embedded in the id). Use {@link ZodCUID2} instead.
809
+ * See https://github.com/paralleldrive/cuid.
810
+ */
811
+ export const ZodCUID: core.$constructor<ZodCUID> = /*@__PURE__*/ core.$constructor("ZodCUID", (inst, def) => {
812
+ // ZodStringFormat.init(inst, def);
813
+ core.$ZodCUID.init(inst, def);
814
+ ZodStringFormat.init(inst, def);
815
+ });
816
+
817
+ /**
818
+ * Validates a CUID v1 string.
819
+ *
820
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
821
+ * (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.
822
+ * See https://github.com/paralleldrive/cuid.
823
+ */
824
+ export function cuid(params?: string | core.$ZodCUIDParams): ZodCUID {
825
+ return core._cuid(ZodCUID, params);
826
+ }
827
+
828
+ // ZodCUID2
829
+ export interface ZodCUID2 extends ZodStringFormat<"cuid2"> {
830
+ _zod: core.$ZodCUID2Internals;
831
+ }
832
+ export const ZodCUID2: core.$constructor<ZodCUID2> = /*@__PURE__*/ core.$constructor("ZodCUID2", (inst, def) => {
833
+ // ZodStringFormat.init(inst, def);
834
+ core.$ZodCUID2.init(inst, def);
835
+ ZodStringFormat.init(inst, def);
836
+ });
837
+
838
+ export function cuid2(params?: string | core.$ZodCUID2Params): ZodCUID2 {
839
+ return core._cuid2(ZodCUID2, params);
840
+ }
841
+
842
+ // ZodULID
843
+ export interface ZodULID extends ZodStringFormat<"ulid"> {
844
+ _zod: core.$ZodULIDInternals;
845
+ }
846
+ export const ZodULID: core.$constructor<ZodULID> = /*@__PURE__*/ core.$constructor("ZodULID", (inst, def) => {
847
+ // ZodStringFormat.init(inst, def);
848
+ core.$ZodULID.init(inst, def);
849
+ ZodStringFormat.init(inst, def);
850
+ });
851
+
852
+ export function ulid(params?: string | core.$ZodULIDParams): ZodULID {
853
+ return core._ulid(ZodULID, params);
854
+ }
855
+
856
+ // ZodXID
857
+ export interface ZodXID extends ZodStringFormat<"xid"> {
858
+ _zod: core.$ZodXIDInternals;
859
+ }
860
+ export const ZodXID: core.$constructor<ZodXID> = /*@__PURE__*/ core.$constructor("ZodXID", (inst, def) => {
861
+ // ZodStringFormat.init(inst, def);
862
+ core.$ZodXID.init(inst, def);
863
+ ZodStringFormat.init(inst, def);
864
+ });
865
+
866
+ export function xid(params?: string | core.$ZodXIDParams): ZodXID {
867
+ return core._xid(ZodXID, params);
868
+ }
869
+
870
+ // ZodKSUID
871
+ export interface ZodKSUID extends ZodStringFormat<"ksuid"> {
872
+ _zod: core.$ZodKSUIDInternals;
873
+ }
874
+ export const ZodKSUID: core.$constructor<ZodKSUID> = /*@__PURE__*/ core.$constructor("ZodKSUID", (inst, def) => {
875
+ // ZodStringFormat.init(inst, def);
876
+ core.$ZodKSUID.init(inst, def);
877
+ ZodStringFormat.init(inst, def);
878
+ });
879
+
880
+ export function ksuid(params?: string | core.$ZodKSUIDParams): ZodKSUID {
881
+ return core._ksuid(ZodKSUID, params);
882
+ }
883
+
884
+ // ZodIP
885
+ // export interface ZodIP extends ZodStringFormat<"ip"> {
886
+ // _zod: core.$ZodIPInternals;
887
+ // }
888
+ // export const ZodIP: core.$constructor<ZodIP> = /*@__PURE__*/ core.$constructor("ZodIP", (inst, def) => {
889
+ // // ZodStringFormat.init(inst, def);
890
+ // core.$ZodIP.init(inst, def);
891
+ // ZodStringFormat.init(inst, def);
892
+ // });
893
+
894
+ // export function ip(params?: string | core.$ZodIPParams): ZodIP {
895
+ // return core._ip(ZodIP, params);
896
+ // }
897
+
898
+ // ZodIPv4
899
+ export interface ZodIPv4 extends ZodStringFormat<"ipv4"> {
900
+ _zod: core.$ZodIPv4Internals;
901
+ }
902
+ export const ZodIPv4: core.$constructor<ZodIPv4> = /*@__PURE__*/ core.$constructor("ZodIPv4", (inst, def) => {
903
+ // ZodStringFormat.init(inst, def);
904
+ core.$ZodIPv4.init(inst, def);
905
+ ZodStringFormat.init(inst, def);
906
+ });
907
+
908
+ export function ipv4(params?: string | core.$ZodIPv4Params): ZodIPv4 {
909
+ return core._ipv4(ZodIPv4, params);
910
+ }
911
+
912
+ // ZodMAC
913
+ export interface ZodMAC extends ZodStringFormat<"mac"> {
914
+ _zod: core.$ZodMACInternals;
915
+ }
916
+ export const ZodMAC: core.$constructor<ZodMAC> = /*@__PURE__*/ core.$constructor("ZodMAC", (inst, def) => {
917
+ // ZodStringFormat.init(inst, def);
918
+ core.$ZodMAC.init(inst, def);
919
+ ZodStringFormat.init(inst, def);
920
+ });
921
+ export function mac(params?: string | core.$ZodMACParams): ZodMAC {
922
+ return core._mac(ZodMAC, params);
923
+ }
924
+
925
+ // ZodIPv6
926
+ export interface ZodIPv6 extends ZodStringFormat<"ipv6"> {
927
+ _zod: core.$ZodIPv6Internals;
928
+ }
929
+ export const ZodIPv6: core.$constructor<ZodIPv6> = /*@__PURE__*/ core.$constructor("ZodIPv6", (inst, def) => {
930
+ // ZodStringFormat.init(inst, def);
931
+ core.$ZodIPv6.init(inst, def);
932
+ ZodStringFormat.init(inst, def);
933
+ });
934
+ export function ipv6(params?: string | core.$ZodIPv6Params): ZodIPv6 {
935
+ return core._ipv6(ZodIPv6, params);
936
+ }
937
+
938
+ // ZodCIDRv4
939
+ export interface ZodCIDRv4 extends ZodStringFormat<"cidrv4"> {
940
+ _zod: core.$ZodCIDRv4Internals;
941
+ }
942
+ export const ZodCIDRv4: core.$constructor<ZodCIDRv4> = /*@__PURE__*/ core.$constructor("ZodCIDRv4", (inst, def) => {
943
+ core.$ZodCIDRv4.init(inst, def);
944
+ ZodStringFormat.init(inst, def);
945
+ });
946
+
947
+ export function cidrv4(params?: string | core.$ZodCIDRv4Params): ZodCIDRv4 {
948
+ return core._cidrv4(ZodCIDRv4, params);
949
+ }
950
+
951
+ // ZodCIDRv6
952
+ export interface ZodCIDRv6 extends ZodStringFormat<"cidrv6"> {
953
+ _zod: core.$ZodCIDRv6Internals;
954
+ }
955
+ export const ZodCIDRv6: core.$constructor<ZodCIDRv6> = /*@__PURE__*/ core.$constructor("ZodCIDRv6", (inst, def) => {
956
+ core.$ZodCIDRv6.init(inst, def);
957
+ ZodStringFormat.init(inst, def);
958
+ });
959
+
960
+ export function cidrv6(params?: string | core.$ZodCIDRv6Params): ZodCIDRv6 {
961
+ return core._cidrv6(ZodCIDRv6, params);
962
+ }
963
+
964
+ // ZodBase64
965
+ export interface ZodBase64 extends ZodStringFormat<"base64"> {
966
+ _zod: core.$ZodBase64Internals;
967
+ }
968
+ export const ZodBase64: core.$constructor<ZodBase64> = /*@__PURE__*/ core.$constructor("ZodBase64", (inst, def) => {
969
+ // ZodStringFormat.init(inst, def);
970
+ core.$ZodBase64.init(inst, def);
971
+ ZodStringFormat.init(inst, def);
972
+ });
973
+ export function base64(params?: string | core.$ZodBase64Params): ZodBase64 {
974
+ return core._base64(ZodBase64, params);
975
+ }
976
+
977
+ // ZodBase64URL
978
+ export interface ZodBase64URL extends ZodStringFormat<"base64url"> {
979
+ _zod: core.$ZodBase64URLInternals;
980
+ }
981
+ export const ZodBase64URL: core.$constructor<ZodBase64URL> = /*@__PURE__*/ core.$constructor(
982
+ "ZodBase64URL",
983
+ (inst, def) => {
984
+ // ZodStringFormat.init(inst, def);
985
+ core.$ZodBase64URL.init(inst, def);
986
+ ZodStringFormat.init(inst, def);
987
+ }
988
+ );
989
+ export function base64url(params?: string | core.$ZodBase64URLParams): ZodBase64URL {
990
+ return core._base64url(ZodBase64URL, params);
991
+ }
992
+
993
+ // ZodE164
994
+ export interface ZodE164 extends ZodStringFormat<"e164"> {
995
+ _zod: core.$ZodE164Internals;
996
+ }
997
+ export const ZodE164: core.$constructor<ZodE164> = /*@__PURE__*/ core.$constructor("ZodE164", (inst, def) => {
998
+ // ZodStringFormat.init(inst, def);
999
+ core.$ZodE164.init(inst, def);
1000
+ ZodStringFormat.init(inst, def);
1001
+ });
1002
+
1003
+ export function e164(params?: string | core.$ZodE164Params): ZodE164 {
1004
+ return core._e164(ZodE164, params);
1005
+ }
1006
+
1007
+ // ZodCreditCard
1008
+ export interface ZodCreditCard extends ZodStringFormat<"credit_card"> {
1009
+ _zod: core.$ZodCreditCardInternals;
1010
+ }
1011
+ export const ZodCreditCard: core.$constructor<ZodCreditCard> = /*@__PURE__*/ core.$constructor(
1012
+ "ZodCreditCard",
1013
+ (inst, def) => {
1014
+ core.$ZodCreditCard.init(inst, def);
1015
+ ZodStringFormat.init(inst, def);
1016
+ }
1017
+ );
1018
+
1019
+ export function creditCard(params?: string | core.$ZodCreditCardParams): ZodCreditCard {
1020
+ return core._creditCard(ZodCreditCard, params);
1021
+ }
1022
+
1023
+ // ZodJWT
1024
+ export interface ZodJWT extends ZodStringFormat<"jwt"> {
1025
+ _zod: core.$ZodJWTInternals;
1026
+ }
1027
+ export const ZodJWT: core.$constructor<ZodJWT> = /*@__PURE__*/ core.$constructor("ZodJWT", (inst, def) => {
1028
+ // ZodStringFormat.init(inst, def);
1029
+ core.$ZodJWT.init(inst, def);
1030
+ ZodStringFormat.init(inst, def);
1031
+ });
1032
+
1033
+ export function jwt(params?: string | core.$ZodJWTParams): ZodJWT {
1034
+ return core._jwt(ZodJWT, params);
1035
+ }
1036
+
1037
+ // ZodCustomStringFormat
1038
+ export interface ZodCustomStringFormat<Format extends string = string>
1039
+ extends ZodStringFormat<Format>,
1040
+ core.$ZodCustomStringFormat<Format> {
1041
+ _zod: core.$ZodCustomStringFormatInternals<Format>;
1042
+ "~standard": ZodStandardSchemaWithJSON<this>;
1043
+ }
1044
+ export const ZodCustomStringFormat: core.$constructor<ZodCustomStringFormat> = /*@__PURE__*/ core.$constructor(
1045
+ "ZodCustomStringFormat",
1046
+ (inst, def) => {
1047
+ // ZodStringFormat.init(inst, def);
1048
+ core.$ZodCustomStringFormat.init(inst, def);
1049
+ ZodStringFormat.init(inst, def);
1050
+ }
1051
+ );
1052
+ export function stringFormat<Format extends string>(
1053
+ format: Format,
1054
+ fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp,
1055
+ _params: string | core.$ZodStringFormatParams = {}
1056
+ ): ZodCustomStringFormat<Format> {
1057
+ return core._stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params) as any;
1058
+ }
1059
+
1060
+ export function hostname(_params?: string | core.$ZodStringFormatParams): ZodCustomStringFormat<"hostname"> {
1061
+ return core._stringFormat(ZodCustomStringFormat, "hostname", core.regexes.hostname, _params) as any;
1062
+ }
1063
+
1064
+ export function hex(_params?: string | core.$ZodStringFormatParams): ZodCustomStringFormat<"hex"> {
1065
+ return core._stringFormat(ZodCustomStringFormat, "hex", core.regexes.hex, _params) as any;
1066
+ }
1067
+
1068
+ export function hash<Alg extends util.HashAlgorithm, Enc extends util.HashEncoding = "hex">(
1069
+ alg: Alg,
1070
+ params?: {
1071
+ enc?: Enc;
1072
+ } & core.$ZodStringFormatParams
1073
+ ): ZodCustomStringFormat<`${Alg}_${Enc}`> {
1074
+ const enc = params?.enc ?? "hex";
1075
+ const format = `${alg}_${enc}` as const;
1076
+ const regex = core.regexes[format as keyof typeof core.regexes] as RegExp;
1077
+ if (!regex) throw new Error(`Unrecognized hash format: ${format}`);
1078
+ return core._stringFormat(ZodCustomStringFormat, format, regex, params) as any;
1079
+ }
1080
+
1081
+ // ZodNumber
1082
+ export interface _ZodNumber<Internals extends core.$ZodNumberInternals = core.$ZodNumberInternals>
1083
+ extends _ZodType<Internals> {
1084
+ gt(value: number, params?: string | core.$ZodCheckGreaterThanParams): this;
1085
+ /** Identical to .min() */
1086
+ gte(value: number, params?: string | core.$ZodCheckGreaterThanParams): this;
1087
+ min(value: number, params?: string | core.$ZodCheckGreaterThanParams): this;
1088
+ lt(value: number, params?: string | core.$ZodCheckLessThanParams): this;
1089
+ /** Identical to .max() */
1090
+ lte(value: number, params?: string | core.$ZodCheckLessThanParams): this;
1091
+ max(value: number, params?: string | core.$ZodCheckLessThanParams): this;
1092
+ /** Consider `z.int()` instead. This API is considered *legacy*; it will never be removed but a better alternative exists. */
1093
+ int(params?: string | core.$ZodCheckNumberFormatParams): this;
1094
+ /** @deprecated This is now identical to `.int()`. Only numbers in the safe integer range are accepted. */
1095
+ safe(params?: string | core.$ZodCheckNumberFormatParams): this;
1096
+ positive(params?: string | core.$ZodCheckGreaterThanParams): this;
1097
+ nonnegative(params?: string | core.$ZodCheckGreaterThanParams): this;
1098
+ negative(params?: string | core.$ZodCheckLessThanParams): this;
1099
+ nonpositive(params?: string | core.$ZodCheckLessThanParams): this;
1100
+ multipleOf(value: number, params?: string | core.$ZodCheckMultipleOfParams): this;
1101
+ /** @deprecated Use `.multipleOf()` instead. */
1102
+ step(value: number, params?: string | core.$ZodCheckMultipleOfParams): this;
1103
+
1104
+ /** @deprecated In v4 and later, z.number() does not allow infinite values by default. This is a no-op. */
1105
+ finite(params?: unknown): this;
1106
+
1107
+ minValue: number | null;
1108
+ maxValue: number | null;
1109
+ /** @deprecated Check the `format` property instead. */
1110
+ isInt: boolean;
1111
+ /** @deprecated Number schemas no longer accept infinite values, so this always returns `true`. */
1112
+ isFinite: boolean;
1113
+ format: string | null;
1114
+ }
1115
+
1116
+ export interface ZodNumber extends _ZodNumber<core.$ZodNumberInternals<number>> {}
1117
+
1118
+ export const ZodNumber: core.$constructor<ZodNumber> = /*@__PURE__*/ core.$constructor<ZodNumber>(
1119
+ "ZodNumber",
1120
+ (inst, def) => {
1121
+ core.$ZodNumber.init(inst, def);
1122
+
1123
+ ZodType.init(inst, def);
1124
+
1125
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.numberProcessor(inst, ctx, json, params);
1126
+
1127
+ const bag = inst._zod.bag;
1128
+ inst.minValue =
1129
+ Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
1130
+ inst.maxValue =
1131
+ Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
1132
+ inst.isInt = (bag.format ?? "").includes("int") || Number.isSafeInteger(bag.multipleOf ?? 0.5);
1133
+ inst.isFinite = true;
1134
+ inst.format = bag.format ?? null;
1135
+ },
1136
+ {
1137
+ gt(value, params) {
1138
+ return this.check(checks.gt(value, params));
1139
+ },
1140
+ gte(value, params) {
1141
+ return this.check(checks.gte(value, params));
1142
+ },
1143
+ min(value, params) {
1144
+ return this.check(checks.gte(value, params));
1145
+ },
1146
+ lt(value, params) {
1147
+ return this.check(checks.lt(value, params));
1148
+ },
1149
+ lte(value, params) {
1150
+ return this.check(checks.lte(value, params));
1151
+ },
1152
+ max(value, params) {
1153
+ return this.check(checks.lte(value, params));
1154
+ },
1155
+ int(params) {
1156
+ return this.check(int(params));
1157
+ },
1158
+ safe(params) {
1159
+ return this.check(int(params));
1160
+ },
1161
+ positive(params) {
1162
+ return this.check(checks.gt(0, params));
1163
+ },
1164
+ nonnegative(params) {
1165
+ return this.check(checks.gte(0, params));
1166
+ },
1167
+ negative(params) {
1168
+ return this.check(checks.lt(0, params));
1169
+ },
1170
+ nonpositive(params) {
1171
+ return this.check(checks.lte(0, params));
1172
+ },
1173
+ multipleOf(value, params) {
1174
+ return this.check(checks.multipleOf(value, params));
1175
+ },
1176
+ step(value, params) {
1177
+ return this.check(checks.multipleOf(value, params));
1178
+ },
1179
+ finite() {
1180
+ return this;
1181
+ },
1182
+ }
1183
+ );
1184
+
1185
+ export function number(params?: string | core.$ZodNumberParams): ZodNumber {
1186
+ return core._number(ZodNumber, params);
1187
+ }
1188
+
1189
+ // ZodNumberFormat
1190
+ export interface ZodNumberFormat<Format extends $ZodNumberFormats = $ZodNumberFormats> extends ZodNumber {
1191
+ _zod: core.$ZodNumberFormatInternals<Format>;
1192
+ }
1193
+ export const ZodNumberFormat: core.$constructor<ZodNumberFormat> = /*@__PURE__*/ core.$constructor(
1194
+ "ZodNumberFormat",
1195
+ (inst, def) => {
1196
+ core.$ZodNumberFormat.init(inst, def);
1197
+ ZodNumber.init(inst, def);
1198
+ }
1199
+ );
1200
+
1201
+ // int
1202
+ export interface ZodInt extends ZodNumberFormat<"safeint"> {}
1203
+ export function int(params?: string | core.$ZodCheckNumberFormatParams): ZodInt {
1204
+ return core._int(ZodNumberFormat, params) as ZodInt;
1205
+ }
1206
+
1207
+ // float32
1208
+ export interface ZodFloat32 extends ZodNumberFormat<"float32"> {}
1209
+ export function float32(params?: string | core.$ZodCheckNumberFormatParams): ZodFloat32 {
1210
+ return core._float32(ZodNumberFormat, params) as ZodFloat32;
1211
+ }
1212
+
1213
+ // float64
1214
+ export interface ZodFloat64 extends ZodNumberFormat<"float64"> {}
1215
+ export function float64(params?: string | core.$ZodCheckNumberFormatParams): ZodFloat64 {
1216
+ return core._float64(ZodNumberFormat, params) as ZodFloat64;
1217
+ }
1218
+
1219
+ // int32
1220
+ export interface ZodInt32 extends ZodNumberFormat<"int32"> {}
1221
+ export function int32(params?: string | core.$ZodCheckNumberFormatParams): ZodInt32 {
1222
+ return core._int32(ZodNumberFormat, params) as ZodInt32;
1223
+ }
1224
+
1225
+ // uint32
1226
+ export interface ZodUInt32 extends ZodNumberFormat<"uint32"> {}
1227
+ export function uint32(params?: string | core.$ZodCheckNumberFormatParams): ZodUInt32 {
1228
+ return core._uint32(ZodNumberFormat, params) as ZodUInt32;
1229
+ }
1230
+
1231
+ // boolean
1232
+ export interface _ZodBoolean<T extends core.$ZodBooleanInternals = core.$ZodBooleanInternals> extends _ZodType<T> {}
1233
+ export interface ZodBoolean extends _ZodBoolean<core.$ZodBooleanInternals<boolean>> {}
1234
+ export const ZodBoolean: core.$constructor<ZodBoolean> = /*@__PURE__*/ core.$constructor("ZodBoolean", (inst, def) => {
1235
+ core.$ZodBoolean.init(inst, def);
1236
+ ZodType.init(inst, def);
1237
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.booleanProcessor(inst, ctx, json, params);
1238
+ });
1239
+
1240
+ export function boolean(params?: string | core.$ZodBooleanParams): ZodBoolean {
1241
+ return core._boolean(ZodBoolean, params);
1242
+ }
1243
+
1244
+ // bigint
1245
+ export interface _ZodBigInt<T extends core.$ZodBigIntInternals = core.$ZodBigIntInternals> extends _ZodType<T> {
1246
+ gte(value: bigint, params?: string | core.$ZodCheckGreaterThanParams): this;
1247
+ /** Alias of `.gte()` */
1248
+ min(value: bigint, params?: string | core.$ZodCheckGreaterThanParams): this;
1249
+ gt(value: bigint, params?: string | core.$ZodCheckGreaterThanParams): this;
1250
+ /** Alias of `.lte()` */
1251
+ lte(value: bigint, params?: string | core.$ZodCheckLessThanParams): this;
1252
+ max(value: bigint, params?: string | core.$ZodCheckLessThanParams): this;
1253
+ lt(value: bigint, params?: string | core.$ZodCheckLessThanParams): this;
1254
+ positive(params?: string | core.$ZodCheckGreaterThanParams): this;
1255
+ negative(params?: string | core.$ZodCheckLessThanParams): this;
1256
+ nonpositive(params?: string | core.$ZodCheckLessThanParams): this;
1257
+ nonnegative(params?: string | core.$ZodCheckGreaterThanParams): this;
1258
+ multipleOf(value: bigint, params?: string | core.$ZodCheckMultipleOfParams): this;
1259
+
1260
+ minValue: bigint | null;
1261
+ maxValue: bigint | null;
1262
+ format: string | null;
1263
+ }
1264
+
1265
+ export interface ZodBigInt extends _ZodBigInt<core.$ZodBigIntInternals<bigint>> {}
1266
+ export const ZodBigInt: core.$constructor<ZodBigInt> = /*@__PURE__*/ core.$constructor<ZodBigInt>(
1267
+ "ZodBigInt",
1268
+ (inst, def) => {
1269
+ core.$ZodBigInt.init(inst, def);
1270
+ ZodType.init(inst, def);
1271
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.bigintProcessor(inst, ctx, json, params);
1272
+
1273
+ const bag = inst._zod.bag;
1274
+ inst.minValue = bag.minimum ?? null;
1275
+ inst.maxValue = bag.maximum ?? null;
1276
+ inst.format = bag.format ?? null;
1277
+ },
1278
+ {
1279
+ gte(value, params) {
1280
+ return this.check(checks.gte(value, params));
1281
+ },
1282
+ min(value, params) {
1283
+ return this.check(checks.gte(value, params));
1284
+ },
1285
+ gt(value, params) {
1286
+ return this.check(checks.gt(value, params));
1287
+ },
1288
+ lt(value, params) {
1289
+ return this.check(checks.lt(value, params));
1290
+ },
1291
+ lte(value, params) {
1292
+ return this.check(checks.lte(value, params));
1293
+ },
1294
+ max(value, params) {
1295
+ return this.check(checks.lte(value, params));
1296
+ },
1297
+ positive(params) {
1298
+ return this.check(checks.gt(BigInt(0), params));
1299
+ },
1300
+ negative(params) {
1301
+ return this.check(checks.lt(BigInt(0), params));
1302
+ },
1303
+ nonpositive(params) {
1304
+ return this.check(checks.lte(BigInt(0), params));
1305
+ },
1306
+ nonnegative(params) {
1307
+ return this.check(checks.gte(BigInt(0), params));
1308
+ },
1309
+ multipleOf(value, params) {
1310
+ return this.check(checks.multipleOf(value, params));
1311
+ },
1312
+ }
1313
+ );
1314
+
1315
+ export function bigint(params?: string | core.$ZodBigIntParams): ZodBigInt {
1316
+ return core._bigint(ZodBigInt, params);
1317
+ }
1318
+ // bigint formats
1319
+
1320
+ // ZodBigIntFormat
1321
+ export interface ZodBigIntFormat<Format extends $ZodBigIntFormats = $ZodBigIntFormats> extends ZodBigInt {
1322
+ _zod: core.$ZodBigIntFormatInternals<Format>;
1323
+ }
1324
+ export const ZodBigIntFormat: core.$constructor<ZodBigIntFormat> = /*@__PURE__*/ core.$constructor(
1325
+ "ZodBigIntFormat",
1326
+ (inst, def) => {
1327
+ core.$ZodBigIntFormat.init(inst, def);
1328
+ ZodBigInt.init(inst, def);
1329
+ }
1330
+ );
1331
+
1332
+ // int64
1333
+ export interface ZodInt64 extends ZodBigIntFormat<"int64"> {}
1334
+ export function int64(params?: string | core.$ZodBigIntFormatParams): ZodInt64 {
1335
+ return core._int64(ZodBigIntFormat, params) as ZodInt64;
1336
+ }
1337
+
1338
+ // uint64
1339
+ export interface ZodUInt64 extends ZodBigIntFormat<"uint64"> {}
1340
+ export function uint64(params?: string | core.$ZodBigIntFormatParams): ZodUInt64 {
1341
+ return core._uint64(ZodBigIntFormat, params) as ZodUInt64;
1342
+ }
1343
+
1344
+ // symbol
1345
+ export interface ZodSymbol extends _ZodType<core.$ZodSymbolInternals> {}
1346
+ export const ZodSymbol: core.$constructor<ZodSymbol> = /*@__PURE__*/ core.$constructor("ZodSymbol", (inst, def) => {
1347
+ core.$ZodSymbol.init(inst, def);
1348
+ ZodType.init(inst, def);
1349
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.symbolProcessor(inst, ctx, json, params);
1350
+ });
1351
+
1352
+ export function symbol(params?: string | core.$ZodSymbolParams): ZodSymbol {
1353
+ return core._symbol(ZodSymbol, params);
1354
+ }
1355
+
1356
+ // ZodUndefined
1357
+ export interface ZodUndefined extends _ZodType<core.$ZodUndefinedInternals> {}
1358
+ export const ZodUndefined: core.$constructor<ZodUndefined> = /*@__PURE__*/ core.$constructor(
1359
+ "ZodUndefined",
1360
+ (inst, def) => {
1361
+ core.$ZodUndefined.init(inst, def);
1362
+ ZodType.init(inst, def);
1363
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.undefinedProcessor(inst, ctx, json, params);
1364
+ }
1365
+ );
1366
+
1367
+ function _undefined(params?: string | core.$ZodUndefinedParams): ZodUndefined {
1368
+ return core._undefined(ZodUndefined, params);
1369
+ }
1370
+ export { _undefined as undefined };
1371
+
1372
+ // ZodNull
1373
+ export interface ZodNull extends _ZodType<core.$ZodNullInternals> {}
1374
+ export const ZodNull: core.$constructor<ZodNull> = /*@__PURE__*/ core.$constructor("ZodNull", (inst, def) => {
1375
+ core.$ZodNull.init(inst, def);
1376
+ ZodType.init(inst, def);
1377
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.nullProcessor(inst, ctx, json, params);
1378
+ });
1379
+
1380
+ function _null(params?: string | core.$ZodNullParams): ZodNull {
1381
+ return core._null(ZodNull, params);
1382
+ }
1383
+ export { _null as null };
1384
+
1385
+ // ZodAny
1386
+ export interface ZodAny extends _ZodType<core.$ZodAnyInternals> {}
1387
+ export const ZodAny: core.$constructor<ZodAny> = /*@__PURE__*/ core.$constructor("ZodAny", (inst, def) => {
1388
+ core.$ZodAny.init(inst, def);
1389
+ ZodType.init(inst, def);
1390
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.anyProcessor(inst, ctx, json, params);
1391
+ });
1392
+
1393
+ export function any(): ZodAny {
1394
+ return core._any(ZodAny);
1395
+ }
1396
+
1397
+ // ZodUnknown
1398
+ export interface ZodUnknown extends _ZodType<core.$ZodUnknownInternals> {}
1399
+ export const ZodUnknown: core.$constructor<ZodUnknown> = /*@__PURE__*/ core.$constructor("ZodUnknown", (inst, def) => {
1400
+ core.$ZodUnknown.init(inst, def);
1401
+ ZodType.init(inst, def);
1402
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.unknownProcessor(inst, ctx, json, params);
1403
+ });
1404
+
1405
+ export function unknown(): ZodUnknown {
1406
+ return core._unknown(ZodUnknown);
1407
+ }
1408
+
1409
+ // ZodNever
1410
+ export interface ZodNever extends _ZodType<core.$ZodNeverInternals> {}
1411
+ export const ZodNever: core.$constructor<ZodNever> = /*@__PURE__*/ core.$constructor("ZodNever", (inst, def) => {
1412
+ core.$ZodNever.init(inst, def);
1413
+ ZodType.init(inst, def);
1414
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.neverProcessor(inst, ctx, json, params);
1415
+ });
1416
+
1417
+ export function never(params?: string | core.$ZodNeverParams): ZodNever {
1418
+ return core._never(ZodNever, params);
1419
+ }
1420
+
1421
+ // ZodVoid
1422
+ export interface ZodVoid extends _ZodType<core.$ZodVoidInternals> {}
1423
+ export const ZodVoid: core.$constructor<ZodVoid> = /*@__PURE__*/ core.$constructor("ZodVoid", (inst, def) => {
1424
+ core.$ZodVoid.init(inst, def);
1425
+ ZodType.init(inst, def);
1426
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.voidProcessor(inst, ctx, json, params);
1427
+ });
1428
+
1429
+ function _void(params?: string | core.$ZodVoidParams): ZodVoid {
1430
+ return core._void(ZodVoid, params);
1431
+ }
1432
+ export { _void as void };
1433
+
1434
+ // ZodDate
1435
+ export interface _ZodDate<T extends core.$ZodDateInternals = core.$ZodDateInternals> extends _ZodType<T> {
1436
+ min(value: number | Date, params?: string | core.$ZodCheckGreaterThanParams): this;
1437
+ max(value: number | Date, params?: string | core.$ZodCheckLessThanParams): this;
1438
+
1439
+ /** @deprecated Not recommended. */
1440
+ minDate: Date | null;
1441
+ /** @deprecated Not recommended. */
1442
+ maxDate: Date | null;
1443
+ }
1444
+
1445
+ export interface ZodDate extends _ZodDate<core.$ZodDateInternals<Date>> {}
1446
+ export const ZodDate: core.$constructor<ZodDate> = /*@__PURE__*/ core.$constructor("ZodDate", (inst, def) => {
1447
+ core.$ZodDate.init(inst, def);
1448
+ ZodType.init(inst, def);
1449
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.dateProcessor(inst, ctx, json, params);
1450
+
1451
+ inst.min = (value, params) => inst.check(checks.gte(value, params));
1452
+ inst.max = (value, params) => inst.check(checks.lte(value, params));
1453
+
1454
+ const c = inst._zod.bag;
1455
+ inst.minDate = c.minimum ? new Date(c.minimum) : null;
1456
+ inst.maxDate = c.maximum ? new Date(c.maximum) : null;
1457
+ });
1458
+
1459
+ export function date(params?: string | core.$ZodDateParams): ZodDate {
1460
+ return core._date(ZodDate, params);
1461
+ }
1462
+
1463
+ // ZodArray
1464
+ export interface ZodArray<T extends core.SomeType = core.$ZodType>
1465
+ extends _ZodType<core.$ZodArrayInternals<T>>,
1466
+ core.$ZodArray<T> {
1467
+ element: T;
1468
+ min(minLength: number, params?: string | core.$ZodCheckMinLengthParams): this;
1469
+ nonempty(params?: string | core.$ZodCheckMinLengthParams): this;
1470
+ max(maxLength: number, params?: string | core.$ZodCheckMaxLengthParams): this;
1471
+ length(len: number, params?: string | core.$ZodCheckLengthEqualsParams): this;
1472
+
1473
+ unwrap(): T;
1474
+ "~standard": ZodStandardSchemaWithJSON<this>;
1475
+ }
1476
+ export const ZodArray: core.$constructor<ZodArray> = /*@__PURE__*/ core.$constructor<ZodArray>(
1477
+ "ZodArray",
1478
+ (inst, def) => {
1479
+ _ensureDefaultMemoizer();
1480
+ core.$ZodArray.init(inst, def);
1481
+ ZodType.init(inst, def);
1482
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.arrayProcessor(inst, ctx, json, params);
1483
+
1484
+ inst.element = def.element;
1485
+ },
1486
+ {
1487
+ min(n, params) {
1488
+ return this.check(checks.minLength(n, params));
1489
+ },
1490
+ nonempty(params) {
1491
+ return this.check(checks.minLength(1, params));
1492
+ },
1493
+ max(n, params) {
1494
+ return this.check(checks.maxLength(n, params));
1495
+ },
1496
+ length(n, params) {
1497
+ return this.check(checks.length(n, params));
1498
+ },
1499
+ unwrap() {
1500
+ return this.element;
1501
+ },
1502
+ }
1503
+ );
1504
+
1505
+ export function array<T extends core.SomeType>(element: T, params?: string | core.$ZodArrayParams): ZodArray<T> {
1506
+ return core._array(ZodArray, element as any, params) as any;
1507
+ }
1508
+
1509
+ // .keyof
1510
+ export function keyof<T extends ZodObject>(schema: T): ZodEnum<util.KeysEnum<T["_zod"]["output"]>> {
1511
+ const shape = schema._zod.def.shape;
1512
+ return _enum(Object.keys(shape)) as any;
1513
+ }
1514
+
1515
+ // ZodObject
1516
+
1517
+ export type SafeExtendShape<Base extends core.$ZodShape, Ext extends core.$ZodLooseShape> = {
1518
+ [K in keyof Ext]: K extends keyof Base
1519
+ ? core.output<Ext[K]> extends core.output<Base[K]>
1520
+ ? core.input<Ext[K]> extends core.input<Base[K]>
1521
+ ? Ext[K]
1522
+ : never
1523
+ : never
1524
+ : Ext[K];
1525
+ };
1526
+
1527
+ export interface ZodObject<
1528
+ /** @ts-ignore Cast variance */
1529
+ out Shape extends core.$ZodShape = core.$ZodLooseShape,
1530
+ out Config extends core.$ZodObjectConfig = core.$strip,
1531
+ > extends _ZodType<core.$ZodObjectInternals<Shape, Config>>,
1532
+ core.$ZodObject<Shape, Config> {
1533
+ "~standard": ZodStandardSchemaWithJSON<this>;
1534
+ shape: Shape;
1535
+
1536
+ keyof(): ZodEnum<util.ToEnum<keyof Shape & string>>;
1537
+ /** Define a schema to validate all unrecognized keys. This overrides the existing strict/loose behavior. */
1538
+ catchall<T extends core.SomeType>(schema: T): ZodObject<Shape, core.$catchall<T>>;
1539
+
1540
+ /** @deprecated Use `z.looseObject()` or `.loose()` instead. */
1541
+ passthrough(): ZodObject<Shape, core.$loose>;
1542
+ /** Consider `z.looseObject(A.shape)` instead */
1543
+ loose(): ZodObject<Shape, core.$loose>;
1544
+
1545
+ /** Consider `z.strictObject(A.shape)` instead */
1546
+ strict(): ZodObject<Shape, core.$strict>;
1547
+
1548
+ /** This is the default behavior. This method call is likely unnecessary. */
1549
+ strip(): ZodObject<Shape, core.$strip>;
1550
+
1551
+ extend<U extends core.$ZodLooseShape>(shape: U): ZodObject<util.Extend<Shape, util.Writeable<U>>, Config>;
1552
+
1553
+ safeExtend<U extends core.$ZodLooseShape>(
1554
+ shape: SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, core.SomeType>>
1555
+ ): ZodObject<util.Extend<Shape, util.Writeable<U>>, Config>;
1556
+
1557
+ /**
1558
+ * @deprecated Use [`A.extend(B.shape)`](https://zod.dev/api?id=extend) instead.
1559
+ */
1560
+ merge<U extends ZodObject>(other: U): ZodObject<util.Extend<Shape, U["shape"]>, U["_zod"]["config"]>;
1561
+
1562
+ pick<M extends util.Mask<keyof Shape>>(
1563
+ mask: M & Record<Exclude<keyof M, keyof Shape>, never>
1564
+ ): ZodObject<util.Flatten<Pick<Shape, Extract<keyof Shape, keyof M>>>, Config>;
1565
+
1566
+ omit<M extends util.Mask<keyof Shape>>(
1567
+ mask: M & Record<Exclude<keyof M, keyof Shape>, never>
1568
+ ): ZodObject<util.Flatten<Omit<Shape, Extract<keyof Shape, keyof M>>>, Config>;
1569
+
1570
+ partial(): ZodObject<
1571
+ {
1572
+ -readonly [k in keyof Shape]: ZodOptional<Shape[k]>;
1573
+ },
1574
+ Config
1575
+ >;
1576
+ partial<M extends util.Mask<keyof Shape>>(
1577
+ mask: M & Record<Exclude<keyof M, keyof Shape>, never>
1578
+ ): ZodObject<
1579
+ {
1580
+ -readonly [k in keyof Shape]: k extends keyof M
1581
+ ? // Shape[k] extends OptionalInSchema
1582
+ // ? Shape[k]
1583
+ // :
1584
+ ZodOptional<Shape[k]>
1585
+ : Shape[k];
1586
+ },
1587
+ Config
1588
+ >;
1589
+
1590
+ // exactPartial
1591
+ exactPartial(): ZodObject<
1592
+ {
1593
+ -readonly [k in keyof Shape]: ZodExactOptional<Shape[k]>;
1594
+ },
1595
+ Config
1596
+ >;
1597
+ exactPartial<M extends util.Mask<keyof Shape>>(
1598
+ mask: M & Record<Exclude<keyof M, keyof Shape>, never>
1599
+ ): ZodObject<
1600
+ {
1601
+ -readonly [k in keyof Shape]: k extends keyof M ? ZodExactOptional<Shape[k]> : Shape[k];
1602
+ },
1603
+ Config
1604
+ >;
1605
+
1606
+ // required
1607
+ required(): ZodObject<
1608
+ {
1609
+ -readonly [k in keyof Shape]: ZodNonOptional<Shape[k]>;
1610
+ },
1611
+ Config
1612
+ >;
1613
+ required<M extends util.Mask<keyof Shape>>(
1614
+ mask: M & Record<Exclude<keyof M, keyof Shape>, never>
1615
+ ): ZodObject<
1616
+ {
1617
+ -readonly [k in keyof Shape]: k extends keyof M ? ZodNonOptional<Shape[k]> : Shape[k];
1618
+ },
1619
+ Config
1620
+ >;
1621
+ }
1622
+
1623
+ export const ZodObject: core.$constructor<ZodObject> = /*@__PURE__*/ core.$constructor<ZodObject>(
1624
+ "ZodObject",
1625
+ (inst, def) => {
1626
+ _ensureDefaultMemoizer();
1627
+ core.$ZodObjectJIT.init(inst, def);
1628
+ ZodType.init(inst, def);
1629
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.objectProcessor(inst, ctx, json, params);
1630
+
1631
+ util.installLazyProp(inst, "shape", (self) => self._zod.def.shape, false);
1632
+ },
1633
+ {
1634
+ keyof() {
1635
+ return _enum(Object.keys(this._zod.def.shape));
1636
+ },
1637
+ catchall(catchall) {
1638
+ return this.clone({ ...this._zod.def, catchall: catchall as any });
1639
+ },
1640
+ passthrough() {
1641
+ return this.clone({ ...this._zod.def, catchall: unknown() });
1642
+ },
1643
+ loose() {
1644
+ return this.clone({ ...this._zod.def, catchall: unknown() });
1645
+ },
1646
+ strict() {
1647
+ return this.clone({ ...this._zod.def, catchall: never() });
1648
+ },
1649
+ strip() {
1650
+ return this.clone({ ...this._zod.def, catchall: undefined });
1651
+ },
1652
+ extend(incoming) {
1653
+ return util.extend(this, incoming);
1654
+ },
1655
+ safeExtend(incoming) {
1656
+ return util.safeExtend(this, incoming);
1657
+ },
1658
+ merge(other) {
1659
+ return util.merge(this, other);
1660
+ },
1661
+ pick(mask) {
1662
+ return util.pick(this, mask);
1663
+ },
1664
+ omit(mask) {
1665
+ return util.omit(this, mask);
1666
+ },
1667
+ partial(...args) {
1668
+ return util.partial(ZodOptional, this, args[0]);
1669
+ },
1670
+ exactPartial(...args) {
1671
+ return util.partial(ZodExactOptional, this, args[0], "exactPartial");
1672
+ },
1673
+ required(...args) {
1674
+ return util.required(ZodNonOptional, this, args[0]);
1675
+ },
1676
+ }
1677
+ );
1678
+
1679
+ export function object<T extends core.$ZodLooseShape = Partial<Record<never, core.SomeType>>>(
1680
+ shape?: T,
1681
+ params?: string | core.$ZodObjectParams
1682
+ ): ZodObject<util.Writeable<T>, core.$strip> {
1683
+ const def: core.$ZodObjectDef = {
1684
+ type: "object",
1685
+ shape: shape ?? {},
1686
+ ...util.normalizeParams(params),
1687
+ };
1688
+ return new ZodObject(def) as any;
1689
+ }
1690
+
1691
+ // strictObject
1692
+
1693
+ export function strictObject<T extends core.$ZodLooseShape>(
1694
+ shape: T,
1695
+ params?: string | core.$ZodObjectParams
1696
+ ): ZodObject<util.Writeable<T>, core.$strict> {
1697
+ return new ZodObject({
1698
+ type: "object",
1699
+ shape,
1700
+ catchall: never(),
1701
+ ...util.normalizeParams(params),
1702
+ }) as any;
1703
+ }
1704
+
1705
+ // looseObject
1706
+
1707
+ export function looseObject<T extends core.$ZodLooseShape>(
1708
+ shape: T,
1709
+ params?: string | core.$ZodObjectParams
1710
+ ): ZodObject<util.Writeable<T>, core.$loose> {
1711
+ return new ZodObject({
1712
+ type: "object",
1713
+ shape,
1714
+ catchall: unknown(),
1715
+ ...util.normalizeParams(params),
1716
+ }) as any;
1717
+ }
1718
+
1719
+ // ZodUnion
1720
+ export interface ZodUnion<T extends readonly core.SomeType[] = readonly core.$ZodType[]>
1721
+ extends _ZodType<core.$ZodUnionInternals<T>>,
1722
+ core.$ZodUnion<T> {
1723
+ "~standard": ZodStandardSchemaWithJSON<this>;
1724
+ options: T;
1725
+ }
1726
+ export const ZodUnion: core.$constructor<ZodUnion> = /*@__PURE__*/ core.$constructor("ZodUnion", (inst, def) => {
1727
+ core.$ZodUnion.init(inst, def);
1728
+ ZodType.init(inst, def);
1729
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.unionProcessor(inst, ctx, json, params);
1730
+ inst.options = def.options;
1731
+ });
1732
+
1733
+ export function union<const T extends readonly core.SomeType[]>(
1734
+ options: T,
1735
+ params?: string | core.$ZodUnionParams
1736
+ ): ZodUnion<T> {
1737
+ return new ZodUnion({
1738
+ type: "union",
1739
+ options: options as any as core.$ZodType[],
1740
+ ...util.normalizeParams(params),
1741
+ }) as any;
1742
+ }
1743
+
1744
+ // ZodXor
1745
+ export interface ZodXor<T extends readonly core.SomeType[] = readonly core.$ZodType[]>
1746
+ extends _ZodType<core.$ZodXorInternals<T>>,
1747
+ core.$ZodXor<T> {
1748
+ "~standard": ZodStandardSchemaWithJSON<this>;
1749
+ options: T;
1750
+ }
1751
+ export const ZodXor: core.$constructor<ZodXor> = /*@__PURE__*/ core.$constructor("ZodXor", (inst, def) => {
1752
+ ZodUnion.init(inst, def);
1753
+ core.$ZodXor.init(inst, def);
1754
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.unionProcessor(inst, ctx, json, params);
1755
+ inst.options = def.options;
1756
+ });
1757
+
1758
+ /** Creates an exclusive union (XOR) where exactly one option must match.
1759
+ * Unlike regular unions that succeed when any option matches, xor fails if
1760
+ * zero or more than one option matches the input. */
1761
+ export function xor<const T extends readonly core.SomeType[]>(
1762
+ options: T,
1763
+ params?: string | core.$ZodXorParams
1764
+ ): ZodXor<T> {
1765
+ return new ZodXor({
1766
+ type: "union",
1767
+ options: options as any as core.$ZodType[],
1768
+ inclusive: false,
1769
+ ...util.normalizeParams(params),
1770
+ }) as any;
1771
+ }
1772
+
1773
+ // ZodDiscriminatedUnion
1774
+ export interface ZodDiscriminatedUnion<
1775
+ Options extends readonly core.SomeType[] = readonly core.$ZodType[],
1776
+ Disc extends string = string,
1777
+ > extends ZodUnion<Options>,
1778
+ core.$ZodDiscriminatedUnion<Options, Disc> {
1779
+ "~standard": ZodStandardSchemaWithJSON<this>;
1780
+ _zod: core.$ZodDiscriminatedUnionInternals<Options, Disc>;
1781
+ def: core.$ZodDiscriminatedUnionDef<Options, Disc>;
1782
+ }
1783
+ export const ZodDiscriminatedUnion: core.$constructor<ZodDiscriminatedUnion> = /*@__PURE__*/ core.$constructor(
1784
+ "ZodDiscriminatedUnion",
1785
+ (inst, def) => {
1786
+ ZodUnion.init(inst, def);
1787
+ core.$ZodDiscriminatedUnion.init(inst, def);
1788
+ }
1789
+ );
1790
+
1791
+ export function discriminatedUnion<
1792
+ Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]],
1793
+ Disc extends string,
1794
+ >(
1795
+ discriminator: Disc,
1796
+ options: Types,
1797
+ params?: string | core.$ZodDiscriminatedUnionParams
1798
+ ): ZodDiscriminatedUnion<Types, Disc> {
1799
+ // const [options, params] = args;
1800
+ return new ZodDiscriminatedUnion({
1801
+ type: "union",
1802
+ options: options as any as core.$ZodType[],
1803
+ discriminator,
1804
+ ...util.normalizeParams(params),
1805
+ }) as any;
1806
+ }
1807
+
1808
+ // ZodIntersection
1809
+ export interface ZodIntersection<A extends core.SomeType = core.$ZodType, B extends core.SomeType = core.$ZodType>
1810
+ extends _ZodType<core.$ZodIntersectionInternals<A, B>>,
1811
+ core.$ZodIntersection<A, B> {
1812
+ "~standard": ZodStandardSchemaWithJSON<this>;
1813
+ }
1814
+ export const ZodIntersection: core.$constructor<ZodIntersection> = /*@__PURE__*/ core.$constructor(
1815
+ "ZodIntersection",
1816
+ (inst, def) => {
1817
+ core.$ZodIntersection.init(inst, def);
1818
+ ZodType.init(inst, def);
1819
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.intersectionProcessor(inst, ctx, json, params);
1820
+ }
1821
+ );
1822
+
1823
+ export function intersection<T extends core.SomeType, U extends core.SomeType>(
1824
+ left: T,
1825
+ right: U
1826
+ ): ZodIntersection<T, U> {
1827
+ return new ZodIntersection({
1828
+ type: "intersection",
1829
+ left: left as any as core.$ZodType,
1830
+ right: right as any as core.$ZodType,
1831
+ }) as any;
1832
+ }
1833
+
1834
+ // ZodTuple
1835
+ export interface ZodTuple<
1836
+ T extends util.TupleItems = readonly core.$ZodType[],
1837
+ Rest extends core.SomeType | null = core.$ZodType | null,
1838
+ > extends _ZodType<core.$ZodTupleInternals<T, Rest>>,
1839
+ core.$ZodTuple<T, Rest> {
1840
+ "~standard": ZodStandardSchemaWithJSON<this>;
1841
+ rest<Rest extends core.SomeType = core.$ZodType>(rest: Rest): ZodTuple<T, Rest>;
1842
+ partial(): ZodTuple<{ -readonly [k in keyof T]: ZodOptional<T[k]> }, Rest>;
1843
+ }
1844
+ export const ZodTuple: core.$constructor<ZodTuple> = /*@__PURE__*/ core.$constructor<ZodTuple>(
1845
+ "ZodTuple",
1846
+ (inst, def) => {
1847
+ _ensureDefaultMemoizer();
1848
+ core.$ZodTuple.init(inst, def);
1849
+ ZodType.init(inst, def);
1850
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.tupleProcessor(inst, ctx, json, params);
1851
+ },
1852
+ {
1853
+ rest(rest) {
1854
+ return this.clone({
1855
+ ...this._zod.def,
1856
+ rest: rest as any as core.$ZodType,
1857
+ }) as any;
1858
+ },
1859
+ partial() {
1860
+ const def = this._zod.def;
1861
+ // a refinement was authored against the full arity; partialing would run it on a shorter array
1862
+ if (def.checks?.length) throw new Error(".partial() cannot be used on tuple schemas containing refinements");
1863
+ return this.clone({
1864
+ ...def,
1865
+ items: def.items.map((item) => new ZodOptional({ type: "optional", innerType: item })),
1866
+ }) as any;
1867
+ },
1868
+ }
1869
+ );
1870
+
1871
+ export function tuple<T extends readonly [core.SomeType, ...core.SomeType[]]>(
1872
+ items: T,
1873
+ params?: string | core.$ZodTupleParams
1874
+ ): ZodTuple<T, null>;
1875
+ export function tuple<T extends readonly [core.SomeType, ...core.SomeType[]], Rest extends core.SomeType>(
1876
+ items: T,
1877
+ rest: Rest,
1878
+ params?: string | core.$ZodTupleParams
1879
+ ): ZodTuple<T, Rest>;
1880
+ export function tuple(items: [], params?: string | core.$ZodTupleParams): ZodTuple<[], null>;
1881
+ export function tuple(
1882
+ items: core.SomeType[],
1883
+ _paramsOrRest?: string | core.$ZodTupleParams | core.SomeType,
1884
+ _params?: string | core.$ZodTupleParams
1885
+ ) {
1886
+ const hasRest = _paramsOrRest instanceof core.$ZodType;
1887
+ const params = hasRest ? _params : _paramsOrRest;
1888
+ const rest = hasRest ? _paramsOrRest : null;
1889
+ return new ZodTuple({
1890
+ type: "tuple",
1891
+ items: items as any as core.$ZodType[],
1892
+ rest,
1893
+ ...util.normalizeParams(params),
1894
+ });
1895
+ }
1896
+
1897
+ // ZodRecord
1898
+ export interface ZodRecord<
1899
+ Key extends core.$ZodRecordKey = core.$ZodRecordKey,
1900
+ Value extends core.SomeType = core.$ZodType,
1901
+ > extends _ZodType<core.$ZodRecordInternals<Key, Value>>,
1902
+ core.$ZodRecord<Key, Value> {
1903
+ "~standard": ZodStandardSchemaWithJSON<this>;
1904
+ keyType: Key;
1905
+ valueType: Value;
1906
+ }
1907
+ export const ZodRecord: core.$constructor<ZodRecord> = /*@__PURE__*/ core.$constructor("ZodRecord", (inst, def) => {
1908
+ _ensureDefaultMemoizer();
1909
+ core.$ZodRecord.init(inst, def);
1910
+ ZodType.init(inst, def);
1911
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.recordProcessor(inst, ctx, json, params);
1912
+
1913
+ inst.keyType = def.keyType;
1914
+ inst.valueType = def.valueType;
1915
+ });
1916
+
1917
+ export function record<Key extends core.$ZodRecordKey, Value extends core.SomeType>(
1918
+ keyType: Key,
1919
+ valueType: Value,
1920
+ params?: string | core.$ZodRecordParams
1921
+ ): ZodRecord<Key, Value> {
1922
+ // v3-compat: z.record(valueType, params?) — defaults keyType to z.string()
1923
+ if (!valueType || !(valueType as any)._zod) {
1924
+ return new ZodRecord({
1925
+ type: "record",
1926
+ keyType: string() as any,
1927
+ valueType: keyType as any as core.$ZodType,
1928
+ ...util.normalizeParams(valueType as string | core.$ZodRecordParams | undefined),
1929
+ }) as any;
1930
+ }
1931
+ return new ZodRecord({
1932
+ type: "record",
1933
+ keyType,
1934
+ valueType: valueType as any as core.$ZodType,
1935
+ ...util.normalizeParams(params),
1936
+ }) as any;
1937
+ }
1938
+ // type alksjf = core.output<core.$ZodRecordKey>;
1939
+ export function partialRecord<Key extends core.$ZodRecordKey, Value extends core.SomeType>(
1940
+ keyType: Key,
1941
+ valueType: Value,
1942
+ params?: string | core.$ZodRecordParams
1943
+ ): ZodRecord<Key & core.$partial, Value> {
1944
+ return new ZodRecord({
1945
+ type: "record",
1946
+ keyType,
1947
+ valueType: valueType as any,
1948
+ ...util.normalizeParams(params),
1949
+ partial: true,
1950
+ }) as any;
1951
+ }
1952
+
1953
+ export function looseRecord<Key extends core.$ZodRecordKey, Value extends core.SomeType>(
1954
+ keyType: Key,
1955
+ valueType: Value,
1956
+ params?: string | core.$ZodRecordParams
1957
+ ): ZodRecord<Key, Value> {
1958
+ return new ZodRecord({
1959
+ type: "record",
1960
+ keyType,
1961
+ valueType: valueType as any as core.$ZodType,
1962
+ mode: "loose",
1963
+ ...util.normalizeParams(params),
1964
+ }) as any;
1965
+ }
1966
+
1967
+ // ZodMap
1968
+ export interface ZodMap<Key extends core.SomeType = core.$ZodType, Value extends core.SomeType = core.$ZodType>
1969
+ extends _ZodType<core.$ZodMapInternals<Key, Value>>,
1970
+ core.$ZodMap<Key, Value> {
1971
+ "~standard": ZodStandardSchemaWithJSON<this>;
1972
+ keyType: Key;
1973
+ valueType: Value;
1974
+ min(minSize: number, params?: string | core.$ZodCheckMinSizeParams): this;
1975
+ nonempty(params?: string | core.$ZodCheckMinSizeParams): this;
1976
+ max(maxSize: number, params?: string | core.$ZodCheckMaxSizeParams): this;
1977
+ size(size: number, params?: string | core.$ZodCheckSizeEqualsParams): this;
1978
+ }
1979
+ export const ZodMap: core.$constructor<ZodMap> = /*@__PURE__*/ core.$constructor("ZodMap", (inst, def) => {
1980
+ _ensureDefaultMemoizer();
1981
+ core.$ZodMap.init(inst, def);
1982
+ ZodType.init(inst, def);
1983
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.mapProcessor(inst, ctx, json, params);
1984
+ inst.keyType = def.keyType;
1985
+ inst.valueType = def.valueType;
1986
+ inst.min = (...args) => inst.check(core._minSize(...args));
1987
+ inst.nonempty = (params) => inst.check(core._minSize(1, params));
1988
+ inst.max = (...args) => inst.check(core._maxSize(...args));
1989
+ inst.size = (...args) => inst.check(core._size(...args));
1990
+ });
1991
+
1992
+ export function map<Key extends core.SomeType, Value extends core.SomeType>(
1993
+ keyType: Key,
1994
+ valueType: Value,
1995
+ params?: string | core.$ZodMapParams
1996
+ ): ZodMap<Key, Value> {
1997
+ return new ZodMap({
1998
+ type: "map",
1999
+ keyType: keyType as any as core.$ZodType,
2000
+ valueType: valueType as any as core.$ZodType,
2001
+ ...util.normalizeParams(params),
2002
+ }) as any;
2003
+ }
2004
+
2005
+ // ZodSet
2006
+ export interface ZodSet<T extends core.SomeType = core.$ZodType>
2007
+ extends _ZodType<core.$ZodSetInternals<T>>,
2008
+ core.$ZodSet<T> {
2009
+ "~standard": ZodStandardSchemaWithJSON<this>;
2010
+ min(minSize: number, params?: string | core.$ZodCheckMinSizeParams): this;
2011
+ nonempty(params?: string | core.$ZodCheckMinSizeParams): this;
2012
+ max(maxSize: number, params?: string | core.$ZodCheckMaxSizeParams): this;
2013
+ size(size: number, params?: string | core.$ZodCheckSizeEqualsParams): this;
2014
+ }
2015
+ export const ZodSet: core.$constructor<ZodSet> = /*@__PURE__*/ core.$constructor("ZodSet", (inst, def) => {
2016
+ _ensureDefaultMemoizer();
2017
+ core.$ZodSet.init(inst, def);
2018
+ ZodType.init(inst, def);
2019
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.setProcessor(inst, ctx, json, params);
2020
+
2021
+ inst.min = (...args) => inst.check(core._minSize(...args));
2022
+ inst.nonempty = (params) => inst.check(core._minSize(1, params));
2023
+ inst.max = (...args) => inst.check(core._maxSize(...args));
2024
+ inst.size = (...args) => inst.check(core._size(...args));
2025
+ });
2026
+
2027
+ export function set<Value extends core.SomeType>(
2028
+ valueType: Value,
2029
+ params?: string | core.$ZodSetParams
2030
+ ): ZodSet<Value> {
2031
+ return new ZodSet({
2032
+ type: "set",
2033
+ valueType: valueType as any as core.$ZodType,
2034
+ ...util.normalizeParams(params),
2035
+ }) as any;
2036
+ }
2037
+
2038
+ // ZodEnum
2039
+ export interface ZodEnum<
2040
+ /** @ts-ignore Cast variance */
2041
+ out T extends util.EnumLike = util.EnumLike,
2042
+ > extends _ZodType<core.$ZodEnumInternals<T>>,
2043
+ core.$ZodEnum<T> {
2044
+ "~standard": ZodStandardSchemaWithJSON<this>;
2045
+ enum: T;
2046
+ options: Array<T[keyof T]>;
2047
+
2048
+ extract<const U extends readonly (keyof T)[]>(
2049
+ values: U,
2050
+ params?: string | core.$ZodEnumParams
2051
+ ): ZodEnum<util.Flatten<Pick<T, U[number]>>>;
2052
+ exclude<const U extends readonly (keyof T)[]>(
2053
+ values: U,
2054
+ params?: string | core.$ZodEnumParams
2055
+ ): ZodEnum<util.Flatten<Omit<T, U[number]>>>;
2056
+ }
2057
+ export const ZodEnum: core.$constructor<ZodEnum> = /*@__PURE__*/ core.$constructor("ZodEnum", (inst, def) => {
2058
+ core.$ZodEnum.init(inst, def);
2059
+ ZodType.init(inst, def);
2060
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.enumProcessor(inst, ctx, json, params);
2061
+
2062
+ inst.enum = def.entries;
2063
+ inst.options = Object.values(def.entries);
2064
+
2065
+ const keys = new Set(Object.keys(def.entries));
2066
+
2067
+ inst.extract = (values, params) => {
2068
+ const newEntries: Record<string, any> = {};
2069
+ for (const value of values) {
2070
+ if (keys.has(value)) {
2071
+ newEntries[value] = def.entries[value];
2072
+ } else throw new Error(`Key ${value} not found in enum`);
2073
+ }
2074
+ return new ZodEnum({
2075
+ ...def,
2076
+ checks: [],
2077
+ ...util.normalizeParams(params),
2078
+ entries: newEntries,
2079
+ }) as any;
2080
+ };
2081
+
2082
+ inst.exclude = (values, params) => {
2083
+ const newEntries: Record<string, any> = { ...def.entries };
2084
+ for (const value of values) {
2085
+ if (keys.has(value)) {
2086
+ delete newEntries[value];
2087
+ } else throw new Error(`Key ${value} not found in enum`);
2088
+ }
2089
+ return new ZodEnum({
2090
+ ...def,
2091
+ checks: [],
2092
+ ...util.normalizeParams(params),
2093
+ entries: newEntries,
2094
+ }) as any;
2095
+ };
2096
+ });
2097
+
2098
+ function _enum<const T extends readonly string[]>(
2099
+ values: T,
2100
+ params?: string | core.$ZodEnumParams
2101
+ ): ZodEnum<util.ToEnum<T[number]>>;
2102
+ function _enum<const T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodEnum<T>;
2103
+ function _enum(values: any, params?: string | core.$ZodEnumParams) {
2104
+ const entries: any = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
2105
+
2106
+ return new ZodEnum({
2107
+ type: "enum",
2108
+ entries,
2109
+ ...util.normalizeParams(params),
2110
+ }) as any;
2111
+ }
2112
+ export { _enum as enum };
2113
+
2114
+ /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
2115
+ *
2116
+ * ```ts
2117
+ * enum Colors { red, green, blue }
2118
+ * z.enum(Colors);
2119
+ * ```
2120
+ */
2121
+ export function nativeEnum<T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodEnum<T> {
2122
+ return new ZodEnum({
2123
+ type: "enum",
2124
+ entries,
2125
+ ...util.normalizeParams(params),
2126
+ }) as ZodEnum<T>;
2127
+ }
2128
+
2129
+ // ZodLiteral
2130
+ export interface ZodLiteral<T extends util.Literal = util.Literal>
2131
+ extends _ZodType<core.$ZodLiteralInternals<T>>,
2132
+ core.$ZodLiteral<T> {
2133
+ "~standard": ZodStandardSchemaWithJSON<this>;
2134
+ values: Set<T>;
2135
+ /** @legacy Use `.values` instead. Accessing this property will throw an error if the literal accepts multiple values. */
2136
+ value: T;
2137
+ }
2138
+ export const ZodLiteral: core.$constructor<ZodLiteral> = /*@__PURE__*/ core.$constructor("ZodLiteral", (inst, def) => {
2139
+ core.$ZodLiteral.init(inst, def);
2140
+ ZodType.init(inst, def);
2141
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.literalProcessor(inst, ctx, json, params);
2142
+ inst.values = new Set(def.values);
2143
+ Object.defineProperty(inst, "value", {
2144
+ get() {
2145
+ if (def.values.length > 1) {
2146
+ throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
2147
+ }
2148
+ return def.values[0];
2149
+ },
2150
+ });
2151
+ });
2152
+
2153
+ export function literal<const T extends ReadonlyArray<util.Literal>>(
2154
+ value: T,
2155
+ params?: string | core.$ZodLiteralParams
2156
+ ): ZodLiteral<T[number]>;
2157
+ export function literal<const T extends util.Literal>(
2158
+ value: T,
2159
+ params?: string | core.$ZodLiteralParams
2160
+ ): ZodLiteral<T>;
2161
+ export function literal(value: any, params: any) {
2162
+ return new ZodLiteral({
2163
+ type: "literal",
2164
+ values: Array.isArray(value) ? value : [value],
2165
+ ...util.normalizeParams(params),
2166
+ });
2167
+ }
2168
+
2169
+ // ZodFile
2170
+ export interface ZodFile extends _ZodType<core.$ZodFileInternals>, core.$ZodFile {
2171
+ "~standard": ZodStandardSchemaWithJSON<this>;
2172
+ min(size: number, params?: string | core.$ZodCheckMinSizeParams): this;
2173
+ max(size: number, params?: string | core.$ZodCheckMaxSizeParams): this;
2174
+ mime(types: util.MimeTypes | Array<util.MimeTypes>, params?: string | core.$ZodCheckMimeTypeParams): this;
2175
+ }
2176
+ export const ZodFile: core.$constructor<ZodFile> = /*@__PURE__*/ core.$constructor("ZodFile", (inst, def) => {
2177
+ core.$ZodFile.init(inst, def);
2178
+ ZodType.init(inst, def);
2179
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.fileProcessor(inst, ctx, json, params);
2180
+
2181
+ inst.min = (size, params) => inst.check(core._minSize(size, params));
2182
+ inst.max = (size, params) => inst.check(core._maxSize(size, params));
2183
+ inst.mime = (types, params) => inst.check(core._mime(Array.isArray(types) ? types : [types], params));
2184
+ });
2185
+
2186
+ export function file(params?: string | core.$ZodFileParams): ZodFile {
2187
+ return core._file(ZodFile, params) as any;
2188
+ }
2189
+
2190
+ // ZodTransform
2191
+ export interface ZodTransform<O = unknown, I = unknown>
2192
+ extends _ZodType<core.$ZodTransformInternals<O, I>>,
2193
+ core.$ZodTransform<O, I> {
2194
+ "~standard": ZodStandardSchemaWithJSON<this>;
2195
+ }
2196
+ export const ZodTransform: core.$constructor<ZodTransform> = /*@__PURE__*/ core.$constructor(
2197
+ "ZodTransform",
2198
+ (inst, def) => {
2199
+ _ensureDefaultMemoizer();
2200
+ core.$ZodTransform.init(inst, def);
2201
+ ZodType.init(inst, def);
2202
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.transformProcessor(inst, ctx, json, params);
2203
+
2204
+ inst._zod.parse = (payload, _ctx) => {
2205
+ if (_ctx.direction === "backward") {
2206
+ throw new core.$ZodEncodeError(inst.constructor.name);
2207
+ }
2208
+
2209
+ (payload as core.$RefinementCtx).addIssue = (issue) => {
2210
+ if (typeof issue === "string") {
2211
+ payload.issues.push(util.issue(issue, payload.value, def));
2212
+ } else {
2213
+ // for Zod 3 backwards compatibility
2214
+ const _issue = issue as any;
2215
+
2216
+ if (_issue.fatal) _issue.continue = false;
2217
+ _issue.code ??= "custom";
2218
+ if (!("input" in _issue)) _issue.input = payload.value;
2219
+ _issue.inst ??= inst;
2220
+ // _issue.continue ??= true;
2221
+ payload.issues.push(util.issue(_issue));
2222
+ }
2223
+ };
2224
+
2225
+ const output = def.transform(payload.value, payload);
2226
+ if (output instanceof Promise) {
2227
+ return output.then((output) => {
2228
+ payload.value = output;
2229
+ return payload;
2230
+ });
2231
+ }
2232
+ payload.value = output;
2233
+ return payload;
2234
+ };
2235
+ }
2236
+ );
2237
+
2238
+ export function transform<I = unknown, O = I>(
2239
+ fn: (input: I, ctx: core.$RefinementCtx) => O
2240
+ ): ZodTransform<Awaited<O>, I> {
2241
+ return new ZodTransform({
2242
+ type: "transform",
2243
+ transform: fn as any,
2244
+ }) as any;
2245
+ }
2246
+
2247
+ // ZodOptional
2248
+ export interface ZodOptional<T extends core.SomeType = core.$ZodType>
2249
+ extends _ZodType<core.$ZodOptionalInternals<T>>,
2250
+ core.$ZodOptional<T> {
2251
+ "~standard": ZodStandardSchemaWithJSON<this>;
2252
+ unwrap(): T;
2253
+ }
2254
+ export const ZodOptional: core.$constructor<ZodOptional> = /*@__PURE__*/ core.$constructor(
2255
+ "ZodOptional",
2256
+ (inst, def) => {
2257
+ core.$ZodOptional.init(inst, def);
2258
+ ZodType.init(inst, def);
2259
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.optionalProcessor(inst, ctx, json, params);
2260
+
2261
+ inst.unwrap = () => inst._zod.def.innerType;
2262
+ }
2263
+ );
2264
+
2265
+ export function optional<T extends core.SomeType>(innerType: T): ZodOptional<T> {
2266
+ return new ZodOptional({
2267
+ type: "optional",
2268
+ innerType: innerType as any as core.$ZodType,
2269
+ }) as any;
2270
+ }
2271
+
2272
+ // ZodExactOptional
2273
+ export interface ZodExactOptional<T extends core.SomeType = core.$ZodType>
2274
+ extends _ZodType<core.$ZodExactOptionalInternals<T>>,
2275
+ core.$ZodExactOptional<T> {
2276
+ "~standard": ZodStandardSchemaWithJSON<this>;
2277
+ unwrap(): T;
2278
+ }
2279
+ export const ZodExactOptional: core.$constructor<ZodExactOptional> = /*@__PURE__*/ core.$constructor(
2280
+ "ZodExactOptional",
2281
+ (inst, def) => {
2282
+ core.$ZodExactOptional.init(inst, def);
2283
+ ZodType.init(inst, def);
2284
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.optionalProcessor(inst, ctx, json, params);
2285
+
2286
+ inst.unwrap = () => inst._zod.def.innerType;
2287
+ }
2288
+ );
2289
+
2290
+ export function exactOptional<T extends core.SomeType>(innerType: T): ZodExactOptional<T> {
2291
+ return new ZodExactOptional({
2292
+ type: "optional",
2293
+ innerType: innerType as any as core.$ZodType,
2294
+ }) as any;
2295
+ }
2296
+
2297
+ // ZodNullable
2298
+ export interface ZodNullable<T extends core.SomeType = core.$ZodType>
2299
+ extends _ZodType<core.$ZodNullableInternals<T>>,
2300
+ core.$ZodNullable<T> {
2301
+ "~standard": ZodStandardSchemaWithJSON<this>;
2302
+ unwrap(): T;
2303
+ }
2304
+ export const ZodNullable: core.$constructor<ZodNullable> = /*@__PURE__*/ core.$constructor(
2305
+ "ZodNullable",
2306
+ (inst, def) => {
2307
+ core.$ZodNullable.init(inst, def);
2308
+ ZodType.init(inst, def);
2309
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.nullableProcessor(inst, ctx, json, params);
2310
+
2311
+ inst.unwrap = () => inst._zod.def.innerType;
2312
+ }
2313
+ );
2314
+
2315
+ export function nullable<T extends core.SomeType>(innerType: T): ZodNullable<T> {
2316
+ return new ZodNullable({
2317
+ type: "nullable",
2318
+ innerType: innerType as any as core.$ZodType,
2319
+ }) as any;
2320
+ }
2321
+
2322
+ // nullish
2323
+ export function nullish<T extends core.SomeType>(innerType: T): ZodOptional<ZodNullable<T>> {
2324
+ return optional(nullable(innerType));
2325
+ }
2326
+
2327
+ // ZodDefault
2328
+ export interface ZodDefault<T extends core.SomeType = core.$ZodType>
2329
+ extends _ZodType<core.$ZodDefaultInternals<T>>,
2330
+ core.$ZodDefault<T> {
2331
+ "~standard": ZodStandardSchemaWithJSON<this>;
2332
+ unwrap(): T;
2333
+ /** @deprecated Use `.unwrap()` instead. */
2334
+ removeDefault(): T;
2335
+ }
2336
+ export const ZodDefault: core.$constructor<ZodDefault> = /*@__PURE__*/ core.$constructor("ZodDefault", (inst, def) => {
2337
+ core.$ZodDefault.init(inst, def);
2338
+ ZodType.init(inst, def);
2339
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.defaultProcessor(inst, ctx, json, params);
2340
+
2341
+ inst.unwrap = () => inst._zod.def.innerType;
2342
+ inst.removeDefault = inst.unwrap;
2343
+ });
2344
+
2345
+ export function _default<T extends core.SomeType>(
2346
+ innerType: T,
2347
+ defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)
2348
+ ): ZodDefault<T> {
2349
+ return new ZodDefault({
2350
+ type: "default",
2351
+ innerType: innerType as any as core.$ZodType,
2352
+ get defaultValue() {
2353
+ return typeof defaultValue === "function" ? (defaultValue as Function)() : util.shallowClone(defaultValue);
2354
+ },
2355
+ }) as any;
2356
+ }
2357
+
2358
+ // ZodPrefault
2359
+ export interface ZodPrefault<T extends core.SomeType = core.$ZodType>
2360
+ extends _ZodType<core.$ZodPrefaultInternals<T>>,
2361
+ core.$ZodPrefault<T> {
2362
+ "~standard": ZodStandardSchemaWithJSON<this>;
2363
+ unwrap(): T;
2364
+ }
2365
+ export const ZodPrefault: core.$constructor<ZodPrefault> = /*@__PURE__*/ core.$constructor(
2366
+ "ZodPrefault",
2367
+ (inst, def) => {
2368
+ core.$ZodPrefault.init(inst, def);
2369
+ ZodType.init(inst, def);
2370
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.prefaultProcessor(inst, ctx, json, params);
2371
+ inst.unwrap = () => inst._zod.def.innerType;
2372
+ }
2373
+ );
2374
+
2375
+ export function prefault<T extends core.SomeType>(
2376
+ innerType: T,
2377
+ defaultValue: core.input<T> | (() => core.input<T>)
2378
+ ): ZodPrefault<T> {
2379
+ return new ZodPrefault({
2380
+ type: "prefault",
2381
+ innerType: innerType as any as core.$ZodType,
2382
+ get defaultValue() {
2383
+ return typeof defaultValue === "function" ? (defaultValue as Function)() : util.shallowClone(defaultValue);
2384
+ },
2385
+ }) as any;
2386
+ }
2387
+
2388
+ // ZodNonOptional
2389
+ export interface ZodNonOptional<T extends core.SomeType = core.$ZodType>
2390
+ extends _ZodType<core.$ZodNonOptionalInternals<T>>,
2391
+ core.$ZodNonOptional<T> {
2392
+ "~standard": ZodStandardSchemaWithJSON<this>;
2393
+ unwrap(): T;
2394
+ }
2395
+ export const ZodNonOptional: core.$constructor<ZodNonOptional> = /*@__PURE__*/ core.$constructor(
2396
+ "ZodNonOptional",
2397
+ (inst, def) => {
2398
+ core.$ZodNonOptional.init(inst, def);
2399
+ ZodType.init(inst, def);
2400
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.nonoptionalProcessor(inst, ctx, json, params);
2401
+
2402
+ inst.unwrap = () => inst._zod.def.innerType;
2403
+ }
2404
+ );
2405
+
2406
+ export function nonoptional<T extends core.SomeType>(
2407
+ innerType: T,
2408
+ params?: string | core.$ZodNonOptionalParams
2409
+ ): ZodNonOptional<T> {
2410
+ return new ZodNonOptional({
2411
+ type: "nonoptional",
2412
+ innerType: innerType as any as core.$ZodType,
2413
+ ...util.normalizeParams(params),
2414
+ }) as any;
2415
+ }
2416
+
2417
+ // ZodSuccess
2418
+ export interface ZodSuccess<T extends core.SomeType = core.$ZodType>
2419
+ extends _ZodType<core.$ZodSuccessInternals<T>>,
2420
+ core.$ZodSuccess<T> {
2421
+ "~standard": ZodStandardSchemaWithJSON<this>;
2422
+ unwrap(): T;
2423
+ }
2424
+ export const ZodSuccess: core.$constructor<ZodSuccess> = /*@__PURE__*/ core.$constructor("ZodSuccess", (inst, def) => {
2425
+ core.$ZodSuccess.init(inst, def);
2426
+ ZodType.init(inst, def);
2427
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.successProcessor(inst, ctx, json, params);
2428
+
2429
+ inst.unwrap = () => inst._zod.def.innerType;
2430
+ });
2431
+
2432
+ export function success<T extends core.SomeType>(innerType: T): ZodSuccess<T> {
2433
+ return new ZodSuccess({
2434
+ type: "success",
2435
+ innerType: innerType as any as core.$ZodType,
2436
+ }) as any;
2437
+ }
2438
+
2439
+ // ZodCatch
2440
+ export interface ZodCatch<T extends core.SomeType = core.$ZodType>
2441
+ extends _ZodType<core.$ZodCatchInternals<T>>,
2442
+ core.$ZodCatch<T> {
2443
+ "~standard": ZodStandardSchemaWithJSON<this>;
2444
+ unwrap(): T;
2445
+ /** @deprecated Use `.unwrap()` instead. */
2446
+ removeCatch(): T;
2447
+ }
2448
+ export const ZodCatch: core.$constructor<ZodCatch> = /*@__PURE__*/ core.$constructor("ZodCatch", (inst, def) => {
2449
+ core.$ZodCatch.init(inst, def);
2450
+ ZodType.init(inst, def);
2451
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.catchProcessor(inst, ctx, json, params);
2452
+
2453
+ inst.unwrap = () => inst._zod.def.innerType;
2454
+ inst.removeCatch = inst.unwrap;
2455
+ });
2456
+
2457
+ function _catch<T extends core.SomeType>(
2458
+ innerType: T,
2459
+ catchValue: core.output<T> | ((ctx: core.$ZodCatchCtx) => core.output<T>)
2460
+ ): ZodCatch<T> {
2461
+ return new ZodCatch({
2462
+ type: "catch",
2463
+ innerType: innerType as any as core.$ZodType,
2464
+ catchValue: (typeof catchValue === "function" ? catchValue : core.util.constantCatch(catchValue)) as (
2465
+ ctx: core.$ZodCatchCtx
2466
+ ) => core.output<T>,
2467
+ }) as any;
2468
+ }
2469
+ export { _catch as catch };
2470
+
2471
+ // ZodNaN
2472
+ export interface ZodNaN extends _ZodType<core.$ZodNaNInternals>, core.$ZodNaN {
2473
+ "~standard": ZodStandardSchemaWithJSON<this>;
2474
+ }
2475
+ export const ZodNaN: core.$constructor<ZodNaN> = /*@__PURE__*/ core.$constructor("ZodNaN", (inst, def) => {
2476
+ core.$ZodNaN.init(inst, def);
2477
+ ZodType.init(inst, def);
2478
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.nanProcessor(inst, ctx, json, params);
2479
+ });
2480
+
2481
+ export function nan(params?: string | core.$ZodNaNParams): ZodNaN {
2482
+ return core._nan(ZodNaN, params);
2483
+ }
2484
+
2485
+ // ZodPipe
2486
+ export interface ZodPipe<A extends core.SomeType = core.$ZodType, B extends core.SomeType = core.$ZodType>
2487
+ extends _ZodType<core.$ZodPipeInternals<A, B>>,
2488
+ core.$ZodPipe<A, B> {
2489
+ "~standard": ZodStandardSchemaWithJSON<this>;
2490
+ in: A;
2491
+ out: B;
2492
+ }
2493
+ export const ZodPipe: core.$constructor<ZodPipe> = /*@__PURE__*/ core.$constructor("ZodPipe", (inst, def) => {
2494
+ core.$ZodPipe.init(inst, def);
2495
+ ZodType.init(inst, def);
2496
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.pipeProcessor(inst, ctx, json, params);
2497
+
2498
+ inst.in = def.in;
2499
+ inst.out = def.out;
2500
+ });
2501
+
2502
+ export function pipe<
2503
+ const A extends core.SomeType,
2504
+ B extends core.$ZodType<unknown, core.output<A>> = core.$ZodType<unknown, core.output<A>>,
2505
+ >(in_: A, out: B | core.$ZodType<unknown, core.output<A>>): ZodPipe<A, B>;
2506
+ export function pipe(in_: core.SomeType, out: core.SomeType) {
2507
+ return new ZodPipe({
2508
+ type: "pipe",
2509
+ in: in_ as unknown as core.$ZodType,
2510
+ out: out as unknown as core.$ZodType,
2511
+ // ...util.normalizeParams(params),
2512
+ });
2513
+ }
2514
+
2515
+ // ZodCodec
2516
+ export interface ZodCodec<A extends core.SomeType = core.$ZodType, B extends core.SomeType = core.$ZodType>
2517
+ extends ZodPipe<A, B>,
2518
+ core.$ZodCodec<A, B> {
2519
+ "~standard": ZodStandardSchemaWithJSON<this>;
2520
+ _zod: core.$ZodCodecInternals<A, B>;
2521
+ def: core.$ZodCodecDef<A, B>;
2522
+ }
2523
+ export const ZodCodec: core.$constructor<ZodCodec> = /*@__PURE__*/ core.$constructor("ZodCodec", (inst, def) => {
2524
+ ZodPipe.init(inst, def);
2525
+ core.$ZodCodec.init(inst, def);
2526
+ });
2527
+
2528
+ export function codec<const A extends core.SomeType, B extends core.SomeType = core.$ZodType>(
2529
+ in_: A,
2530
+ out: B,
2531
+ params: {
2532
+ decode: (value: core.output<A>, payload: core.ParsePayload<core.output<A>>) => core.util.MaybeAsync<core.input<B>>;
2533
+ encode: (value: core.input<B>, payload: core.ParsePayload<core.input<B>>) => core.util.MaybeAsync<core.output<A>>;
2534
+ }
2535
+ ): ZodCodec<A, B> {
2536
+ return new ZodCodec({
2537
+ type: "pipe",
2538
+ in: in_ as any as core.$ZodType,
2539
+ out: out as any as core.$ZodType,
2540
+ transform: params.decode as any,
2541
+ reverseTransform: params.encode as any,
2542
+ }) as any;
2543
+ }
2544
+
2545
+ export function invertCodec<A extends core.SomeType, B extends core.SomeType>(codec: ZodCodec<A, B>): ZodCodec<B, A> {
2546
+ const def = codec._zod.def;
2547
+ return new ZodCodec({
2548
+ type: "pipe",
2549
+ in: def.out as any,
2550
+ out: def.in as any,
2551
+ transform: def.reverseTransform as any,
2552
+ reverseTransform: def.transform as any,
2553
+ }) as any;
2554
+ }
2555
+
2556
+ // ZodPreprocess
2557
+ export interface ZodPreprocess<B extends core.SomeType = core.$ZodType, I = unknown>
2558
+ extends ZodPipe<core.$ZodTransform<unknown, I>, B>,
2559
+ core.$ZodPreprocess<B, I> {
2560
+ "~standard": ZodStandardSchemaWithJSON<this>;
2561
+ _zod: core.$ZodPreprocessInternals<B, I>;
2562
+ def: core.$ZodPreprocessDef<B, I>;
2563
+ }
2564
+ export const ZodPreprocess: core.$constructor<ZodPreprocess> = /*@__PURE__*/ core.$constructor(
2565
+ "ZodPreprocess",
2566
+ (inst, def) => {
2567
+ ZodPipe.init(inst, def);
2568
+ core.$ZodPreprocess.init(inst, def);
2569
+ }
2570
+ );
2571
+
2572
+ // ZodReadonly
2573
+ export interface ZodReadonly<T extends core.SomeType = core.$ZodType>
2574
+ extends _ZodType<core.$ZodReadonlyInternals<T>>,
2575
+ core.$ZodReadonly<T> {
2576
+ "~standard": ZodStandardSchemaWithJSON<this>;
2577
+ unwrap(): T;
2578
+ }
2579
+ export const ZodReadonly: core.$constructor<ZodReadonly> = /*@__PURE__*/ core.$constructor(
2580
+ "ZodReadonly",
2581
+ (inst, def) => {
2582
+ core.$ZodReadonly.init(inst, def);
2583
+ ZodType.init(inst, def);
2584
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.readonlyProcessor(inst, ctx, json, params);
2585
+
2586
+ inst.unwrap = () => inst._zod.def.innerType;
2587
+ }
2588
+ );
2589
+
2590
+ export function readonly<T extends core.SomeType>(innerType: T): ZodReadonly<T> {
2591
+ return new ZodReadonly({
2592
+ type: "readonly",
2593
+ innerType: innerType as any as core.$ZodType,
2594
+ }) as any;
2595
+ }
2596
+
2597
+ // ZodTemplateLiteral
2598
+ export interface ZodTemplateLiteral<Template extends string = string>
2599
+ extends _ZodType<core.$ZodTemplateLiteralInternals<Template>>,
2600
+ core.$ZodTemplateLiteral<Template> {
2601
+ "~standard": ZodStandardSchemaWithJSON<this>;
2602
+ }
2603
+ export const ZodTemplateLiteral: core.$constructor<ZodTemplateLiteral> = /*@__PURE__*/ core.$constructor(
2604
+ "ZodTemplateLiteral",
2605
+ (inst, def) => {
2606
+ core.$ZodTemplateLiteral.init(inst, def);
2607
+ ZodType.init(inst, def);
2608
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.templateLiteralProcessor(inst, ctx, json, params);
2609
+ }
2610
+ );
2611
+
2612
+ export function templateLiteral<const Parts extends core.$ZodTemplateLiteralPart[]>(
2613
+ parts: Parts,
2614
+ params?: string | core.$ZodTemplateLiteralParams
2615
+ ): ZodTemplateLiteral<core.$PartsToTemplateLiteral<Parts>> {
2616
+ return new ZodTemplateLiteral({
2617
+ type: "template_literal",
2618
+ parts,
2619
+ ...util.normalizeParams(params),
2620
+ }) as any;
2621
+ }
2622
+
2623
+ // ZodLazy
2624
+ export interface ZodLazy<T extends core.SomeType = core.$ZodType>
2625
+ extends _ZodType<core.$ZodLazyInternals<T>>,
2626
+ core.$ZodLazy<T> {
2627
+ "~standard": ZodStandardSchemaWithJSON<this>;
2628
+ unwrap(): T;
2629
+ }
2630
+ export const ZodLazy: core.$constructor<ZodLazy> = /*@__PURE__*/ core.$constructor("ZodLazy", (inst, def) => {
2631
+ core.$ZodLazy.init(inst, def);
2632
+ ZodType.init(inst, def);
2633
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.lazyProcessor(inst, ctx, json, params);
2634
+
2635
+ inst.unwrap = () => inst._zod.def.getter();
2636
+ });
2637
+
2638
+ export function lazy<T extends core.SomeType>(getter: () => T): ZodLazy<T> {
2639
+ return new ZodLazy({
2640
+ type: "lazy",
2641
+ getter: getter as any,
2642
+ }) as any;
2643
+ }
2644
+
2645
+ // ZodPromise
2646
+ export interface ZodPromise<T extends core.SomeType = core.$ZodType>
2647
+ extends _ZodType<core.$ZodPromiseInternals<T>>,
2648
+ core.$ZodPromise<T> {
2649
+ "~standard": ZodStandardSchemaWithJSON<this>;
2650
+ unwrap(): T;
2651
+ }
2652
+ export const ZodPromise: core.$constructor<ZodPromise> = /*@__PURE__*/ core.$constructor("ZodPromise", (inst, def) => {
2653
+ core.$ZodPromise.init(inst, def);
2654
+ ZodType.init(inst, def);
2655
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.promiseProcessor(inst, ctx, json, params);
2656
+
2657
+ inst.unwrap = () => inst._zod.def.innerType;
2658
+ });
2659
+
2660
+ export function promise<T extends core.SomeType>(innerType: T): ZodPromise<T> {
2661
+ return new ZodPromise({
2662
+ type: "promise",
2663
+ innerType: innerType as any as core.$ZodType,
2664
+ }) as any;
2665
+ }
2666
+
2667
+ // ZodFunction
2668
+ export interface ZodFunction<
2669
+ Args extends core.$ZodFunctionIn = core.$ZodFunctionIn,
2670
+ Returns extends core.$ZodFunctionOut = core.$ZodFunctionOut,
2671
+ > extends _ZodType<core.$ZodFunctionInternals<Args, Returns>>,
2672
+ core.$ZodFunction<Args, Returns> {
2673
+ "~standard": ZodStandardSchemaWithJSON<this>;
2674
+ _def: core.$ZodFunctionDef<Args, Returns>;
2675
+ _input: core.$InferInnerFunctionType<Args, Returns>;
2676
+ _output: core.$InferOuterFunctionType<Args, Returns>;
2677
+
2678
+ input<const Items extends util.TupleItems, const Rest extends core.$ZodFunctionOut = core.$ZodFunctionOut>(
2679
+ args: Items,
2680
+ rest?: Rest
2681
+ ): ZodFunction<core.$ZodTuple<Items, Rest>, Returns>;
2682
+ input<NewArgs extends core.$ZodFunctionIn>(args: NewArgs): ZodFunction<NewArgs, Returns>;
2683
+ input(...args: any[]): ZodFunction<any, Returns>;
2684
+
2685
+ output<NewReturns extends core.$ZodType>(output: NewReturns): ZodFunction<Args, NewReturns>;
2686
+ }
2687
+
2688
+ export const ZodFunction: core.$constructor<ZodFunction> = /*@__PURE__*/ core.$constructor(
2689
+ "ZodFunction",
2690
+ (inst, def) => {
2691
+ core.$ZodFunction.init(inst, def);
2692
+ ZodType.init(inst, def);
2693
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.functionProcessor(inst, ctx, json, params);
2694
+ }
2695
+ );
2696
+
2697
+ export function _function(): ZodFunction;
2698
+ export function _function<const In extends ReadonlyArray<core.$ZodType>>(params: {
2699
+ input: In;
2700
+ }): ZodFunction<ZodTuple<In, null>, core.$ZodFunctionOut>;
2701
+ export function _function<
2702
+ const In extends ReadonlyArray<core.$ZodType>,
2703
+ const Out extends core.$ZodFunctionOut = core.$ZodFunctionOut,
2704
+ >(params: {
2705
+ input: In;
2706
+ output: Out;
2707
+ }): ZodFunction<ZodTuple<In, null>, Out>;
2708
+ export function _function<const In extends core.$ZodFunctionIn = core.$ZodFunctionIn>(params: {
2709
+ input: In;
2710
+ }): ZodFunction<In, core.$ZodFunctionOut>;
2711
+ export function _function<const Out extends core.$ZodFunctionOut = core.$ZodFunctionOut>(params: {
2712
+ output: Out;
2713
+ }): ZodFunction<core.$ZodFunctionIn, Out>;
2714
+ export function _function<
2715
+ In extends core.$ZodFunctionIn = core.$ZodFunctionIn,
2716
+ Out extends core.$ZodType = core.$ZodType,
2717
+ >(params?: {
2718
+ input: In;
2719
+ output: Out;
2720
+ }): ZodFunction<In, Out>;
2721
+ export function _function(params?: {
2722
+ output?: core.$ZodType;
2723
+ input?: core.$ZodFunctionArgs | Array<core.$ZodType>;
2724
+ }): ZodFunction {
2725
+ return new ZodFunction({
2726
+ type: "function",
2727
+ input: Array.isArray(params?.input) ? tuple(params?.input as any) : (params?.input ?? array(unknown())),
2728
+ output: params?.output ?? unknown(),
2729
+ });
2730
+ }
2731
+
2732
+ export { _function as function };
2733
+
2734
+ // ZodCustom
2735
+ export interface ZodCustom<O = unknown, I = unknown>
2736
+ extends _ZodType<core.$ZodCustomInternals<O, I>>,
2737
+ core.$ZodCustom<O, I> {
2738
+ "~standard": ZodStandardSchemaWithJSON<this>;
2739
+ }
2740
+ export const ZodCustom: core.$constructor<ZodCustom> = /*@__PURE__*/ core.$constructor("ZodCustom", (inst, def) => {
2741
+ core.$ZodCustom.init(inst, def);
2742
+ ZodType.init(inst, def);
2743
+ inst._zod.processJSONSchema = (ctx, json, params) => processors.customProcessor(inst, ctx, json, params);
2744
+ });
2745
+
2746
+ // custom checks
2747
+ export function check<O = unknown>(fn: core.CheckFn<O>): core.$ZodCheck<O> {
2748
+ const ch = new core.$ZodCheck({
2749
+ check: "custom",
2750
+ // ...util.normalizeParams(params),
2751
+ });
2752
+
2753
+ ch._zod.check = fn;
2754
+ return ch;
2755
+ }
2756
+
2757
+ export function custom<O>(
2758
+ fn?: (data: unknown) => unknown,
2759
+ _params?: string | core.$ZodCustomParams | undefined
2760
+ ): ZodCustom<O, O> {
2761
+ return core._custom(ZodCustom, fn ?? (() => true), _params) as any;
2762
+ }
2763
+
2764
+ export function refine<T>(
2765
+ fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>,
2766
+ _params: string | core.$ZodCustomParams = {}
2767
+ ): core.$ZodCheck<T> {
2768
+ return core._refine(ZodCustom, fn, _params);
2769
+ }
2770
+
2771
+ // superRefine
2772
+ export function superRefine<T>(
2773
+ fn: (arg: T, payload: core.$RefinementCtx<T>) => void | Promise<void>,
2774
+ params?: core.$ZodSuperRefineParams
2775
+ ): core.$ZodCheck<T> {
2776
+ return core._superRefine(fn, params);
2777
+ }
2778
+
2779
+ // Re-export describe and meta from core
2780
+ export const describe = core.describe;
2781
+ export const meta = core.meta;
2782
+
2783
+ type ZodInstanceOfParams = core.Params<
2784
+ ZodCustom,
2785
+ core.$ZodIssueCustom,
2786
+ "type" | "check" | "checks" | "fn" | "abort" | "error" | "params" | "path"
2787
+ >;
2788
+ function _instanceof<T extends typeof util.Class>(
2789
+ cls: T,
2790
+ params: ZodInstanceOfParams = {}
2791
+ ): ZodCustom<InstanceType<T>, InstanceType<T>> {
2792
+ const inst = new ZodCustom({
2793
+ type: "custom",
2794
+ check: "custom",
2795
+ fn: (data) => data instanceof cls,
2796
+ abort: true,
2797
+ ...(util.normalizeParams(params) as any),
2798
+ });
2799
+ inst._zod.bag.Class = cls;
2800
+ // Override check to emit invalid_type instead of custom
2801
+ inst._zod.check = (payload) => {
2802
+ if (!(payload.value instanceof cls)) {
2803
+ payload.issues.push({
2804
+ code: "invalid_type",
2805
+ expected: cls.name,
2806
+ input: payload.value,
2807
+ inst,
2808
+ path: [...(inst._zod.def.path ?? [])],
2809
+ });
2810
+ }
2811
+ };
2812
+ return inst as any;
2813
+ }
2814
+ export { _instanceof as instanceof };
2815
+
2816
+ // stringbool
2817
+ export const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodCodec<ZodString, ZodBoolean> = (
2818
+ ...args
2819
+ ) =>
2820
+ core._stringbool(
2821
+ {
2822
+ Codec: ZodCodec,
2823
+ Boolean: ZodBoolean,
2824
+ String: ZodString,
2825
+ },
2826
+ ...args
2827
+ ) as any;
2828
+
2829
+ // json
2830
+ type _ZodJSONSchema = ZodUnion<
2831
+ [ZodString, ZodNumber, ZodBoolean, ZodNull, ZodArray<ZodJSONSchema>, ZodRecord<ZodString, ZodJSONSchema>]
2832
+ >;
2833
+ type _ZodJSONSchemaInternals = _ZodJSONSchema["_zod"];
2834
+
2835
+ export interface ZodJSONSchemaInternals extends _ZodJSONSchemaInternals {
2836
+ output: util.JSONType;
2837
+ input: util.JSONType;
2838
+ }
2839
+ export interface ZodJSONSchema extends _ZodJSONSchema {
2840
+ _zod: ZodJSONSchemaInternals;
2841
+ }
2842
+
2843
+ export function json(params?: string | core.$ZodCustomParams): ZodJSONSchema {
2844
+ const jsonSchema: any = lazy(() => {
2845
+ return union([string(params), number(), boolean(), _null(), array(jsonSchema), record(string(), jsonSchema)]);
2846
+ });
2847
+
2848
+ return jsonSchema;
2849
+ }
2850
+
2851
+ // preprocess
2852
+
2853
+ export function preprocess<A, U extends core.SomeType, B = unknown>(
2854
+ fn: (arg: B, ctx: core.$RefinementCtx) => A,
2855
+ schema: U
2856
+ ): ZodPreprocess<U, B> {
2857
+ return new ZodPreprocess({
2858
+ type: "pipe",
2859
+ in: transform(fn as any) as any as core.$ZodTransform,
2860
+ out: schema as any as core.$ZodType,
2861
+ }) as any;
2862
+ }