@donkeylabs/server 0.2.6 → 0.2.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 (2067) hide show
  1. package/examples/starter/bun.lock +3 -125
  2. package/examples/starter/node_modules/@donkeylabs/server/README.md +15 -0
  3. package/examples/starter/node_modules/@donkeylabs/server/cli/commands/dev.ts +134 -0
  4. package/examples/starter/node_modules/@donkeylabs/server/cli/commands/generate.ts +445 -0
  5. package/examples/starter/node_modules/@donkeylabs/server/cli/commands/init.ts +205 -0
  6. package/examples/starter/node_modules/@donkeylabs/server/cli/commands/interactive.ts +417 -0
  7. package/examples/starter/node_modules/@donkeylabs/server/cli/commands/plugin.ts +192 -0
  8. package/examples/starter/node_modules/@donkeylabs/server/cli/commands/route.ts +195 -0
  9. package/examples/starter/node_modules/@donkeylabs/server/cli/donkeylabs +2 -0
  10. package/examples/starter/node_modules/@donkeylabs/server/cli/index.ts +114 -0
  11. package/examples/starter/node_modules/@donkeylabs/server/docs/api-client.md +520 -0
  12. package/examples/starter/node_modules/@donkeylabs/server/docs/cache.md +437 -0
  13. package/examples/starter/node_modules/@donkeylabs/server/docs/cli.md +353 -0
  14. package/examples/starter/node_modules/@donkeylabs/server/docs/core-services.md +338 -0
  15. package/examples/starter/node_modules/@donkeylabs/server/docs/cron.md +465 -0
  16. package/examples/starter/node_modules/@donkeylabs/server/docs/errors.md +303 -0
  17. package/examples/starter/node_modules/@donkeylabs/server/docs/events.md +460 -0
  18. package/examples/starter/node_modules/@donkeylabs/server/docs/handlers.md +549 -0
  19. package/examples/starter/node_modules/@donkeylabs/server/docs/jobs.md +556 -0
  20. package/examples/starter/node_modules/@donkeylabs/server/docs/logger.md +316 -0
  21. package/examples/starter/node_modules/@donkeylabs/server/docs/middleware.md +682 -0
  22. package/examples/starter/node_modules/@donkeylabs/server/docs/plugins.md +524 -0
  23. package/examples/starter/node_modules/@donkeylabs/server/docs/project-structure.md +493 -0
  24. package/examples/starter/node_modules/@donkeylabs/server/docs/rate-limiter.md +525 -0
  25. package/examples/starter/node_modules/@donkeylabs/server/docs/router.md +566 -0
  26. package/examples/starter/node_modules/@donkeylabs/server/docs/sse.md +542 -0
  27. package/examples/starter/node_modules/@donkeylabs/server/docs/svelte-frontend.md +324 -0
  28. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/.@donkeylabs/server/context.d.ts +37 -0
  29. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/.@donkeylabs/server/registry.d.ts +31 -0
  30. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/.@donkeylabs/server/routes.ts +21 -0
  31. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/.env.example +3 -0
  32. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/.gitignore.template +4 -0
  33. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/CLAUDE.md +144 -0
  34. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/donkeylabs.config.ts +6 -0
  35. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/package.json +20 -0
  36. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/db.ts +9 -0
  37. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/index.ts +32 -0
  38. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/plugins/stats/index.ts +93 -0
  39. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/routes/health/index.ts +5 -0
  40. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/routes/health/ping/index.ts +13 -0
  41. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/routes/health/ping/models/model.ts +23 -0
  42. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/routes/health/ping/schema.ts +14 -0
  43. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/routes/health/ping/tests/integ.test.ts +20 -0
  44. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/src/routes/health/ping/tests/unit.test.ts +20 -0
  45. package/examples/starter/node_modules/@donkeylabs/server/examples/starter/tsconfig.json +27 -0
  46. package/examples/starter/node_modules/@donkeylabs/server/mcp/donkeylabs-mcp +3238 -0
  47. package/examples/starter/node_modules/@donkeylabs/server/mcp/server.ts +3238 -0
  48. package/examples/starter/node_modules/@donkeylabs/server/package.json +77 -0
  49. package/examples/starter/node_modules/@donkeylabs/server/src/client/base.ts +481 -0
  50. package/examples/starter/node_modules/@donkeylabs/server/src/client/index.ts +150 -0
  51. package/examples/starter/node_modules/@donkeylabs/server/src/core/cache.ts +183 -0
  52. package/examples/starter/node_modules/@donkeylabs/server/src/core/cron.ts +255 -0
  53. package/examples/starter/node_modules/@donkeylabs/server/src/core/errors.ts +320 -0
  54. package/examples/starter/node_modules/@donkeylabs/server/src/core/events.ts +163 -0
  55. package/examples/starter/node_modules/@donkeylabs/server/src/core/index.ts +94 -0
  56. package/examples/starter/node_modules/@donkeylabs/server/src/core/jobs.ts +334 -0
  57. package/examples/starter/node_modules/@donkeylabs/server/src/core/logger.ts +131 -0
  58. package/examples/starter/node_modules/@donkeylabs/server/src/core/rate-limiter.ts +193 -0
  59. package/examples/starter/node_modules/@donkeylabs/server/src/core/sse.ts +210 -0
  60. package/examples/starter/node_modules/@donkeylabs/server/src/core.ts +428 -0
  61. package/examples/starter/node_modules/@donkeylabs/server/src/handlers.ts +182 -0
  62. package/examples/starter/node_modules/@donkeylabs/server/src/harness.ts +70 -0
  63. package/examples/starter/node_modules/@donkeylabs/server/src/index.ts +51 -0
  64. package/examples/starter/node_modules/@donkeylabs/server/src/middleware.ts +34 -0
  65. package/examples/starter/node_modules/@donkeylabs/server/src/registry.ts +13 -0
  66. package/examples/starter/node_modules/@donkeylabs/server/src/router.ts +172 -0
  67. package/examples/starter/node_modules/@donkeylabs/server/src/server.ts +240 -0
  68. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/CLAUDE.md +105 -0
  69. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/README.md +33 -0
  70. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/bun.d.ts +7779 -0
  71. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/bun.ns.d.ts +5 -0
  72. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/bundle.d.ts +74 -0
  73. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/deprecated.d.ts +184 -0
  74. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/devserver.d.ts +187 -0
  75. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/README.md +28 -0
  76. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/bundler/bytecode.mdx +465 -0
  77. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/bundler/css.mdx +1024 -0
  78. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/bundler/esbuild.mdx +298 -0
  79. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/bundler/executables.mdx +1277 -0
  80. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/bundler/fullstack.mdx +1086 -0
  81. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/bundler/hot-reloading.mdx +229 -0
  82. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/bundler/html-static.mdx +488 -0
  83. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/bundler/index.mdx +1750 -0
  84. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/bundler/loaders.mdx +451 -0
  85. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/bundler/macros.mdx +328 -0
  86. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/bundler/minifier.mdx +1286 -0
  87. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/bundler/plugins.mdx +425 -0
  88. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/feedback.mdx +75 -0
  89. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/arraybuffer-to-array.mdx +29 -0
  90. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/arraybuffer-to-blob.mdx +26 -0
  91. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/arraybuffer-to-buffer.mdx +27 -0
  92. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/arraybuffer-to-string.mdx +17 -0
  93. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/arraybuffer-to-typedarray.mdx +41 -0
  94. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/blob-to-arraybuffer.mdx +16 -0
  95. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/blob-to-dataview.mdx +16 -0
  96. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/blob-to-stream.mdx +16 -0
  97. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/blob-to-string.mdx +17 -0
  98. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/blob-to-typedarray.mdx +16 -0
  99. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/buffer-to-arraybuffer.mdx +16 -0
  100. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/buffer-to-blob.mdx +16 -0
  101. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/buffer-to-readablestream.mdx +43 -0
  102. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/buffer-to-string.mdx +27 -0
  103. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/buffer-to-typedarray.mdx +16 -0
  104. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/dataview-to-string.mdx +17 -0
  105. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/typedarray-to-arraybuffer.mdx +27 -0
  106. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/typedarray-to-blob.mdx +18 -0
  107. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/typedarray-to-buffer.mdx +16 -0
  108. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/typedarray-to-dataview.mdx +16 -0
  109. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/typedarray-to-readablestream.mdx +43 -0
  110. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/binary/typedarray-to-string.mdx +18 -0
  111. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/deployment/aws-lambda.mdx +204 -0
  112. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/deployment/digital-ocean.mdx +161 -0
  113. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/deployment/google-cloud-run.mdx +194 -0
  114. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/deployment/railway.mdx +145 -0
  115. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/deployment/render.mdx +82 -0
  116. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/deployment/vercel.mdx +97 -0
  117. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/astro.mdx +82 -0
  118. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/discordjs.mdx +80 -0
  119. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/docker.mdx +151 -0
  120. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/drizzle.mdx +195 -0
  121. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/elysia.mdx +31 -0
  122. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/express.mdx +43 -0
  123. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/gel.mdx +261 -0
  124. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/hono.mdx +47 -0
  125. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/mongoose.mdx +92 -0
  126. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/neon-drizzle.mdx +234 -0
  127. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/neon-serverless-postgres.mdx +60 -0
  128. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/nextjs.mdx +103 -0
  129. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/nuxt.mdx +96 -0
  130. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/pm2.mdx +55 -0
  131. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/prisma-postgres.mdx +169 -0
  132. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/prisma.mdx +164 -0
  133. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/qwik.mdx +114 -0
  134. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/react.mdx +52 -0
  135. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/remix.mdx +97 -0
  136. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/sentry.mdx +54 -0
  137. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/solidstart.mdx +62 -0
  138. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/ssr-react.mdx +49 -0
  139. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/stric.mdx +54 -0
  140. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/sveltekit.mdx +138 -0
  141. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/systemd.mdx +114 -0
  142. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/tanstack-start.mdx +791 -0
  143. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/upstash.mdx +87 -0
  144. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/ecosystem/vite.mdx +77 -0
  145. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/html-rewriter/extract-links.mdx +71 -0
  146. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/html-rewriter/extract-social-meta.mdx +97 -0
  147. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/http/cluster.mdx +69 -0
  148. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/http/fetch-unix.mdx +35 -0
  149. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/http/fetch.mdx +26 -0
  150. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/http/file-uploads.mdx +97 -0
  151. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/http/hot.mdx +28 -0
  152. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/http/proxy.mdx +50 -0
  153. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/http/server.mdx +48 -0
  154. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/http/simple.mdx +20 -0
  155. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/http/stream-file.mdx +50 -0
  156. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/http/stream-iterator.mdx +49 -0
  157. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/http/stream-node-streams-in-bun.mdx +22 -0
  158. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/http/tls.mdx +32 -0
  159. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/index.mdx +10 -0
  160. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/add-dev.mdx +28 -0
  161. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/add-git.mdx +40 -0
  162. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/add-optional.mdx +27 -0
  163. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/add-peer.mdx +45 -0
  164. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/add-tarball.mdx +35 -0
  165. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/add.mdx +44 -0
  166. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/azure-artifacts.mdx +76 -0
  167. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/cicd.mdx +43 -0
  168. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/custom-registry.mdx +32 -0
  169. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/from-npm-install-to-bun-install.mdx +230 -0
  170. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/git-diff-bun-lockfile.mdx +48 -0
  171. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/jfrog-artifactory.mdx +28 -0
  172. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/npm-alias.mdx +25 -0
  173. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/registry-scope.mdx +40 -0
  174. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/trusted.mdx +52 -0
  175. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/workspaces.mdx +70 -0
  176. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/install/yarnlock.mdx +51 -0
  177. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/process/argv.mdx +66 -0
  178. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/process/ctrl-c.mdx +18 -0
  179. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/process/ipc.mdx +69 -0
  180. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/process/nanoseconds.mdx +15 -0
  181. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/process/os-signals.mdx +31 -0
  182. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/process/spawn-stderr.mdx +34 -0
  183. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/process/spawn-stdout.mdx +28 -0
  184. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/process/spawn.mdx +43 -0
  185. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/process/stdin.mdx +62 -0
  186. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/read-file/arraybuffer.mdx +30 -0
  187. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/read-file/buffer.mdx +21 -0
  188. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/read-file/exists.mdx +18 -0
  189. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/read-file/json.mdx +19 -0
  190. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/read-file/mime.mdx +22 -0
  191. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/read-file/stream.mdx +28 -0
  192. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/read-file/string.mdx +24 -0
  193. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/read-file/uint8array.mdx +23 -0
  194. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/read-file/watch.mdx +66 -0
  195. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/build-time-constants.mdx +295 -0
  196. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/cicd.mdx +45 -0
  197. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/codesign-macos-executable.mdx +61 -0
  198. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/define-constant.mdx +149 -0
  199. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/delete-directory.mdx +39 -0
  200. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/delete-file.mdx +21 -0
  201. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/heap-snapshot.mdx +28 -0
  202. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/import-html.mdx +15 -0
  203. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/import-json.mdx +46 -0
  204. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/import-toml.mdx +32 -0
  205. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/import-yaml.mdx +104 -0
  206. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/read-env.mdx +37 -0
  207. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/set-env.mdx +51 -0
  208. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/shell.mdx +42 -0
  209. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/timezone.mdx +38 -0
  210. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/tsconfig-paths.mdx +31 -0
  211. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/typescript.mdx +51 -0
  212. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/vscode-debugger.mdx +47 -0
  213. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/runtime/web-debugger.mdx +103 -0
  214. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/streams/node-readable-to-arraybuffer.mdx +13 -0
  215. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/streams/node-readable-to-blob.mdx +13 -0
  216. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/streams/node-readable-to-json.mdx +14 -0
  217. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/streams/node-readable-to-string.mdx +14 -0
  218. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/streams/node-readable-to-uint8array.mdx +13 -0
  219. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/streams/to-array.mdx +16 -0
  220. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/streams/to-arraybuffer.mdx +16 -0
  221. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/streams/to-blob.mdx +16 -0
  222. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/streams/to-buffer.mdx +17 -0
  223. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/streams/to-json.mdx +16 -0
  224. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/streams/to-string.mdx +16 -0
  225. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/streams/to-typedarray.mdx +24 -0
  226. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/bail.mdx +24 -0
  227. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/concurrent-test-glob.mdx +146 -0
  228. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/coverage-threshold.mdx +67 -0
  229. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/coverage.mdx +49 -0
  230. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/happy-dom.mdx +73 -0
  231. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/migrate-from-jest.mdx +125 -0
  232. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/mock-clock.mdx +50 -0
  233. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/mock-functions.mdx +70 -0
  234. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/rerun-each.mdx +16 -0
  235. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/run-tests.mdx +116 -0
  236. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/skip-tests.mdx +43 -0
  237. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/snapshot.mdx +102 -0
  238. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/spy-on.mdx +49 -0
  239. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/svelte-test.mdx +113 -0
  240. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/testing-library.mdx +93 -0
  241. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/timeout.mdx +17 -0
  242. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/todo-tests.mdx +74 -0
  243. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/update-snapshots.mdx +49 -0
  244. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/test/watch-mode.mdx +24 -0
  245. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/base64.mdx +17 -0
  246. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/deep-equals.mdx +41 -0
  247. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/deflate.mdx +20 -0
  248. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/detect-bun.mdx +28 -0
  249. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/entrypoint.mdx +19 -0
  250. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/escape-html.mdx +24 -0
  251. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/file-url-to-path.mdx +16 -0
  252. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/gzip.mdx +20 -0
  253. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/hash-a-password.mdx +56 -0
  254. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/import-meta-dir.mdx +15 -0
  255. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/import-meta-file.mdx +15 -0
  256. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/import-meta-path.mdx +15 -0
  257. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/javascript-uuid.mdx +25 -0
  258. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/main.mdx +43 -0
  259. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/path-to-file-url.mdx +16 -0
  260. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/sleep.mdx +24 -0
  261. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/upgrade.mdx +93 -0
  262. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/version.mdx +23 -0
  263. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/util/which-path-to-executable-bin.mdx +17 -0
  264. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/websocket/compression.mdx +33 -0
  265. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/websocket/context.mdx +79 -0
  266. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/websocket/pubsub.mdx +43 -0
  267. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/websocket/simple.mdx +38 -0
  268. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/write-file/append.mdx +54 -0
  269. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/write-file/basic.mdx +46 -0
  270. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/write-file/blob.mdx +30 -0
  271. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/write-file/cat.mdx +19 -0
  272. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/write-file/file-cp.mdx +18 -0
  273. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/write-file/filesink.mdx +54 -0
  274. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/write-file/response.mdx +19 -0
  275. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/write-file/stdout.mdx +23 -0
  276. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/write-file/stream.mdx +19 -0
  277. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/guides/write-file/unlink.mdx +18 -0
  278. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/index.mdx +133 -0
  279. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/installation.mdx +365 -0
  280. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/bunx.mdx +91 -0
  281. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/catalogs.mdx +292 -0
  282. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/cli/add.mdx +179 -0
  283. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/cli/audit.mdx +60 -0
  284. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/cli/info.mdx +70 -0
  285. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/cli/install.mdx +606 -0
  286. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/cli/link.mdx +61 -0
  287. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/cli/outdated.mdx +197 -0
  288. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/cli/patch.mdx +69 -0
  289. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/cli/pm.mdx +323 -0
  290. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/cli/publish.mdx +131 -0
  291. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/cli/remove.mdx +16 -0
  292. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/cli/update.mdx +140 -0
  293. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/cli/why.mdx +84 -0
  294. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/filter.mdx +102 -0
  295. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/global-cache.mdx +72 -0
  296. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/isolated-installs.mdx +220 -0
  297. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/lifecycle.mdx +64 -0
  298. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/lockfile.mdx +64 -0
  299. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/npmrc.mdx +245 -0
  300. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/overrides.mdx +83 -0
  301. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/scopes-registries.mdx +35 -0
  302. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/security-scanner-api.mdx +95 -0
  303. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/pm/workspaces.mdx +115 -0
  304. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/project/benchmarking.mdx +241 -0
  305. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/project/bindgen.mdx +223 -0
  306. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/project/building-windows.mdx +133 -0
  307. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/project/contributing.mdx +371 -0
  308. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/project/feedback.mdx +20 -0
  309. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/project/license.mdx +78 -0
  310. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/project/roadmap.mdx +8 -0
  311. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/quickstart.mdx +251 -0
  312. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/archive.mdx +452 -0
  313. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/auto-install.mdx +97 -0
  314. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/binary-data.mdx +846 -0
  315. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/bun-apis.mdx +59 -0
  316. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/bunfig.mdx +743 -0
  317. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/c-compiler.mdx +204 -0
  318. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/child-process.mdx +659 -0
  319. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/color.mdx +267 -0
  320. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/console.mdx +67 -0
  321. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/cookies.mdx +454 -0
  322. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/debugger.mdx +335 -0
  323. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/environment-variables.mdx +231 -0
  324. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/ffi.mdx +567 -0
  325. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/file-io.mdx +306 -0
  326. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/file-system-router.mdx +118 -0
  327. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/file-types.mdx +435 -0
  328. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/glob.mdx +181 -0
  329. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/globals.mdx +72 -0
  330. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/hashing.mdx +315 -0
  331. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/html-rewriter.mdx +333 -0
  332. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/http/cookies.mdx +79 -0
  333. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/http/error-handling.mdx +40 -0
  334. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/http/metrics.mdx +36 -0
  335. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/http/routing.mdx +289 -0
  336. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/http/server.mdx +645 -0
  337. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/http/tls.mdx +101 -0
  338. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/http/websockets.mdx +414 -0
  339. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/index.mdx +223 -0
  340. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/jsx.mdx +115 -0
  341. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/module-resolution.mdx +374 -0
  342. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/networking/dns.mdx +111 -0
  343. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/networking/fetch.mdx +484 -0
  344. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/networking/tcp.mdx +239 -0
  345. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/networking/udp.mdx +180 -0
  346. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/node-api.mdx +19 -0
  347. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/nodejs-compat.mdx +468 -0
  348. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/plugins.mdx +419 -0
  349. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/redis.mdx +583 -0
  350. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/s3.mdx +863 -0
  351. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/secrets.mdx +340 -0
  352. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/semver.mdx +57 -0
  353. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/shell.mdx +637 -0
  354. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/sql.mdx +1404 -0
  355. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/sqlite.mdx +721 -0
  356. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/streams.mdx +232 -0
  357. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/templating/create.mdx +269 -0
  358. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/templating/init.mdx +58 -0
  359. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/transpiler.mdx +288 -0
  360. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/typescript.mdx +58 -0
  361. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/utils.mdx +922 -0
  362. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/watch-mode.mdx +161 -0
  363. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/web-apis.mdx +29 -0
  364. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/workers.mdx +314 -0
  365. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/runtime/yaml.mdx +469 -0
  366. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/snippets/cli/add.mdx +166 -0
  367. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/snippets/cli/build.mdx +196 -0
  368. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/snippets/cli/bunx.mdx +49 -0
  369. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/snippets/cli/feedback.mdx +17 -0
  370. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/snippets/cli/init.mdx +84 -0
  371. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/snippets/cli/install.mdx +173 -0
  372. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/snippets/cli/link.mdx +163 -0
  373. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/snippets/cli/outdated.mdx +140 -0
  374. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/snippets/cli/patch.mdx +171 -0
  375. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/snippets/cli/publish.mdx +198 -0
  376. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/snippets/cli/remove.mdx +146 -0
  377. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/snippets/cli/run.mdx +293 -0
  378. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/snippets/cli/test.mdx +100 -0
  379. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/snippets/cli/update.mdx +144 -0
  380. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/test/code-coverage.mdx +409 -0
  381. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/test/configuration.mdx +509 -0
  382. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/test/dates-times.mdx +129 -0
  383. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/test/discovery.mdx +90 -0
  384. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/test/dom.mdx +226 -0
  385. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/test/index.mdx +380 -0
  386. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/test/lifecycle.mdx +366 -0
  387. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/test/mocks.mdx +637 -0
  388. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/test/reporters.mdx +126 -0
  389. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/test/runtime-behavior.mdx +342 -0
  390. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/test/snapshots.mdx +434 -0
  391. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/test/writing-tests.mdx +672 -0
  392. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/docs/typescript.mdx +54 -0
  393. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/extensions.d.ts +35 -0
  394. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/fetch.d.ts +79 -0
  395. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/ffi.d.ts +1154 -0
  396. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/globals.d.ts +2067 -0
  397. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/html-rewriter.d.ts +186 -0
  398. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/index.d.ts +32 -0
  399. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/jsc.d.ts +233 -0
  400. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/overrides.d.ts +376 -0
  401. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/package.json +37 -0
  402. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/redis.d.ts +3352 -0
  403. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/s3.d.ts +1335 -0
  404. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/security.d.ts +101 -0
  405. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/serve.d.ts +1296 -0
  406. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/shell.d.ts +380 -0
  407. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/sql.d.ts +887 -0
  408. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/sqlite.d.ts +1322 -0
  409. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/test-globals.d.ts +22 -0
  410. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/test.d.ts +2391 -0
  411. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/vendor/expect-type/branding.d.ts +283 -0
  412. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/vendor/expect-type/index.d.ts +1207 -0
  413. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/vendor/expect-type/messages.d.ts +395 -0
  414. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/vendor/expect-type/overloads.d.ts +669 -0
  415. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/vendor/expect-type/utils.d.ts +431 -0
  416. package/examples/starter/node_modules/kysely-bun-sqlite/node_modules/bun-types/wasm.d.ts +193 -0
  417. package/examples/starter/package.json +1 -1
  418. package/examples/starter/src/index.ts +1 -1
  419. package/package.json +1 -1
  420. package/src/router.ts +24 -9
  421. package/src/server.ts +6 -9
  422. package/context.d.ts +0 -27
  423. package/examples/starter/node_modules/.svelte2tsx-language-server-files/svelte-native-jsx.d.ts +0 -32
  424. package/examples/starter/node_modules/.svelte2tsx-language-server-files/svelte-shims-v4.d.ts +0 -290
  425. package/examples/starter/node_modules/@babel/code-frame/LICENSE +0 -22
  426. package/examples/starter/node_modules/@babel/code-frame/README.md +0 -19
  427. package/examples/starter/node_modules/@babel/code-frame/lib/index.js +0 -216
  428. package/examples/starter/node_modules/@babel/code-frame/lib/index.js.map +0 -1
  429. package/examples/starter/node_modules/@babel/code-frame/package.json +0 -32
  430. package/examples/starter/node_modules/@babel/helper-validator-identifier/LICENSE +0 -22
  431. package/examples/starter/node_modules/@babel/helper-validator-identifier/README.md +0 -19
  432. package/examples/starter/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -70
  433. package/examples/starter/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
  434. package/examples/starter/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -57
  435. package/examples/starter/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
  436. package/examples/starter/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -35
  437. package/examples/starter/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
  438. package/examples/starter/node_modules/@babel/helper-validator-identifier/package.json +0 -31
  439. package/examples/starter/node_modules/@types/prompts/LICENSE +0 -21
  440. package/examples/starter/node_modules/@types/prompts/README.md +0 -15
  441. package/examples/starter/node_modules/@types/prompts/index.d.ts +0 -123
  442. package/examples/starter/node_modules/@types/prompts/package.json +0 -58
  443. package/examples/starter/node_modules/ansi-styles/index.d.ts +0 -345
  444. package/examples/starter/node_modules/ansi-styles/index.js +0 -163
  445. package/examples/starter/node_modules/ansi-styles/license +0 -9
  446. package/examples/starter/node_modules/ansi-styles/package.json +0 -56
  447. package/examples/starter/node_modules/ansi-styles/readme.md +0 -152
  448. package/examples/starter/node_modules/argparse/CHANGELOG.md +0 -216
  449. package/examples/starter/node_modules/argparse/LICENSE +0 -254
  450. package/examples/starter/node_modules/argparse/README.md +0 -84
  451. package/examples/starter/node_modules/argparse/argparse.js +0 -3707
  452. package/examples/starter/node_modules/argparse/lib/sub.js +0 -67
  453. package/examples/starter/node_modules/argparse/lib/textwrap.js +0 -440
  454. package/examples/starter/node_modules/argparse/package.json +0 -31
  455. package/examples/starter/node_modules/balanced-match/.github/FUNDING.yml +0 -2
  456. package/examples/starter/node_modules/balanced-match/LICENSE.md +0 -21
  457. package/examples/starter/node_modules/balanced-match/README.md +0 -97
  458. package/examples/starter/node_modules/balanced-match/index.js +0 -62
  459. package/examples/starter/node_modules/balanced-match/package.json +0 -48
  460. package/examples/starter/node_modules/brace-expansion/LICENSE +0 -21
  461. package/examples/starter/node_modules/brace-expansion/README.md +0 -129
  462. package/examples/starter/node_modules/brace-expansion/index.js +0 -201
  463. package/examples/starter/node_modules/brace-expansion/package.json +0 -50
  464. package/examples/starter/node_modules/braces/LICENSE +0 -21
  465. package/examples/starter/node_modules/braces/README.md +0 -586
  466. package/examples/starter/node_modules/braces/index.js +0 -170
  467. package/examples/starter/node_modules/braces/lib/compile.js +0 -60
  468. package/examples/starter/node_modules/braces/lib/constants.js +0 -57
  469. package/examples/starter/node_modules/braces/lib/expand.js +0 -113
  470. package/examples/starter/node_modules/braces/lib/parse.js +0 -331
  471. package/examples/starter/node_modules/braces/lib/stringify.js +0 -32
  472. package/examples/starter/node_modules/braces/lib/utils.js +0 -122
  473. package/examples/starter/node_modules/braces/package.json +0 -77
  474. package/examples/starter/node_modules/callsites/index.d.ts +0 -96
  475. package/examples/starter/node_modules/callsites/index.js +0 -13
  476. package/examples/starter/node_modules/callsites/license +0 -9
  477. package/examples/starter/node_modules/callsites/package.json +0 -39
  478. package/examples/starter/node_modules/callsites/readme.md +0 -48
  479. package/examples/starter/node_modules/chalk/index.d.ts +0 -415
  480. package/examples/starter/node_modules/chalk/license +0 -9
  481. package/examples/starter/node_modules/chalk/package.json +0 -68
  482. package/examples/starter/node_modules/chalk/readme.md +0 -341
  483. package/examples/starter/node_modules/chalk/source/index.js +0 -229
  484. package/examples/starter/node_modules/chalk/source/templates.js +0 -134
  485. package/examples/starter/node_modules/chalk/source/util.js +0 -39
  486. package/examples/starter/node_modules/color-convert/CHANGELOG.md +0 -54
  487. package/examples/starter/node_modules/color-convert/LICENSE +0 -21
  488. package/examples/starter/node_modules/color-convert/README.md +0 -68
  489. package/examples/starter/node_modules/color-convert/conversions.js +0 -839
  490. package/examples/starter/node_modules/color-convert/index.js +0 -81
  491. package/examples/starter/node_modules/color-convert/package.json +0 -48
  492. package/examples/starter/node_modules/color-convert/route.js +0 -97
  493. package/examples/starter/node_modules/color-name/LICENSE +0 -8
  494. package/examples/starter/node_modules/color-name/README.md +0 -11
  495. package/examples/starter/node_modules/color-name/index.js +0 -152
  496. package/examples/starter/node_modules/color-name/package.json +0 -28
  497. package/examples/starter/node_modules/concat-map/.travis.yml +0 -4
  498. package/examples/starter/node_modules/concat-map/LICENSE +0 -18
  499. package/examples/starter/node_modules/concat-map/README.markdown +0 -62
  500. package/examples/starter/node_modules/concat-map/example/map.js +0 -6
  501. package/examples/starter/node_modules/concat-map/index.js +0 -13
  502. package/examples/starter/node_modules/concat-map/package.json +0 -43
  503. package/examples/starter/node_modules/concat-map/test/map.js +0 -39
  504. package/examples/starter/node_modules/cosmiconfig/LICENSE +0 -22
  505. package/examples/starter/node_modules/cosmiconfig/README.md +0 -782
  506. package/examples/starter/node_modules/cosmiconfig/dist/Explorer.d.ts +0 -2
  507. package/examples/starter/node_modules/cosmiconfig/dist/Explorer.d.ts.map +0 -1
  508. package/examples/starter/node_modules/cosmiconfig/dist/Explorer.js +0 -170
  509. package/examples/starter/node_modules/cosmiconfig/dist/Explorer.js.map +0 -1
  510. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerBase.d.ts +0 -2
  511. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerBase.d.ts.map +0 -1
  512. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerBase.js +0 -126
  513. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerBase.js.map +0 -1
  514. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerSync.d.ts +0 -2
  515. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerSync.d.ts.map +0 -1
  516. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerSync.js +0 -184
  517. package/examples/starter/node_modules/cosmiconfig/dist/ExplorerSync.js.map +0 -1
  518. package/examples/starter/node_modules/cosmiconfig/dist/cacheWrapper.d.ts +0 -5
  519. package/examples/starter/node_modules/cosmiconfig/dist/cacheWrapper.d.ts.map +0 -1
  520. package/examples/starter/node_modules/cosmiconfig/dist/cacheWrapper.js +0 -32
  521. package/examples/starter/node_modules/cosmiconfig/dist/cacheWrapper.js.map +0 -1
  522. package/examples/starter/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts +0 -3
  523. package/examples/starter/node_modules/cosmiconfig/dist/canUseDynamicImport.d.ts.map +0 -1
  524. package/examples/starter/node_modules/cosmiconfig/dist/canUseDynamicImport.js +0 -23
  525. package/examples/starter/node_modules/cosmiconfig/dist/canUseDynamicImport.js.map +0 -1
  526. package/examples/starter/node_modules/cosmiconfig/dist/defaults.d.ts +0 -25
  527. package/examples/starter/node_modules/cosmiconfig/dist/defaults.d.ts.map +0 -1
  528. package/examples/starter/node_modules/cosmiconfig/dist/defaults.js +0 -105
  529. package/examples/starter/node_modules/cosmiconfig/dist/defaults.js.map +0 -1
  530. package/examples/starter/node_modules/cosmiconfig/dist/getDirectory.d.ts +0 -4
  531. package/examples/starter/node_modules/cosmiconfig/dist/getDirectory.d.ts.map +0 -1
  532. package/examples/starter/node_modules/cosmiconfig/dist/getDirectory.js +0 -38
  533. package/examples/starter/node_modules/cosmiconfig/dist/getDirectory.js.map +0 -1
  534. package/examples/starter/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts +0 -5
  535. package/examples/starter/node_modules/cosmiconfig/dist/getPropertyByPath.d.ts.map +0 -1
  536. package/examples/starter/node_modules/cosmiconfig/dist/getPropertyByPath.js +0 -28
  537. package/examples/starter/node_modules/cosmiconfig/dist/getPropertyByPath.js.map +0 -1
  538. package/examples/starter/node_modules/cosmiconfig/dist/index.d.ts +0 -6
  539. package/examples/starter/node_modules/cosmiconfig/dist/index.d.ts.map +0 -1
  540. package/examples/starter/node_modules/cosmiconfig/dist/index.js +0 -148
  541. package/examples/starter/node_modules/cosmiconfig/dist/index.js.map +0 -1
  542. package/examples/starter/node_modules/cosmiconfig/dist/loaders.d.ts +0 -8
  543. package/examples/starter/node_modules/cosmiconfig/dist/loaders.d.ts.map +0 -1
  544. package/examples/starter/node_modules/cosmiconfig/dist/loaders.js +0 -148
  545. package/examples/starter/node_modules/cosmiconfig/dist/loaders.js.map +0 -1
  546. package/examples/starter/node_modules/cosmiconfig/dist/merge.d.ts +0 -9
  547. package/examples/starter/node_modules/cosmiconfig/dist/merge.d.ts.map +0 -1
  548. package/examples/starter/node_modules/cosmiconfig/dist/merge.js +0 -40
  549. package/examples/starter/node_modules/cosmiconfig/dist/merge.js.map +0 -1
  550. package/examples/starter/node_modules/cosmiconfig/dist/readFile.d.ts +0 -7
  551. package/examples/starter/node_modules/cosmiconfig/dist/readFile.d.ts.map +0 -1
  552. package/examples/starter/node_modules/cosmiconfig/dist/readFile.js +0 -56
  553. package/examples/starter/node_modules/cosmiconfig/dist/readFile.js.map +0 -1
  554. package/examples/starter/node_modules/cosmiconfig/dist/types.d.ts +0 -98
  555. package/examples/starter/node_modules/cosmiconfig/dist/types.d.ts.map +0 -1
  556. package/examples/starter/node_modules/cosmiconfig/dist/types.js +0 -3
  557. package/examples/starter/node_modules/cosmiconfig/dist/types.js.map +0 -1
  558. package/examples/starter/node_modules/cosmiconfig/dist/util.d.ts +0 -2
  559. package/examples/starter/node_modules/cosmiconfig/dist/util.d.ts.map +0 -1
  560. package/examples/starter/node_modules/cosmiconfig/dist/util.js +0 -99
  561. package/examples/starter/node_modules/cosmiconfig/dist/util.js.map +0 -1
  562. package/examples/starter/node_modules/cosmiconfig/package.json +0 -102
  563. package/examples/starter/node_modules/diff/CONTRIBUTING.md +0 -39
  564. package/examples/starter/node_modules/diff/LICENSE +0 -31
  565. package/examples/starter/node_modules/diff/README.md +0 -211
  566. package/examples/starter/node_modules/diff/dist/diff.js +0 -1843
  567. package/examples/starter/node_modules/diff/dist/diff.min.js +0 -416
  568. package/examples/starter/node_modules/diff/lib/convert/dmp.js +0 -24
  569. package/examples/starter/node_modules/diff/lib/convert/xml.js +0 -35
  570. package/examples/starter/node_modules/diff/lib/diff/array.js +0 -24
  571. package/examples/starter/node_modules/diff/lib/diff/base.js +0 -235
  572. package/examples/starter/node_modules/diff/lib/diff/character.js +0 -17
  573. package/examples/starter/node_modules/diff/lib/diff/css.js +0 -21
  574. package/examples/starter/node_modules/diff/lib/diff/json.js +0 -108
  575. package/examples/starter/node_modules/diff/lib/diff/line.js +0 -50
  576. package/examples/starter/node_modules/diff/lib/diff/sentence.js +0 -21
  577. package/examples/starter/node_modules/diff/lib/diff/word.js +0 -70
  578. package/examples/starter/node_modules/diff/lib/index.js +0 -74
  579. package/examples/starter/node_modules/diff/lib/patch/apply.js +0 -180
  580. package/examples/starter/node_modules/diff/lib/patch/create.js +0 -148
  581. package/examples/starter/node_modules/diff/lib/patch/merge.js +0 -396
  582. package/examples/starter/node_modules/diff/lib/patch/parse.js +0 -147
  583. package/examples/starter/node_modules/diff/lib/util/array.js +0 -27
  584. package/examples/starter/node_modules/diff/lib/util/distance-iterator.js +0 -47
  585. package/examples/starter/node_modules/diff/lib/util/params.js +0 -18
  586. package/examples/starter/node_modules/diff/package.json +0 -67
  587. package/examples/starter/node_modules/diff/release-notes.md +0 -247
  588. package/examples/starter/node_modules/diff/runtime.js +0 -3
  589. package/examples/starter/node_modules/diff/yarn.lock +0 -5729
  590. package/examples/starter/node_modules/dotenv/CHANGELOG.md +0 -598
  591. package/examples/starter/node_modules/dotenv/LICENSE +0 -23
  592. package/examples/starter/node_modules/dotenv/README-es.md +0 -405
  593. package/examples/starter/node_modules/dotenv/README.md +0 -692
  594. package/examples/starter/node_modules/dotenv/SECURITY.md +0 -1
  595. package/examples/starter/node_modules/dotenv/config.d.ts +0 -1
  596. package/examples/starter/node_modules/dotenv/config.js +0 -9
  597. package/examples/starter/node_modules/dotenv/lib/cli-options.js +0 -17
  598. package/examples/starter/node_modules/dotenv/lib/env-options.js +0 -28
  599. package/examples/starter/node_modules/dotenv/lib/main.d.ts +0 -179
  600. package/examples/starter/node_modules/dotenv/lib/main.js +0 -434
  601. package/examples/starter/node_modules/dotenv/package.json +0 -62
  602. package/examples/starter/node_modules/dotenv-expand/CHANGELOG.md +0 -177
  603. package/examples/starter/node_modules/dotenv-expand/LICENSE +0 -24
  604. package/examples/starter/node_modules/dotenv-expand/README.md +0 -174
  605. package/examples/starter/node_modules/dotenv-expand/config.d.ts +0 -1
  606. package/examples/starter/node_modules/dotenv-expand/config.js +0 -13
  607. package/examples/starter/node_modules/dotenv-expand/lib/main.d.ts +0 -50
  608. package/examples/starter/node_modules/dotenv-expand/lib/main.js +0 -98
  609. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/CHANGELOG.md +0 -520
  610. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/LICENSE +0 -23
  611. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/README-es.md +0 -411
  612. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/README.md +0 -645
  613. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/SECURITY.md +0 -1
  614. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/config.d.ts +0 -1
  615. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/config.js +0 -9
  616. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/lib/cli-options.js +0 -17
  617. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/lib/env-options.js +0 -28
  618. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/lib/main.d.ts +0 -162
  619. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/lib/main.js +0 -386
  620. package/examples/starter/node_modules/dotenv-expand/node_modules/dotenv/package.json +0 -62
  621. package/examples/starter/node_modules/dotenv-expand/package.json +0 -56
  622. package/examples/starter/node_modules/env-paths/index.d.ts +0 -101
  623. package/examples/starter/node_modules/env-paths/index.js +0 -74
  624. package/examples/starter/node_modules/env-paths/license +0 -9
  625. package/examples/starter/node_modules/env-paths/package.json +0 -45
  626. package/examples/starter/node_modules/env-paths/readme.md +0 -115
  627. package/examples/starter/node_modules/error-ex/LICENSE +0 -21
  628. package/examples/starter/node_modules/error-ex/README.md +0 -144
  629. package/examples/starter/node_modules/error-ex/index.js +0 -141
  630. package/examples/starter/node_modules/error-ex/package.json +0 -46
  631. package/examples/starter/node_modules/escape-string-regexp/index.js +0 -11
  632. package/examples/starter/node_modules/escape-string-regexp/license +0 -21
  633. package/examples/starter/node_modules/escape-string-regexp/package.json +0 -41
  634. package/examples/starter/node_modules/escape-string-regexp/readme.md +0 -27
  635. package/examples/starter/node_modules/fill-range/LICENSE +0 -21
  636. package/examples/starter/node_modules/fill-range/README.md +0 -237
  637. package/examples/starter/node_modules/fill-range/index.js +0 -248
  638. package/examples/starter/node_modules/fill-range/package.json +0 -74
  639. package/examples/starter/node_modules/fs.realpath/LICENSE +0 -43
  640. package/examples/starter/node_modules/fs.realpath/README.md +0 -33
  641. package/examples/starter/node_modules/fs.realpath/index.js +0 -66
  642. package/examples/starter/node_modules/fs.realpath/old.js +0 -303
  643. package/examples/starter/node_modules/fs.realpath/package.json +0 -26
  644. package/examples/starter/node_modules/git-diff/.editorconfig +0 -10
  645. package/examples/starter/node_modules/git-diff/.eslintrc.json +0 -42
  646. package/examples/starter/node_modules/git-diff/.travis.yml +0 -9
  647. package/examples/starter/node_modules/git-diff/LICENSE.md +0 -24
  648. package/examples/starter/node_modules/git-diff/README.md +0 -218
  649. package/examples/starter/node_modules/git-diff/appveyor.yml +0 -17
  650. package/examples/starter/node_modules/git-diff/async.js +0 -14
  651. package/examples/starter/node_modules/git-diff/config.js +0 -8
  652. package/examples/starter/node_modules/git-diff/diffs.png +0 -0
  653. package/examples/starter/node_modules/git-diff/js/_shared/defaultOptions.js +0 -10
  654. package/examples/starter/node_modules/git-diff/js/gitDiffFake/color.js +0 -14
  655. package/examples/starter/node_modules/git-diff/js/gitDiffFake/index.js +0 -10
  656. package/examples/starter/node_modules/git-diff/js/gitDiffFake/index.spec.js +0 -74
  657. package/examples/starter/node_modules/git-diff/js/gitDiffFake/lineDiffFake/index.js +0 -56
  658. package/examples/starter/node_modules/git-diff/js/gitDiffFake/mostCommonLineEnding.js +0 -21
  659. package/examples/starter/node_modules/git-diff/js/gitDiffFake/wordDiffFake/index.js +0 -44
  660. package/examples/starter/node_modules/git-diff/js/gitDiffReal/bugFixes.spec.js +0 -25
  661. package/examples/starter/node_modules/git-diff/js/gitDiffReal/generateDiff/index.js +0 -105
  662. package/examples/starter/node_modules/git-diff/js/gitDiffReal/generateDiffNoRepo/index.js +0 -27
  663. package/examples/starter/node_modules/git-diff/js/gitDiffReal/index.js +0 -16
  664. package/examples/starter/node_modules/git-diff/js/gitDiffReal/index.spec.js +0 -222
  665. package/examples/starter/node_modules/git-diff/js/gitDiffReal/keepIt.js +0 -40
  666. package/examples/starter/node_modules/git-diff/js/normaliseOptions/index.js +0 -63
  667. package/examples/starter/node_modules/git-diff/js/normaliseOptions/index.spec.js +0 -93
  668. package/examples/starter/node_modules/git-diff/js/validate/index.js +0 -11
  669. package/examples/starter/node_modules/git-diff/js/validate/index.spec.js +0 -30
  670. package/examples/starter/node_modules/git-diff/node_modules/chalk/index.js +0 -228
  671. package/examples/starter/node_modules/git-diff/node_modules/chalk/index.js.flow +0 -93
  672. package/examples/starter/node_modules/git-diff/node_modules/chalk/license +0 -9
  673. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/index.js +0 -165
  674. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/license +0 -9
  675. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/CHANGELOG.md +0 -54
  676. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/LICENSE +0 -21
  677. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/README.md +0 -68
  678. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/conversions.js +0 -868
  679. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/index.js +0 -78
  680. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/.eslintrc.json +0 -43
  681. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/LICENSE +0 -8
  682. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/README.md +0 -11
  683. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/index.js +0 -152
  684. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/package.json +0 -25
  685. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/test.js +0 -7
  686. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/package.json +0 -46
  687. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/route.js +0 -97
  688. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/package.json +0 -56
  689. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/ansi-styles/readme.md +0 -147
  690. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/browser.js +0 -5
  691. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/index.js +0 -131
  692. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/license +0 -9
  693. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/node_modules/has-flag/index.js +0 -8
  694. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/node_modules/has-flag/license +0 -9
  695. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/node_modules/has-flag/package.json +0 -44
  696. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/node_modules/has-flag/readme.md +0 -70
  697. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/package.json +0 -53
  698. package/examples/starter/node_modules/git-diff/node_modules/chalk/node_modules/supports-color/readme.md +0 -66
  699. package/examples/starter/node_modules/git-diff/node_modules/chalk/package.json +0 -71
  700. package/examples/starter/node_modules/git-diff/node_modules/chalk/readme.md +0 -314
  701. package/examples/starter/node_modules/git-diff/node_modules/chalk/templates.js +0 -128
  702. package/examples/starter/node_modules/git-diff/node_modules/chalk/types/index.d.ts +0 -97
  703. package/examples/starter/node_modules/git-diff/package.json +0 -75
  704. package/examples/starter/node_modules/git-diff/server.bootstrap.js +0 -4
  705. package/examples/starter/node_modules/git-diff/sync.js +0 -24
  706. package/examples/starter/node_modules/git-diff/test/_js/testImports.js +0 -31
  707. package/examples/starter/node_modules/git-diff/test/data/index.js +0 -29
  708. package/examples/starter/node_modules/git-diff/test/data/lineDiffVim.txt +0 -13
  709. package/examples/starter/node_modules/git-diff/test/data/shortstatReal.txt +0 -1
  710. package/examples/starter/node_modules/git-diff/test/data/str1.txt +0 -9
  711. package/examples/starter/node_modules/git-diff/test/data/str2.txt +0 -9
  712. package/examples/starter/node_modules/git-diff/test/data/wordDiffFake.txt +0 -10
  713. package/examples/starter/node_modules/git-diff/test/data/wordDiffReal.txt +0 -10
  714. package/examples/starter/node_modules/git-diff/test/examples/examples.spec.js +0 -105
  715. package/examples/starter/node_modules/git-diff/test/examples/newStr.txt +0 -9
  716. package/examples/starter/node_modules/git-diff/test/examples/oldStr.txt +0 -9
  717. package/examples/starter/node_modules/git-diff/test/gitDiffAsync/gitDiffAsync.spec.js +0 -50
  718. package/examples/starter/node_modules/git-diff/test/gitDiffSync/fake.spec.js +0 -126
  719. package/examples/starter/node_modules/git-diff/test/gitDiffSync/misc.spec.js +0 -62
  720. package/examples/starter/node_modules/git-diff/test/gitDiffSync/real.spec.js +0 -206
  721. package/examples/starter/node_modules/git-diff/test/mocha.opts +0 -8
  722. package/examples/starter/node_modules/git-diff/test/test.bootstrap.js +0 -1
  723. package/examples/starter/node_modules/git-diff/top.png +0 -0
  724. package/examples/starter/node_modules/git-diff/yarn.lock +0 -1829
  725. package/examples/starter/node_modules/glob/LICENSE +0 -21
  726. package/examples/starter/node_modules/glob/README.md +0 -378
  727. package/examples/starter/node_modules/glob/common.js +0 -238
  728. package/examples/starter/node_modules/glob/glob.js +0 -790
  729. package/examples/starter/node_modules/glob/package.json +0 -55
  730. package/examples/starter/node_modules/glob/sync.js +0 -486
  731. package/examples/starter/node_modules/has-flag/index.d.ts +0 -39
  732. package/examples/starter/node_modules/has-flag/index.js +0 -8
  733. package/examples/starter/node_modules/has-flag/license +0 -9
  734. package/examples/starter/node_modules/has-flag/package.json +0 -46
  735. package/examples/starter/node_modules/has-flag/readme.md +0 -89
  736. package/examples/starter/node_modules/import-fresh/index.d.ts +0 -30
  737. package/examples/starter/node_modules/import-fresh/index.js +0 -34
  738. package/examples/starter/node_modules/import-fresh/license +0 -9
  739. package/examples/starter/node_modules/import-fresh/package.json +0 -48
  740. package/examples/starter/node_modules/import-fresh/readme.md +0 -54
  741. package/examples/starter/node_modules/inflight/LICENSE +0 -15
  742. package/examples/starter/node_modules/inflight/README.md +0 -37
  743. package/examples/starter/node_modules/inflight/inflight.js +0 -54
  744. package/examples/starter/node_modules/inflight/package.json +0 -29
  745. package/examples/starter/node_modules/interpret/CHANGELOG +0 -115
  746. package/examples/starter/node_modules/interpret/LICENSE +0 -22
  747. package/examples/starter/node_modules/interpret/README.md +0 -187
  748. package/examples/starter/node_modules/interpret/index.js +0 -168
  749. package/examples/starter/node_modules/interpret/mjs-stub.js +0 -1
  750. package/examples/starter/node_modules/interpret/package.json +0 -75
  751. package/examples/starter/node_modules/is-arrayish/.editorconfig +0 -18
  752. package/examples/starter/node_modules/is-arrayish/.istanbul.yml +0 -4
  753. package/examples/starter/node_modules/is-arrayish/.travis.yml +0 -17
  754. package/examples/starter/node_modules/is-arrayish/LICENSE +0 -21
  755. package/examples/starter/node_modules/is-arrayish/README.md +0 -16
  756. package/examples/starter/node_modules/is-arrayish/index.js +0 -10
  757. package/examples/starter/node_modules/is-arrayish/package.json +0 -34
  758. package/examples/starter/node_modules/is-core-module/.eslintrc +0 -18
  759. package/examples/starter/node_modules/is-core-module/.nycrc +0 -9
  760. package/examples/starter/node_modules/is-core-module/CHANGELOG.md +0 -218
  761. package/examples/starter/node_modules/is-core-module/LICENSE +0 -20
  762. package/examples/starter/node_modules/is-core-module/README.md +0 -40
  763. package/examples/starter/node_modules/is-core-module/core.json +0 -162
  764. package/examples/starter/node_modules/is-core-module/index.js +0 -69
  765. package/examples/starter/node_modules/is-core-module/package.json +0 -76
  766. package/examples/starter/node_modules/is-core-module/test/index.js +0 -157
  767. package/examples/starter/node_modules/is-number/LICENSE +0 -21
  768. package/examples/starter/node_modules/is-number/README.md +0 -187
  769. package/examples/starter/node_modules/is-number/index.js +0 -18
  770. package/examples/starter/node_modules/is-number/package.json +0 -82
  771. package/examples/starter/node_modules/js-tokens/CHANGELOG.md +0 -151
  772. package/examples/starter/node_modules/js-tokens/LICENSE +0 -21
  773. package/examples/starter/node_modules/js-tokens/README.md +0 -240
  774. package/examples/starter/node_modules/js-tokens/index.js +0 -23
  775. package/examples/starter/node_modules/js-tokens/package.json +0 -30
  776. package/examples/starter/node_modules/js-yaml/LICENSE +0 -21
  777. package/examples/starter/node_modules/js-yaml/README.md +0 -247
  778. package/examples/starter/node_modules/js-yaml/bin/js-yaml.js +0 -126
  779. package/examples/starter/node_modules/js-yaml/dist/js-yaml.js +0 -3880
  780. package/examples/starter/node_modules/js-yaml/dist/js-yaml.min.js +0 -2
  781. package/examples/starter/node_modules/js-yaml/dist/js-yaml.mjs +0 -3856
  782. package/examples/starter/node_modules/js-yaml/index.js +0 -47
  783. package/examples/starter/node_modules/js-yaml/lib/common.js +0 -59
  784. package/examples/starter/node_modules/js-yaml/lib/dumper.js +0 -965
  785. package/examples/starter/node_modules/js-yaml/lib/exception.js +0 -55
  786. package/examples/starter/node_modules/js-yaml/lib/loader.js +0 -1733
  787. package/examples/starter/node_modules/js-yaml/lib/schema/core.js +0 -11
  788. package/examples/starter/node_modules/js-yaml/lib/schema/default.js +0 -22
  789. package/examples/starter/node_modules/js-yaml/lib/schema/failsafe.js +0 -17
  790. package/examples/starter/node_modules/js-yaml/lib/schema/json.js +0 -19
  791. package/examples/starter/node_modules/js-yaml/lib/schema.js +0 -121
  792. package/examples/starter/node_modules/js-yaml/lib/snippet.js +0 -101
  793. package/examples/starter/node_modules/js-yaml/lib/type/binary.js +0 -125
  794. package/examples/starter/node_modules/js-yaml/lib/type/bool.js +0 -35
  795. package/examples/starter/node_modules/js-yaml/lib/type/float.js +0 -97
  796. package/examples/starter/node_modules/js-yaml/lib/type/int.js +0 -156
  797. package/examples/starter/node_modules/js-yaml/lib/type/map.js +0 -8
  798. package/examples/starter/node_modules/js-yaml/lib/type/merge.js +0 -12
  799. package/examples/starter/node_modules/js-yaml/lib/type/null.js +0 -35
  800. package/examples/starter/node_modules/js-yaml/lib/type/omap.js +0 -44
  801. package/examples/starter/node_modules/js-yaml/lib/type/pairs.js +0 -53
  802. package/examples/starter/node_modules/js-yaml/lib/type/seq.js +0 -8
  803. package/examples/starter/node_modules/js-yaml/lib/type/set.js +0 -29
  804. package/examples/starter/node_modules/js-yaml/lib/type/str.js +0 -8
  805. package/examples/starter/node_modules/js-yaml/lib/type/timestamp.js +0 -88
  806. package/examples/starter/node_modules/js-yaml/lib/type.js +0 -66
  807. package/examples/starter/node_modules/js-yaml/package.json +0 -66
  808. package/examples/starter/node_modules/json-parse-even-better-errors/CHANGELOG.md +0 -50
  809. package/examples/starter/node_modules/json-parse-even-better-errors/LICENSE.md +0 -25
  810. package/examples/starter/node_modules/json-parse-even-better-errors/README.md +0 -96
  811. package/examples/starter/node_modules/json-parse-even-better-errors/index.js +0 -121
  812. package/examples/starter/node_modules/json-parse-even-better-errors/package.json +0 -33
  813. package/examples/starter/node_modules/kysely-codegen/.cspell.json +0 -97
  814. package/examples/starter/node_modules/kysely-codegen/.github/FUNDING.yml +0 -1
  815. package/examples/starter/node_modules/kysely-codegen/.kysely-codegenrc.json +0 -3
  816. package/examples/starter/node_modules/kysely-codegen/.ncurc.json +0 -3
  817. package/examples/starter/node_modules/kysely-codegen/.prettierignore +0 -1
  818. package/examples/starter/node_modules/kysely-codegen/LICENSE +0 -18
  819. package/examples/starter/node_modules/kysely-codegen/README.md +0 -456
  820. package/examples/starter/node_modules/kysely-codegen/assets/kysely-codegen-logo.svg +0 -28
  821. package/examples/starter/node_modules/kysely-codegen/dist/cli/bin.d.ts +0 -2
  822. package/examples/starter/node_modules/kysely-codegen/dist/cli/bin.js +0 -6
  823. package/examples/starter/node_modules/kysely-codegen/dist/cli/bin.js.map +0 -1
  824. package/examples/starter/node_modules/kysely-codegen/dist/cli/cli.d.ts +0 -17
  825. package/examples/starter/node_modules/kysely-codegen/dist/cli/cli.js +0 -246
  826. package/examples/starter/node_modules/kysely-codegen/dist/cli/cli.js.map +0 -1
  827. package/examples/starter/node_modules/kysely-codegen/dist/cli/config-error.d.ts +0 -6
  828. package/examples/starter/node_modules/kysely-codegen/dist/cli/config-error.js +0 -11
  829. package/examples/starter/node_modules/kysely-codegen/dist/cli/config-error.js.map +0 -1
  830. package/examples/starter/node_modules/kysely-codegen/dist/cli/config.d.ts +0 -106
  831. package/examples/starter/node_modules/kysely-codegen/dist/cli/config.js +0 -87
  832. package/examples/starter/node_modules/kysely-codegen/dist/cli/config.js.map +0 -1
  833. package/examples/starter/node_modules/kysely-codegen/dist/cli/constants.d.ts +0 -5
  834. package/examples/starter/node_modules/kysely-codegen/dist/cli/constants.js +0 -23
  835. package/examples/starter/node_modules/kysely-codegen/dist/cli/constants.js.map +0 -1
  836. package/examples/starter/node_modules/kysely-codegen/dist/cli/flags.d.ts +0 -76
  837. package/examples/starter/node_modules/kysely-codegen/dist/cli/flags.js +0 -152
  838. package/examples/starter/node_modules/kysely-codegen/dist/cli/flags.js.map +0 -1
  839. package/examples/starter/node_modules/kysely-codegen/dist/cli/index.d.ts +0 -4
  840. package/examples/starter/node_modules/kysely-codegen/dist/cli/index.js +0 -21
  841. package/examples/starter/node_modules/kysely-codegen/dist/cli/index.js.map +0 -1
  842. package/examples/starter/node_modules/kysely-codegen/dist/db.d.ts +0 -1
  843. package/examples/starter/node_modules/kysely-codegen/dist/db.js +0 -3
  844. package/examples/starter/node_modules/kysely-codegen/dist/db.js.map +0 -1
  845. package/examples/starter/node_modules/kysely-codegen/dist/generator/adapter.d.ts +0 -16
  846. package/examples/starter/node_modules/kysely-codegen/dist/generator/adapter.js +0 -18
  847. package/examples/starter/node_modules/kysely-codegen/dist/generator/adapter.js.map +0 -1
  848. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/alias-declaration-node.d.ts +0 -9
  849. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/alias-declaration-node.js +0 -13
  850. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/alias-declaration-node.js.map +0 -1
  851. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/array-expression-node.d.ts +0 -6
  852. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/array-expression-node.js +0 -11
  853. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/array-expression-node.js.map +0 -1
  854. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/column-type-node.d.ts +0 -5
  855. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/column-type-node.js +0 -11
  856. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/column-type-node.js.map +0 -1
  857. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/definition-node.d.ts +0 -3
  858. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/definition-node.js +0 -3
  859. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/definition-node.js.map +0 -1
  860. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/export-statement-node.d.ts +0 -10
  861. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/export-statement-node.js +0 -11
  862. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/export-statement-node.js.map +0 -1
  863. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/expression-node.d.ts +0 -11
  864. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/expression-node.js +0 -3
  865. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/expression-node.js.map +0 -1
  866. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/extends-clause-node.d.ts +0 -9
  867. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/extends-clause-node.js +0 -14
  868. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/extends-clause-node.js.map +0 -1
  869. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/generic-expression-node.d.ts +0 -7
  870. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/generic-expression-node.js +0 -12
  871. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/generic-expression-node.js.map +0 -1
  872. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/identifier-node.d.ts +0 -11
  873. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/identifier-node.js +0 -18
  874. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/identifier-node.js.map +0 -1
  875. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/import-clause-node.d.ts +0 -6
  876. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/import-clause-node.js +0 -12
  877. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/import-clause-node.js.map +0 -1
  878. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/import-statement-node.d.ts +0 -7
  879. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/import-statement-node.js +0 -12
  880. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/import-statement-node.js.map +0 -1
  881. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/infer-clause-node.d.ts +0 -5
  882. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/infer-clause-node.js +0 -11
  883. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/infer-clause-node.js.map +0 -1
  884. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/interface-declaration-node.d.ts +0 -8
  885. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/interface-declaration-node.js +0 -12
  886. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/interface-declaration-node.js.map +0 -1
  887. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/json-column-type-node.d.ts +0 -5
  888. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/json-column-type-node.js +0 -11
  889. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/json-column-type-node.js.map +0 -1
  890. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/literal-node.d.ts +0 -7
  891. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/literal-node.js +0 -11
  892. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/literal-node.js.map +0 -1
  893. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/mapped-type-node.d.ts +0 -6
  894. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/mapped-type-node.js +0 -11
  895. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/mapped-type-node.js.map +0 -1
  896. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/module-reference-node.d.ts +0 -15
  897. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/module-reference-node.js +0 -12
  898. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/module-reference-node.js.map +0 -1
  899. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/object-expression-node.d.ts +0 -6
  900. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/object-expression-node.js +0 -11
  901. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/object-expression-node.js.map +0 -1
  902. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/property-node.d.ts +0 -8
  903. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/property-node.js +0 -13
  904. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/property-node.js.map +0 -1
  905. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/raw-expression-node.d.ts +0 -5
  906. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/raw-expression-node.js +0 -11
  907. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/raw-expression-node.js.map +0 -1
  908. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/runtime-enum-declaration-node.d.ts +0 -13
  909. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/runtime-enum-declaration-node.js +0 -28
  910. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/runtime-enum-declaration-node.js.map +0 -1
  911. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/statement-node.d.ts +0 -3
  912. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/statement-node.js +0 -3
  913. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/statement-node.js.map +0 -1
  914. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/template-node.d.ts +0 -7
  915. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/template-node.js +0 -12
  916. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/template-node.js.map +0 -1
  917. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/union-expression-node.d.ts +0 -6
  918. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/union-expression-node.js +0 -11
  919. package/examples/starter/node_modules/kysely-codegen/dist/generator/ast/union-expression-node.js.map +0 -1
  920. package/examples/starter/node_modules/kysely-codegen/dist/generator/connection-string-parser.d.ts +0 -24
  921. package/examples/starter/node_modules/kysely-codegen/dist/generator/connection-string-parser.js +0 -94
  922. package/examples/starter/node_modules/kysely-codegen/dist/generator/connection-string-parser.js.map +0 -1
  923. package/examples/starter/node_modules/kysely-codegen/dist/generator/constants.d.ts +0 -1
  924. package/examples/starter/node_modules/kysely-codegen/dist/generator/constants.js +0 -6
  925. package/examples/starter/node_modules/kysely-codegen/dist/generator/constants.js.map +0 -1
  926. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialect.d.ts +0 -11
  927. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialect.js +0 -38
  928. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialect.js.map +0 -1
  929. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/kysely-bun-sqlite/kysely-bun-sqlite-adapter.d.ts +0 -3
  930. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/kysely-bun-sqlite/kysely-bun-sqlite-adapter.js +0 -8
  931. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/kysely-bun-sqlite/kysely-bun-sqlite-adapter.js.map +0 -1
  932. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/kysely-bun-sqlite/kysely-bun-sqlite-dialect.d.ts +0 -6
  933. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/kysely-bun-sqlite/kysely-bun-sqlite-dialect.js +0 -13
  934. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/kysely-bun-sqlite/kysely-bun-sqlite-dialect.js.map +0 -1
  935. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/libsql/libsql-adapter.d.ts +0 -3
  936. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/libsql/libsql-adapter.js +0 -8
  937. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/libsql/libsql-adapter.js.map +0 -1
  938. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/libsql/libsql-dialect.d.ts +0 -6
  939. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/libsql/libsql-dialect.js +0 -13
  940. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/libsql/libsql-dialect.js.map +0 -1
  941. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mssql/mssql-adapter.d.ts +0 -36
  942. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mssql/mssql-adapter.js +0 -45
  943. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mssql/mssql-adapter.js.map +0 -1
  944. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mssql/mssql-dialect.d.ts +0 -6
  945. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mssql/mssql-dialect.js +0 -13
  946. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mssql/mssql-dialect.js.map +0 -1
  947. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mysql/mysql-adapter.d.ts +0 -58
  948. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mysql/mysql-adapter.js +0 -80
  949. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mysql/mysql-adapter.js.map +0 -1
  950. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mysql/mysql-dialect.d.ts +0 -6
  951. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mysql/mysql-dialect.js +0 -13
  952. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/mysql/mysql-dialect.js.map +0 -1
  953. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/postgres/postgres-adapter.d.ts +0 -72
  954. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/postgres/postgres-adapter.js +0 -137
  955. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/postgres/postgres-adapter.js.map +0 -1
  956. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/postgres/postgres-dialect.d.ts +0 -16
  957. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/postgres/postgres-dialect.js +0 -22
  958. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/postgres/postgres-dialect.js.map +0 -1
  959. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/sqlite/sqlite-adapter.d.ts +0 -14
  960. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/sqlite/sqlite-adapter.js +0 -22
  961. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/sqlite/sqlite-adapter.js.map +0 -1
  962. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/sqlite/sqlite-dialect.d.ts +0 -6
  963. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/sqlite/sqlite-dialect.js +0 -13
  964. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/sqlite/sqlite-dialect.js.map +0 -1
  965. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/worker-bun-sqlite/worker-bun-sqlite-dialect.d.ts +0 -6
  966. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/worker-bun-sqlite/worker-bun-sqlite-dialect.js +0 -13
  967. package/examples/starter/node_modules/kysely-codegen/dist/generator/dialects/worker-bun-sqlite/worker-bun-sqlite-dialect.js.map +0 -1
  968. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/diff-checker.d.ts +0 -4
  969. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/diff-checker.js +0 -27
  970. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/diff-checker.js.map +0 -1
  971. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/generate.d.ts +0 -34
  972. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/generate.js +0 -84
  973. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/generate.js.map +0 -1
  974. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/runtime-enums-style.d.ts +0 -1
  975. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/runtime-enums-style.js +0 -3
  976. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/runtime-enums-style.js.map +0 -1
  977. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/serializer.d.ts +0 -68
  978. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/serializer.js +0 -311
  979. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/serializer.js.map +0 -1
  980. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/singularizer.d.ts +0 -1
  981. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/singularizer.js +0 -32
  982. package/examples/starter/node_modules/kysely-codegen/dist/generator/generator/singularizer.js.map +0 -1
  983. package/examples/starter/node_modules/kysely-codegen/dist/generator/index.d.ts +0 -50
  984. package/examples/starter/node_modules/kysely-codegen/dist/generator/index.js +0 -67
  985. package/examples/starter/node_modules/kysely-codegen/dist/generator/index.js.map +0 -1
  986. package/examples/starter/node_modules/kysely-codegen/dist/generator/logger/log-level.d.ts +0 -8
  987. package/examples/starter/node_modules/kysely-codegen/dist/generator/logger/log-level.js +0 -14
  988. package/examples/starter/node_modules/kysely-codegen/dist/generator/logger/log-level.js.map +0 -1
  989. package/examples/starter/node_modules/kysely-codegen/dist/generator/logger/logger.d.ts +0 -12
  990. package/examples/starter/node_modules/kysely-codegen/dist/generator/logger/logger.js +0 -62
  991. package/examples/starter/node_modules/kysely-codegen/dist/generator/logger/logger.js.map +0 -1
  992. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/definitions.d.ts +0 -18
  993. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/definitions.js +0 -44
  994. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/definitions.js.map +0 -1
  995. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/identifier-style.d.ts +0 -1
  996. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/identifier-style.js +0 -3
  997. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/identifier-style.js.map +0 -1
  998. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/imports.d.ts +0 -5
  999. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/imports.js +0 -9
  1000. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/imports.js.map +0 -1
  1001. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/symbol-collection.d.ts +0 -44
  1002. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/symbol-collection.js +0 -59
  1003. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/symbol-collection.js.map +0 -1
  1004. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/transformer.d.ts +0 -38
  1005. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/transformer.js +0 -380
  1006. package/examples/starter/node_modules/kysely-codegen/dist/generator/transformer/transformer.js.map +0 -1
  1007. package/examples/starter/node_modules/kysely-codegen/dist/generator/utils/case-converter.d.ts +0 -30
  1008. package/examples/starter/node_modules/kysely-codegen/dist/generator/utils/case-converter.js +0 -67
  1009. package/examples/starter/node_modules/kysely-codegen/dist/generator/utils/case-converter.js.map +0 -1
  1010. package/examples/starter/node_modules/kysely-codegen/dist/index.d.ts +0 -4
  1011. package/examples/starter/node_modules/kysely-codegen/dist/index.js +0 -21
  1012. package/examples/starter/node_modules/kysely-codegen/dist/index.js.map +0 -1
  1013. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialect.d.ts +0 -19
  1014. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialect.js +0 -10
  1015. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialect.js.map +0 -1
  1016. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/kysely-bun-sqlite/kysely-bun-sqlite-dialect.d.ts +0 -7
  1017. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/kysely-bun-sqlite/kysely-bun-sqlite-dialect.js +0 -56
  1018. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/kysely-bun-sqlite/kysely-bun-sqlite-dialect.js.map +0 -1
  1019. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/kysely-bun-sqlite/kysely-bun-sqlite-introspector.d.ts +0 -6
  1020. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/kysely-bun-sqlite/kysely-bun-sqlite-introspector.js +0 -15
  1021. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/kysely-bun-sqlite/kysely-bun-sqlite-introspector.js.map +0 -1
  1022. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/libsql/libsql-dialect.d.ts +0 -7
  1023. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/libsql/libsql-dialect.js +0 -59
  1024. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/libsql/libsql-dialect.js.map +0 -1
  1025. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/libsql/libsql-introspector.d.ts +0 -6
  1026. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/libsql/libsql-introspector.js +0 -15
  1027. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/libsql/libsql-introspector.js.map +0 -1
  1028. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mssql/mssql-dialect.d.ts +0 -9
  1029. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mssql/mssql-dialect.js +0 -112
  1030. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mssql/mssql-dialect.js.map +0 -1
  1031. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mssql/mssql-introspector.d.ts +0 -6
  1032. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mssql/mssql-introspector.js +0 -15
  1033. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mssql/mssql-introspector.js.map +0 -1
  1034. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-db.d.ts +0 -8
  1035. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-db.js +0 -3
  1036. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-db.js.map +0 -1
  1037. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-dialect.d.ts +0 -8
  1038. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-dialect.js +0 -55
  1039. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-dialect.js.map +0 -1
  1040. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-introspector.d.ts +0 -14
  1041. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-introspector.js +0 -46
  1042. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-introspector.js.map +0 -1
  1043. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-parser.d.ts +0 -7
  1044. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-parser.js +0 -66
  1045. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/mysql/mysql-parser.js.map +0 -1
  1046. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/date-parser.d.ts +0 -2
  1047. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/date-parser.js +0 -5
  1048. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/date-parser.js.map +0 -1
  1049. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/numeric-parser.d.ts +0 -2
  1050. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/numeric-parser.js +0 -5
  1051. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/numeric-parser.js.map +0 -1
  1052. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-db.d.ts +0 -15
  1053. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-db.js +0 -3
  1054. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-db.js.map +0 -1
  1055. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-dialect.d.ts +0 -20
  1056. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-dialect.js +0 -83
  1057. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-dialect.js.map +0 -1
  1058. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-introspector.d.ts +0 -35
  1059. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-introspector.js +0 -128
  1060. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/postgres/postgres-introspector.js.map +0 -1
  1061. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/sqlite/sqlite-dialect.d.ts +0 -8
  1062. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/sqlite/sqlite-dialect.js +0 -53
  1063. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/sqlite/sqlite-dialect.js.map +0 -1
  1064. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/sqlite/sqlite-introspector.d.ts +0 -6
  1065. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/sqlite/sqlite-introspector.js +0 -15
  1066. package/examples/starter/node_modules/kysely-codegen/dist/introspector/dialects/sqlite/sqlite-introspector.js.map +0 -1
  1067. package/examples/starter/node_modules/kysely-codegen/dist/introspector/enum-collection.d.ts +0 -10
  1068. package/examples/starter/node_modules/kysely-codegen/dist/introspector/enum-collection.js +0 -26
  1069. package/examples/starter/node_modules/kysely-codegen/dist/introspector/enum-collection.js.map +0 -1
  1070. package/examples/starter/node_modules/kysely-codegen/dist/introspector/index.d.ts +0 -24
  1071. package/examples/starter/node_modules/kysely-codegen/dist/introspector/index.js +0 -41
  1072. package/examples/starter/node_modules/kysely-codegen/dist/introspector/index.js.map +0 -1
  1073. package/examples/starter/node_modules/kysely-codegen/dist/introspector/introspector.d.ts +0 -23
  1074. package/examples/starter/node_modules/kysely-codegen/dist/introspector/introspector.fixtures.d.ts +0 -4
  1075. package/examples/starter/node_modules/kysely-codegen/dist/introspector/introspector.fixtures.js +0 -128
  1076. package/examples/starter/node_modules/kysely-codegen/dist/introspector/introspector.fixtures.js.map +0 -1
  1077. package/examples/starter/node_modules/kysely-codegen/dist/introspector/introspector.js +0 -50
  1078. package/examples/starter/node_modules/kysely-codegen/dist/introspector/introspector.js.map +0 -1
  1079. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/column-metadata.d.ts +0 -23
  1080. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/column-metadata.js +0 -18
  1081. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/column-metadata.js.map +0 -1
  1082. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/database-metadata.d.ts +0 -12
  1083. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/database-metadata.js +0 -13
  1084. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/database-metadata.js.map +0 -1
  1085. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/table-metadata.d.ts +0 -17
  1086. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/table-metadata.js +0 -15
  1087. package/examples/starter/node_modules/kysely-codegen/dist/introspector/metadata/table-metadata.js.map +0 -1
  1088. package/examples/starter/node_modules/kysely-codegen/dist/introspector/table-matcher.d.ts +0 -6
  1089. package/examples/starter/node_modules/kysely-codegen/dist/introspector/table-matcher.js +0 -16
  1090. package/examples/starter/node_modules/kysely-codegen/dist/introspector/table-matcher.js.map +0 -1
  1091. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/LICENSE +0 -21
  1092. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/README.md +0 -208
  1093. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/index.cjs +0 -33
  1094. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/index.d.cts +0 -4
  1095. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/index.d.ts +0 -4
  1096. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/index.js +0 -4
  1097. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/locales/index.cjs +0 -17
  1098. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/locales/index.d.cts +0 -1
  1099. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/locales/index.d.ts +0 -1
  1100. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/locales/index.js +0 -1
  1101. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/locales/package.json +0 -6
  1102. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/mini/index.cjs +0 -17
  1103. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/mini/index.d.cts +0 -1
  1104. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/mini/index.d.ts +0 -1
  1105. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/mini/index.js +0 -1
  1106. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/mini/package.json +0 -6
  1107. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/package.json +0 -135
  1108. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/index.ts +0 -4
  1109. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/locales/index.ts +0 -1
  1110. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/mini/index.ts +0 -1
  1111. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/ZodError.ts +0 -330
  1112. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  1113. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  1114. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  1115. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  1116. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  1117. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  1118. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  1119. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  1120. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  1121. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/errors.ts +0 -13
  1122. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/external.ts +0 -6
  1123. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  1124. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  1125. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  1126. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  1127. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  1128. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/helpers/util.ts +0 -224
  1129. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/index.ts +0 -4
  1130. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/locales/en.ts +0 -124
  1131. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/standard-schema.ts +0 -113
  1132. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  1133. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  1134. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  1135. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  1136. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  1137. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  1138. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  1139. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  1140. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  1141. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  1142. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  1143. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  1144. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  1145. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  1146. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  1147. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  1148. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  1149. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  1150. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  1151. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  1152. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  1153. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  1154. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  1155. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  1156. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  1157. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  1158. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  1159. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  1160. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  1161. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  1162. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  1163. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  1164. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  1165. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  1166. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  1167. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  1168. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  1169. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  1170. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  1171. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  1172. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  1173. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  1174. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  1175. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  1176. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  1177. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  1178. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  1179. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  1180. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  1181. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  1182. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  1183. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  1184. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  1185. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  1186. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  1187. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  1188. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  1189. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  1190. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  1191. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  1192. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  1193. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v3/types.ts +0 -5138
  1194. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/checks.ts +0 -32
  1195. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  1196. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/compat.ts +0 -70
  1197. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/errors.ts +0 -82
  1198. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/external.ts +0 -51
  1199. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -643
  1200. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/index.ts +0 -5
  1201. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/iso.ts +0 -90
  1202. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/parse.ts +0 -82
  1203. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/schemas.ts +0 -2409
  1204. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  1205. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
  1206. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  1207. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
  1208. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  1209. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  1210. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  1211. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  1212. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  1213. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -276
  1214. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  1215. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
  1216. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -562
  1217. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  1218. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  1219. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  1220. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
  1221. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
  1222. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -365
  1223. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  1224. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  1225. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -661
  1226. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  1227. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -595
  1228. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  1229. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
  1230. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
  1231. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  1232. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -734
  1233. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
  1234. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  1235. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
  1236. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
  1237. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
  1238. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
  1239. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  1240. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  1241. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
  1242. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
  1243. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  1244. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  1245. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
  1246. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  1247. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -270
  1248. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -640
  1249. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -223
  1250. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -427
  1251. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  1252. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
  1253. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
  1254. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -282
  1255. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  1256. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  1257. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  1258. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  1259. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -600
  1260. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -582
  1261. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -570
  1262. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  1263. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
  1264. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
  1265. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
  1266. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1175
  1267. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
  1268. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
  1269. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  1270. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2975
  1271. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -361
  1272. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -183
  1273. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -219
  1274. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  1275. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  1276. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  1277. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/api.ts +0 -1798
  1278. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/checks.ts +0 -1293
  1279. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/config.ts +0 -15
  1280. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/core.ts +0 -138
  1281. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/doc.ts +0 -44
  1282. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/errors.ts +0 -448
  1283. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/index.ts +0 -16
  1284. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
  1285. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -667
  1286. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/json-schema.ts +0 -147
  1287. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/parse.ts +0 -195
  1288. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/regexes.ts +0 -183
  1289. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/registries.ts +0 -105
  1290. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/schemas.ts +0 -4543
  1291. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  1292. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  1293. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  1294. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  1295. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  1296. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
  1297. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  1298. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  1299. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  1300. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  1301. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -83
  1302. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -67
  1303. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  1304. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/to-json-schema.ts +0 -613
  1305. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/util.ts +0 -966
  1306. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/versions.ts +0 -5
  1307. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/core/zsf.ts +0 -323
  1308. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/index.ts +0 -4
  1309. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ar.ts +0 -115
  1310. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/az.ts +0 -111
  1311. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/be.ts +0 -176
  1312. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/bg.ts +0 -128
  1313. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ca.ts +0 -116
  1314. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/cs.ts +0 -118
  1315. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/da.ts +0 -123
  1316. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/de.ts +0 -116
  1317. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/en.ts +0 -119
  1318. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/eo.ts +0 -118
  1319. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/es.ts +0 -141
  1320. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/fa.ts +0 -126
  1321. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/fi.ts +0 -121
  1322. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
  1323. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/fr.ts +0 -116
  1324. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/he.ts +0 -246
  1325. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/hu.ts +0 -117
  1326. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/hy.ts +0 -164
  1327. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/id.ts +0 -115
  1328. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/index.ts +0 -49
  1329. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/is.ts +0 -119
  1330. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/it.ts +0 -116
  1331. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ja.ts +0 -114
  1332. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ka.ts +0 -123
  1333. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/kh.ts +0 -7
  1334. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/km.ts +0 -119
  1335. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ko.ts +0 -121
  1336. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/lt.ts +0 -239
  1337. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/mk.ts +0 -118
  1338. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ms.ts +0 -115
  1339. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/nl.ts +0 -121
  1340. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/no.ts +0 -116
  1341. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ota.ts +0 -117
  1342. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/pl.ts +0 -118
  1343. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ps.ts +0 -126
  1344. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/pt.ts +0 -116
  1345. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ru.ts +0 -176
  1346. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/sl.ts +0 -118
  1347. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/sv.ts +0 -119
  1348. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ta.ts +0 -118
  1349. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/th.ts +0 -119
  1350. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/tr.ts +0 -111
  1351. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ua.ts +0 -7
  1352. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/uk.ts +0 -117
  1353. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/ur.ts +0 -119
  1354. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/uz.ts +0 -116
  1355. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/vi.ts +0 -117
  1356. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/yo.ts +0 -124
  1357. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
  1358. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
  1359. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/checks.ts +0 -32
  1360. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  1361. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/external.ts +0 -40
  1362. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/index.ts +0 -3
  1363. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/iso.ts +0 -66
  1364. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/parse.ts +0 -14
  1365. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/schemas.ts +0 -1916
  1366. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
  1367. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  1368. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  1369. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  1370. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -529
  1371. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  1372. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  1373. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
  1374. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -963
  1375. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  1376. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
  1377. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  1378. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
  1379. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  1380. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -347
  1381. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/src/v4-mini/index.ts +0 -1
  1382. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/ZodError.cjs +0 -138
  1383. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/ZodError.d.cts +0 -164
  1384. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/ZodError.d.ts +0 -164
  1385. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/ZodError.js +0 -133
  1386. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/errors.cjs +0 -17
  1387. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/errors.d.cts +0 -5
  1388. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/errors.d.ts +0 -5
  1389. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/errors.js +0 -9
  1390. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/external.cjs +0 -22
  1391. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/external.d.cts +0 -6
  1392. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/external.d.ts +0 -6
  1393. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/external.js +0 -6
  1394. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  1395. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  1396. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  1397. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  1398. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  1399. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  1400. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  1401. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  1402. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  1403. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  1404. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  1405. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  1406. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  1407. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  1408. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  1409. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  1410. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  1411. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  1412. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  1413. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  1414. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/util.cjs +0 -137
  1415. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/util.d.cts +0 -85
  1416. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/util.d.ts +0 -85
  1417. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/helpers/util.js +0 -133
  1418. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/index.cjs +0 -33
  1419. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/index.d.cts +0 -4
  1420. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/index.d.ts +0 -4
  1421. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/index.js +0 -4
  1422. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/locales/en.cjs +0 -112
  1423. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/locales/en.d.cts +0 -3
  1424. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/locales/en.d.ts +0 -3
  1425. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/locales/en.js +0 -109
  1426. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/package.json +0 -6
  1427. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/standard-schema.cjs +0 -2
  1428. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/standard-schema.d.cts +0 -102
  1429. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/standard-schema.d.ts +0 -102
  1430. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/standard-schema.js +0 -1
  1431. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/types.cjs +0 -3777
  1432. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/types.d.cts +0 -1034
  1433. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/types.d.ts +0 -1034
  1434. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v3/types.js +0 -3695
  1435. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/checks.cjs +0 -33
  1436. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/checks.d.cts +0 -1
  1437. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/checks.d.ts +0 -1
  1438. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/checks.js +0 -1
  1439. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/coerce.cjs +0 -47
  1440. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  1441. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  1442. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/coerce.js +0 -17
  1443. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/compat.cjs +0 -61
  1444. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/compat.d.cts +0 -50
  1445. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/compat.d.ts +0 -50
  1446. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/compat.js +0 -31
  1447. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/errors.cjs +0 -74
  1448. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/errors.d.cts +0 -30
  1449. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/errors.d.ts +0 -30
  1450. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/errors.js +0 -48
  1451. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/external.cjs +0 -73
  1452. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/external.d.cts +0 -15
  1453. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/external.d.ts +0 -15
  1454. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/external.js +0 -20
  1455. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/from-json-schema.cjs +0 -610
  1456. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
  1457. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
  1458. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/from-json-schema.js +0 -584
  1459. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/index.cjs +0 -33
  1460. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/index.d.cts +0 -4
  1461. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/index.d.ts +0 -4
  1462. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/index.js +0 -4
  1463. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/iso.cjs +0 -60
  1464. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/iso.d.cts +0 -22
  1465. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/iso.d.ts +0 -22
  1466. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/iso.js +0 -30
  1467. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/package.json +0 -6
  1468. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/parse.cjs +0 -41
  1469. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/parse.d.cts +0 -31
  1470. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/parse.d.ts +0 -31
  1471. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/parse.js +0 -15
  1472. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/schemas.cjs +0 -1272
  1473. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/schemas.d.cts +0 -739
  1474. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/schemas.d.ts +0 -739
  1475. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/classic/schemas.js +0 -1157
  1476. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/api.cjs +0 -1222
  1477. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/api.d.cts +0 -304
  1478. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/api.d.ts +0 -304
  1479. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/api.js +0 -1082
  1480. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/checks.cjs +0 -601
  1481. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/checks.d.cts +0 -278
  1482. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/checks.d.ts +0 -278
  1483. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/checks.js +0 -575
  1484. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/core.cjs +0 -83
  1485. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/core.d.cts +0 -70
  1486. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/core.d.ts +0 -70
  1487. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/core.js +0 -76
  1488. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/doc.cjs +0 -39
  1489. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/doc.d.cts +0 -14
  1490. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/doc.d.ts +0 -14
  1491. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/doc.js +0 -35
  1492. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/errors.cjs +0 -213
  1493. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/errors.d.cts +0 -220
  1494. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/errors.d.ts +0 -220
  1495. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/errors.js +0 -182
  1496. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/index.cjs +0 -47
  1497. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/index.d.cts +0 -16
  1498. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/index.d.ts +0 -16
  1499. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/index.js +0 -16
  1500. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
  1501. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
  1502. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
  1503. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-generator.js +0 -95
  1504. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-processors.cjs +0 -648
  1505. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
  1506. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
  1507. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema-processors.js +0 -605
  1508. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema.cjs +0 -2
  1509. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema.d.cts +0 -88
  1510. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema.d.ts +0 -88
  1511. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/json-schema.js +0 -1
  1512. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/package.json +0 -6
  1513. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/parse.cjs +0 -131
  1514. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/parse.d.cts +0 -49
  1515. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/parse.d.ts +0 -49
  1516. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/parse.js +0 -93
  1517. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/regexes.cjs +0 -166
  1518. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/regexes.d.cts +0 -79
  1519. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/regexes.d.ts +0 -79
  1520. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/regexes.js +0 -133
  1521. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/registries.cjs +0 -56
  1522. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/registries.d.cts +0 -35
  1523. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/registries.d.ts +0 -35
  1524. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/registries.js +0 -51
  1525. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/schemas.cjs +0 -2126
  1526. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/schemas.d.cts +0 -1146
  1527. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/schemas.d.ts +0 -1146
  1528. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/schemas.js +0 -2095
  1529. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  1530. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
  1531. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
  1532. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/standard-schema.js +0 -1
  1533. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/to-json-schema.cjs +0 -446
  1534. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/to-json-schema.d.cts +0 -114
  1535. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/to-json-schema.d.ts +0 -114
  1536. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/to-json-schema.js +0 -437
  1537. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/util.cjs +0 -710
  1538. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/util.d.cts +0 -199
  1539. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/util.d.ts +0 -199
  1540. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/util.js +0 -651
  1541. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/versions.cjs +0 -8
  1542. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/versions.d.cts +0 -5
  1543. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/versions.d.ts +0 -5
  1544. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/core/versions.js +0 -5
  1545. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/index.cjs +0 -22
  1546. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/index.d.cts +0 -3
  1547. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/index.d.ts +0 -3
  1548. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/index.js +0 -3
  1549. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ar.cjs +0 -133
  1550. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ar.d.cts +0 -5
  1551. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ar.d.ts +0 -4
  1552. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ar.js +0 -106
  1553. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/az.cjs +0 -132
  1554. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/az.d.cts +0 -5
  1555. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/az.d.ts +0 -4
  1556. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/az.js +0 -105
  1557. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/be.cjs +0 -183
  1558. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/be.d.cts +0 -5
  1559. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/be.d.ts +0 -4
  1560. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/be.js +0 -156
  1561. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/bg.cjs +0 -147
  1562. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/bg.d.cts +0 -5
  1563. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/bg.d.ts +0 -4
  1564. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/bg.js +0 -120
  1565. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ca.cjs +0 -134
  1566. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ca.d.cts +0 -5
  1567. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ca.d.ts +0 -4
  1568. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ca.js +0 -107
  1569. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/cs.cjs +0 -138
  1570. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/cs.d.cts +0 -5
  1571. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/cs.d.ts +0 -4
  1572. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/cs.js +0 -111
  1573. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/da.cjs +0 -142
  1574. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/da.d.cts +0 -5
  1575. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/da.d.ts +0 -4
  1576. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/da.js +0 -115
  1577. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/de.cjs +0 -135
  1578. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/de.d.cts +0 -5
  1579. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/de.d.ts +0 -4
  1580. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/de.js +0 -108
  1581. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/en.cjs +0 -136
  1582. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/en.d.cts +0 -5
  1583. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/en.d.ts +0 -4
  1584. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/en.js +0 -109
  1585. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/eo.cjs +0 -136
  1586. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/eo.d.cts +0 -5
  1587. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/eo.d.ts +0 -4
  1588. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/eo.js +0 -109
  1589. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/es.cjs +0 -159
  1590. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/es.d.cts +0 -5
  1591. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/es.d.ts +0 -4
  1592. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/es.js +0 -132
  1593. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fa.cjs +0 -141
  1594. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fa.d.cts +0 -5
  1595. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fa.d.ts +0 -4
  1596. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fa.js +0 -114
  1597. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fi.cjs +0 -139
  1598. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fi.d.cts +0 -5
  1599. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fi.d.ts +0 -4
  1600. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fi.js +0 -112
  1601. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
  1602. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
  1603. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  1604. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr-CA.js +0 -107
  1605. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr.cjs +0 -135
  1606. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr.d.cts +0 -5
  1607. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr.d.ts +0 -4
  1608. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/fr.js +0 -108
  1609. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/he.cjs +0 -241
  1610. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/he.d.cts +0 -5
  1611. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/he.d.ts +0 -4
  1612. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/he.js +0 -214
  1613. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hu.cjs +0 -135
  1614. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hu.d.cts +0 -5
  1615. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hu.d.ts +0 -4
  1616. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hu.js +0 -108
  1617. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hy.cjs +0 -174
  1618. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hy.d.cts +0 -5
  1619. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hy.d.ts +0 -4
  1620. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/hy.js +0 -147
  1621. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/id.cjs +0 -133
  1622. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/id.d.cts +0 -5
  1623. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/id.d.ts +0 -4
  1624. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/id.js +0 -106
  1625. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/index.cjs +0 -104
  1626. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/index.d.cts +0 -49
  1627. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/index.d.ts +0 -49
  1628. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/index.js +0 -49
  1629. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/is.cjs +0 -136
  1630. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/is.d.cts +0 -5
  1631. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/is.d.ts +0 -4
  1632. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/is.js +0 -109
  1633. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/it.cjs +0 -135
  1634. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/it.d.cts +0 -5
  1635. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/it.d.ts +0 -4
  1636. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/it.js +0 -108
  1637. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ja.cjs +0 -134
  1638. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ja.d.cts +0 -5
  1639. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ja.d.ts +0 -4
  1640. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ja.js +0 -107
  1641. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ka.cjs +0 -139
  1642. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ka.d.cts +0 -5
  1643. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ka.d.ts +0 -4
  1644. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ka.js +0 -112
  1645. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/kh.cjs +0 -12
  1646. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/kh.d.cts +0 -5
  1647. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/kh.d.ts +0 -5
  1648. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/kh.js +0 -5
  1649. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/km.cjs +0 -137
  1650. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/km.d.cts +0 -5
  1651. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/km.d.ts +0 -4
  1652. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/km.js +0 -110
  1653. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ko.cjs +0 -138
  1654. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ko.d.cts +0 -5
  1655. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ko.d.ts +0 -4
  1656. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ko.js +0 -111
  1657. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/lt.cjs +0 -230
  1658. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/lt.d.cts +0 -5
  1659. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/lt.d.ts +0 -4
  1660. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/lt.js +0 -203
  1661. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/mk.cjs +0 -136
  1662. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/mk.d.cts +0 -5
  1663. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/mk.d.ts +0 -4
  1664. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/mk.js +0 -109
  1665. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ms.cjs +0 -134
  1666. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ms.d.cts +0 -5
  1667. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ms.d.ts +0 -4
  1668. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ms.js +0 -107
  1669. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/nl.cjs +0 -137
  1670. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/nl.d.cts +0 -5
  1671. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/nl.d.ts +0 -4
  1672. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/nl.js +0 -110
  1673. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/no.cjs +0 -135
  1674. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/no.d.cts +0 -5
  1675. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/no.d.ts +0 -4
  1676. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/no.js +0 -108
  1677. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ota.cjs +0 -136
  1678. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ota.d.cts +0 -5
  1679. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ota.d.ts +0 -4
  1680. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ota.js +0 -109
  1681. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/package.json +0 -6
  1682. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pl.cjs +0 -136
  1683. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pl.d.cts +0 -5
  1684. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pl.d.ts +0 -4
  1685. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pl.js +0 -109
  1686. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ps.cjs +0 -141
  1687. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ps.d.cts +0 -5
  1688. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ps.d.ts +0 -4
  1689. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ps.js +0 -114
  1690. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pt.cjs +0 -135
  1691. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pt.d.cts +0 -5
  1692. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pt.d.ts +0 -4
  1693. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/pt.js +0 -108
  1694. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ru.cjs +0 -183
  1695. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ru.d.cts +0 -5
  1696. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ru.d.ts +0 -4
  1697. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ru.js +0 -156
  1698. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sl.cjs +0 -136
  1699. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sl.d.cts +0 -5
  1700. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sl.d.ts +0 -4
  1701. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sl.js +0 -109
  1702. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sv.cjs +0 -137
  1703. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sv.d.cts +0 -5
  1704. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sv.d.ts +0 -4
  1705. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/sv.js +0 -110
  1706. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ta.cjs +0 -137
  1707. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ta.d.cts +0 -5
  1708. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ta.d.ts +0 -4
  1709. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ta.js +0 -110
  1710. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/th.cjs +0 -137
  1711. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/th.d.cts +0 -5
  1712. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/th.d.ts +0 -4
  1713. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/th.js +0 -110
  1714. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/tr.cjs +0 -132
  1715. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/tr.d.cts +0 -5
  1716. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/tr.d.ts +0 -4
  1717. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/tr.js +0 -105
  1718. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ua.cjs +0 -12
  1719. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ua.d.cts +0 -5
  1720. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ua.d.ts +0 -5
  1721. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ua.js +0 -5
  1722. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uk.cjs +0 -135
  1723. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uk.d.cts +0 -5
  1724. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uk.d.ts +0 -4
  1725. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uk.js +0 -108
  1726. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ur.cjs +0 -137
  1727. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ur.d.cts +0 -5
  1728. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ur.d.ts +0 -4
  1729. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/ur.js +0 -110
  1730. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uz.cjs +0 -136
  1731. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uz.d.cts +0 -5
  1732. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uz.d.ts +0 -4
  1733. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/uz.js +0 -109
  1734. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/vi.cjs +0 -135
  1735. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/vi.d.cts +0 -5
  1736. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/vi.d.ts +0 -4
  1737. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/vi.js +0 -108
  1738. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/yo.cjs +0 -134
  1739. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/yo.d.cts +0 -5
  1740. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/yo.d.ts +0 -4
  1741. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/yo.js +0 -107
  1742. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
  1743. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
  1744. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  1745. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-CN.js +0 -109
  1746. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
  1747. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
  1748. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  1749. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/locales/zh-TW.js +0 -107
  1750. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/checks.cjs +0 -34
  1751. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/checks.d.cts +0 -1
  1752. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/checks.d.ts +0 -1
  1753. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/checks.js +0 -1
  1754. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/coerce.cjs +0 -52
  1755. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  1756. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  1757. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/coerce.js +0 -22
  1758. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/external.cjs +0 -63
  1759. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/external.d.cts +0 -12
  1760. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/external.d.ts +0 -12
  1761. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/external.js +0 -14
  1762. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/index.cjs +0 -32
  1763. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/index.d.cts +0 -3
  1764. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/index.d.ts +0 -3
  1765. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/index.js +0 -3
  1766. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/iso.cjs +0 -64
  1767. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/iso.d.cts +0 -22
  1768. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/iso.d.ts +0 -22
  1769. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/iso.js +0 -34
  1770. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/package.json +0 -6
  1771. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/parse.cjs +0 -16
  1772. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/parse.d.cts +0 -1
  1773. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/parse.d.ts +0 -1
  1774. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/parse.js +0 -1
  1775. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/schemas.cjs +0 -1046
  1776. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/schemas.d.cts +0 -427
  1777. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/schemas.d.ts +0 -427
  1778. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/mini/schemas.js +0 -925
  1779. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4/package.json +0 -6
  1780. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4-mini/index.cjs +0 -17
  1781. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4-mini/index.d.cts +0 -1
  1782. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4-mini/index.d.ts +0 -1
  1783. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4-mini/index.js +0 -1
  1784. package/examples/starter/node_modules/kysely-codegen/node_modules/zod/v4-mini/package.json +0 -6
  1785. package/examples/starter/node_modules/kysely-codegen/package.json +0 -214
  1786. package/examples/starter/node_modules/kysely-codegen/pnpm-workspace.yaml +0 -3
  1787. package/examples/starter/node_modules/kysely-codegen/tsconfig.build.json +0 -5
  1788. package/examples/starter/node_modules/lines-and-columns/LICENSE +0 -21
  1789. package/examples/starter/node_modules/lines-and-columns/README.md +0 -33
  1790. package/examples/starter/node_modules/lines-and-columns/build/index.d.ts +0 -13
  1791. package/examples/starter/node_modules/lines-and-columns/build/index.js +0 -62
  1792. package/examples/starter/node_modules/lines-and-columns/package.json +0 -49
  1793. package/examples/starter/node_modules/loglevel/.editorconfig +0 -27
  1794. package/examples/starter/node_modules/loglevel/CONTRIBUTING.md +0 -98
  1795. package/examples/starter/node_modules/loglevel/Gruntfile.js +0 -165
  1796. package/examples/starter/node_modules/loglevel/LICENSE-MIT +0 -22
  1797. package/examples/starter/node_modules/loglevel/README.md +0 -408
  1798. package/examples/starter/node_modules/loglevel/_config.yml +0 -1
  1799. package/examples/starter/node_modules/loglevel/bower.json +0 -11
  1800. package/examples/starter/node_modules/loglevel/demo/index.html +0 -139
  1801. package/examples/starter/node_modules/loglevel/demo/script.js +0 -86
  1802. package/examples/starter/node_modules/loglevel/demo/styles.css +0 -107
  1803. package/examples/starter/node_modules/loglevel/dist/loglevel.js +0 -352
  1804. package/examples/starter/node_modules/loglevel/dist/loglevel.min.js +0 -3
  1805. package/examples/starter/node_modules/loglevel/index.d.ts +0 -203
  1806. package/examples/starter/node_modules/loglevel/lib/loglevel.js +0 -357
  1807. package/examples/starter/node_modules/loglevel/package.json +0 -63
  1808. package/examples/starter/node_modules/micromatch/LICENSE +0 -21
  1809. package/examples/starter/node_modules/micromatch/README.md +0 -1024
  1810. package/examples/starter/node_modules/micromatch/index.js +0 -474
  1811. package/examples/starter/node_modules/micromatch/package.json +0 -119
  1812. package/examples/starter/node_modules/minimatch/LICENSE +0 -15
  1813. package/examples/starter/node_modules/minimatch/README.md +0 -230
  1814. package/examples/starter/node_modules/minimatch/minimatch.js +0 -947
  1815. package/examples/starter/node_modules/minimatch/package.json +0 -33
  1816. package/examples/starter/node_modules/minimist/.eslintrc +0 -29
  1817. package/examples/starter/node_modules/minimist/.github/FUNDING.yml +0 -12
  1818. package/examples/starter/node_modules/minimist/.nycrc +0 -14
  1819. package/examples/starter/node_modules/minimist/CHANGELOG.md +0 -298
  1820. package/examples/starter/node_modules/minimist/LICENSE +0 -18
  1821. package/examples/starter/node_modules/minimist/README.md +0 -121
  1822. package/examples/starter/node_modules/minimist/example/parse.js +0 -4
  1823. package/examples/starter/node_modules/minimist/index.js +0 -263
  1824. package/examples/starter/node_modules/minimist/package.json +0 -75
  1825. package/examples/starter/node_modules/minimist/test/all_bool.js +0 -34
  1826. package/examples/starter/node_modules/minimist/test/bool.js +0 -177
  1827. package/examples/starter/node_modules/minimist/test/dash.js +0 -43
  1828. package/examples/starter/node_modules/minimist/test/default_bool.js +0 -37
  1829. package/examples/starter/node_modules/minimist/test/dotted.js +0 -24
  1830. package/examples/starter/node_modules/minimist/test/kv_short.js +0 -32
  1831. package/examples/starter/node_modules/minimist/test/long.js +0 -33
  1832. package/examples/starter/node_modules/minimist/test/num.js +0 -38
  1833. package/examples/starter/node_modules/minimist/test/parse.js +0 -209
  1834. package/examples/starter/node_modules/minimist/test/parse_modified.js +0 -11
  1835. package/examples/starter/node_modules/minimist/test/proto.js +0 -64
  1836. package/examples/starter/node_modules/minimist/test/short.js +0 -69
  1837. package/examples/starter/node_modules/minimist/test/stop_early.js +0 -17
  1838. package/examples/starter/node_modules/minimist/test/unknown.js +0 -104
  1839. package/examples/starter/node_modules/minimist/test/whitespace.js +0 -10
  1840. package/examples/starter/node_modules/parent-module/index.js +0 -37
  1841. package/examples/starter/node_modules/parent-module/license +0 -9
  1842. package/examples/starter/node_modules/parent-module/package.json +0 -46
  1843. package/examples/starter/node_modules/parent-module/readme.md +0 -67
  1844. package/examples/starter/node_modules/parse-json/index.js +0 -54
  1845. package/examples/starter/node_modules/parse-json/license +0 -9
  1846. package/examples/starter/node_modules/parse-json/package.json +0 -45
  1847. package/examples/starter/node_modules/parse-json/readme.md +0 -119
  1848. package/examples/starter/node_modules/path-is-absolute/index.js +0 -20
  1849. package/examples/starter/node_modules/path-is-absolute/license +0 -21
  1850. package/examples/starter/node_modules/path-is-absolute/package.json +0 -43
  1851. package/examples/starter/node_modules/path-is-absolute/readme.md +0 -59
  1852. package/examples/starter/node_modules/path-parse/LICENSE +0 -21
  1853. package/examples/starter/node_modules/path-parse/README.md +0 -42
  1854. package/examples/starter/node_modules/path-parse/index.js +0 -75
  1855. package/examples/starter/node_modules/path-parse/package.json +0 -33
  1856. package/examples/starter/node_modules/picomatch/CHANGELOG.md +0 -136
  1857. package/examples/starter/node_modules/picomatch/LICENSE +0 -21
  1858. package/examples/starter/node_modules/picomatch/README.md +0 -708
  1859. package/examples/starter/node_modules/picomatch/index.js +0 -3
  1860. package/examples/starter/node_modules/picomatch/lib/constants.js +0 -179
  1861. package/examples/starter/node_modules/picomatch/lib/parse.js +0 -1091
  1862. package/examples/starter/node_modules/picomatch/lib/picomatch.js +0 -342
  1863. package/examples/starter/node_modules/picomatch/lib/scan.js +0 -391
  1864. package/examples/starter/node_modules/picomatch/lib/utils.js +0 -64
  1865. package/examples/starter/node_modules/picomatch/package.json +0 -81
  1866. package/examples/starter/node_modules/pluralize/LICENSE +0 -21
  1867. package/examples/starter/node_modules/pluralize/Readme.md +0 -100
  1868. package/examples/starter/node_modules/pluralize/package.json +0 -40
  1869. package/examples/starter/node_modules/pluralize/pluralize.js +0 -503
  1870. package/examples/starter/node_modules/rechoir/.travis.yml +0 -24
  1871. package/examples/starter/node_modules/rechoir/CHANGELOG +0 -38
  1872. package/examples/starter/node_modules/rechoir/LICENSE +0 -22
  1873. package/examples/starter/node_modules/rechoir/README.md +0 -42
  1874. package/examples/starter/node_modules/rechoir/index.js +0 -59
  1875. package/examples/starter/node_modules/rechoir/lib/extension.js +0 -11
  1876. package/examples/starter/node_modules/rechoir/lib/normalize.js +0 -15
  1877. package/examples/starter/node_modules/rechoir/lib/register.js +0 -15
  1878. package/examples/starter/node_modules/rechoir/package.json +0 -88
  1879. package/examples/starter/node_modules/resolve/.editorconfig +0 -37
  1880. package/examples/starter/node_modules/resolve/.eslintrc +0 -65
  1881. package/examples/starter/node_modules/resolve/.github/FUNDING.yml +0 -12
  1882. package/examples/starter/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +0 -119
  1883. package/examples/starter/node_modules/resolve/.github/THREAT_MODEL.md +0 -74
  1884. package/examples/starter/node_modules/resolve/LICENSE +0 -21
  1885. package/examples/starter/node_modules/resolve/SECURITY.md +0 -11
  1886. package/examples/starter/node_modules/resolve/async.js +0 -3
  1887. package/examples/starter/node_modules/resolve/bin/resolve +0 -50
  1888. package/examples/starter/node_modules/resolve/example/async.js +0 -5
  1889. package/examples/starter/node_modules/resolve/example/sync.js +0 -3
  1890. package/examples/starter/node_modules/resolve/index.js +0 -6
  1891. package/examples/starter/node_modules/resolve/lib/async.js +0 -333
  1892. package/examples/starter/node_modules/resolve/lib/caller.js +0 -8
  1893. package/examples/starter/node_modules/resolve/lib/core.js +0 -12
  1894. package/examples/starter/node_modules/resolve/lib/core.json +0 -162
  1895. package/examples/starter/node_modules/resolve/lib/homedir.js +0 -24
  1896. package/examples/starter/node_modules/resolve/lib/is-core.js +0 -5
  1897. package/examples/starter/node_modules/resolve/lib/node-modules-paths.js +0 -45
  1898. package/examples/starter/node_modules/resolve/lib/normalize-options.js +0 -10
  1899. package/examples/starter/node_modules/resolve/lib/sync.js +0 -212
  1900. package/examples/starter/node_modules/resolve/package.json +0 -75
  1901. package/examples/starter/node_modules/resolve/readme.markdown +0 -301
  1902. package/examples/starter/node_modules/resolve/sync.js +0 -3
  1903. package/examples/starter/node_modules/resolve/test/core.js +0 -88
  1904. package/examples/starter/node_modules/resolve/test/dotdot/abc/index.js +0 -2
  1905. package/examples/starter/node_modules/resolve/test/dotdot/index.js +0 -1
  1906. package/examples/starter/node_modules/resolve/test/dotdot.js +0 -29
  1907. package/examples/starter/node_modules/resolve/test/faulty_basedir.js +0 -29
  1908. package/examples/starter/node_modules/resolve/test/filter.js +0 -34
  1909. package/examples/starter/node_modules/resolve/test/filter_sync.js +0 -33
  1910. package/examples/starter/node_modules/resolve/test/home_paths.js +0 -127
  1911. package/examples/starter/node_modules/resolve/test/home_paths_sync.js +0 -114
  1912. package/examples/starter/node_modules/resolve/test/mock.js +0 -315
  1913. package/examples/starter/node_modules/resolve/test/mock_sync.js +0 -214
  1914. package/examples/starter/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +0 -1
  1915. package/examples/starter/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +0 -1
  1916. package/examples/starter/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +0 -1
  1917. package/examples/starter/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +0 -3
  1918. package/examples/starter/node_modules/resolve/test/module_dir.js +0 -56
  1919. package/examples/starter/node_modules/resolve/test/node-modules-paths.js +0 -143
  1920. package/examples/starter/node_modules/resolve/test/node_path/x/aaa/index.js +0 -1
  1921. package/examples/starter/node_modules/resolve/test/node_path/x/ccc/index.js +0 -1
  1922. package/examples/starter/node_modules/resolve/test/node_path/y/bbb/index.js +0 -1
  1923. package/examples/starter/node_modules/resolve/test/node_path/y/ccc/index.js +0 -1
  1924. package/examples/starter/node_modules/resolve/test/node_path.js +0 -70
  1925. package/examples/starter/node_modules/resolve/test/nonstring.js +0 -9
  1926. package/examples/starter/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
  1927. package/examples/starter/node_modules/resolve/test/pathfilter.js +0 -75
  1928. package/examples/starter/node_modules/resolve/test/precedence/aaa/index.js +0 -1
  1929. package/examples/starter/node_modules/resolve/test/precedence/aaa/main.js +0 -1
  1930. package/examples/starter/node_modules/resolve/test/precedence/aaa.js +0 -1
  1931. package/examples/starter/node_modules/resolve/test/precedence/bbb/main.js +0 -1
  1932. package/examples/starter/node_modules/resolve/test/precedence/bbb.js +0 -1
  1933. package/examples/starter/node_modules/resolve/test/precedence.js +0 -23
  1934. package/examples/starter/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  1935. package/examples/starter/node_modules/resolve/test/resolver/baz/package.json +0 -4
  1936. package/examples/starter/node_modules/resolve/test/resolver/baz/quux.js +0 -1
  1937. package/examples/starter/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
  1938. package/examples/starter/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
  1939. package/examples/starter/node_modules/resolve/test/resolver/browser_field/package.json +0 -5
  1940. package/examples/starter/node_modules/resolve/test/resolver/cup.coffee +0 -1
  1941. package/examples/starter/node_modules/resolve/test/resolver/dot_main/index.js +0 -1
  1942. package/examples/starter/node_modules/resolve/test/resolver/dot_main/package.json +0 -3
  1943. package/examples/starter/node_modules/resolve/test/resolver/dot_slash_main/index.js +0 -1
  1944. package/examples/starter/node_modules/resolve/test/resolver/dot_slash_main/package.json +0 -3
  1945. package/examples/starter/node_modules/resolve/test/resolver/false_main/index.js +0 -0
  1946. package/examples/starter/node_modules/resolve/test/resolver/false_main/package.json +0 -4
  1947. package/examples/starter/node_modules/resolve/test/resolver/foo.js +0 -1
  1948. package/examples/starter/node_modules/resolve/test/resolver/incorrect_main/index.js +0 -2
  1949. package/examples/starter/node_modules/resolve/test/resolver/incorrect_main/package.json +0 -3
  1950. package/examples/starter/node_modules/resolve/test/resolver/invalid_main/package.json +0 -7
  1951. package/examples/starter/node_modules/resolve/test/resolver/mug.coffee +0 -0
  1952. package/examples/starter/node_modules/resolve/test/resolver/mug.js +0 -0
  1953. package/examples/starter/node_modules/resolve/test/resolver/multirepo/lerna.json +0 -6
  1954. package/examples/starter/node_modules/resolve/test/resolver/multirepo/package.json +0 -20
  1955. package/examples/starter/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +0 -35
  1956. package/examples/starter/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +0 -14
  1957. package/examples/starter/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
  1958. package/examples/starter/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +0 -14
  1959. package/examples/starter/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +0 -26
  1960. package/examples/starter/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +0 -15
  1961. package/examples/starter/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +0 -12
  1962. package/examples/starter/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  1963. package/examples/starter/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  1964. package/examples/starter/node_modules/resolve/test/resolver/quux/foo/index.js +0 -1
  1965. package/examples/starter/node_modules/resolve/test/resolver/same_names/foo/index.js +0 -1
  1966. package/examples/starter/node_modules/resolve/test/resolver/same_names/foo.js +0 -1
  1967. package/examples/starter/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
  1968. package/examples/starter/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
  1969. package/examples/starter/node_modules/resolve/test/resolver/symlinked/package/bar.js +0 -1
  1970. package/examples/starter/node_modules/resolve/test/resolver/symlinked/package/package.json +0 -3
  1971. package/examples/starter/node_modules/resolve/test/resolver/without_basedir/main.js +0 -5
  1972. package/examples/starter/node_modules/resolve/test/resolver.js +0 -597
  1973. package/examples/starter/node_modules/resolve/test/resolver_sync.js +0 -730
  1974. package/examples/starter/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
  1975. package/examples/starter/node_modules/resolve/test/shadowed_core.js +0 -54
  1976. package/examples/starter/node_modules/resolve/test/subdirs.js +0 -13
  1977. package/examples/starter/node_modules/resolve/test/symlinks.js +0 -176
  1978. package/examples/starter/node_modules/resolve-from/index.js +0 -47
  1979. package/examples/starter/node_modules/resolve-from/license +0 -9
  1980. package/examples/starter/node_modules/resolve-from/package.json +0 -34
  1981. package/examples/starter/node_modules/resolve-from/readme.md +0 -72
  1982. package/examples/starter/node_modules/shelljs/CHANGELOG.md +0 -942
  1983. package/examples/starter/node_modules/shelljs/LICENSE +0 -26
  1984. package/examples/starter/node_modules/shelljs/README.md +0 -835
  1985. package/examples/starter/node_modules/shelljs/bin/shjs +0 -48
  1986. package/examples/starter/node_modules/shelljs/commands.js +0 -29
  1987. package/examples/starter/node_modules/shelljs/global.js +0 -12
  1988. package/examples/starter/node_modules/shelljs/make.js +0 -57
  1989. package/examples/starter/node_modules/shelljs/package.json +0 -79
  1990. package/examples/starter/node_modules/shelljs/plugin.js +0 -16
  1991. package/examples/starter/node_modules/shelljs/shell.js +0 -156
  1992. package/examples/starter/node_modules/shelljs/src/cat.js +0 -76
  1993. package/examples/starter/node_modules/shelljs/src/cd.js +0 -39
  1994. package/examples/starter/node_modules/shelljs/src/chmod.js +0 -216
  1995. package/examples/starter/node_modules/shelljs/src/common.js +0 -468
  1996. package/examples/starter/node_modules/shelljs/src/cp.js +0 -304
  1997. package/examples/starter/node_modules/shelljs/src/dirs.js +0 -212
  1998. package/examples/starter/node_modules/shelljs/src/echo.js +0 -63
  1999. package/examples/starter/node_modules/shelljs/src/error.js +0 -15
  2000. package/examples/starter/node_modules/shelljs/src/exec-child.js +0 -39
  2001. package/examples/starter/node_modules/shelljs/src/exec.js +0 -226
  2002. package/examples/starter/node_modules/shelljs/src/find.js +0 -61
  2003. package/examples/starter/node_modules/shelljs/src/grep.js +0 -73
  2004. package/examples/starter/node_modules/shelljs/src/head.js +0 -107
  2005. package/examples/starter/node_modules/shelljs/src/ln.js +0 -73
  2006. package/examples/starter/node_modules/shelljs/src/ls.js +0 -141
  2007. package/examples/starter/node_modules/shelljs/src/mkdir.js +0 -100
  2008. package/examples/starter/node_modules/shelljs/src/mv.js +0 -118
  2009. package/examples/starter/node_modules/shelljs/src/popd.js +0 -1
  2010. package/examples/starter/node_modules/shelljs/src/pushd.js +0 -1
  2011. package/examples/starter/node_modules/shelljs/src/pwd.js +0 -16
  2012. package/examples/starter/node_modules/shelljs/src/rm.js +0 -201
  2013. package/examples/starter/node_modules/shelljs/src/sed.js +0 -87
  2014. package/examples/starter/node_modules/shelljs/src/set.js +0 -56
  2015. package/examples/starter/node_modules/shelljs/src/sort.js +0 -97
  2016. package/examples/starter/node_modules/shelljs/src/tail.js +0 -80
  2017. package/examples/starter/node_modules/shelljs/src/tempdir.js +0 -75
  2018. package/examples/starter/node_modules/shelljs/src/test.js +0 -85
  2019. package/examples/starter/node_modules/shelljs/src/to.js +0 -37
  2020. package/examples/starter/node_modules/shelljs/src/toEnd.js +0 -36
  2021. package/examples/starter/node_modules/shelljs/src/touch.js +0 -111
  2022. package/examples/starter/node_modules/shelljs/src/uniq.js +0 -92
  2023. package/examples/starter/node_modules/shelljs/src/which.js +0 -118
  2024. package/examples/starter/node_modules/shelljs.exec/.editorconfig +0 -10
  2025. package/examples/starter/node_modules/shelljs.exec/.eslintrc.json +0 -37
  2026. package/examples/starter/node_modules/shelljs.exec/.travis.yml +0 -9
  2027. package/examples/starter/node_modules/shelljs.exec/LICENSE.md +0 -24
  2028. package/examples/starter/node_modules/shelljs.exec/README.md +0 -115
  2029. package/examples/starter/node_modules/shelljs.exec/appveyor.yml +0 -17
  2030. package/examples/starter/node_modules/shelljs.exec/benchmark-results-raw.txt +0 -74
  2031. package/examples/starter/node_modules/shelljs.exec/images/fast.png +0 -0
  2032. package/examples/starter/node_modules/shelljs.exec/images/linux.png +0 -0
  2033. package/examples/starter/node_modules/shelljs.exec/images/slow.png +0 -0
  2034. package/examples/starter/node_modules/shelljs.exec/images/table-linux.odt +0 -0
  2035. package/examples/starter/node_modules/shelljs.exec/images/table-windows.odt +0 -0
  2036. package/examples/starter/node_modules/shelljs.exec/images/windows.png +0 -0
  2037. package/examples/starter/node_modules/shelljs.exec/index.js +0 -35
  2038. package/examples/starter/node_modules/shelljs.exec/js/normaliseOptions/defaultOptions.js +0 -6
  2039. package/examples/starter/node_modules/shelljs.exec/js/normaliseOptions/index.js +0 -34
  2040. package/examples/starter/node_modules/shelljs.exec/js/normaliseOptions/index.spec.js +0 -68
  2041. package/examples/starter/node_modules/shelljs.exec/package.json +0 -58
  2042. package/examples/starter/node_modules/shelljs.exec/test/_js/testImports.js +0 -37
  2043. package/examples/starter/node_modules/shelljs.exec/test/benchmarks/benchmarks.spec.js +0 -288
  2044. package/examples/starter/node_modules/shelljs.exec/test/benchmarks/file1 +0 -1
  2045. package/examples/starter/node_modules/shelljs.exec/test/benchmarks/file2 +0 -1
  2046. package/examples/starter/node_modules/shelljs.exec/test/mocha.opts +0 -6
  2047. package/examples/starter/node_modules/shelljs.exec/test/shelljs.exec/shelljs.exec.spec.js +0 -176
  2048. package/examples/starter/node_modules/supports-color/browser.js +0 -5
  2049. package/examples/starter/node_modules/supports-color/index.js +0 -135
  2050. package/examples/starter/node_modules/supports-color/license +0 -9
  2051. package/examples/starter/node_modules/supports-color/package.json +0 -53
  2052. package/examples/starter/node_modules/supports-color/readme.md +0 -76
  2053. package/examples/starter/node_modules/supports-preserve-symlinks-flag/.eslintrc +0 -14
  2054. package/examples/starter/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +0 -12
  2055. package/examples/starter/node_modules/supports-preserve-symlinks-flag/.nycrc +0 -9
  2056. package/examples/starter/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +0 -22
  2057. package/examples/starter/node_modules/supports-preserve-symlinks-flag/LICENSE +0 -21
  2058. package/examples/starter/node_modules/supports-preserve-symlinks-flag/README.md +0 -42
  2059. package/examples/starter/node_modules/supports-preserve-symlinks-flag/browser.js +0 -3
  2060. package/examples/starter/node_modules/supports-preserve-symlinks-flag/index.js +0 -9
  2061. package/examples/starter/node_modules/supports-preserve-symlinks-flag/package.json +0 -70
  2062. package/examples/starter/node_modules/supports-preserve-symlinks-flag/test/index.js +0 -29
  2063. package/examples/starter/node_modules/to-regex-range/LICENSE +0 -21
  2064. package/examples/starter/node_modules/to-regex-range/README.md +0 -305
  2065. package/examples/starter/node_modules/to-regex-range/index.js +0 -288
  2066. package/examples/starter/node_modules/to-regex-range/package.json +0 -88
  2067. package/registry.d.ts +0 -11
