@chrona-city/ugc-kit 1.5.12 → 1.6.9

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 (1674) hide show
  1. package/.agents/skills/chrona-3d-assets/SKILL.md +15 -0
  2. package/.agents/skills/chrona-ecs-creator/SKILL.md +17 -0
  3. package/.agents/skills/chrona-gameplay-js/SKILL.md +19 -0
  4. package/.agents/skills/chrona-realtime/SKILL.md +23 -0
  5. package/.agents/skills/chrona-repair/SKILL.md +13 -0
  6. package/README.md +89 -8
  7. package/bin/chrona.mjs +6 -2
  8. package/chrona.contract.lock.json +74 -6
  9. package/chrona.controlled-presentation.lock.json +8 -8
  10. package/chrona.core.lock.json +16 -12
  11. package/chrona.document-presentation.lock.json +52 -0
  12. package/chrona.ecs.lock.json +3 -3
  13. package/chrona.gameplay-tests.lock.json +9 -9
  14. package/chrona.ground-endpoint.lock.json +28 -0
  15. package/chrona.ground-spaces.lock.json +40 -0
  16. package/chrona.personal-state.lock.json +28 -0
  17. package/chrona.pipeline.lock.json +10 -10
  18. package/chrona.private-state-view.lock.json +2 -2
  19. package/chrona.private-state.lock.json +2 -2
  20. package/chrona.registry.lock.json +2 -2
  21. package/chrona.sandbox.lock.json +11 -7
  22. package/chrona.scene-interaction-v2.lock.json +28 -0
  23. package/chrona.world-scene-runtime.lock.json +49 -9
  24. package/chrona.world-scene.lock.json +9 -5
  25. package/compiler/local-builder.lock.json +1 -1
  26. package/compiler/source/contracts/creator/rules/v1/rules.mjs +99 -0
  27. package/compiler/source/contracts/creator/rules/v1/ugc-rules.json +807 -0
  28. package/compiler/source/contracts/ugc/authored-motion/v1/declaration.mjs +124 -0
  29. package/compiler/source/contracts/ugc/core-ecs/v1/core-view.mjs +146 -0
  30. package/compiler/source/contracts/ugc/core-ecs/v1/limits.json +4 -0
  31. package/compiler/source/contracts/ugc/document-presentation/v1/document.mjs +148 -27
  32. package/compiler/source/contracts/ugc/document-presentation/v1/profile-1.1.0.json +25 -0
  33. package/compiler/source/contracts/ugc/document-presentation/v1/profile-1.2.0.json +25 -0
  34. package/compiler/source/contracts/ugc/document-presentation/v1/profile-1.3.0.json +26 -0
  35. package/compiler/source/contracts/ugc/document-presentation/v1/profile-1.5.0.json +25 -0
  36. package/compiler/source/contracts/ugc/document-presentation/v1/profile-1.6.0.json +26 -0
  37. package/compiler/source/contracts/ugc/ecs-runtime/v1/private-world.mjs +313 -0
  38. package/compiler/source/contracts/ugc/live-rule-slot/v1/slot.json +58 -0
  39. package/compiler/source/contracts/ugc/local-content/v1/document-snapshot.mjs +13 -29
  40. package/compiler/source/contracts/ugc/local-content/v1/ground-snapshot.mjs +89 -0
  41. package/compiler/source/contracts/ugc/local-content/v1/snapshot.mjs +49 -6
  42. package/compiler/source/contracts/ugc/open-creation/v1/custom-actions.mjs +92 -0
  43. package/compiler/source/contracts/ugc/open-creation/v1/data-authority.mjs +37 -0
  44. package/compiler/source/contracts/ugc/open-creation/v1/declaration.mjs +28 -0
  45. package/compiler/source/contracts/ugc/open-creation/v1/dynamic-entities.mjs +186 -0
  46. package/compiler/source/contracts/ugc/open-creation/v1/open-world.mjs +269 -0
  47. package/compiler/source/contracts/ugc/pipeline/v1/conformance/js/pipeline-validator.mjs +35 -7
  48. package/compiler/source/contracts/ugc/private-state/v1/projection.mjs +178 -0
  49. package/compiler/source/contracts/ugc/registry/v1/resolution-policy.json +3 -3
  50. package/compiler/source/contracts/ugc/runtime-content/v1/asset-budget.mjs +21 -0
  51. package/compiler/source/contracts/ugc/runtime-content/v1/limits.json +5 -0
  52. package/compiler/source/contracts/ugc/runtime-content/v1/validate.mjs +420 -0
  53. package/compiler/source/contracts/ugc/sandbox/v1/sha256.mjs +47 -0
  54. package/compiler/source/contracts/ugc/server-entities/v1/entities.mjs +221 -0
  55. package/compiler/source/contracts/ugc/server-entities/v1/events.mjs +336 -0
  56. package/compiler/source/contracts/ugc/server-entities/v1/limits.json +112 -0
  57. package/compiler/source/contracts/ugc/server-entities/v1/roads.mjs +164 -0
  58. package/compiler/source/contracts/ugc/v1/conformance/js/package-validator.mjs +51 -5
  59. package/compiler/source/contracts/ugc/v1/host-runnable.mjs +23 -0
  60. package/compiler/source/contracts/ugc/world-scene/v2/asset-graph.mjs +8 -12
  61. package/compiler/source/contracts/ugc/world-scene/v2/contract-set.json +1 -0
  62. package/compiler/source/contracts/ugc/world-scene-runtime/v1/runtime-plan.schema.json +41 -13
  63. package/compiler/source/contracts/ugc/world-scene-runtime/v1/runtime-policy.mjs +2 -2
  64. package/compiler/source/contracts/ugc/world-scene-runtime/v2/contract-set.json +10 -0
  65. package/compiler/source/contracts/ugc/world-scene-runtime/v2/report.mjs +21 -14
  66. package/compiler/source/contracts/ugc/world-scene-runtime/v2/runtime-policy.mjs +17 -3
  67. package/compiler/source/services/game-worker/src/runtime/content/flight-runtime.js +2 -1
  68. package/compiler/source/services/game-worker/src/runtime/rooms/flight-collision.js +55 -30
  69. package/compiler/source/services/game-worker/src/runtime/rooms/flight-motion.js +99 -0
  70. package/compiler/source/services/game-worker/src/runtime/rooms/flight-preparation.js +3 -2
  71. package/compiler/source/services/game-worker/src/runtime/rooms/flight-room-controller.js +130 -24
  72. package/compiler/source/services/ugc-pipeline/src/asset-inspection.mjs +78 -28
  73. package/compiler/source/services/ugc-pipeline/src/document-presentation-model.mjs +2 -2
  74. package/compiler/source/services/ugc-pipeline/src/ground-rules-model.mjs +4 -5
  75. package/compiler/source/services/ugc-pipeline/src/local-content.mjs +29 -16
  76. package/compiler/source/services/ugc-pipeline/src/registry-release.mjs +4 -1
  77. package/compiler/source/services/ugc-pipeline/src/resource-bindings-model.mjs +3 -3
  78. package/compiler/source/services/ugc-pipeline/src/rules-locks.mjs +18 -0
  79. package/compiler/source/services/ugc-pipeline/src/scene-interaction-model.mjs +4 -5
  80. package/compiler/source/services/ugc-pipeline/src/visual-closure-v2.mjs +2 -2
  81. package/compiler/source/services/ugc-pipeline/src/world-scene-model.mjs +3 -3
  82. package/compiler/source/services/ugc-pipeline/src/world-scene-policies.json +138 -0
  83. package/compiler/source/services/ugc-pipeline/src/world-scene-runtime.mjs +4 -3
  84. package/consistency-vectors.snapshot.lock.json +14 -0
  85. package/contracts/creator/check/v1/rule-table.json +433 -0
  86. package/contracts/creator/check/v1/rules/client.json +924 -0
  87. package/contracts/creator/check/v1/rules/kit.json +1702 -0
  88. package/contracts/creator/check/v1/rules/platform.json +608 -0
  89. package/contracts/creator/check/v1/rules/publish.json +2484 -0
  90. package/contracts/creator/check/v1/rules/room.json +279 -0
  91. package/contracts/creator/rules/v1/rules.mjs +69 -0
  92. package/contracts/creator/rules/v1/vectors.json +39 -0
  93. package/contracts/ecs/realtime/consistency/v1/vectors.json +2437 -0
  94. package/contracts/errors/registry/v1/codes.json +13255 -0
  95. package/contracts/gameplay/step-input/step-input.mjs +16 -0
  96. package/contracts/network/realtime/authored-entity.mjs +67 -0
  97. package/contracts/network/realtime/revision-selection.mjs +65 -0
  98. package/contracts/testdata/gameplay-consistency/vectors.json +149 -0
  99. package/contracts/ugc/authored-motion/v1/declaration.mjs +124 -0
  100. package/contracts/ugc/core-ecs/v1/core-view.mjs +13 -5
  101. package/contracts/ugc/core-ecs/v1/limits.json +4 -0
  102. package/contracts/ugc/creator-source/v1/SOURCE-PACKAGE.md +1 -1
  103. package/contracts/ugc/creator-source/v1/source-package.mjs +24 -7
  104. package/contracts/ugc/creator-source/v1/source-package.schema.json +3 -3
  105. package/contracts/ugc/creator-source/v1/source-package.test.mjs +20 -2
  106. package/contracts/ugc/document-presentation/v1/document.mjs +148 -27
  107. package/contracts/ugc/document-presentation/v1/profile-1.1.0.json +25 -0
  108. package/contracts/ugc/document-presentation/v1/profile-1.2.0.json +25 -0
  109. package/contracts/ugc/document-presentation/v1/profile-1.3.0.json +26 -0
  110. package/contracts/ugc/document-presentation/v1/profile-1.5.0.json +25 -0
  111. package/contracts/ugc/document-presentation/v1/profile-1.6.0.json +26 -0
  112. package/contracts/ugc/ecs-runtime/v1/private-world.mjs +21 -7
  113. package/contracts/ugc/live-rule-slot/v1/slot.json +58 -0
  114. package/contracts/ugc/live-rule-slot/v1/slot.mjs +80 -0
  115. package/contracts/ugc/local-content/v1/README.md +10 -0
  116. package/contracts/ugc/local-content/v1/document-snapshot.mjs +13 -29
  117. package/contracts/ugc/local-content/v1/ground-snapshot.mjs +89 -0
  118. package/contracts/ugc/local-content/v1/snapshot.mjs +49 -6
  119. package/contracts/ugc/local-content/v1/spatial-plan.mjs +24 -0
  120. package/contracts/ugc/open-creation/v1/custom-actions.mjs +92 -0
  121. package/contracts/ugc/open-creation/v1/data-authority.mjs +37 -0
  122. package/contracts/ugc/open-creation/v1/declaration.mjs +28 -0
  123. package/contracts/ugc/open-creation/v1/dynamic-entities.mjs +186 -0
  124. package/contracts/ugc/open-creation/v1/open-world.mjs +269 -0
  125. package/contracts/ugc/public-runtime/v1/README.md +13 -1
  126. package/contracts/ugc/public-runtime/v1/compatibility-rows.test.mjs +79 -0
  127. package/contracts/ugc/public-runtime/v1/document-runtime.test.mjs +20 -5
  128. package/contracts/ugc/public-runtime/v1/manifest.mjs +24 -12
  129. package/contracts/ugc/public-runtime/v1/revision-vectors.test.mjs +49 -0
  130. package/contracts/ugc/public-runtime/v1/runtime-manifest.schema.json +119 -6
  131. package/contracts/ugc/runtime-content/v1/asset-budget.mjs +21 -0
  132. package/contracts/ugc/runtime-content/v1/limits.json +5 -0
  133. package/contracts/ugc/runtime-content/v1/validate.mjs +420 -0
  134. package/contracts/ugc/sandbox/v1/conformance/js/sandbox-validator.mjs +85 -6
  135. package/contracts/ugc/server-entities/v1/entities.mjs +221 -0
  136. package/contracts/ugc/server-entities/v1/events.mjs +336 -0
  137. package/contracts/ugc/server-entities/v1/limits.json +112 -0
  138. package/contracts/ugc/server-entities/v1/roads.mjs +164 -0
  139. package/contracts/ugc/v1/conformance/js/package-validator.mjs +51 -5
  140. package/contracts/ugc/v1/host-runnable.mjs +23 -0
  141. package/contracts/ugc/world-scene-runtime/v1/runtime-policy.mjs +2 -2
  142. package/contracts/ugc/world-scene-runtime/v2/runtime-policy.mjs +17 -3
  143. package/creator-check.source-lock.json +40 -0
  144. package/creator-release.json +1 -1
  145. package/docs/ai-index.md +193 -0
  146. package/docs/assets-3d-spec.md +114 -3
  147. package/docs/audio.md +110 -0
  148. package/docs/authored-avatars.md +67 -0
  149. package/docs/authored-entities.md +165 -0
  150. package/docs/capability-map.json +57 -0
  151. package/docs/controlled-presentation.md +53 -0
  152. package/docs/core-ecs.md +46 -0
  153. package/docs/declaration-generator.md +292 -0
  154. package/docs/document-presentation.md +14 -0
  155. package/docs/gameplay-inputs.md +77 -0
  156. package/docs/gameplay-lifecycle-tests.md +89 -0
  157. package/docs/ground-rules.md +63 -0
  158. package/docs/harness-onboarding.md +83 -22
  159. package/docs/live-rule-slots.md +57 -0
  160. package/docs/mcp-tools.md +39 -0
  161. package/docs/meshy.md +17 -4
  162. package/docs/migrate-1.6.md +63 -0
  163. package/docs/npm-creator.md +419 -254
  164. package/docs/open-creation.md +259 -0
  165. package/docs/player-private-components.md +51 -0
  166. package/docs/player-saves.md +175 -0
  167. package/docs/player-visible-state.md +65 -0
  168. package/docs/playtest.md +223 -0
  169. package/docs/private-ecs.md +48 -0
  170. package/docs/private-events.md +82 -0
  171. package/docs/private-state.md +30 -0
  172. package/docs/realtime-patterns.md +624 -0
  173. package/docs/recipes.md +397 -0
  174. package/docs/reference.md +365 -0
  175. package/docs/runtime-download.md +22 -5
  176. package/docs/scene-import.md +132 -0
  177. package/docs/scene-interactions.md +28 -0
  178. package/docs/server-entities.md +83 -0
  179. package/docs/weather.md +77 -0
  180. package/docs/work-brief.md +71 -0
  181. package/document-action-result.source-lock.json +8 -4
  182. package/error-codes.snapshot.lock.json +14 -0
  183. package/gameplay-consistency.source-lock.json +20 -0
  184. package/lib/authority-notice.mjs +76 -0
  185. package/lib/behavior-radius-check.mjs +71 -0
  186. package/lib/builtin-write.mjs +70 -0
  187. package/lib/capability-harness.mjs +4 -3
  188. package/lib/compress-model.mjs +266 -0
  189. package/lib/creator-agent-live.mjs +3 -0
  190. package/lib/creator-api.mjs +367 -144
  191. package/lib/creator-assets-restore.mjs +102 -0
  192. package/lib/creator-capability-map.mjs +28 -0
  193. package/lib/creator-check.mjs +338 -0
  194. package/lib/creator-cli.mjs +940 -119
  195. package/lib/creator-contribution.mjs +46 -37
  196. package/lib/creator-docs.mjs +56 -0
  197. package/lib/creator-entry.mjs +134 -0
  198. package/lib/creator-fix.mjs +208 -0
  199. package/lib/creator-init-paths.mjs +22 -13
  200. package/lib/creator-init.mjs +22 -9
  201. package/lib/creator-install.mjs +379 -66
  202. package/lib/creator-installed-platform.mjs +13 -0
  203. package/lib/creator-intent-rules.mjs +15 -0
  204. package/lib/creator-intent.mjs +147 -0
  205. package/lib/creator-issue.mjs +241 -0
  206. package/lib/creator-mcp.mjs +337 -140
  207. package/lib/creator-migrate.mjs +194 -0
  208. package/lib/creator-onboarding.mjs +3 -1
  209. package/lib/creator-platform.mjs +223 -29
  210. package/lib/creator-playtest.mjs +398 -0
  211. package/lib/creator-preview.mjs +80 -0
  212. package/lib/creator-project-snapshot.mjs +182 -108
  213. package/lib/creator-project-update.mjs +132 -102
  214. package/lib/creator-project.mjs +213 -62
  215. package/lib/creator-provenance.mjs +12 -10
  216. package/lib/creator-rebundle.mjs +68 -0
  217. package/lib/creator-rules.mjs +76 -0
  218. package/lib/creator-session.mjs +128 -25
  219. package/lib/creator-source-package.mjs +2 -2
  220. package/lib/creator-submit.mjs +252 -101
  221. package/lib/creator-toolchain-compat.mjs +476 -3
  222. package/lib/creator-upgrade.mjs +58 -33
  223. package/lib/creator-upload-state.mjs +61 -6
  224. package/lib/creator-workspace-guide.mjs +79 -0
  225. package/lib/declaration-generator.mjs +609 -0
  226. package/lib/declaration-problems.mjs +108 -0
  227. package/lib/document-action-result.mjs +7 -4
  228. package/lib/document-prechecks.mjs +633 -0
  229. package/lib/document-presentation.mjs +47 -15
  230. package/lib/document-refresh.mjs +46 -0
  231. package/lib/ecs-access.mjs +179 -0
  232. package/lib/failure-messages.mjs +42 -0
  233. package/lib/gameplay-imports.mjs +34 -0
  234. package/lib/host-consistency.mjs +74 -0
  235. package/lib/host-ipc/distribution-static-room-semantic-contract/contracts/ugc/public-runtime/v1/manifest.mjs +24 -12
  236. package/lib/host-ipc/distribution-static-room-semantic-contract/contracts/ugc/public-runtime/v1/runtime-manifest.schema.json +119 -6
  237. package/lib/host-ipc/host-ipc.schema.json +80 -0
  238. package/lib/host-ipc/runtime-contract.mjs +2 -0
  239. package/lib/host-ipc/source-lock.json +5 -5
  240. package/lib/host-runnable-scope.mjs +19 -0
  241. package/lib/legacy-patterns.mjs +705 -0
  242. package/lib/live-baseline-shape.mjs +30 -0
  243. package/lib/live-baseline.mjs +108 -0
  244. package/lib/live-rule-check.mjs +96 -0
  245. package/lib/local-builder.mjs +20 -5
  246. package/lib/local-content.mjs +6 -4
  247. package/lib/local-development.mjs +96 -24
  248. package/lib/local-room.mjs +12 -0
  249. package/lib/meshy-api.mjs +57 -1
  250. package/lib/meshy-cli.mjs +23 -0
  251. package/lib/meshy-store.mjs +34 -11
  252. package/lib/movement-authority.mjs +24 -0
  253. package/lib/platform-discovery.mjs +61 -0
  254. package/lib/platform-limits.mjs +6 -0
  255. package/lib/playtest-browser.mjs +121 -0
  256. package/lib/playtest-compare.mjs +42 -0
  257. package/lib/playtest-page.mjs +372 -0
  258. package/lib/playtest-vehicle.mjs +234 -0
  259. package/lib/presentation-project-update.mjs +126 -4
  260. package/lib/private-ecs-harness.mjs +39 -17
  261. package/lib/private-event-harness.mjs +3 -5
  262. package/lib/project-validation.mjs +852 -167
  263. package/lib/publish-prechecks.mjs +28 -0
  264. package/lib/relay-notice.mjs +13 -0
  265. package/lib/rule-fuzz.mjs +45 -0
  266. package/lib/rule-pack.mjs +150 -0
  267. package/lib/rule-selection.mjs +130 -0
  268. package/lib/rule-tests-child.mjs +40 -0
  269. package/lib/rule-tests-sandbox.mjs +75 -0
  270. package/lib/runtime-content.mjs +49 -0
  271. package/lib/runtime-download.mjs +94 -31
  272. package/lib/runtime-host-client.mjs +30 -12
  273. package/lib/runtime-host.mjs +7 -10
  274. package/lib/runtime-install.mjs +46 -6
  275. package/lib/runtime-prechecks.mjs +133 -0
  276. package/lib/runtime-proxy-fetch.mjs +117 -0
  277. package/lib/runtime-snapshot.mjs +20 -20
  278. package/lib/runtime-source.mjs +30 -14
  279. package/lib/sandbox-projection/v1/room-state-projection.mjs +116 -0
  280. package/lib/scene-assets.mjs +5 -5
  281. package/lib/scene-import-profiles.mjs +8 -0
  282. package/lib/scene-import.mjs +737 -0
  283. package/lib/server-entities-check.mjs +160 -0
  284. package/lib/toolchain-history.json +602 -0
  285. package/lib/vendor/mcp.mjs +33787 -0
  286. package/lib/vendor/smol-toml.mjs +744 -0
  287. package/lib/writable-by-others.mjs +8 -0
  288. package/live-rule-slot.source-lock.json +20 -0
  289. package/llms.txt +43 -0
  290. package/local-builder.snapshot.lock.json +3 -3
  291. package/local-content.snapshot.lock.json +112 -8
  292. package/node_modules/pngjs/CHANGELOG.md +128 -0
  293. package/package.json +251 -23
  294. package/public-runtime.snapshot.lock.json +13 -9
  295. package/realtime-revision.source-lock.json +20 -0
  296. package/runtime-catalog.json +16 -16
  297. package/sandbox-projection.source-lock.json +15 -0
  298. package/sdk/client/index.js +3 -2
  299. package/source-package.snapshot.lock.json +5 -5
  300. package/templates/document-presentation/README.md +5 -0
  301. package/templates/document-presentation/assets.js +36 -10
  302. package/templates/document-presentation/authority.js +25 -7
  303. package/templates/document-presentation/live-view.js +100 -0
  304. package/templates/document-presentation/local-first.js +45 -0
  305. package/templates/document-presentation/motion.js +2 -0
  306. package/templates/document-presentation/ready-gate.js +37 -0
  307. package/templates/document-presentation/state-view.js +26 -0
  308. package/templates/document-presentation/weather-blend.js +57 -0
  309. package/templates/document-presentation/weather-particles.js +192 -0
  310. package/templates/document-presentation/wet-ripples.js +61 -0
  311. package/templates/examples/coin-rush/README.md +5 -0
  312. package/templates/examples/coin-rush/chrona.generate.json +63 -0
  313. package/templates/examples/coin-rush/content/assets/runtime/arena.gltf +399 -0
  314. package/templates/examples/coin-rush/content/assets/runtime/runner.gltf +197 -0
  315. package/templates/examples/coin-rush/content/bindings/resources.json +19 -0
  316. package/templates/examples/coin-rush/content/gameplay/client/presentation.js +44 -0
  317. package/templates/examples/coin-rush/content/gameplay/shared/rules.js +49 -0
  318. package/templates/examples/coin-rush/content/manifest.json +100 -0
  319. package/templates/examples/coin-rush/content/provenance.json +20 -0
  320. package/templates/examples/coin-rush/content/rules/ground.json +45 -0
  321. package/templates/examples/coin-rush/content/tests/budgets.json +5 -0
  322. package/templates/examples/coin-rush/content/tests/rules.json +16 -0
  323. package/templates/examples/open-creation/README.md +5 -0
  324. package/templates/examples/open-creation/chrona.generate.json +55 -0
  325. package/templates/examples/open-creation/content/assets/runtime/arena.gltf +399 -0
  326. package/templates/examples/open-creation/content/assets/runtime/runner.gltf +197 -0
  327. package/templates/examples/open-creation/content/bindings/resources.json +19 -0
  328. package/templates/examples/open-creation/content/gameplay/client/presentation.js +33 -0
  329. package/templates/examples/open-creation/content/gameplay/shared/rules.js +29 -0
  330. package/templates/examples/open-creation/content/manifest.json +100 -0
  331. package/templates/examples/open-creation/content/provenance.json +20 -0
  332. package/templates/examples/open-creation/content/rules/ground.json +45 -0
  333. package/templates/examples/open-creation/content/tests/budgets.json +5 -0
  334. package/templates/examples/open-creation/content/tests/rules.json +16 -0
  335. package/templates/live-rule-slot/score-slot.js +16 -0
  336. package/templates/npm-project/AGENTS.md +101 -4
  337. package/templates/npm-project/preview.command +7 -0
  338. package/templates/npm-project/preview.ps1 +6 -0
  339. package/templates/npm-project/scripts/install-kit.mjs +70 -0
  340. package/templates/npm-project/setup.command +3 -0
  341. package/templates/npm-project/setup.ps1 +14 -0
  342. package/templates/npm-project/setup.sh +11 -0
  343. package/templates/public-untrusted/content/gameplay/client/local-first.js +45 -0
  344. package/templates/public-untrusted/content/gameplay/client/smoothing.js +83 -0
  345. package/templates/public-untrusted/content/manifest.json +2 -1
  346. package/templates/public-untrusted/content/tests/scenarios.json +20 -2
  347. package/contracts/ugc/capability-wiring/v1/capability-proposal.schema.json +0 -82
  348. package/contracts/ugc/capability-wiring/v1/conformance/js/wiring-validator.mjs +0 -95
  349. package/contracts/ugc/capability-wiring/v1/conformance/web/index.html +0 -5
  350. package/contracts/ugc/capability-wiring/v1/conformance/web/runner.mjs +0 -32
  351. package/contracts/ugc/capability-wiring/v1/contract-set.json +0 -8
  352. package/contracts/ugc/capability-wiring/v1/error-codes.json +0 -15
  353. package/contracts/ugc/capability-wiring/v1/needs-capability.schema.json +0 -18
  354. package/contracts/ugc/capability-wiring/v1/testdata/vectors.json +0 -128
  355. package/contracts/ugc/capability-wiring/v1/wiring-release.schema.json +0 -66
  356. package/contracts/ugc/controlled-presentation/v1/README.md +0 -175
  357. package/contracts/ugc/controlled-presentation/v1/approval.schema.json +0 -53
  358. package/contracts/ugc/controlled-presentation/v1/command.schema.json +0 -243
  359. package/contracts/ugc/controlled-presentation/v1/conformance/run-vectors.mjs +0 -39
  360. package/contracts/ugc/controlled-presentation/v1/conformance/run-view-vectors.mjs +0 -54
  361. package/contracts/ugc/controlled-presentation/v1/conformance/web/index.html +0 -1
  362. package/contracts/ugc/controlled-presentation/v1/conformance/web/runner.mjs +0 -4
  363. package/contracts/ugc/controlled-presentation/v1/conformance/web/view-runner.mjs +0 -5
  364. package/contracts/ugc/controlled-presentation/v1/conformance/web/view.html +0 -1
  365. package/contracts/ugc/controlled-presentation/v1/context.schema.json +0 -19
  366. package/contracts/ugc/controlled-presentation/v1/contract-set.json +0 -33
  367. package/contracts/ugc/controlled-presentation/v1/export-view.mjs +0 -44
  368. package/contracts/ugc/controlled-presentation/v1/grant.schema.json +0 -120
  369. package/contracts/ugc/controlled-presentation/v1/presentation.mjs +0 -180
  370. package/contracts/ugc/controlled-presentation/v1/testdata/vectors.json +0 -565
  371. package/contracts/ugc/controlled-presentation/v1/view.mjs +0 -46
  372. package/contracts/ugc/controlled-presentation/v1/view.schema.json +0 -90
  373. package/contracts/ugc/core-ecs/v1/README.md +0 -13
  374. package/contracts/ugc/core-ecs/v1/api.json +0 -28
  375. package/contracts/ugc/core-ecs/v1/conformance/run-vectors.mjs +0 -33
  376. package/contracts/ugc/core-ecs/v1/conformance/web/index.html +0 -1
  377. package/contracts/ugc/core-ecs/v1/conformance/web/runner.mjs +0 -4
  378. package/contracts/ugc/core-ecs/v1/test-fixture.schema.json +0 -169
  379. package/contracts/ugc/core-ecs/v1/testdata/vectors.json +0 -57
  380. package/contracts/ugc/document-presentation/v1/README.md +0 -167
  381. package/contracts/ugc/document-presentation/v1/contract-set.json +0 -18
  382. package/contracts/ugc/document-presentation/v1/document.schema.json +0 -161
  383. package/contracts/ugc/document-presentation/v1/document.test.mjs +0 -138
  384. package/contracts/ugc/document-presentation/v1/source.schema.json +0 -88
  385. package/contracts/ugc/ecs-runtime/v1/README.md +0 -25
  386. package/contracts/ugc/ecs-runtime/v1/api.json +0 -46
  387. package/contracts/ugc/ecs-runtime/v1/conformance/run-vectors.mjs +0 -41
  388. package/contracts/ugc/ecs-runtime/v1/conformance/web/index.html +0 -3
  389. package/contracts/ugc/ecs-runtime/v1/conformance/web/runner.mjs +0 -5
  390. package/contracts/ugc/ecs-runtime/v1/testdata/vectors.json +0 -1318
  391. package/contracts/ugc/gameplay-tests/v1/README.md +0 -78
  392. package/contracts/ugc/gameplay-tests/v1/cases.mjs +0 -70
  393. package/contracts/ugc/gameplay-tests/v1/cases.schema.json +0 -262
  394. package/contracts/ugc/gameplay-tests/v1/conformance/run-vectors.mjs +0 -21
  395. package/contracts/ugc/gameplay-tests/v1/conformance/web/index.html +0 -1
  396. package/contracts/ugc/gameplay-tests/v1/conformance/web/runner.mjs +0 -4
  397. package/contracts/ugc/gameplay-tests/v1/contract-set.json +0 -9
  398. package/contracts/ugc/gameplay-tests/v1/scene-step.mjs +0 -49
  399. package/contracts/ugc/gameplay-tests/v1/testdata/vectors.json +0 -1504
  400. package/contracts/ugc/ground-rules/v1/README.md +0 -44
  401. package/contracts/ugc/ground-rules/v1/conformance/run-vectors.mjs +0 -31
  402. package/contracts/ugc/ground-rules/v1/conformance/web/index.html +0 -1
  403. package/contracts/ugc/ground-rules/v1/conformance/web/runner.mjs +0 -4
  404. package/contracts/ugc/ground-rules/v1/contract-set.json +0 -9
  405. package/contracts/ugc/ground-rules/v1/effective-ground-rules.schema.json +0 -27
  406. package/contracts/ugc/ground-rules/v1/ground-rules.schema.json +0 -33
  407. package/contracts/ugc/ground-rules/v1/testdata/vectors.json +0 -57
  408. package/contracts/ugc/ground-rules/v2/README.md +0 -88
  409. package/contracts/ugc/ground-rules/v2/contract-set.json +0 -20
  410. package/contracts/ugc/ground-rules/v2/ground-rules.schema.json +0 -373
  411. package/contracts/ugc/ground-rules/v2/spaces.test.mjs +0 -58
  412. package/contracts/ugc/ground-rules/v2/spatial-source.schema.json +0 -788
  413. package/contracts/ugc/ground-rules/v2/spatial.test.mjs +0 -142
  414. package/contracts/ugc/ground-rules/v2.2/README.md +0 -73
  415. package/contracts/ugc/ground-rules/v2.2/center-band.test.mjs +0 -149
  416. package/contracts/ugc/ground-rules/v2.2/contract-set.json +0 -8
  417. package/contracts/ugc/ground-rules/v2.2/spatial-source.schema.json +0 -1049
  418. package/contracts/ugc/personal-state/v1/README.md +0 -181
  419. package/contracts/ugc/personal-state/v1/declaration.schema.json +0 -295
  420. package/contracts/ugc/personal-state/v1/declaration.test.mjs +0 -26
  421. package/contracts/ugc/personal-state/v1/marker.schema.json +0 -9
  422. package/contracts/ugc/personal-state/v1/node-plan.test.mjs +0 -65
  423. package/contracts/ugc/pipeline/v1/PLATFORM-SOURCE.md +0 -54
  424. package/contracts/ugc/pipeline/v1/PRESENTATION.md +0 -13
  425. package/contracts/ugc/pipeline/v1/build-record.schema.json +0 -93
  426. package/contracts/ugc/pipeline/v1/conformance/js/pipeline-validator.mjs +0 -196
  427. package/contracts/ugc/pipeline/v1/conformance/js/platform-release-validator.mjs +0 -78
  428. package/contracts/ugc/pipeline/v1/conformance/web/index.html +0 -5
  429. package/contracts/ugc/pipeline/v1/conformance/web/runner.mjs +0 -30
  430. package/contracts/ugc/pipeline/v1/contract-set.json +0 -30
  431. package/contracts/ugc/pipeline/v1/error-codes.json +0 -95
  432. package/contracts/ugc/pipeline/v1/platform-publication-binding.schema.json +0 -56
  433. package/contracts/ugc/pipeline/v1/public-release-descriptor.schema.json +0 -264
  434. package/contracts/ugc/pipeline/v1/publication-operation.schema.json +0 -97
  435. package/contracts/ugc/pipeline/v1/release-index.schema.json +0 -192
  436. package/contracts/ugc/pipeline/v1/review-decision.schema.json +0 -212
  437. package/contracts/ugc/pipeline/v1/submission-receipt.schema.json +0 -15
  438. package/contracts/ugc/pipeline/v1/testdata/vectors.json +0 -1713
  439. package/contracts/ugc/private-event-view/v1/README.md +0 -83
  440. package/contracts/ugc/private-event-view/v1/conformance/run-vectors.mjs +0 -65
  441. package/contracts/ugc/private-event-view/v1/conformance/web/index.html +0 -1
  442. package/contracts/ugc/private-event-view/v1/conformance/web/runner.mjs +0 -5
  443. package/contracts/ugc/private-event-view/v1/contract-set.json +0 -9
  444. package/contracts/ugc/private-event-view/v1/export.mjs +0 -22
  445. package/contracts/ugc/private-event-view/v1/testdata/vectors.json +0 -22
  446. package/contracts/ugc/private-event-view/v1/view.mjs +0 -130
  447. package/contracts/ugc/private-event-view/v1/view.schema.json +0 -204
  448. package/contracts/ugc/private-events/v1/README.md +0 -102
  449. package/contracts/ugc/private-events/v1/conformance/run-vectors.mjs +0 -52
  450. package/contracts/ugc/private-events/v1/conformance/web/index.html +0 -1
  451. package/contracts/ugc/private-events/v1/conformance/web/runner.mjs +0 -4
  452. package/contracts/ugc/private-events/v1/contract-set.json +0 -9
  453. package/contracts/ugc/private-events/v1/events.schema.json +0 -19
  454. package/contracts/ugc/private-events/v1/grant.schema.json +0 -15
  455. package/contracts/ugc/private-events/v1/output.schema.json +0 -15
  456. package/contracts/ugc/private-events/v1/testdata/vectors.json +0 -55
  457. package/contracts/ugc/private-state/v1/README.md +0 -95
  458. package/contracts/ugc/private-state/v1/conformance/run-vectors.mjs +0 -40
  459. package/contracts/ugc/private-state/v1/conformance/web/index.html +0 -1
  460. package/contracts/ugc/private-state/v1/conformance/web/runner.mjs +0 -4
  461. package/contracts/ugc/private-state/v1/contract-set.json +0 -9
  462. package/contracts/ugc/private-state/v1/field-table.schema.json +0 -136
  463. package/contracts/ugc/private-state/v1/projection.schema.json +0 -515
  464. package/contracts/ugc/private-state/v1/testdata/vectors.json +0 -76
  465. package/contracts/ugc/private-state-view/v1/README.md +0 -91
  466. package/contracts/ugc/private-state-view/v1/conformance/run-vectors.mjs +0 -52
  467. package/contracts/ugc/private-state-view/v1/conformance/web/index.html +0 -1
  468. package/contracts/ugc/private-state-view/v1/conformance/web/runner.mjs +0 -5
  469. package/contracts/ugc/private-state-view/v1/contract-set.json +0 -24
  470. package/contracts/ugc/private-state-view/v1/export.mjs +0 -29
  471. package/contracts/ugc/private-state-view/v1/publication.schema.json +0 -82
  472. package/contracts/ugc/private-state-view/v1/testdata/vectors.json +0 -21
  473. package/contracts/ugc/private-state-view/v1/view.mjs +0 -199
  474. package/contracts/ugc/private-state-view/v1/view.schema.json +0 -255
  475. package/contracts/ugc/public-runtime/v1/static-room-runtime.test.mjs +0 -225
  476. package/contracts/ugc/registry/v1/capabilities-lock.schema.json +0 -110
  477. package/contracts/ugc/registry/v1/capability-query-result.schema.json +0 -33
  478. package/contracts/ugc/registry/v1/capability-query.schema.json +0 -14
  479. package/contracts/ugc/registry/v1/capability-registry.schema.json +0 -83
  480. package/contracts/ugc/registry/v1/conformance/web/index.html +0 -5
  481. package/contracts/ugc/registry/v1/conformance/web/runner.mjs +0 -68
  482. package/contracts/ugc/registry/v1/contract-set.json +0 -23
  483. package/contracts/ugc/registry/v1/effective-budgets.schema.json +0 -34
  484. package/contracts/ugc/registry/v1/error-codes.json +0 -11
  485. package/contracts/ugc/registry/v1/network-profile-lock.schema.json +0 -26
  486. package/contracts/ugc/registry/v1/registry.json +0 -1
  487. package/contracts/ugc/registry/v1/resolution-policy.json +0 -70
  488. package/contracts/ugc/registry/v1/resolution-result.schema.json +0 -49
  489. package/contracts/ugc/registry/v1/testdata/vectors.json +0 -405
  490. package/contracts/ugc/resource-bindings/v1/AUTHORED-AVATAR.md +0 -133
  491. package/contracts/ugc/resource-bindings/v1/README.md +0 -61
  492. package/contracts/ugc/resource-bindings/v1/authored-avatar.schema.json +0 -48
  493. package/contracts/ugc/resource-bindings/v1/bindings.schema.json +0 -45
  494. package/contracts/ugc/resource-bindings/v1/conformance/authored-avatar-vectors.mjs +0 -26
  495. package/contracts/ugc/resource-bindings/v1/conformance/run-vectors.mjs +0 -32
  496. package/contracts/ugc/resource-bindings/v1/conformance/web/index.html +0 -1
  497. package/contracts/ugc/resource-bindings/v1/conformance/web/runner.mjs +0 -13
  498. package/contracts/ugc/resource-bindings/v1/contract-set.json +0 -9
  499. package/contracts/ugc/resource-bindings/v1/testdata/authored-avatar-vectors.json +0 -146
  500. package/contracts/ugc/resource-bindings/v1/testdata/authored-avatar.json +0 -13
  501. package/contracts/ugc/resource-bindings/v1/testdata/vectors.json +0 -68
  502. package/contracts/ugc/sandbox/v1/conformance/web/index.html +0 -5
  503. package/contracts/ugc/sandbox/v1/conformance/web/runner.mjs +0 -26
  504. package/contracts/ugc/sandbox/v1/contract-set.json +0 -19
  505. package/contracts/ugc/sandbox/v1/error-codes.json +0 -25
  506. package/contracts/ugc/sandbox/v1/execution-result.schema.json +0 -80
  507. package/contracts/ugc/sandbox/v1/launch-request.schema.json +0 -96
  508. package/contracts/ugc/sandbox/v1/lifecycle-message.schema.json +0 -18
  509. package/contracts/ugc/sandbox/v1/local-launch-request.schema.json +0 -34
  510. package/contracts/ugc/sandbox/v1/private-ecs-grant.schema.json +0 -32
  511. package/contracts/ugc/sandbox/v1/sandbox-profile.schema.json +0 -70
  512. package/contracts/ugc/sandbox/v1/testdata/vectors.json +0 -89
  513. package/contracts/ugc/scene-interaction/v1/README.md +0 -63
  514. package/contracts/ugc/scene-interaction/v1/conformance/run-vectors.mjs +0 -26
  515. package/contracts/ugc/scene-interaction/v1/conformance/web/index.html +0 -1
  516. package/contracts/ugc/scene-interaction/v1/conformance/web/runner.mjs +0 -4
  517. package/contracts/ugc/scene-interaction/v1/contract-set.json +0 -26
  518. package/contracts/ugc/scene-interaction/v1/effective-targets.schema.json +0 -76
  519. package/contracts/ugc/scene-interaction/v1/request.schema.json +0 -30
  520. package/contracts/ugc/scene-interaction/v1/result.schema.json +0 -88
  521. package/contracts/ugc/scene-interaction/v1/targets.schema.json +0 -49
  522. package/contracts/ugc/scene-interaction/v1/testdata/vectors.json +0 -732
  523. package/contracts/ugc/scene-interaction/v2/README.md +0 -63
  524. package/contracts/ugc/scene-interaction/v2/contract-set.json +0 -19
  525. package/contracts/ugc/scene-interaction/v2/metric.test.mjs +0 -99
  526. package/contracts/ugc/scene-interaction/v2/targets.schema.json +0 -229
  527. package/contracts/ugc/scene-presentation/v1/INK-MATH.md +0 -64
  528. package/contracts/ugc/scene-presentation/v1/README.md +0 -126
  529. package/contracts/ugc/scene-presentation/v1/RENDER-POLICY.md +0 -63
  530. package/contracts/ugc/scene-presentation/v1/conformance/ink-vectors.mjs +0 -34
  531. package/contracts/ugc/scene-presentation/v1/conformance/render-policy-vectors.mjs +0 -62
  532. package/contracts/ugc/scene-presentation/v1/conformance/vectors.mjs +0 -128
  533. package/contracts/ugc/scene-presentation/v1/contract-set.json +0 -6
  534. package/contracts/ugc/scene-presentation/v1/ink-math.mjs +0 -70
  535. package/contracts/ugc/scene-presentation/v1/render-policy.schema.json +0 -27
  536. package/contracts/ugc/scene-presentation/v1/scene.schema.json +0 -66
  537. package/contracts/ugc/v1/COVER.md +0 -38
  538. package/contracts/ugc/v1/SCENE-PROVENANCE.md +0 -54
  539. package/contracts/ugc/v1/candidate-submission.schema.json +0 -16
  540. package/contracts/ugc/v1/capability-request.schema.json +0 -29
  541. package/contracts/ugc/v1/compatibility.json +0 -32
  542. package/contracts/ugc/v1/components.schema.json +0 -77
  543. package/contracts/ugc/v1/conformance/js/capability-operations.mjs +0 -13
  544. package/contracts/ugc/v1/conformance/js/scene-provenance.mjs +0 -121
  545. package/contracts/ugc/v1/conformance/js/source-validator.mjs +0 -99
  546. package/contracts/ugc/v1/conformance/web/index.html +0 -5
  547. package/contracts/ugc/v1/conformance/web/runner.mjs +0 -82
  548. package/contracts/ugc/v1/contract-set.json +0 -38
  549. package/contracts/ugc/v1/creator-sdk.json +0 -84
  550. package/contracts/ugc/v1/error-codes.json +0 -53
  551. package/contracts/ugc/v1/manifest.schema.json +0 -215
  552. package/contracts/ugc/v1/network-intent.schema.json +0 -15
  553. package/contracts/ugc/v1/prefabs.schema.json +0 -29
  554. package/contracts/ugc/v1/provenance.schema.json +0 -160
  555. package/contracts/ugc/v1/scene.schema.json +0 -37
  556. package/contracts/ugc/v1/testdata/capability-operation-vectors.json +0 -243
  557. package/contracts/ugc/v1/testdata/cover-vectors.json +0 -25
  558. package/contracts/ugc/v1/testdata/invalid/authored-avatar-missing-capability.json +0 -44
  559. package/contracts/ugc/v1/testdata/invalid/authored-avatar-wrong-capability.json +0 -51
  560. package/contracts/ugc/v1/testdata/invalid/budget-overflow.json +0 -1
  561. package/contracts/ugc/v1/testdata/invalid/build-field-override.json +0 -1
  562. package/contracts/ugc/v1/testdata/invalid/creator-server-entrypoint.json +0 -5
  563. package/contracts/ugc/v1/testdata/invalid/forbidden-network-control.json +0 -1
  564. package/contracts/ugc/v1/testdata/invalid/ground-authority.json +0 -57
  565. package/contracts/ugc/v1/testdata/invalid/ground-budget.json +0 -56
  566. package/contracts/ugc/v1/testdata/invalid/ground-dependency.json +0 -49
  567. package/contracts/ugc/v1/testdata/invalid/ground-identity.json +0 -56
  568. package/contracts/ugc/v1/testdata/invalid/ground-missing.json +0 -13
  569. package/contracts/ugc/v1/testdata/invalid/ground-optional.json +0 -60
  570. package/contracts/ugc/v1/testdata/invalid/ground-path.json +0 -56
  571. package/contracts/ugc/v1/testdata/invalid/ground-run-dependency.json +0 -56
  572. package/contracts/ugc/v1/testdata/invalid/ground-version.json +0 -56
  573. package/contracts/ugc/v1/testdata/invalid/missing-required-field.json +0 -1
  574. package/contracts/ugc/v1/testdata/invalid/missing-shared-entrypoint.json +0 -5
  575. package/contracts/ugc/v1/testdata/invalid/path-escape.json +0 -1
  576. package/contracts/ugc/v1/testdata/invalid/private-events-authority.json +0 -35
  577. package/contracts/ugc/v1/testdata/invalid/private-events-budget.json +0 -35
  578. package/contracts/ugc/v1/testdata/invalid/private-events-dependency.json +0 -27
  579. package/contracts/ugc/v1/testdata/invalid/private-events-empty.json +0 -20
  580. package/contracts/ugc/v1/testdata/invalid/private-events-identity.json +0 -34
  581. package/contracts/ugc/v1/testdata/invalid/private-events-missing.json +0 -13
  582. package/contracts/ugc/v1/testdata/invalid/private-events-optional.json +0 -38
  583. package/contracts/ugc/v1/testdata/invalid/private-events-path.json +0 -34
  584. package/contracts/ugc/v1/testdata/invalid/private-events-type.json +0 -34
  585. package/contracts/ugc/v1/testdata/invalid/private-events-unknown-ref.json +0 -34
  586. package/contracts/ugc/v1/testdata/invalid/private-events-version.json +0 -34
  587. package/contracts/ugc/v1/testdata/invalid/resource-bindings-identity.json +0 -18
  588. package/contracts/ugc/v1/testdata/invalid/resource-bindings-kind.json +0 -19
  589. package/contracts/ugc/v1/testdata/invalid/resource-bindings-missing.json +0 -6
  590. package/contracts/ugc/v1/testdata/invalid/resource-bindings-path.json +0 -6
  591. package/contracts/ugc/v1/testdata/invalid/resource-bindings-type.json +0 -8
  592. package/contracts/ugc/v1/testdata/invalid/resource-bindings-unknown.json +0 -18
  593. package/contracts/ugc/v1/testdata/invalid/scene-interactions-authority.json +0 -61
  594. package/contracts/ugc/v1/testdata/invalid/scene-interactions-core-unknown.json +0 -61
  595. package/contracts/ugc/v1/testdata/invalid/scene-interactions-dependency.json +0 -53
  596. package/contracts/ugc/v1/testdata/invalid/scene-interactions-identity.json +0 -60
  597. package/contracts/ugc/v1/testdata/invalid/scene-interactions-missing-transform.json +0 -50
  598. package/contracts/ugc/v1/testdata/invalid/scene-interactions-missing.json +0 -49
  599. package/contracts/ugc/v1/testdata/invalid/scene-interactions-optional.json +0 -64
  600. package/contracts/ugc/v1/testdata/invalid/scene-interactions-partial-transform.json +0 -59
  601. package/contracts/ugc/v1/testdata/invalid/scene-interactions-path.json +0 -60
  602. package/contracts/ugc/v1/testdata/invalid/scene-interactions-radius.json +0 -60
  603. package/contracts/ugc/v1/testdata/invalid/scene-interactions-unknown-target.json +0 -60
  604. package/contracts/ugc/v1/testdata/invalid/scene-interactions-version.json +0 -60
  605. package/contracts/ugc/v1/testdata/invalid/scene-presentation-authority.json +0 -166
  606. package/contracts/ugc/v1/testdata/invalid/scene-presentation-capability.json +0 -158
  607. package/contracts/ugc/v1/testdata/invalid/scene-presentation-identity.json +0 -165
  608. package/contracts/ugc/v1/testdata/invalid/scene-presentation-missing.json +0 -13
  609. package/contracts/ugc/v1/testdata/invalid/scene-presentation-optional.json +0 -169
  610. package/contracts/ugc/v1/testdata/invalid/scene-presentation-path.json +0 -165
  611. package/contracts/ugc/v1/testdata/invalid/scene-presentation-undeclared.json +0 -163
  612. package/contracts/ugc/v1/testdata/invalid/scene-presentation-unknown-material.json +0 -165
  613. package/contracts/ugc/v1/testdata/invalid/schema-incompatible.json +0 -1
  614. package/contracts/ugc/v1/testdata/invalid/unknown-required-component.json +0 -1
  615. package/contracts/ugc/v1/testdata/invalid/world-scene-dual-motion.json +0 -7
  616. package/contracts/ugc/v1/testdata/invalid/world-scene-identity.json +0 -90
  617. package/contracts/ugc/v1/testdata/invalid/world-scene-missing-capability.json +0 -85
  618. package/contracts/ugc/v1/testdata/invalid/world-scene-missing.json +0 -28
  619. package/contracts/ugc/v1/testdata/invalid/world-scene-optional-capability.json +0 -94
  620. package/contracts/ugc/v1/testdata/invalid/world-scene-path.json +0 -6
  621. package/contracts/ugc/v1/testdata/invalid/world-scene-version.json +0 -90
  622. package/contracts/ugc/v1/testdata/scene-provenance-vectors.json +0 -56
  623. package/contracts/ugc/v1/testdata/source-vectors.json +0 -83
  624. package/contracts/ugc/v1/testdata/valid/authored-avatar.json +0 -51
  625. package/contracts/ugc/v1/testdata/valid/boundary.json +0 -1
  626. package/contracts/ugc/v1/testdata/valid/components.json +0 -15
  627. package/contracts/ugc/v1/testdata/valid/cosmetic.json +0 -9
  628. package/contracts/ugc/v1/testdata/valid/ground-rules.json +0 -56
  629. package/contracts/ugc/v1/testdata/valid/minimal.json +0 -15
  630. package/contracts/ugc/v1/testdata/valid/prefabs.json +0 -11
  631. package/contracts/ugc/v1/testdata/valid/private-events.json +0 -34
  632. package/contracts/ugc/v1/testdata/valid/resource-bindings.json +0 -18
  633. package/contracts/ugc/v1/testdata/valid/scene-interactions.json +0 -60
  634. package/contracts/ugc/v1/testdata/valid/scene-presentation.json +0 -165
  635. package/contracts/ugc/v1/testdata/valid/scene.json +0 -6
  636. package/contracts/ugc/v1/testdata/valid/unknown-optional-component.json +0 -1
  637. package/contracts/ugc/v1/testdata/valid/world-scene.json +0 -90
  638. package/contracts/ugc/v1/testdata/vectors.json +0 -555
  639. package/contracts/ugc/v1/validation-report.schema.json +0 -61
  640. package/contracts/ugc/world-scene/v1/collision-identity.mjs +0 -73
  641. package/contracts/ugc/world-scene/v1/collision-target.schema.json +0 -18
  642. package/contracts/ugc/world-scene/v1/conformance/flight-avatar-vectors.mjs +0 -27
  643. package/contracts/ugc/world-scene/v1/conformance/run-vectors.mjs +0 -29
  644. package/contracts/ugc/world-scene/v1/coordinates.schema.json +0 -16
  645. package/contracts/ugc/world-scene/v1/flight-avatar-actions.mjs +0 -3
  646. package/contracts/ugc/world-scene/v1/flight-avatar-sample.schema.json +0 -14
  647. package/contracts/ugc/world-scene/v1/scene-declaration.schema.json +0 -40
  648. package/contracts/ugc/world-scene/v1/testdata/flight-avatar-actions.json +0 -48
  649. package/contracts/ugc/world-scene/v1/testdata/scene-declaration-vectors.json +0 -103
  650. package/contracts/ugc/world-scene/v1/testdata/vectors.json +0 -55
  651. package/contracts/ugc/world-scene/v1/visual-tileset.mjs +0 -112
  652. package/contracts/ugc/world-scene/v1/visual-tileset.schema.json +0 -35
  653. package/contracts/ugc/world-scene/v2/ASSET-GRAPH.md +0 -13
  654. package/contracts/ugc/world-scene/v2/ENCODED-RESOURCES.md +0 -117
  655. package/contracts/ugc/world-scene/v2/PARTITION.md +0 -59
  656. package/contracts/ugc/world-scene/v2/VISUAL-TILESET.md +0 -80
  657. package/contracts/ugc/world-scene/v2/asset-graph.mjs +0 -169
  658. package/contracts/ugc/world-scene/v2/collision-index.schema.json +0 -29
  659. package/contracts/ugc/world-scene/v2/collision-partition.schema.json +0 -37
  660. package/contracts/ugc/world-scene/v2/conformance/asset-graph-vectors.mjs +0 -52
  661. package/contracts/ugc/world-scene/v2/conformance/collision-index-vectors.mjs +0 -29
  662. package/contracts/ugc/world-scene/v2/conformance/encoded-resource-vectors.mjs +0 -17
  663. package/contracts/ugc/world-scene/v2/conformance/partition-vectors.mjs +0 -74
  664. package/contracts/ugc/world-scene/v2/conformance/visual-vectors.mjs +0 -24
  665. package/contracts/ugc/world-scene/v2/contract-set.json +0 -50
  666. package/contracts/ugc/world-scene/v2/encoded-resource.schema.json +0 -17
  667. package/contracts/ugc/world-scene/v2/scene-declaration.schema.json +0 -21
  668. package/contracts/ugc/world-scene/v2/testdata/asset-graph-vectors.json +0 -3354
  669. package/contracts/ugc/world-scene/v2/testdata/collision-index-vectors.json +0 -103
  670. package/contracts/ugc/world-scene/v2/testdata/encoded-resource-vectors.json +0 -372
  671. package/contracts/ugc/world-scene/v2/testdata/visual-vectors.json +0 -43
  672. package/contracts/ugc/world-scene/v2/vendor/pako-raw-inflate.provenance.json +0 -43
  673. package/contracts/ugc/world-scene/v2/visual-tileset.mjs +0 -107
  674. package/contracts/ugc/world-scene/v2/visual-tileset.schema.json +0 -33
  675. package/contracts/ugc/world-scene-runtime/v1/runtime-plan.schema.json +0 -660
  676. package/contracts/ugc/world-scene-runtime/v1/testdata/policy-vectors.json +0 -40
  677. package/contracts/ugc/world-scene-runtime/v2/COLLISION-CAPACITY.md +0 -74
  678. package/contracts/ugc/world-scene-runtime/v2/REPORT.md +0 -91
  679. package/contracts/ugc/world-scene-runtime/v2/RUNTIME-PROJECTION.md +0 -110
  680. package/contracts/ugc/world-scene-runtime/v2/VISUAL-WORK.md +0 -72
  681. package/contracts/ugc/world-scene-runtime/v2/collision-capacity.schema.json +0 -62
  682. package/contracts/ugc/world-scene-runtime/v2/conformance/capacity-vectors.mjs +0 -25
  683. package/contracts/ugc/world-scene-runtime/v2/conformance/report-vectors.mjs +0 -141
  684. package/contracts/ugc/world-scene-runtime/v2/conformance/runtime-vectors.mjs +0 -41
  685. package/contracts/ugc/world-scene-runtime/v2/conformance/visual-work-vectors.mjs +0 -21
  686. package/contracts/ugc/world-scene-runtime/v2/contract-set.json +0 -45
  687. package/contracts/ugc/world-scene-runtime/v2/report.mjs +0 -184
  688. package/contracts/ugc/world-scene-runtime/v2/runtime-plan.schema.json +0 -38
  689. package/contracts/ugc/world-scene-runtime/v2/testdata/capacity-vectors.json +0 -30
  690. package/contracts/ugc/world-scene-runtime/v2/testdata/report-fixture.json +0 -250
  691. package/contracts/ugc/world-scene-runtime/v2/testdata/runtime-vectors.json +0 -39
  692. package/contracts/ugc/world-scene-runtime/v2/testdata/visual-work-vectors.json +0 -28
  693. package/contracts/ugc/world-scene-runtime/v2/visual-work-policy.mjs +0 -59
  694. package/document-presentation.snapshot.lock.json +0 -40
  695. package/ground-endpoint.snapshot.lock.json +0 -36
  696. package/ground-spaces.snapshot.lock.json +0 -57
  697. package/lib/creator-source-archive.mjs +0 -182
  698. package/node_modules/@esbuild/darwin-arm64/README.md +0 -3
  699. package/node_modules/@esbuild/darwin-arm64/bin/esbuild +0 -0
  700. package/node_modules/@esbuild/darwin-arm64/package.json +0 -20
  701. package/node_modules/@esbuild/darwin-x64/README.md +0 -3
  702. package/node_modules/@esbuild/darwin-x64/bin/esbuild +0 -0
  703. package/node_modules/@esbuild/darwin-x64/package.json +0 -20
  704. package/node_modules/@esbuild/linux-arm64/README.md +0 -3
  705. package/node_modules/@esbuild/linux-arm64/bin/esbuild +0 -0
  706. package/node_modules/@esbuild/linux-arm64/package.json +0 -20
  707. package/node_modules/@esbuild/linux-x64/README.md +0 -3
  708. package/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  709. package/node_modules/@esbuild/linux-x64/package.json +0 -20
  710. package/node_modules/@modelcontextprotocol/core/LICENSE +0 -216
  711. package/node_modules/@modelcontextprotocol/core/README.md +0 -40
  712. package/node_modules/@modelcontextprotocol/core/dist/auth-BWdKR39I.d.mts +0 -8501
  713. package/node_modules/@modelcontextprotocol/core/dist/auth-BWdKR39I.d.mts.map +0 -1
  714. package/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs +0 -1678
  715. package/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs.map +0 -1
  716. package/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs +0 -2899
  717. package/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs.map +0 -1
  718. package/node_modules/@modelcontextprotocol/core/dist/auth-hYtaIUZm.d.cts +0 -8501
  719. package/node_modules/@modelcontextprotocol/core/dist/auth-hYtaIUZm.d.cts.map +0 -1
  720. package/node_modules/@modelcontextprotocol/core/dist/index.cjs +0 -175
  721. package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +0 -2
  722. package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +0 -2
  723. package/node_modules/@modelcontextprotocol/core/dist/index.mjs +0 -3
  724. package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +0 -201
  725. package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +0 -99
  726. package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts.map +0 -1
  727. package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +0 -99
  728. package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts.map +0 -1
  729. package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +0 -3
  730. package/node_modules/@modelcontextprotocol/core/package.json +0 -85
  731. package/node_modules/@modelcontextprotocol/server/LICENSE +0 -216
  732. package/node_modules/@modelcontextprotocol/server/README.md +0 -30
  733. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs +0 -7514
  734. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs.map +0 -1
  735. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CgI-5L6O.d.mts +0 -1071
  736. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CgI-5L6O.d.mts.map +0 -1
  737. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-FOQRM7up.d.cts +0 -1071
  738. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-FOQRM7up.d.cts.map +0 -1
  739. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs +0 -7531
  740. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs.map +0 -1
  741. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs +0 -986
  742. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs.map +0 -1
  743. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts +0 -74
  744. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts.map +0 -1
  745. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts +0 -74
  746. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts.map +0 -1
  747. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs +0 -981
  748. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs.map +0 -1
  749. package/node_modules/@modelcontextprotocol/server/dist/chunk-Bnu9O96Y.cjs +0 -60
  750. package/node_modules/@modelcontextprotocol/server/dist/chunk-Br0eD_fh.mjs +0 -42
  751. package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-CLhGwQTn.d.mts +0 -4043
  752. package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-CLhGwQTn.d.mts.map +0 -1
  753. package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-dBHMsxwf.d.cts +0 -4045
  754. package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-dBHMsxwf.d.cts.map +0 -1
  755. package/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs +0 -46
  756. package/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs.map +0 -1
  757. package/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs +0 -34
  758. package/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs.map +0 -1
  759. package/node_modules/@modelcontextprotocol/server/dist/index.cjs +0 -2055
  760. package/node_modules/@modelcontextprotocol/server/dist/index.cjs.map +0 -1
  761. package/node_modules/@modelcontextprotocol/server/dist/index.d.cts +0 -739
  762. package/node_modules/@modelcontextprotocol/server/dist/index.d.cts.map +0 -1
  763. package/node_modules/@modelcontextprotocol/server/dist/index.d.mts +0 -739
  764. package/node_modules/@modelcontextprotocol/server/dist/index.d.mts.map +0 -1
  765. package/node_modules/@modelcontextprotocol/server/dist/index.mjs +0 -1870
  766. package/node_modules/@modelcontextprotocol/server/dist/index.mjs.map +0 -1
  767. package/node_modules/@modelcontextprotocol/server/dist/mcp-D7GmuPnv.cjs +0 -2022
  768. package/node_modules/@modelcontextprotocol/server/dist/mcp-D7GmuPnv.cjs.map +0 -1
  769. package/node_modules/@modelcontextprotocol/server/dist/mcp-DXXb3Vv3.mjs +0 -1931
  770. package/node_modules/@modelcontextprotocol/server/dist/mcp-DXXb3Vv3.mjs.map +0 -1
  771. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs +0 -23
  772. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs.map +0 -1
  773. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts +0 -11
  774. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts.map +0 -1
  775. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts +0 -11
  776. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts.map +0 -1
  777. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs +0 -22
  778. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs.map +0 -1
  779. package/node_modules/@modelcontextprotocol/server/dist/shimsNode.cjs +0 -12
  780. package/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.cts +0 -3
  781. package/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.mts +0 -3
  782. package/node_modules/@modelcontextprotocol/server/dist/shimsNode.mjs +0 -4
  783. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs +0 -30
  784. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs.map +0 -1
  785. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts +0 -10
  786. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts.map +0 -1
  787. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts +0 -10
  788. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts.map +0 -1
  789. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs +0 -29
  790. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs.map +0 -1
  791. package/node_modules/@modelcontextprotocol/server/dist/src-CX2iR2pK.mjs +0 -7606
  792. package/node_modules/@modelcontextprotocol/server/dist/src-CX2iR2pK.mjs.map +0 -1
  793. package/node_modules/@modelcontextprotocol/server/dist/src-STyD_Vvf.cjs +0 -8104
  794. package/node_modules/@modelcontextprotocol/server/dist/src-STyD_Vvf.cjs.map +0 -1
  795. package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs +0 -564
  796. package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs.map +0 -1
  797. package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts +0 -107
  798. package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts.map +0 -1
  799. package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts +0 -107
  800. package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts.map +0 -1
  801. package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs +0 -562
  802. package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs.map +0 -1
  803. package/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts +0 -1099
  804. package/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts.map +0 -1
  805. package/node_modules/@modelcontextprotocol/server/dist/types-DsbMXNFL.d.cts +0 -1099
  806. package/node_modules/@modelcontextprotocol/server/dist/types-DsbMXNFL.d.cts.map +0 -1
  807. package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.cjs +0 -5
  808. package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.cts +0 -2
  809. package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.mts +0 -2
  810. package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.mjs +0 -3
  811. package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.cjs +0 -3
  812. package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.cts +0 -2
  813. package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.mts +0 -2
  814. package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.mjs +0 -3
  815. package/node_modules/@modelcontextprotocol/server/package.json +0 -160
  816. package/node_modules/esbuild/LICENSE.md +0 -21
  817. package/node_modules/esbuild/README.md +0 -3
  818. package/node_modules/esbuild/bin/esbuild +0 -223
  819. package/node_modules/esbuild/install.js +0 -289
  820. package/node_modules/esbuild/lib/main.d.ts +0 -716
  821. package/node_modules/esbuild/lib/main.js +0 -2242
  822. package/node_modules/esbuild/package.json +0 -49
  823. package/node_modules/smol-toml/LICENSE +0 -24
  824. package/node_modules/smol-toml/README.md +0 -236
  825. package/node_modules/smol-toml/dist/date.d.ts +0 -41
  826. package/node_modules/smol-toml/dist/date.js +0 -127
  827. package/node_modules/smol-toml/dist/error.d.ts +0 -38
  828. package/node_modules/smol-toml/dist/error.js +0 -63
  829. package/node_modules/smol-toml/dist/extract.d.ts +0 -30
  830. package/node_modules/smol-toml/dist/extract.js +0 -109
  831. package/node_modules/smol-toml/dist/index.cjs +0 -906
  832. package/node_modules/smol-toml/dist/index.d.ts +0 -43
  833. package/node_modules/smol-toml/dist/index.js +0 -33
  834. package/node_modules/smol-toml/dist/parse.d.ts +0 -37
  835. package/node_modules/smol-toml/dist/parse.js +0 -148
  836. package/node_modules/smol-toml/dist/primitive.d.ts +0 -31
  837. package/node_modules/smol-toml/dist/primitive.js +0 -178
  838. package/node_modules/smol-toml/dist/stringify.d.ts +0 -31
  839. package/node_modules/smol-toml/dist/stringify.js +0 -163
  840. package/node_modules/smol-toml/dist/struct.d.ts +0 -32
  841. package/node_modules/smol-toml/dist/struct.js +0 -194
  842. package/node_modules/smol-toml/dist/util.d.ts +0 -42
  843. package/node_modules/smol-toml/dist/util.js +0 -106
  844. package/node_modules/smol-toml/package.json +0 -54
  845. package/node_modules/zod/LICENSE +0 -21
  846. package/node_modules/zod/README.md +0 -218
  847. package/node_modules/zod/compile.cjs +0 -77
  848. package/node_modules/zod/compile.d.cts +0 -1
  849. package/node_modules/zod/compile.d.ts +0 -1
  850. package/node_modules/zod/compile.js +0 -52
  851. package/node_modules/zod/index.cjs +0 -33
  852. package/node_modules/zod/index.d.cts +0 -3
  853. package/node_modules/zod/index.d.ts +0 -3
  854. package/node_modules/zod/index.js +0 -7
  855. package/node_modules/zod/locales/index.cjs +0 -17
  856. package/node_modules/zod/locales/index.d.cts +0 -1
  857. package/node_modules/zod/locales/index.d.ts +0 -1
  858. package/node_modules/zod/locales/index.js +0 -1
  859. package/node_modules/zod/locales/package.json +0 -7
  860. package/node_modules/zod/mini/index.cjs +0 -32
  861. package/node_modules/zod/mini/index.d.cts +0 -3
  862. package/node_modules/zod/mini/index.d.ts +0 -3
  863. package/node_modules/zod/mini/index.js +0 -3
  864. package/node_modules/zod/mini/package.json +0 -7
  865. package/node_modules/zod/package.json +0 -146
  866. package/node_modules/zod/src/compile.ts +0 -56
  867. package/node_modules/zod/src/index.ts +0 -7
  868. package/node_modules/zod/src/locales/index.ts +0 -1
  869. package/node_modules/zod/src/mini/index.ts +0 -3
  870. package/node_modules/zod/src/v3/ZodError.ts +0 -340
  871. package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  872. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  873. package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  874. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  875. package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  876. package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  877. package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  878. package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  879. package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  880. package/node_modules/zod/src/v3/errors.ts +0 -13
  881. package/node_modules/zod/src/v3/external.ts +0 -6
  882. package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  883. package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  884. package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  885. package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  886. package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  887. package/node_modules/zod/src/v3/helpers/util.ts +0 -224
  888. package/node_modules/zod/src/v3/index.ts +0 -4
  889. package/node_modules/zod/src/v3/locales/en.ts +0 -124
  890. package/node_modules/zod/src/v3/standard-schema.ts +0 -113
  891. package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  892. package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  893. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  894. package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  895. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  896. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  897. package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  898. package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  899. package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  900. package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  901. package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  902. package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  903. package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  904. package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  905. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  906. package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  907. package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  908. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  909. package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  910. package/node_modules/zod/src/v3/tests/error.test.ts +0 -586
  911. package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  912. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  913. package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  914. package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  915. package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  916. package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -128
  917. package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  918. package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -206
  919. package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  920. package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  921. package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  922. package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  923. package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  924. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  925. package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  926. package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  927. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  928. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  929. package/node_modules/zod/src/v3/tests/object.test.ts +0 -431
  930. package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  931. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  932. package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  933. package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  934. package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  935. package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  936. package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  937. package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  938. package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  939. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -114
  940. package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  941. package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  942. package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  943. package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  944. package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  945. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  946. package/node_modules/zod/src/v3/tests/string.test.ts +0 -922
  947. package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  948. package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  949. package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  950. package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  951. package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  952. package/node_modules/zod/src/v3/types.ts +0 -5138
  953. package/node_modules/zod/src/v4/classic/checks.ts +0 -33
  954. package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  955. package/node_modules/zod/src/v4/classic/compat.ts +0 -78
  956. package/node_modules/zod/src/v4/classic/deep-partial.ts +0 -76
  957. package/node_modules/zod/src/v4/classic/errors.ts +0 -97
  958. package/node_modules/zod/src/v4/classic/external.ts +0 -55
  959. package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -721
  960. package/node_modules/zod/src/v4/classic/in-out.ts +0 -45
  961. package/node_modules/zod/src/v4/classic/index.ts +0 -5
  962. package/node_modules/zod/src/v4/classic/iso.ts +0 -20
  963. package/node_modules/zod/src/v4/classic/parse.ts +0 -88
  964. package/node_modules/zod/src/v4/classic/schemas.ts +0 -2862
  965. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  966. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -86
  967. package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  968. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -351
  969. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  970. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  971. package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  972. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -83
  973. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  974. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -604
  975. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  976. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -572
  977. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -704
  978. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  979. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  980. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +0 -76
  981. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  982. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +0 -720
  983. package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -92
  984. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -316
  985. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +0 -380
  986. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +0 -32
  987. package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -455
  988. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  989. package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  990. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -221
  991. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -836
  992. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -296
  993. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -917
  994. package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -979
  995. package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
  996. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
  997. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  998. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -1310
  999. package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -391
  1000. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  1001. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -32
  1002. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -67
  1003. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +0 -159
  1004. package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -958
  1005. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +0 -281
  1006. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -107
  1007. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -334
  1008. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +0 -183
  1009. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -39
  1010. package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  1011. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -262
  1012. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -128
  1013. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
  1014. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
  1015. package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -342
  1016. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  1017. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  1018. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
  1019. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  1020. package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -362
  1021. package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -950
  1022. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +0 -234
  1023. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -366
  1024. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -497
  1025. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  1026. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
  1027. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
  1028. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -44
  1029. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
  1030. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  1031. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  1032. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  1033. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -184
  1034. package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -885
  1035. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -662
  1036. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +0 -68
  1037. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -693
  1038. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  1039. package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -190
  1040. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
  1041. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
  1042. package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1346
  1043. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -124
  1044. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -780
  1045. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  1046. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -4537
  1047. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
  1048. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -511
  1049. package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -310
  1050. package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  1051. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +0 -76
  1052. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  1053. package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  1054. package/node_modules/zod/src/v4/core/api.ts +0 -1859
  1055. package/node_modules/zod/src/v4/core/checks.ts +0 -1306
  1056. package/node_modules/zod/src/v4/core/compile.ts +0 -2188
  1057. package/node_modules/zod/src/v4/core/core.ts +0 -232
  1058. package/node_modules/zod/src/v4/core/doc.ts +0 -48
  1059. package/node_modules/zod/src/v4/core/errors.ts +0 -546
  1060. package/node_modules/zod/src/v4/core/index.ts +0 -19
  1061. package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -131
  1062. package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -830
  1063. package/node_modules/zod/src/v4/core/json-schema.ts +0 -148
  1064. package/node_modules/zod/src/v4/core/memoizer.ts +0 -284
  1065. package/node_modules/zod/src/v4/core/parse.ts +0 -288
  1066. package/node_modules/zod/src/v4/core/regexes.ts +0 -207
  1067. package/node_modules/zod/src/v4/core/registries.ts +0 -105
  1068. package/node_modules/zod/src/v4/core/schemas.ts +0 -5028
  1069. package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  1070. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +0 -969
  1071. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +0 -89
  1072. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +0 -26
  1073. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +0 -34
  1074. package/node_modules/zod/src/v4/core/tests/compile.test.ts +0 -1639
  1075. package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  1076. package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  1077. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  1078. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -214
  1079. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  1080. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -180
  1081. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
  1082. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  1083. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
  1084. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  1085. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +0 -42
  1086. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  1087. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +0 -69
  1088. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  1089. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
  1090. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
  1091. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  1092. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +0 -51
  1093. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +0 -31
  1094. package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -855
  1095. package/node_modules/zod/src/v4/core/util.ts +0 -1209
  1096. package/node_modules/zod/src/v4/core/versions.ts +0 -5
  1097. package/node_modules/zod/src/v4/core/visit.ts +0 -193
  1098. package/node_modules/zod/src/v4/core/zsf.ts +0 -323
  1099. package/node_modules/zod/src/v4/index.ts +0 -4
  1100. package/node_modules/zod/src/v4/locales/ar.ts +0 -118
  1101. package/node_modules/zod/src/v4/locales/az.ts +0 -114
  1102. package/node_modules/zod/src/v4/locales/be.ts +0 -186
  1103. package/node_modules/zod/src/v4/locales/bg.ts +0 -131
  1104. package/node_modules/zod/src/v4/locales/bn.ts +0 -121
  1105. package/node_modules/zod/src/v4/locales/ca.ts +0 -119
  1106. package/node_modules/zod/src/v4/locales/ckb.ts +0 -138
  1107. package/node_modules/zod/src/v4/locales/cs.ts +0 -121
  1108. package/node_modules/zod/src/v4/locales/da.ts +0 -126
  1109. package/node_modules/zod/src/v4/locales/de.ts +0 -119
  1110. package/node_modules/zod/src/v4/locales/el.ts +0 -122
  1111. package/node_modules/zod/src/v4/locales/en.ts +0 -134
  1112. package/node_modules/zod/src/v4/locales/eo.ts +0 -121
  1113. package/node_modules/zod/src/v4/locales/es.ts +0 -143
  1114. package/node_modules/zod/src/v4/locales/fa.ts +0 -129
  1115. package/node_modules/zod/src/v4/locales/fi.ts +0 -124
  1116. package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -119
  1117. package/node_modules/zod/src/v4/locales/fr.ts +0 -137
  1118. package/node_modules/zod/src/v4/locales/gu.ts +0 -121
  1119. package/node_modules/zod/src/v4/locales/he.ts +0 -251
  1120. package/node_modules/zod/src/v4/locales/hi.ts +0 -124
  1121. package/node_modules/zod/src/v4/locales/hr.ts +0 -133
  1122. package/node_modules/zod/src/v4/locales/hu.ts +0 -120
  1123. package/node_modules/zod/src/v4/locales/hy.ts +0 -173
  1124. package/node_modules/zod/src/v4/locales/id.ts +0 -118
  1125. package/node_modules/zod/src/v4/locales/index.ts +0 -62
  1126. package/node_modules/zod/src/v4/locales/is.ts +0 -122
  1127. package/node_modules/zod/src/v4/locales/it.ts +0 -119
  1128. package/node_modules/zod/src/v4/locales/ja.ts +0 -117
  1129. package/node_modules/zod/src/v4/locales/ka.ts +0 -126
  1130. package/node_modules/zod/src/v4/locales/kh.ts +0 -7
  1131. package/node_modules/zod/src/v4/locales/km.ts +0 -122
  1132. package/node_modules/zod/src/v4/locales/kn.ts +0 -124
  1133. package/node_modules/zod/src/v4/locales/ko.ts +0 -124
  1134. package/node_modules/zod/src/v4/locales/lt.ts +0 -241
  1135. package/node_modules/zod/src/v4/locales/mk.ts +0 -121
  1136. package/node_modules/zod/src/v4/locales/ms.ts +0 -118
  1137. package/node_modules/zod/src/v4/locales/ne.ts +0 -126
  1138. package/node_modules/zod/src/v4/locales/nl.ts +0 -124
  1139. package/node_modules/zod/src/v4/locales/nn.ts +0 -119
  1140. package/node_modules/zod/src/v4/locales/no.ts +0 -119
  1141. package/node_modules/zod/src/v4/locales/ota.ts +0 -120
  1142. package/node_modules/zod/src/v4/locales/pl.ts +0 -121
  1143. package/node_modules/zod/src/v4/locales/ps.ts +0 -129
  1144. package/node_modules/zod/src/v4/locales/pt-BR.ts +0 -159
  1145. package/node_modules/zod/src/v4/locales/pt.ts +0 -157
  1146. package/node_modules/zod/src/v4/locales/ro.ts +0 -130
  1147. package/node_modules/zod/src/v4/locales/ru.ts +0 -186
  1148. package/node_modules/zod/src/v4/locales/sk.ts +0 -121
  1149. package/node_modules/zod/src/v4/locales/sl.ts +0 -121
  1150. package/node_modules/zod/src/v4/locales/sv.ts +0 -122
  1151. package/node_modules/zod/src/v4/locales/ta.ts +0 -121
  1152. package/node_modules/zod/src/v4/locales/th.ts +0 -122
  1153. package/node_modules/zod/src/v4/locales/tk.ts +0 -111
  1154. package/node_modules/zod/src/v4/locales/tr.ts +0 -114
  1155. package/node_modules/zod/src/v4/locales/ua.ts +0 -7
  1156. package/node_modules/zod/src/v4/locales/uk.ts +0 -120
  1157. package/node_modules/zod/src/v4/locales/ur.ts +0 -122
  1158. package/node_modules/zod/src/v4/locales/uz.ts +0 -118
  1159. package/node_modules/zod/src/v4/locales/vi.ts +0 -120
  1160. package/node_modules/zod/src/v4/locales/yo.ts +0 -127
  1161. package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -119
  1162. package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -118
  1163. package/node_modules/zod/src/v4/mini/checks.ts +0 -33
  1164. package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  1165. package/node_modules/zod/src/v4/mini/deep-partial.ts +0 -73
  1166. package/node_modules/zod/src/v4/mini/external.ts +0 -50
  1167. package/node_modules/zod/src/v4/mini/in-out.ts +0 -45
  1168. package/node_modules/zod/src/v4/mini/index.ts +0 -3
  1169. package/node_modules/zod/src/v4/mini/iso.ts +0 -66
  1170. package/node_modules/zod/src/v4/mini/parse.ts +0 -16
  1171. package/node_modules/zod/src/v4/mini/schemas.ts +0 -2026
  1172. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -57
  1173. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -190
  1174. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  1175. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -158
  1176. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -582
  1177. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  1178. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +0 -84
  1179. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +0 -54
  1180. package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -41
  1181. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -14
  1182. package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -1060
  1183. package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -109
  1184. package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -292
  1185. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  1186. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -325
  1187. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  1188. package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -373
  1189. package/node_modules/zod/src/v4-mini/index.ts +0 -3
  1190. package/node_modules/zod/v3/ZodError.cjs +0 -148
  1191. package/node_modules/zod/v3/ZodError.d.cts +0 -164
  1192. package/node_modules/zod/v3/ZodError.d.ts +0 -164
  1193. package/node_modules/zod/v3/ZodError.js +0 -143
  1194. package/node_modules/zod/v3/errors.cjs +0 -17
  1195. package/node_modules/zod/v3/errors.d.cts +0 -5
  1196. package/node_modules/zod/v3/errors.d.ts +0 -5
  1197. package/node_modules/zod/v3/errors.js +0 -9
  1198. package/node_modules/zod/v3/external.cjs +0 -22
  1199. package/node_modules/zod/v3/external.d.cts +0 -6
  1200. package/node_modules/zod/v3/external.d.ts +0 -6
  1201. package/node_modules/zod/v3/external.js +0 -6
  1202. package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  1203. package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  1204. package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  1205. package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  1206. package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  1207. package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  1208. package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  1209. package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  1210. package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  1211. package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  1212. package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  1213. package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  1214. package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  1215. package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  1216. package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  1217. package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  1218. package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  1219. package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  1220. package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  1221. package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  1222. package/node_modules/zod/v3/helpers/util.cjs +0 -137
  1223. package/node_modules/zod/v3/helpers/util.d.cts +0 -85
  1224. package/node_modules/zod/v3/helpers/util.d.ts +0 -85
  1225. package/node_modules/zod/v3/helpers/util.js +0 -133
  1226. package/node_modules/zod/v3/index.cjs +0 -33
  1227. package/node_modules/zod/v3/index.d.cts +0 -4
  1228. package/node_modules/zod/v3/index.d.ts +0 -4
  1229. package/node_modules/zod/v3/index.js +0 -4
  1230. package/node_modules/zod/v3/locales/en.cjs +0 -112
  1231. package/node_modules/zod/v3/locales/en.d.cts +0 -3
  1232. package/node_modules/zod/v3/locales/en.d.ts +0 -3
  1233. package/node_modules/zod/v3/locales/en.js +0 -109
  1234. package/node_modules/zod/v3/package.json +0 -7
  1235. package/node_modules/zod/v3/standard-schema.cjs +0 -2
  1236. package/node_modules/zod/v3/standard-schema.d.cts +0 -102
  1237. package/node_modules/zod/v3/standard-schema.d.ts +0 -102
  1238. package/node_modules/zod/v3/standard-schema.js +0 -1
  1239. package/node_modules/zod/v3/types.cjs +0 -3779
  1240. package/node_modules/zod/v3/types.d.cts +0 -1034
  1241. package/node_modules/zod/v3/types.d.ts +0 -1034
  1242. package/node_modules/zod/v3/types.js +0 -3697
  1243. package/node_modules/zod/v4/classic/checks.cjs +0 -34
  1244. package/node_modules/zod/v4/classic/checks.d.cts +0 -1
  1245. package/node_modules/zod/v4/classic/checks.d.ts +0 -1
  1246. package/node_modules/zod/v4/classic/checks.js +0 -1
  1247. package/node_modules/zod/v4/classic/coerce.cjs +0 -47
  1248. package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  1249. package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  1250. package/node_modules/zod/v4/classic/coerce.js +0 -17
  1251. package/node_modules/zod/v4/classic/compat.cjs +0 -61
  1252. package/node_modules/zod/v4/classic/compat.d.cts +0 -48
  1253. package/node_modules/zod/v4/classic/compat.d.ts +0 -48
  1254. package/node_modules/zod/v4/classic/compat.js +0 -31
  1255. package/node_modules/zod/v4/classic/deep-partial.cjs +0 -39
  1256. package/node_modules/zod/v4/classic/deep-partial.d.cts +0 -14
  1257. package/node_modules/zod/v4/classic/deep-partial.d.ts +0 -14
  1258. package/node_modules/zod/v4/classic/deep-partial.js +0 -13
  1259. package/node_modules/zod/v4/classic/errors.cjs +0 -83
  1260. package/node_modules/zod/v4/classic/errors.d.cts +0 -29
  1261. package/node_modules/zod/v4/classic/errors.d.ts +0 -29
  1262. package/node_modules/zod/v4/classic/errors.js +0 -57
  1263. package/node_modules/zod/v4/classic/external.cjs +0 -76
  1264. package/node_modules/zod/v4/classic/external.d.cts +0 -19
  1265. package/node_modules/zod/v4/classic/external.d.ts +0 -19
  1266. package/node_modules/zod/v4/classic/external.js +0 -17
  1267. package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -686
  1268. package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
  1269. package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
  1270. package/node_modules/zod/v4/classic/from-json-schema.js +0 -660
  1271. package/node_modules/zod/v4/classic/in-out.cjs +0 -63
  1272. package/node_modules/zod/v4/classic/in-out.d.cts +0 -8
  1273. package/node_modules/zod/v4/classic/in-out.d.ts +0 -8
  1274. package/node_modules/zod/v4/classic/in-out.js +0 -36
  1275. package/node_modules/zod/v4/classic/index.cjs +0 -33
  1276. package/node_modules/zod/v4/classic/index.d.cts +0 -3
  1277. package/node_modules/zod/v4/classic/index.d.ts +0 -3
  1278. package/node_modules/zod/v4/classic/index.js +0 -4
  1279. package/node_modules/zod/v4/classic/iso.cjs +0 -49
  1280. package/node_modules/zod/v4/classic/iso.d.cts +0 -7
  1281. package/node_modules/zod/v4/classic/iso.d.ts +0 -7
  1282. package/node_modules/zod/v4/classic/iso.js +0 -15
  1283. package/node_modules/zod/v4/classic/package.json +0 -7
  1284. package/node_modules/zod/v4/classic/parse.cjs +0 -44
  1285. package/node_modules/zod/v4/classic/parse.d.cts +0 -44
  1286. package/node_modules/zod/v4/classic/parse.d.ts +0 -44
  1287. package/node_modules/zod/v4/classic/parse.js +0 -16
  1288. package/node_modules/zod/v4/classic/schemas.cjs +0 -1611
  1289. package/node_modules/zod/v4/classic/schemas.d.cts +0 -802
  1290. package/node_modules/zod/v4/classic/schemas.d.ts +0 -802
  1291. package/node_modules/zod/v4/classic/schemas.js +0 -1491
  1292. package/node_modules/zod/v4/core/api.cjs +0 -1246
  1293. package/node_modules/zod/v4/core/api.d.cts +0 -329
  1294. package/node_modules/zod/v4/core/api.d.ts +0 -329
  1295. package/node_modules/zod/v4/core/api.js +0 -1104
  1296. package/node_modules/zod/v4/core/checks.cjs +0 -607
  1297. package/node_modules/zod/v4/core/checks.d.cts +0 -278
  1298. package/node_modules/zod/v4/core/checks.d.ts +0 -278
  1299. package/node_modules/zod/v4/core/checks.js +0 -581
  1300. package/node_modules/zod/v4/core/compile.cjs +0 -1813
  1301. package/node_modules/zod/v4/core/compile.d.cts +0 -51
  1302. package/node_modules/zod/v4/core/compile.d.ts +0 -51
  1303. package/node_modules/zod/v4/core/compile.js +0 -1783
  1304. package/node_modules/zod/v4/core/core.cjs +0 -148
  1305. package/node_modules/zod/v4/core/core.d.cts +0 -82
  1306. package/node_modules/zod/v4/core/core.d.ts +0 -82
  1307. package/node_modules/zod/v4/core/core.js +0 -141
  1308. package/node_modules/zod/v4/core/doc.cjs +0 -37
  1309. package/node_modules/zod/v4/core/doc.d.cts +0 -16
  1310. package/node_modules/zod/v4/core/doc.d.ts +0 -16
  1311. package/node_modules/zod/v4/core/doc.js +0 -33
  1312. package/node_modules/zod/v4/core/errors.cjs +0 -301
  1313. package/node_modules/zod/v4/core/errors.d.cts +0 -225
  1314. package/node_modules/zod/v4/core/errors.d.ts +0 -225
  1315. package/node_modules/zod/v4/core/errors.js +0 -270
  1316. package/node_modules/zod/v4/core/index.cjs +0 -51
  1317. package/node_modules/zod/v4/core/index.d.cts +0 -19
  1318. package/node_modules/zod/v4/core/index.d.ts +0 -19
  1319. package/node_modules/zod/v4/core/index.js +0 -19
  1320. package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -103
  1321. package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
  1322. package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
  1323. package/node_modules/zod/v4/core/json-schema-generator.js +0 -99
  1324. package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -813
  1325. package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
  1326. package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
  1327. package/node_modules/zod/v4/core/json-schema-processors.js +0 -747
  1328. package/node_modules/zod/v4/core/json-schema.cjs +0 -2
  1329. package/node_modules/zod/v4/core/json-schema.d.cts +0 -89
  1330. package/node_modules/zod/v4/core/json-schema.d.ts +0 -89
  1331. package/node_modules/zod/v4/core/json-schema.js +0 -1
  1332. package/node_modules/zod/v4/core/memoizer.cjs +0 -272
  1333. package/node_modules/zod/v4/core/memoizer.d.cts +0 -15
  1334. package/node_modules/zod/v4/core/memoizer.d.ts +0 -15
  1335. package/node_modules/zod/v4/core/memoizer.js +0 -265
  1336. package/node_modules/zod/v4/core/package.json +0 -7
  1337. package/node_modules/zod/v4/core/parse.cjs +0 -193
  1338. package/node_modules/zod/v4/core/parse.d.cts +0 -52
  1339. package/node_modules/zod/v4/core/parse.d.ts +0 -52
  1340. package/node_modules/zod/v4/core/parse.js +0 -154
  1341. package/node_modules/zod/v4/core/regexes.cjs +0 -184
  1342. package/node_modules/zod/v4/core/regexes.d.cts +0 -87
  1343. package/node_modules/zod/v4/core/regexes.d.ts +0 -87
  1344. package/node_modules/zod/v4/core/regexes.js +0 -150
  1345. package/node_modules/zod/v4/core/registries.cjs +0 -56
  1346. package/node_modules/zod/v4/core/registries.d.cts +0 -35
  1347. package/node_modules/zod/v4/core/registries.d.ts +0 -35
  1348. package/node_modules/zod/v4/core/registries.js +0 -51
  1349. package/node_modules/zod/v4/core/schemas.cjs +0 -2481
  1350. package/node_modules/zod/v4/core/schemas.d.cts +0 -1253
  1351. package/node_modules/zod/v4/core/schemas.d.ts +0 -1253
  1352. package/node_modules/zod/v4/core/schemas.js +0 -2440
  1353. package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  1354. package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
  1355. package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
  1356. package/node_modules/zod/v4/core/standard-schema.js +0 -1
  1357. package/node_modules/zod/v4/core/to-json-schema.cjs +0 -660
  1358. package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -153
  1359. package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -153
  1360. package/node_modules/zod/v4/core/to-json-schema.js +0 -650
  1361. package/node_modules/zod/v4/core/util.cjs +0 -915
  1362. package/node_modules/zod/v4/core/util.d.cts +0 -257
  1363. package/node_modules/zod/v4/core/util.d.ts +0 -257
  1364. package/node_modules/zod/v4/core/util.js +0 -846
  1365. package/node_modules/zod/v4/core/versions.cjs +0 -8
  1366. package/node_modules/zod/v4/core/versions.d.cts +0 -5
  1367. package/node_modules/zod/v4/core/versions.d.ts +0 -5
  1368. package/node_modules/zod/v4/core/versions.js +0 -5
  1369. package/node_modules/zod/v4/core/visit.cjs +0 -195
  1370. package/node_modules/zod/v4/core/visit.d.cts +0 -30
  1371. package/node_modules/zod/v4/core/visit.d.ts +0 -30
  1372. package/node_modules/zod/v4/core/visit.js +0 -169
  1373. package/node_modules/zod/v4/index.cjs +0 -32
  1374. package/node_modules/zod/v4/index.d.cts +0 -3
  1375. package/node_modules/zod/v4/index.d.ts +0 -3
  1376. package/node_modules/zod/v4/index.js +0 -4
  1377. package/node_modules/zod/v4/locales/ar.cjs +0 -136
  1378. package/node_modules/zod/v4/locales/ar.d.cts +0 -5
  1379. package/node_modules/zod/v4/locales/ar.d.ts +0 -4
  1380. package/node_modules/zod/v4/locales/ar.js +0 -109
  1381. package/node_modules/zod/v4/locales/az.cjs +0 -135
  1382. package/node_modules/zod/v4/locales/az.d.cts +0 -5
  1383. package/node_modules/zod/v4/locales/az.d.ts +0 -4
  1384. package/node_modules/zod/v4/locales/az.js +0 -108
  1385. package/node_modules/zod/v4/locales/be.cjs +0 -193
  1386. package/node_modules/zod/v4/locales/be.d.cts +0 -5
  1387. package/node_modules/zod/v4/locales/be.d.ts +0 -4
  1388. package/node_modules/zod/v4/locales/be.js +0 -166
  1389. package/node_modules/zod/v4/locales/bg.cjs +0 -150
  1390. package/node_modules/zod/v4/locales/bg.d.cts +0 -5
  1391. package/node_modules/zod/v4/locales/bg.d.ts +0 -4
  1392. package/node_modules/zod/v4/locales/bg.js +0 -123
  1393. package/node_modules/zod/v4/locales/bn.cjs +0 -138
  1394. package/node_modules/zod/v4/locales/bn.d.cts +0 -5
  1395. package/node_modules/zod/v4/locales/bn.d.ts +0 -4
  1396. package/node_modules/zod/v4/locales/bn.js +0 -111
  1397. package/node_modules/zod/v4/locales/ca.cjs +0 -137
  1398. package/node_modules/zod/v4/locales/ca.d.cts +0 -5
  1399. package/node_modules/zod/v4/locales/ca.d.ts +0 -4
  1400. package/node_modules/zod/v4/locales/ca.js +0 -110
  1401. package/node_modules/zod/v4/locales/ckb.cjs +0 -158
  1402. package/node_modules/zod/v4/locales/ckb.d.cts +0 -5
  1403. package/node_modules/zod/v4/locales/ckb.d.ts +0 -4
  1404. package/node_modules/zod/v4/locales/ckb.js +0 -131
  1405. package/node_modules/zod/v4/locales/cs.cjs +0 -141
  1406. package/node_modules/zod/v4/locales/cs.d.cts +0 -5
  1407. package/node_modules/zod/v4/locales/cs.d.ts +0 -4
  1408. package/node_modules/zod/v4/locales/cs.js +0 -114
  1409. package/node_modules/zod/v4/locales/da.cjs +0 -145
  1410. package/node_modules/zod/v4/locales/da.d.cts +0 -5
  1411. package/node_modules/zod/v4/locales/da.d.ts +0 -4
  1412. package/node_modules/zod/v4/locales/da.js +0 -118
  1413. package/node_modules/zod/v4/locales/de.cjs +0 -138
  1414. package/node_modules/zod/v4/locales/de.d.cts +0 -5
  1415. package/node_modules/zod/v4/locales/de.d.ts +0 -4
  1416. package/node_modules/zod/v4/locales/de.js +0 -111
  1417. package/node_modules/zod/v4/locales/el.cjs +0 -137
  1418. package/node_modules/zod/v4/locales/el.d.cts +0 -5
  1419. package/node_modules/zod/v4/locales/el.d.ts +0 -4
  1420. package/node_modules/zod/v4/locales/el.js +0 -110
  1421. package/node_modules/zod/v4/locales/en.cjs +0 -150
  1422. package/node_modules/zod/v4/locales/en.d.cts +0 -5
  1423. package/node_modules/zod/v4/locales/en.d.ts +0 -4
  1424. package/node_modules/zod/v4/locales/en.js +0 -123
  1425. package/node_modules/zod/v4/locales/eo.cjs +0 -139
  1426. package/node_modules/zod/v4/locales/eo.d.cts +0 -5
  1427. package/node_modules/zod/v4/locales/eo.d.ts +0 -4
  1428. package/node_modules/zod/v4/locales/eo.js +0 -112
  1429. package/node_modules/zod/v4/locales/es.cjs +0 -161
  1430. package/node_modules/zod/v4/locales/es.d.cts +0 -5
  1431. package/node_modules/zod/v4/locales/es.d.ts +0 -4
  1432. package/node_modules/zod/v4/locales/es.js +0 -134
  1433. package/node_modules/zod/v4/locales/fa.cjs +0 -144
  1434. package/node_modules/zod/v4/locales/fa.d.cts +0 -5
  1435. package/node_modules/zod/v4/locales/fa.d.ts +0 -4
  1436. package/node_modules/zod/v4/locales/fa.js +0 -117
  1437. package/node_modules/zod/v4/locales/fi.cjs +0 -142
  1438. package/node_modules/zod/v4/locales/fi.d.cts +0 -5
  1439. package/node_modules/zod/v4/locales/fi.d.ts +0 -4
  1440. package/node_modules/zod/v4/locales/fi.js +0 -115
  1441. package/node_modules/zod/v4/locales/fr-CA.cjs +0 -137
  1442. package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
  1443. package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  1444. package/node_modules/zod/v4/locales/fr-CA.js +0 -110
  1445. package/node_modules/zod/v4/locales/fr.cjs +0 -154
  1446. package/node_modules/zod/v4/locales/fr.d.cts +0 -5
  1447. package/node_modules/zod/v4/locales/fr.d.ts +0 -4
  1448. package/node_modules/zod/v4/locales/fr.js +0 -127
  1449. package/node_modules/zod/v4/locales/gu.cjs +0 -138
  1450. package/node_modules/zod/v4/locales/gu.d.cts +0 -5
  1451. package/node_modules/zod/v4/locales/gu.d.ts +0 -4
  1452. package/node_modules/zod/v4/locales/gu.js +0 -111
  1453. package/node_modules/zod/v4/locales/he.cjs +0 -246
  1454. package/node_modules/zod/v4/locales/he.d.cts +0 -5
  1455. package/node_modules/zod/v4/locales/he.d.ts +0 -4
  1456. package/node_modules/zod/v4/locales/he.js +0 -219
  1457. package/node_modules/zod/v4/locales/hi.cjs +0 -136
  1458. package/node_modules/zod/v4/locales/hi.d.cts +0 -5
  1459. package/node_modules/zod/v4/locales/hi.d.ts +0 -4
  1460. package/node_modules/zod/v4/locales/hi.js +0 -109
  1461. package/node_modules/zod/v4/locales/hr.cjs +0 -151
  1462. package/node_modules/zod/v4/locales/hr.d.cts +0 -5
  1463. package/node_modules/zod/v4/locales/hr.d.ts +0 -4
  1464. package/node_modules/zod/v4/locales/hr.js +0 -124
  1465. package/node_modules/zod/v4/locales/hu.cjs +0 -138
  1466. package/node_modules/zod/v4/locales/hu.d.cts +0 -5
  1467. package/node_modules/zod/v4/locales/hu.d.ts +0 -4
  1468. package/node_modules/zod/v4/locales/hu.js +0 -111
  1469. package/node_modules/zod/v4/locales/hy.cjs +0 -183
  1470. package/node_modules/zod/v4/locales/hy.d.cts +0 -5
  1471. package/node_modules/zod/v4/locales/hy.d.ts +0 -4
  1472. package/node_modules/zod/v4/locales/hy.js +0 -156
  1473. package/node_modules/zod/v4/locales/id.cjs +0 -136
  1474. package/node_modules/zod/v4/locales/id.d.cts +0 -5
  1475. package/node_modules/zod/v4/locales/id.d.ts +0 -4
  1476. package/node_modules/zod/v4/locales/id.js +0 -109
  1477. package/node_modules/zod/v4/locales/index.cjs +0 -131
  1478. package/node_modules/zod/v4/locales/index.d.cts +0 -62
  1479. package/node_modules/zod/v4/locales/index.d.ts +0 -62
  1480. package/node_modules/zod/v4/locales/index.js +0 -62
  1481. package/node_modules/zod/v4/locales/is.cjs +0 -139
  1482. package/node_modules/zod/v4/locales/is.d.cts +0 -5
  1483. package/node_modules/zod/v4/locales/is.d.ts +0 -4
  1484. package/node_modules/zod/v4/locales/is.js +0 -112
  1485. package/node_modules/zod/v4/locales/it.cjs +0 -138
  1486. package/node_modules/zod/v4/locales/it.d.cts +0 -5
  1487. package/node_modules/zod/v4/locales/it.d.ts +0 -4
  1488. package/node_modules/zod/v4/locales/it.js +0 -111
  1489. package/node_modules/zod/v4/locales/ja.cjs +0 -137
  1490. package/node_modules/zod/v4/locales/ja.d.cts +0 -5
  1491. package/node_modules/zod/v4/locales/ja.d.ts +0 -4
  1492. package/node_modules/zod/v4/locales/ja.js +0 -110
  1493. package/node_modules/zod/v4/locales/ka.cjs +0 -142
  1494. package/node_modules/zod/v4/locales/ka.d.cts +0 -5
  1495. package/node_modules/zod/v4/locales/ka.d.ts +0 -4
  1496. package/node_modules/zod/v4/locales/ka.js +0 -115
  1497. package/node_modules/zod/v4/locales/kh.cjs +0 -12
  1498. package/node_modules/zod/v4/locales/kh.d.cts +0 -5
  1499. package/node_modules/zod/v4/locales/kh.d.ts +0 -5
  1500. package/node_modules/zod/v4/locales/kh.js +0 -5
  1501. package/node_modules/zod/v4/locales/km.cjs +0 -140
  1502. package/node_modules/zod/v4/locales/km.d.cts +0 -5
  1503. package/node_modules/zod/v4/locales/km.d.ts +0 -4
  1504. package/node_modules/zod/v4/locales/km.js +0 -113
  1505. package/node_modules/zod/v4/locales/kn.cjs +0 -141
  1506. package/node_modules/zod/v4/locales/kn.d.cts +0 -5
  1507. package/node_modules/zod/v4/locales/kn.d.ts +0 -4
  1508. package/node_modules/zod/v4/locales/kn.js +0 -114
  1509. package/node_modules/zod/v4/locales/ko.cjs +0 -141
  1510. package/node_modules/zod/v4/locales/ko.d.cts +0 -5
  1511. package/node_modules/zod/v4/locales/ko.d.ts +0 -4
  1512. package/node_modules/zod/v4/locales/ko.js +0 -114
  1513. package/node_modules/zod/v4/locales/lt.cjs +0 -232
  1514. package/node_modules/zod/v4/locales/lt.d.cts +0 -5
  1515. package/node_modules/zod/v4/locales/lt.d.ts +0 -4
  1516. package/node_modules/zod/v4/locales/lt.js +0 -205
  1517. package/node_modules/zod/v4/locales/mk.cjs +0 -139
  1518. package/node_modules/zod/v4/locales/mk.d.cts +0 -5
  1519. package/node_modules/zod/v4/locales/mk.d.ts +0 -4
  1520. package/node_modules/zod/v4/locales/mk.js +0 -112
  1521. package/node_modules/zod/v4/locales/ms.cjs +0 -137
  1522. package/node_modules/zod/v4/locales/ms.d.cts +0 -5
  1523. package/node_modules/zod/v4/locales/ms.d.ts +0 -4
  1524. package/node_modules/zod/v4/locales/ms.js +0 -110
  1525. package/node_modules/zod/v4/locales/ne.cjs +0 -136
  1526. package/node_modules/zod/v4/locales/ne.d.cts +0 -5
  1527. package/node_modules/zod/v4/locales/ne.d.ts +0 -4
  1528. package/node_modules/zod/v4/locales/ne.js +0 -109
  1529. package/node_modules/zod/v4/locales/nl.cjs +0 -140
  1530. package/node_modules/zod/v4/locales/nl.d.cts +0 -5
  1531. package/node_modules/zod/v4/locales/nl.d.ts +0 -4
  1532. package/node_modules/zod/v4/locales/nl.js +0 -113
  1533. package/node_modules/zod/v4/locales/nn.cjs +0 -138
  1534. package/node_modules/zod/v4/locales/nn.d.cts +0 -5
  1535. package/node_modules/zod/v4/locales/nn.d.ts +0 -4
  1536. package/node_modules/zod/v4/locales/nn.js +0 -111
  1537. package/node_modules/zod/v4/locales/no.cjs +0 -138
  1538. package/node_modules/zod/v4/locales/no.d.cts +0 -5
  1539. package/node_modules/zod/v4/locales/no.d.ts +0 -4
  1540. package/node_modules/zod/v4/locales/no.js +0 -111
  1541. package/node_modules/zod/v4/locales/ota.cjs +0 -139
  1542. package/node_modules/zod/v4/locales/ota.d.cts +0 -5
  1543. package/node_modules/zod/v4/locales/ota.d.ts +0 -4
  1544. package/node_modules/zod/v4/locales/ota.js +0 -112
  1545. package/node_modules/zod/v4/locales/package.json +0 -7
  1546. package/node_modules/zod/v4/locales/pl.cjs +0 -139
  1547. package/node_modules/zod/v4/locales/pl.d.cts +0 -5
  1548. package/node_modules/zod/v4/locales/pl.d.ts +0 -4
  1549. package/node_modules/zod/v4/locales/pl.js +0 -112
  1550. package/node_modules/zod/v4/locales/ps.cjs +0 -144
  1551. package/node_modules/zod/v4/locales/ps.d.cts +0 -5
  1552. package/node_modules/zod/v4/locales/ps.d.ts +0 -4
  1553. package/node_modules/zod/v4/locales/ps.js +0 -117
  1554. package/node_modules/zod/v4/locales/pt-BR.cjs +0 -168
  1555. package/node_modules/zod/v4/locales/pt-BR.d.cts +0 -5
  1556. package/node_modules/zod/v4/locales/pt-BR.d.ts +0 -4
  1557. package/node_modules/zod/v4/locales/pt-BR.js +0 -141
  1558. package/node_modules/zod/v4/locales/pt.cjs +0 -167
  1559. package/node_modules/zod/v4/locales/pt.d.cts +0 -5
  1560. package/node_modules/zod/v4/locales/pt.d.ts +0 -4
  1561. package/node_modules/zod/v4/locales/pt.js +0 -140
  1562. package/node_modules/zod/v4/locales/ro.cjs +0 -147
  1563. package/node_modules/zod/v4/locales/ro.d.cts +0 -5
  1564. package/node_modules/zod/v4/locales/ro.d.ts +0 -4
  1565. package/node_modules/zod/v4/locales/ro.js +0 -120
  1566. package/node_modules/zod/v4/locales/ru.cjs +0 -193
  1567. package/node_modules/zod/v4/locales/ru.d.cts +0 -5
  1568. package/node_modules/zod/v4/locales/ru.d.ts +0 -4
  1569. package/node_modules/zod/v4/locales/ru.js +0 -166
  1570. package/node_modules/zod/v4/locales/sk.cjs +0 -141
  1571. package/node_modules/zod/v4/locales/sk.d.cts +0 -5
  1572. package/node_modules/zod/v4/locales/sk.d.ts +0 -4
  1573. package/node_modules/zod/v4/locales/sk.js +0 -114
  1574. package/node_modules/zod/v4/locales/sl.cjs +0 -139
  1575. package/node_modules/zod/v4/locales/sl.d.cts +0 -5
  1576. package/node_modules/zod/v4/locales/sl.d.ts +0 -4
  1577. package/node_modules/zod/v4/locales/sl.js +0 -112
  1578. package/node_modules/zod/v4/locales/sv.cjs +0 -140
  1579. package/node_modules/zod/v4/locales/sv.d.cts +0 -5
  1580. package/node_modules/zod/v4/locales/sv.d.ts +0 -4
  1581. package/node_modules/zod/v4/locales/sv.js +0 -113
  1582. package/node_modules/zod/v4/locales/ta.cjs +0 -140
  1583. package/node_modules/zod/v4/locales/ta.d.cts +0 -5
  1584. package/node_modules/zod/v4/locales/ta.d.ts +0 -4
  1585. package/node_modules/zod/v4/locales/ta.js +0 -113
  1586. package/node_modules/zod/v4/locales/th.cjs +0 -140
  1587. package/node_modules/zod/v4/locales/th.d.cts +0 -5
  1588. package/node_modules/zod/v4/locales/th.d.ts +0 -4
  1589. package/node_modules/zod/v4/locales/th.js +0 -113
  1590. package/node_modules/zod/v4/locales/tk.cjs +0 -132
  1591. package/node_modules/zod/v4/locales/tk.d.cts +0 -5
  1592. package/node_modules/zod/v4/locales/tk.d.ts +0 -4
  1593. package/node_modules/zod/v4/locales/tk.js +0 -105
  1594. package/node_modules/zod/v4/locales/tr.cjs +0 -135
  1595. package/node_modules/zod/v4/locales/tr.d.cts +0 -5
  1596. package/node_modules/zod/v4/locales/tr.d.ts +0 -4
  1597. package/node_modules/zod/v4/locales/tr.js +0 -108
  1598. package/node_modules/zod/v4/locales/ua.cjs +0 -12
  1599. package/node_modules/zod/v4/locales/ua.d.cts +0 -5
  1600. package/node_modules/zod/v4/locales/ua.d.ts +0 -5
  1601. package/node_modules/zod/v4/locales/ua.js +0 -5
  1602. package/node_modules/zod/v4/locales/uk.cjs +0 -138
  1603. package/node_modules/zod/v4/locales/uk.d.cts +0 -5
  1604. package/node_modules/zod/v4/locales/uk.d.ts +0 -4
  1605. package/node_modules/zod/v4/locales/uk.js +0 -111
  1606. package/node_modules/zod/v4/locales/ur.cjs +0 -140
  1607. package/node_modules/zod/v4/locales/ur.d.cts +0 -5
  1608. package/node_modules/zod/v4/locales/ur.d.ts +0 -4
  1609. package/node_modules/zod/v4/locales/ur.js +0 -113
  1610. package/node_modules/zod/v4/locales/uz.cjs +0 -138
  1611. package/node_modules/zod/v4/locales/uz.d.cts +0 -5
  1612. package/node_modules/zod/v4/locales/uz.d.ts +0 -4
  1613. package/node_modules/zod/v4/locales/uz.js +0 -111
  1614. package/node_modules/zod/v4/locales/vi.cjs +0 -138
  1615. package/node_modules/zod/v4/locales/vi.d.cts +0 -5
  1616. package/node_modules/zod/v4/locales/vi.d.ts +0 -4
  1617. package/node_modules/zod/v4/locales/vi.js +0 -111
  1618. package/node_modules/zod/v4/locales/yo.cjs +0 -137
  1619. package/node_modules/zod/v4/locales/yo.d.cts +0 -5
  1620. package/node_modules/zod/v4/locales/yo.d.ts +0 -4
  1621. package/node_modules/zod/v4/locales/yo.js +0 -110
  1622. package/node_modules/zod/v4/locales/zh-CN.cjs +0 -139
  1623. package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
  1624. package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  1625. package/node_modules/zod/v4/locales/zh-CN.js +0 -112
  1626. package/node_modules/zod/v4/locales/zh-TW.cjs +0 -137
  1627. package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
  1628. package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  1629. package/node_modules/zod/v4/locales/zh-TW.js +0 -110
  1630. package/node_modules/zod/v4/mini/checks.cjs +0 -35
  1631. package/node_modules/zod/v4/mini/checks.d.cts +0 -1
  1632. package/node_modules/zod/v4/mini/checks.d.ts +0 -1
  1633. package/node_modules/zod/v4/mini/checks.js +0 -1
  1634. package/node_modules/zod/v4/mini/coerce.cjs +0 -52
  1635. package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  1636. package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  1637. package/node_modules/zod/v4/mini/coerce.js +0 -22
  1638. package/node_modules/zod/v4/mini/deep-partial.cjs +0 -39
  1639. package/node_modules/zod/v4/mini/deep-partial.d.cts +0 -14
  1640. package/node_modules/zod/v4/mini/deep-partial.d.ts +0 -14
  1641. package/node_modules/zod/v4/mini/deep-partial.js +0 -13
  1642. package/node_modules/zod/v4/mini/external.cjs +0 -74
  1643. package/node_modules/zod/v4/mini/external.d.cts +0 -16
  1644. package/node_modules/zod/v4/mini/external.d.ts +0 -16
  1645. package/node_modules/zod/v4/mini/external.js +0 -16
  1646. package/node_modules/zod/v4/mini/in-out.cjs +0 -63
  1647. package/node_modules/zod/v4/mini/in-out.d.cts +0 -8
  1648. package/node_modules/zod/v4/mini/in-out.d.ts +0 -8
  1649. package/node_modules/zod/v4/mini/in-out.js +0 -36
  1650. package/node_modules/zod/v4/mini/index.cjs +0 -32
  1651. package/node_modules/zod/v4/mini/index.d.cts +0 -3
  1652. package/node_modules/zod/v4/mini/index.d.ts +0 -3
  1653. package/node_modules/zod/v4/mini/index.js +0 -3
  1654. package/node_modules/zod/v4/mini/iso.cjs +0 -64
  1655. package/node_modules/zod/v4/mini/iso.d.cts +0 -22
  1656. package/node_modules/zod/v4/mini/iso.d.ts +0 -22
  1657. package/node_modules/zod/v4/mini/iso.js +0 -34
  1658. package/node_modules/zod/v4/mini/package.json +0 -7
  1659. package/node_modules/zod/v4/mini/parse.cjs +0 -18
  1660. package/node_modules/zod/v4/mini/parse.d.cts +0 -1
  1661. package/node_modules/zod/v4/mini/parse.d.ts +0 -1
  1662. package/node_modules/zod/v4/mini/parse.js +0 -1
  1663. package/node_modules/zod/v4/mini/schemas.cjs +0 -1111
  1664. package/node_modules/zod/v4/mini/schemas.d.cts +0 -475
  1665. package/node_modules/zod/v4/mini/schemas.d.ts +0 -475
  1666. package/node_modules/zod/v4/mini/schemas.js +0 -987
  1667. package/node_modules/zod/v4/package.json +0 -7
  1668. package/node_modules/zod/v4-mini/index.cjs +0 -32
  1669. package/node_modules/zod/v4-mini/index.d.cts +0 -3
  1670. package/node_modules/zod/v4-mini/index.d.ts +0 -3
  1671. package/node_modules/zod/v4-mini/index.js +0 -3
  1672. package/node_modules/zod/v4-mini/package.json +0 -7
  1673. package/personal-state.snapshot.lock.json +0 -40
  1674. package/scene-interaction-v2.snapshot.lock.json +0 -36
