create-croissant 0.1.28 → 0.1.30

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 (834) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +4 -1
  3. package/template/apps/desktop/.editorconfig +9 -0
  4. package/template/apps/desktop/.prettierignore +6 -0
  5. package/template/apps/desktop/.vscode/extensions.json +3 -0
  6. package/template/apps/desktop/.vscode/launch.json +39 -0
  7. package/template/apps/desktop/.vscode/settings.json +11 -0
  8. package/template/apps/desktop/README.md +34 -0
  9. package/template/apps/desktop/build/entitlements.mac.plist +12 -0
  10. package/template/apps/desktop/build/icon.icns +0 -0
  11. package/template/apps/desktop/build/icon.ico +0 -0
  12. package/template/apps/desktop/build/icon.png +0 -0
  13. package/template/apps/desktop/dev-app-update.yml +3 -0
  14. package/template/apps/desktop/electron-builder.yml +45 -0
  15. package/template/apps/desktop/electron.vite.config.ts +16 -0
  16. package/template/apps/desktop/eslint.config.ts +8 -0
  17. package/template/apps/desktop/package.json +49 -0
  18. package/template/apps/desktop/prettier.config.ts +3 -0
  19. package/template/apps/desktop/resources/icon.png +0 -0
  20. package/template/apps/desktop/src/main/index.ts +74 -0
  21. package/template/apps/desktop/src/preload/index.d.ts +8 -0
  22. package/template/apps/desktop/src/preload/index.ts +22 -0
  23. package/template/apps/desktop/src/renderer/index.html +17 -0
  24. package/template/apps/desktop/src/renderer/src/App.tsx +35 -0
  25. package/template/apps/desktop/src/renderer/src/assets/base.css +67 -0
  26. package/template/apps/desktop/src/renderer/src/assets/electron.svg +10 -0
  27. package/template/apps/desktop/src/renderer/src/assets/main.css +171 -0
  28. package/template/apps/desktop/src/renderer/src/assets/wavy-lines.svg +25 -0
  29. package/template/apps/desktop/src/renderer/src/components/Versions.tsx +15 -0
  30. package/template/apps/desktop/src/renderer/src/env.d.ts +1 -0
  31. package/template/apps/desktop/src/renderer/src/main.tsx +11 -0
  32. package/template/apps/desktop/tsconfig.json +9 -0
  33. package/template/apps/desktop/tsconfig.node.json +8 -0
  34. package/template/apps/desktop/tsconfig.web.json +21 -0
  35. package/template/apps/mobile/.vscode/extensions.json +1 -0
  36. package/template/apps/mobile/.vscode/settings.json +7 -0
  37. package/template/apps/mobile/README.md +50 -0
  38. package/template/apps/mobile/app/(tabs)/_layout.tsx +35 -0
  39. package/template/apps/mobile/app/(tabs)/explore.tsx +112 -0
  40. package/template/apps/mobile/app/(tabs)/index.tsx +98 -0
  41. package/template/apps/mobile/app/_layout.tsx +24 -0
  42. package/template/apps/mobile/app/modal.tsx +29 -0
  43. package/template/apps/mobile/app.json +48 -0
  44. package/template/apps/mobile/assets/images/android-icon-background.png +0 -0
  45. package/template/apps/mobile/assets/images/android-icon-foreground.png +0 -0
  46. package/template/apps/mobile/assets/images/android-icon-monochrome.png +0 -0
  47. package/template/apps/mobile/assets/images/favicon.png +0 -0
  48. package/template/apps/mobile/assets/images/icon.png +0 -0
  49. package/template/apps/mobile/assets/images/partial-react-logo.png +0 -0
  50. package/template/apps/mobile/assets/images/react-logo.png +0 -0
  51. package/template/apps/mobile/assets/images/react-logo@2x.png +0 -0
  52. package/template/apps/mobile/assets/images/react-logo@3x.png +0 -0
  53. package/template/apps/mobile/assets/images/splash-icon.png +0 -0
  54. package/template/apps/mobile/components/external-link.tsx +26 -0
  55. package/template/apps/mobile/components/haptic-tab.tsx +18 -0
  56. package/template/apps/mobile/components/hello-wave.tsx +19 -0
  57. package/template/apps/mobile/components/parallax-scroll-view.tsx +79 -0
  58. package/template/apps/mobile/components/themed-text.tsx +61 -0
  59. package/template/apps/mobile/components/themed-view.tsx +15 -0
  60. package/template/apps/mobile/components/ui/collapsible.tsx +46 -0
  61. package/template/apps/mobile/components/ui/icon-symbol.ios.tsx +33 -0
  62. package/template/apps/mobile/components/ui/icon-symbol.tsx +41 -0
  63. package/template/apps/mobile/constants/theme.ts +53 -0
  64. package/template/apps/mobile/eslint.config.ts +8 -0
  65. package/template/apps/mobile/hooks/use-color-scheme.ts +1 -0
  66. package/template/apps/mobile/hooks/use-color-scheme.web.ts +21 -0
  67. package/template/apps/mobile/hooks/use-theme-color.ts +21 -0
  68. package/template/apps/mobile/package.json +52 -0
  69. package/template/apps/mobile/prettier.config.ts +3 -0
  70. package/template/apps/mobile/scripts/reset-project.js +112 -0
  71. package/template/apps/mobile/tsconfig.json +11 -0
  72. package/template/apps/platform/eslint.config.ts +8 -0
  73. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/LICENSE +21 -0
  74. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/cjs/index.cjs +7 -0
  75. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/cjs/index.cjs.map +1 -0
  76. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/cjs/index.d.cts +2 -0
  77. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/cjs/types.d.cts +5 -0
  78. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/cjs/validator.cjs +44 -0
  79. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/cjs/validator.cjs.map +1 -0
  80. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/cjs/validator.d.cts +15 -0
  81. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/esm/index.d.ts +2 -0
  82. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/esm/index.js +7 -0
  83. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/esm/index.js.map +1 -0
  84. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/esm/types.d.ts +5 -0
  85. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/esm/validator.d.ts +15 -0
  86. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/esm/validator.js +44 -0
  87. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/dist/esm/validator.js.map +1 -0
  88. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/package.json +50 -0
  89. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/src/index.ts +2 -0
  90. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/src/types.ts +6 -0
  91. package/template/apps/platform/node_modules/@tanstack/zod-form-adapter/src/validator.ts +77 -0
  92. package/template/apps/platform/node_modules/zod/LICENSE +21 -0
  93. package/template/apps/platform/node_modules/zod/README.md +208 -0
  94. package/template/apps/platform/node_modules/zod/index.cjs +33 -0
  95. package/template/apps/platform/node_modules/zod/index.d.cts +4 -0
  96. package/template/apps/platform/node_modules/zod/index.d.ts +4 -0
  97. package/template/apps/platform/node_modules/zod/index.js +4 -0
  98. package/template/apps/platform/node_modules/zod/package.json +118 -0
  99. package/template/apps/platform/node_modules/zod/src/index.ts +4 -0
  100. package/template/apps/platform/node_modules/zod/src/v3/ZodError.ts +330 -0
  101. package/template/apps/platform/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  102. package/template/apps/platform/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  103. package/template/apps/platform/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  104. package/template/apps/platform/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  105. package/template/apps/platform/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  106. package/template/apps/platform/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  107. package/template/apps/platform/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  108. package/template/apps/platform/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  109. package/template/apps/platform/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  110. package/template/apps/platform/node_modules/zod/src/v3/errors.ts +13 -0
  111. package/template/apps/platform/node_modules/zod/src/v3/external.ts +6 -0
  112. package/template/apps/platform/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  113. package/template/apps/platform/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  114. package/template/apps/platform/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  115. package/template/apps/platform/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  116. package/template/apps/platform/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  117. package/template/apps/platform/node_modules/zod/src/v3/helpers/util.ts +224 -0
  118. package/template/apps/platform/node_modules/zod/src/v3/index.ts +4 -0
  119. package/template/apps/platform/node_modules/zod/src/v3/locales/en.ts +124 -0
  120. package/template/apps/platform/node_modules/zod/src/v3/standard-schema.ts +113 -0
  121. package/template/apps/platform/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  122. package/template/apps/platform/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  123. package/template/apps/platform/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  124. package/template/apps/platform/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  125. package/template/apps/platform/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  126. package/template/apps/platform/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  127. package/template/apps/platform/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  128. package/template/apps/platform/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  129. package/template/apps/platform/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  130. package/template/apps/platform/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  131. package/template/apps/platform/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  132. package/template/apps/platform/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
  133. package/template/apps/platform/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  134. package/template/apps/platform/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  135. package/template/apps/platform/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  136. package/template/apps/platform/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  137. package/template/apps/platform/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  138. package/template/apps/platform/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  139. package/template/apps/platform/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  140. package/template/apps/platform/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  141. package/template/apps/platform/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  142. package/template/apps/platform/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  143. package/template/apps/platform/node_modules/zod/src/v3/tests/function.test.ts +257 -0
  144. package/template/apps/platform/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  145. package/template/apps/platform/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  146. package/template/apps/platform/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  147. package/template/apps/platform/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  148. package/template/apps/platform/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  149. package/template/apps/platform/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  150. package/template/apps/platform/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  151. package/template/apps/platform/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  152. package/template/apps/platform/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  153. package/template/apps/platform/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
  154. package/template/apps/platform/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  155. package/template/apps/platform/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  156. package/template/apps/platform/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  157. package/template/apps/platform/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  158. package/template/apps/platform/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  159. package/template/apps/platform/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  160. package/template/apps/platform/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  161. package/template/apps/platform/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  162. package/template/apps/platform/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  163. package/template/apps/platform/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  164. package/template/apps/platform/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  165. package/template/apps/platform/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  166. package/template/apps/platform/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  167. package/template/apps/platform/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  168. package/template/apps/platform/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  169. package/template/apps/platform/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  170. package/template/apps/platform/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  171. package/template/apps/platform/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  172. package/template/apps/platform/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  173. package/template/apps/platform/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  174. package/template/apps/platform/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  175. package/template/apps/platform/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  176. package/template/apps/platform/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  177. package/template/apps/platform/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  178. package/template/apps/platform/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  179. package/template/apps/platform/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  180. package/template/apps/platform/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  181. package/template/apps/platform/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  182. package/template/apps/platform/node_modules/zod/src/v3/types.ts +5136 -0
  183. package/template/apps/platform/node_modules/zod/src/v4/classic/checks.ts +30 -0
  184. package/template/apps/platform/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  185. package/template/apps/platform/node_modules/zod/src/v4/classic/compat.ts +66 -0
  186. package/template/apps/platform/node_modules/zod/src/v4/classic/errors.ts +75 -0
  187. package/template/apps/platform/node_modules/zod/src/v4/classic/external.ts +50 -0
  188. package/template/apps/platform/node_modules/zod/src/v4/classic/index.ts +5 -0
  189. package/template/apps/platform/node_modules/zod/src/v4/classic/iso.ts +90 -0
  190. package/template/apps/platform/node_modules/zod/src/v4/classic/parse.ts +33 -0
  191. package/template/apps/platform/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
  192. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  193. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  194. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  195. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  196. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  197. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  198. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  199. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  200. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
  201. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  202. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  203. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  204. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  205. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  206. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
  207. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  208. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  209. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
  210. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  211. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
  212. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  213. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
  214. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  215. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  216. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  217. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  218. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  219. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  220. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  221. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  222. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
  223. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  224. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  225. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  226. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  227. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  228. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
  229. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  230. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
  231. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
  232. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  233. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  234. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  235. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
  236. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  237. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  238. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  239. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  240. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
  241. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
  242. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  243. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  244. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  245. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  246. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  247. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
  248. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  249. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
  250. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
  251. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
  252. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  253. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
  254. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  255. package/template/apps/platform/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  256. package/template/apps/platform/node_modules/zod/src/v4/core/api.ts +1594 -0
  257. package/template/apps/platform/node_modules/zod/src/v4/core/checks.ts +1283 -0
  258. package/template/apps/platform/node_modules/zod/src/v4/core/config.ts +15 -0
  259. package/template/apps/platform/node_modules/zod/src/v4/core/core.ts +134 -0
  260. package/template/apps/platform/node_modules/zod/src/v4/core/doc.ts +44 -0
  261. package/template/apps/platform/node_modules/zod/src/v4/core/errors.ts +424 -0
  262. package/template/apps/platform/node_modules/zod/src/v4/core/function.ts +176 -0
  263. package/template/apps/platform/node_modules/zod/src/v4/core/index.ts +15 -0
  264. package/template/apps/platform/node_modules/zod/src/v4/core/json-schema.ts +143 -0
  265. package/template/apps/platform/node_modules/zod/src/v4/core/parse.ts +94 -0
  266. package/template/apps/platform/node_modules/zod/src/v4/core/regexes.ts +135 -0
  267. package/template/apps/platform/node_modules/zod/src/v4/core/registries.ts +96 -0
  268. package/template/apps/platform/node_modules/zod/src/v4/core/schemas.ts +3842 -0
  269. package/template/apps/platform/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
  270. package/template/apps/platform/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  271. package/template/apps/platform/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  272. package/template/apps/platform/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  273. package/template/apps/platform/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  274. package/template/apps/platform/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  275. package/template/apps/platform/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
  276. package/template/apps/platform/node_modules/zod/src/v4/core/util.ts +775 -0
  277. package/template/apps/platform/node_modules/zod/src/v4/core/versions.ts +5 -0
  278. package/template/apps/platform/node_modules/zod/src/v4/core/zsf.ts +323 -0
  279. package/template/apps/platform/node_modules/zod/src/v4/index.ts +4 -0
  280. package/template/apps/platform/node_modules/zod/src/v4/locales/ar.ts +125 -0
  281. package/template/apps/platform/node_modules/zod/src/v4/locales/az.ts +121 -0
  282. package/template/apps/platform/node_modules/zod/src/v4/locales/be.ts +184 -0
  283. package/template/apps/platform/node_modules/zod/src/v4/locales/ca.ts +127 -0
  284. package/template/apps/platform/node_modules/zod/src/v4/locales/cs.ts +142 -0
  285. package/template/apps/platform/node_modules/zod/src/v4/locales/de.ts +124 -0
  286. package/template/apps/platform/node_modules/zod/src/v4/locales/en.ts +127 -0
  287. package/template/apps/platform/node_modules/zod/src/v4/locales/eo.ts +125 -0
  288. package/template/apps/platform/node_modules/zod/src/v4/locales/es.ts +125 -0
  289. package/template/apps/platform/node_modules/zod/src/v4/locales/fa.ts +134 -0
  290. package/template/apps/platform/node_modules/zod/src/v4/locales/fi.ts +131 -0
  291. package/template/apps/platform/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  292. package/template/apps/platform/node_modules/zod/src/v4/locales/fr.ts +124 -0
  293. package/template/apps/platform/node_modules/zod/src/v4/locales/he.ts +125 -0
  294. package/template/apps/platform/node_modules/zod/src/v4/locales/hu.ts +126 -0
  295. package/template/apps/platform/node_modules/zod/src/v4/locales/id.ts +125 -0
  296. package/template/apps/platform/node_modules/zod/src/v4/locales/index.ts +39 -0
  297. package/template/apps/platform/node_modules/zod/src/v4/locales/it.ts +125 -0
  298. package/template/apps/platform/node_modules/zod/src/v4/locales/ja.ts +122 -0
  299. package/template/apps/platform/node_modules/zod/src/v4/locales/kh.ts +126 -0
  300. package/template/apps/platform/node_modules/zod/src/v4/locales/ko.ts +131 -0
  301. package/template/apps/platform/node_modules/zod/src/v4/locales/mk.ts +127 -0
  302. package/template/apps/platform/node_modules/zod/src/v4/locales/ms.ts +124 -0
  303. package/template/apps/platform/node_modules/zod/src/v4/locales/nl.ts +126 -0
  304. package/template/apps/platform/node_modules/zod/src/v4/locales/no.ts +124 -0
  305. package/template/apps/platform/node_modules/zod/src/v4/locales/ota.ts +125 -0
  306. package/template/apps/platform/node_modules/zod/src/v4/locales/pl.ts +126 -0
  307. package/template/apps/platform/node_modules/zod/src/v4/locales/ps.ts +133 -0
  308. package/template/apps/platform/node_modules/zod/src/v4/locales/pt.ts +123 -0
  309. package/template/apps/platform/node_modules/zod/src/v4/locales/ru.ts +184 -0
  310. package/template/apps/platform/node_modules/zod/src/v4/locales/sl.ts +126 -0
  311. package/template/apps/platform/node_modules/zod/src/v4/locales/sv.ts +127 -0
  312. package/template/apps/platform/node_modules/zod/src/v4/locales/ta.ts +125 -0
  313. package/template/apps/platform/node_modules/zod/src/v4/locales/th.ts +126 -0
  314. package/template/apps/platform/node_modules/zod/src/v4/locales/tr.ts +121 -0
  315. package/template/apps/platform/node_modules/zod/src/v4/locales/ua.ts +126 -0
  316. package/template/apps/platform/node_modules/zod/src/v4/locales/ur.ts +126 -0
  317. package/template/apps/platform/node_modules/zod/src/v4/locales/vi.ts +125 -0
  318. package/template/apps/platform/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  319. package/template/apps/platform/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  320. package/template/apps/platform/node_modules/zod/src/v4/mini/checks.ts +32 -0
  321. package/template/apps/platform/node_modules/zod/src/v4/mini/coerce.ts +22 -0
  322. package/template/apps/platform/node_modules/zod/src/v4/mini/external.ts +40 -0
  323. package/template/apps/platform/node_modules/zod/src/v4/mini/index.ts +3 -0
  324. package/template/apps/platform/node_modules/zod/src/v4/mini/iso.ts +62 -0
  325. package/template/apps/platform/node_modules/zod/src/v4/mini/parse.ts +1 -0
  326. package/template/apps/platform/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
  327. package/template/apps/platform/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  328. package/template/apps/platform/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  329. package/template/apps/platform/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  330. package/template/apps/platform/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  331. package/template/apps/platform/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  332. package/template/apps/platform/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  333. package/template/apps/platform/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  334. package/template/apps/platform/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  335. package/template/apps/platform/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  336. package/template/apps/platform/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  337. package/template/apps/platform/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  338. package/template/apps/platform/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  339. package/template/apps/platform/node_modules/zod/src/v4-mini/index.ts +1 -0
  340. package/template/apps/platform/node_modules/zod/v3/ZodError.cjs +138 -0
  341. package/template/apps/platform/node_modules/zod/v3/ZodError.d.cts +164 -0
  342. package/template/apps/platform/node_modules/zod/v3/ZodError.d.ts +164 -0
  343. package/template/apps/platform/node_modules/zod/v3/ZodError.js +133 -0
  344. package/template/apps/platform/node_modules/zod/v3/errors.cjs +17 -0
  345. package/template/apps/platform/node_modules/zod/v3/errors.d.cts +5 -0
  346. package/template/apps/platform/node_modules/zod/v3/errors.d.ts +5 -0
  347. package/template/apps/platform/node_modules/zod/v3/errors.js +9 -0
  348. package/template/apps/platform/node_modules/zod/v3/external.cjs +22 -0
  349. package/template/apps/platform/node_modules/zod/v3/external.d.cts +6 -0
  350. package/template/apps/platform/node_modules/zod/v3/external.d.ts +6 -0
  351. package/template/apps/platform/node_modules/zod/v3/external.js +6 -0
  352. package/template/apps/platform/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  353. package/template/apps/platform/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  354. package/template/apps/platform/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  355. package/template/apps/platform/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  356. package/template/apps/platform/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  357. package/template/apps/platform/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  358. package/template/apps/platform/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  359. package/template/apps/platform/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  360. package/template/apps/platform/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  361. package/template/apps/platform/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  362. package/template/apps/platform/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  363. package/template/apps/platform/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  364. package/template/apps/platform/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  365. package/template/apps/platform/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  366. package/template/apps/platform/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  367. package/template/apps/platform/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  368. package/template/apps/platform/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  369. package/template/apps/platform/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  370. package/template/apps/platform/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  371. package/template/apps/platform/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  372. package/template/apps/platform/node_modules/zod/v3/helpers/util.cjs +137 -0
  373. package/template/apps/platform/node_modules/zod/v3/helpers/util.d.cts +85 -0
  374. package/template/apps/platform/node_modules/zod/v3/helpers/util.d.ts +85 -0
  375. package/template/apps/platform/node_modules/zod/v3/helpers/util.js +133 -0
  376. package/template/apps/platform/node_modules/zod/v3/index.cjs +33 -0
  377. package/template/apps/platform/node_modules/zod/v3/index.d.cts +4 -0
  378. package/template/apps/platform/node_modules/zod/v3/index.d.ts +4 -0
  379. package/template/apps/platform/node_modules/zod/v3/index.js +4 -0
  380. package/template/apps/platform/node_modules/zod/v3/locales/en.cjs +111 -0
  381. package/template/apps/platform/node_modules/zod/v3/locales/en.d.cts +3 -0
  382. package/template/apps/platform/node_modules/zod/v3/locales/en.d.ts +3 -0
  383. package/template/apps/platform/node_modules/zod/v3/locales/en.js +109 -0
  384. package/template/apps/platform/node_modules/zod/v3/standard-schema.cjs +2 -0
  385. package/template/apps/platform/node_modules/zod/v3/standard-schema.d.cts +102 -0
  386. package/template/apps/platform/node_modules/zod/v3/standard-schema.d.ts +102 -0
  387. package/template/apps/platform/node_modules/zod/v3/standard-schema.js +1 -0
  388. package/template/apps/platform/node_modules/zod/v3/types.cjs +3775 -0
  389. package/template/apps/platform/node_modules/zod/v3/types.d.cts +1031 -0
  390. package/template/apps/platform/node_modules/zod/v3/types.d.ts +1031 -0
  391. package/template/apps/platform/node_modules/zod/v3/types.js +3693 -0
  392. package/template/apps/platform/node_modules/zod/v4/classic/checks.cjs +32 -0
  393. package/template/apps/platform/node_modules/zod/v4/classic/checks.d.cts +1 -0
  394. package/template/apps/platform/node_modules/zod/v4/classic/checks.d.ts +1 -0
  395. package/template/apps/platform/node_modules/zod/v4/classic/checks.js +1 -0
  396. package/template/apps/platform/node_modules/zod/v4/classic/coerce.cjs +47 -0
  397. package/template/apps/platform/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  398. package/template/apps/platform/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  399. package/template/apps/platform/node_modules/zod/v4/classic/coerce.js +17 -0
  400. package/template/apps/platform/node_modules/zod/v4/classic/compat.cjs +57 -0
  401. package/template/apps/platform/node_modules/zod/v4/classic/compat.d.cts +46 -0
  402. package/template/apps/platform/node_modules/zod/v4/classic/compat.d.ts +46 -0
  403. package/template/apps/platform/node_modules/zod/v4/classic/compat.js +27 -0
  404. package/template/apps/platform/node_modules/zod/v4/classic/errors.cjs +67 -0
  405. package/template/apps/platform/node_modules/zod/v4/classic/errors.d.cts +30 -0
  406. package/template/apps/platform/node_modules/zod/v4/classic/errors.d.ts +30 -0
  407. package/template/apps/platform/node_modules/zod/v4/classic/errors.js +41 -0
  408. package/template/apps/platform/node_modules/zod/v4/classic/external.cjs +70 -0
  409. package/template/apps/platform/node_modules/zod/v4/classic/external.d.cts +13 -0
  410. package/template/apps/platform/node_modules/zod/v4/classic/external.d.ts +13 -0
  411. package/template/apps/platform/node_modules/zod/v4/classic/external.js +18 -0
  412. package/template/apps/platform/node_modules/zod/v4/classic/index.cjs +33 -0
  413. package/template/apps/platform/node_modules/zod/v4/classic/index.d.cts +4 -0
  414. package/template/apps/platform/node_modules/zod/v4/classic/index.d.ts +4 -0
  415. package/template/apps/platform/node_modules/zod/v4/classic/index.js +4 -0
  416. package/template/apps/platform/node_modules/zod/v4/classic/iso.cjs +60 -0
  417. package/template/apps/platform/node_modules/zod/v4/classic/iso.d.cts +22 -0
  418. package/template/apps/platform/node_modules/zod/v4/classic/iso.d.ts +22 -0
  419. package/template/apps/platform/node_modules/zod/v4/classic/iso.js +30 -0
  420. package/template/apps/platform/node_modules/zod/v4/classic/parse.cjs +32 -0
  421. package/template/apps/platform/node_modules/zod/v4/classic/parse.d.cts +23 -0
  422. package/template/apps/platform/node_modules/zod/v4/classic/parse.d.ts +23 -0
  423. package/template/apps/platform/node_modules/zod/v4/classic/parse.js +6 -0
  424. package/template/apps/platform/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  425. package/template/apps/platform/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  426. package/template/apps/platform/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  427. package/template/apps/platform/node_modules/zod/v4/classic/schemas.js +1006 -0
  428. package/template/apps/platform/node_modules/zod/v4/core/api.cjs +1039 -0
  429. package/template/apps/platform/node_modules/zod/v4/core/api.d.cts +284 -0
  430. package/template/apps/platform/node_modules/zod/v4/core/api.d.ts +284 -0
  431. package/template/apps/platform/node_modules/zod/v4/core/api.js +906 -0
  432. package/template/apps/platform/node_modules/zod/v4/core/checks.cjs +591 -0
  433. package/template/apps/platform/node_modules/zod/v4/core/checks.d.cts +278 -0
  434. package/template/apps/platform/node_modules/zod/v4/core/checks.d.ts +278 -0
  435. package/template/apps/platform/node_modules/zod/v4/core/checks.js +565 -0
  436. package/template/apps/platform/node_modules/zod/v4/core/core.cjs +67 -0
  437. package/template/apps/platform/node_modules/zod/v4/core/core.d.cts +49 -0
  438. package/template/apps/platform/node_modules/zod/v4/core/core.d.ts +49 -0
  439. package/template/apps/platform/node_modules/zod/v4/core/core.js +61 -0
  440. package/template/apps/platform/node_modules/zod/v4/core/doc.cjs +39 -0
  441. package/template/apps/platform/node_modules/zod/v4/core/doc.d.cts +14 -0
  442. package/template/apps/platform/node_modules/zod/v4/core/doc.d.ts +14 -0
  443. package/template/apps/platform/node_modules/zod/v4/core/doc.js +35 -0
  444. package/template/apps/platform/node_modules/zod/v4/core/errors.cjs +226 -0
  445. package/template/apps/platform/node_modules/zod/v4/core/errors.d.cts +208 -0
  446. package/template/apps/platform/node_modules/zod/v4/core/errors.d.ts +208 -0
  447. package/template/apps/platform/node_modules/zod/v4/core/errors.js +195 -0
  448. package/template/apps/platform/node_modules/zod/v4/core/function.cjs +102 -0
  449. package/template/apps/platform/node_modules/zod/v4/core/function.d.cts +52 -0
  450. package/template/apps/platform/node_modules/zod/v4/core/function.d.ts +52 -0
  451. package/template/apps/platform/node_modules/zod/v4/core/function.js +75 -0
  452. package/template/apps/platform/node_modules/zod/v4/core/index.cjs +44 -0
  453. package/template/apps/platform/node_modules/zod/v4/core/index.d.cts +15 -0
  454. package/template/apps/platform/node_modules/zod/v4/core/index.d.ts +15 -0
  455. package/template/apps/platform/node_modules/zod/v4/core/index.js +15 -0
  456. package/template/apps/platform/node_modules/zod/v4/core/json-schema.cjs +2 -0
  457. package/template/apps/platform/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  458. package/template/apps/platform/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  459. package/template/apps/platform/node_modules/zod/v4/core/json-schema.js +1 -0
  460. package/template/apps/platform/node_modules/zod/v4/core/parse.cjs +87 -0
  461. package/template/apps/platform/node_modules/zod/v4/core/parse.d.cts +25 -0
  462. package/template/apps/platform/node_modules/zod/v4/core/parse.d.ts +25 -0
  463. package/template/apps/platform/node_modules/zod/v4/core/parse.js +57 -0
  464. package/template/apps/platform/node_modules/zod/v4/core/regexes.cjs +103 -0
  465. package/template/apps/platform/node_modules/zod/v4/core/regexes.d.cts +62 -0
  466. package/template/apps/platform/node_modules/zod/v4/core/regexes.d.ts +62 -0
  467. package/template/apps/platform/node_modules/zod/v4/core/regexes.js +95 -0
  468. package/template/apps/platform/node_modules/zod/v4/core/registries.cjs +56 -0
  469. package/template/apps/platform/node_modules/zod/v4/core/registries.d.cts +35 -0
  470. package/template/apps/platform/node_modules/zod/v4/core/registries.d.ts +35 -0
  471. package/template/apps/platform/node_modules/zod/v4/core/registries.js +51 -0
  472. package/template/apps/platform/node_modules/zod/v4/core/schemas.cjs +1748 -0
  473. package/template/apps/platform/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  474. package/template/apps/platform/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  475. package/template/apps/platform/node_modules/zod/v4/core/schemas.js +1717 -0
  476. package/template/apps/platform/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  477. package/template/apps/platform/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  478. package/template/apps/platform/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  479. package/template/apps/platform/node_modules/zod/v4/core/standard-schema.js +1 -0
  480. package/template/apps/platform/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  481. package/template/apps/platform/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  482. package/template/apps/platform/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  483. package/template/apps/platform/node_modules/zod/v4/core/to-json-schema.js +849 -0
  484. package/template/apps/platform/node_modules/zod/v4/core/util.cjs +539 -0
  485. package/template/apps/platform/node_modules/zod/v4/core/util.d.cts +183 -0
  486. package/template/apps/platform/node_modules/zod/v4/core/util.d.ts +183 -0
  487. package/template/apps/platform/node_modules/zod/v4/core/util.js +493 -0
  488. package/template/apps/platform/node_modules/zod/v4/core/versions.cjs +8 -0
  489. package/template/apps/platform/node_modules/zod/v4/core/versions.d.cts +5 -0
  490. package/template/apps/platform/node_modules/zod/v4/core/versions.d.ts +5 -0
  491. package/template/apps/platform/node_modules/zod/v4/core/versions.js +5 -0
  492. package/template/apps/platform/node_modules/zod/v4/index.cjs +22 -0
  493. package/template/apps/platform/node_modules/zod/v4/index.d.cts +3 -0
  494. package/template/apps/platform/node_modules/zod/v4/index.d.ts +3 -0
  495. package/template/apps/platform/node_modules/zod/v4/index.js +3 -0
  496. package/template/apps/platform/node_modules/zod/v4/locales/ar.cjs +142 -0
  497. package/template/apps/platform/node_modules/zod/v4/locales/ar.d.cts +4 -0
  498. package/template/apps/platform/node_modules/zod/v4/locales/ar.d.ts +4 -0
  499. package/template/apps/platform/node_modules/zod/v4/locales/ar.js +116 -0
  500. package/template/apps/platform/node_modules/zod/v4/locales/az.cjs +141 -0
  501. package/template/apps/platform/node_modules/zod/v4/locales/az.d.cts +4 -0
  502. package/template/apps/platform/node_modules/zod/v4/locales/az.d.ts +4 -0
  503. package/template/apps/platform/node_modules/zod/v4/locales/az.js +115 -0
  504. package/template/apps/platform/node_modules/zod/v4/locales/be.cjs +190 -0
  505. package/template/apps/platform/node_modules/zod/v4/locales/be.d.cts +4 -0
  506. package/template/apps/platform/node_modules/zod/v4/locales/be.d.ts +4 -0
  507. package/template/apps/platform/node_modules/zod/v4/locales/be.js +164 -0
  508. package/template/apps/platform/node_modules/zod/v4/locales/ca.cjs +144 -0
  509. package/template/apps/platform/node_modules/zod/v4/locales/ca.d.cts +4 -0
  510. package/template/apps/platform/node_modules/zod/v4/locales/ca.d.ts +4 -0
  511. package/template/apps/platform/node_modules/zod/v4/locales/ca.js +118 -0
  512. package/template/apps/platform/node_modules/zod/v4/locales/cs.cjs +161 -0
  513. package/template/apps/platform/node_modules/zod/v4/locales/cs.d.cts +4 -0
  514. package/template/apps/platform/node_modules/zod/v4/locales/cs.d.ts +4 -0
  515. package/template/apps/platform/node_modules/zod/v4/locales/cs.js +135 -0
  516. package/template/apps/platform/node_modules/zod/v4/locales/de.cjs +142 -0
  517. package/template/apps/platform/node_modules/zod/v4/locales/de.d.cts +4 -0
  518. package/template/apps/platform/node_modules/zod/v4/locales/de.d.ts +4 -0
  519. package/template/apps/platform/node_modules/zod/v4/locales/de.js +116 -0
  520. package/template/apps/platform/node_modules/zod/v4/locales/en.cjs +145 -0
  521. package/template/apps/platform/node_modules/zod/v4/locales/en.d.cts +5 -0
  522. package/template/apps/platform/node_modules/zod/v4/locales/en.d.ts +5 -0
  523. package/template/apps/platform/node_modules/zod/v4/locales/en.js +117 -0
  524. package/template/apps/platform/node_modules/zod/v4/locales/eo.cjs +144 -0
  525. package/template/apps/platform/node_modules/zod/v4/locales/eo.d.cts +5 -0
  526. package/template/apps/platform/node_modules/zod/v4/locales/eo.d.ts +5 -0
  527. package/template/apps/platform/node_modules/zod/v4/locales/eo.js +116 -0
  528. package/template/apps/platform/node_modules/zod/v4/locales/es.cjs +143 -0
  529. package/template/apps/platform/node_modules/zod/v4/locales/es.d.cts +4 -0
  530. package/template/apps/platform/node_modules/zod/v4/locales/es.d.ts +4 -0
  531. package/template/apps/platform/node_modules/zod/v4/locales/es.js +117 -0
  532. package/template/apps/platform/node_modules/zod/v4/locales/fa.cjs +148 -0
  533. package/template/apps/platform/node_modules/zod/v4/locales/fa.d.cts +4 -0
  534. package/template/apps/platform/node_modules/zod/v4/locales/fa.d.ts +4 -0
  535. package/template/apps/platform/node_modules/zod/v4/locales/fa.js +122 -0
  536. package/template/apps/platform/node_modules/zod/v4/locales/fi.cjs +148 -0
  537. package/template/apps/platform/node_modules/zod/v4/locales/fi.d.cts +4 -0
  538. package/template/apps/platform/node_modules/zod/v4/locales/fi.d.ts +4 -0
  539. package/template/apps/platform/node_modules/zod/v4/locales/fi.js +122 -0
  540. package/template/apps/platform/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  541. package/template/apps/platform/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  542. package/template/apps/platform/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  543. package/template/apps/platform/node_modules/zod/v4/locales/fr-CA.js +117 -0
  544. package/template/apps/platform/node_modules/zod/v4/locales/fr.cjs +142 -0
  545. package/template/apps/platform/node_modules/zod/v4/locales/fr.d.cts +4 -0
  546. package/template/apps/platform/node_modules/zod/v4/locales/fr.d.ts +4 -0
  547. package/template/apps/platform/node_modules/zod/v4/locales/fr.js +116 -0
  548. package/template/apps/platform/node_modules/zod/v4/locales/he.cjs +143 -0
  549. package/template/apps/platform/node_modules/zod/v4/locales/he.d.cts +4 -0
  550. package/template/apps/platform/node_modules/zod/v4/locales/he.d.ts +4 -0
  551. package/template/apps/platform/node_modules/zod/v4/locales/he.js +117 -0
  552. package/template/apps/platform/node_modules/zod/v4/locales/hu.cjs +143 -0
  553. package/template/apps/platform/node_modules/zod/v4/locales/hu.d.cts +4 -0
  554. package/template/apps/platform/node_modules/zod/v4/locales/hu.d.ts +4 -0
  555. package/template/apps/platform/node_modules/zod/v4/locales/hu.js +117 -0
  556. package/template/apps/platform/node_modules/zod/v4/locales/id.cjs +142 -0
  557. package/template/apps/platform/node_modules/zod/v4/locales/id.d.cts +4 -0
  558. package/template/apps/platform/node_modules/zod/v4/locales/id.d.ts +4 -0
  559. package/template/apps/platform/node_modules/zod/v4/locales/id.js +116 -0
  560. package/template/apps/platform/node_modules/zod/v4/locales/index.cjs +84 -0
  561. package/template/apps/platform/node_modules/zod/v4/locales/index.d.cts +39 -0
  562. package/template/apps/platform/node_modules/zod/v4/locales/index.d.ts +39 -0
  563. package/template/apps/platform/node_modules/zod/v4/locales/index.js +39 -0
  564. package/template/apps/platform/node_modules/zod/v4/locales/it.cjs +143 -0
  565. package/template/apps/platform/node_modules/zod/v4/locales/it.d.cts +4 -0
  566. package/template/apps/platform/node_modules/zod/v4/locales/it.d.ts +4 -0
  567. package/template/apps/platform/node_modules/zod/v4/locales/it.js +117 -0
  568. package/template/apps/platform/node_modules/zod/v4/locales/ja.cjs +141 -0
  569. package/template/apps/platform/node_modules/zod/v4/locales/ja.d.cts +4 -0
  570. package/template/apps/platform/node_modules/zod/v4/locales/ja.d.ts +4 -0
  571. package/template/apps/platform/node_modules/zod/v4/locales/ja.js +115 -0
  572. package/template/apps/platform/node_modules/zod/v4/locales/kh.cjs +143 -0
  573. package/template/apps/platform/node_modules/zod/v4/locales/kh.d.cts +4 -0
  574. package/template/apps/platform/node_modules/zod/v4/locales/kh.d.ts +4 -0
  575. package/template/apps/platform/node_modules/zod/v4/locales/kh.js +117 -0
  576. package/template/apps/platform/node_modules/zod/v4/locales/ko.cjs +147 -0
  577. package/template/apps/platform/node_modules/zod/v4/locales/ko.d.cts +4 -0
  578. package/template/apps/platform/node_modules/zod/v4/locales/ko.d.ts +4 -0
  579. package/template/apps/platform/node_modules/zod/v4/locales/ko.js +121 -0
  580. package/template/apps/platform/node_modules/zod/v4/locales/mk.cjs +144 -0
  581. package/template/apps/platform/node_modules/zod/v4/locales/mk.d.cts +4 -0
  582. package/template/apps/platform/node_modules/zod/v4/locales/mk.d.ts +4 -0
  583. package/template/apps/platform/node_modules/zod/v4/locales/mk.js +118 -0
  584. package/template/apps/platform/node_modules/zod/v4/locales/ms.cjs +142 -0
  585. package/template/apps/platform/node_modules/zod/v4/locales/ms.d.cts +4 -0
  586. package/template/apps/platform/node_modules/zod/v4/locales/ms.d.ts +4 -0
  587. package/template/apps/platform/node_modules/zod/v4/locales/ms.js +116 -0
  588. package/template/apps/platform/node_modules/zod/v4/locales/nl.cjs +143 -0
  589. package/template/apps/platform/node_modules/zod/v4/locales/nl.d.cts +4 -0
  590. package/template/apps/platform/node_modules/zod/v4/locales/nl.d.ts +4 -0
  591. package/template/apps/platform/node_modules/zod/v4/locales/nl.js +117 -0
  592. package/template/apps/platform/node_modules/zod/v4/locales/no.cjs +142 -0
  593. package/template/apps/platform/node_modules/zod/v4/locales/no.d.cts +4 -0
  594. package/template/apps/platform/node_modules/zod/v4/locales/no.d.ts +4 -0
  595. package/template/apps/platform/node_modules/zod/v4/locales/no.js +116 -0
  596. package/template/apps/platform/node_modules/zod/v4/locales/ota.cjs +143 -0
  597. package/template/apps/platform/node_modules/zod/v4/locales/ota.d.cts +4 -0
  598. package/template/apps/platform/node_modules/zod/v4/locales/ota.d.ts +4 -0
  599. package/template/apps/platform/node_modules/zod/v4/locales/ota.js +117 -0
  600. package/template/apps/platform/node_modules/zod/v4/locales/pl.cjs +143 -0
  601. package/template/apps/platform/node_modules/zod/v4/locales/pl.d.cts +4 -0
  602. package/template/apps/platform/node_modules/zod/v4/locales/pl.d.ts +4 -0
  603. package/template/apps/platform/node_modules/zod/v4/locales/pl.js +117 -0
  604. package/template/apps/platform/node_modules/zod/v4/locales/ps.cjs +148 -0
  605. package/template/apps/platform/node_modules/zod/v4/locales/ps.d.cts +4 -0
  606. package/template/apps/platform/node_modules/zod/v4/locales/ps.d.ts +4 -0
  607. package/template/apps/platform/node_modules/zod/v4/locales/ps.js +122 -0
  608. package/template/apps/platform/node_modules/zod/v4/locales/pt.cjs +142 -0
  609. package/template/apps/platform/node_modules/zod/v4/locales/pt.d.cts +4 -0
  610. package/template/apps/platform/node_modules/zod/v4/locales/pt.d.ts +4 -0
  611. package/template/apps/platform/node_modules/zod/v4/locales/pt.js +116 -0
  612. package/template/apps/platform/node_modules/zod/v4/locales/ru.cjs +190 -0
  613. package/template/apps/platform/node_modules/zod/v4/locales/ru.d.cts +4 -0
  614. package/template/apps/platform/node_modules/zod/v4/locales/ru.d.ts +4 -0
  615. package/template/apps/platform/node_modules/zod/v4/locales/ru.js +164 -0
  616. package/template/apps/platform/node_modules/zod/v4/locales/sl.cjs +143 -0
  617. package/template/apps/platform/node_modules/zod/v4/locales/sl.d.cts +4 -0
  618. package/template/apps/platform/node_modules/zod/v4/locales/sl.d.ts +4 -0
  619. package/template/apps/platform/node_modules/zod/v4/locales/sl.js +117 -0
  620. package/template/apps/platform/node_modules/zod/v4/locales/sv.cjs +144 -0
  621. package/template/apps/platform/node_modules/zod/v4/locales/sv.d.cts +4 -0
  622. package/template/apps/platform/node_modules/zod/v4/locales/sv.d.ts +4 -0
  623. package/template/apps/platform/node_modules/zod/v4/locales/sv.js +118 -0
  624. package/template/apps/platform/node_modules/zod/v4/locales/ta.cjs +143 -0
  625. package/template/apps/platform/node_modules/zod/v4/locales/ta.d.cts +4 -0
  626. package/template/apps/platform/node_modules/zod/v4/locales/ta.d.ts +4 -0
  627. package/template/apps/platform/node_modules/zod/v4/locales/ta.js +117 -0
  628. package/template/apps/platform/node_modules/zod/v4/locales/th.cjs +143 -0
  629. package/template/apps/platform/node_modules/zod/v4/locales/th.d.cts +4 -0
  630. package/template/apps/platform/node_modules/zod/v4/locales/th.d.ts +4 -0
  631. package/template/apps/platform/node_modules/zod/v4/locales/th.js +117 -0
  632. package/template/apps/platform/node_modules/zod/v4/locales/tr.cjs +143 -0
  633. package/template/apps/platform/node_modules/zod/v4/locales/tr.d.cts +5 -0
  634. package/template/apps/platform/node_modules/zod/v4/locales/tr.d.ts +5 -0
  635. package/template/apps/platform/node_modules/zod/v4/locales/tr.js +115 -0
  636. package/template/apps/platform/node_modules/zod/v4/locales/ua.cjs +143 -0
  637. package/template/apps/platform/node_modules/zod/v4/locales/ua.d.cts +4 -0
  638. package/template/apps/platform/node_modules/zod/v4/locales/ua.d.ts +4 -0
  639. package/template/apps/platform/node_modules/zod/v4/locales/ua.js +117 -0
  640. package/template/apps/platform/node_modules/zod/v4/locales/ur.cjs +143 -0
  641. package/template/apps/platform/node_modules/zod/v4/locales/ur.d.cts +4 -0
  642. package/template/apps/platform/node_modules/zod/v4/locales/ur.d.ts +4 -0
  643. package/template/apps/platform/node_modules/zod/v4/locales/ur.js +117 -0
  644. package/template/apps/platform/node_modules/zod/v4/locales/vi.cjs +142 -0
  645. package/template/apps/platform/node_modules/zod/v4/locales/vi.d.cts +4 -0
  646. package/template/apps/platform/node_modules/zod/v4/locales/vi.d.ts +4 -0
  647. package/template/apps/platform/node_modules/zod/v4/locales/vi.js +116 -0
  648. package/template/apps/platform/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  649. package/template/apps/platform/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  650. package/template/apps/platform/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  651. package/template/apps/platform/node_modules/zod/v4/locales/zh-CN.js +116 -0
  652. package/template/apps/platform/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  653. package/template/apps/platform/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  654. package/template/apps/platform/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  655. package/template/apps/platform/node_modules/zod/v4/locales/zh-TW.js +117 -0
  656. package/template/apps/platform/node_modules/zod/v4/mini/checks.cjs +34 -0
  657. package/template/apps/platform/node_modules/zod/v4/mini/checks.d.cts +1 -0
  658. package/template/apps/platform/node_modules/zod/v4/mini/checks.d.ts +1 -0
  659. package/template/apps/platform/node_modules/zod/v4/mini/checks.js +1 -0
  660. package/template/apps/platform/node_modules/zod/v4/mini/coerce.cjs +47 -0
  661. package/template/apps/platform/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  662. package/template/apps/platform/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  663. package/template/apps/platform/node_modules/zod/v4/mini/coerce.js +17 -0
  664. package/template/apps/platform/node_modules/zod/v4/mini/external.cjs +62 -0
  665. package/template/apps/platform/node_modules/zod/v4/mini/external.d.cts +11 -0
  666. package/template/apps/platform/node_modules/zod/v4/mini/external.d.ts +11 -0
  667. package/template/apps/platform/node_modules/zod/v4/mini/external.js +13 -0
  668. package/template/apps/platform/node_modules/zod/v4/mini/index.cjs +32 -0
  669. package/template/apps/platform/node_modules/zod/v4/mini/index.d.cts +3 -0
  670. package/template/apps/platform/node_modules/zod/v4/mini/index.d.ts +3 -0
  671. package/template/apps/platform/node_modules/zod/v4/mini/index.js +3 -0
  672. package/template/apps/platform/node_modules/zod/v4/mini/iso.cjs +60 -0
  673. package/template/apps/platform/node_modules/zod/v4/mini/iso.d.cts +22 -0
  674. package/template/apps/platform/node_modules/zod/v4/mini/iso.d.ts +22 -0
  675. package/template/apps/platform/node_modules/zod/v4/mini/iso.js +30 -0
  676. package/template/apps/platform/node_modules/zod/v4/mini/parse.cjs +8 -0
  677. package/template/apps/platform/node_modules/zod/v4/mini/parse.d.cts +1 -0
  678. package/template/apps/platform/node_modules/zod/v4/mini/parse.d.ts +1 -0
  679. package/template/apps/platform/node_modules/zod/v4/mini/parse.js +1 -0
  680. package/template/apps/platform/node_modules/zod/v4/mini/schemas.cjs +839 -0
  681. package/template/apps/platform/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  682. package/template/apps/platform/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  683. package/template/apps/platform/node_modules/zod/v4/mini/schemas.js +732 -0
  684. package/template/apps/platform/node_modules/zod/v4-mini/index.cjs +17 -0
  685. package/template/apps/platform/node_modules/zod/v4-mini/index.d.cts +1 -0
  686. package/template/apps/platform/node_modules/zod/v4-mini/index.d.ts +1 -0
  687. package/template/apps/platform/node_modules/zod/v4-mini/index.js +1 -0
  688. package/template/apps/platform/package.json +4 -1
  689. package/template/apps/platform/prettier.config.ts +3 -0
  690. package/template/apps/platform/tsconfig.json +2 -15
  691. package/template/package.json +5 -3
  692. package/template/packages/auth/eslint.config.ts +2 -2
  693. package/template/packages/auth/package.json +5 -1
  694. package/template/packages/auth/prettier.config.ts +3 -0
  695. package/template/packages/auth/tsconfig.json +2 -9
  696. package/template/packages/config-eslint/index.ts +24 -0
  697. package/template/packages/config-eslint/package.json +11 -0
  698. package/template/packages/config-prettier/index.ts +14 -0
  699. package/template/packages/config-prettier/package.json +7 -0
  700. package/template/packages/{ui/tsconfig.lint.json → config-typescript/base.json} +3 -5
  701. package/template/packages/config-typescript/package.json +9 -0
  702. package/template/packages/config-typescript/react.json +6 -0
  703. package/template/packages/db/eslint.config.ts +2 -2
  704. package/template/packages/db/package.json +3 -0
  705. package/template/packages/db/prettier.config.ts +3 -0
  706. package/template/packages/db/tsconfig.json +2 -9
  707. package/template/packages/orpc/eslint.config.ts +2 -2
  708. package/template/packages/orpc/node_modules/@types/node/LICENSE +21 -0
  709. package/template/packages/orpc/node_modules/@types/node/README.md +15 -0
  710. package/template/packages/orpc/node_modules/@types/node/assert/strict.d.ts +111 -0
  711. package/template/packages/orpc/node_modules/@types/node/assert.d.ts +1078 -0
  712. package/template/packages/orpc/node_modules/@types/node/async_hooks.d.ts +603 -0
  713. package/template/packages/orpc/node_modules/@types/node/buffer.buffer.d.ts +472 -0
  714. package/template/packages/orpc/node_modules/@types/node/buffer.d.ts +1934 -0
  715. package/template/packages/orpc/node_modules/@types/node/child_process.d.ts +1476 -0
  716. package/template/packages/orpc/node_modules/@types/node/cluster.d.ts +578 -0
  717. package/template/packages/orpc/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
  718. package/template/packages/orpc/node_modules/@types/node/compatibility/index.d.ts +9 -0
  719. package/template/packages/orpc/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  720. package/template/packages/orpc/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
  721. package/template/packages/orpc/node_modules/@types/node/console.d.ts +452 -0
  722. package/template/packages/orpc/node_modules/@types/node/constants.d.ts +21 -0
  723. package/template/packages/orpc/node_modules/@types/node/crypto.d.ts +4545 -0
  724. package/template/packages/orpc/node_modules/@types/node/dgram.d.ts +600 -0
  725. package/template/packages/orpc/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
  726. package/template/packages/orpc/node_modules/@types/node/dns/promises.d.ts +503 -0
  727. package/template/packages/orpc/node_modules/@types/node/dns.d.ts +923 -0
  728. package/template/packages/orpc/node_modules/@types/node/domain.d.ts +170 -0
  729. package/template/packages/orpc/node_modules/@types/node/events.d.ts +976 -0
  730. package/template/packages/orpc/node_modules/@types/node/fs/promises.d.ts +1295 -0
  731. package/template/packages/orpc/node_modules/@types/node/fs.d.ts +4461 -0
  732. package/template/packages/orpc/node_modules/@types/node/globals.d.ts +172 -0
  733. package/template/packages/orpc/node_modules/@types/node/globals.typedarray.d.ts +38 -0
  734. package/template/packages/orpc/node_modules/@types/node/http.d.ts +2089 -0
  735. package/template/packages/orpc/node_modules/@types/node/http2.d.ts +2644 -0
  736. package/template/packages/orpc/node_modules/@types/node/https.d.ts +579 -0
  737. package/template/packages/orpc/node_modules/@types/node/index.d.ts +97 -0
  738. package/template/packages/orpc/node_modules/@types/node/inspector.d.ts +253 -0
  739. package/template/packages/orpc/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  740. package/template/packages/orpc/node_modules/@types/node/module.d.ts +891 -0
  741. package/template/packages/orpc/node_modules/@types/node/net.d.ts +1076 -0
  742. package/template/packages/orpc/node_modules/@types/node/os.d.ts +506 -0
  743. package/template/packages/orpc/node_modules/@types/node/package.json +145 -0
  744. package/template/packages/orpc/node_modules/@types/node/path.d.ts +200 -0
  745. package/template/packages/orpc/node_modules/@types/node/perf_hooks.d.ts +968 -0
  746. package/template/packages/orpc/node_modules/@types/node/process.d.ts +2084 -0
  747. package/template/packages/orpc/node_modules/@types/node/punycode.d.ts +117 -0
  748. package/template/packages/orpc/node_modules/@types/node/querystring.d.ts +152 -0
  749. package/template/packages/orpc/node_modules/@types/node/readline/promises.d.ts +161 -0
  750. package/template/packages/orpc/node_modules/@types/node/readline.d.ts +594 -0
  751. package/template/packages/orpc/node_modules/@types/node/repl.d.ts +428 -0
  752. package/template/packages/orpc/node_modules/@types/node/sea.d.ts +153 -0
  753. package/template/packages/orpc/node_modules/@types/node/sqlite.d.ts +721 -0
  754. package/template/packages/orpc/node_modules/@types/node/stream/consumers.d.ts +38 -0
  755. package/template/packages/orpc/node_modules/@types/node/stream/promises.d.ts +90 -0
  756. package/template/packages/orpc/node_modules/@types/node/stream/web.d.ts +622 -0
  757. package/template/packages/orpc/node_modules/@types/node/stream.d.ts +1687 -0
  758. package/template/packages/orpc/node_modules/@types/node/string_decoder.d.ts +67 -0
  759. package/template/packages/orpc/node_modules/@types/node/test.d.ts +2163 -0
  760. package/template/packages/orpc/node_modules/@types/node/timers/promises.d.ts +108 -0
  761. package/template/packages/orpc/node_modules/@types/node/timers.d.ts +287 -0
  762. package/template/packages/orpc/node_modules/@types/node/tls.d.ts +1319 -0
  763. package/template/packages/orpc/node_modules/@types/node/trace_events.d.ts +197 -0
  764. package/template/packages/orpc/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  765. package/template/packages/orpc/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
  766. package/template/packages/orpc/node_modules/@types/node/ts5.6/index.d.ts +97 -0
  767. package/template/packages/orpc/node_modules/@types/node/tty.d.ts +208 -0
  768. package/template/packages/orpc/node_modules/@types/node/url.d.ts +984 -0
  769. package/template/packages/orpc/node_modules/@types/node/util.d.ts +2606 -0
  770. package/template/packages/orpc/node_modules/@types/node/v8.d.ts +920 -0
  771. package/template/packages/orpc/node_modules/@types/node/vm.d.ts +1000 -0
  772. package/template/packages/orpc/node_modules/@types/node/wasi.d.ts +181 -0
  773. package/template/packages/orpc/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  774. package/template/packages/orpc/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  775. package/template/packages/orpc/node_modules/@types/node/web-globals/events.d.ts +97 -0
  776. package/template/packages/orpc/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
  777. package/template/packages/orpc/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
  778. package/template/packages/orpc/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  779. package/template/packages/orpc/node_modules/@types/node/worker_threads.d.ts +784 -0
  780. package/template/packages/orpc/node_modules/@types/node/zlib.d.ts +747 -0
  781. package/template/packages/orpc/node_modules/undici-types/LICENSE +21 -0
  782. package/template/packages/orpc/node_modules/undici-types/README.md +6 -0
  783. package/template/packages/orpc/node_modules/undici-types/agent.d.ts +31 -0
  784. package/template/packages/orpc/node_modules/undici-types/api.d.ts +43 -0
  785. package/template/packages/orpc/node_modules/undici-types/balanced-pool.d.ts +29 -0
  786. package/template/packages/orpc/node_modules/undici-types/cache.d.ts +36 -0
  787. package/template/packages/orpc/node_modules/undici-types/client.d.ts +108 -0
  788. package/template/packages/orpc/node_modules/undici-types/connector.d.ts +34 -0
  789. package/template/packages/orpc/node_modules/undici-types/content-type.d.ts +21 -0
  790. package/template/packages/orpc/node_modules/undici-types/cookies.d.ts +28 -0
  791. package/template/packages/orpc/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  792. package/template/packages/orpc/node_modules/undici-types/dispatcher.d.ts +256 -0
  793. package/template/packages/orpc/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  794. package/template/packages/orpc/node_modules/undici-types/errors.d.ts +149 -0
  795. package/template/packages/orpc/node_modules/undici-types/eventsource.d.ts +61 -0
  796. package/template/packages/orpc/node_modules/undici-types/fetch.d.ts +209 -0
  797. package/template/packages/orpc/node_modules/undici-types/file.d.ts +39 -0
  798. package/template/packages/orpc/node_modules/undici-types/filereader.d.ts +54 -0
  799. package/template/packages/orpc/node_modules/undici-types/formdata.d.ts +108 -0
  800. package/template/packages/orpc/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  801. package/template/packages/orpc/node_modules/undici-types/global-origin.d.ts +7 -0
  802. package/template/packages/orpc/node_modules/undici-types/handlers.d.ts +15 -0
  803. package/template/packages/orpc/node_modules/undici-types/header.d.ts +4 -0
  804. package/template/packages/orpc/node_modules/undici-types/index.d.ts +71 -0
  805. package/template/packages/orpc/node_modules/undici-types/interceptors.d.ts +17 -0
  806. package/template/packages/orpc/node_modules/undici-types/mock-agent.d.ts +50 -0
  807. package/template/packages/orpc/node_modules/undici-types/mock-client.d.ts +25 -0
  808. package/template/packages/orpc/node_modules/undici-types/mock-errors.d.ts +12 -0
  809. package/template/packages/orpc/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  810. package/template/packages/orpc/node_modules/undici-types/mock-pool.d.ts +25 -0
  811. package/template/packages/orpc/node_modules/undici-types/package.json +55 -0
  812. package/template/packages/orpc/node_modules/undici-types/patch.d.ts +33 -0
  813. package/template/packages/orpc/node_modules/undici-types/pool-stats.d.ts +19 -0
  814. package/template/packages/orpc/node_modules/undici-types/pool.d.ts +39 -0
  815. package/template/packages/orpc/node_modules/undici-types/proxy-agent.d.ts +28 -0
  816. package/template/packages/orpc/node_modules/undici-types/readable.d.ts +65 -0
  817. package/template/packages/orpc/node_modules/undici-types/retry-agent.d.ts +8 -0
  818. package/template/packages/orpc/node_modules/undici-types/retry-handler.d.ts +116 -0
  819. package/template/packages/orpc/node_modules/undici-types/util.d.ts +18 -0
  820. package/template/packages/orpc/node_modules/undici-types/webidl.d.ts +228 -0
  821. package/template/packages/orpc/node_modules/undici-types/websocket.d.ts +150 -0
  822. package/template/packages/orpc/package.json +6 -0
  823. package/template/packages/orpc/prettier.config.ts +3 -0
  824. package/template/packages/orpc/tsconfig.json +2 -9
  825. package/template/packages/ui/eslint.config.ts +2 -2
  826. package/template/packages/ui/package.json +3 -0
  827. package/template/packages/ui/prettier.config.ts +3 -0
  828. package/template/packages/ui/tsconfig.json +2 -9
  829. package/template/prettier.config.ts +15 -0
  830. package/template/.prettierrc +0 -11
  831. package/template/apps/platform/eslint.config.js +0 -10
  832. package/template/packages/auth/tsconfig.lint.json +0 -14
  833. package/template/packages/db/tsconfig.lint.json +0 -14
  834. package/template/packages/orpc/tsconfig.lint.json +0 -14