@@ -1,3777 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.discriminatedUnion = exports.date = exports.boolean = exports.bigint = exports.array = exports.any = exports.coerce = exports.ZodFirstPartyTypeKind = exports.late = exports.ZodSchema = exports.Schema = exports.ZodReadonly = exports.ZodPipeline = exports.ZodBranded = exports.BRAND = exports.ZodNaN = exports.ZodCatch = exports.ZodDefault = exports.ZodNullable = exports.ZodOptional = exports.ZodTransformer = exports.ZodEffects = exports.ZodPromise = exports.ZodNativeEnum = exports.ZodEnum = exports.ZodLiteral = exports.ZodLazy = exports.ZodFunction = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodUnion = exports.ZodObject = exports.ZodArray = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodDate = exports.ZodBoolean = exports.ZodBigInt = exports.ZodNumber = exports.ZodString = exports.ZodType = void 0;
4
- exports.NEVER = exports.void = exports.unknown = exports.union = exports.undefined = exports.tuple = exports.transformer = exports.symbol = exports.string = exports.strictObject = exports.set = exports.record = exports.promise = exports.preprocess = exports.pipeline = exports.ostring = exports.optional = exports.onumber = exports.oboolean = exports.object = exports.number = exports.nullable = exports.null = exports.never = exports.nativeEnum = exports.nan = exports.map = exports.literal = exports.lazy = exports.intersection = exports.instanceof = exports.function = exports.enum = exports.effect = void 0;
5
- exports.datetimeRegex = datetimeRegex;
6
- exports.custom = custom;
7
- const ZodError_js_1 = require("./ZodError.cjs");
8
- const errors_js_1 = require("./errors.cjs");
9
- const errorUtil_js_1 = require("./helpers/errorUtil.cjs");
10
- const parseUtil_js_1 = require("./helpers/parseUtil.cjs");
11
- const util_js_1 = require("./helpers/util.cjs");
12
- class ParseInputLazyPath {
13
- constructor(parent, value, path, key) {
14
- this._cachedPath = [];
15
- this.parent = parent;
16
- this.data = value;
17
- this._path = path;
18
- this._key = key;
19
- }
20
- get path() {
21
- if (!this._cachedPath.length) {
22
- if (Array.isArray(this._key)) {
23
- this._cachedPath.push(...this._path, ...this._key);
24
- }
25
- else {
26
- this._cachedPath.push(...this._path, this._key);
27
- }
28
- }
29
- return this._cachedPath;
30
- }
31
- }
32
- const handleResult = (ctx, result) => {
33
- if ((0, parseUtil_js_1.isValid)(result)) {
34
- return { success: true, data: result.value };
35
- }
36
- else {
37
- if (!ctx.common.issues.length) {
38
- throw new Error("Validation failed but no issues detected.");
39
- }
40
- return {
41
- success: false,
42
- get error() {
43
- if (this._error)
44
- return this._error;
45
- const error = new ZodError_js_1.ZodError(ctx.common.issues);
46
- this._error = error;
47
- return this._error;
48
- },
49
- };
50
- }
51
- };
52
- function processCreateParams(params) {
53
- if (!params)
54
- return {};
55
- const { errorMap, invalid_type_error, required_error, description } = params;
56
- if (errorMap && (invalid_type_error || required_error)) {
57
- throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
58
- }
59
- if (errorMap)
60
- return { errorMap: errorMap, description };
61
- const customMap = (iss, ctx) => {
62
- const { message } = params;
63
- if (iss.code === "invalid_enum_value") {
64
- return { message: message ?? ctx.defaultError };
65
- }
66
- if (typeof ctx.data === "undefined") {
67
- return { message: message ?? required_error ?? ctx.defaultError };
68
- }
69
- if (iss.code !== "invalid_type")
70
- return { message: ctx.defaultError };
71
- return { message: message ?? invalid_type_error ?? ctx.defaultError };
72
- };
73
- return { errorMap: customMap, description };
74
- }
75
- class ZodType {
76
- get description() {
77
- return this._def.description;
78
- }
79
- _getType(input) {
80
- return (0, util_js_1.getParsedType)(input.data);
81
- }
82
- _getOrReturnCtx(input, ctx) {
83
- return (ctx || {
84
- common: input.parent.common,
85
- data: input.data,
86
- parsedType: (0, util_js_1.getParsedType)(input.data),
87
- schemaErrorMap: this._def.errorMap,
88
- path: input.path,
89
- parent: input.parent,
90
- });
91
- }
92
- _processInputParams(input) {
93
- return {
94
- status: new parseUtil_js_1.ParseStatus(),
95
- ctx: {
96
- common: input.parent.common,
97
- data: input.data,
98
- parsedType: (0, util_js_1.getParsedType)(input.data),
99
- schemaErrorMap: this._def.errorMap,
100
- path: input.path,
101
- parent: input.parent,
102
- },
103
- };
104
- }
105
- _parseSync(input) {
106
- const result = this._parse(input);
107
- if ((0, parseUtil_js_1.isAsync)(result)) {
108
- throw new Error("Synchronous parse encountered promise.");
109
- }
110
- return result;
111
- }
112
- _parseAsync(input) {
113
- const result = this._parse(input);
114
- return Promise.resolve(result);
115
- }
116
- parse(data, params) {
117
- const result = this.safeParse(data, params);
118
- if (result.success)
119
- return result.data;
120
- throw result.error;
121
- }
122
- safeParse(data, params) {
123
- const ctx = {
124
- common: {
125
- issues: [],
126
- async: params?.async ?? false,
127
- contextualErrorMap: params?.errorMap,
128
- },
129
- path: params?.path || [],
130
- schemaErrorMap: this._def.errorMap,
131
- parent: null,
132
- data,
133
- parsedType: (0, util_js_1.getParsedType)(data),
134
- };
135
- const result = this._parseSync({ data, path: ctx.path, parent: ctx });
136
- return handleResult(ctx, result);
137
- }
138
- "~validate"(data) {
139
- const ctx = {
140
- common: {
141
- issues: [],
142
- async: !!this["~standard"].async,
143
- },
144
- path: [],
145
- schemaErrorMap: this._def.errorMap,
146
- parent: null,
147
- data,
148
- parsedType: (0, util_js_1.getParsedType)(data),
149
- };
150
- if (!this["~standard"].async) {
151
- try {
152
- const result = this._parseSync({ data, path: [], parent: ctx });
153
- return (0, parseUtil_js_1.isValid)(result)
154
- ? {
155
- value: result.value,
156
- }
157
- : {
158
- issues: ctx.common.issues,
159
- };
160
- }
161
- catch (err) {
162
- if (err?.message?.toLowerCase()?.includes("encountered")) {
163
- this["~standard"].async = true;
164
- }
165
- ctx.common = {
166
- issues: [],
167
- async: true,
168
- };
169
- }
170
- }
171
- return this._parseAsync({ data, path: [], parent: ctx }).then((result) => (0, parseUtil_js_1.isValid)(result)
172
- ? {
173
- value: result.value,
174
- }
175
- : {
176
- issues: ctx.common.issues,
177
- });
178
- }
179
- async parseAsync(data, params) {
180
- const result = await this.safeParseAsync(data, params);
181
- if (result.success)
182
- return result.data;
183
- throw result.error;
184
- }
185
- async safeParseAsync(data, params) {
186
- const ctx = {
187
- common: {
188
- issues: [],
189
- contextualErrorMap: params?.errorMap,
190
- async: true,
191
- },
192
- path: params?.path || [],
193
- schemaErrorMap: this._def.errorMap,
194
- parent: null,
195
- data,
196
- parsedType: (0, util_js_1.getParsedType)(data),
197
- };
198
- const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });
199
- const result = await ((0, parseUtil_js_1.isAsync)(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));
200
- return handleResult(ctx, result);
201
- }
202
- refine(check, message) {
203
- const getIssueProperties = (val) => {
204
- if (typeof message === "string" || typeof message === "undefined") {
205
- return { message };
206
- }
207
- else if (typeof message === "function") {
208
- return message(val);
209
- }
210
- else {
211
- return message;
212
- }
213
- };
214
- return this._refinement((val, ctx) => {
215
- const result = check(val);
216
- const setError = () => ctx.addIssue({
217
- code: ZodError_js_1.ZodIssueCode.custom,
218
- ...getIssueProperties(val),
219
- });
220
- if (typeof Promise !== "undefined" && result instanceof Promise) {
221
- return result.then((data) => {
222
- if (!data) {
223
- setError();
224
- return false;
225
- }
226
- else {
227
- return true;
228
- }
229
- });
230
- }
231
- if (!result) {
232
- setError();
233
- return false;
234
- }
235
- else {
236
- return true;
237
- }
238
- });
239
- }
240
- refinement(check, refinementData) {
241
- return this._refinement((val, ctx) => {
242
- if (!check(val)) {
243
- ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData);
244
- return false;
245
- }
246
- else {
247
- return true;
248
- }
249
- });
250
- }
251
- _refinement(refinement) {
252
- return new ZodEffects({
253
- schema: this,
254
- typeName: ZodFirstPartyTypeKind.ZodEffects,
255
- effect: { type: "refinement", refinement },
256
- });
257
- }
258
- superRefine(refinement) {
259
- return this._refinement(refinement);
260
- }
261
- constructor(def) {
262
- /** Alias of safeParseAsync */
263
- this.spa = this.safeParseAsync;
264
- this._def = def;
265
- this.parse = this.parse.bind(this);
266
- this.safeParse = this.safeParse.bind(this);
267
- this.parseAsync = this.parseAsync.bind(this);
268
- this.safeParseAsync = this.safeParseAsync.bind(this);
269
- this.spa = this.spa.bind(this);
270
- this.refine = this.refine.bind(this);
271
- this.refinement = this.refinement.bind(this);
272
- this.superRefine = this.superRefine.bind(this);
273
- this.optional = this.optional.bind(this);
274
- this.nullable = this.nullable.bind(this);
275
- this.nullish = this.nullish.bind(this);
276
- this.array = this.array.bind(this);
277
- this.promise = this.promise.bind(this);
278
- this.or = this.or.bind(this);
279
- this.and = this.and.bind(this);
280
- this.transform = this.transform.bind(this);
281
- this.brand = this.brand.bind(this);
282
- this.default = this.default.bind(this);
283
- this.catch = this.catch.bind(this);
284
- this.describe = this.describe.bind(this);
285
- this.pipe = this.pipe.bind(this);
286
- this.readonly = this.readonly.bind(this);
287
- this.isNullable = this.isNullable.bind(this);
288
- this.isOptional = this.isOptional.bind(this);
289
- this["~standard"] = {
290
- version: 1,
291
- vendor: "zod",
292
- validate: (data) => this["~validate"](data),
293
- };
294
- }
295
- optional() {
296
- return ZodOptional.create(this, this._def);
297
- }
298
- nullable() {
299
- return ZodNullable.create(this, this._def);
300
- }
301
- nullish() {
302
- return this.nullable().optional();
303
- }
304
- array() {
305
- return ZodArray.create(this);
306
- }
307
- promise() {
308
- return ZodPromise.create(this, this._def);
309
- }
310
- or(option) {
311
- return ZodUnion.create([this, option], this._def);
312
- }
313
- and(incoming) {
314
- return ZodIntersection.create(this, incoming, this._def);
315
- }
316
- transform(transform) {
317
- return new ZodEffects({
318
- ...processCreateParams(this._def),
319
- schema: this,
320
- typeName: ZodFirstPartyTypeKind.ZodEffects,
321
- effect: { type: "transform", transform },
322
- });
323
- }
324
- default(def) {
325
- const defaultValueFunc = typeof def === "function" ? def : () => def;
326
- return new ZodDefault({
327
- ...processCreateParams(this._def),
328
- innerType: this,
329
- defaultValue: defaultValueFunc,
330
- typeName: ZodFirstPartyTypeKind.ZodDefault,
331
- });
332
- }
333
- brand() {
334
- return new ZodBranded({
335
- typeName: ZodFirstPartyTypeKind.ZodBranded,
336
- type: this,
337
- ...processCreateParams(this._def),
338
- });
339
- }
340
- catch(def) {
341
- const catchValueFunc = typeof def === "function" ? def : () => def;
342
- return new ZodCatch({
343
- ...processCreateParams(this._def),
344
- innerType: this,
345
- catchValue: catchValueFunc,
346
- typeName: ZodFirstPartyTypeKind.ZodCatch,
347
- });
348
- }
349
- describe(description) {
350
- const This = this.constructor;
351
- return new This({
352
- ...this._def,
353
- description,
354
- });
355
- }
356
- pipe(target) {
357
- return ZodPipeline.create(this, target);
358
- }
359
- readonly() {
360
- return ZodReadonly.create(this);
361
- }
362
- isOptional() {
363
- return this.safeParse(undefined).success;
364
- }
365
- isNullable() {
366
- return this.safeParse(null).success;
367
- }
368
- }
369
- exports.ZodType = ZodType;
370
- exports.Schema = ZodType;
371
- exports.ZodSchema = ZodType;
372
- const cuidRegex = /^c[^\s-]{8,}$/i;
373
- const cuid2Regex = /^[0-9a-z]+$/;
374
- const ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
375
- // const uuidRegex =
376
- // /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;
377
- const uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;
378
- const nanoidRegex = /^[a-z0-9_-]{21}$/i;
379
- const jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
380
- const durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
381
- // from https://stackoverflow.com/a/46181/1550155
382
- // old version: too slow, didn't support unicode
383
- // const emailRegex = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;
384
- //old email regex
385
- // const emailRegex = /^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@((?!-)([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{1,})[^-<>()[\].,;:\s@"]$/i;
386
- // eslint-disable-next-line
387
- // const emailRegex =
388
- // /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/;
389
- // const emailRegex =
390
- // /^[a-zA-Z0-9\.\!\#\$\%\&\'\*\+\/\=\?\^\_\`\{\|\}\~\-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
391
- // const emailRegex =
392
- // /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
393
- const emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
394
- // const emailRegex =
395
- // /^[a-z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\.[a-z0-9\-]+)*$/i;
396
- // from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression
397
- const _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
398
- let emojiRegex;
399
- // faster, simpler, safer
400
- const ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
401
- const ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;
402
- // const ipv6Regex =
403
- // /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;
404
- const ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;
405
- const ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
406
- // https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript
407
- const base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
408
- // https://base64.guru/standards/base64url
409
- const base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;
410
- // simple
411
- // const dateRegexSource = `\\d{4}-\\d{2}-\\d{2}`;
412
- // no leap year validation
413
- // const dateRegexSource = `\\d{4}-((0[13578]|10|12)-31|(0[13-9]|1[0-2])-30|(0[1-9]|1[0-2])-(0[1-9]|1\\d|2\\d))`;
414
- // with leap year validation
415
- const dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
416
- const dateRegex = new RegExp(`^${dateRegexSource}$`);
417
- function timeRegexSource(args) {
418
- let secondsRegexSource = `[0-5]\\d`;
419
- if (args.precision) {
420
- secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
421
- }
422
- else if (args.precision == null) {
423
- secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
424
- }
425
- const secondsQuantifier = args.precision ? "+" : "?"; // require seconds if precision is nonzero
426
- return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
427
- }
428
- function timeRegex(args) {
429
- return new RegExp(`^${timeRegexSource(args)}$`);
430
- }
431
- // Adapted from https://stackoverflow.com/a/3143231
432
- function datetimeRegex(args) {
433
- let regex = `${dateRegexSource}T${timeRegexSource(args)}`;
434
- const opts = [];
435
- opts.push(args.local ? `Z?` : `Z`);
436
- if (args.offset)
437
- opts.push(`([+-]\\d{2}:?\\d{2})`);
438
- regex = `${regex}(${opts.join("|")})`;
439
- return new RegExp(`^${regex}$`);
440
- }
441
- function isValidIP(ip, version) {
442
- if ((version === "v4" || !version) && ipv4Regex.test(ip)) {
443
- return true;
444
- }
445
- if ((version === "v6" || !version) && ipv6Regex.test(ip)) {
446
- return true;
447
- }
448
- return false;
449
- }
450
- function isValidJWT(jwt, alg) {
451
- if (!jwtRegex.test(jwt))
452
- return false;
453
- try {
454
- const [header] = jwt.split(".");
455
- if (!header)
456
- return false;
457
- // Convert base64url to base64
458
- const base64 = header
459
- .replace(/-/g, "+")
460
- .replace(/_/g, "/")
461
- .padEnd(header.length + ((4 - (header.length % 4)) % 4), "=");
462
- // @ts-ignore
463
- const decoded = JSON.parse(atob(base64));
464
- if (typeof decoded !== "object" || decoded === null)
465
- return false;
466
- if ("typ" in decoded && decoded?.typ !== "JWT")
467
- return false;
468
- if (!decoded.alg)
469
- return false;
470
- if (alg && decoded.alg !== alg)
471
- return false;
472
- return true;
473
- }
474
- catch {
475
- return false;
476
- }
477
- }
478
- function isValidCidr(ip, version) {
479
- if ((version === "v4" || !version) && ipv4CidrRegex.test(ip)) {
480
- return true;
481
- }
482
- if ((version === "v6" || !version) && ipv6CidrRegex.test(ip)) {
483
- return true;
484
- }
485
- return false;
486
- }
487
- class ZodString extends ZodType {
488
- _parse(input) {
489
- if (this._def.coerce) {
490
- input.data = String(input.data);
491
- }
492
- const parsedType = this._getType(input);
493
- if (parsedType !== util_js_1.ZodParsedType.string) {
494
- const ctx = this._getOrReturnCtx(input);
495
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
496
- code: ZodError_js_1.ZodIssueCode.invalid_type,
497
- expected: util_js_1.ZodParsedType.string,
498
- received: ctx.parsedType,
499
- });
500
- return parseUtil_js_1.INVALID;
501
- }
502
- const status = new parseUtil_js_1.ParseStatus();
503
- let ctx = undefined;
504
- for (const check of this._def.checks) {
505
- if (check.kind === "min") {
506
- if (input.data.length < check.value) {
507
- ctx = this._getOrReturnCtx(input, ctx);
508
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
509
- code: ZodError_js_1.ZodIssueCode.too_small,
510
- minimum: check.value,
511
- type: "string",
512
- inclusive: true,
513
- exact: false,
514
- message: check.message,
515
- });
516
- status.dirty();
517
- }
518
- }
519
- else if (check.kind === "max") {
520
- if (input.data.length > check.value) {
521
- ctx = this._getOrReturnCtx(input, ctx);
522
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
523
- code: ZodError_js_1.ZodIssueCode.too_big,
524
- maximum: check.value,
525
- type: "string",
526
- inclusive: true,
527
- exact: false,
528
- message: check.message,
529
- });
530
- status.dirty();
531
- }
532
- }
533
- else if (check.kind === "length") {
534
- const tooBig = input.data.length > check.value;
535
- const tooSmall = input.data.length < check.value;
536
- if (tooBig || tooSmall) {
537
- ctx = this._getOrReturnCtx(input, ctx);
538
- if (tooBig) {
539
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
540
- code: ZodError_js_1.ZodIssueCode.too_big,
541
- maximum: check.value,
542
- type: "string",
543
- inclusive: true,
544
- exact: true,
545
- message: check.message,
546
- });
547
- }
548
- else if (tooSmall) {
549
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
550
- code: ZodError_js_1.ZodIssueCode.too_small,
551
- minimum: check.value,
552
- type: "string",
553
- inclusive: true,
554
- exact: true,
555
- message: check.message,
556
- });
557
- }
558
- status.dirty();
559
- }
560
- }
561
- else if (check.kind === "email") {
562
- if (!emailRegex.test(input.data)) {
563
- ctx = this._getOrReturnCtx(input, ctx);
564
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
565
- validation: "email",
566
- code: ZodError_js_1.ZodIssueCode.invalid_string,
567
- message: check.message,
568
- });
569
- status.dirty();
570
- }
571
- }
572
- else if (check.kind === "emoji") {
573
- if (!emojiRegex) {
574
- emojiRegex = new RegExp(_emojiRegex, "u");
575
- }
576
- if (!emojiRegex.test(input.data)) {
577
- ctx = this._getOrReturnCtx(input, ctx);
578
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
579
- validation: "emoji",
580
- code: ZodError_js_1.ZodIssueCode.invalid_string,
581
- message: check.message,
582
- });
583
- status.dirty();
584
- }
585
- }
586
- else if (check.kind === "uuid") {
587
- if (!uuidRegex.test(input.data)) {
588
- ctx = this._getOrReturnCtx(input, ctx);
589
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
590
- validation: "uuid",
591
- code: ZodError_js_1.ZodIssueCode.invalid_string,
592
- message: check.message,
593
- });
594
- status.dirty();
595
- }
596
- }
597
- else if (check.kind === "nanoid") {
598
- if (!nanoidRegex.test(input.data)) {
599
- ctx = this._getOrReturnCtx(input, ctx);
600
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
601
- validation: "nanoid",
602
- code: ZodError_js_1.ZodIssueCode.invalid_string,
603
- message: check.message,
604
- });
605
- status.dirty();
606
- }
607
- }
608
- else if (check.kind === "cuid") {
609
- if (!cuidRegex.test(input.data)) {
610
- ctx = this._getOrReturnCtx(input, ctx);
611
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
612
- validation: "cuid",
613
- code: ZodError_js_1.ZodIssueCode.invalid_string,
614
- message: check.message,
615
- });
616
- status.dirty();
617
- }
618
- }
619
- else if (check.kind === "cuid2") {
620
- if (!cuid2Regex.test(input.data)) {
621
- ctx = this._getOrReturnCtx(input, ctx);
622
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
623
- validation: "cuid2",
624
- code: ZodError_js_1.ZodIssueCode.invalid_string,
625
- message: check.message,
626
- });
627
- status.dirty();
628
- }
629
- }
630
- else if (check.kind === "ulid") {
631
- if (!ulidRegex.test(input.data)) {
632
- ctx = this._getOrReturnCtx(input, ctx);
633
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
634
- validation: "ulid",
635
- code: ZodError_js_1.ZodIssueCode.invalid_string,
636
- message: check.message,
637
- });
638
- status.dirty();
639
- }
640
- }
641
- else if (check.kind === "url") {
642
- try {
643
- // @ts-ignore
644
- new URL(input.data);
645
- }
646
- catch {
647
- ctx = this._getOrReturnCtx(input, ctx);
648
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
649
- validation: "url",
650
- code: ZodError_js_1.ZodIssueCode.invalid_string,
651
- message: check.message,
652
- });
653
- status.dirty();
654
- }
655
- }
656
- else if (check.kind === "regex") {
657
- check.regex.lastIndex = 0;
658
- const testResult = check.regex.test(input.data);
659
- if (!testResult) {
660
- ctx = this._getOrReturnCtx(input, ctx);
661
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
662
- validation: "regex",
663
- code: ZodError_js_1.ZodIssueCode.invalid_string,
664
- message: check.message,
665
- });
666
- status.dirty();
667
- }
668
- }
669
- else if (check.kind === "trim") {
670
- input.data = input.data.trim();
671
- }
672
- else if (check.kind === "includes") {
673
- if (!input.data.includes(check.value, check.position)) {
674
- ctx = this._getOrReturnCtx(input, ctx);
675
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
676
- code: ZodError_js_1.ZodIssueCode.invalid_string,
677
- validation: { includes: check.value, position: check.position },
678
- message: check.message,
679
- });
680
- status.dirty();
681
- }
682
- }
683
- else if (check.kind === "toLowerCase") {
684
- input.data = input.data.toLowerCase();
685
- }
686
- else if (check.kind === "toUpperCase") {
687
- input.data = input.data.toUpperCase();
688
- }
689
- else if (check.kind === "startsWith") {
690
- if (!input.data.startsWith(check.value)) {
691
- ctx = this._getOrReturnCtx(input, ctx);
692
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
693
- code: ZodError_js_1.ZodIssueCode.invalid_string,
694
- validation: { startsWith: check.value },
695
- message: check.message,
696
- });
697
- status.dirty();
698
- }
699
- }
700
- else if (check.kind === "endsWith") {
701
- if (!input.data.endsWith(check.value)) {
702
- ctx = this._getOrReturnCtx(input, ctx);
703
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
704
- code: ZodError_js_1.ZodIssueCode.invalid_string,
705
- validation: { endsWith: check.value },
706
- message: check.message,
707
- });
708
- status.dirty();
709
- }
710
- }
711
- else if (check.kind === "datetime") {
712
- const regex = datetimeRegex(check);
713
- if (!regex.test(input.data)) {
714
- ctx = this._getOrReturnCtx(input, ctx);
715
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
716
- code: ZodError_js_1.ZodIssueCode.invalid_string,
717
- validation: "datetime",
718
- message: check.message,
719
- });
720
- status.dirty();
721
- }
722
- }
723
- else if (check.kind === "date") {
724
- const regex = dateRegex;
725
- if (!regex.test(input.data)) {
726
- ctx = this._getOrReturnCtx(input, ctx);
727
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
728
- code: ZodError_js_1.ZodIssueCode.invalid_string,
729
- validation: "date",
730
- message: check.message,
731
- });
732
- status.dirty();
733
- }
734
- }
735
- else if (check.kind === "time") {
736
- const regex = timeRegex(check);
737
- if (!regex.test(input.data)) {
738
- ctx = this._getOrReturnCtx(input, ctx);
739
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
740
- code: ZodError_js_1.ZodIssueCode.invalid_string,
741
- validation: "time",
742
- message: check.message,
743
- });
744
- status.dirty();
745
- }
746
- }
747
- else if (check.kind === "duration") {
748
- if (!durationRegex.test(input.data)) {
749
- ctx = this._getOrReturnCtx(input, ctx);
750
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
751
- validation: "duration",
752
- code: ZodError_js_1.ZodIssueCode.invalid_string,
753
- message: check.message,
754
- });
755
- status.dirty();
756
- }
757
- }
758
- else if (check.kind === "ip") {
759
- if (!isValidIP(input.data, check.version)) {
760
- ctx = this._getOrReturnCtx(input, ctx);
761
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
762
- validation: "ip",
763
- code: ZodError_js_1.ZodIssueCode.invalid_string,
764
- message: check.message,
765
- });
766
- status.dirty();
767
- }
768
- }
769
- else if (check.kind === "jwt") {
770
- if (!isValidJWT(input.data, check.alg)) {
771
- ctx = this._getOrReturnCtx(input, ctx);
772
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
773
- validation: "jwt",
774
- code: ZodError_js_1.ZodIssueCode.invalid_string,
775
- message: check.message,
776
- });
777
- status.dirty();
778
- }
779
- }
780
- else if (check.kind === "cidr") {
781
- if (!isValidCidr(input.data, check.version)) {
782
- ctx = this._getOrReturnCtx(input, ctx);
783
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
784
- validation: "cidr",
785
- code: ZodError_js_1.ZodIssueCode.invalid_string,
786
- message: check.message,
787
- });
788
- status.dirty();
789
- }
790
- }
791
- else if (check.kind === "base64") {
792
- if (!base64Regex.test(input.data)) {
793
- ctx = this._getOrReturnCtx(input, ctx);
794
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
795
- validation: "base64",
796
- code: ZodError_js_1.ZodIssueCode.invalid_string,
797
- message: check.message,
798
- });
799
- status.dirty();
800
- }
801
- }
802
- else if (check.kind === "base64url") {
803
- if (!base64urlRegex.test(input.data)) {
804
- ctx = this._getOrReturnCtx(input, ctx);
805
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
806
- validation: "base64url",
807
- code: ZodError_js_1.ZodIssueCode.invalid_string,
808
- message: check.message,
809
- });
810
- status.dirty();
811
- }
812
- }
813
- else {
814
- util_js_1.util.assertNever(check);
815
- }
816
- }
817
- return { status: status.value, value: input.data };
818
- }
819
- _regex(regex, validation, message) {
820
- return this.refinement((data) => regex.test(data), {
821
- validation,
822
- code: ZodError_js_1.ZodIssueCode.invalid_string,
823
- ...errorUtil_js_1.errorUtil.errToObj(message),
824
- });
825
- }
826
- _addCheck(check) {
827
- return new ZodString({
828
- ...this._def,
829
- checks: [...this._def.checks, check],
830
- });
831
- }
832
- email(message) {
833
- return this._addCheck({ kind: "email", ...errorUtil_js_1.errorUtil.errToObj(message) });
834
- }
835
- url(message) {
836
- return this._addCheck({ kind: "url", ...errorUtil_js_1.errorUtil.errToObj(message) });
837
- }
838
- emoji(message) {
839
- return this._addCheck({ kind: "emoji", ...errorUtil_js_1.errorUtil.errToObj(message) });
840
- }
841
- uuid(message) {
842
- return this._addCheck({ kind: "uuid", ...errorUtil_js_1.errorUtil.errToObj(message) });
843
- }
844
- nanoid(message) {
845
- return this._addCheck({ kind: "nanoid", ...errorUtil_js_1.errorUtil.errToObj(message) });
846
- }
847
- cuid(message) {
848
- return this._addCheck({ kind: "cuid", ...errorUtil_js_1.errorUtil.errToObj(message) });
849
- }
850
- cuid2(message) {
851
- return this._addCheck({ kind: "cuid2", ...errorUtil_js_1.errorUtil.errToObj(message) });
852
- }
853
- ulid(message) {
854
- return this._addCheck({ kind: "ulid", ...errorUtil_js_1.errorUtil.errToObj(message) });
855
- }
856
- base64(message) {
857
- return this._addCheck({ kind: "base64", ...errorUtil_js_1.errorUtil.errToObj(message) });
858
- }
859
- base64url(message) {
860
- // base64url encoding is a modification of base64 that can safely be used in URLs and filenames
861
- return this._addCheck({
862
- kind: "base64url",
863
- ...errorUtil_js_1.errorUtil.errToObj(message),
864
- });
865
- }
866
- jwt(options) {
867
- return this._addCheck({ kind: "jwt", ...errorUtil_js_1.errorUtil.errToObj(options) });
868
- }
869
- ip(options) {
870
- return this._addCheck({ kind: "ip", ...errorUtil_js_1.errorUtil.errToObj(options) });
871
- }
872
- cidr(options) {
873
- return this._addCheck({ kind: "cidr", ...errorUtil_js_1.errorUtil.errToObj(options) });
874
- }
875
- datetime(options) {
876
- if (typeof options === "string") {
877
- return this._addCheck({
878
- kind: "datetime",
879
- precision: null,
880
- offset: false,
881
- local: false,
882
- message: options,
883
- });
884
- }
885
- return this._addCheck({
886
- kind: "datetime",
887
- precision: typeof options?.precision === "undefined" ? null : options?.precision,
888
- offset: options?.offset ?? false,
889
- local: options?.local ?? false,
890
- ...errorUtil_js_1.errorUtil.errToObj(options?.message),
891
- });
892
- }
893
- date(message) {
894
- return this._addCheck({ kind: "date", message });
895
- }
896
- time(options) {
897
- if (typeof options === "string") {
898
- return this._addCheck({
899
- kind: "time",
900
- precision: null,
901
- message: options,
902
- });
903
- }
904
- return this._addCheck({
905
- kind: "time",
906
- precision: typeof options?.precision === "undefined" ? null : options?.precision,
907
- ...errorUtil_js_1.errorUtil.errToObj(options?.message),
908
- });
909
- }
910
- duration(message) {
911
- return this._addCheck({ kind: "duration", ...errorUtil_js_1.errorUtil.errToObj(message) });
912
- }
913
- regex(regex, message) {
914
- return this._addCheck({
915
- kind: "regex",
916
- regex: regex,
917
- ...errorUtil_js_1.errorUtil.errToObj(message),
918
- });
919
- }
920
- includes(value, options) {
921
- return this._addCheck({
922
- kind: "includes",
923
- value: value,
924
- position: options?.position,
925
- ...errorUtil_js_1.errorUtil.errToObj(options?.message),
926
- });
927
- }
928
- startsWith(value, message) {
929
- return this._addCheck({
930
- kind: "startsWith",
931
- value: value,
932
- ...errorUtil_js_1.errorUtil.errToObj(message),
933
- });
934
- }
935
- endsWith(value, message) {
936
- return this._addCheck({
937
- kind: "endsWith",
938
- value: value,
939
- ...errorUtil_js_1.errorUtil.errToObj(message),
940
- });
941
- }
942
- min(minLength, message) {
943
- return this._addCheck({
944
- kind: "min",
945
- value: minLength,
946
- ...errorUtil_js_1.errorUtil.errToObj(message),
947
- });
948
- }
949
- max(maxLength, message) {
950
- return this._addCheck({
951
- kind: "max",
952
- value: maxLength,
953
- ...errorUtil_js_1.errorUtil.errToObj(message),
954
- });
955
- }
956
- length(len, message) {
957
- return this._addCheck({
958
- kind: "length",
959
- value: len,
960
- ...errorUtil_js_1.errorUtil.errToObj(message),
961
- });
962
- }
963
- /**
964
- * Equivalent to `.min(1)`
965
- */
966
- nonempty(message) {
967
- return this.min(1, errorUtil_js_1.errorUtil.errToObj(message));
968
- }
969
- trim() {
970
- return new ZodString({
971
- ...this._def,
972
- checks: [...this._def.checks, { kind: "trim" }],
973
- });
974
- }
975
- toLowerCase() {
976
- return new ZodString({
977
- ...this._def,
978
- checks: [...this._def.checks, { kind: "toLowerCase" }],
979
- });
980
- }
981
- toUpperCase() {
982
- return new ZodString({
983
- ...this._def,
984
- checks: [...this._def.checks, { kind: "toUpperCase" }],
985
- });
986
- }
987
- get isDatetime() {
988
- return !!this._def.checks.find((ch) => ch.kind === "datetime");
989
- }
990
- get isDate() {
991
- return !!this._def.checks.find((ch) => ch.kind === "date");
992
- }
993
- get isTime() {
994
- return !!this._def.checks.find((ch) => ch.kind === "time");
995
- }
996
- get isDuration() {
997
- return !!this._def.checks.find((ch) => ch.kind === "duration");
998
- }
999
- get isEmail() {
1000
- return !!this._def.checks.find((ch) => ch.kind === "email");
1001
- }
1002
- get isURL() {
1003
- return !!this._def.checks.find((ch) => ch.kind === "url");
1004
- }
1005
- get isEmoji() {
1006
- return !!this._def.checks.find((ch) => ch.kind === "emoji");
1007
- }
1008
- get isUUID() {
1009
- return !!this._def.checks.find((ch) => ch.kind === "uuid");
1010
- }
1011
- get isNANOID() {
1012
- return !!this._def.checks.find((ch) => ch.kind === "nanoid");
1013
- }
1014
- get isCUID() {
1015
- return !!this._def.checks.find((ch) => ch.kind === "cuid");
1016
- }
1017
- get isCUID2() {
1018
- return !!this._def.checks.find((ch) => ch.kind === "cuid2");
1019
- }
1020
- get isULID() {
1021
- return !!this._def.checks.find((ch) => ch.kind === "ulid");
1022
- }
1023
- get isIP() {
1024
- return !!this._def.checks.find((ch) => ch.kind === "ip");
1025
- }
1026
- get isCIDR() {
1027
- return !!this._def.checks.find((ch) => ch.kind === "cidr");
1028
- }
1029
- get isBase64() {
1030
- return !!this._def.checks.find((ch) => ch.kind === "base64");
1031
- }
1032
- get isBase64url() {
1033
- // base64url encoding is a modification of base64 that can safely be used in URLs and filenames
1034
- return !!this._def.checks.find((ch) => ch.kind === "base64url");
1035
- }
1036
- get minLength() {
1037
- let min = null;
1038
- for (const ch of this._def.checks) {
1039
- if (ch.kind === "min") {
1040
- if (min === null || ch.value > min)
1041
- min = ch.value;
1042
- }
1043
- }
1044
- return min;
1045
- }
1046
- get maxLength() {
1047
- let max = null;
1048
- for (const ch of this._def.checks) {
1049
- if (ch.kind === "max") {
1050
- if (max === null || ch.value < max)
1051
- max = ch.value;
1052
- }
1053
- }
1054
- return max;
1055
- }
1056
- }
1057
- exports.ZodString = ZodString;
1058
- ZodString.create = (params) => {
1059
- return new ZodString({
1060
- checks: [],
1061
- typeName: ZodFirstPartyTypeKind.ZodString,
1062
- coerce: params?.coerce ?? false,
1063
- ...processCreateParams(params),
1064
- });
1065
- };
1066
- // https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034
1067
- function floatSafeRemainder(val, step) {
1068
- const valDecCount = (val.toString().split(".")[1] || "").length;
1069
- const stepDecCount = (step.toString().split(".")[1] || "").length;
1070
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
1071
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
1072
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
1073
- return (valInt % stepInt) / 10 ** decCount;
1074
- }
1075
- class ZodNumber extends ZodType {
1076
- constructor() {
1077
- super(...arguments);
1078
- this.min = this.gte;
1079
- this.max = this.lte;
1080
- this.step = this.multipleOf;
1081
- }
1082
- _parse(input) {
1083
- if (this._def.coerce) {
1084
- input.data = Number(input.data);
1085
- }
1086
- const parsedType = this._getType(input);
1087
- if (parsedType !== util_js_1.ZodParsedType.number) {
1088
- const ctx = this._getOrReturnCtx(input);
1089
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1090
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1091
- expected: util_js_1.ZodParsedType.number,
1092
- received: ctx.parsedType,
1093
- });
1094
- return parseUtil_js_1.INVALID;
1095
- }
1096
- let ctx = undefined;
1097
- const status = new parseUtil_js_1.ParseStatus();
1098
- for (const check of this._def.checks) {
1099
- if (check.kind === "int") {
1100
- if (!util_js_1.util.isInteger(input.data)) {
1101
- ctx = this._getOrReturnCtx(input, ctx);
1102
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1103
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1104
- expected: "integer",
1105
- received: "float",
1106
- message: check.message,
1107
- });
1108
- status.dirty();
1109
- }
1110
- }
1111
- else if (check.kind === "min") {
1112
- const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
1113
- if (tooSmall) {
1114
- ctx = this._getOrReturnCtx(input, ctx);
1115
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1116
- code: ZodError_js_1.ZodIssueCode.too_small,
1117
- minimum: check.value,
1118
- type: "number",
1119
- inclusive: check.inclusive,
1120
- exact: false,
1121
- message: check.message,
1122
- });
1123
- status.dirty();
1124
- }
1125
- }
1126
- else if (check.kind === "max") {
1127
- const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
1128
- if (tooBig) {
1129
- ctx = this._getOrReturnCtx(input, ctx);
1130
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1131
- code: ZodError_js_1.ZodIssueCode.too_big,
1132
- maximum: check.value,
1133
- type: "number",
1134
- inclusive: check.inclusive,
1135
- exact: false,
1136
- message: check.message,
1137
- });
1138
- status.dirty();
1139
- }
1140
- }
1141
- else if (check.kind === "multipleOf") {
1142
- if (floatSafeRemainder(input.data, check.value) !== 0) {
1143
- ctx = this._getOrReturnCtx(input, ctx);
1144
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1145
- code: ZodError_js_1.ZodIssueCode.not_multiple_of,
1146
- multipleOf: check.value,
1147
- message: check.message,
1148
- });
1149
- status.dirty();
1150
- }
1151
- }
1152
- else if (check.kind === "finite") {
1153
- if (!Number.isFinite(input.data)) {
1154
- ctx = this._getOrReturnCtx(input, ctx);
1155
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1156
- code: ZodError_js_1.ZodIssueCode.not_finite,
1157
- message: check.message,
1158
- });
1159
- status.dirty();
1160
- }
1161
- }
1162
- else {
1163
- util_js_1.util.assertNever(check);
1164
- }
1165
- }
1166
- return { status: status.value, value: input.data };
1167
- }
1168
- gte(value, message) {
1169
- return this.setLimit("min", value, true, errorUtil_js_1.errorUtil.toString(message));
1170
- }
1171
- gt(value, message) {
1172
- return this.setLimit("min", value, false, errorUtil_js_1.errorUtil.toString(message));
1173
- }
1174
- lte(value, message) {
1175
- return this.setLimit("max", value, true, errorUtil_js_1.errorUtil.toString(message));
1176
- }
1177
- lt(value, message) {
1178
- return this.setLimit("max", value, false, errorUtil_js_1.errorUtil.toString(message));
1179
- }
1180
- setLimit(kind, value, inclusive, message) {
1181
- return new ZodNumber({
1182
- ...this._def,
1183
- checks: [
1184
- ...this._def.checks,
1185
- {
1186
- kind,
1187
- value,
1188
- inclusive,
1189
- message: errorUtil_js_1.errorUtil.toString(message),
1190
- },
1191
- ],
1192
- });
1193
- }
1194
- _addCheck(check) {
1195
- return new ZodNumber({
1196
- ...this._def,
1197
- checks: [...this._def.checks, check],
1198
- });
1199
- }
1200
- int(message) {
1201
- return this._addCheck({
1202
- kind: "int",
1203
- message: errorUtil_js_1.errorUtil.toString(message),
1204
- });
1205
- }
1206
- positive(message) {
1207
- return this._addCheck({
1208
- kind: "min",
1209
- value: 0,
1210
- inclusive: false,
1211
- message: errorUtil_js_1.errorUtil.toString(message),
1212
- });
1213
- }
1214
- negative(message) {
1215
- return this._addCheck({
1216
- kind: "max",
1217
- value: 0,
1218
- inclusive: false,
1219
- message: errorUtil_js_1.errorUtil.toString(message),
1220
- });
1221
- }
1222
- nonpositive(message) {
1223
- return this._addCheck({
1224
- kind: "max",
1225
- value: 0,
1226
- inclusive: true,
1227
- message: errorUtil_js_1.errorUtil.toString(message),
1228
- });
1229
- }
1230
- nonnegative(message) {
1231
- return this._addCheck({
1232
- kind: "min",
1233
- value: 0,
1234
- inclusive: true,
1235
- message: errorUtil_js_1.errorUtil.toString(message),
1236
- });
1237
- }
1238
- multipleOf(value, message) {
1239
- return this._addCheck({
1240
- kind: "multipleOf",
1241
- value: value,
1242
- message: errorUtil_js_1.errorUtil.toString(message),
1243
- });
1244
- }
1245
- finite(message) {
1246
- return this._addCheck({
1247
- kind: "finite",
1248
- message: errorUtil_js_1.errorUtil.toString(message),
1249
- });
1250
- }
1251
- safe(message) {
1252
- return this._addCheck({
1253
- kind: "min",
1254
- inclusive: true,
1255
- value: Number.MIN_SAFE_INTEGER,
1256
- message: errorUtil_js_1.errorUtil.toString(message),
1257
- })._addCheck({
1258
- kind: "max",
1259
- inclusive: true,
1260
- value: Number.MAX_SAFE_INTEGER,
1261
- message: errorUtil_js_1.errorUtil.toString(message),
1262
- });
1263
- }
1264
- get minValue() {
1265
- let min = null;
1266
- for (const ch of this._def.checks) {
1267
- if (ch.kind === "min") {
1268
- if (min === null || ch.value > min)
1269
- min = ch.value;
1270
- }
1271
- }
1272
- return min;
1273
- }
1274
- get maxValue() {
1275
- let max = null;
1276
- for (const ch of this._def.checks) {
1277
- if (ch.kind === "max") {
1278
- if (max === null || ch.value < max)
1279
- max = ch.value;
1280
- }
1281
- }
1282
- return max;
1283
- }
1284
- get isInt() {
1285
- return !!this._def.checks.find((ch) => ch.kind === "int" || (ch.kind === "multipleOf" && util_js_1.util.isInteger(ch.value)));
1286
- }
1287
- get isFinite() {
1288
- let max = null;
1289
- let min = null;
1290
- for (const ch of this._def.checks) {
1291
- if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
1292
- return true;
1293
- }
1294
- else if (ch.kind === "min") {
1295
- if (min === null || ch.value > min)
1296
- min = ch.value;
1297
- }
1298
- else if (ch.kind === "max") {
1299
- if (max === null || ch.value < max)
1300
- max = ch.value;
1301
- }
1302
- }
1303
- return Number.isFinite(min) && Number.isFinite(max);
1304
- }
1305
- }
1306
- exports.ZodNumber = ZodNumber;
1307
- ZodNumber.create = (params) => {
1308
- return new ZodNumber({
1309
- checks: [],
1310
- typeName: ZodFirstPartyTypeKind.ZodNumber,
1311
- coerce: params?.coerce || false,
1312
- ...processCreateParams(params),
1313
- });
1314
- };
1315
- class ZodBigInt extends ZodType {
1316
- constructor() {
1317
- super(...arguments);
1318
- this.min = this.gte;
1319
- this.max = this.lte;
1320
- }
1321
- _parse(input) {
1322
- if (this._def.coerce) {
1323
- try {
1324
- input.data = BigInt(input.data);
1325
- }
1326
- catch {
1327
- return this._getInvalidInput(input);
1328
- }
1329
- }
1330
- const parsedType = this._getType(input);
1331
- if (parsedType !== util_js_1.ZodParsedType.bigint) {
1332
- return this._getInvalidInput(input);
1333
- }
1334
- let ctx = undefined;
1335
- const status = new parseUtil_js_1.ParseStatus();
1336
- for (const check of this._def.checks) {
1337
- if (check.kind === "min") {
1338
- const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
1339
- if (tooSmall) {
1340
- ctx = this._getOrReturnCtx(input, ctx);
1341
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1342
- code: ZodError_js_1.ZodIssueCode.too_small,
1343
- type: "bigint",
1344
- minimum: check.value,
1345
- inclusive: check.inclusive,
1346
- message: check.message,
1347
- });
1348
- status.dirty();
1349
- }
1350
- }
1351
- else if (check.kind === "max") {
1352
- const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
1353
- if (tooBig) {
1354
- ctx = this._getOrReturnCtx(input, ctx);
1355
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1356
- code: ZodError_js_1.ZodIssueCode.too_big,
1357
- type: "bigint",
1358
- maximum: check.value,
1359
- inclusive: check.inclusive,
1360
- message: check.message,
1361
- });
1362
- status.dirty();
1363
- }
1364
- }
1365
- else if (check.kind === "multipleOf") {
1366
- if (input.data % check.value !== BigInt(0)) {
1367
- ctx = this._getOrReturnCtx(input, ctx);
1368
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1369
- code: ZodError_js_1.ZodIssueCode.not_multiple_of,
1370
- multipleOf: check.value,
1371
- message: check.message,
1372
- });
1373
- status.dirty();
1374
- }
1375
- }
1376
- else {
1377
- util_js_1.util.assertNever(check);
1378
- }
1379
- }
1380
- return { status: status.value, value: input.data };
1381
- }
1382
- _getInvalidInput(input) {
1383
- const ctx = this._getOrReturnCtx(input);
1384
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1385
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1386
- expected: util_js_1.ZodParsedType.bigint,
1387
- received: ctx.parsedType,
1388
- });
1389
- return parseUtil_js_1.INVALID;
1390
- }
1391
- gte(value, message) {
1392
- return this.setLimit("min", value, true, errorUtil_js_1.errorUtil.toString(message));
1393
- }
1394
- gt(value, message) {
1395
- return this.setLimit("min", value, false, errorUtil_js_1.errorUtil.toString(message));
1396
- }
1397
- lte(value, message) {
1398
- return this.setLimit("max", value, true, errorUtil_js_1.errorUtil.toString(message));
1399
- }
1400
- lt(value, message) {
1401
- return this.setLimit("max", value, false, errorUtil_js_1.errorUtil.toString(message));
1402
- }
1403
- setLimit(kind, value, inclusive, message) {
1404
- return new ZodBigInt({
1405
- ...this._def,
1406
- checks: [
1407
- ...this._def.checks,
1408
- {
1409
- kind,
1410
- value,
1411
- inclusive,
1412
- message: errorUtil_js_1.errorUtil.toString(message),
1413
- },
1414
- ],
1415
- });
1416
- }
1417
- _addCheck(check) {
1418
- return new ZodBigInt({
1419
- ...this._def,
1420
- checks: [...this._def.checks, check],
1421
- });
1422
- }
1423
- positive(message) {
1424
- return this._addCheck({
1425
- kind: "min",
1426
- value: BigInt(0),
1427
- inclusive: false,
1428
- message: errorUtil_js_1.errorUtil.toString(message),
1429
- });
1430
- }
1431
- negative(message) {
1432
- return this._addCheck({
1433
- kind: "max",
1434
- value: BigInt(0),
1435
- inclusive: false,
1436
- message: errorUtil_js_1.errorUtil.toString(message),
1437
- });
1438
- }
1439
- nonpositive(message) {
1440
- return this._addCheck({
1441
- kind: "max",
1442
- value: BigInt(0),
1443
- inclusive: true,
1444
- message: errorUtil_js_1.errorUtil.toString(message),
1445
- });
1446
- }
1447
- nonnegative(message) {
1448
- return this._addCheck({
1449
- kind: "min",
1450
- value: BigInt(0),
1451
- inclusive: true,
1452
- message: errorUtil_js_1.errorUtil.toString(message),
1453
- });
1454
- }
1455
- multipleOf(value, message) {
1456
- return this._addCheck({
1457
- kind: "multipleOf",
1458
- value,
1459
- message: errorUtil_js_1.errorUtil.toString(message),
1460
- });
1461
- }
1462
- get minValue() {
1463
- let min = null;
1464
- for (const ch of this._def.checks) {
1465
- if (ch.kind === "min") {
1466
- if (min === null || ch.value > min)
1467
- min = ch.value;
1468
- }
1469
- }
1470
- return min;
1471
- }
1472
- get maxValue() {
1473
- let max = null;
1474
- for (const ch of this._def.checks) {
1475
- if (ch.kind === "max") {
1476
- if (max === null || ch.value < max)
1477
- max = ch.value;
1478
- }
1479
- }
1480
- return max;
1481
- }
1482
- }
1483
- exports.ZodBigInt = ZodBigInt;
1484
- ZodBigInt.create = (params) => {
1485
- return new ZodBigInt({
1486
- checks: [],
1487
- typeName: ZodFirstPartyTypeKind.ZodBigInt,
1488
- coerce: params?.coerce ?? false,
1489
- ...processCreateParams(params),
1490
- });
1491
- };
1492
- class ZodBoolean extends ZodType {
1493
- _parse(input) {
1494
- if (this._def.coerce) {
1495
- input.data = Boolean(input.data);
1496
- }
1497
- const parsedType = this._getType(input);
1498
- if (parsedType !== util_js_1.ZodParsedType.boolean) {
1499
- const ctx = this._getOrReturnCtx(input);
1500
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1501
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1502
- expected: util_js_1.ZodParsedType.boolean,
1503
- received: ctx.parsedType,
1504
- });
1505
- return parseUtil_js_1.INVALID;
1506
- }
1507
- return (0, parseUtil_js_1.OK)(input.data);
1508
- }
1509
- }
1510
- exports.ZodBoolean = ZodBoolean;
1511
- ZodBoolean.create = (params) => {
1512
- return new ZodBoolean({
1513
- typeName: ZodFirstPartyTypeKind.ZodBoolean,
1514
- coerce: params?.coerce || false,
1515
- ...processCreateParams(params),
1516
- });
1517
- };
1518
- class ZodDate extends ZodType {
1519
- _parse(input) {
1520
- if (this._def.coerce) {
1521
- input.data = new Date(input.data);
1522
- }
1523
- const parsedType = this._getType(input);
1524
- if (parsedType !== util_js_1.ZodParsedType.date) {
1525
- const ctx = this._getOrReturnCtx(input);
1526
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1527
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1528
- expected: util_js_1.ZodParsedType.date,
1529
- received: ctx.parsedType,
1530
- });
1531
- return parseUtil_js_1.INVALID;
1532
- }
1533
- if (Number.isNaN(input.data.getTime())) {
1534
- const ctx = this._getOrReturnCtx(input);
1535
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1536
- code: ZodError_js_1.ZodIssueCode.invalid_date,
1537
- });
1538
- return parseUtil_js_1.INVALID;
1539
- }
1540
- const status = new parseUtil_js_1.ParseStatus();
1541
- let ctx = undefined;
1542
- for (const check of this._def.checks) {
1543
- if (check.kind === "min") {
1544
- if (input.data.getTime() < check.value) {
1545
- ctx = this._getOrReturnCtx(input, ctx);
1546
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1547
- code: ZodError_js_1.ZodIssueCode.too_small,
1548
- message: check.message,
1549
- inclusive: true,
1550
- exact: false,
1551
- minimum: check.value,
1552
- type: "date",
1553
- });
1554
- status.dirty();
1555
- }
1556
- }
1557
- else if (check.kind === "max") {
1558
- if (input.data.getTime() > check.value) {
1559
- ctx = this._getOrReturnCtx(input, ctx);
1560
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1561
- code: ZodError_js_1.ZodIssueCode.too_big,
1562
- message: check.message,
1563
- inclusive: true,
1564
- exact: false,
1565
- maximum: check.value,
1566
- type: "date",
1567
- });
1568
- status.dirty();
1569
- }
1570
- }
1571
- else {
1572
- util_js_1.util.assertNever(check);
1573
- }
1574
- }
1575
- return {
1576
- status: status.value,
1577
- value: new Date(input.data.getTime()),
1578
- };
1579
- }
1580
- _addCheck(check) {
1581
- return new ZodDate({
1582
- ...this._def,
1583
- checks: [...this._def.checks, check],
1584
- });
1585
- }
1586
- min(minDate, message) {
1587
- return this._addCheck({
1588
- kind: "min",
1589
- value: minDate.getTime(),
1590
- message: errorUtil_js_1.errorUtil.toString(message),
1591
- });
1592
- }
1593
- max(maxDate, message) {
1594
- return this._addCheck({
1595
- kind: "max",
1596
- value: maxDate.getTime(),
1597
- message: errorUtil_js_1.errorUtil.toString(message),
1598
- });
1599
- }
1600
- get minDate() {
1601
- let min = null;
1602
- for (const ch of this._def.checks) {
1603
- if (ch.kind === "min") {
1604
- if (min === null || ch.value > min)
1605
- min = ch.value;
1606
- }
1607
- }
1608
- return min != null ? new Date(min) : null;
1609
- }
1610
- get maxDate() {
1611
- let max = null;
1612
- for (const ch of this._def.checks) {
1613
- if (ch.kind === "max") {
1614
- if (max === null || ch.value < max)
1615
- max = ch.value;
1616
- }
1617
- }
1618
- return max != null ? new Date(max) : null;
1619
- }
1620
- }
1621
- exports.ZodDate = ZodDate;
1622
- ZodDate.create = (params) => {
1623
- return new ZodDate({
1624
- checks: [],
1625
- coerce: params?.coerce || false,
1626
- typeName: ZodFirstPartyTypeKind.ZodDate,
1627
- ...processCreateParams(params),
1628
- });
1629
- };
1630
- class ZodSymbol extends ZodType {
1631
- _parse(input) {
1632
- const parsedType = this._getType(input);
1633
- if (parsedType !== util_js_1.ZodParsedType.symbol) {
1634
- const ctx = this._getOrReturnCtx(input);
1635
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1636
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1637
- expected: util_js_1.ZodParsedType.symbol,
1638
- received: ctx.parsedType,
1639
- });
1640
- return parseUtil_js_1.INVALID;
1641
- }
1642
- return (0, parseUtil_js_1.OK)(input.data);
1643
- }
1644
- }
1645
- exports.ZodSymbol = ZodSymbol;
1646
- ZodSymbol.create = (params) => {
1647
- return new ZodSymbol({
1648
- typeName: ZodFirstPartyTypeKind.ZodSymbol,
1649
- ...processCreateParams(params),
1650
- });
1651
- };
1652
- class ZodUndefined extends ZodType {
1653
- _parse(input) {
1654
- const parsedType = this._getType(input);
1655
- if (parsedType !== util_js_1.ZodParsedType.undefined) {
1656
- const ctx = this._getOrReturnCtx(input);
1657
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1658
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1659
- expected: util_js_1.ZodParsedType.undefined,
1660
- received: ctx.parsedType,
1661
- });
1662
- return parseUtil_js_1.INVALID;
1663
- }
1664
- return (0, parseUtil_js_1.OK)(input.data);
1665
- }
1666
- }
1667
- exports.ZodUndefined = ZodUndefined;
1668
- ZodUndefined.create = (params) => {
1669
- return new ZodUndefined({
1670
- typeName: ZodFirstPartyTypeKind.ZodUndefined,
1671
- ...processCreateParams(params),
1672
- });
1673
- };
1674
- class ZodNull extends ZodType {
1675
- _parse(input) {
1676
- const parsedType = this._getType(input);
1677
- if (parsedType !== util_js_1.ZodParsedType.null) {
1678
- const ctx = this._getOrReturnCtx(input);
1679
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1680
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1681
- expected: util_js_1.ZodParsedType.null,
1682
- received: ctx.parsedType,
1683
- });
1684
- return parseUtil_js_1.INVALID;
1685
- }
1686
- return (0, parseUtil_js_1.OK)(input.data);
1687
- }
1688
- }
1689
- exports.ZodNull = ZodNull;
1690
- ZodNull.create = (params) => {
1691
- return new ZodNull({
1692
- typeName: ZodFirstPartyTypeKind.ZodNull,
1693
- ...processCreateParams(params),
1694
- });
1695
- };
1696
- class ZodAny extends ZodType {
1697
- constructor() {
1698
- super(...arguments);
1699
- // to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.
1700
- this._any = true;
1701
- }
1702
- _parse(input) {
1703
- return (0, parseUtil_js_1.OK)(input.data);
1704
- }
1705
- }
1706
- exports.ZodAny = ZodAny;
1707
- ZodAny.create = (params) => {
1708
- return new ZodAny({
1709
- typeName: ZodFirstPartyTypeKind.ZodAny,
1710
- ...processCreateParams(params),
1711
- });
1712
- };
1713
- class ZodUnknown extends ZodType {
1714
- constructor() {
1715
- super(...arguments);
1716
- // required
1717
- this._unknown = true;
1718
- }
1719
- _parse(input) {
1720
- return (0, parseUtil_js_1.OK)(input.data);
1721
- }
1722
- }
1723
- exports.ZodUnknown = ZodUnknown;
1724
- ZodUnknown.create = (params) => {
1725
- return new ZodUnknown({
1726
- typeName: ZodFirstPartyTypeKind.ZodUnknown,
1727
- ...processCreateParams(params),
1728
- });
1729
- };
1730
- class ZodNever extends ZodType {
1731
- _parse(input) {
1732
- const ctx = this._getOrReturnCtx(input);
1733
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1734
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1735
- expected: util_js_1.ZodParsedType.never,
1736
- received: ctx.parsedType,
1737
- });
1738
- return parseUtil_js_1.INVALID;
1739
- }
1740
- }
1741
- exports.ZodNever = ZodNever;
1742
- ZodNever.create = (params) => {
1743
- return new ZodNever({
1744
- typeName: ZodFirstPartyTypeKind.ZodNever,
1745
- ...processCreateParams(params),
1746
- });
1747
- };
1748
- class ZodVoid extends ZodType {
1749
- _parse(input) {
1750
- const parsedType = this._getType(input);
1751
- if (parsedType !== util_js_1.ZodParsedType.undefined) {
1752
- const ctx = this._getOrReturnCtx(input);
1753
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1754
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1755
- expected: util_js_1.ZodParsedType.void,
1756
- received: ctx.parsedType,
1757
- });
1758
- return parseUtil_js_1.INVALID;
1759
- }
1760
- return (0, parseUtil_js_1.OK)(input.data);
1761
- }
1762
- }
1763
- exports.ZodVoid = ZodVoid;
1764
- ZodVoid.create = (params) => {
1765
- return new ZodVoid({
1766
- typeName: ZodFirstPartyTypeKind.ZodVoid,
1767
- ...processCreateParams(params),
1768
- });
1769
- };
1770
- class ZodArray extends ZodType {
1771
- _parse(input) {
1772
- const { ctx, status } = this._processInputParams(input);
1773
- const def = this._def;
1774
- if (ctx.parsedType !== util_js_1.ZodParsedType.array) {
1775
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1776
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1777
- expected: util_js_1.ZodParsedType.array,
1778
- received: ctx.parsedType,
1779
- });
1780
- return parseUtil_js_1.INVALID;
1781
- }
1782
- if (def.exactLength !== null) {
1783
- const tooBig = ctx.data.length > def.exactLength.value;
1784
- const tooSmall = ctx.data.length < def.exactLength.value;
1785
- if (tooBig || tooSmall) {
1786
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1787
- code: tooBig ? ZodError_js_1.ZodIssueCode.too_big : ZodError_js_1.ZodIssueCode.too_small,
1788
- minimum: (tooSmall ? def.exactLength.value : undefined),
1789
- maximum: (tooBig ? def.exactLength.value : undefined),
1790
- type: "array",
1791
- inclusive: true,
1792
- exact: true,
1793
- message: def.exactLength.message,
1794
- });
1795
- status.dirty();
1796
- }
1797
- }
1798
- if (def.minLength !== null) {
1799
- if (ctx.data.length < def.minLength.value) {
1800
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1801
- code: ZodError_js_1.ZodIssueCode.too_small,
1802
- minimum: def.minLength.value,
1803
- type: "array",
1804
- inclusive: true,
1805
- exact: false,
1806
- message: def.minLength.message,
1807
- });
1808
- status.dirty();
1809
- }
1810
- }
1811
- if (def.maxLength !== null) {
1812
- if (ctx.data.length > def.maxLength.value) {
1813
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1814
- code: ZodError_js_1.ZodIssueCode.too_big,
1815
- maximum: def.maxLength.value,
1816
- type: "array",
1817
- inclusive: true,
1818
- exact: false,
1819
- message: def.maxLength.message,
1820
- });
1821
- status.dirty();
1822
- }
1823
- }
1824
- if (ctx.common.async) {
1825
- return Promise.all([...ctx.data].map((item, i) => {
1826
- return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));
1827
- })).then((result) => {
1828
- return parseUtil_js_1.ParseStatus.mergeArray(status, result);
1829
- });
1830
- }
1831
- const result = [...ctx.data].map((item, i) => {
1832
- return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));
1833
- });
1834
- return parseUtil_js_1.ParseStatus.mergeArray(status, result);
1835
- }
1836
- get element() {
1837
- return this._def.type;
1838
- }
1839
- min(minLength, message) {
1840
- return new ZodArray({
1841
- ...this._def,
1842
- minLength: { value: minLength, message: errorUtil_js_1.errorUtil.toString(message) },
1843
- });
1844
- }
1845
- max(maxLength, message) {
1846
- return new ZodArray({
1847
- ...this._def,
1848
- maxLength: { value: maxLength, message: errorUtil_js_1.errorUtil.toString(message) },
1849
- });
1850
- }
1851
- length(len, message) {
1852
- return new ZodArray({
1853
- ...this._def,
1854
- exactLength: { value: len, message: errorUtil_js_1.errorUtil.toString(message) },
1855
- });
1856
- }
1857
- nonempty(message) {
1858
- return this.min(1, message);
1859
- }
1860
- }
1861
- exports.ZodArray = ZodArray;
1862
- ZodArray.create = (schema, params) => {
1863
- return new ZodArray({
1864
- type: schema,
1865
- minLength: null,
1866
- maxLength: null,
1867
- exactLength: null,
1868
- typeName: ZodFirstPartyTypeKind.ZodArray,
1869
- ...processCreateParams(params),
1870
- });
1871
- };
1872
- function deepPartialify(schema) {
1873
- if (schema instanceof ZodObject) {
1874
- const newShape = {};
1875
- for (const key in schema.shape) {
1876
- const fieldSchema = schema.shape[key];
1877
- newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));
1878
- }
1879
- return new ZodObject({
1880
- ...schema._def,
1881
- shape: () => newShape,
1882
- });
1883
- }
1884
- else if (schema instanceof ZodArray) {
1885
- return new ZodArray({
1886
- ...schema._def,
1887
- type: deepPartialify(schema.element),
1888
- });
1889
- }
1890
- else if (schema instanceof ZodOptional) {
1891
- return ZodOptional.create(deepPartialify(schema.unwrap()));
1892
- }
1893
- else if (schema instanceof ZodNullable) {
1894
- return ZodNullable.create(deepPartialify(schema.unwrap()));
1895
- }
1896
- else if (schema instanceof ZodTuple) {
1897
- return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));
1898
- }
1899
- else {
1900
- return schema;
1901
- }
1902
- }
1903
- class ZodObject extends ZodType {
1904
- constructor() {
1905
- super(...arguments);
1906
- this._cached = null;
1907
- /**
1908
- * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
1909
- * If you want to pass through unknown properties, use `.passthrough()` instead.
1910
- */
1911
- this.nonstrict = this.passthrough;
1912
- // extend<
1913
- // Augmentation extends ZodRawShape,
1914
- // NewOutput extends util.flatten<{
1915
- // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
1916
- // ? Augmentation[k]["_output"]
1917
- // : k extends keyof Output
1918
- // ? Output[k]
1919
- // : never;
1920
- // }>,
1921
- // NewInput extends util.flatten<{
1922
- // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
1923
- // ? Augmentation[k]["_input"]
1924
- // : k extends keyof Input
1925
- // ? Input[k]
1926
- // : never;
1927
- // }>
1928
- // >(
1929
- // augmentation: Augmentation
1930
- // ): ZodObject<
1931
- // extendShape<T, Augmentation>,
1932
- // UnknownKeys,
1933
- // Catchall,
1934
- // NewOutput,
1935
- // NewInput
1936
- // > {
1937
- // return new ZodObject({
1938
- // ...this._def,
1939
- // shape: () => ({
1940
- // ...this._def.shape(),
1941
- // ...augmentation,
1942
- // }),
1943
- // }) as any;
1944
- // }
1945
- /**
1946
- * @deprecated Use `.extend` instead
1947
- * */
1948
- this.augment = this.extend;
1949
- }
1950
- _getCached() {
1951
- if (this._cached !== null)
1952
- return this._cached;
1953
- const shape = this._def.shape();
1954
- const keys = util_js_1.util.objectKeys(shape);
1955
- this._cached = { shape, keys };
1956
- return this._cached;
1957
- }
1958
- _parse(input) {
1959
- const parsedType = this._getType(input);
1960
- if (parsedType !== util_js_1.ZodParsedType.object) {
1961
- const ctx = this._getOrReturnCtx(input);
1962
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
1963
- code: ZodError_js_1.ZodIssueCode.invalid_type,
1964
- expected: util_js_1.ZodParsedType.object,
1965
- received: ctx.parsedType,
1966
- });
1967
- return parseUtil_js_1.INVALID;
1968
- }
1969
- const { status, ctx } = this._processInputParams(input);
1970
- const { shape, keys: shapeKeys } = this._getCached();
1971
- const extraKeys = [];
1972
- if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) {
1973
- for (const key in ctx.data) {
1974
- if (!shapeKeys.includes(key)) {
1975
- extraKeys.push(key);
1976
- }
1977
- }
1978
- }
1979
- const pairs = [];
1980
- for (const key of shapeKeys) {
1981
- const keyValidator = shape[key];
1982
- const value = ctx.data[key];
1983
- pairs.push({
1984
- key: { status: "valid", value: key },
1985
- value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),
1986
- alwaysSet: key in ctx.data,
1987
- });
1988
- }
1989
- if (this._def.catchall instanceof ZodNever) {
1990
- const unknownKeys = this._def.unknownKeys;
1991
- if (unknownKeys === "passthrough") {
1992
- for (const key of extraKeys) {
1993
- pairs.push({
1994
- key: { status: "valid", value: key },
1995
- value: { status: "valid", value: ctx.data[key] },
1996
- });
1997
- }
1998
- }
1999
- else if (unknownKeys === "strict") {
2000
- if (extraKeys.length > 0) {
2001
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2002
- code: ZodError_js_1.ZodIssueCode.unrecognized_keys,
2003
- keys: extraKeys,
2004
- });
2005
- status.dirty();
2006
- }
2007
- }
2008
- else if (unknownKeys === "strip") {
2009
- }
2010
- else {
2011
- throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
2012
- }
2013
- }
2014
- else {
2015
- // run catchall validation
2016
- const catchall = this._def.catchall;
2017
- for (const key of extraKeys) {
2018
- const value = ctx.data[key];
2019
- pairs.push({
2020
- key: { status: "valid", value: key },
2021
- value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)
2022
- ),
2023
- alwaysSet: key in ctx.data,
2024
- });
2025
- }
2026
- }
2027
- if (ctx.common.async) {
2028
- return Promise.resolve()
2029
- .then(async () => {
2030
- const syncPairs = [];
2031
- for (const pair of pairs) {
2032
- const key = await pair.key;
2033
- const value = await pair.value;
2034
- syncPairs.push({
2035
- key,
2036
- value,
2037
- alwaysSet: pair.alwaysSet,
2038
- });
2039
- }
2040
- return syncPairs;
2041
- })
2042
- .then((syncPairs) => {
2043
- return parseUtil_js_1.ParseStatus.mergeObjectSync(status, syncPairs);
2044
- });
2045
- }
2046
- else {
2047
- return parseUtil_js_1.ParseStatus.mergeObjectSync(status, pairs);
2048
- }
2049
- }
2050
- get shape() {
2051
- return this._def.shape();
2052
- }
2053
- strict(message) {
2054
- errorUtil_js_1.errorUtil.errToObj;
2055
- return new ZodObject({
2056
- ...this._def,
2057
- unknownKeys: "strict",
2058
- ...(message !== undefined
2059
- ? {
2060
- errorMap: (issue, ctx) => {
2061
- const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
2062
- if (issue.code === "unrecognized_keys")
2063
- return {
2064
- message: errorUtil_js_1.errorUtil.errToObj(message).message ?? defaultError,
2065
- };
2066
- return {
2067
- message: defaultError,
2068
- };
2069
- },
2070
- }
2071
- : {}),
2072
- });
2073
- }
2074
- strip() {
2075
- return new ZodObject({
2076
- ...this._def,
2077
- unknownKeys: "strip",
2078
- });
2079
- }
2080
- passthrough() {
2081
- return new ZodObject({
2082
- ...this._def,
2083
- unknownKeys: "passthrough",
2084
- });
2085
- }
2086
- // const AugmentFactory =
2087
- // <Def extends ZodObjectDef>(def: Def) =>
2088
- // <Augmentation extends ZodRawShape>(
2089
- // augmentation: Augmentation
2090
- // ): ZodObject<
2091
- // extendShape<ReturnType<Def["shape"]>, Augmentation>,
2092
- // Def["unknownKeys"],
2093
- // Def["catchall"]
2094
- // > => {
2095
- // return new ZodObject({
2096
- // ...def,
2097
- // shape: () => ({
2098
- // ...def.shape(),
2099
- // ...augmentation,
2100
- // }),
2101
- // }) as any;
2102
- // };
2103
- extend(augmentation) {
2104
- return new ZodObject({
2105
- ...this._def,
2106
- shape: () => ({
2107
- ...this._def.shape(),
2108
- ...augmentation,
2109
- }),
2110
- });
2111
- }
2112
- /**
2113
- * Prior to zod@1.0.12 there was a bug in the
2114
- * inferred type of merged objects. Please
2115
- * upgrade if you are experiencing issues.
2116
- */
2117
- merge(merging) {
2118
- const merged = new ZodObject({
2119
- unknownKeys: merging._def.unknownKeys,
2120
- catchall: merging._def.catchall,
2121
- shape: () => ({
2122
- ...this._def.shape(),
2123
- ...merging._def.shape(),
2124
- }),
2125
- typeName: ZodFirstPartyTypeKind.ZodObject,
2126
- });
2127
- return merged;
2128
- }
2129
- // merge<
2130
- // Incoming extends AnyZodObject,
2131
- // Augmentation extends Incoming["shape"],
2132
- // NewOutput extends {
2133
- // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
2134
- // ? Augmentation[k]["_output"]
2135
- // : k extends keyof Output
2136
- // ? Output[k]
2137
- // : never;
2138
- // },
2139
- // NewInput extends {
2140
- // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
2141
- // ? Augmentation[k]["_input"]
2142
- // : k extends keyof Input
2143
- // ? Input[k]
2144
- // : never;
2145
- // }
2146
- // >(
2147
- // merging: Incoming
2148
- // ): ZodObject<
2149
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2150
- // Incoming["_def"]["unknownKeys"],
2151
- // Incoming["_def"]["catchall"],
2152
- // NewOutput,
2153
- // NewInput
2154
- // > {
2155
- // const merged: any = new ZodObject({
2156
- // unknownKeys: merging._def.unknownKeys,
2157
- // catchall: merging._def.catchall,
2158
- // shape: () =>
2159
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2160
- // typeName: ZodFirstPartyTypeKind.ZodObject,
2161
- // }) as any;
2162
- // return merged;
2163
- // }
2164
- setKey(key, schema) {
2165
- return this.augment({ [key]: schema });
2166
- }
2167
- // merge<Incoming extends AnyZodObject>(
2168
- // merging: Incoming
2169
- // ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => {
2170
- // ZodObject<
2171
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2172
- // Incoming["_def"]["unknownKeys"],
2173
- // Incoming["_def"]["catchall"]
2174
- // > {
2175
- // // const mergedShape = objectUtil.mergeShapes(
2176
- // // this._def.shape(),
2177
- // // merging._def.shape()
2178
- // // );
2179
- // const merged: any = new ZodObject({
2180
- // unknownKeys: merging._def.unknownKeys,
2181
- // catchall: merging._def.catchall,
2182
- // shape: () =>
2183
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2184
- // typeName: ZodFirstPartyTypeKind.ZodObject,
2185
- // }) as any;
2186
- // return merged;
2187
- // }
2188
- catchall(index) {
2189
- return new ZodObject({
2190
- ...this._def,
2191
- catchall: index,
2192
- });
2193
- }
2194
- pick(mask) {
2195
- const shape = {};
2196
- for (const key of util_js_1.util.objectKeys(mask)) {
2197
- if (mask[key] && this.shape[key]) {
2198
- shape[key] = this.shape[key];
2199
- }
2200
- }
2201
- return new ZodObject({
2202
- ...this._def,
2203
- shape: () => shape,
2204
- });
2205
- }
2206
- omit(mask) {
2207
- const shape = {};
2208
- for (const key of util_js_1.util.objectKeys(this.shape)) {
2209
- if (!mask[key]) {
2210
- shape[key] = this.shape[key];
2211
- }
2212
- }
2213
- return new ZodObject({
2214
- ...this._def,
2215
- shape: () => shape,
2216
- });
2217
- }
2218
- /**
2219
- * @deprecated
2220
- */
2221
- deepPartial() {
2222
- return deepPartialify(this);
2223
- }
2224
- partial(mask) {
2225
- const newShape = {};
2226
- for (const key of util_js_1.util.objectKeys(this.shape)) {
2227
- const fieldSchema = this.shape[key];
2228
- if (mask && !mask[key]) {
2229
- newShape[key] = fieldSchema;
2230
- }
2231
- else {
2232
- newShape[key] = fieldSchema.optional();
2233
- }
2234
- }
2235
- return new ZodObject({
2236
- ...this._def,
2237
- shape: () => newShape,
2238
- });
2239
- }
2240
- required(mask) {
2241
- const newShape = {};
2242
- for (const key of util_js_1.util.objectKeys(this.shape)) {
2243
- if (mask && !mask[key]) {
2244
- newShape[key] = this.shape[key];
2245
- }
2246
- else {
2247
- const fieldSchema = this.shape[key];
2248
- let newField = fieldSchema;
2249
- while (newField instanceof ZodOptional) {
2250
- newField = newField._def.innerType;
2251
- }
2252
- newShape[key] = newField;
2253
- }
2254
- }
2255
- return new ZodObject({
2256
- ...this._def,
2257
- shape: () => newShape,
2258
- });
2259
- }
2260
- keyof() {
2261
- return createZodEnum(util_js_1.util.objectKeys(this.shape));
2262
- }
2263
- }
2264
- exports.ZodObject = ZodObject;
2265
- ZodObject.create = (shape, params) => {
2266
- return new ZodObject({
2267
- shape: () => shape,
2268
- unknownKeys: "strip",
2269
- catchall: ZodNever.create(),
2270
- typeName: ZodFirstPartyTypeKind.ZodObject,
2271
- ...processCreateParams(params),
2272
- });
2273
- };
2274
- ZodObject.strictCreate = (shape, params) => {
2275
- return new ZodObject({
2276
- shape: () => shape,
2277
- unknownKeys: "strict",
2278
- catchall: ZodNever.create(),
2279
- typeName: ZodFirstPartyTypeKind.ZodObject,
2280
- ...processCreateParams(params),
2281
- });
2282
- };
2283
- ZodObject.lazycreate = (shape, params) => {
2284
- return new ZodObject({
2285
- shape,
2286
- unknownKeys: "strip",
2287
- catchall: ZodNever.create(),
2288
- typeName: ZodFirstPartyTypeKind.ZodObject,
2289
- ...processCreateParams(params),
2290
- });
2291
- };
2292
- class ZodUnion extends ZodType {
2293
- _parse(input) {
2294
- const { ctx } = this._processInputParams(input);
2295
- const options = this._def.options;
2296
- function handleResults(results) {
2297
- // return first issue-free validation if it exists
2298
- for (const result of results) {
2299
- if (result.result.status === "valid") {
2300
- return result.result;
2301
- }
2302
- }
2303
- for (const result of results) {
2304
- if (result.result.status === "dirty") {
2305
- // add issues from dirty option
2306
- ctx.common.issues.push(...result.ctx.common.issues);
2307
- return result.result;
2308
- }
2309
- }
2310
- // return invalid
2311
- const unionErrors = results.map((result) => new ZodError_js_1.ZodError(result.ctx.common.issues));
2312
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2313
- code: ZodError_js_1.ZodIssueCode.invalid_union,
2314
- unionErrors,
2315
- });
2316
- return parseUtil_js_1.INVALID;
2317
- }
2318
- if (ctx.common.async) {
2319
- return Promise.all(options.map(async (option) => {
2320
- const childCtx = {
2321
- ...ctx,
2322
- common: {
2323
- ...ctx.common,
2324
- issues: [],
2325
- },
2326
- parent: null,
2327
- };
2328
- return {
2329
- result: await option._parseAsync({
2330
- data: ctx.data,
2331
- path: ctx.path,
2332
- parent: childCtx,
2333
- }),
2334
- ctx: childCtx,
2335
- };
2336
- })).then(handleResults);
2337
- }
2338
- else {
2339
- let dirty = undefined;
2340
- const issues = [];
2341
- for (const option of options) {
2342
- const childCtx = {
2343
- ...ctx,
2344
- common: {
2345
- ...ctx.common,
2346
- issues: [],
2347
- },
2348
- parent: null,
2349
- };
2350
- const result = option._parseSync({
2351
- data: ctx.data,
2352
- path: ctx.path,
2353
- parent: childCtx,
2354
- });
2355
- if (result.status === "valid") {
2356
- return result;
2357
- }
2358
- else if (result.status === "dirty" && !dirty) {
2359
- dirty = { result, ctx: childCtx };
2360
- }
2361
- if (childCtx.common.issues.length) {
2362
- issues.push(childCtx.common.issues);
2363
- }
2364
- }
2365
- if (dirty) {
2366
- ctx.common.issues.push(...dirty.ctx.common.issues);
2367
- return dirty.result;
2368
- }
2369
- const unionErrors = issues.map((issues) => new ZodError_js_1.ZodError(issues));
2370
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2371
- code: ZodError_js_1.ZodIssueCode.invalid_union,
2372
- unionErrors,
2373
- });
2374
- return parseUtil_js_1.INVALID;
2375
- }
2376
- }
2377
- get options() {
2378
- return this._def.options;
2379
- }
2380
- }
2381
- exports.ZodUnion = ZodUnion;
2382
- ZodUnion.create = (types, params) => {
2383
- return new ZodUnion({
2384
- options: types,
2385
- typeName: ZodFirstPartyTypeKind.ZodUnion,
2386
- ...processCreateParams(params),
2387
- });
2388
- };
2389
- /////////////////////////////////////////////////////
2390
- /////////////////////////////////////////////////////
2391
- ////////// //////////
2392
- ////////// ZodDiscriminatedUnion //////////
2393
- ////////// //////////
2394
- /////////////////////////////////////////////////////
2395
- /////////////////////////////////////////////////////
2396
- const getDiscriminator = (type) => {
2397
- if (type instanceof ZodLazy) {
2398
- return getDiscriminator(type.schema);
2399
- }
2400
- else if (type instanceof ZodEffects) {
2401
- return getDiscriminator(type.innerType());
2402
- }
2403
- else if (type instanceof ZodLiteral) {
2404
- return [type.value];
2405
- }
2406
- else if (type instanceof ZodEnum) {
2407
- return type.options;
2408
- }
2409
- else if (type instanceof ZodNativeEnum) {
2410
- // eslint-disable-next-line ban/ban
2411
- return util_js_1.util.objectValues(type.enum);
2412
- }
2413
- else if (type instanceof ZodDefault) {
2414
- return getDiscriminator(type._def.innerType);
2415
- }
2416
- else if (type instanceof ZodUndefined) {
2417
- return [undefined];
2418
- }
2419
- else if (type instanceof ZodNull) {
2420
- return [null];
2421
- }
2422
- else if (type instanceof ZodOptional) {
2423
- return [undefined, ...getDiscriminator(type.unwrap())];
2424
- }
2425
- else if (type instanceof ZodNullable) {
2426
- return [null, ...getDiscriminator(type.unwrap())];
2427
- }
2428
- else if (type instanceof ZodBranded) {
2429
- return getDiscriminator(type.unwrap());
2430
- }
2431
- else if (type instanceof ZodReadonly) {
2432
- return getDiscriminator(type.unwrap());
2433
- }
2434
- else if (type instanceof ZodCatch) {
2435
- return getDiscriminator(type._def.innerType);
2436
- }
2437
- else {
2438
- return [];
2439
- }
2440
- };
2441
- class ZodDiscriminatedUnion extends ZodType {
2442
- _parse(input) {
2443
- const { ctx } = this._processInputParams(input);
2444
- if (ctx.parsedType !== util_js_1.ZodParsedType.object) {
2445
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2446
- code: ZodError_js_1.ZodIssueCode.invalid_type,
2447
- expected: util_js_1.ZodParsedType.object,
2448
- received: ctx.parsedType,
2449
- });
2450
- return parseUtil_js_1.INVALID;
2451
- }
2452
- const discriminator = this.discriminator;
2453
- const discriminatorValue = ctx.data[discriminator];
2454
- const option = this.optionsMap.get(discriminatorValue);
2455
- if (!option) {
2456
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2457
- code: ZodError_js_1.ZodIssueCode.invalid_union_discriminator,
2458
- options: Array.from(this.optionsMap.keys()),
2459
- path: [discriminator],
2460
- });
2461
- return parseUtil_js_1.INVALID;
2462
- }
2463
- if (ctx.common.async) {
2464
- return option._parseAsync({
2465
- data: ctx.data,
2466
- path: ctx.path,
2467
- parent: ctx,
2468
- });
2469
- }
2470
- else {
2471
- return option._parseSync({
2472
- data: ctx.data,
2473
- path: ctx.path,
2474
- parent: ctx,
2475
- });
2476
- }
2477
- }
2478
- get discriminator() {
2479
- return this._def.discriminator;
2480
- }
2481
- get options() {
2482
- return this._def.options;
2483
- }
2484
- get optionsMap() {
2485
- return this._def.optionsMap;
2486
- }
2487
- /**
2488
- * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
2489
- * However, it only allows a union of objects, all of which need to share a discriminator property. This property must
2490
- * have a different value for each object in the union.
2491
- * @param discriminator the name of the discriminator property
2492
- * @param types an array of object schemas
2493
- * @param params
2494
- */
2495
- static create(discriminator, options, params) {
2496
- // Get all the valid discriminator values
2497
- const optionsMap = new Map();
2498
- // try {
2499
- for (const type of options) {
2500
- const discriminatorValues = getDiscriminator(type.shape[discriminator]);
2501
- if (!discriminatorValues.length) {
2502
- throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
2503
- }
2504
- for (const value of discriminatorValues) {
2505
- if (optionsMap.has(value)) {
2506
- throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
2507
- }
2508
- optionsMap.set(value, type);
2509
- }
2510
- }
2511
- return new ZodDiscriminatedUnion({
2512
- typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,
2513
- discriminator,
2514
- options,
2515
- optionsMap,
2516
- ...processCreateParams(params),
2517
- });
2518
- }
2519
- }
2520
- exports.ZodDiscriminatedUnion = ZodDiscriminatedUnion;
2521
- function mergeValues(a, b) {
2522
- const aType = (0, util_js_1.getParsedType)(a);
2523
- const bType = (0, util_js_1.getParsedType)(b);
2524
- if (a === b) {
2525
- return { valid: true, data: a };
2526
- }
2527
- else if (aType === util_js_1.ZodParsedType.object && bType === util_js_1.ZodParsedType.object) {
2528
- const bKeys = util_js_1.util.objectKeys(b);
2529
- const sharedKeys = util_js_1.util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
2530
- const newObj = { ...a, ...b };
2531
- for (const key of sharedKeys) {
2532
- const sharedValue = mergeValues(a[key], b[key]);
2533
- if (!sharedValue.valid) {
2534
- return { valid: false };
2535
- }
2536
- newObj[key] = sharedValue.data;
2537
- }
2538
- return { valid: true, data: newObj };
2539
- }
2540
- else if (aType === util_js_1.ZodParsedType.array && bType === util_js_1.ZodParsedType.array) {
2541
- if (a.length !== b.length) {
2542
- return { valid: false };
2543
- }
2544
- const newArray = [];
2545
- for (let index = 0; index < a.length; index++) {
2546
- const itemA = a[index];
2547
- const itemB = b[index];
2548
- const sharedValue = mergeValues(itemA, itemB);
2549
- if (!sharedValue.valid) {
2550
- return { valid: false };
2551
- }
2552
- newArray.push(sharedValue.data);
2553
- }
2554
- return { valid: true, data: newArray };
2555
- }
2556
- else if (aType === util_js_1.ZodParsedType.date && bType === util_js_1.ZodParsedType.date && +a === +b) {
2557
- return { valid: true, data: a };
2558
- }
2559
- else {
2560
- return { valid: false };
2561
- }
2562
- }
2563
- class ZodIntersection extends ZodType {
2564
- _parse(input) {
2565
- const { status, ctx } = this._processInputParams(input);
2566
- const handleParsed = (parsedLeft, parsedRight) => {
2567
- if ((0, parseUtil_js_1.isAborted)(parsedLeft) || (0, parseUtil_js_1.isAborted)(parsedRight)) {
2568
- return parseUtil_js_1.INVALID;
2569
- }
2570
- const merged = mergeValues(parsedLeft.value, parsedRight.value);
2571
- if (!merged.valid) {
2572
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2573
- code: ZodError_js_1.ZodIssueCode.invalid_intersection_types,
2574
- });
2575
- return parseUtil_js_1.INVALID;
2576
- }
2577
- if ((0, parseUtil_js_1.isDirty)(parsedLeft) || (0, parseUtil_js_1.isDirty)(parsedRight)) {
2578
- status.dirty();
2579
- }
2580
- return { status: status.value, value: merged.data };
2581
- };
2582
- if (ctx.common.async) {
2583
- return Promise.all([
2584
- this._def.left._parseAsync({
2585
- data: ctx.data,
2586
- path: ctx.path,
2587
- parent: ctx,
2588
- }),
2589
- this._def.right._parseAsync({
2590
- data: ctx.data,
2591
- path: ctx.path,
2592
- parent: ctx,
2593
- }),
2594
- ]).then(([left, right]) => handleParsed(left, right));
2595
- }
2596
- else {
2597
- return handleParsed(this._def.left._parseSync({
2598
- data: ctx.data,
2599
- path: ctx.path,
2600
- parent: ctx,
2601
- }), this._def.right._parseSync({
2602
- data: ctx.data,
2603
- path: ctx.path,
2604
- parent: ctx,
2605
- }));
2606
- }
2607
- }
2608
- }
2609
- exports.ZodIntersection = ZodIntersection;
2610
- ZodIntersection.create = (left, right, params) => {
2611
- return new ZodIntersection({
2612
- left: left,
2613
- right: right,
2614
- typeName: ZodFirstPartyTypeKind.ZodIntersection,
2615
- ...processCreateParams(params),
2616
- });
2617
- };
2618
- // type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
2619
- class ZodTuple extends ZodType {
2620
- _parse(input) {
2621
- const { status, ctx } = this._processInputParams(input);
2622
- if (ctx.parsedType !== util_js_1.ZodParsedType.array) {
2623
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2624
- code: ZodError_js_1.ZodIssueCode.invalid_type,
2625
- expected: util_js_1.ZodParsedType.array,
2626
- received: ctx.parsedType,
2627
- });
2628
- return parseUtil_js_1.INVALID;
2629
- }
2630
- if (ctx.data.length < this._def.items.length) {
2631
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2632
- code: ZodError_js_1.ZodIssueCode.too_small,
2633
- minimum: this._def.items.length,
2634
- inclusive: true,
2635
- exact: false,
2636
- type: "array",
2637
- });
2638
- return parseUtil_js_1.INVALID;
2639
- }
2640
- const rest = this._def.rest;
2641
- if (!rest && ctx.data.length > this._def.items.length) {
2642
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2643
- code: ZodError_js_1.ZodIssueCode.too_big,
2644
- maximum: this._def.items.length,
2645
- inclusive: true,
2646
- exact: false,
2647
- type: "array",
2648
- });
2649
- status.dirty();
2650
- }
2651
- const items = [...ctx.data]
2652
- .map((item, itemIndex) => {
2653
- const schema = this._def.items[itemIndex] || this._def.rest;
2654
- if (!schema)
2655
- return null;
2656
- return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
2657
- })
2658
- .filter((x) => !!x); // filter nulls
2659
- if (ctx.common.async) {
2660
- return Promise.all(items).then((results) => {
2661
- return parseUtil_js_1.ParseStatus.mergeArray(status, results);
2662
- });
2663
- }
2664
- else {
2665
- return parseUtil_js_1.ParseStatus.mergeArray(status, items);
2666
- }
2667
- }
2668
- get items() {
2669
- return this._def.items;
2670
- }
2671
- rest(rest) {
2672
- return new ZodTuple({
2673
- ...this._def,
2674
- rest,
2675
- });
2676
- }
2677
- }
2678
- exports.ZodTuple = ZodTuple;
2679
- ZodTuple.create = (schemas, params) => {
2680
- if (!Array.isArray(schemas)) {
2681
- throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
2682
- }
2683
- return new ZodTuple({
2684
- items: schemas,
2685
- typeName: ZodFirstPartyTypeKind.ZodTuple,
2686
- rest: null,
2687
- ...processCreateParams(params),
2688
- });
2689
- };
2690
- class ZodRecord extends ZodType {
2691
- get keySchema() {
2692
- return this._def.keyType;
2693
- }
2694
- get valueSchema() {
2695
- return this._def.valueType;
2696
- }
2697
- _parse(input) {
2698
- const { status, ctx } = this._processInputParams(input);
2699
- if (ctx.parsedType !== util_js_1.ZodParsedType.object) {
2700
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2701
- code: ZodError_js_1.ZodIssueCode.invalid_type,
2702
- expected: util_js_1.ZodParsedType.object,
2703
- received: ctx.parsedType,
2704
- });
2705
- return parseUtil_js_1.INVALID;
2706
- }
2707
- const pairs = [];
2708
- const keyType = this._def.keyType;
2709
- const valueType = this._def.valueType;
2710
- for (const key in ctx.data) {
2711
- pairs.push({
2712
- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),
2713
- value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),
2714
- alwaysSet: key in ctx.data,
2715
- });
2716
- }
2717
- if (ctx.common.async) {
2718
- return parseUtil_js_1.ParseStatus.mergeObjectAsync(status, pairs);
2719
- }
2720
- else {
2721
- return parseUtil_js_1.ParseStatus.mergeObjectSync(status, pairs);
2722
- }
2723
- }
2724
- get element() {
2725
- return this._def.valueType;
2726
- }
2727
- static create(first, second, third) {
2728
- if (second instanceof ZodType) {
2729
- return new ZodRecord({
2730
- keyType: first,
2731
- valueType: second,
2732
- typeName: ZodFirstPartyTypeKind.ZodRecord,
2733
- ...processCreateParams(third),
2734
- });
2735
- }
2736
- return new ZodRecord({
2737
- keyType: ZodString.create(),
2738
- valueType: first,
2739
- typeName: ZodFirstPartyTypeKind.ZodRecord,
2740
- ...processCreateParams(second),
2741
- });
2742
- }
2743
- }
2744
- exports.ZodRecord = ZodRecord;
2745
- class ZodMap extends ZodType {
2746
- get keySchema() {
2747
- return this._def.keyType;
2748
- }
2749
- get valueSchema() {
2750
- return this._def.valueType;
2751
- }
2752
- _parse(input) {
2753
- const { status, ctx } = this._processInputParams(input);
2754
- if (ctx.parsedType !== util_js_1.ZodParsedType.map) {
2755
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2756
- code: ZodError_js_1.ZodIssueCode.invalid_type,
2757
- expected: util_js_1.ZodParsedType.map,
2758
- received: ctx.parsedType,
2759
- });
2760
- return parseUtil_js_1.INVALID;
2761
- }
2762
- const keyType = this._def.keyType;
2763
- const valueType = this._def.valueType;
2764
- const pairs = [...ctx.data.entries()].map(([key, value], index) => {
2765
- return {
2766
- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])),
2767
- value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"])),
2768
- };
2769
- });
2770
- if (ctx.common.async) {
2771
- const finalMap = new Map();
2772
- return Promise.resolve().then(async () => {
2773
- for (const pair of pairs) {
2774
- const key = await pair.key;
2775
- const value = await pair.value;
2776
- if (key.status === "aborted" || value.status === "aborted") {
2777
- return parseUtil_js_1.INVALID;
2778
- }
2779
- if (key.status === "dirty" || value.status === "dirty") {
2780
- status.dirty();
2781
- }
2782
- finalMap.set(key.value, value.value);
2783
- }
2784
- return { status: status.value, value: finalMap };
2785
- });
2786
- }
2787
- else {
2788
- const finalMap = new Map();
2789
- for (const pair of pairs) {
2790
- const key = pair.key;
2791
- const value = pair.value;
2792
- if (key.status === "aborted" || value.status === "aborted") {
2793
- return parseUtil_js_1.INVALID;
2794
- }
2795
- if (key.status === "dirty" || value.status === "dirty") {
2796
- status.dirty();
2797
- }
2798
- finalMap.set(key.value, value.value);
2799
- }
2800
- return { status: status.value, value: finalMap };
2801
- }
2802
- }
2803
- }
2804
- exports.ZodMap = ZodMap;
2805
- ZodMap.create = (keyType, valueType, params) => {
2806
- return new ZodMap({
2807
- valueType,
2808
- keyType,
2809
- typeName: ZodFirstPartyTypeKind.ZodMap,
2810
- ...processCreateParams(params),
2811
- });
2812
- };
2813
- class ZodSet extends ZodType {
2814
- _parse(input) {
2815
- const { status, ctx } = this._processInputParams(input);
2816
- if (ctx.parsedType !== util_js_1.ZodParsedType.set) {
2817
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2818
- code: ZodError_js_1.ZodIssueCode.invalid_type,
2819
- expected: util_js_1.ZodParsedType.set,
2820
- received: ctx.parsedType,
2821
- });
2822
- return parseUtil_js_1.INVALID;
2823
- }
2824
- const def = this._def;
2825
- if (def.minSize !== null) {
2826
- if (ctx.data.size < def.minSize.value) {
2827
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2828
- code: ZodError_js_1.ZodIssueCode.too_small,
2829
- minimum: def.minSize.value,
2830
- type: "set",
2831
- inclusive: true,
2832
- exact: false,
2833
- message: def.minSize.message,
2834
- });
2835
- status.dirty();
2836
- }
2837
- }
2838
- if (def.maxSize !== null) {
2839
- if (ctx.data.size > def.maxSize.value) {
2840
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2841
- code: ZodError_js_1.ZodIssueCode.too_big,
2842
- maximum: def.maxSize.value,
2843
- type: "set",
2844
- inclusive: true,
2845
- exact: false,
2846
- message: def.maxSize.message,
2847
- });
2848
- status.dirty();
2849
- }
2850
- }
2851
- const valueType = this._def.valueType;
2852
- function finalizeSet(elements) {
2853
- const parsedSet = new Set();
2854
- for (const element of elements) {
2855
- if (element.status === "aborted")
2856
- return parseUtil_js_1.INVALID;
2857
- if (element.status === "dirty")
2858
- status.dirty();
2859
- parsedSet.add(element.value);
2860
- }
2861
- return { status: status.value, value: parsedSet };
2862
- }
2863
- const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));
2864
- if (ctx.common.async) {
2865
- return Promise.all(elements).then((elements) => finalizeSet(elements));
2866
- }
2867
- else {
2868
- return finalizeSet(elements);
2869
- }
2870
- }
2871
- min(minSize, message) {
2872
- return new ZodSet({
2873
- ...this._def,
2874
- minSize: { value: minSize, message: errorUtil_js_1.errorUtil.toString(message) },
2875
- });
2876
- }
2877
- max(maxSize, message) {
2878
- return new ZodSet({
2879
- ...this._def,
2880
- maxSize: { value: maxSize, message: errorUtil_js_1.errorUtil.toString(message) },
2881
- });
2882
- }
2883
- size(size, message) {
2884
- return this.min(size, message).max(size, message);
2885
- }
2886
- nonempty(message) {
2887
- return this.min(1, message);
2888
- }
2889
- }
2890
- exports.ZodSet = ZodSet;
2891
- ZodSet.create = (valueType, params) => {
2892
- return new ZodSet({
2893
- valueType,
2894
- minSize: null,
2895
- maxSize: null,
2896
- typeName: ZodFirstPartyTypeKind.ZodSet,
2897
- ...processCreateParams(params),
2898
- });
2899
- };
2900
- class ZodFunction extends ZodType {
2901
- constructor() {
2902
- super(...arguments);
2903
- this.validate = this.implement;
2904
- }
2905
- _parse(input) {
2906
- const { ctx } = this._processInputParams(input);
2907
- if (ctx.parsedType !== util_js_1.ZodParsedType.function) {
2908
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
2909
- code: ZodError_js_1.ZodIssueCode.invalid_type,
2910
- expected: util_js_1.ZodParsedType.function,
2911
- received: ctx.parsedType,
2912
- });
2913
- return parseUtil_js_1.INVALID;
2914
- }
2915
- function makeArgsIssue(args, error) {
2916
- return (0, parseUtil_js_1.makeIssue)({
2917
- data: args,
2918
- path: ctx.path,
2919
- errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, (0, errors_js_1.getErrorMap)(), errors_js_1.defaultErrorMap].filter((x) => !!x),
2920
- issueData: {
2921
- code: ZodError_js_1.ZodIssueCode.invalid_arguments,
2922
- argumentsError: error,
2923
- },
2924
- });
2925
- }
2926
- function makeReturnsIssue(returns, error) {
2927
- return (0, parseUtil_js_1.makeIssue)({
2928
- data: returns,
2929
- path: ctx.path,
2930
- errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, (0, errors_js_1.getErrorMap)(), errors_js_1.defaultErrorMap].filter((x) => !!x),
2931
- issueData: {
2932
- code: ZodError_js_1.ZodIssueCode.invalid_return_type,
2933
- returnTypeError: error,
2934
- },
2935
- });
2936
- }
2937
- const params = { errorMap: ctx.common.contextualErrorMap };
2938
- const fn = ctx.data;
2939
- if (this._def.returns instanceof ZodPromise) {
2940
- // Would love a way to avoid disabling this rule, but we need
2941
- // an alias (using an arrow function was what caused 2651).
2942
- // eslint-disable-next-line @typescript-eslint/no-this-alias
2943
- const me = this;
2944
- return (0, parseUtil_js_1.OK)(async function (...args) {
2945
- const error = new ZodError_js_1.ZodError([]);
2946
- const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
2947
- error.addIssue(makeArgsIssue(args, e));
2948
- throw error;
2949
- });
2950
- const result = await Reflect.apply(fn, this, parsedArgs);
2951
- const parsedReturns = await me._def.returns._def.type
2952
- .parseAsync(result, params)
2953
- .catch((e) => {
2954
- error.addIssue(makeReturnsIssue(result, e));
2955
- throw error;
2956
- });
2957
- return parsedReturns;
2958
- });
2959
- }
2960
- else {
2961
- // Would love a way to avoid disabling this rule, but we need
2962
- // an alias (using an arrow function was what caused 2651).
2963
- // eslint-disable-next-line @typescript-eslint/no-this-alias
2964
- const me = this;
2965
- return (0, parseUtil_js_1.OK)(function (...args) {
2966
- const parsedArgs = me._def.args.safeParse(args, params);
2967
- if (!parsedArgs.success) {
2968
- throw new ZodError_js_1.ZodError([makeArgsIssue(args, parsedArgs.error)]);
2969
- }
2970
- const result = Reflect.apply(fn, this, parsedArgs.data);
2971
- const parsedReturns = me._def.returns.safeParse(result, params);
2972
- if (!parsedReturns.success) {
2973
- throw new ZodError_js_1.ZodError([makeReturnsIssue(result, parsedReturns.error)]);
2974
- }
2975
- return parsedReturns.data;
2976
- });
2977
- }
2978
- }
2979
- parameters() {
2980
- return this._def.args;
2981
- }
2982
- returnType() {
2983
- return this._def.returns;
2984
- }
2985
- args(...items) {
2986
- return new ZodFunction({
2987
- ...this._def,
2988
- args: ZodTuple.create(items).rest(ZodUnknown.create()),
2989
- });
2990
- }
2991
- returns(returnType) {
2992
- return new ZodFunction({
2993
- ...this._def,
2994
- returns: returnType,
2995
- });
2996
- }
2997
- implement(func) {
2998
- const validatedFunc = this.parse(func);
2999
- return validatedFunc;
3000
- }
3001
- strictImplement(func) {
3002
- const validatedFunc = this.parse(func);
3003
- return validatedFunc;
3004
- }
3005
- static create(args, returns, params) {
3006
- return new ZodFunction({
3007
- args: (args ? args : ZodTuple.create([]).rest(ZodUnknown.create())),
3008
- returns: returns || ZodUnknown.create(),
3009
- typeName: ZodFirstPartyTypeKind.ZodFunction,
3010
- ...processCreateParams(params),
3011
- });
3012
- }
3013
- }
3014
- exports.ZodFunction = ZodFunction;
3015
- class ZodLazy extends ZodType {
3016
- get schema() {
3017
- return this._def.getter();
3018
- }
3019
- _parse(input) {
3020
- const { ctx } = this._processInputParams(input);
3021
- const lazySchema = this._def.getter();
3022
- return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });
3023
- }
3024
- }
3025
- exports.ZodLazy = ZodLazy;
3026
- ZodLazy.create = (getter, params) => {
3027
- return new ZodLazy({
3028
- getter: getter,
3029
- typeName: ZodFirstPartyTypeKind.ZodLazy,
3030
- ...processCreateParams(params),
3031
- });
3032
- };
3033
- class ZodLiteral extends ZodType {
3034
- _parse(input) {
3035
- if (input.data !== this._def.value) {
3036
- const ctx = this._getOrReturnCtx(input);
3037
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
3038
- received: ctx.data,
3039
- code: ZodError_js_1.ZodIssueCode.invalid_literal,
3040
- expected: this._def.value,
3041
- });
3042
- return parseUtil_js_1.INVALID;
3043
- }
3044
- return { status: "valid", value: input.data };
3045
- }
3046
- get value() {
3047
- return this._def.value;
3048
- }
3049
- }
3050
- exports.ZodLiteral = ZodLiteral;
3051
- ZodLiteral.create = (value, params) => {
3052
- return new ZodLiteral({
3053
- value: value,
3054
- typeName: ZodFirstPartyTypeKind.ZodLiteral,
3055
- ...processCreateParams(params),
3056
- });
3057
- };
3058
- function createZodEnum(values, params) {
3059
- return new ZodEnum({
3060
- values,
3061
- typeName: ZodFirstPartyTypeKind.ZodEnum,
3062
- ...processCreateParams(params),
3063
- });
3064
- }
3065
- class ZodEnum extends ZodType {
3066
- _parse(input) {
3067
- if (typeof input.data !== "string") {
3068
- const ctx = this._getOrReturnCtx(input);
3069
- const expectedValues = this._def.values;
3070
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
3071
- expected: util_js_1.util.joinValues(expectedValues),
3072
- received: ctx.parsedType,
3073
- code: ZodError_js_1.ZodIssueCode.invalid_type,
3074
- });
3075
- return parseUtil_js_1.INVALID;
3076
- }
3077
- if (!this._cache) {
3078
- this._cache = new Set(this._def.values);
3079
- }
3080
- if (!this._cache.has(input.data)) {
3081
- const ctx = this._getOrReturnCtx(input);
3082
- const expectedValues = this._def.values;
3083
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
3084
- received: ctx.data,
3085
- code: ZodError_js_1.ZodIssueCode.invalid_enum_value,
3086
- options: expectedValues,
3087
- });
3088
- return parseUtil_js_1.INVALID;
3089
- }
3090
- return (0, parseUtil_js_1.OK)(input.data);
3091
- }
3092
- get options() {
3093
- return this._def.values;
3094
- }
3095
- get enum() {
3096
- const enumValues = {};
3097
- for (const val of this._def.values) {
3098
- enumValues[val] = val;
3099
- }
3100
- return enumValues;
3101
- }
3102
- get Values() {
3103
- const enumValues = {};
3104
- for (const val of this._def.values) {
3105
- enumValues[val] = val;
3106
- }
3107
- return enumValues;
3108
- }
3109
- get Enum() {
3110
- const enumValues = {};
3111
- for (const val of this._def.values) {
3112
- enumValues[val] = val;
3113
- }
3114
- return enumValues;
3115
- }
3116
- extract(values, newDef = this._def) {
3117
- return ZodEnum.create(values, {
3118
- ...this._def,
3119
- ...newDef,
3120
- });
3121
- }
3122
- exclude(values, newDef = this._def) {
3123
- return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {
3124
- ...this._def,
3125
- ...newDef,
3126
- });
3127
- }
3128
- }
3129
- exports.ZodEnum = ZodEnum;
3130
- ZodEnum.create = createZodEnum;
3131
- class ZodNativeEnum extends ZodType {
3132
- _parse(input) {
3133
- const nativeEnumValues = util_js_1.util.getValidEnumValues(this._def.values);
3134
- const ctx = this._getOrReturnCtx(input);
3135
- if (ctx.parsedType !== util_js_1.ZodParsedType.string && ctx.parsedType !== util_js_1.ZodParsedType.number) {
3136
- const expectedValues = util_js_1.util.objectValues(nativeEnumValues);
3137
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
3138
- expected: util_js_1.util.joinValues(expectedValues),
3139
- received: ctx.parsedType,
3140
- code: ZodError_js_1.ZodIssueCode.invalid_type,
3141
- });
3142
- return parseUtil_js_1.INVALID;
3143
- }
3144
- if (!this._cache) {
3145
- this._cache = new Set(util_js_1.util.getValidEnumValues(this._def.values));
3146
- }
3147
- if (!this._cache.has(input.data)) {
3148
- const expectedValues = util_js_1.util.objectValues(nativeEnumValues);
3149
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
3150
- received: ctx.data,
3151
- code: ZodError_js_1.ZodIssueCode.invalid_enum_value,
3152
- options: expectedValues,
3153
- });
3154
- return parseUtil_js_1.INVALID;
3155
- }
3156
- return (0, parseUtil_js_1.OK)(input.data);
3157
- }
3158
- get enum() {
3159
- return this._def.values;
3160
- }
3161
- }
3162
- exports.ZodNativeEnum = ZodNativeEnum;
3163
- ZodNativeEnum.create = (values, params) => {
3164
- return new ZodNativeEnum({
3165
- values: values,
3166
- typeName: ZodFirstPartyTypeKind.ZodNativeEnum,
3167
- ...processCreateParams(params),
3168
- });
3169
- };
3170
- class ZodPromise extends ZodType {
3171
- unwrap() {
3172
- return this._def.type;
3173
- }
3174
- _parse(input) {
3175
- const { ctx } = this._processInputParams(input);
3176
- if (ctx.parsedType !== util_js_1.ZodParsedType.promise && ctx.common.async === false) {
3177
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
3178
- code: ZodError_js_1.ZodIssueCode.invalid_type,
3179
- expected: util_js_1.ZodParsedType.promise,
3180
- received: ctx.parsedType,
3181
- });
3182
- return parseUtil_js_1.INVALID;
3183
- }
3184
- const promisified = ctx.parsedType === util_js_1.ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data);
3185
- return (0, parseUtil_js_1.OK)(promisified.then((data) => {
3186
- return this._def.type.parseAsync(data, {
3187
- path: ctx.path,
3188
- errorMap: ctx.common.contextualErrorMap,
3189
- });
3190
- }));
3191
- }
3192
- }
3193
- exports.ZodPromise = ZodPromise;
3194
- ZodPromise.create = (schema, params) => {
3195
- return new ZodPromise({
3196
- type: schema,
3197
- typeName: ZodFirstPartyTypeKind.ZodPromise,
3198
- ...processCreateParams(params),
3199
- });
3200
- };
3201
- class ZodEffects extends ZodType {
3202
- innerType() {
3203
- return this._def.schema;
3204
- }
3205
- sourceType() {
3206
- return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects
3207
- ? this._def.schema.sourceType()
3208
- : this._def.schema;
3209
- }
3210
- _parse(input) {
3211
- const { status, ctx } = this._processInputParams(input);
3212
- const effect = this._def.effect || null;
3213
- const checkCtx = {
3214
- addIssue: (arg) => {
3215
- (0, parseUtil_js_1.addIssueToContext)(ctx, arg);
3216
- if (arg.fatal) {
3217
- status.abort();
3218
- }
3219
- else {
3220
- status.dirty();
3221
- }
3222
- },
3223
- get path() {
3224
- return ctx.path;
3225
- },
3226
- };
3227
- checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
3228
- if (effect.type === "preprocess") {
3229
- const processed = effect.transform(ctx.data, checkCtx);
3230
- if (ctx.common.async) {
3231
- return Promise.resolve(processed).then(async (processed) => {
3232
- if (status.value === "aborted")
3233
- return parseUtil_js_1.INVALID;
3234
- const result = await this._def.schema._parseAsync({
3235
- data: processed,
3236
- path: ctx.path,
3237
- parent: ctx,
3238
- });
3239
- if (result.status === "aborted")
3240
- return parseUtil_js_1.INVALID;
3241
- if (result.status === "dirty")
3242
- return (0, parseUtil_js_1.DIRTY)(result.value);
3243
- if (status.value === "dirty")
3244
- return (0, parseUtil_js_1.DIRTY)(result.value);
3245
- return result;
3246
- });
3247
- }
3248
- else {
3249
- if (status.value === "aborted")
3250
- return parseUtil_js_1.INVALID;
3251
- const result = this._def.schema._parseSync({
3252
- data: processed,
3253
- path: ctx.path,
3254
- parent: ctx,
3255
- });
3256
- if (result.status === "aborted")
3257
- return parseUtil_js_1.INVALID;
3258
- if (result.status === "dirty")
3259
- return (0, parseUtil_js_1.DIRTY)(result.value);
3260
- if (status.value === "dirty")
3261
- return (0, parseUtil_js_1.DIRTY)(result.value);
3262
- return result;
3263
- }
3264
- }
3265
- if (effect.type === "refinement") {
3266
- const executeRefinement = (acc) => {
3267
- const result = effect.refinement(acc, checkCtx);
3268
- if (ctx.common.async) {
3269
- return Promise.resolve(result);
3270
- }
3271
- if (result instanceof Promise) {
3272
- throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
3273
- }
3274
- return acc;
3275
- };
3276
- if (ctx.common.async === false) {
3277
- const inner = this._def.schema._parseSync({
3278
- data: ctx.data,
3279
- path: ctx.path,
3280
- parent: ctx,
3281
- });
3282
- if (inner.status === "aborted")
3283
- return parseUtil_js_1.INVALID;
3284
- if (inner.status === "dirty")
3285
- status.dirty();
3286
- // return value is ignored
3287
- executeRefinement(inner.value);
3288
- return { status: status.value, value: inner.value };
3289
- }
3290
- else {
3291
- return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => {
3292
- if (inner.status === "aborted")
3293
- return parseUtil_js_1.INVALID;
3294
- if (inner.status === "dirty")
3295
- status.dirty();
3296
- return executeRefinement(inner.value).then(() => {
3297
- return { status: status.value, value: inner.value };
3298
- });
3299
- });
3300
- }
3301
- }
3302
- if (effect.type === "transform") {
3303
- if (ctx.common.async === false) {
3304
- const base = this._def.schema._parseSync({
3305
- data: ctx.data,
3306
- path: ctx.path,
3307
- parent: ctx,
3308
- });
3309
- if (!(0, parseUtil_js_1.isValid)(base))
3310
- return parseUtil_js_1.INVALID;
3311
- const result = effect.transform(base.value, checkCtx);
3312
- if (result instanceof Promise) {
3313
- throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
3314
- }
3315
- return { status: status.value, value: result };
3316
- }
3317
- else {
3318
- return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
3319
- if (!(0, parseUtil_js_1.isValid)(base))
3320
- return parseUtil_js_1.INVALID;
3321
- return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
3322
- status: status.value,
3323
- value: result,
3324
- }));
3325
- });
3326
- }
3327
- }
3328
- util_js_1.util.assertNever(effect);
3329
- }
3330
- }
3331
- exports.ZodEffects = ZodEffects;
3332
- exports.ZodTransformer = ZodEffects;
3333
- ZodEffects.create = (schema, effect, params) => {
3334
- return new ZodEffects({
3335
- schema,
3336
- typeName: ZodFirstPartyTypeKind.ZodEffects,
3337
- effect,
3338
- ...processCreateParams(params),
3339
- });
3340
- };
3341
- ZodEffects.createWithPreprocess = (preprocess, schema, params) => {
3342
- return new ZodEffects({
3343
- schema,
3344
- effect: { type: "preprocess", transform: preprocess },
3345
- typeName: ZodFirstPartyTypeKind.ZodEffects,
3346
- ...processCreateParams(params),
3347
- });
3348
- };
3349
- class ZodOptional extends ZodType {
3350
- _parse(input) {
3351
- const parsedType = this._getType(input);
3352
- if (parsedType === util_js_1.ZodParsedType.undefined) {
3353
- return (0, parseUtil_js_1.OK)(undefined);
3354
- }
3355
- return this._def.innerType._parse(input);
3356
- }
3357
- unwrap() {
3358
- return this._def.innerType;
3359
- }
3360
- }
3361
- exports.ZodOptional = ZodOptional;
3362
- ZodOptional.create = (type, params) => {
3363
- return new ZodOptional({
3364
- innerType: type,
3365
- typeName: ZodFirstPartyTypeKind.ZodOptional,
3366
- ...processCreateParams(params),
3367
- });
3368
- };
3369
- class ZodNullable extends ZodType {
3370
- _parse(input) {
3371
- const parsedType = this._getType(input);
3372
- if (parsedType === util_js_1.ZodParsedType.null) {
3373
- return (0, parseUtil_js_1.OK)(null);
3374
- }
3375
- return this._def.innerType._parse(input);
3376
- }
3377
- unwrap() {
3378
- return this._def.innerType;
3379
- }
3380
- }
3381
- exports.ZodNullable = ZodNullable;
3382
- ZodNullable.create = (type, params) => {
3383
- return new ZodNullable({
3384
- innerType: type,
3385
- typeName: ZodFirstPartyTypeKind.ZodNullable,
3386
- ...processCreateParams(params),
3387
- });
3388
- };
3389
- class ZodDefault extends ZodType {
3390
- _parse(input) {
3391
- const { ctx } = this._processInputParams(input);
3392
- let data = ctx.data;
3393
- if (ctx.parsedType === util_js_1.ZodParsedType.undefined) {
3394
- data = this._def.defaultValue();
3395
- }
3396
- return this._def.innerType._parse({
3397
- data,
3398
- path: ctx.path,
3399
- parent: ctx,
3400
- });
3401
- }
3402
- removeDefault() {
3403
- return this._def.innerType;
3404
- }
3405
- }
3406
- exports.ZodDefault = ZodDefault;
3407
- ZodDefault.create = (type, params) => {
3408
- return new ZodDefault({
3409
- innerType: type,
3410
- typeName: ZodFirstPartyTypeKind.ZodDefault,
3411
- defaultValue: typeof params.default === "function" ? params.default : () => params.default,
3412
- ...processCreateParams(params),
3413
- });
3414
- };
3415
- class ZodCatch extends ZodType {
3416
- _parse(input) {
3417
- const { ctx } = this._processInputParams(input);
3418
- // newCtx is used to not collect issues from inner types in ctx
3419
- const newCtx = {
3420
- ...ctx,
3421
- common: {
3422
- ...ctx.common,
3423
- issues: [],
3424
- },
3425
- };
3426
- const result = this._def.innerType._parse({
3427
- data: newCtx.data,
3428
- path: newCtx.path,
3429
- parent: {
3430
- ...newCtx,
3431
- },
3432
- });
3433
- if ((0, parseUtil_js_1.isAsync)(result)) {
3434
- return result.then((result) => {
3435
- return {
3436
- status: "valid",
3437
- value: result.status === "valid"
3438
- ? result.value
3439
- : this._def.catchValue({
3440
- get error() {
3441
- return new ZodError_js_1.ZodError(newCtx.common.issues);
3442
- },
3443
- input: newCtx.data,
3444
- }),
3445
- };
3446
- });
3447
- }
3448
- else {
3449
- return {
3450
- status: "valid",
3451
- value: result.status === "valid"
3452
- ? result.value
3453
- : this._def.catchValue({
3454
- get error() {
3455
- return new ZodError_js_1.ZodError(newCtx.common.issues);
3456
- },
3457
- input: newCtx.data,
3458
- }),
3459
- };
3460
- }
3461
- }
3462
- removeCatch() {
3463
- return this._def.innerType;
3464
- }
3465
- }
3466
- exports.ZodCatch = ZodCatch;
3467
- ZodCatch.create = (type, params) => {
3468
- return new ZodCatch({
3469
- innerType: type,
3470
- typeName: ZodFirstPartyTypeKind.ZodCatch,
3471
- catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,
3472
- ...processCreateParams(params),
3473
- });
3474
- };
3475
- class ZodNaN extends ZodType {
3476
- _parse(input) {
3477
- const parsedType = this._getType(input);
3478
- if (parsedType !== util_js_1.ZodParsedType.nan) {
3479
- const ctx = this._getOrReturnCtx(input);
3480
- (0, parseUtil_js_1.addIssueToContext)(ctx, {
3481
- code: ZodError_js_1.ZodIssueCode.invalid_type,
3482
- expected: util_js_1.ZodParsedType.nan,
3483
- received: ctx.parsedType,
3484
- });
3485
- return parseUtil_js_1.INVALID;
3486
- }
3487
- return { status: "valid", value: input.data };
3488
- }
3489
- }
3490
- exports.ZodNaN = ZodNaN;
3491
- ZodNaN.create = (params) => {
3492
- return new ZodNaN({
3493
- typeName: ZodFirstPartyTypeKind.ZodNaN,
3494
- ...processCreateParams(params),
3495
- });
3496
- };
3497
- exports.BRAND = Symbol("zod_brand");
3498
- class ZodBranded extends ZodType {
3499
- _parse(input) {
3500
- const { ctx } = this._processInputParams(input);
3501
- const data = ctx.data;
3502
- return this._def.type._parse({
3503
- data,
3504
- path: ctx.path,
3505
- parent: ctx,
3506
- });
3507
- }
3508
- unwrap() {
3509
- return this._def.type;
3510
- }
3511
- }
3512
- exports.ZodBranded = ZodBranded;
3513
- class ZodPipeline extends ZodType {
3514
- _parse(input) {
3515
- const { status, ctx } = this._processInputParams(input);
3516
- if (ctx.common.async) {
3517
- const handleAsync = async () => {
3518
- const inResult = await this._def.in._parseAsync({
3519
- data: ctx.data,
3520
- path: ctx.path,
3521
- parent: ctx,
3522
- });
3523
- if (inResult.status === "aborted")
3524
- return parseUtil_js_1.INVALID;
3525
- if (inResult.status === "dirty") {
3526
- status.dirty();
3527
- return (0, parseUtil_js_1.DIRTY)(inResult.value);
3528
- }
3529
- else {
3530
- return this._def.out._parseAsync({
3531
- data: inResult.value,
3532
- path: ctx.path,
3533
- parent: ctx,
3534
- });
3535
- }
3536
- };
3537
- return handleAsync();
3538
- }
3539
- else {
3540
- const inResult = this._def.in._parseSync({
3541
- data: ctx.data,
3542
- path: ctx.path,
3543
- parent: ctx,
3544
- });
3545
- if (inResult.status === "aborted")
3546
- return parseUtil_js_1.INVALID;
3547
- if (inResult.status === "dirty") {
3548
- status.dirty();
3549
- return {
3550
- status: "dirty",
3551
- value: inResult.value,
3552
- };
3553
- }
3554
- else {
3555
- return this._def.out._parseSync({
3556
- data: inResult.value,
3557
- path: ctx.path,
3558
- parent: ctx,
3559
- });
3560
- }
3561
- }
3562
- }
3563
- static create(a, b) {
3564
- return new ZodPipeline({
3565
- in: a,
3566
- out: b,
3567
- typeName: ZodFirstPartyTypeKind.ZodPipeline,
3568
- });
3569
- }
3570
- }
3571
- exports.ZodPipeline = ZodPipeline;
3572
- class ZodReadonly extends ZodType {
3573
- _parse(input) {
3574
- const result = this._def.innerType._parse(input);
3575
- const freeze = (data) => {
3576
- if ((0, parseUtil_js_1.isValid)(data)) {
3577
- data.value = Object.freeze(data.value);
3578
- }
3579
- return data;
3580
- };
3581
- return (0, parseUtil_js_1.isAsync)(result) ? result.then((data) => freeze(data)) : freeze(result);
3582
- }
3583
- unwrap() {
3584
- return this._def.innerType;
3585
- }
3586
- }
3587
- exports.ZodReadonly = ZodReadonly;
3588
- ZodReadonly.create = (type, params) => {
3589
- return new ZodReadonly({
3590
- innerType: type,
3591
- typeName: ZodFirstPartyTypeKind.ZodReadonly,
3592
- ...processCreateParams(params),
3593
- });
3594
- };
3595
- ////////////////////////////////////////
3596
- ////////////////////////////////////////
3597
- ////////// //////////
3598
- ////////// z.custom //////////
3599
- ////////// //////////
3600
- ////////////////////////////////////////
3601
- ////////////////////////////////////////
3602
- function cleanParams(params, data) {
3603
- const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
3604
- const p2 = typeof p === "string" ? { message: p } : p;
3605
- return p2;
3606
- }
3607
- function custom(check, _params = {},
3608
- /**
3609
- * @deprecated
3610
- *
3611
- * Pass `fatal` into the params object instead:
3612
- *
3613
- * ```ts
3614
- * z.string().custom((val) => val.length > 5, { fatal: false })
3615
- * ```
3616
- *
3617
- */
3618
- fatal) {
3619
- if (check)
3620
- return ZodAny.create().superRefine((data, ctx) => {
3621
- const r = check(data);
3622
- if (r instanceof Promise) {
3623
- return r.then((r) => {
3624
- if (!r) {
3625
- const params = cleanParams(_params, data);
3626
- const _fatal = params.fatal ?? fatal ?? true;
3627
- ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
3628
- }
3629
- });
3630
- }
3631
- if (!r) {
3632
- const params = cleanParams(_params, data);
3633
- const _fatal = params.fatal ?? fatal ?? true;
3634
- ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
3635
- }
3636
- return;
3637
- });
3638
- return ZodAny.create();
3639
- }
3640
- exports.late = {
3641
- object: ZodObject.lazycreate,
3642
- };
3643
- var ZodFirstPartyTypeKind;
3644
- (function (ZodFirstPartyTypeKind) {
3645
- ZodFirstPartyTypeKind["ZodString"] = "ZodString";
3646
- ZodFirstPartyTypeKind["ZodNumber"] = "ZodNumber";
3647
- ZodFirstPartyTypeKind["ZodNaN"] = "ZodNaN";
3648
- ZodFirstPartyTypeKind["ZodBigInt"] = "ZodBigInt";
3649
- ZodFirstPartyTypeKind["ZodBoolean"] = "ZodBoolean";
3650
- ZodFirstPartyTypeKind["ZodDate"] = "ZodDate";
3651
- ZodFirstPartyTypeKind["ZodSymbol"] = "ZodSymbol";
3652
- ZodFirstPartyTypeKind["ZodUndefined"] = "ZodUndefined";
3653
- ZodFirstPartyTypeKind["ZodNull"] = "ZodNull";
3654
- ZodFirstPartyTypeKind["ZodAny"] = "ZodAny";
3655
- ZodFirstPartyTypeKind["ZodUnknown"] = "ZodUnknown";
3656
- ZodFirstPartyTypeKind["ZodNever"] = "ZodNever";
3657
- ZodFirstPartyTypeKind["ZodVoid"] = "ZodVoid";
3658
- ZodFirstPartyTypeKind["ZodArray"] = "ZodArray";
3659
- ZodFirstPartyTypeKind["ZodObject"] = "ZodObject";
3660
- ZodFirstPartyTypeKind["ZodUnion"] = "ZodUnion";
3661
- ZodFirstPartyTypeKind["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";
3662
- ZodFirstPartyTypeKind["ZodIntersection"] = "ZodIntersection";
3663
- ZodFirstPartyTypeKind["ZodTuple"] = "ZodTuple";
3664
- ZodFirstPartyTypeKind["ZodRecord"] = "ZodRecord";
3665
- ZodFirstPartyTypeKind["ZodMap"] = "ZodMap";
3666
- ZodFirstPartyTypeKind["ZodSet"] = "ZodSet";
3667
- ZodFirstPartyTypeKind["ZodFunction"] = "ZodFunction";
3668
- ZodFirstPartyTypeKind["ZodLazy"] = "ZodLazy";
3669
- ZodFirstPartyTypeKind["ZodLiteral"] = "ZodLiteral";
3670
- ZodFirstPartyTypeKind["ZodEnum"] = "ZodEnum";
3671
- ZodFirstPartyTypeKind["ZodEffects"] = "ZodEffects";
3672
- ZodFirstPartyTypeKind["ZodNativeEnum"] = "ZodNativeEnum";
3673
- ZodFirstPartyTypeKind["ZodOptional"] = "ZodOptional";
3674
- ZodFirstPartyTypeKind["ZodNullable"] = "ZodNullable";
3675
- ZodFirstPartyTypeKind["ZodDefault"] = "ZodDefault";
3676
- ZodFirstPartyTypeKind["ZodCatch"] = "ZodCatch";
3677
- ZodFirstPartyTypeKind["ZodPromise"] = "ZodPromise";
3678
- ZodFirstPartyTypeKind["ZodBranded"] = "ZodBranded";
3679
- ZodFirstPartyTypeKind["ZodPipeline"] = "ZodPipeline";
3680
- ZodFirstPartyTypeKind["ZodReadonly"] = "ZodReadonly";
3681
- })(ZodFirstPartyTypeKind || (exports.ZodFirstPartyTypeKind = ZodFirstPartyTypeKind = {}));
3682
- // requires TS 4.4+
3683
- class Class {
3684
- constructor(..._) { }
3685
- }
3686
- const instanceOfType = (
3687
- // const instanceOfType = <T extends new (...args: any[]) => any>(
3688
- cls, params = {
3689
- message: `Input not instance of ${cls.name}`,
3690
- }) => custom((data) => data instanceof cls, params);
3691
- exports.instanceof = instanceOfType;
3692
- const stringType = ZodString.create;
3693
- exports.string = stringType;
3694
- const numberType = ZodNumber.create;
3695
- exports.number = numberType;
3696
- const nanType = ZodNaN.create;
3697
- exports.nan = nanType;
3698
- const bigIntType = ZodBigInt.create;
3699
- exports.bigint = bigIntType;
3700
- const booleanType = ZodBoolean.create;
3701
- exports.boolean = booleanType;
3702
- const dateType = ZodDate.create;
3703
- exports.date = dateType;
3704
- const symbolType = ZodSymbol.create;
3705
- exports.symbol = symbolType;
3706
- const undefinedType = ZodUndefined.create;
3707
- exports.undefined = undefinedType;
3708
- const nullType = ZodNull.create;
3709
- exports.null = nullType;
3710
- const anyType = ZodAny.create;
3711
- exports.any = anyType;
3712
- const unknownType = ZodUnknown.create;
3713
- exports.unknown = unknownType;
3714
- const neverType = ZodNever.create;
3715
- exports.never = neverType;
3716
- const voidType = ZodVoid.create;
3717
- exports.void = voidType;
3718
- const arrayType = ZodArray.create;
3719
- exports.array = arrayType;
3720
- const objectType = ZodObject.create;
3721
- exports.object = objectType;
3722
- const strictObjectType = ZodObject.strictCreate;
3723
- exports.strictObject = strictObjectType;
3724
- const unionType = ZodUnion.create;
3725
- exports.union = unionType;
3726
- const discriminatedUnionType = ZodDiscriminatedUnion.create;
3727
- exports.discriminatedUnion = discriminatedUnionType;
3728
- const intersectionType = ZodIntersection.create;
3729
- exports.intersection = intersectionType;
3730
- const tupleType = ZodTuple.create;
3731
- exports.tuple = tupleType;
3732
- const recordType = ZodRecord.create;
3733
- exports.record = recordType;
3734
- const mapType = ZodMap.create;
3735
- exports.map = mapType;
3736
- const setType = ZodSet.create;
3737
- exports.set = setType;
3738
- const functionType = ZodFunction.create;
3739
- exports.function = functionType;
3740
- const lazyType = ZodLazy.create;
3741
- exports.lazy = lazyType;
3742
- const literalType = ZodLiteral.create;
3743
- exports.literal = literalType;
3744
- const enumType = ZodEnum.create;
3745
- exports.enum = enumType;
3746
- const nativeEnumType = ZodNativeEnum.create;
3747
- exports.nativeEnum = nativeEnumType;
3748
- const promiseType = ZodPromise.create;
3749
- exports.promise = promiseType;
3750
- const effectsType = ZodEffects.create;
3751
- exports.effect = effectsType;
3752
- exports.transformer = effectsType;
3753
- const optionalType = ZodOptional.create;
3754
- exports.optional = optionalType;
3755
- const nullableType = ZodNullable.create;
3756
- exports.nullable = nullableType;
3757
- const preprocessType = ZodEffects.createWithPreprocess;
3758
- exports.preprocess = preprocessType;
3759
- const pipelineType = ZodPipeline.create;
3760
- exports.pipeline = pipelineType;
3761
- const ostring = () => stringType().optional();
3762
- exports.ostring = ostring;
3763
- const onumber = () => numberType().optional();
3764
- exports.onumber = onumber;
3765
- const oboolean = () => booleanType().optional();
3766
- exports.oboolean = oboolean;
3767
- exports.coerce = {
3768
- string: ((arg) => ZodString.create({ ...arg, coerce: true })),
3769
- number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
3770
- boolean: ((arg) => ZodBoolean.create({
3771
- ...arg,
3772
- coerce: true,
3773
- })),
3774
- bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
3775
- date: ((arg) => ZodDate.create({ ...arg, coerce: true })),
3776
- };
3777
- exports.NEVER = parseUtil_js_1.INVALID;