@@ -1,2026 +0,0 @@
1
- import * as core from "../core/index.js";
2
- import type { $ZodBigIntFormats } from "../core/index.js";
3
- import * as util from "../core/util.js";
4
- import * as parse from "./parse.js";
5
-
6
- type SomeType = core.SomeType;
7
-
8
- export interface ZodMiniType<
9
- out Output = unknown,
10
- out Input = unknown,
11
- out Internals extends core.$ZodTypeInternals<Output, Input> = core.$ZodTypeInternals<Output, Input>,
12
- > extends core.$ZodType<Output, Input, Internals> {
13
- type: Internals["def"]["type"];
14
- check(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this;
15
- with(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this;
16
- clone(def?: Internals["def"], params?: { parent: boolean }): this;
17
- register<R extends core.$ZodRegistry>(
18
- registry: R,
19
- ...meta: this extends R["_schema"]
20
- ? undefined extends R["_meta"]
21
- ? [core.$replace<R["_meta"], this>?]
22
- : [core.$replace<R["_meta"], this>]
23
- : ["Incompatible schema"]
24
- ): this;
25
- brand<T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(
26
- value?: T
27
- ): PropertyKey extends T ? this : core.$ZodBranded<this, T, Dir>;
28
-
29
- def: Internals["def"];
30
-
31
- parse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): core.output<this>;
32
- safeParse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): util.SafeParseResult<core.output<this>>;
33
- parseAsync(data: unknown, params?: core.ParseContext<core.$ZodIssue>): Promise<core.output<this>>;
34
- safeParseAsync(
35
- data: unknown,
36
- params?: core.ParseContext<core.$ZodIssue>
37
- ): Promise<util.SafeParseResult<core.output<this>>>;
38
- apply<T, TArgs extends unknown[] = []>(fn: (schema: this, ...args: TArgs) => T, ...args: TArgs): T;
39
- }
40
-
41
- interface _ZodMiniType<out Internals extends core.$ZodTypeInternals = core.$ZodTypeInternals>
42
- extends ZodMiniType<any, any, Internals> {}
43
-
44
- export const ZodMiniType: core.$constructor<ZodMiniType> = /*@__PURE__*/ core.$constructor<ZodMiniType>(
45
- "ZodMiniType",
46
- (inst, def) => {
47
- if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
48
-
49
- core.$ZodType.init(inst, def);
50
-
51
- inst.def = def;
52
- inst.type = def.type;
53
- },
54
- {
55
- // `with` is an alias for `check`: the same function object, not a wrapper.
56
- get with(): ZodMiniType["check"] {
57
- return this.check;
58
- },
59
- set with(value: ZodMiniType["check"]) {
60
- util.own(this, "with", value);
61
- },
62
- parse(data, params) {
63
- return parse.parse(this, data, params, { callee: this.parse });
64
- },
65
- parseAsync(data, params) {
66
- return parse.parseAsync(this, data, params, { callee: this.parseAsync });
67
- },
68
- safeParse(data, params) {
69
- return parse.safeParse(this, data, params);
70
- },
71
- safeParseAsync(data, params) {
72
- return parse.safeParseAsync(this, data, params);
73
- },
74
- check(...checks) {
75
- const def = this.def;
76
- return this.clone(
77
- {
78
- ...def,
79
- checks: [
80
- ...(def.checks ?? []),
81
- ...checks.map((ch) =>
82
- typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch
83
- ),
84
- ],
85
- },
86
- { parent: true }
87
- );
88
- },
89
- clone(_def, params) {
90
- return core.clone(this, _def, params);
91
- },
92
- brand() {
93
- return this as any;
94
- },
95
- register(reg: any, meta: any): any {
96
- reg.add(this, meta);
97
- return this;
98
- },
99
- apply(fn: any, ...args: any[]) {
100
- return args.length === 0 ? fn(this) : fn(this, ...args);
101
- },
102
- }
103
- );
104
-
105
- export interface _ZodMiniString<T extends core.$ZodStringInternals<unknown> = core.$ZodStringInternals<unknown>>
106
- extends _ZodMiniType<T>,
107
- core.$ZodString<T["input"]> {
108
- _zod: T;
109
- }
110
-
111
- // ZodMiniString
112
- export interface ZodMiniString<Input = unknown>
113
- extends _ZodMiniString<core.$ZodStringInternals<Input>>,
114
- core.$ZodString<Input> {}
115
- export const ZodMiniString: core.$constructor<ZodMiniString> = /*@__PURE__*/ core.$constructor(
116
- "ZodMiniString",
117
- (inst, def) => {
118
- core.$ZodString.init(inst, def);
119
- ZodMiniType.init(inst, def);
120
- }
121
- );
122
-
123
- // @__NO_SIDE_EFFECTS__
124
- export function string(params?: string | core.$ZodStringParams): ZodMiniString<string> {
125
- return core._string(ZodMiniString, params) as any;
126
- }
127
-
128
- // ZodMiniStringFormat
129
- export interface ZodMiniStringFormat<Format extends string = string>
130
- extends _ZodMiniString<core.$ZodStringFormatInternals<Format>>,
131
- core.$ZodStringFormat<Format> {
132
- // _zod: core.$ZodStringFormatInternals<Format>;
133
- }
134
- export const ZodMiniStringFormat: core.$constructor<ZodMiniStringFormat> = /*@__PURE__*/ core.$constructor(
135
- "ZodMiniStringFormat",
136
- (inst, def) => {
137
- core.$ZodStringFormat.init(inst, def);
138
- ZodMiniString.init(inst, def);
139
- }
140
- );
141
-
142
- // ZodMiniEmail
143
- export interface ZodMiniEmail extends _ZodMiniString<core.$ZodEmailInternals> {}
144
- export const ZodMiniEmail: core.$constructor<ZodMiniEmail> = /*@__PURE__*/ core.$constructor(
145
- "ZodMiniEmail",
146
- (inst, def) => {
147
- core.$ZodEmail.init(inst, def);
148
- ZodMiniStringFormat.init(inst, def);
149
- }
150
- );
151
-
152
- // @__NO_SIDE_EFFECTS__
153
- export function email(params?: string | core.$ZodEmailParams): ZodMiniEmail {
154
- return core._email(ZodMiniEmail, params);
155
- }
156
-
157
- // ZodMiniGUID
158
- export interface ZodMiniGUID extends _ZodMiniString<core.$ZodGUIDInternals> {
159
- // _zod: core.$ZodGUIDInternals;
160
- }
161
- export const ZodMiniGUID: core.$constructor<ZodMiniGUID> = /*@__PURE__*/ core.$constructor(
162
- "ZodMiniGUID",
163
- (inst, def) => {
164
- core.$ZodGUID.init(inst, def);
165
- ZodMiniStringFormat.init(inst, def);
166
- }
167
- );
168
-
169
- // @__NO_SIDE_EFFECTS__
170
- export function guid(params?: string | core.$ZodGUIDParams): ZodMiniGUID {
171
- return core._guid(ZodMiniGUID, params);
172
- }
173
-
174
- // ZodMiniUUID
175
- export interface ZodMiniUUID extends _ZodMiniString<core.$ZodUUIDInternals> {
176
- // _zod: core.$ZodUUIDInternals;
177
- }
178
- export const ZodMiniUUID: core.$constructor<ZodMiniUUID> = /*@__PURE__*/ core.$constructor(
179
- "ZodMiniUUID",
180
- (inst, def) => {
181
- core.$ZodUUID.init(inst, def);
182
- ZodMiniStringFormat.init(inst, def);
183
- }
184
- );
185
-
186
- // @__NO_SIDE_EFFECTS__
187
- export function uuid(params?: string | core.$ZodUUIDParams): ZodMiniUUID {
188
- return core._uuid(ZodMiniUUID, params);
189
- }
190
-
191
- // @__NO_SIDE_EFFECTS__
192
- export function uuidv4(params?: string | core.$ZodUUIDv4Params): ZodMiniUUID {
193
- return core._uuidv4(ZodMiniUUID, params);
194
- }
195
-
196
- // ZodMiniUUIDv6
197
-
198
- // @__NO_SIDE_EFFECTS__
199
- export function uuidv6(params?: string | core.$ZodUUIDv6Params): ZodMiniUUID {
200
- return core._uuidv6(ZodMiniUUID, params);
201
- }
202
-
203
- // ZodMiniUUIDv7
204
-
205
- // @__NO_SIDE_EFFECTS__
206
- export function uuidv7(params?: string | core.$ZodUUIDv7Params): ZodMiniUUID {
207
- return core._uuidv7(ZodMiniUUID, params);
208
- }
209
-
210
- // ZodMiniURL
211
- export interface ZodMiniURL extends _ZodMiniString<core.$ZodURLInternals> {
212
- // _zod: core.$ZodURLInternals;
213
- }
214
- export const ZodMiniURL: core.$constructor<ZodMiniURL> = /*@__PURE__*/ core.$constructor("ZodMiniURL", (inst, def) => {
215
- core.$ZodURL.init(inst, def);
216
- ZodMiniStringFormat.init(inst, def);
217
- });
218
-
219
- // @__NO_SIDE_EFFECTS__
220
- export function url(params?: string | core.$ZodURLParams): ZodMiniURL {
221
- return core._url(ZodMiniURL, params);
222
- }
223
-
224
- // @__NO_SIDE_EFFECTS__
225
- export function httpUrl(params?: string | Omit<core.$ZodURLParams, "protocol" | "hostname">): ZodMiniURL {
226
- return core._url(ZodMiniURL, {
227
- protocol: core.regexes.httpProtocol,
228
- hostname: core.regexes.domain,
229
- ...util.normalizeParams(params),
230
- });
231
- }
232
-
233
- // ZodMiniEmoji
234
- export interface ZodMiniEmoji extends _ZodMiniString<core.$ZodEmojiInternals> {
235
- // _zod: core.$ZodEmojiInternals;
236
- }
237
- export const ZodMiniEmoji: core.$constructor<ZodMiniEmoji> = /*@__PURE__*/ core.$constructor(
238
- "ZodMiniEmoji",
239
- (inst, def) => {
240
- core.$ZodEmoji.init(inst, def);
241
- ZodMiniStringFormat.init(inst, def);
242
- }
243
- );
244
-
245
- // @__NO_SIDE_EFFECTS__
246
- export function emoji(params?: string | core.$ZodEmojiParams): ZodMiniEmoji {
247
- return core._emoji(ZodMiniEmoji, params);
248
- }
249
-
250
- // ZodMiniNanoID
251
- export interface ZodMiniNanoID extends _ZodMiniString<core.$ZodNanoIDInternals> {
252
- // _zod: core.$ZodNanoIDInternals;
253
- }
254
- export const ZodMiniNanoID: core.$constructor<ZodMiniNanoID> = /*@__PURE__*/ core.$constructor(
255
- "ZodMiniNanoID",
256
- (inst, def) => {
257
- core.$ZodNanoID.init(inst, def);
258
- ZodMiniStringFormat.init(inst, def);
259
- }
260
- );
261
-
262
- // @__NO_SIDE_EFFECTS__
263
- export function nanoid(params?: string | core.$ZodNanoIDParams): ZodMiniNanoID {
264
- return core._nanoid(ZodMiniNanoID, params);
265
- }
266
-
267
- // ZodMiniCUID
268
- /**
269
- * @deprecated CUID v1 is deprecated by its authors due to information leakage
270
- * (timestamps embedded in the id). Use {@link ZodMiniCUID2} instead.
271
- * See https://github.com/paralleldrive/cuid.
272
- */
273
- export interface ZodMiniCUID extends _ZodMiniString<core.$ZodCUIDInternals> {
274
- // _zod: core.$ZodCUIDInternals;
275
- }
276
- /**
277
- * @deprecated CUID v1 is deprecated by its authors due to information leakage
278
- * (timestamps embedded in the id). Use {@link ZodMiniCUID2} instead.
279
- * See https://github.com/paralleldrive/cuid.
280
- */
281
- export const ZodMiniCUID: core.$constructor<ZodMiniCUID> = /*@__PURE__*/ core.$constructor(
282
- "ZodMiniCUID",
283
- (inst, def) => {
284
- core.$ZodCUID.init(inst, def);
285
- ZodMiniStringFormat.init(inst, def);
286
- }
287
- );
288
-
289
- /**
290
- * Validates a CUID v1 string.
291
- *
292
- * @deprecated CUID v1 is deprecated by its authors due to information leakage
293
- * (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.
294
- * See https://github.com/paralleldrive/cuid.
295
- */
296
- // @__NO_SIDE_EFFECTS__
297
- export function cuid(params?: string | core.$ZodCUIDParams): ZodMiniCUID {
298
- return core._cuid(ZodMiniCUID, params);
299
- }
300
-
301
- // ZodMiniCUID2
302
- export interface ZodMiniCUID2 extends _ZodMiniString<core.$ZodCUID2Internals> {
303
- // _zod: core.$ZodCUID2Internals;
304
- }
305
- export const ZodMiniCUID2: core.$constructor<ZodMiniCUID2> = /*@__PURE__*/ core.$constructor(
306
- "ZodMiniCUID2",
307
- (inst, def) => {
308
- core.$ZodCUID2.init(inst, def);
309
- ZodMiniStringFormat.init(inst, def);
310
- }
311
- );
312
-
313
- // @__NO_SIDE_EFFECTS__
314
- export function cuid2(params?: string | core.$ZodCUID2Params): ZodMiniCUID2 {
315
- return core._cuid2(ZodMiniCUID2, params);
316
- }
317
-
318
- // ZodMiniULID
319
- export interface ZodMiniULID extends _ZodMiniString<core.$ZodULIDInternals> {
320
- // _zod: core.$ZodULIDInternals;
321
- }
322
- export const ZodMiniULID: core.$constructor<ZodMiniULID> = /*@__PURE__*/ core.$constructor(
323
- "ZodMiniULID",
324
- (inst, def) => {
325
- core.$ZodULID.init(inst, def);
326
- ZodMiniStringFormat.init(inst, def);
327
- }
328
- );
329
-
330
- // @__NO_SIDE_EFFECTS__
331
- export function ulid(params?: string | core.$ZodULIDParams): ZodMiniULID {
332
- return core._ulid(ZodMiniULID, params);
333
- }
334
-
335
- // ZodMiniXID
336
- export interface ZodMiniXID extends _ZodMiniString<core.$ZodXIDInternals> {
337
- // _zod: core.$ZodXIDInternals;
338
- }
339
- export const ZodMiniXID: core.$constructor<ZodMiniXID> = /*@__PURE__*/ core.$constructor("ZodMiniXID", (inst, def) => {
340
- core.$ZodXID.init(inst, def);
341
- ZodMiniStringFormat.init(inst, def);
342
- });
343
-
344
- // @__NO_SIDE_EFFECTS__
345
- export function xid(params?: string | core.$ZodXIDParams): ZodMiniXID {
346
- return core._xid(ZodMiniXID, params);
347
- }
348
-
349
- // ZodMiniKSUID
350
- export interface ZodMiniKSUID extends _ZodMiniString<core.$ZodKSUIDInternals> {
351
- // _zod: core.$ZodKSUIDInternals;
352
- }
353
- export const ZodMiniKSUID: core.$constructor<ZodMiniKSUID> = /*@__PURE__*/ core.$constructor(
354
- "ZodMiniKSUID",
355
- (inst, def) => {
356
- core.$ZodKSUID.init(inst, def);
357
- ZodMiniStringFormat.init(inst, def);
358
- }
359
- );
360
-
361
- // @__NO_SIDE_EFFECTS__
362
- export function ksuid(params?: string | core.$ZodKSUIDParams): ZodMiniKSUID {
363
- return core._ksuid(ZodMiniKSUID, params);
364
- }
365
-
366
- // ZodMiniIPv4
367
- export interface ZodMiniIPv4 extends _ZodMiniString<core.$ZodIPv4Internals> {
368
- // _zod: core.$ZodIPv4Internals;
369
- }
370
- export const ZodMiniIPv4: core.$constructor<ZodMiniIPv4> = /*@__PURE__*/ core.$constructor(
371
- "ZodMiniIPv4",
372
- (inst, def) => {
373
- core.$ZodIPv4.init(inst, def);
374
- ZodMiniStringFormat.init(inst, def);
375
- }
376
- );
377
-
378
- // @__NO_SIDE_EFFECTS__
379
- export function ipv4(params?: string | core.$ZodIPv4Params): ZodMiniIPv4 {
380
- return core._ipv4(ZodMiniIPv4, params);
381
- }
382
-
383
- // ZodMiniIPv6
384
- export interface ZodMiniIPv6 extends _ZodMiniString<core.$ZodIPv6Internals> {
385
- // _zod: core.$ZodIPv6Internals;
386
- }
387
- export const ZodMiniIPv6: core.$constructor<ZodMiniIPv6> = /*@__PURE__*/ core.$constructor(
388
- "ZodMiniIPv6",
389
- (inst, def) => {
390
- core.$ZodIPv6.init(inst, def);
391
- ZodMiniStringFormat.init(inst, def);
392
- }
393
- );
394
-
395
- // @__NO_SIDE_EFFECTS__
396
- export function ipv6(params?: string | core.$ZodIPv6Params): ZodMiniIPv6 {
397
- return core._ipv6(ZodMiniIPv6, params);
398
- }
399
-
400
- // ZodMiniCIDRv4
401
- export interface ZodMiniCIDRv4 extends _ZodMiniString<core.$ZodCIDRv4Internals> {
402
- // _zod: core.$ZodCIDRv4Internals;
403
- }
404
- export const ZodMiniCIDRv4: core.$constructor<ZodMiniCIDRv4> = /*@__PURE__*/ core.$constructor(
405
- "ZodMiniCIDRv4",
406
- (inst, def) => {
407
- core.$ZodCIDRv4.init(inst, def);
408
- ZodMiniStringFormat.init(inst, def);
409
- }
410
- );
411
-
412
- // @__NO_SIDE_EFFECTS__
413
- export function cidrv4(params?: string | core.$ZodCIDRv4Params): ZodMiniCIDRv4 {
414
- return core._cidrv4(ZodMiniCIDRv4, params);
415
- }
416
-
417
- // ZodMiniCIDRv6
418
- export interface ZodMiniCIDRv6 extends _ZodMiniString<core.$ZodCIDRv6Internals> {
419
- // _zod: core.$ZodCIDRv6Internals;
420
- }
421
- export const ZodMiniCIDRv6: core.$constructor<ZodMiniCIDRv6> = /*@__PURE__*/ core.$constructor(
422
- "ZodMiniCIDRv6",
423
- (inst, def) => {
424
- core.$ZodCIDRv6.init(inst, def);
425
- ZodMiniStringFormat.init(inst, def);
426
- }
427
- );
428
-
429
- // @__NO_SIDE_EFFECTS__
430
- export function cidrv6(params?: string | core.$ZodCIDRv6Params): ZodMiniCIDRv6 {
431
- return core._cidrv6(ZodMiniCIDRv6, params);
432
- }
433
-
434
- // ZodMiniMAC
435
- export interface ZodMiniMAC extends _ZodMiniString<core.$ZodMACInternals> {
436
- // _zod: core.$ZodMACInternals;
437
- }
438
- export const ZodMiniMAC: core.$constructor<ZodMiniMAC> = /*@__PURE__*/ core.$constructor("ZodMiniMAC", (inst, def) => {
439
- core.$ZodMAC.init(inst, def);
440
- ZodMiniStringFormat.init(inst, def);
441
- });
442
-
443
- // @__NO_SIDE_EFFECTS__
444
- export function mac(params?: string | core.$ZodMACParams): ZodMiniMAC {
445
- return core._mac(ZodMiniMAC, params);
446
- }
447
-
448
- // ZodMiniBase64
449
- export interface ZodMiniBase64 extends _ZodMiniString<core.$ZodBase64Internals> {
450
- // _zod: core.$ZodBase64Internals;
451
- }
452
- export const ZodMiniBase64: core.$constructor<ZodMiniBase64> = /*@__PURE__*/ core.$constructor(
453
- "ZodMiniBase64",
454
- (inst, def) => {
455
- core.$ZodBase64.init(inst, def);
456
- ZodMiniStringFormat.init(inst, def);
457
- }
458
- );
459
- // @__NO_SIDE_EFFECTS__
460
- export function base64(params?: string | core.$ZodBase64Params): ZodMiniBase64 {
461
- return core._base64(ZodMiniBase64, params);
462
- }
463
-
464
- // ZodMiniBase64URL
465
- export interface ZodMiniBase64URL extends _ZodMiniString<core.$ZodBase64URLInternals> {
466
- // _zod: core.$ZodBase64URLInternals;
467
- }
468
- export const ZodMiniBase64URL: core.$constructor<ZodMiniBase64URL> = /*@__PURE__*/ core.$constructor(
469
- "ZodMiniBase64URL",
470
- (inst, def) => {
471
- core.$ZodBase64URL.init(inst, def);
472
- ZodMiniStringFormat.init(inst, def);
473
- }
474
- );
475
- // @__NO_SIDE_EFFECTS__
476
- export function base64url(params?: string | core.$ZodBase64URLParams): ZodMiniBase64URL {
477
- return core._base64url(ZodMiniBase64URL, params);
478
- }
479
-
480
- // ZodMiniE164
481
- export interface ZodMiniE164 extends _ZodMiniString<core.$ZodE164Internals> {
482
- // _zod: core.$ZodE164Internals;
483
- }
484
- export const ZodMiniE164: core.$constructor<ZodMiniE164> = /*@__PURE__*/ core.$constructor(
485
- "ZodMiniE164",
486
- (inst, def) => {
487
- core.$ZodE164.init(inst, def);
488
- ZodMiniStringFormat.init(inst, def);
489
- }
490
- );
491
-
492
- // @__NO_SIDE_EFFECTS__
493
- export function e164(params?: string | core.$ZodE164Params): ZodMiniE164 {
494
- return core._e164(ZodMiniE164, params);
495
- }
496
-
497
- // ZodMiniCreditCard
498
- export interface ZodMiniCreditCard extends _ZodMiniString<core.$ZodCreditCardInternals> {}
499
- export const ZodMiniCreditCard: core.$constructor<ZodMiniCreditCard> = /*@__PURE__*/ core.$constructor(
500
- "ZodMiniCreditCard",
501
- (inst, def) => {
502
- core.$ZodCreditCard.init(inst, def);
503
- ZodMiniStringFormat.init(inst, def);
504
- }
505
- );
506
-
507
- // @__NO_SIDE_EFFECTS__
508
- export function creditCard(params?: string | core.$ZodCreditCardParams): ZodMiniCreditCard {
509
- return core._creditCard(ZodMiniCreditCard, params);
510
- }
511
-
512
- // ZodMiniJWT
513
- export interface ZodMiniJWT extends _ZodMiniString<core.$ZodJWTInternals> {
514
- // _zod: core.$ZodJWTInternals;
515
- }
516
- export const ZodMiniJWT: core.$constructor<ZodMiniJWT> = /*@__PURE__*/ core.$constructor("ZodMiniJWT", (inst, def) => {
517
- core.$ZodJWT.init(inst, def);
518
- ZodMiniStringFormat.init(inst, def);
519
- });
520
-
521
- // @__NO_SIDE_EFFECTS__
522
- export function jwt(params?: string | core.$ZodJWTParams): ZodMiniJWT {
523
- return core._jwt(ZodMiniJWT, params);
524
- }
525
-
526
- // ZodMiniCustomStringFormat
527
- export interface ZodMiniCustomStringFormat<Format extends string = string>
528
- extends ZodMiniStringFormat<Format>,
529
- core.$ZodCustomStringFormat<Format> {
530
- _zod: core.$ZodCustomStringFormatInternals<Format>;
531
- }
532
- export const ZodMiniCustomStringFormat: core.$constructor<ZodMiniCustomStringFormat> = /*@__PURE__*/ core.$constructor(
533
- "ZodMiniCustomStringFormat",
534
- (inst, def) => {
535
- core.$ZodCustomStringFormat.init(inst, def);
536
- ZodMiniStringFormat.init(inst, def);
537
- }
538
- );
539
-
540
- // @__NO_SIDE_EFFECTS__
541
- export function stringFormat<Format extends string>(
542
- format: Format,
543
- fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp,
544
- _params: string | core.$ZodStringFormatParams = {}
545
- ): ZodMiniCustomStringFormat<Format> {
546
- return core._stringFormat(ZodMiniCustomStringFormat, format, fnOrRegex, _params) as any;
547
- }
548
-
549
- // @__NO_SIDE_EFFECTS__
550
- export function hostname(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hostname"> {
551
- return core._stringFormat(ZodMiniCustomStringFormat, "hostname", core.regexes.hostname, _params) as any;
552
- }
553
-
554
- // @__NO_SIDE_EFFECTS__
555
- export function hex(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hex"> {
556
- return core._stringFormat(ZodMiniCustomStringFormat, "hex", core.regexes.hex, _params) as any;
557
- }
558
-
559
- // @__NO_SIDE_EFFECTS__
560
- export function hash<Alg extends util.HashAlgorithm, Enc extends util.HashEncoding = "hex">(
561
- alg: Alg,
562
- params?: {
563
- enc?: Enc;
564
- } & core.$ZodStringFormatParams
565
- ): ZodMiniCustomStringFormat<`${Alg}_${Enc}`> {
566
- const enc = params?.enc ?? "hex";
567
- const format = `${alg}_${enc}` as const;
568
- const regex = core.regexes[format as keyof typeof core.regexes] as RegExp;
569
- // check for unrecognized format
570
- if (!regex) throw new Error(`Unrecognized hash format: ${format}`);
571
- return core._stringFormat(ZodMiniCustomStringFormat, format, regex, params) as any;
572
- }
573
-
574
- // ZodMiniNumber
575
- interface _ZodMiniNumber<T extends core.$ZodNumberInternals<unknown> = core.$ZodNumberInternals<unknown>>
576
- extends _ZodMiniType<T>,
577
- core.$ZodNumber<T["input"]> {
578
- _zod: T;
579
- }
580
- export interface ZodMiniNumber<Input = unknown>
581
- extends _ZodMiniNumber<core.$ZodNumberInternals<Input>>,
582
- core.$ZodNumber<Input> {}
583
- export const ZodMiniNumber: core.$constructor<ZodMiniNumber> = /*@__PURE__*/ core.$constructor(
584
- "ZodMiniNumber",
585
- (inst, def) => {
586
- core.$ZodNumber.init(inst, def);
587
- ZodMiniType.init(inst, def);
588
- }
589
- );
590
-
591
- // @__NO_SIDE_EFFECTS__
592
- export function number(params?: string | core.$ZodNumberParams): ZodMiniNumber<number> {
593
- return core._number(ZodMiniNumber, params) as any;
594
- }
595
-
596
- // ZodMiniNumberFormat
597
- export interface ZodMiniNumberFormat<Format extends core.$ZodNumberFormats = core.$ZodNumberFormats>
598
- extends _ZodMiniNumber<core.$ZodNumberFormatInternals<Format>>,
599
- core.$ZodNumberFormat<Format> {}
600
- export const ZodMiniNumberFormat: core.$constructor<ZodMiniNumberFormat> = /*@__PURE__*/ core.$constructor(
601
- "ZodMiniNumberFormat",
602
- (inst, def) => {
603
- core.$ZodNumberFormat.init(inst, def);
604
- ZodMiniNumber.init(inst, def);
605
- }
606
- );
607
-
608
- // int
609
-
610
- // @__NO_SIDE_EFFECTS__
611
- export interface ZodMiniInt extends ZodMiniNumberFormat<"safeint"> {}
612
- export function int(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniInt {
613
- return core._int(ZodMiniNumberFormat, params) as ZodMiniInt;
614
- }
615
-
616
- // float32
617
-
618
- // @__NO_SIDE_EFFECTS__
619
- export interface ZodMiniFloat32 extends ZodMiniNumberFormat<"float32"> {}
620
- export function float32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniFloat32 {
621
- return core._float32(ZodMiniNumberFormat, params) as ZodMiniFloat32;
622
- }
623
-
624
- // float64
625
-
626
- // @__NO_SIDE_EFFECTS__
627
- export interface ZodMiniFloat64 extends ZodMiniNumberFormat<"float64"> {}
628
- export function float64(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniFloat64 {
629
- return core._float64(ZodMiniNumberFormat, params) as ZodMiniFloat64;
630
- }
631
-
632
- // int32
633
-
634
- // @__NO_SIDE_EFFECTS__
635
- export interface ZodMiniInt32 extends ZodMiniNumberFormat<"int32"> {}
636
- export function int32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniInt32 {
637
- return core._int32(ZodMiniNumberFormat, params) as ZodMiniInt32;
638
- }
639
-
640
- // uint32
641
-
642
- // @__NO_SIDE_EFFECTS__
643
- export interface ZodMiniUInt32 extends ZodMiniNumberFormat<"uint32"> {}
644
- export function uint32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniUInt32 {
645
- return core._uint32(ZodMiniNumberFormat, params) as ZodMiniUInt32;
646
- }
647
-
648
- // ZodMiniBoolean
649
- export interface ZodMiniBoolean<T = unknown> extends _ZodMiniType<core.$ZodBooleanInternals<T>> {
650
- // _zod: core.$ZodBooleanInternals<T>;
651
- }
652
- export const ZodMiniBoolean: core.$constructor<ZodMiniBoolean> = /*@__PURE__*/ core.$constructor(
653
- "ZodMiniBoolean",
654
- (inst, def) => {
655
- core.$ZodBoolean.init(inst, def);
656
- ZodMiniType.init(inst, def);
657
- }
658
- );
659
-
660
- // @__NO_SIDE_EFFECTS__
661
- export function boolean(params?: string | core.$ZodBooleanParams): ZodMiniBoolean<boolean> {
662
- return core._boolean(ZodMiniBoolean, params) as any;
663
- }
664
-
665
- // ZodMiniBigInt
666
- export interface ZodMiniBigInt<T = unknown> extends _ZodMiniType<core.$ZodBigIntInternals<T>>, core.$ZodBigInt<T> {
667
- // _zod: core.$ZodBigIntInternals<T>;
668
- }
669
- export const ZodMiniBigInt: core.$constructor<ZodMiniBigInt> = /*@__PURE__*/ core.$constructor(
670
- "ZodMiniBigInt",
671
- (inst, def) => {
672
- core.$ZodBigInt.init(inst, def);
673
- ZodMiniType.init(inst, def);
674
- }
675
- );
676
-
677
- // @__NO_SIDE_EFFECTS__
678
- export function bigint(params?: string | core.$ZodBigIntParams): ZodMiniBigInt<bigint> {
679
- return core._bigint(ZodMiniBigInt, params) as any;
680
- }
681
-
682
- // bigint formats
683
-
684
- // ZodMiniBigIntFormat
685
- export interface ZodMiniBigIntFormat<Format extends $ZodBigIntFormats = $ZodBigIntFormats>
686
- extends _ZodMiniType<core.$ZodBigIntFormatInternals<Format>> {
687
- // _zod: core.$ZodBigIntFormatInternals<Format>;
688
- }
689
- export const ZodMiniBigIntFormat: core.$constructor<ZodMiniBigIntFormat> = /*@__PURE__*/ core.$constructor(
690
- "ZodMiniBigIntFormat",
691
- (inst, def) => {
692
- core.$ZodBigIntFormat.init(inst, def);
693
- ZodMiniBigInt.init(inst, def);
694
- }
695
- );
696
-
697
- // int64
698
-
699
- // @__NO_SIDE_EFFECTS__
700
- export interface ZodMiniInt64 extends ZodMiniBigIntFormat<"int64"> {}
701
- export function int64(params?: string | core.$ZodBigIntFormatParams): ZodMiniInt64 {
702
- return core._int64(ZodMiniBigIntFormat, params) as ZodMiniInt64;
703
- }
704
-
705
- // uint64
706
-
707
- // @__NO_SIDE_EFFECTS__
708
- export interface ZodMiniUInt64 extends ZodMiniBigIntFormat<"uint64"> {}
709
- export function uint64(params?: string | core.$ZodBigIntFormatParams): ZodMiniUInt64 {
710
- return core._uint64(ZodMiniBigIntFormat, params) as ZodMiniUInt64;
711
- }
712
-
713
- // ZodMiniSymbol
714
- export interface ZodMiniSymbol extends _ZodMiniType<core.$ZodSymbolInternals> {
715
- // _zod: core.$ZodSymbolInternals;
716
- }
717
- export const ZodMiniSymbol: core.$constructor<ZodMiniSymbol> = /*@__PURE__*/ core.$constructor(
718
- "ZodMiniSymbol",
719
- (inst, def) => {
720
- core.$ZodSymbol.init(inst, def);
721
- ZodMiniType.init(inst, def);
722
- }
723
- );
724
-
725
- // @__NO_SIDE_EFFECTS__
726
- export function symbol(params?: string | core.$ZodSymbolParams): ZodMiniSymbol {
727
- return core._symbol(ZodMiniSymbol, params) as any;
728
- }
729
-
730
- // ZodMiniUndefined
731
- export interface ZodMiniUndefined extends _ZodMiniType<core.$ZodUndefinedInternals> {
732
- // _zod: core.$ZodUndefinedInternals;
733
- }
734
- export const ZodMiniUndefined: core.$constructor<ZodMiniUndefined> = /*@__PURE__*/ core.$constructor(
735
- "ZodMiniUndefined",
736
- (inst, def) => {
737
- core.$ZodUndefined.init(inst, def);
738
- ZodMiniType.init(inst, def);
739
- }
740
- );
741
-
742
- // @__NO_SIDE_EFFECTS__
743
- function _undefined(params?: string | core.$ZodUndefinedParams): ZodMiniUndefined {
744
- return core._undefined(ZodMiniUndefined, params) as any;
745
- }
746
- export { _undefined as undefined };
747
-
748
- // ZodMiniNull
749
- export interface ZodMiniNull extends _ZodMiniType<core.$ZodNullInternals> {
750
- // _zod: core.$ZodNullInternals;
751
- }
752
- export const ZodMiniNull: core.$constructor<ZodMiniNull> = /*@__PURE__*/ core.$constructor(
753
- "ZodMiniNull",
754
- (inst, def) => {
755
- core.$ZodNull.init(inst, def);
756
- ZodMiniType.init(inst, def);
757
- }
758
- );
759
-
760
- // @__NO_SIDE_EFFECTS__
761
- function _null(params?: string | core.$ZodNullParams): ZodMiniNull {
762
- return core._null(ZodMiniNull, params) as any;
763
- }
764
- export { _null as null };
765
-
766
- // ZodMiniAny
767
- export interface ZodMiniAny extends _ZodMiniType<core.$ZodAnyInternals> {
768
- // _zod: core.$ZodAnyInternals;
769
- }
770
- export const ZodMiniAny: core.$constructor<ZodMiniAny> = /*@__PURE__*/ core.$constructor("ZodMiniAny", (inst, def) => {
771
- core.$ZodAny.init(inst, def);
772
- ZodMiniType.init(inst, def);
773
- });
774
-
775
- // @__NO_SIDE_EFFECTS__
776
- export function any(): ZodMiniAny {
777
- return core._any(ZodMiniAny) as any;
778
- }
779
-
780
- // ZodMiniUnknown
781
- export interface ZodMiniUnknown extends _ZodMiniType<core.$ZodUnknownInternals> {
782
- // _zod: core.$ZodUnknownInternals;
783
- }
784
- export const ZodMiniUnknown: core.$constructor<ZodMiniUnknown> = /*@__PURE__*/ core.$constructor(
785
- "ZodMiniUnknown",
786
- (inst, def) => {
787
- core.$ZodUnknown.init(inst, def);
788
- ZodMiniType.init(inst, def);
789
- }
790
- );
791
-
792
- // @__NO_SIDE_EFFECTS__
793
- export function unknown(): ZodMiniUnknown {
794
- return core._unknown(ZodMiniUnknown) as any;
795
- }
796
-
797
- // ZodMiniNever
798
- export interface ZodMiniNever extends _ZodMiniType<core.$ZodNeverInternals> {
799
- // _zod: core.$ZodNeverInternals;
800
- }
801
- export const ZodMiniNever: core.$constructor<ZodMiniNever> = /*@__PURE__*/ core.$constructor(
802
- "ZodMiniNever",
803
- (inst, def) => {
804
- core.$ZodNever.init(inst, def);
805
- ZodMiniType.init(inst, def);
806
- }
807
- );
808
-
809
- // @__NO_SIDE_EFFECTS__
810
- export function never(params?: string | core.$ZodNeverParams): ZodMiniNever {
811
- return core._never(ZodMiniNever, params) as any;
812
- }
813
-
814
- // ZodMiniVoid
815
- export interface ZodMiniVoid extends _ZodMiniType<core.$ZodVoidInternals> {
816
- // _zod: core.$ZodVoidInternals;
817
- }
818
- export const ZodMiniVoid: core.$constructor<ZodMiniVoid> = /*@__PURE__*/ core.$constructor(
819
- "ZodMiniVoid",
820
- (inst, def) => {
821
- core.$ZodVoid.init(inst, def);
822
- ZodMiniType.init(inst, def);
823
- }
824
- );
825
-
826
- // @__NO_SIDE_EFFECTS__
827
- function _void(params?: string | core.$ZodVoidParams): ZodMiniVoid {
828
- return core._void(ZodMiniVoid, params) as any;
829
- }
830
- export { _void as void };
831
-
832
- // ZodMiniDate
833
- export interface ZodMiniDate<T = unknown> extends _ZodMiniType<core.$ZodDateInternals<T>> {
834
- // _zod: core.$ZodDateInternals<T>;
835
- }
836
-
837
- export const ZodMiniDate: core.$constructor<ZodMiniDate> = /*@__PURE__*/ core.$constructor(
838
- "ZodMiniDate",
839
- (inst, def) => {
840
- core.$ZodDate.init(inst, def);
841
- ZodMiniType.init(inst, def);
842
- }
843
- );
844
-
845
- // @__NO_SIDE_EFFECTS__
846
- export function date(params?: string | core.$ZodDateParams): ZodMiniDate<Date> {
847
- return core._date(ZodMiniDate, params) as any;
848
- }
849
-
850
- // ZodMiniArray
851
- export interface ZodMiniArray<T extends SomeType = core.$ZodType>
852
- extends _ZodMiniType<core.$ZodArrayInternals<T>>,
853
- core.$ZodArray<T> {
854
- // _zod: core.$ZodArrayInternals<T>;
855
- }
856
- export const ZodMiniArray: core.$constructor<ZodMiniArray> = /*@__PURE__*/ core.$constructor(
857
- "ZodMiniArray",
858
- (inst, def) => {
859
- core.$ZodArray.init(inst, def);
860
- ZodMiniType.init(inst, def);
861
- }
862
- );
863
-
864
- export function array<T extends SomeType>(element: T, params?: string | core.$ZodArrayParams): ZodMiniArray<T>;
865
- // @__NO_SIDE_EFFECTS__
866
- export function array<T extends SomeType>(element: SomeType, params?: any): ZodMiniArray<T> {
867
- return new ZodMiniArray({
868
- type: "array",
869
- element: element as core.$ZodType,
870
- ...util.normalizeParams(params),
871
- }) as any;
872
- }
873
-
874
- // .keyof
875
- // @__NO_SIDE_EFFECTS__
876
- export function keyof<T extends ZodMiniObject>(schema: T): ZodMiniEnum<util.KeysEnum<T["shape"]>> {
877
- const shape = schema._zod.def.shape;
878
- return _enum(Object.keys(shape)) as any;
879
- }
880
-
881
- // ZodMiniObject
882
- export interface ZodMiniObject<
883
- /** @ts-ignore Cast variance */
884
- out Shape extends core.$ZodShape = core.$ZodShape,
885
- out Config extends core.$ZodObjectConfig = core.$strip,
886
- > extends ZodMiniType<any, any, core.$ZodObjectInternals<Shape, Config>>,
887
- core.$ZodObject<Shape, Config> {
888
- shape: Shape;
889
- }
890
- export const ZodMiniObject: core.$constructor<ZodMiniObject> = /*@__PURE__*/ core.$constructor(
891
- "ZodMiniObject",
892
- (inst, def) => {
893
- core.$ZodObject.init(inst, def);
894
- ZodMiniType.init(inst, def);
895
- util.installLazyProp(inst, "shape", (self) => self._zod.def.shape, false);
896
- }
897
- );
898
- // @__NO_SIDE_EFFECTS__
899
- export function object<T extends core.$ZodLooseShape = Record<never, SomeType>>(
900
- shape?: T,
901
- params?: string | core.$ZodObjectParams
902
- ): ZodMiniObject<util.Writeable<T>, core.$strip> {
903
- const def: core.$ZodObjectDef = {
904
- type: "object",
905
- shape: shape ?? {},
906
- ...util.normalizeParams(params),
907
- };
908
- return new ZodMiniObject(def) as any;
909
- }
910
-
911
- // strictObject
912
- // @__NO_SIDE_EFFECTS__
913
- export function strictObject<T extends core.$ZodLooseShape>(
914
- shape: T,
915
- params?: string | core.$ZodObjectParams
916
- ): ZodMiniObject<util.Writeable<T>, core.$strict> {
917
- return new ZodMiniObject({
918
- type: "object",
919
- shape,
920
- catchall: never(),
921
- ...util.normalizeParams(params),
922
- }) as any;
923
- }
924
-
925
- // looseObject
926
- // @__NO_SIDE_EFFECTS__
927
- export function looseObject<T extends core.$ZodLooseShape>(
928
- shape: T,
929
- params?: string | core.$ZodObjectParams
930
- ): ZodMiniObject<util.Writeable<T>, core.$loose> {
931
- return new ZodMiniObject({
932
- type: "object",
933
- shape,
934
- catchall: unknown(),
935
- ...util.normalizeParams(params),
936
- }) as any;
937
- }
938
-
939
- // object methods
940
- // @__NO_SIDE_EFFECTS__
941
- export function extend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(
942
- schema: T,
943
- shape: U
944
- ): ZodMiniObject<util.Extend<T["shape"], util.Writeable<U>>, T["_zod"]["config"]> {
945
- return util.extend(schema, shape);
946
- }
947
-
948
- export type SafeExtendShape<Base extends core.$ZodShape, Ext extends core.$ZodLooseShape> = {
949
- [K in keyof Ext]: K extends keyof Base
950
- ? core.output<Ext[K]> extends core.output<Base[K]>
951
- ? core.input<Ext[K]> extends core.input<Base[K]>
952
- ? Ext[K]
953
- : never
954
- : never
955
- : Ext[K];
956
- };
957
-
958
- // @__NO_SIDE_EFFECTS__
959
- export function safeExtend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(
960
- schema: T,
961
- shape: SafeExtendShape<T["shape"], U>
962
- ): ZodMiniObject<util.Extend<T["shape"], util.Writeable<U>>, T["_zod"]["config"]> {
963
- return util.safeExtend(schema, shape as any);
964
- }
965
-
966
- /**
967
- * @deprecated Use [`z.extend(A, B.shape)`](https://zod.dev/api?id=extend) instead.
968
- */
969
- // @__NO_SIDE_EFFECTS__
970
- export function merge<T extends ZodMiniObject, U extends ZodMiniObject>(
971
- a: T,
972
- b: U
973
- ): ZodMiniObject<util.Extend<T["shape"], U["shape"]>, U["_zod"]["config"]> {
974
- return util.merge(a, b) as any;
975
- }
976
-
977
- // @__NO_SIDE_EFFECTS__
978
- export function pick<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
979
- schema: T,
980
- mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
981
- ): ZodMiniObject<util.Flatten<Pick<T["shape"], keyof T["shape"] & keyof M>>, T["_zod"]["config"]> {
982
- return util.pick(schema, mask as any);
983
- }
984
-
985
- // .omit
986
-
987
- // @__NO_SIDE_EFFECTS__
988
- export function omit<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
989
- schema: T,
990
- mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
991
- ): ZodMiniObject<util.Flatten<Omit<T["shape"], keyof M>>, T["_zod"]["config"]> {
992
- return util.omit(schema, mask);
993
- }
994
-
995
- // @__NO_SIDE_EFFECTS__
996
- export function partial<T extends ZodMiniObject>(
997
- schema: T
998
- ): ZodMiniObject<
999
- {
1000
- -readonly [k in keyof T["shape"]]: ZodMiniOptional<T["shape"][k]>;
1001
- },
1002
- T["_zod"]["config"]
1003
- >;
1004
- // @__NO_SIDE_EFFECTS__
1005
- export function partial<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
1006
- schema: T,
1007
- mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
1008
- ): ZodMiniObject<
1009
- {
1010
- -readonly [k in keyof T["shape"]]: k extends keyof M ? ZodMiniOptional<T["shape"][k]> : T["shape"][k];
1011
- },
1012
- T["_zod"]["config"]
1013
- >;
1014
- // @__NO_SIDE_EFFECTS__
1015
- export function partial<T extends util.TupleItems, Rest extends SomeType | null>(
1016
- schema: ZodMiniTuple<T, Rest>
1017
- ): ZodMiniTuple<{ -readonly [k in keyof T]: ZodMiniOptional<T[k]> }, Rest>;
1018
- // @__NO_SIDE_EFFECTS__
1019
- export function partial(schema: ZodMiniObject | ZodMiniTuple, mask?: object) {
1020
- const def = schema._zod.def;
1021
- if (def.type !== "tuple") return util.partial(ZodMiniOptional, schema as ZodMiniObject, mask);
1022
- // a refinement was authored against the full arity; partialing would run it on a shorter array
1023
- if (def.checks?.length) throw new Error(".partial() cannot be used on tuple schemas containing refinements");
1024
- return util.clone(schema, {
1025
- ...def,
1026
- items: def.items.map((item) => new ZodMiniOptional({ type: "optional", innerType: item as core.$ZodType })),
1027
- });
1028
- }
1029
-
1030
- // @__NO_SIDE_EFFECTS__
1031
- export function exactPartial<T extends ZodMiniObject>(
1032
- schema: T
1033
- ): ZodMiniObject<
1034
- {
1035
- -readonly [k in keyof T["shape"]]: ZodMiniExactOptional<T["shape"][k]>;
1036
- },
1037
- T["_zod"]["config"]
1038
- >;
1039
- // @__NO_SIDE_EFFECTS__
1040
- export function exactPartial<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
1041
- schema: T,
1042
- mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
1043
- ): ZodMiniObject<
1044
- {
1045
- -readonly [k in keyof T["shape"]]: k extends keyof M ? ZodMiniExactOptional<T["shape"][k]> : T["shape"][k];
1046
- },
1047
- T["_zod"]["config"]
1048
- >;
1049
- // @__NO_SIDE_EFFECTS__
1050
- export function exactPartial(schema: ZodMiniObject, mask?: object) {
1051
- return util.partial(ZodMiniExactOptional, schema, mask, "exactPartial");
1052
- }
1053
-
1054
- export type RequiredInterfaceShape<
1055
- Shape extends core.$ZodLooseShape,
1056
- Keys extends PropertyKey = keyof Shape,
1057
- > = util.Identity<
1058
- {
1059
- [k in keyof Shape as k extends Keys ? k : never]: ZodMiniNonOptional<Shape[k]>;
1060
- } & {
1061
- [k in keyof Shape as k extends Keys ? never : k]: Shape[k];
1062
- }
1063
- >;
1064
-
1065
- // @__NO_SIDE_EFFECTS__
1066
- export function required<T extends ZodMiniObject>(
1067
- schema: T
1068
- ): ZodMiniObject<
1069
- {
1070
- -readonly [k in keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
1071
- },
1072
- T["_zod"]["config"]
1073
- >;
1074
- // @__NO_SIDE_EFFECTS__
1075
- export function required<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
1076
- schema: T,
1077
- mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
1078
- ): ZodMiniObject<
1079
- util.Extend<
1080
- T["shape"],
1081
- {
1082
- [k in keyof M & keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
1083
- }
1084
- >,
1085
- T["_zod"]["config"]
1086
- >;
1087
- // @__NO_SIDE_EFFECTS__
1088
- export function required(schema: ZodMiniObject, mask?: object) {
1089
- return util.required(ZodMiniNonOptional, schema, mask);
1090
- }
1091
-
1092
- // @__NO_SIDE_EFFECTS__
1093
- export function catchall<T extends ZodMiniObject, U extends SomeType>(
1094
- inst: T,
1095
- catchall: U
1096
- ): ZodMiniObject<T["shape"], core.$catchall<U>> {
1097
- return inst.clone({ ...inst._zod.def, catchall: catchall as any }) as any;
1098
- }
1099
-
1100
- // ZodMiniUnion
1101
- export interface ZodMiniUnion<T extends readonly SomeType[] = readonly core.$ZodType[]>
1102
- extends _ZodMiniType<core.$ZodUnionInternals<T>> {
1103
- // _zod: core.$ZodUnionInternals<T>;
1104
- }
1105
- export const ZodMiniUnion: core.$constructor<ZodMiniUnion> = /*@__PURE__*/ core.$constructor(
1106
- "ZodMiniUnion",
1107
- (inst, def) => {
1108
- core.$ZodUnion.init(inst, def);
1109
- ZodMiniType.init(inst, def);
1110
- }
1111
- );
1112
-
1113
- // @__NO_SIDE_EFFECTS__
1114
- export function union<const T extends readonly SomeType[]>(
1115
- options: T,
1116
- params?: string | core.$ZodUnionParams
1117
- ): ZodMiniUnion<T> {
1118
- return new ZodMiniUnion({
1119
- type: "union",
1120
- options: options as any as core.$ZodType[],
1121
- ...util.normalizeParams(params),
1122
- }) as any;
1123
- }
1124
-
1125
- // ZodMiniXor
1126
- export interface ZodMiniXor<T extends readonly SomeType[] = readonly core.$ZodType[]>
1127
- extends _ZodMiniType<core.$ZodXorInternals<T>> {
1128
- // _zod: core.$ZodXorInternals<T>;
1129
- }
1130
- export const ZodMiniXor: core.$constructor<ZodMiniXor> = /*@__PURE__*/ core.$constructor("ZodMiniXor", (inst, def) => {
1131
- ZodMiniUnion.init(inst, def);
1132
- core.$ZodXor.init(inst, def);
1133
- });
1134
-
1135
- /** Creates an exclusive union (XOR) where exactly one option must match.
1136
- * Unlike regular unions that succeed when any option matches, xor fails if
1137
- * zero or more than one option matches the input. */
1138
- export function xor<const T extends readonly SomeType[]>(
1139
- options: T,
1140
- params?: string | core.$ZodXorParams
1141
- ): ZodMiniXor<T> {
1142
- return new ZodMiniXor({
1143
- type: "union",
1144
- options: options as any as core.$ZodType[],
1145
- inclusive: false,
1146
- ...util.normalizeParams(params),
1147
- }) as any;
1148
- }
1149
-
1150
- // ZodMiniDiscriminatedUnion
1151
- export interface ZodMiniDiscriminatedUnion<
1152
- Options extends readonly SomeType[] = readonly core.$ZodType[],
1153
- Disc extends string = string,
1154
- > extends ZodMiniUnion<Options> {
1155
- _zod: core.$ZodDiscriminatedUnionInternals<Options, Disc>;
1156
- }
1157
- export const ZodMiniDiscriminatedUnion: core.$constructor<ZodMiniDiscriminatedUnion> = /*@__PURE__*/ core.$constructor(
1158
- "ZodMiniDiscriminatedUnion",
1159
- (inst, def) => {
1160
- core.$ZodDiscriminatedUnion.init(inst, def);
1161
- ZodMiniType.init(inst, def);
1162
- }
1163
- );
1164
-
1165
- // @__NO_SIDE_EFFECTS__
1166
- export function discriminatedUnion<
1167
- Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]],
1168
- Disc extends string,
1169
- >(
1170
- discriminator: Disc,
1171
- options: Types,
1172
- params?: string | core.$ZodDiscriminatedUnionParams
1173
- ): ZodMiniDiscriminatedUnion<Types, Disc> {
1174
- return new ZodMiniDiscriminatedUnion({
1175
- type: "union",
1176
- options: options as any as core.$ZodType[],
1177
- discriminator,
1178
- ...util.normalizeParams(params),
1179
- }) as any as ZodMiniDiscriminatedUnion<Types, Disc>;
1180
- }
1181
-
1182
- // ZodMiniIntersection
1183
- export interface ZodMiniIntersection<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType>
1184
- extends _ZodMiniType<core.$ZodIntersectionInternals<A, B>> {
1185
- // _zod: core.$ZodIntersectionInternals<A, B>;
1186
- }
1187
- export const ZodMiniIntersection: core.$constructor<ZodMiniIntersection> = /*@__PURE__*/ core.$constructor(
1188
- "ZodMiniIntersection",
1189
- (inst, def) => {
1190
- core.$ZodIntersection.init(inst, def);
1191
- ZodMiniType.init(inst, def);
1192
- }
1193
- );
1194
-
1195
- // @__NO_SIDE_EFFECTS__
1196
- export function intersection<T extends SomeType, U extends SomeType>(left: T, right: U): ZodMiniIntersection<T, U> {
1197
- return new ZodMiniIntersection({
1198
- type: "intersection",
1199
- left: left as any as core.$ZodType,
1200
- right: right as any as core.$ZodType,
1201
- }) as any;
1202
- }
1203
-
1204
- // ZodMiniTuple
1205
- export interface ZodMiniTuple<
1206
- T extends util.TupleItems = readonly core.$ZodType[],
1207
- Rest extends SomeType | null = core.$ZodType | null,
1208
- > extends _ZodMiniType<core.$ZodTupleInternals<T, Rest>> {
1209
- // _zod: core.$ZodTupleInternals<T, Rest>;
1210
- }
1211
- export const ZodMiniTuple: core.$constructor<ZodMiniTuple> = /*@__PURE__*/ core.$constructor(
1212
- "ZodMiniTuple",
1213
- (inst, def) => {
1214
- core.$ZodTuple.init(inst, def);
1215
- ZodMiniType.init(inst, def);
1216
- }
1217
- );
1218
-
1219
- export function tuple<const T extends readonly [SomeType, ...SomeType[]]>(
1220
- items: T,
1221
- params?: string | core.$ZodTupleParams
1222
- ): ZodMiniTuple<T, null>;
1223
- export function tuple<const T extends readonly [SomeType, ...SomeType[]], Rest extends SomeType>(
1224
- items: T,
1225
- rest: Rest,
1226
- params?: string | core.$ZodTupleParams
1227
- ): ZodMiniTuple<T, Rest>;
1228
- export function tuple(items: [], params?: string | core.$ZodTupleParams): ZodMiniTuple<[], null>;
1229
- // @__NO_SIDE_EFFECTS__
1230
- export function tuple(
1231
- items: SomeType[],
1232
- _paramsOrRest?: string | core.$ZodTupleParams | SomeType,
1233
- _params?: string | core.$ZodTupleParams
1234
- ) {
1235
- const hasRest = _paramsOrRest instanceof core.$ZodType;
1236
- const params = hasRest ? _params : _paramsOrRest;
1237
- const rest = hasRest ? _paramsOrRest : null;
1238
- return new ZodMiniTuple({
1239
- type: "tuple",
1240
- items: items as any as core.$ZodType[],
1241
- rest,
1242
- ...util.normalizeParams(params),
1243
- });
1244
- }
1245
-
1246
- // ZodMiniRecord
1247
- export interface ZodMiniRecord<
1248
- Key extends core.$ZodRecordKey = core.$ZodRecordKey,
1249
- Value extends SomeType = core.$ZodType,
1250
- > extends _ZodMiniType<core.$ZodRecordInternals<Key, Value>> {
1251
- // _zod: core.$ZodRecordInternals<Key, Value>;
1252
- }
1253
- export const ZodMiniRecord: core.$constructor<ZodMiniRecord> = /*@__PURE__*/ core.$constructor(
1254
- "ZodMiniRecord",
1255
- (inst, def) => {
1256
- core.$ZodRecord.init(inst, def);
1257
- ZodMiniType.init(inst, def);
1258
- }
1259
- );
1260
-
1261
- // @__NO_SIDE_EFFECTS__
1262
- export function record<Key extends core.$ZodRecordKey, Value extends SomeType>(
1263
- keyType: Key,
1264
- valueType: Value,
1265
- params?: string | core.$ZodRecordParams
1266
- ): ZodMiniRecord<Key, Value> {
1267
- // v3-compat: z.record(valueType, params?) — defaults keyType to z.string()
1268
- if (!valueType || !(valueType as any)._zod) {
1269
- return new ZodMiniRecord({
1270
- type: "record",
1271
- keyType: string() as any,
1272
- valueType: keyType as any as core.$ZodType,
1273
- ...util.normalizeParams(valueType as string | core.$ZodRecordParams | undefined),
1274
- }) as any;
1275
- }
1276
- return new ZodMiniRecord({
1277
- type: "record",
1278
- keyType,
1279
- valueType: valueType as any as core.$ZodType,
1280
- ...util.normalizeParams(params),
1281
- }) as any;
1282
- }
1283
- // @__NO_SIDE_EFFECTS__
1284
- export function partialRecord<Key extends core.$ZodRecordKey, Value extends SomeType>(
1285
- keyType: Key,
1286
- valueType: Value,
1287
- params?: string | core.$ZodRecordParams
1288
- ): ZodMiniRecord<Key & core.$partial, Value> {
1289
- return new ZodMiniRecord({
1290
- type: "record",
1291
- keyType,
1292
- valueType: valueType as any,
1293
- ...util.normalizeParams(params),
1294
- partial: true,
1295
- }) as any;
1296
- }
1297
-
1298
- export function looseRecord<Key extends core.$ZodRecordKey, Value extends SomeType>(
1299
- keyType: Key,
1300
- valueType: Value,
1301
- params?: string | core.$ZodRecordParams
1302
- ): ZodMiniRecord<Key, Value> {
1303
- return new ZodMiniRecord({
1304
- type: "record",
1305
- keyType,
1306
- valueType: valueType as any as core.$ZodType,
1307
- mode: "loose",
1308
- ...util.normalizeParams(params),
1309
- }) as any;
1310
- }
1311
-
1312
- // ZodMiniMap
1313
- export interface ZodMiniMap<Key extends SomeType = core.$ZodType, Value extends SomeType = core.$ZodType>
1314
- extends _ZodMiniType<core.$ZodMapInternals<Key, Value>> {
1315
- // _zod: core.$ZodMapInternals<Key, Value>;
1316
- }
1317
- export const ZodMiniMap: core.$constructor<ZodMiniMap> = /*@__PURE__*/ core.$constructor("ZodMiniMap", (inst, def) => {
1318
- core.$ZodMap.init(inst, def);
1319
- ZodMiniType.init(inst, def);
1320
- });
1321
-
1322
- // @__NO_SIDE_EFFECTS__
1323
- export function map<Key extends SomeType, Value extends SomeType>(
1324
- keyType: Key,
1325
- valueType: Value,
1326
- params?: string | core.$ZodMapParams
1327
- ): ZodMiniMap<Key, Value> {
1328
- return new ZodMiniMap({
1329
- type: "map",
1330
- keyType: keyType as any as core.$ZodType,
1331
- valueType: valueType as any as core.$ZodType,
1332
- ...util.normalizeParams(params),
1333
- }) as any;
1334
- }
1335
-
1336
- // ZodMiniSet
1337
- export interface ZodMiniSet<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodSetInternals<T>> {
1338
- // _zod: core.$ZodSetInternals<T>;
1339
- }
1340
- export const ZodMiniSet: core.$constructor<ZodMiniSet> = /*@__PURE__*/ core.$constructor("ZodMiniSet", (inst, def) => {
1341
- core.$ZodSet.init(inst, def);
1342
- ZodMiniType.init(inst, def);
1343
- });
1344
-
1345
- // @__NO_SIDE_EFFECTS__
1346
- export function set<Value extends SomeType>(valueType: Value, params?: string | core.$ZodSetParams): ZodMiniSet<Value> {
1347
- return new ZodMiniSet({
1348
- type: "set",
1349
- valueType: valueType as any as core.$ZodType,
1350
- ...util.normalizeParams(params),
1351
- }) as any;
1352
- }
1353
-
1354
- // ZodMiniEnum
1355
- export interface ZodMiniEnum<T extends util.EnumLike = util.EnumLike> extends _ZodMiniType<core.$ZodEnumInternals<T>> {
1356
- // _zod: core.$ZodEnumInternals<T>;
1357
- options: Array<T[keyof T]>;
1358
- }
1359
- export const ZodMiniEnum: core.$constructor<ZodMiniEnum> = /*@__PURE__*/ core.$constructor(
1360
- "ZodMiniEnum",
1361
- (inst, def) => {
1362
- core.$ZodEnum.init(inst, def);
1363
- ZodMiniType.init(inst, def);
1364
-
1365
- inst.options = Object.values(def.entries);
1366
- }
1367
- );
1368
-
1369
- function _enum<const T extends readonly string[]>(
1370
- values: T,
1371
- params?: string | core.$ZodEnumParams
1372
- ): ZodMiniEnum<util.ToEnum<T[number]>>;
1373
- function _enum<T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodMiniEnum<T>;
1374
- // @__NO_SIDE_EFFECTS__
1375
- function _enum(values: any, params?: string | core.$ZodEnumParams) {
1376
- const entries: any = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
1377
-
1378
- return new ZodMiniEnum({
1379
- type: "enum",
1380
- entries,
1381
- ...util.normalizeParams(params),
1382
- }) as any;
1383
- }
1384
- export { _enum as enum };
1385
-
1386
- // @__NO_SIDE_EFFECTS__
1387
- /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
1388
- *
1389
- * ```ts
1390
- * enum Colors { red, green, blue }
1391
- * z.enum(Colors);
1392
- * ```
1393
- */
1394
- export function nativeEnum<T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodMiniEnum<T> {
1395
- return new ZodMiniEnum({
1396
- type: "enum",
1397
- entries,
1398
- ...util.normalizeParams(params),
1399
- }) as any as ZodMiniEnum<T>;
1400
- }
1401
-
1402
- // ZodMiniLiteral
1403
- export interface ZodMiniLiteral<T extends util.Literal = util.Literal>
1404
- extends _ZodMiniType<core.$ZodLiteralInternals<T>> {
1405
- // _zod: core.$ZodLiteralInternals<T>;
1406
- }
1407
- export const ZodMiniLiteral: core.$constructor<ZodMiniLiteral> = /*@__PURE__*/ core.$constructor(
1408
- "ZodMiniLiteral",
1409
- (inst, def) => {
1410
- core.$ZodLiteral.init(inst, def);
1411
- ZodMiniType.init(inst, def);
1412
- }
1413
- );
1414
-
1415
- export function literal<const T extends ReadonlyArray<util.Literal>>(
1416
- value: T,
1417
- params?: string | core.$ZodLiteralParams
1418
- ): ZodMiniLiteral<T[number]>;
1419
- export function literal<const T extends util.Literal>(
1420
- value: T,
1421
- params?: string | core.$ZodLiteralParams
1422
- ): ZodMiniLiteral<T>;
1423
- // @__NO_SIDE_EFFECTS__
1424
- export function literal(value: any, params: any) {
1425
- return new ZodMiniLiteral({
1426
- type: "literal",
1427
- values: Array.isArray(value) ? value : [value],
1428
- ...util.normalizeParams(params),
1429
- });
1430
- }
1431
-
1432
- // ZodMiniFile
1433
- export interface ZodMiniFile extends _ZodMiniType<core.$ZodFileInternals> {
1434
- // _zod: core.$ZodFileInternals;
1435
- }
1436
- export const ZodMiniFile: core.$constructor<ZodMiniFile> = /*@__PURE__*/ core.$constructor(
1437
- "ZodMiniFile",
1438
- (inst, def) => {
1439
- core.$ZodFile.init(inst, def);
1440
- ZodMiniType.init(inst, def);
1441
- }
1442
- );
1443
-
1444
- // @__NO_SIDE_EFFECTS__
1445
- export function file(params?: string | core.$ZodFileParams): ZodMiniFile {
1446
- return core._file(ZodMiniFile, params) as any;
1447
- }
1448
-
1449
- // ZodMiniTransform
1450
- export interface ZodMiniTransform<O = unknown, I = unknown> extends _ZodMiniType<core.$ZodTransformInternals<O, I>> {
1451
- // _zod: core.$ZodTransformInternals<O, I>;
1452
- }
1453
- export const ZodMiniTransform: core.$constructor<ZodMiniTransform> = /*@__PURE__*/ core.$constructor(
1454
- "ZodMiniTransform",
1455
- (inst, def) => {
1456
- core.$ZodTransform.init(inst, def);
1457
- ZodMiniType.init(inst, def);
1458
- }
1459
- );
1460
-
1461
- // @__NO_SIDE_EFFECTS__
1462
- export function transform<I = unknown, O = I>(
1463
- fn: (input: I, ctx: core.ParsePayload) => O
1464
- ): ZodMiniTransform<Awaited<O>, I> {
1465
- return new ZodMiniTransform({
1466
- type: "transform",
1467
- transform: fn as any,
1468
- }) as any;
1469
- }
1470
-
1471
- // ZodMiniOptional
1472
- export interface ZodMiniOptional<T extends SomeType = core.$ZodType>
1473
- extends _ZodMiniType<core.$ZodOptionalInternals<T>>,
1474
- core.$ZodOptional<T> {
1475
- // _zod: core.$ZodOptionalInternals<T>;
1476
- }
1477
- export const ZodMiniOptional: core.$constructor<ZodMiniOptional> = /*@__PURE__*/ core.$constructor(
1478
- "ZodMiniOptional",
1479
- (inst, def) => {
1480
- core.$ZodOptional.init(inst, def);
1481
- ZodMiniType.init(inst, def);
1482
- }
1483
- );
1484
-
1485
- // @__NO_SIDE_EFFECTS__
1486
- export function optional<T extends SomeType>(innerType: T): ZodMiniOptional<T> {
1487
- return new ZodMiniOptional({
1488
- type: "optional",
1489
- innerType: innerType as any as core.$ZodType,
1490
- }) as any;
1491
- }
1492
-
1493
- // ZodMiniExactOptional
1494
- export interface ZodMiniExactOptional<T extends SomeType = core.$ZodType>
1495
- extends _ZodMiniType<core.$ZodExactOptionalInternals<T>>,
1496
- core.$ZodExactOptional<T> {
1497
- // _zod: core.$ZodExactOptionalInternals<T>;
1498
- }
1499
- export const ZodMiniExactOptional: core.$constructor<ZodMiniExactOptional> = /*@__PURE__*/ core.$constructor(
1500
- "ZodMiniExactOptional",
1501
- (inst, def) => {
1502
- core.$ZodExactOptional.init(inst, def);
1503
- ZodMiniType.init(inst, def);
1504
- }
1505
- );
1506
-
1507
- // @__NO_SIDE_EFFECTS__
1508
- export function exactOptional<T extends SomeType>(innerType: T): ZodMiniExactOptional<T> {
1509
- return new ZodMiniExactOptional({
1510
- type: "optional",
1511
- innerType: innerType as any as core.$ZodType,
1512
- }) as any;
1513
- }
1514
-
1515
- // ZodMiniNullable
1516
- export interface ZodMiniNullable<T extends SomeType = core.$ZodType>
1517
- extends _ZodMiniType<core.$ZodNullableInternals<T>> {
1518
- // _zod: core.$ZodNullableInternals<T>;
1519
- }
1520
- export const ZodMiniNullable: core.$constructor<ZodMiniNullable> = /*@__PURE__*/ core.$constructor(
1521
- "ZodMiniNullable",
1522
- (inst, def) => {
1523
- core.$ZodNullable.init(inst, def);
1524
- ZodMiniType.init(inst, def);
1525
- }
1526
- );
1527
-
1528
- // @__NO_SIDE_EFFECTS__
1529
- export function nullable<T extends SomeType>(innerType: T): ZodMiniNullable<T> {
1530
- return new ZodMiniNullable({
1531
- type: "nullable",
1532
- innerType: innerType as any as core.$ZodType,
1533
- }) as any;
1534
- }
1535
-
1536
- // nullish
1537
- // @__NO_SIDE_EFFECTS__
1538
- export function nullish<T extends SomeType>(innerType: T): ZodMiniOptional<ZodMiniNullable<T>> {
1539
- return optional(nullable(innerType));
1540
- }
1541
-
1542
- // ZodMiniDefault
1543
- export interface ZodMiniDefault<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodDefaultInternals<T>> {
1544
- // _zod: core.$ZodDefaultInternals<T>;
1545
- }
1546
- export const ZodMiniDefault: core.$constructor<ZodMiniDefault> = /*@__PURE__*/ core.$constructor(
1547
- "ZodMiniDefault",
1548
- (inst, def) => {
1549
- core.$ZodDefault.init(inst, def);
1550
- ZodMiniType.init(inst, def);
1551
- }
1552
- );
1553
-
1554
- // @__NO_SIDE_EFFECTS__
1555
- export function _default<T extends SomeType>(
1556
- innerType: T,
1557
- defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)
1558
- ): ZodMiniDefault<T> {
1559
- return new ZodMiniDefault({
1560
- type: "default",
1561
- innerType: innerType as any as core.$ZodType,
1562
- get defaultValue() {
1563
- return typeof defaultValue === "function" ? (defaultValue as Function)() : util.shallowClone(defaultValue);
1564
- },
1565
- }) as any;
1566
- }
1567
-
1568
- // ZodMiniPrefault
1569
- export interface ZodMiniPrefault<T extends SomeType = core.$ZodType>
1570
- extends _ZodMiniType<core.$ZodPrefaultInternals<T>> {
1571
- // _zod: core.$ZodPrefaultInternals<T>;
1572
- }
1573
- export const ZodMiniPrefault: core.$constructor<ZodMiniPrefault> = /*@__PURE__*/ core.$constructor(
1574
- "ZodMiniPrefault",
1575
- (inst, def) => {
1576
- core.$ZodPrefault.init(inst, def);
1577
- ZodMiniType.init(inst, def);
1578
- }
1579
- );
1580
- // @__NO_SIDE_EFFECTS__
1581
- export function prefault<T extends SomeType>(
1582
- innerType: T,
1583
- defaultValue: util.NoUndefined<core.input<T>> | (() => util.NoUndefined<core.input<T>>)
1584
- ): ZodMiniPrefault<T> {
1585
- return new ZodMiniPrefault({
1586
- type: "prefault",
1587
- innerType: innerType as any as core.$ZodType,
1588
- get defaultValue() {
1589
- return typeof defaultValue === "function" ? (defaultValue as Function)() : util.shallowClone(defaultValue);
1590
- },
1591
- }) as any;
1592
- }
1593
-
1594
- // ZodMiniNonOptional
1595
- export interface ZodMiniNonOptional<T extends SomeType = core.$ZodType>
1596
- extends _ZodMiniType<core.$ZodNonOptionalInternals<T>> {
1597
- // _zod: core.$ZodNonOptionalInternals<T>;
1598
- }
1599
- export const ZodMiniNonOptional: core.$constructor<ZodMiniNonOptional> = /*@__PURE__*/ core.$constructor(
1600
- "ZodMiniNonOptional",
1601
- (inst, def) => {
1602
- core.$ZodNonOptional.init(inst, def);
1603
- ZodMiniType.init(inst, def);
1604
- }
1605
- );
1606
-
1607
- // @__NO_SIDE_EFFECTS__
1608
- export function nonoptional<T extends SomeType>(
1609
- innerType: T,
1610
- params?: string | core.$ZodNonOptionalParams
1611
- ): ZodMiniNonOptional<T> {
1612
- return new ZodMiniNonOptional({
1613
- type: "nonoptional",
1614
- innerType: innerType as any as core.$ZodType,
1615
- ...util.normalizeParams(params),
1616
- }) as any;
1617
- }
1618
-
1619
- // ZodMiniSuccess
1620
- export interface ZodMiniSuccess<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodSuccessInternals<T>> {
1621
- // _zod: core.$ZodSuccessInternals<T>;
1622
- }
1623
- export const ZodMiniSuccess: core.$constructor<ZodMiniSuccess> = /*@__PURE__*/ core.$constructor(
1624
- "ZodMiniSuccess",
1625
- (inst, def) => {
1626
- core.$ZodSuccess.init(inst, def);
1627
- ZodMiniType.init(inst, def);
1628
- }
1629
- );
1630
-
1631
- // @__NO_SIDE_EFFECTS__
1632
- export function success<T extends SomeType>(innerType: T): ZodMiniSuccess<T> {
1633
- return new ZodMiniSuccess({
1634
- type: "success",
1635
- innerType: innerType as any as core.$ZodType,
1636
- }) as any;
1637
- }
1638
-
1639
- // ZodMiniCatch
1640
- export interface ZodMiniCatch<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodCatchInternals<T>> {
1641
- // _zod: core.$ZodCatchInternals<T>;
1642
- }
1643
- export const ZodMiniCatch: core.$constructor<ZodMiniCatch> = /*@__PURE__*/ core.$constructor(
1644
- "ZodMiniCatch",
1645
- (inst, def) => {
1646
- core.$ZodCatch.init(inst, def);
1647
- ZodMiniType.init(inst, def);
1648
- }
1649
- );
1650
-
1651
- // @__NO_SIDE_EFFECTS__
1652
- function _catch<T extends SomeType>(
1653
- innerType: T,
1654
- catchValue: core.output<T> | ((ctx: core.$ZodCatchCtx) => core.output<T>)
1655
- ): ZodMiniCatch<T> {
1656
- return new ZodMiniCatch({
1657
- type: "catch",
1658
- innerType: innerType as any as core.$ZodType,
1659
- catchValue: (typeof catchValue === "function" ? catchValue : core.util.constantCatch(catchValue)) as (
1660
- ctx: core.$ZodCatchCtx
1661
- ) => core.output<T>,
1662
- }) as any;
1663
- }
1664
- export { _catch as catch };
1665
-
1666
- // ZodMiniNaN
1667
- export interface ZodMiniNaN extends _ZodMiniType<core.$ZodNaNInternals> {
1668
- // _zod: core.$ZodNaNInternals;
1669
- }
1670
- export const ZodMiniNaN: core.$constructor<ZodMiniNaN> = /*@__PURE__*/ core.$constructor("ZodMiniNaN", (inst, def) => {
1671
- core.$ZodNaN.init(inst, def);
1672
- ZodMiniType.init(inst, def);
1673
- });
1674
-
1675
- // @__NO_SIDE_EFFECTS__
1676
- export function nan(params?: string | core.$ZodNaNParams): ZodMiniNaN {
1677
- return core._nan(ZodMiniNaN, params) as any;
1678
- }
1679
-
1680
- // ZodMiniPipe
1681
- export interface ZodMiniPipe<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType>
1682
- extends _ZodMiniType<core.$ZodPipeInternals<A, B>> {
1683
- // _zod: core.$ZodPipeInternals<A, B>;
1684
- }
1685
- export const ZodMiniPipe: core.$constructor<ZodMiniPipe> = /*@__PURE__*/ core.$constructor(
1686
- "ZodMiniPipe",
1687
- (inst, def) => {
1688
- core.$ZodPipe.init(inst, def);
1689
- ZodMiniType.init(inst, def);
1690
- }
1691
- );
1692
-
1693
- // @__NO_SIDE_EFFECTS__
1694
- export function pipe<
1695
- const A extends SomeType,
1696
- B extends core.$ZodType<unknown, core.output<A>> = core.$ZodType<unknown, core.output<A>>,
1697
- >(in_: A, out: B | core.$ZodType<unknown, core.output<A>>): ZodMiniPipe<A, B> {
1698
- return new ZodMiniPipe({
1699
- type: "pipe",
1700
- in: in_ as any as core.$ZodType,
1701
- out: out as any as core.$ZodType,
1702
- }) as any;
1703
- }
1704
-
1705
- // ZodMiniCodec
1706
- export interface ZodMiniCodec<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType>
1707
- extends ZodMiniPipe<A, B>,
1708
- core.$ZodCodec<A, B> {
1709
- _zod: core.$ZodCodecInternals<A, B>;
1710
- def: core.$ZodCodecDef<A, B>;
1711
- }
1712
- export const ZodMiniCodec: core.$constructor<ZodMiniCodec> = /*@__PURE__*/ core.$constructor(
1713
- "ZodMiniCodec",
1714
- (inst, def) => {
1715
- ZodMiniPipe.init(inst, def);
1716
- core.$ZodCodec.init(inst, def);
1717
- }
1718
- );
1719
-
1720
- // @__NO_SIDE_EFFECTS__
1721
- export function codec<const A extends SomeType, B extends core.SomeType = core.$ZodType>(
1722
- in_: A,
1723
- out: B,
1724
- params: {
1725
- decode: (value: core.output<A>, payload: core.ParsePayload<core.output<A>>) => core.util.MaybeAsync<core.input<B>>;
1726
- encode: (value: core.input<B>, payload: core.ParsePayload<core.input<B>>) => core.util.MaybeAsync<core.output<A>>;
1727
- }
1728
- ): ZodMiniCodec<A, B> {
1729
- return new ZodMiniCodec({
1730
- type: "pipe",
1731
- in: in_ as any as core.$ZodType,
1732
- out: out as any as core.$ZodType,
1733
- transform: params.decode as any,
1734
- reverseTransform: params.encode as any,
1735
- }) as any;
1736
- }
1737
-
1738
- // @__NO_SIDE_EFFECTS__
1739
- export function invertCodec<A extends SomeType, B extends SomeType>(codec: ZodMiniCodec<A, B>): ZodMiniCodec<B, A> {
1740
- const def = codec._zod.def;
1741
- return new ZodMiniCodec({
1742
- type: "pipe",
1743
- in: def.out as any,
1744
- out: def.in as any,
1745
- transform: def.reverseTransform as any,
1746
- reverseTransform: def.transform as any,
1747
- }) as any;
1748
- }
1749
-
1750
- // ZodMiniReadonly
1751
- export interface ZodMiniReadonly<T extends SomeType = core.$ZodType>
1752
- extends _ZodMiniType<core.$ZodReadonlyInternals<T>> {
1753
- // _zod: core.$ZodReadonlyInternals<T>;
1754
- }
1755
- export const ZodMiniReadonly: core.$constructor<ZodMiniReadonly> = /*@__PURE__*/ core.$constructor(
1756
- "ZodMiniReadonly",
1757
- (inst, def) => {
1758
- core.$ZodReadonly.init(inst, def);
1759
- ZodMiniType.init(inst, def);
1760
- }
1761
- );
1762
-
1763
- // @__NO_SIDE_EFFECTS__
1764
- export function readonly<T extends SomeType>(innerType: T): ZodMiniReadonly<T> {
1765
- return new ZodMiniReadonly({
1766
- type: "readonly",
1767
- innerType: innerType as any as core.$ZodType,
1768
- }) as any;
1769
- }
1770
-
1771
- // ZodMiniTemplateLiteral
1772
- export interface ZodMiniTemplateLiteral<Template extends string = string>
1773
- extends _ZodMiniType<core.$ZodTemplateLiteralInternals<Template>> {
1774
- // _zod: core.$ZodTemplateLiteralInternals<Template>;
1775
- }
1776
- export const ZodMiniTemplateLiteral: core.$constructor<ZodMiniTemplateLiteral> = /*@__PURE__*/ core.$constructor(
1777
- "ZodMiniTemplateLiteral",
1778
- (inst, def) => {
1779
- core.$ZodTemplateLiteral.init(inst, def);
1780
- ZodMiniType.init(inst, def);
1781
- }
1782
- );
1783
-
1784
- // @__NO_SIDE_EFFECTS__
1785
- export function templateLiteral<const Parts extends core.$ZodTemplateLiteralPart[]>(
1786
- parts: Parts,
1787
- params?: string | core.$ZodTemplateLiteralParams
1788
- ): ZodMiniTemplateLiteral<core.$PartsToTemplateLiteral<Parts>> {
1789
- return new ZodMiniTemplateLiteral({
1790
- type: "template_literal",
1791
- parts,
1792
- ...util.normalizeParams(params),
1793
- }) as any;
1794
- }
1795
-
1796
- // ZodMiniLazy
1797
- export interface ZodMiniLazy<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodLazyInternals<T>> {
1798
- // _zod: core.$ZodLazyInternals<T>;
1799
- }
1800
- export const ZodMiniLazy: core.$constructor<ZodMiniLazy> = /*@__PURE__*/ core.$constructor(
1801
- "ZodMiniLazy",
1802
- (inst, def) => {
1803
- core.$ZodLazy.init(inst, def);
1804
- ZodMiniType.init(inst, def);
1805
- }
1806
- );
1807
-
1808
- // export function lazy<T extends object>(getter: () => T): T {
1809
- // return util.createTransparentProxy<T>(getter);
1810
- // }
1811
- // @__NO_SIDE_EFFECTS__
1812
- function _lazy<T extends SomeType>(getter: () => T): ZodMiniLazy<T> {
1813
- return new ZodMiniLazy({
1814
- type: "lazy",
1815
- getter: getter as any,
1816
- }) as any;
1817
- }
1818
- export { _lazy as lazy };
1819
-
1820
- // ZodMiniPromise
1821
- export interface ZodMiniPromise<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodPromiseInternals<T>> {
1822
- // _zod: core.$ZodPromiseInternals<T>;
1823
- }
1824
- export const ZodMiniPromise: core.$constructor<ZodMiniPromise> = /*@__PURE__*/ core.$constructor(
1825
- "ZodMiniPromise",
1826
- (inst, def) => {
1827
- core.$ZodPromise.init(inst, def);
1828
- ZodMiniType.init(inst, def);
1829
- }
1830
- );
1831
-
1832
- // @__NO_SIDE_EFFECTS__
1833
- export function promise<T extends SomeType>(innerType: T): ZodMiniPromise<T> {
1834
- return new ZodMiniPromise({
1835
- type: "promise",
1836
- innerType: innerType as any as core.$ZodType,
1837
- }) as any;
1838
- }
1839
-
1840
- // ZodMiniCustom
1841
- export interface ZodMiniCustom<O = unknown, I = unknown> extends _ZodMiniType<core.$ZodCustomInternals<O, I>> {
1842
- // _zod: core.$ZodCustomInternals<O, I>;
1843
- }
1844
- export const ZodMiniCustom: core.$constructor<ZodMiniCustom> = /*@__PURE__*/ core.$constructor(
1845
- "ZodMiniCustom",
1846
- (inst, def) => {
1847
- core.$ZodCustom.init(inst, def);
1848
- ZodMiniType.init(inst, def);
1849
- }
1850
- );
1851
-
1852
- // custom checks
1853
- // @__NO_SIDE_EFFECTS__
1854
- export function check<O = unknown>(fn: core.CheckFn<O>, params?: string | core.$ZodCustomParams): core.$ZodCheck<O> {
1855
- const ch = new core.$ZodCheck({
1856
- check: "custom",
1857
- ...util.normalizeParams(params),
1858
- });
1859
-
1860
- ch._zod.check = fn;
1861
- return ch;
1862
- }
1863
-
1864
- // ZodCustom custom schema
1865
- // @__NO_SIDE_EFFECTS__
1866
- export function custom<O = unknown, I = O>(
1867
- fn?: (data: O) => unknown,
1868
- _params?: string | core.$ZodCustomParams | undefined
1869
- ): ZodMiniCustom<O, I> {
1870
- return core._custom(ZodMiniCustom, fn ?? (() => true), _params) as any;
1871
- }
1872
-
1873
- // refine
1874
- // @__NO_SIDE_EFFECTS__
1875
- export function refine<T>(
1876
- fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>,
1877
- _params: string | core.$ZodCustomParams = {}
1878
- ): core.$ZodCheck<T> {
1879
- return core._refine(ZodMiniCustom, fn, _params);
1880
- }
1881
-
1882
- // superRefine
1883
- // @__NO_SIDE_EFFECTS__
1884
- export function superRefine<T>(
1885
- fn: (arg: T, payload: core.$RefinementCtx<T>) => void | Promise<void>,
1886
- params?: core.$ZodSuperRefineParams
1887
- ): core.$ZodCheck<T> {
1888
- return core._superRefine(fn, params);
1889
- }
1890
-
1891
- // Re-export describe and meta from core
1892
- export const describe = core.describe;
1893
- export const meta = core.meta;
1894
-
1895
- // instanceof
1896
- abstract class Class {
1897
- constructor(..._args: any[]) {}
1898
- }
1899
- // @__NO_SIDE_EFFECTS__
1900
- function _instanceof<T extends typeof Class>(
1901
- cls: T,
1902
- params: core.$ZodCustomParams = {}
1903
- ): ZodMiniCustom<InstanceType<T>, InstanceType<T>> {
1904
- const inst = custom((data) => data instanceof cls, params);
1905
- inst._zod.bag.Class = cls;
1906
- // Override check to emit invalid_type instead of custom
1907
- inst._zod.check = (payload) => {
1908
- if (!(payload.value instanceof cls)) {
1909
- payload.issues.push({
1910
- code: "invalid_type",
1911
- expected: cls.name,
1912
- input: payload.value,
1913
- inst,
1914
- path: [...(inst._zod.def.path ?? [])],
1915
- });
1916
- }
1917
- };
1918
- return inst as any;
1919
- }
1920
- export { _instanceof as instanceof };
1921
-
1922
- // stringbool
1923
- export const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodMiniCodec<ZodMiniString, ZodMiniBoolean> =
1924
- (...args) =>
1925
- core._stringbool(
1926
- {
1927
- Codec: ZodMiniCodec,
1928
- Boolean: ZodMiniBoolean,
1929
- String: ZodMiniString,
1930
- },
1931
- ...args
1932
- ) as any;
1933
-
1934
- // json
1935
-
1936
- // json
1937
- export type _ZodMiniJSONSchema = ZodMiniUnion<
1938
- [
1939
- ZodMiniString,
1940
- ZodMiniNumber,
1941
- ZodMiniBoolean,
1942
- ZodMiniNull,
1943
- ZodMiniArray<ZodMiniJSONSchema>,
1944
- ZodMiniRecord<ZodMiniString<string>, ZodMiniJSONSchema>,
1945
- ]
1946
- >;
1947
- export type _ZodMiniJSONSchemaInternals = _ZodMiniJSONSchema["_zod"];
1948
-
1949
- export interface ZodMiniJSONSchemaInternals extends _ZodMiniJSONSchemaInternals {
1950
- output: util.JSONType;
1951
- input: util.JSONType;
1952
- }
1953
- export interface ZodMiniJSONSchema extends _ZodMiniJSONSchema {
1954
- _zod: ZodMiniJSONSchemaInternals;
1955
- }
1956
-
1957
- // @__NO_SIDE_EFFECTS__
1958
- export function json(): ZodMiniJSONSchema {
1959
- const jsonSchema: any = _lazy(() => {
1960
- return union([string(), number(), boolean(), _null(), array(jsonSchema), record(string(), jsonSchema)]);
1961
- });
1962
- return jsonSchema;
1963
- }
1964
-
1965
- // ZodMiniFunction
1966
- export interface ZodMiniFunction<
1967
- Args extends core.$ZodFunctionIn = core.$ZodFunctionIn,
1968
- Returns extends core.$ZodFunctionOut = core.$ZodFunctionOut,
1969
- > extends _ZodMiniType<core.$ZodFunctionInternals<Args, Returns>>,
1970
- core.$ZodFunction<Args, Returns> {
1971
- _def: core.$ZodFunctionDef<Args, Returns>;
1972
- _input: core.$InferInnerFunctionType<Args, Returns>;
1973
- _output: core.$InferOuterFunctionType<Args, Returns>;
1974
-
1975
- input<const Items extends util.TupleItems, const Rest extends core.$ZodFunctionOut = core.$ZodFunctionOut>(
1976
- args: Items,
1977
- rest?: Rest
1978
- ): ZodMiniFunction<ZodMiniTuple<Items, Rest>, Returns>;
1979
- input<NewArgs extends core.$ZodFunctionIn>(args: NewArgs): ZodMiniFunction<NewArgs, Returns>;
1980
- input(...args: any[]): ZodMiniFunction<any, Returns>;
1981
-
1982
- output<NewReturns extends core.$ZodFunctionOut>(output: NewReturns): ZodMiniFunction<Args, NewReturns>;
1983
- }
1984
-
1985
- export const ZodMiniFunction: core.$constructor<ZodMiniFunction> = /*@__PURE__*/ core.$constructor(
1986
- "ZodMiniFunction",
1987
- (inst, def) => {
1988
- core.$ZodFunction.init(inst, def);
1989
- ZodMiniType.init(inst, def);
1990
- }
1991
- );
1992
-
1993
- export function _function(): ZodMiniFunction;
1994
- export function _function<const In extends Array<SomeType> = Array<SomeType>>(params: {
1995
- input: In;
1996
- }): ZodMiniFunction<ZodMiniTuple<In, null>, core.$ZodFunctionOut>;
1997
- export function _function<
1998
- const In extends Array<SomeType> = Array<SomeType>,
1999
- const Out extends core.$ZodFunctionOut = core.$ZodFunctionOut,
2000
- >(params: {
2001
- input: In;
2002
- output: Out;
2003
- }): ZodMiniFunction<ZodMiniTuple<In, null>, Out>;
2004
- export function _function<const In extends core.$ZodFunctionIn = core.$ZodFunctionIn>(params: {
2005
- input: In;
2006
- }): ZodMiniFunction<In, core.$ZodFunctionOut>;
2007
- export function _function<const Out extends core.$ZodFunctionOut = core.$ZodFunctionOut>(params: {
2008
- output: Out;
2009
- }): ZodMiniFunction<core.$ZodFunctionIn, Out>;
2010
- export function _function<
2011
- In extends core.$ZodFunctionIn = core.$ZodFunctionIn,
2012
- Out extends core.$ZodFunctionOut = core.$ZodFunctionOut,
2013
- >(params?: { input: In; output: Out }): ZodMiniFunction<In, Out>;
2014
- // @__NO_SIDE_EFFECTS__
2015
- export function _function(params?: {
2016
- output?: core.$ZodFunctionOut;
2017
- input?: core.$ZodFunctionArgs | Array<SomeType>;
2018
- }): ZodMiniFunction {
2019
- return new ZodMiniFunction({
2020
- type: "function",
2021
- input: Array.isArray(params?.input) ? tuple(params?.input as any) : (params?.input ?? array(unknown())),
2022
- output: params?.output ?? unknown(),
2023
- });
2024
- }
2025
-
2026
- export { _function as function };