@@ -0,0 +1,594 @@
1
+ /**
2
+ * The `node:readline` module provides an interface for reading data from a [Readable](https://nodejs.org/docs/latest-v22.x/api/stream.html#readable-streams) stream
3
+ * (such as [`process.stdin`](https://nodejs.org/docs/latest-v22.x/api/process.html#processstdin)) one line at a time.
4
+ *
5
+ * To use the promise-based APIs:
6
+ *
7
+ * ```js
8
+ * import * as readline from 'node:readline/promises';
9
+ * ```
10
+ *
11
+ * To use the callback and sync APIs:
12
+ *
13
+ * ```js
14
+ * import * as readline from 'node:readline';
15
+ * ```
16
+ *
17
+ * The following simple example illustrates the basic use of the `node:readline` module.
18
+ *
19
+ * ```js
20
+ * import * as readline from 'node:readline/promises';
21
+ * import { stdin as input, stdout as output } from 'node:process';
22
+ *
23
+ * const rl = readline.createInterface({ input, output });
24
+ *
25
+ * const answer = await rl.question('What do you think of Node.js? ');
26
+ *
27
+ * console.log(`Thank you for your valuable feedback: ${answer}`);
28
+ *
29
+ * rl.close();
30
+ * ```
31
+ *
32
+ * Once this code is invoked, the Node.js application will not terminate until the `readline.Interface` is closed because the interface waits for data to be
33
+ * received on the `input` stream.
34
+ * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/readline.js)
35
+ */
36
+ declare module "readline" {
37
+ import { Abortable, EventEmitter } from "node:events";
38
+ import * as promises from "node:readline/promises";
39
+ export { promises };
40
+ export interface Key {
41
+ sequence?: string | undefined;
42
+ name?: string | undefined;
43
+ ctrl?: boolean | undefined;
44
+ meta?: boolean | undefined;
45
+ shift?: boolean | undefined;
46
+ }
47
+ /**
48
+ * Instances of the `readline.Interface` class are constructed using the `readline.createInterface()` method. Every instance is associated with a
49
+ * single `input` [Readable](https://nodejs.org/docs/latest-v22.x/api/stream.html#readable-streams) stream and a single `output` [Writable](https://nodejs.org/docs/latest-v22.x/api/stream.html#writable-streams) stream.
50
+ * The `output` stream is used to print prompts for user input that arrives on,
51
+ * and is read from, the `input` stream.
52
+ * @since v0.1.104
53
+ */
54
+ export class Interface extends EventEmitter implements Disposable {
55
+ readonly terminal: boolean;
56
+ /**
57
+ * The current input data being processed by node.
58
+ *
59
+ * This can be used when collecting input from a TTY stream to retrieve the
60
+ * current value that has been processed thus far, prior to the `line` event
61
+ * being emitted. Once the `line` event has been emitted, this property will
62
+ * be an empty string.
63
+ *
64
+ * Be aware that modifying the value during the instance runtime may have
65
+ * unintended consequences if `rl.cursor` is not also controlled.
66
+ *
67
+ * **If not using a TTY stream for input, use the `'line'` event.**
68
+ *
69
+ * One possible use case would be as follows:
70
+ *
71
+ * ```js
72
+ * const values = ['lorem ipsum', 'dolor sit amet'];
73
+ * const rl = readline.createInterface(process.stdin);
74
+ * const showResults = debounce(() => {
75
+ * console.log(
76
+ * '\n',
77
+ * values.filter((val) => val.startsWith(rl.line)).join(' '),
78
+ * );
79
+ * }, 300);
80
+ * process.stdin.on('keypress', (c, k) => {
81
+ * showResults();
82
+ * });
83
+ * ```
84
+ * @since v0.1.98
85
+ */
86
+ readonly line: string;
87
+ /**
88
+ * The cursor position relative to `rl.line`.
89
+ *
90
+ * This will track where the current cursor lands in the input string, when
91
+ * reading input from a TTY stream. The position of cursor determines the
92
+ * portion of the input string that will be modified as input is processed,
93
+ * as well as the column where the terminal caret will be rendered.
94
+ * @since v0.1.98
95
+ */
96
+ readonly cursor: number;
97
+ /**
98
+ * NOTE: According to the documentation:
99
+ *
100
+ * > Instances of the `readline.Interface` class are constructed using the
101
+ * > `readline.createInterface()` method.
102
+ *
103
+ * @see https://nodejs.org/dist/latest-v22.x/docs/api/readline.html#class-interfaceconstructor
104
+ */
105
+ protected constructor(
106
+ input: NodeJS.ReadableStream,
107
+ output?: NodeJS.WritableStream,
108
+ completer?: Completer | AsyncCompleter,
109
+ terminal?: boolean,
110
+ );
111
+ /**
112
+ * NOTE: According to the documentation:
113
+ *
114
+ * > Instances of the `readline.Interface` class are constructed using the
115
+ * > `readline.createInterface()` method.
116
+ *
117
+ * @see https://nodejs.org/dist/latest-v22.x/docs/api/readline.html#class-interfaceconstructor
118
+ */
119
+ protected constructor(options: ReadLineOptions);
120
+ /**
121
+ * The `rl.getPrompt()` method returns the current prompt used by `rl.prompt()`.
122
+ * @since v15.3.0, v14.17.0
123
+ * @return the current prompt string
124
+ */
125
+ getPrompt(): string;
126
+ /**
127
+ * The `rl.setPrompt()` method sets the prompt that will be written to `output` whenever `rl.prompt()` is called.
128
+ * @since v0.1.98
129
+ */
130
+ setPrompt(prompt: string): void;
131
+ /**
132
+ * The `rl.prompt()` method writes the `Interface` instances configured`prompt` to a new line in `output` in order to provide a user with a new
133
+ * location at which to provide input.
134
+ *
135
+ * When called, `rl.prompt()` will resume the `input` stream if it has been
136
+ * paused.
137
+ *
138
+ * If the `Interface` was created with `output` set to `null` or `undefined` the prompt is not written.
139
+ * @since v0.1.98
140
+ * @param preserveCursor If `true`, prevents the cursor placement from being reset to `0`.
141
+ */
142
+ prompt(preserveCursor?: boolean): void;
143
+ /**
144
+ * The `rl.question()` method displays the `query` by writing it to the `output`,
145
+ * waits for user input to be provided on `input`, then invokes the `callback` function passing the provided input as the first argument.
146
+ *
147
+ * When called, `rl.question()` will resume the `input` stream if it has been
148
+ * paused.
149
+ *
150
+ * If the `Interface` was created with `output` set to `null` or `undefined` the `query` is not written.
151
+ *
152
+ * The `callback` function passed to `rl.question()` does not follow the typical
153
+ * pattern of accepting an `Error` object or `null` as the first argument.
154
+ * The `callback` is called with the provided answer as the only argument.
155
+ *
156
+ * An error will be thrown if calling `rl.question()` after `rl.close()`.
157
+ *
158
+ * Example usage:
159
+ *
160
+ * ```js
161
+ * rl.question('What is your favorite food? ', (answer) => {
162
+ * console.log(`Oh, so your favorite food is ${answer}`);
163
+ * });
164
+ * ```
165
+ *
166
+ * Using an `AbortController` to cancel a question.
167
+ *
168
+ * ```js
169
+ * const ac = new AbortController();
170
+ * const signal = ac.signal;
171
+ *
172
+ * rl.question('What is your favorite food? ', { signal }, (answer) => {
173
+ * console.log(`Oh, so your favorite food is ${answer}`);
174
+ * });
175
+ *
176
+ * signal.addEventListener('abort', () => {
177
+ * console.log('The food question timed out');
178
+ * }, { once: true });
179
+ *
180
+ * setTimeout(() => ac.abort(), 10000);
181
+ * ```
182
+ * @since v0.3.3
183
+ * @param query A statement or query to write to `output`, prepended to the prompt.
184
+ * @param callback A callback function that is invoked with the user's input in response to the `query`.
185
+ */
186
+ question(query: string, callback: (answer: string) => void): void;
187
+ question(query: string, options: Abortable, callback: (answer: string) => void): void;
188
+ /**
189
+ * The `rl.pause()` method pauses the `input` stream, allowing it to be resumed
190
+ * later if necessary.
191
+ *
192
+ * Calling `rl.pause()` does not immediately pause other events (including `'line'`) from being emitted by the `Interface` instance.
193
+ * @since v0.3.4
194
+ */
195
+ pause(): this;
196
+ /**
197
+ * The `rl.resume()` method resumes the `input` stream if it has been paused.
198
+ * @since v0.3.4
199
+ */
200
+ resume(): this;
201
+ /**
202
+ * The `rl.close()` method closes the `Interface` instance and
203
+ * relinquishes control over the `input` and `output` streams. When called,
204
+ * the `'close'` event will be emitted.
205
+ *
206
+ * Calling `rl.close()` does not immediately stop other events (including `'line'`)
207
+ * from being emitted by the `Interface` instance.
208
+ * @since v0.1.98
209
+ */
210
+ close(): void;
211
+ /**
212
+ * Alias for `rl.close()`.
213
+ * @since v22.15.0
214
+ */
215
+ [Symbol.dispose](): void;
216
+ /**
217
+ * The `rl.write()` method will write either `data` or a key sequence identified
218
+ * by `key` to the `output`. The `key` argument is supported only if `output` is
219
+ * a `TTY` text terminal. See `TTY keybindings` for a list of key
220
+ * combinations.
221
+ *
222
+ * If `key` is specified, `data` is ignored.
223
+ *
224
+ * When called, `rl.write()` will resume the `input` stream if it has been
225
+ * paused.
226
+ *
227
+ * If the `Interface` was created with `output` set to `null` or `undefined` the `data` and `key` are not written.
228
+ *
229
+ * ```js
230
+ * rl.write('Delete this!');
231
+ * // Simulate Ctrl+U to delete the line written previously
232
+ * rl.write(null, { ctrl: true, name: 'u' });
233
+ * ```
234
+ *
235
+ * The `rl.write()` method will write the data to the `readline` `Interface`'s `input` _as if it were provided by the user_.
236
+ * @since v0.1.98
237
+ */
238
+ write(data: string | Buffer, key?: Key): void;
239
+ write(data: undefined | null | string | Buffer, key: Key): void;
240
+ /**
241
+ * Returns the real position of the cursor in relation to the input
242
+ * prompt + string. Long input (wrapping) strings, as well as multiple
243
+ * line prompts are included in the calculations.
244
+ * @since v13.5.0, v12.16.0
245
+ */
246
+ getCursorPos(): CursorPos;
247
+ /**
248
+ * events.EventEmitter
249
+ * 1. close
250
+ * 2. line
251
+ * 3. pause
252
+ * 4. resume
253
+ * 5. SIGCONT
254
+ * 6. SIGINT
255
+ * 7. SIGTSTP
256
+ * 8. history
257
+ */
258
+ addListener(event: string, listener: (...args: any[]) => void): this;
259
+ addListener(event: "close", listener: () => void): this;
260
+ addListener(event: "line", listener: (input: string) => void): this;
261
+ addListener(event: "pause", listener: () => void): this;
262
+ addListener(event: "resume", listener: () => void): this;
263
+ addListener(event: "SIGCONT", listener: () => void): this;
264
+ addListener(event: "SIGINT", listener: () => void): this;
265
+ addListener(event: "SIGTSTP", listener: () => void): this;
266
+ addListener(event: "history", listener: (history: string[]) => void): this;
267
+ emit(event: string | symbol, ...args: any[]): boolean;
268
+ emit(event: "close"): boolean;
269
+ emit(event: "line", input: string): boolean;
270
+ emit(event: "pause"): boolean;
271
+ emit(event: "resume"): boolean;
272
+ emit(event: "SIGCONT"): boolean;
273
+ emit(event: "SIGINT"): boolean;
274
+ emit(event: "SIGTSTP"): boolean;
275
+ emit(event: "history", history: string[]): boolean;
276
+ on(event: string, listener: (...args: any[]) => void): this;
277
+ on(event: "close", listener: () => void): this;
278
+ on(event: "line", listener: (input: string) => void): this;
279
+ on(event: "pause", listener: () => void): this;
280
+ on(event: "resume", listener: () => void): this;
281
+ on(event: "SIGCONT", listener: () => void): this;
282
+ on(event: "SIGINT", listener: () => void): this;
283
+ on(event: "SIGTSTP", listener: () => void): this;
284
+ on(event: "history", listener: (history: string[]) => void): this;
285
+ once(event: string, listener: (...args: any[]) => void): this;
286
+ once(event: "close", listener: () => void): this;
287
+ once(event: "line", listener: (input: string) => void): this;
288
+ once(event: "pause", listener: () => void): this;
289
+ once(event: "resume", listener: () => void): this;
290
+ once(event: "SIGCONT", listener: () => void): this;
291
+ once(event: "SIGINT", listener: () => void): this;
292
+ once(event: "SIGTSTP", listener: () => void): this;
293
+ once(event: "history", listener: (history: string[]) => void): this;
294
+ prependListener(event: string, listener: (...args: any[]) => void): this;
295
+ prependListener(event: "close", listener: () => void): this;
296
+ prependListener(event: "line", listener: (input: string) => void): this;
297
+ prependListener(event: "pause", listener: () => void): this;
298
+ prependListener(event: "resume", listener: () => void): this;
299
+ prependListener(event: "SIGCONT", listener: () => void): this;
300
+ prependListener(event: "SIGINT", listener: () => void): this;
301
+ prependListener(event: "SIGTSTP", listener: () => void): this;
302
+ prependListener(event: "history", listener: (history: string[]) => void): this;
303
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
304
+ prependOnceListener(event: "close", listener: () => void): this;
305
+ prependOnceListener(event: "line", listener: (input: string) => void): this;
306
+ prependOnceListener(event: "pause", listener: () => void): this;
307
+ prependOnceListener(event: "resume", listener: () => void): this;
308
+ prependOnceListener(event: "SIGCONT", listener: () => void): this;
309
+ prependOnceListener(event: "SIGINT", listener: () => void): this;
310
+ prependOnceListener(event: "SIGTSTP", listener: () => void): this;
311
+ prependOnceListener(event: "history", listener: (history: string[]) => void): this;
312
+ [Symbol.asyncIterator](): NodeJS.AsyncIterator<string>;
313
+ }
314
+ export type ReadLine = Interface; // type forwarded for backwards compatibility
315
+ export type Completer = (line: string) => CompleterResult;
316
+ export type AsyncCompleter = (
317
+ line: string,
318
+ callback: (err?: null | Error, result?: CompleterResult) => void,
319
+ ) => void;
320
+ export type CompleterResult = [string[], string];
321
+ export interface ReadLineOptions {
322
+ /**
323
+ * The [`Readable`](https://nodejs.org/docs/latest-v22.x/api/stream.html#readable-streams) stream to listen to
324
+ */
325
+ input: NodeJS.ReadableStream;
326
+ /**
327
+ * The [`Writable`](https://nodejs.org/docs/latest-v22.x/api/stream.html#writable-streams) stream to write readline data to.
328
+ */
329
+ output?: NodeJS.WritableStream | undefined;
330
+ /**
331
+ * An optional function used for Tab autocompletion.
332
+ */
333
+ completer?: Completer | AsyncCompleter | undefined;
334
+ /**
335
+ * `true` if the `input` and `output` streams should be treated like a TTY,
336
+ * and have ANSI/VT100 escape codes written to it.
337
+ * Default: checking `isTTY` on the `output` stream upon instantiation.
338
+ */
339
+ terminal?: boolean | undefined;
340
+ /**
341
+ * Initial list of history lines.
342
+ * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check,
343
+ * otherwise the history caching mechanism is not initialized at all.
344
+ * @default []
345
+ */
346
+ history?: string[] | undefined;
347
+ /**
348
+ * Maximum number of history lines retained.
349
+ * To disable the history set this value to `0`.
350
+ * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check,
351
+ * otherwise the history caching mechanism is not initialized at all.
352
+ * @default 30
353
+ */
354
+ historySize?: number | undefined;
355
+ /**
356
+ * If `true`, when a new input line added to the history list duplicates an older one,
357
+ * this removes the older line from the list.
358
+ * @default false
359
+ */
360
+ removeHistoryDuplicates?: boolean | undefined;
361
+ /**
362
+ * The prompt string to use.
363
+ * @default "> "
364
+ */
365
+ prompt?: string | undefined;
366
+ /**
367
+ * If the delay between `\r` and `\n` exceeds `crlfDelay` milliseconds,
368
+ * both `\r` and `\n` will be treated as separate end-of-line input.
369
+ * `crlfDelay` will be coerced to a number no less than `100`.
370
+ * It can be set to `Infinity`, in which case
371
+ * `\r` followed by `\n` will always be considered a single newline
372
+ * (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v22.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter).
373
+ * @default 100
374
+ */
375
+ crlfDelay?: number | undefined;
376
+ /**
377
+ * The duration `readline` will wait for a character
378
+ * (when reading an ambiguous key sequence in milliseconds
379
+ * one that can both form a complete key sequence using the input read so far
380
+ * and can take additional input to complete a longer key sequence).
381
+ * @default 500
382
+ */
383
+ escapeCodeTimeout?: number | undefined;
384
+ /**
385
+ * The number of spaces a tab is equal to (minimum 1).
386
+ * @default 8
387
+ */
388
+ tabSize?: number | undefined;
389
+ /**
390
+ * Allows closing the interface using an AbortSignal.
391
+ * Aborting the signal will internally call `close` on the interface.
392
+ */
393
+ signal?: AbortSignal | undefined;
394
+ }
395
+ /**
396
+ * The `readline.createInterface()` method creates a new `readline.Interface` instance.
397
+ *
398
+ * ```js
399
+ * import readline from 'node:readline';
400
+ * const rl = readline.createInterface({
401
+ * input: process.stdin,
402
+ * output: process.stdout,
403
+ * });
404
+ * ```
405
+ *
406
+ * Once the `readline.Interface` instance is created, the most common case is to
407
+ * listen for the `'line'` event:
408
+ *
409
+ * ```js
410
+ * rl.on('line', (line) => {
411
+ * console.log(`Received: ${line}`);
412
+ * });
413
+ * ```
414
+ *
415
+ * If `terminal` is `true` for this instance then the `output` stream will get
416
+ * the best compatibility if it defines an `output.columns` property and emits
417
+ * a `'resize'` event on the `output` if or when the columns ever change
418
+ * (`process.stdout` does this automatically when it is a TTY).
419
+ *
420
+ * When creating a `readline.Interface` using `stdin` as input, the program
421
+ * will not terminate until it receives an [EOF character](https://en.wikipedia.org/wiki/End-of-file#EOF_character). To exit without
422
+ * waiting for user input, call `process.stdin.unref()`.
423
+ * @since v0.1.98
424
+ */
425
+ export function createInterface(
426
+ input: NodeJS.ReadableStream,
427
+ output?: NodeJS.WritableStream,
428
+ completer?: Completer | AsyncCompleter,
429
+ terminal?: boolean,
430
+ ): Interface;
431
+ export function createInterface(options: ReadLineOptions): Interface;
432
+ /**
433
+ * The `readline.emitKeypressEvents()` method causes the given `Readable` stream to begin emitting `'keypress'` events corresponding to received input.
434
+ *
435
+ * Optionally, `interface` specifies a `readline.Interface` instance for which
436
+ * autocompletion is disabled when copy-pasted input is detected.
437
+ *
438
+ * If the `stream` is a `TTY`, then it must be in raw mode.
439
+ *
440
+ * This is automatically called by any readline instance on its `input` if the `input` is a terminal. Closing the `readline` instance does not stop
441
+ * the `input` from emitting `'keypress'` events.
442
+ *
443
+ * ```js
444
+ * readline.emitKeypressEvents(process.stdin);
445
+ * if (process.stdin.isTTY)
446
+ * process.stdin.setRawMode(true);
447
+ * ```
448
+ *
449
+ * ## Example: Tiny CLI
450
+ *
451
+ * The following example illustrates the use of `readline.Interface` class to
452
+ * implement a small command-line interface:
453
+ *
454
+ * ```js
455
+ * import readline from 'node:readline';
456
+ * const rl = readline.createInterface({
457
+ * input: process.stdin,
458
+ * output: process.stdout,
459
+ * prompt: 'OHAI> ',
460
+ * });
461
+ *
462
+ * rl.prompt();
463
+ *
464
+ * rl.on('line', (line) => {
465
+ * switch (line.trim()) {
466
+ * case 'hello':
467
+ * console.log('world!');
468
+ * break;
469
+ * default:
470
+ * console.log(`Say what? I might have heard '${line.trim()}'`);
471
+ * break;
472
+ * }
473
+ * rl.prompt();
474
+ * }).on('close', () => {
475
+ * console.log('Have a great day!');
476
+ * process.exit(0);
477
+ * });
478
+ * ```
479
+ *
480
+ * ## Example: Read file stream line-by-Line
481
+ *
482
+ * A common use case for `readline` is to consume an input file one line at a
483
+ * time. The easiest way to do so is leveraging the `fs.ReadStream` API as
484
+ * well as a `for await...of` loop:
485
+ *
486
+ * ```js
487
+ * import fs from 'node:fs';
488
+ * import readline from 'node:readline';
489
+ *
490
+ * async function processLineByLine() {
491
+ * const fileStream = fs.createReadStream('input.txt');
492
+ *
493
+ * const rl = readline.createInterface({
494
+ * input: fileStream,
495
+ * crlfDelay: Infinity,
496
+ * });
497
+ * // Note: we use the crlfDelay option to recognize all instances of CR LF
498
+ * // ('\r\n') in input.txt as a single line break.
499
+ *
500
+ * for await (const line of rl) {
501
+ * // Each line in input.txt will be successively available here as `line`.
502
+ * console.log(`Line from file: ${line}`);
503
+ * }
504
+ * }
505
+ *
506
+ * processLineByLine();
507
+ * ```
508
+ *
509
+ * Alternatively, one could use the `'line'` event:
510
+ *
511
+ * ```js
512
+ * import fs from 'node:fs';
513
+ * import readline from 'node:readline';
514
+ *
515
+ * const rl = readline.createInterface({
516
+ * input: fs.createReadStream('sample.txt'),
517
+ * crlfDelay: Infinity,
518
+ * });
519
+ *
520
+ * rl.on('line', (line) => {
521
+ * console.log(`Line from file: ${line}`);
522
+ * });
523
+ * ```
524
+ *
525
+ * Currently, `for await...of` loop can be a bit slower. If `async` / `await` flow and speed are both essential, a mixed approach can be applied:
526
+ *
527
+ * ```js
528
+ * import { once } from 'node:events';
529
+ * import { createReadStream } from 'node:fs';
530
+ * import { createInterface } from 'node:readline';
531
+ *
532
+ * (async function processLineByLine() {
533
+ * try {
534
+ * const rl = createInterface({
535
+ * input: createReadStream('big-file.txt'),
536
+ * crlfDelay: Infinity,
537
+ * });
538
+ *
539
+ * rl.on('line', (line) => {
540
+ * // Process the line.
541
+ * });
542
+ *
543
+ * await once(rl, 'close');
544
+ *
545
+ * console.log('File processed.');
546
+ * } catch (err) {
547
+ * console.error(err);
548
+ * }
549
+ * })();
550
+ * ```
551
+ * @since v0.7.7
552
+ */
553
+ export function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void;
554
+ export type Direction = -1 | 0 | 1;
555
+ export interface CursorPos {
556
+ rows: number;
557
+ cols: number;
558
+ }
559
+ /**
560
+ * The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/latest-v22.x/api/tty.html) stream
561
+ * in a specified direction identified by `dir`.
562
+ * @since v0.7.7
563
+ * @param callback Invoked once the operation completes.
564
+ * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
565
+ */
566
+ export function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean;
567
+ /**
568
+ * The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/latest-v22.x/api/tty.html) stream from
569
+ * the current position of the cursor down.
570
+ * @since v0.7.7
571
+ * @param callback Invoked once the operation completes.
572
+ * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
573
+ */
574
+ export function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean;
575
+ /**
576
+ * The `readline.cursorTo()` method moves cursor to the specified position in a
577
+ * given [TTY](https://nodejs.org/docs/latest-v22.x/api/tty.html) `stream`.
578
+ * @since v0.7.7
579
+ * @param callback Invoked once the operation completes.
580
+ * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
581
+ */
582
+ export function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean;
583
+ /**
584
+ * The `readline.moveCursor()` method moves the cursor _relative_ to its current
585
+ * position in a given [TTY](https://nodejs.org/docs/latest-v22.x/api/tty.html) `stream`.
586
+ * @since v0.7.7
587
+ * @param callback Invoked once the operation completes.
588
+ * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
589
+ */
590
+ export function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
591
+ }
592
+ declare module "node:readline" {
593
+ export * from "readline";
594
+ }