kennel 0.2.12 → 0.2.15

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 (1863) hide show
  1. package/README.md +19 -7
  2. package/dist/cli/dispatch.js +35 -4
  3. package/dist/cli/usage.js +2 -1
  4. package/dist/core/api-client.d.ts +1 -1
  5. package/dist/core/api-client.js +12 -14
  6. package/dist/core/command.js +4 -6
  7. package/dist/core/core-folders.js +10906 -18152
  8. package/dist/core/init.js +3 -3
  9. package/dist/core/runtime.js +207 -828
  10. package/dist/mcp/function-source.js +1 -1
  11. package/dist/mcp/generate.js +1 -1
  12. package/dist/mcp/install-page.d.ts +1 -1
  13. package/dist/mcp/install-page.js +1 -1
  14. package/dist/notifications/email-worker.js +1 -1
  15. package/dist/package/mcp-data.d.ts +1 -1
  16. package/dist/package/mcp-data.js +1 -1
  17. package/dist/package/mcp-email-worker.d.ts +1 -1
  18. package/dist/package/mcp-email-worker.js +1 -1
  19. package/dist/package/mcp-http.d.ts +1 -1
  20. package/dist/package/mcp-http.js +1 -1
  21. package/dist/package/mcp-stdio.d.ts +1 -1
  22. package/dist/package/mcp-stdio.js +1 -1
  23. package/dist/package/mcp.d.ts +1 -1
  24. package/dist/package/mcp.js +1 -1
  25. package/dist/package/preview.d.ts +2 -2
  26. package/dist/package/preview.js +9034 -55365
  27. package/dist/plugins/external.d.ts +23 -29
  28. package/dist/plugins/external.js +338 -255
  29. package/dist/site/hot-viewer.js +7 -8
  30. package/dist/site/kinds.d.ts +1 -1
  31. package/dist/site/server-plugins.d.ts +3 -6
  32. package/dist/site/server-plugins.js +31 -540
  33. package/dist/site/viewer.js +6 -10
  34. package/package.json +10 -43
  35. package/schemas/config.schema.json +10 -18
  36. package/templates/plugin/client.tsx +12 -0
  37. package/templates/plugin/kennel.plugin.json +3 -0
  38. package/templates/plugin/manifest.ts +6 -0
  39. package/templates/plugin/package.json +11 -0
  40. package/templates/plugin/server.ts +13 -0
  41. package/templates/plugin/tsconfig.json +11 -0
  42. package/web/assets/abnfDiagram-VRR7QNED-BHyQWgE7.js +1 -0
  43. package/web/assets/app-B0JvGgzJ.js +2 -0
  44. package/web/assets/app-options-CKc3uI_8.js +25 -0
  45. package/web/assets/app-view-header-O3qQjBZc.js +1 -0
  46. package/web/assets/arc-iqMSyq0j.js +1 -0
  47. package/web/assets/architectureDiagram-ZJ3FMSHR-icE1qR4S.js +36 -0
  48. package/web/assets/ask-tray-DYxvqV-2.js +14 -0
  49. package/web/assets/blockDiagram-677ZJIJ3-DvszZf5O.js +132 -0
  50. package/web/assets/c4Diagram-LMCZKHZV-DKGTFJdP.js +10 -0
  51. package/web/assets/channel-Dl1wIhHR.js +1 -0
  52. package/web/assets/check-Cfaum8KK.js +1 -0
  53. package/web/assets/chevron-down-BX9NAmJK.js +1 -0
  54. package/web/assets/chevron-right-ztDuzaVJ.js +1 -0
  55. package/web/assets/chevron-up-DuJcPAvZ.js +1 -0
  56. package/web/assets/chunk-2Q5K7J3B-DfHQU7-4.js +1 -0
  57. package/web/assets/chunk-32BRIVSS-CGVIeMh2.js +1 -0
  58. package/web/assets/chunk-5VM5RSS4-YC-XnadT.js +15 -0
  59. package/web/assets/chunk-EX3LRPZG-D9hAmjFx.js +231 -0
  60. package/web/assets/chunk-JWPE2WC7-CZJ17mca.js +1 -0
  61. package/web/assets/chunk-MOJQB5TN-6c2Jo2zi.js +88 -0
  62. package/web/assets/chunk-RYQCIY6F-1Nn1hRKy.js +1 -0
  63. package/web/assets/chunk-V7JOEXUC-D1yjMw1v.js +206 -0
  64. package/web/assets/chunk-VR4S4FIN-BEXJFqwW.js +1 -0
  65. package/web/assets/chunk-XXDRQBXY-B8VOyKvi.js +1 -0
  66. package/web/assets/classDiagram-OUVF2IWQ-B1y0va4e.js +1 -0
  67. package/web/assets/classDiagram-v2-EOCWNBFH-B1y0va4e.js +1 -0
  68. package/web/assets/client-BrGya3CX.js +6 -0
  69. package/web/assets/client-C7VkMvLG.js +43 -0
  70. package/web/assets/command-Y1kMd3Z_.js +38 -0
  71. package/web/assets/copy-COuKJWiP.js +1 -0
  72. package/web/assets/copy-context-DGGuwV3t.js +1 -0
  73. package/web/assets/cose-bilkent-JH36ORCC-DPz8lvQv.js +1 -0
  74. package/web/assets/cynefin-VYW2F7L2-BFTKvFOB.js +166 -0
  75. package/web/assets/cynefinDiagram-TSTJHNR4-DMEVtV_N.js +62 -0
  76. package/web/assets/dagre-VKFMJZFB-DBfLDvQQ.js +4 -0
  77. package/web/assets/diagram-FQU43EPY-Hg6dezar.js +3 -0
  78. package/web/assets/diagram-G47NLZAW-B3By8CC3.js +24 -0
  79. package/web/assets/diagram-NH7WQ7WH-VX-G6EM9.js +24 -0
  80. package/web/assets/diagram-OA4YK3LP-BDqJrmLH.js +30 -0
  81. package/web/assets/diagram-WEI45ONY-E_AxKlsP.js +41 -0
  82. package/web/assets/document-CPUr6Ihg.js +23 -0
  83. package/web/assets/ebnfDiagram-CCIWWBDH-GqIG7eta.js +1 -0
  84. package/web/assets/ellipsis-D2HGbhJm.js +1 -0
  85. package/web/assets/entities-CKW3uiVH.js +22 -0
  86. package/web/assets/erDiagram-Q63AITRT-dYQlw4qh.js +85 -0
  87. package/web/assets/file-text-DcPqwYq5.js +1 -0
  88. package/web/assets/file-viewer-7SOU9CiS.js +1 -0
  89. package/web/assets/flowDiagram-23GEKE2U-Pc0YdspI.js +156 -0
  90. package/web/assets/folder-DTZcp2A6.js +1 -0
  91. package/web/assets/folder-filter-bar-B-i-4rbo.js +4 -0
  92. package/web/assets/folder-image-DU_poo8q.js +1 -0
  93. package/web/assets/folder-landing-UVkNL9G8.js +55 -0
  94. package/web/assets/folder-list-F-yrc7-p.js +1 -0
  95. package/web/assets/folder-mobile-bar-DJPrKpxo.js +1 -0
  96. package/web/assets/folder-open-DOYzvzsN.js +1 -0
  97. package/web/assets/folder-plugin-view-BT7to93n.js +2 -0
  98. package/web/assets/ganttDiagram-NO4QXBWP-DZJOsUZz.js +292 -0
  99. package/web/assets/gitGraphDiagram-IHSO6WYX-CgLODdVy.js +106 -0
  100. package/web/assets/hooks-wZOJYSkv.js +1 -0
  101. package/web/assets/index-4-yQR2Lz.js +41 -0
  102. package/web/assets/index-4JQ747xt.js +1 -0
  103. package/web/assets/index-B9Ju-85a.js +2 -0
  104. package/web/assets/index-BFd02VlT.js +1 -0
  105. package/web/assets/index-BjrX8Pf-.js +64 -0
  106. package/web/assets/index-BpMdYK6_.js +1 -0
  107. package/web/assets/index-D4WzK5IV.js +1 -0
  108. package/web/assets/index-DnD4X7zc.js +1 -0
  109. package/web/assets/index-uY9jLiL5.css +1 -0
  110. package/web/assets/index-uo3lipQl.js +1 -0
  111. package/web/assets/infoDiagram-FWYZ7A6U-DX-ufAQe.js +2 -0
  112. package/web/assets/input-fNFbKa15.js +9 -0
  113. package/web/assets/ishikawaDiagram-FXEZZL3T-CuwECnGF.js +70 -0
  114. package/web/assets/journeyDiagram-5HDEW3XC-2zmihEh6.js +139 -0
  115. package/web/assets/kanban-definition-HUTT4EX6-BdQsyGLl.js +89 -0
  116. package/web/assets/linear-B-kLzgKS.js +1 -0
  117. package/web/assets/linked-session-header-D4SUBW0L.js +3 -0
  118. package/web/assets/markdown-BvBsne3X.js +327 -0
  119. package/web/assets/mermaid.core-aYzB5any.js +308 -0
  120. package/web/assets/metadata-Clyy4qXZ.js +58 -0
  121. package/web/assets/mindmap-definition-LN4V7U3C-BNBOyFsl.js +96 -0
  122. package/web/assets/pegDiagram-2B236MQR-BAvwpPbi.js +1 -0
  123. package/web/assets/pieDiagram-ENE6RG2P-BXCS7abV.js +39 -0
  124. package/web/assets/plugin-host-modules-DEtx9Hq7.js +10 -0
  125. package/web/assets/plus-B3J-m78K.js +1 -0
  126. package/web/assets/popover-1LXR77r7.js +9 -0
  127. package/web/assets/project-search-dialog-B56ZSDPJ.js +43 -0
  128. package/web/assets/quadrantDiagram-ABIIQ3AL-Coo6fFHf.js +7 -0
  129. package/web/assets/railroadDiagram-RFXS5EU6-BaNxlV1J.js +1 -0
  130. package/web/assets/react-Dh7j6h1K.js +9 -0
  131. package/web/assets/requirementDiagram-TGXJPOKE-LMF4IfnZ.js +84 -0
  132. package/web/assets/sankeyDiagram-HTMAVEWB-C-yWLNPa.js +40 -0
  133. package/web/assets/search-BPF3ARQ9.js +1 -0
  134. package/web/assets/search-DG1auulp.css +1 -0
  135. package/web/assets/search-DImG1V67.js +2 -0
  136. package/web/assets/selection-popup-B_zAXt8R.js +7 -0
  137. package/web/assets/sequenceDiagram-DBY2YBRQ-DeHqYdg4.js +162 -0
  138. package/web/assets/sizeCapture-X5ZJPWSS-D2CDPOxg.js +1 -0
  139. package/web/assets/stateDiagram-2N3HPSRC-CNIYaeQH.js +1 -0
  140. package/web/assets/stateDiagram-v2-6OUMAXLB-Kn8FnYqS.js +1 -0
  141. package/web/assets/swimlanes-5IMT3BWC-CDsDmFBa.js +2 -0
  142. package/web/assets/swimlanesDiagram-G3AALYLV-FhTXuqD7.js +8 -0
  143. package/web/assets/tanstack-CirxkzEx.js +1 -0
  144. package/web/assets/timeline-definition-FHXFAJF6-C5ZIg5nr.js +120 -0
  145. package/web/assets/utils-CvINCDjn.js +1 -0
  146. package/web/assets/vennDiagram-L72KCM5P-D6pkrFwZ.js +34 -0
  147. package/web/assets/view-context-DKIrg--H.js +101 -0
  148. package/web/assets/viewer-capabilities-1a6IsY4l.js +1 -0
  149. package/web/assets/wardleyDiagram-EHGQE667-Yf1WJw-3.js +78 -0
  150. package/web/assets/x-BZE9W34m.js +1 -0
  151. package/web/assets/xychartDiagram-FW5EYKEG-Ds8KCXv_.js +7 -0
  152. package/web/index.html +4 -4
  153. package/web/kennel-theme.css +17 -0
  154. package/dist/cli/src/automations/notifications.d.ts +0 -40
  155. package/dist/cli/src/automations/notifications.js +0 -220
  156. package/dist/cli/src/cli/dispatch.d.ts +0 -1
  157. package/dist/cli/src/cli/dispatch.js +0 -138
  158. package/dist/cli/src/cli/usage.d.ts +0 -1
  159. package/dist/cli/src/cli/usage.js +0 -25
  160. package/dist/cli/src/core/api-client.d.ts +0 -13
  161. package/dist/cli/src/core/api-client.js +0 -1
  162. package/dist/cli/src/core/command.d.ts +0 -1
  163. package/dist/cli/src/core/command.js +0 -70
  164. package/dist/cli/src/core/core-folders.d.ts +0 -1
  165. package/dist/cli/src/core/core-folders.js +0 -42
  166. package/dist/cli/src/core/init.d.ts +0 -1
  167. package/dist/cli/src/core/init.js +0 -141
  168. package/dist/cli/src/core/runtime.d.ts +0 -14
  169. package/dist/cli/src/core/runtime.js +0 -1
  170. package/dist/cli/src/deploy/cloudflare.d.ts +0 -6
  171. package/dist/cli/src/deploy/cloudflare.js +0 -100
  172. package/dist/cli/src/deploy/environment.d.ts +0 -2
  173. package/dist/cli/src/deploy/environment.js +0 -47
  174. package/dist/cli/src/deploy/smoke-tests.d.ts +0 -4
  175. package/dist/cli/src/deploy/smoke-tests.js +0 -92
  176. package/dist/cli/src/deploy/trigger-dev.d.ts +0 -2
  177. package/dist/cli/src/deploy/trigger-dev.js +0 -255
  178. package/dist/cli/src/deploy/vercel.d.ts +0 -3
  179. package/dist/cli/src/deploy/vercel.js +0 -67
  180. package/dist/cli/src/main.d.ts +0 -1
  181. package/dist/cli/src/main.js +0 -9
  182. package/dist/cli/src/mcp/agent-tools.d.ts +0 -8
  183. package/dist/cli/src/mcp/agent-tools.js +0 -247
  184. package/dist/cli/src/mcp/config.d.ts +0 -25
  185. package/dist/cli/src/mcp/config.js +0 -185
  186. package/dist/cli/src/mcp/function-source.d.ts +0 -7
  187. package/dist/cli/src/mcp/function-source.js +0 -42
  188. package/dist/cli/src/mcp/generate.d.ts +0 -1
  189. package/dist/cli/src/mcp/generate.js +0 -47
  190. package/dist/cli/src/mcp/install-page.d.ts +0 -12
  191. package/dist/cli/src/mcp/install-page.js +0 -5
  192. package/dist/cli/src/notifications/email-worker.d.ts +0 -8
  193. package/dist/cli/src/notifications/email-worker.js +0 -137
  194. package/dist/cli/src/package/mcp-data.d.ts +0 -1
  195. package/dist/cli/src/package/mcp-data.js +0 -1
  196. package/dist/cli/src/package/mcp-email-worker.d.ts +0 -1
  197. package/dist/cli/src/package/mcp-email-worker.js +0 -1
  198. package/dist/cli/src/package/mcp-http.d.ts +0 -1
  199. package/dist/cli/src/package/mcp-http.js +0 -1
  200. package/dist/cli/src/package/mcp-stdio.d.ts +0 -1
  201. package/dist/cli/src/package/mcp-stdio.js +0 -1
  202. package/dist/cli/src/package/mcp.d.ts +0 -1
  203. package/dist/cli/src/package/mcp.js +0 -1
  204. package/dist/cli/src/package/preview.d.ts +0 -9
  205. package/dist/cli/src/package/preview.js +0 -1
  206. package/dist/cli/src/plugins/external.d.ts +0 -65
  207. package/dist/cli/src/plugins/external.js +0 -612
  208. package/dist/cli/src/publish/cloudflare-init.d.ts +0 -12
  209. package/dist/cli/src/publish/cloudflare-init.js +0 -101
  210. package/dist/cli/src/publish/config.d.ts +0 -28
  211. package/dist/cli/src/publish/config.js +0 -178
  212. package/dist/cli/src/publish/options.d.ts +0 -13
  213. package/dist/cli/src/publish/options.js +0 -78
  214. package/dist/cli/src/publish/vercel-init.d.ts +0 -9
  215. package/dist/cli/src/publish/vercel-init.js +0 -52
  216. package/dist/cli/src/shared/json.d.ts +0 -4
  217. package/dist/cli/src/shared/json.js +0 -56
  218. package/dist/cli/src/shared/object.d.ts +0 -2
  219. package/dist/cli/src/shared/object.js +0 -3
  220. package/dist/cli/src/shared/package-manager.d.ts +0 -11
  221. package/dist/cli/src/shared/package-manager.js +0 -39
  222. package/dist/cli/src/shared/path.d.ts +0 -4
  223. package/dist/cli/src/shared/path.js +0 -40
  224. package/dist/cli/src/shared/process.d.ts +0 -7
  225. package/dist/cli/src/shared/process.js +0 -12
  226. package/dist/cli/src/shared/project-config.d.ts +0 -2
  227. package/dist/cli/src/shared/project-config.js +0 -26
  228. package/dist/cli/src/site/dev.d.ts +0 -10
  229. package/dist/cli/src/site/dev.js +0 -126
  230. package/dist/cli/src/site/extension.d.ts +0 -8
  231. package/dist/cli/src/site/extension.js +0 -113
  232. package/dist/cli/src/site/folder-icons.d.ts +0 -46
  233. package/dist/cli/src/site/folder-icons.js +0 -86
  234. package/dist/cli/src/site/hot-viewer.d.ts +0 -2
  235. package/dist/cli/src/site/hot-viewer.js +0 -238
  236. package/dist/cli/src/site/kinds.d.ts +0 -1
  237. package/dist/cli/src/site/kinds.js +0 -1
  238. package/dist/cli/src/site/mail.d.ts +0 -1
  239. package/dist/cli/src/site/mail.js +0 -10
  240. package/dist/cli/src/site/renderers.d.ts +0 -61
  241. package/dist/cli/src/site/renderers.js +0 -219
  242. package/dist/cli/src/site/server-plugins.d.ts +0 -49
  243. package/dist/cli/src/site/server-plugins.js +0 -1
  244. package/dist/cli/src/site/viewer.d.ts +0 -36
  245. package/dist/cli/src/site/viewer.js +0 -358
  246. package/dist/cli/src/site/vitepress.d.ts +0 -1
  247. package/dist/cli/src/site/vitepress.js +0 -1
  248. package/kernel/apps/web/.env.example +0 -11
  249. package/kernel/apps/web/components.json +0 -20
  250. package/kernel/apps/web/eslint.config.mjs +0 -60
  251. package/kernel/apps/web/index.html +0 -17
  252. package/kernel/apps/web/package.json +0 -75
  253. package/kernel/apps/web/public/favicon.svg +0 -6
  254. package/kernel/apps/web/public/providers/claude.svg +0 -1
  255. package/kernel/apps/web/public/providers/codex.svg +0 -1
  256. package/kernel/apps/web/public/providers/cursor.svg +0 -1
  257. package/kernel/apps/web/public/providers/opencode.svg +0 -1
  258. package/kernel/apps/web/public/providers/pi.svg +0 -1
  259. package/kernel/apps/web/scripts/dev.mjs +0 -57
  260. package/kernel/apps/web/server/acp/index.ts +0 -1
  261. package/kernel/apps/web/server/acp/live-agent-connection.ts +0 -1
  262. package/kernel/apps/web/server/acp/process-manager.ts +0 -1
  263. package/kernel/apps/web/server/acp/registry.ts +0 -1
  264. package/kernel/apps/web/server/acp/sdk.ts +0 -1
  265. package/kernel/apps/web/server/acp/transport.ts +0 -1
  266. package/kernel/apps/web/server/acp/types.ts +0 -1
  267. package/kernel/apps/web/server/acp-live-plugin.ts +0 -30
  268. package/kernel/apps/web/server/api/document-edit.ts +0 -1
  269. package/kernel/apps/web/server/api/open-path.ts +0 -1
  270. package/kernel/apps/web/server/core-plugin.ts +0 -49
  271. package/kernel/apps/web/server/folder-favicon.ts +0 -1
  272. package/kernel/apps/web/server/folder-icons.ts +0 -1
  273. package/kernel/apps/web/server/folder-metadata-plugin.ts +0 -31
  274. package/kernel/apps/web/server/plugins.ts +0 -1
  275. package/kernel/apps/web/server/preview-kinds.ts +0 -1
  276. package/kernel/apps/web/src/ai-input.tsx +0 -62
  277. package/kernel/apps/web/src/annotations.tsx +0 -430
  278. package/kernel/apps/web/src/api/client.ts +0 -3
  279. package/kernel/apps/web/src/api/errors.ts +0 -1
  280. package/kernel/apps/web/src/api/events.ts +0 -78
  281. package/kernel/apps/web/src/app.css +0 -329
  282. package/kernel/apps/web/src/app.tsx +0 -667
  283. package/kernel/apps/web/src/ask-draft.ts +0 -164
  284. package/kernel/apps/web/src/ask-tray.tsx +0 -256
  285. package/kernel/apps/web/src/comment-editor.tsx +0 -93
  286. package/kernel/apps/web/src/comment-form.tsx +0 -162
  287. package/kernel/apps/web/src/copy-path.ts +0 -18
  288. package/kernel/apps/web/src/deferred-ask-tray.tsx +0 -20
  289. package/kernel/apps/web/src/document-url.ts +0 -46
  290. package/kernel/apps/web/src/documents-url.ts +0 -23
  291. package/kernel/apps/web/src/dropped-folder.ts +0 -64
  292. package/kernel/apps/web/src/external-plugins.ts +0 -3
  293. package/kernel/apps/web/src/file-viewer.tsx +0 -171
  294. package/kernel/apps/web/src/folder-filter-icons.tsx +0 -39
  295. package/kernel/apps/web/src/folder-metadata.ts +0 -76
  296. package/kernel/apps/web/src/folder-plugin-view.tsx +0 -87
  297. package/kernel/apps/web/src/folder-query-cache.ts +0 -66
  298. package/kernel/apps/web/src/host-adapters.ts +0 -209
  299. package/kernel/apps/web/src/host-bridge.ts +0 -214
  300. package/kernel/apps/web/src/lib/entity-folder.ts +0 -2
  301. package/kernel/apps/web/src/linked-session-header.tsx +0 -43
  302. package/kernel/apps/web/src/live-session-controls.tsx +0 -326
  303. package/kernel/apps/web/src/local-source.ts +0 -32
  304. package/kernel/apps/web/src/main.tsx +0 -23
  305. package/kernel/apps/web/src/markdown-page.tsx +0 -444
  306. package/kernel/apps/web/src/notes-page.tsx +0 -103
  307. package/kernel/apps/web/src/plugins.ts +0 -23
  308. package/kernel/apps/web/src/project-search-dialog.tsx +0 -257
  309. package/kernel/apps/web/src/project-search.ts +0 -18
  310. package/kernel/apps/web/src/query-client.ts +0 -4
  311. package/kernel/apps/web/src/rehype-source-lines.ts +0 -22
  312. package/kernel/apps/web/src/routes/document.tsx +0 -1
  313. package/kernel/apps/web/src/routes/entities.tsx +0 -277
  314. package/kernel/apps/web/src/routes/search.tsx +0 -60
  315. package/kernel/apps/web/src/selection-context.ts +0 -68
  316. package/kernel/apps/web/src/selection-input.tsx +0 -58
  317. package/kernel/apps/web/src/selection-popup.tsx +0 -155
  318. package/kernel/apps/web/src/session-transcript-page.tsx +0 -152
  319. package/kernel/apps/web/src/use-annotations.ts +0 -162
  320. package/kernel/apps/web/src/use-ask-ai.ts +0 -26
  321. package/kernel/apps/web/src/use-ask-draft.ts +0 -27
  322. package/kernel/apps/web/src/use-document.ts +0 -37
  323. package/kernel/apps/web/src/use-folder-notes.ts +0 -49
  324. package/kernel/apps/web/src/use-linked-session.ts +0 -33
  325. package/kernel/apps/web/src/view-context.tsx +0 -69
  326. package/kernel/apps/web/src/view-header.tsx +0 -66
  327. package/kernel/apps/web/src/viewer-capabilities.ts +0 -33
  328. package/kernel/apps/web/src/viewer-route.ts +0 -1
  329. package/kernel/apps/web/src/viewport-height.ts +0 -33
  330. package/kernel/apps/web/tsconfig.json +0 -23
  331. package/kernel/apps/web/vite.config.ts +0 -261
  332. package/kernel/packages/agents/eslint.config.js +0 -10
  333. package/kernel/packages/agents/package.json +0 -75
  334. package/kernel/packages/agents/src/agent-card.tsx +0 -334
  335. package/kernel/packages/agents/src/client.tsx +0 -13
  336. package/kernel/packages/agents/src/index.ts +0 -18
  337. package/kernel/packages/agents/src/manifest.ts +0 -7
  338. package/kernel/packages/agents/src/node.ts +0 -447
  339. package/kernel/packages/agents/src/profiles.ts +0 -137
  340. package/kernel/packages/agents/src/resolve.ts +0 -69
  341. package/kernel/packages/agents/src/server.ts +0 -60
  342. package/kernel/packages/agents/src/types.ts +0 -82
  343. package/kernel/packages/agents/src/viewer.tsx +0 -370
  344. package/kernel/packages/agents/test/profiles.test.mjs +0 -88
  345. package/kernel/packages/agents/test/resolve.test.mjs +0 -729
  346. package/kernel/packages/agents/tsconfig.json +0 -17
  347. package/kernel/packages/api/README.md +0 -73
  348. package/kernel/packages/api/openapi.json +0 -3368
  349. package/kernel/packages/api/package.json +0 -37
  350. package/kernel/packages/api/src/client/errors.ts +0 -1
  351. package/kernel/packages/api/src/client/index.ts +0 -2
  352. package/kernel/packages/api/src/contracts/schemas.ts +0 -277
  353. package/kernel/packages/api/src/contracts.ts +0 -20
  354. package/kernel/packages/api/src/index.ts +0 -34
  355. package/kernel/packages/api/src/server/acp/index.ts +0 -35
  356. package/kernel/packages/api/src/server/acp/live-agent-connection.ts +0 -44
  357. package/kernel/packages/api/src/server/acp/process-manager.ts +0 -291
  358. package/kernel/packages/api/src/server/acp/registry.ts +0 -140
  359. package/kernel/packages/api/src/server/acp/sdk.ts +0 -15
  360. package/kernel/packages/api/src/server/acp/transport.ts +0 -115
  361. package/kernel/packages/api/src/server/acp/types.ts +0 -89
  362. package/kernel/packages/api/src/server/acp-live-plugin.ts +0 -423
  363. package/kernel/packages/api/src/server/api/create-agent-file.ts +0 -46
  364. package/kernel/packages/api/src/server/api/document-edit.ts +0 -125
  365. package/kernel/packages/api/src/server/api/open-path.ts +0 -40
  366. package/kernel/packages/api/src/server/contracts.ts +0 -85
  367. package/kernel/packages/api/src/server/entity-folder.ts +0 -353
  368. package/kernel/packages/api/src/server/folder-favicon.ts +0 -17
  369. package/kernel/packages/api/src/server/folder-icons.ts +0 -113
  370. package/kernel/packages/api/src/server/folder-metadata-plugin.ts +0 -1733
  371. package/kernel/packages/api/src/server/host.ts +0 -21
  372. package/kernel/packages/api/src/server/index.ts +0 -196
  373. package/kernel/packages/api/src/server/linked-folder-discovery.ts +0 -158
  374. package/kernel/packages/api/src/server/plugins.ts +0 -238
  375. package/kernel/packages/api/src/server/project-discovery.ts +0 -69
  376. package/kernel/packages/api/src/server/watcher.ts +0 -46
  377. package/kernel/packages/api/src/shared/selection.ts +0 -16
  378. package/kernel/packages/api/src/shared/viewer-route.ts +0 -200
  379. package/kernel/packages/api/test/agents-loading.test.ts +0 -94
  380. package/kernel/packages/api/test/core.test.ts +0 -352
  381. package/kernel/packages/api/test/entity-folder.test.ts +0 -131
  382. package/kernel/packages/api/test/linked-folder-discovery.test.ts +0 -78
  383. package/kernel/packages/api/test/media-endpoint.test.ts +0 -83
  384. package/kernel/packages/api/test/project-discovery.test.ts +0 -44
  385. package/kernel/packages/api/tsconfig.json +0 -11
  386. package/kernel/packages/api-client/README.md +0 -72
  387. package/kernel/packages/api-client/package.json +0 -26
  388. package/kernel/packages/api-client/scripts/generate.ts +0 -68
  389. package/kernel/packages/api-client/src/errors.ts +0 -59
  390. package/kernel/packages/api-client/src/generated.d.ts +0 -1248
  391. package/kernel/packages/api-client/src/index.ts +0 -206
  392. package/kernel/packages/api-client/src/responses.ts +0 -19
  393. package/kernel/packages/api-client/test/client.test.ts +0 -143
  394. package/kernel/packages/api-client/tsconfig.json +0 -12
  395. package/kernel/packages/kinds/package.json +0 -24
  396. package/kernel/packages/kinds/src/kinds.ts +0 -172
  397. package/kernel/packages/markdown/README.md +0 -40
  398. package/kernel/packages/markdown/explorer.css +0 -1
  399. package/kernel/packages/markdown/package.json +0 -30
  400. package/kernel/packages/markdown/src/documents.ts +0 -1
  401. package/kernel/packages/markdown/src/explorer.ts +0 -1
  402. package/kernel/packages/markdown/src/index.ts +0 -2
  403. package/kernel/packages/markdown/src/metadata.ts +0 -63
  404. package/kernel/packages/markdown/src/node.ts +0 -1
  405. package/kernel/packages/markdown/styles.css +0 -1
  406. package/kernel/packages/notes/SKILL.md +0 -19
  407. package/kernel/packages/notes/eslint.config.js +0 -10
  408. package/kernel/packages/notes/package.json +0 -72
  409. package/kernel/packages/notes/src/client.tsx +0 -12
  410. package/kernel/packages/notes/src/data/ai-input.ts +0 -58
  411. package/kernel/packages/notes/src/data/api.ts +0 -40
  412. package/kernel/packages/notes/src/data/parse.ts +0 -15
  413. package/kernel/packages/notes/src/data/routing.ts +0 -33
  414. package/kernel/packages/notes/src/data/use-folder-notes.ts +0 -49
  415. package/kernel/packages/notes/src/index.ts +0 -2
  416. package/kernel/packages/notes/src/manifest.ts +0 -6
  417. package/kernel/packages/notes/src/pages/notes-page.tsx +0 -112
  418. package/kernel/packages/notes/src/pages/single-note-page.tsx +0 -57
  419. package/kernel/packages/notes/src/server.ts +0 -88
  420. package/kernel/packages/notes/src/ui/ai-composer-controls.tsx +0 -70
  421. package/kernel/packages/notes/src/ui/folder-notes-list.tsx +0 -76
  422. package/kernel/packages/notes/tsconfig.json +0 -16
  423. package/kernel/packages/plugins/SKILL.md +0 -39
  424. package/kernel/packages/plugins/eslint.config.js +0 -10
  425. package/kernel/packages/plugins/package.json +0 -104
  426. package/kernel/packages/plugins/src/client.ts +0 -73
  427. package/kernel/packages/plugins/src/endpoint.ts +0 -273
  428. package/kernel/packages/plugins/src/index.ts +0 -52
  429. package/kernel/packages/plugins/src/page.ts +0 -17
  430. package/kernel/packages/plugins/src/server.ts +0 -78
  431. package/kernel/packages/plugins/src/subpath.ts +0 -34
  432. package/kernel/packages/plugins/src/types.ts +0 -86
  433. package/kernel/packages/plugins/src/validation.ts +0 -56
  434. package/kernel/packages/plugins/test/contract.test.mjs +0 -133
  435. package/kernel/packages/plugins/tsconfig.json +0 -21
  436. package/kernel/packages/plugins/tsup.config.ts +0 -25
  437. package/kernel/packages/schemas/ICON-POLICY.md +0 -43
  438. package/kernel/packages/schemas/SKILL.md +0 -185
  439. package/kernel/packages/schemas/eslint.config.js +0 -10
  440. package/kernel/packages/schemas/package.json +0 -81
  441. package/kernel/packages/schemas/src/client.tsx +0 -137
  442. package/kernel/packages/schemas/src/data/config-file.ts +0 -37
  443. package/kernel/packages/schemas/src/data/contract.ts +0 -174
  444. package/kernel/packages/schemas/src/data/favicon.ts +0 -218
  445. package/kernel/packages/schemas/src/data/fields.ts +0 -96
  446. package/kernel/packages/schemas/src/data/icon-image.ts +0 -53
  447. package/kernel/packages/schemas/src/data/icon.ts +0 -97
  448. package/kernel/packages/schemas/src/data/load.ts +0 -161
  449. package/kernel/packages/schemas/src/data/params.ts +0 -103
  450. package/kernel/packages/schemas/src/data/query.ts +0 -33
  451. package/kernel/packages/schemas/src/data/sort.ts +0 -50
  452. package/kernel/packages/schemas/src/data/workspace.ts +0 -101
  453. package/kernel/packages/schemas/src/index.ts +0 -22
  454. package/kernel/packages/schemas/src/manifest.ts +0 -4
  455. package/kernel/packages/schemas/src/node.ts +0 -384
  456. package/kernel/packages/schemas/src/pages/collection.tsx +0 -252
  457. package/kernel/packages/schemas/src/server.ts +0 -208
  458. package/kernel/packages/schemas/src/ui/schema-entity-list.tsx +0 -124
  459. package/kernel/packages/schemas/src/ui/schema-filters.tsx +0 -186
  460. package/kernel/packages/schemas/src/ui/schema-search.tsx +0 -35
  461. package/kernel/packages/schemas/src/ui/use-query-param-filter-setting.tsx +0 -15
  462. package/kernel/packages/schemas/test/contract.test.mjs +0 -26
  463. package/kernel/packages/schemas/test/fields.test.mjs +0 -187
  464. package/kernel/packages/schemas/test/load.test.mjs +0 -12
  465. package/kernel/packages/schemas/test/node.test.mjs +0 -412
  466. package/kernel/packages/schemas/test/query.test.mjs +0 -134
  467. package/kernel/packages/schemas/test/workspace.test.mjs +0 -86
  468. package/kernel/packages/schemas/tsconfig.json +0 -17
  469. package/kernel/packages/session-finding/package.json +0 -33
  470. package/kernel/packages/session-finding/src/index.ts +0 -120
  471. package/kernel/packages/session-finding/test/list-sessions.test.mjs +0 -139
  472. package/kernel/packages/session-finding/tsconfig.json +0 -12
  473. package/kernel/packages/ui/LICENSE +0 -21
  474. package/kernel/packages/ui/components.json +0 -20
  475. package/kernel/packages/ui/eslint.config.js +0 -8
  476. package/kernel/packages/ui/package.json +0 -106
  477. package/kernel/packages/ui/src/chat/file-link.ts +0 -178
  478. package/kernel/packages/ui/src/chat/index.ts +0 -18
  479. package/kernel/packages/ui/src/chat/transcript.tsx +0 -348
  480. package/kernel/packages/ui/src/chat/turns.ts +0 -76
  481. package/kernel/packages/ui/src/chat/types.ts +0 -23
  482. package/kernel/packages/ui/src/chat/use-overflowing.ts +0 -56
  483. package/kernel/packages/ui/src/components/accordion.tsx +0 -74
  484. package/kernel/packages/ui/src/components/alert-dialog.tsx +0 -164
  485. package/kernel/packages/ui/src/components/alert.tsx +0 -68
  486. package/kernel/packages/ui/src/components/app-breadcrumbs.tsx +0 -170
  487. package/kernel/packages/ui/src/components/app-header.tsx +0 -125
  488. package/kernel/packages/ui/src/components/app-options.tsx +0 -87
  489. package/kernel/packages/ui/src/components/app-view-header.tsx +0 -34
  490. package/kernel/packages/ui/src/components/aspect-ratio.tsx +0 -11
  491. package/kernel/packages/ui/src/components/avatar.tsx +0 -53
  492. package/kernel/packages/ui/src/components/badge.tsx +0 -47
  493. package/kernel/packages/ui/src/components/base-dialog.tsx +0 -3
  494. package/kernel/packages/ui/src/components/base-tabs.tsx +0 -63
  495. package/kernel/packages/ui/src/components/breadcrumb.tsx +0 -110
  496. package/kernel/packages/ui/src/components/button-group.tsx +0 -86
  497. package/kernel/packages/ui/src/components/button.tsx +0 -65
  498. package/kernel/packages/ui/src/components/calendar.tsx +0 -240
  499. package/kernel/packages/ui/src/components/card.tsx +0 -95
  500. package/kernel/packages/ui/src/components/carousel.tsx +0 -240
  501. package/kernel/packages/ui/src/components/chart.tsx +0 -375
  502. package/kernel/packages/ui/src/components/checkbox.tsx +0 -39
  503. package/kernel/packages/ui/src/components/collapsible.tsx +0 -33
  504. package/kernel/packages/ui/src/components/collection-icon.tsx +0 -28
  505. package/kernel/packages/ui/src/components/command.tsx +0 -205
  506. package/kernel/packages/ui/src/components/content-issues.tsx +0 -63
  507. package/kernel/packages/ui/src/components/context-menu.tsx +0 -298
  508. package/kernel/packages/ui/src/components/copy-context.tsx +0 -134
  509. package/kernel/packages/ui/src/components/dialog.tsx +0 -157
  510. package/kernel/packages/ui/src/components/drawer.tsx +0 -162
  511. package/kernel/packages/ui/src/components/dropdown-menu.tsx +0 -303
  512. package/kernel/packages/ui/src/components/empty.tsx +0 -108
  513. package/kernel/packages/ui/src/components/field.tsx +0 -260
  514. package/kernel/packages/ui/src/components/file-preview.tsx +0 -152
  515. package/kernel/packages/ui/src/components/file-renderer.tsx +0 -466
  516. package/kernel/packages/ui/src/components/filter-chip-panel.tsx +0 -157
  517. package/kernel/packages/ui/src/components/filter-select.tsx +0 -127
  518. package/kernel/packages/ui/src/components/folder-activity.tsx +0 -646
  519. package/kernel/packages/ui/src/components/folder-file-list.tsx +0 -58
  520. package/kernel/packages/ui/src/components/folder-filter-bar.tsx +0 -191
  521. package/kernel/packages/ui/src/components/folder-image.tsx +0 -18
  522. package/kernel/packages/ui/src/components/folder-landing.tsx +0 -70
  523. package/kernel/packages/ui/src/components/folder-list.tsx +0 -140
  524. package/kernel/packages/ui/src/components/folder-metadata.tsx +0 -107
  525. package/kernel/packages/ui/src/components/folder-mobile-bar.tsx +0 -60
  526. package/kernel/packages/ui/src/components/folder-project-list.tsx +0 -133
  527. package/kernel/packages/ui/src/components/folder-session-list.tsx +0 -113
  528. package/kernel/packages/ui/src/components/folder-session-page.tsx +0 -126
  529. package/kernel/packages/ui/src/components/folder-sidebar.tsx +0 -52
  530. package/kernel/packages/ui/src/components/folder-skill-list.tsx +0 -62
  531. package/kernel/packages/ui/src/components/folder-tabs.tsx +0 -156
  532. package/kernel/packages/ui/src/components/form.tsx +0 -167
  533. package/kernel/packages/ui/src/components/hover-card.tsx +0 -52
  534. package/kernel/packages/ui/src/components/icons.tsx +0 -34
  535. package/kernel/packages/ui/src/components/input-group.tsx +0 -184
  536. package/kernel/packages/ui/src/components/input-otp.tsx +0 -90
  537. package/kernel/packages/ui/src/components/input.tsx +0 -29
  538. package/kernel/packages/ui/src/components/item.tsx +0 -195
  539. package/kernel/packages/ui/src/components/kbd.tsx +0 -32
  540. package/kernel/packages/ui/src/components/label.tsx +0 -27
  541. package/kernel/packages/ui/src/components/link.tsx +0 -45
  542. package/kernel/packages/ui/src/components/live-tool-call.tsx +0 -193
  543. package/kernel/packages/ui/src/components/markdown-copy-block.tsx +0 -78
  544. package/kernel/packages/ui/src/components/menubar.tsx +0 -323
  545. package/kernel/packages/ui/src/components/navigation-menu.tsx +0 -210
  546. package/kernel/packages/ui/src/components/note-card.tsx +0 -149
  547. package/kernel/packages/ui/src/components/pagination.tsx +0 -128
  548. package/kernel/packages/ui/src/components/popover.tsx +0 -56
  549. package/kernel/packages/ui/src/components/progress.tsx +0 -31
  550. package/kernel/packages/ui/src/components/radio-group.tsx +0 -54
  551. package/kernel/packages/ui/src/components/scroll-area.tsx +0 -61
  552. package/kernel/packages/ui/src/components/select.tsx +0 -219
  553. package/kernel/packages/ui/src/components/separator.tsx +0 -30
  554. package/kernel/packages/ui/src/components/session-icon.tsx +0 -124
  555. package/kernel/packages/ui/src/components/sheet.tsx +0 -157
  556. package/kernel/packages/ui/src/components/sidebar.tsx +0 -789
  557. package/kernel/packages/ui/src/components/skeleton.tsx +0 -13
  558. package/kernel/packages/ui/src/components/slider.tsx +0 -73
  559. package/kernel/packages/ui/src/components/sonner.tsx +0 -41
  560. package/kernel/packages/ui/src/components/spinner.tsx +0 -16
  561. package/kernel/packages/ui/src/components/switch.tsx +0 -40
  562. package/kernel/packages/ui/src/components/table.tsx +0 -120
  563. package/kernel/packages/ui/src/components/tabs.tsx +0 -78
  564. package/kernel/packages/ui/src/components/textarea.tsx +0 -25
  565. package/kernel/packages/ui/src/components/toggle-group.tsx +0 -87
  566. package/kernel/packages/ui/src/components/toggle.tsx +0 -48
  567. package/kernel/packages/ui/src/components/tooltip.tsx +0 -71
  568. package/kernel/packages/ui/src/components/viewer-options.tsx +0 -166
  569. package/kernel/packages/ui/src/hooks/use-folder-filter.ts +0 -103
  570. package/kernel/packages/ui/src/hooks/use-mobile.ts +0 -19
  571. package/kernel/packages/ui/src/index.ts +0 -13
  572. package/kernel/packages/ui/src/lib/document-extensions.ts +0 -83
  573. package/kernel/packages/ui/src/lib/folder-activity.ts +0 -143
  574. package/kernel/packages/ui/src/lib/folder-filter.ts +0 -284
  575. package/kernel/packages/ui/src/lib/live-tool-call.tsx +0 -109
  576. package/kernel/packages/ui/src/lib/media-urls.ts +0 -176
  577. package/kernel/packages/ui/src/lib/obsidian-links.ts +0 -120
  578. package/kernel/packages/ui/src/lib/source-components.tsx +0 -71
  579. package/kernel/packages/ui/src/lib/utils.tsx +0 -7
  580. package/kernel/packages/ui/src/pages/entity-detail-page.tsx +0 -82
  581. package/kernel/packages/ui/src/pages/entity-list-page.tsx +0 -50
  582. package/kernel/packages/ui/src/pages/entity-page.tsx +0 -69
  583. package/kernel/packages/ui/src/styles/folder-activity.css +0 -2151
  584. package/kernel/packages/ui/test/copy-context.test.mjs +0 -48
  585. package/kernel/packages/ui/test/folder-filter.test.mjs +0 -484
  586. package/kernel/packages/ui/tsconfig.json +0 -15
  587. package/node_modules/@agentclientprotocol/sdk/LICENSE +0 -191
  588. package/node_modules/@agentclientprotocol/sdk/README.md +0 -70
  589. package/node_modules/@agentclientprotocol/sdk/dist/acp.d.ts +0 -1835
  590. package/node_modules/@agentclientprotocol/sdk/dist/acp.js +0 -1885
  591. package/node_modules/@agentclientprotocol/sdk/dist/acp.js.map +0 -1
  592. package/node_modules/@agentclientprotocol/sdk/dist/acp.test.d.ts +0 -1
  593. package/node_modules/@agentclientprotocol/sdk/dist/acp.test.js +0 -5036
  594. package/node_modules/@agentclientprotocol/sdk/dist/acp.test.js.map +0 -1
  595. package/node_modules/@agentclientprotocol/sdk/dist/connection.d.ts +0 -82
  596. package/node_modules/@agentclientprotocol/sdk/dist/connection.js +0 -428
  597. package/node_modules/@agentclientprotocol/sdk/dist/connection.js.map +0 -1
  598. package/node_modules/@agentclientprotocol/sdk/dist/connection.test.d.ts +0 -1
  599. package/node_modules/@agentclientprotocol/sdk/dist/connection.test.js +0 -470
  600. package/node_modules/@agentclientprotocol/sdk/dist/connection.test.js.map +0 -1
  601. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.d.ts +0 -26
  602. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.js +0 -96
  603. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.js.map +0 -1
  604. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.d.ts +0 -1
  605. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.js +0 -77
  606. package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.js.map +0 -1
  607. package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.d.ts +0 -2
  608. package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js +0 -232
  609. package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js.map +0 -1
  610. package/node_modules/@agentclientprotocol/sdk/dist/examples/client.d.ts +0 -2
  611. package/node_modules/@agentclientprotocol/sdk/dist/examples/client.js +0 -132
  612. package/node_modules/@agentclientprotocol/sdk/dist/examples/client.js.map +0 -1
  613. package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.d.ts +0 -9
  614. package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js +0 -221
  615. package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js.map +0 -1
  616. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.d.ts +0 -2
  617. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.js +0 -86
  618. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.js.map +0 -1
  619. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.d.ts +0 -2
  620. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.js +0 -112
  621. package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.js.map +0 -1
  622. package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.d.ts +0 -2
  623. package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.js +0 -88
  624. package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.js.map +0 -1
  625. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.d.ts +0 -33
  626. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.js +0 -435
  627. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.js.map +0 -1
  628. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.d.ts +0 -1
  629. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.js +0 -1380
  630. package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.js.map +0 -1
  631. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.d.ts +0 -603
  632. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js +0 -1064
  633. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js.map +0 -1
  634. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.d.ts +0 -1
  635. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.js +0 -851
  636. package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.js.map +0 -1
  637. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.d.ts +0 -22
  638. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js +0 -64
  639. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js.map +0 -1
  640. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.d.ts +0 -1
  641. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.js +0 -45
  642. package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.js.map +0 -1
  643. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.d.ts +0 -17
  644. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.js +0 -426
  645. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.js.map +0 -1
  646. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.d.ts +0 -1
  647. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.js +0 -499
  648. package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.js.map +0 -1
  649. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.d.ts +0 -37
  650. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js +0 -474
  651. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js.map +0 -1
  652. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.d.ts +0 -1
  653. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js +0 -535
  654. package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js.map +0 -1
  655. package/node_modules/@agentclientprotocol/sdk/dist/protocol.d.ts +0 -11
  656. package/node_modules/@agentclientprotocol/sdk/dist/protocol.js +0 -57
  657. package/node_modules/@agentclientprotocol/sdk/dist/protocol.js.map +0 -1
  658. package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.d.ts +0 -1
  659. package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js +0 -73
  660. package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js.map +0 -1
  661. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.d.ts +0 -199
  662. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js +0 -211
  663. package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js.map +0 -1
  664. package/node_modules/@agentclientprotocol/sdk/dist/schema/index.d.ts +0 -51
  665. package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js +0 -52
  666. package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js.map +0 -1
  667. package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.d.ts +0 -6118
  668. package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js +0 -3
  669. package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js.map +0 -1
  670. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.d.ts +0 -14160
  671. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +0 -3066
  672. package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js.map +0 -1
  673. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.d.ts +0 -30
  674. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js +0 -98
  675. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js.map +0 -1
  676. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.d.ts +0 -1
  677. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.js +0 -93
  678. package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.js.map +0 -1
  679. package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.d.ts +0 -1
  680. package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.js +0 -261
  681. package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.js.map +0 -1
  682. package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.d.ts +0 -1
  683. package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.js +0 -490
  684. package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.js.map +0 -1
  685. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.d.ts +0 -2
  686. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.js +0 -104
  687. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.js.map +0 -1
  688. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.d.ts +0 -1
  689. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.js +0 -52
  690. package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.js.map +0 -1
  691. package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.d.ts +0 -1
  692. package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.js +0 -946
  693. package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.js.map +0 -1
  694. package/node_modules/@agentclientprotocol/sdk/dist/server.d.ts +0 -81
  695. package/node_modules/@agentclientprotocol/sdk/dist/server.js +0 -380
  696. package/node_modules/@agentclientprotocol/sdk/dist/server.js.map +0 -1
  697. package/node_modules/@agentclientprotocol/sdk/dist/server.test.d.ts +0 -1
  698. package/node_modules/@agentclientprotocol/sdk/dist/server.test.js +0 -1082
  699. package/node_modules/@agentclientprotocol/sdk/dist/server.test.js.map +0 -1
  700. package/node_modules/@agentclientprotocol/sdk/dist/sse.d.ts +0 -4
  701. package/node_modules/@agentclientprotocol/sdk/dist/sse.js +0 -91
  702. package/node_modules/@agentclientprotocol/sdk/dist/sse.js.map +0 -1
  703. package/node_modules/@agentclientprotocol/sdk/dist/sse.test.d.ts +0 -1
  704. package/node_modules/@agentclientprotocol/sdk/dist/sse.test.js +0 -126
  705. package/node_modules/@agentclientprotocol/sdk/dist/sse.test.js.map +0 -1
  706. package/node_modules/@agentclientprotocol/sdk/dist/stream.d.ts +0 -35
  707. package/node_modules/@agentclientprotocol/sdk/dist/stream.js +0 -106
  708. package/node_modules/@agentclientprotocol/sdk/dist/stream.js.map +0 -1
  709. package/node_modules/@agentclientprotocol/sdk/dist/stream.test.d.ts +0 -1
  710. package/node_modules/@agentclientprotocol/sdk/dist/stream.test.js +0 -206
  711. package/node_modules/@agentclientprotocol/sdk/dist/stream.test.js.map +0 -1
  712. package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.d.ts +0 -8
  713. package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.js +0 -51
  714. package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.js.map +0 -1
  715. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.d.ts +0 -24
  716. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.js +0 -163
  717. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.js.map +0 -1
  718. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.d.ts +0 -9
  719. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.js +0 -74
  720. package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.js.map +0 -1
  721. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.d.ts +0 -806
  722. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js +0 -1183
  723. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js.map +0 -1
  724. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.d.ts +0 -1
  725. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js +0 -512
  726. package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js.map +0 -1
  727. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.d.ts +0 -954
  728. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js +0 -1035
  729. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js.map +0 -1
  730. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.d.ts +0 -42
  731. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js +0 -43
  732. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js.map +0 -1
  733. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.d.ts +0 -6146
  734. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.js +0 -3
  735. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.js.map +0 -1
  736. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.d.ts +0 -30552
  737. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js +0 -3204
  738. package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js.map +0 -1
  739. package/node_modules/@agentclientprotocol/sdk/dist/ws-server.d.ts +0 -14
  740. package/node_modules/@agentclientprotocol/sdk/dist/ws-server.js +0 -358
  741. package/node_modules/@agentclientprotocol/sdk/dist/ws-server.js.map +0 -1
  742. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.d.ts +0 -54
  743. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.js +0 -246
  744. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.js.map +0 -1
  745. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.d.ts +0 -1
  746. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.js +0 -833
  747. package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.js.map +0 -1
  748. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.d.ts +0 -13
  749. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.js +0 -78
  750. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.js.map +0 -1
  751. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.d.ts +0 -1
  752. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.js +0 -42
  753. package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.js.map +0 -1
  754. package/node_modules/@agentclientprotocol/sdk/package.json +0 -105
  755. package/node_modules/@agentclientprotocol/sdk/schema/schema.json +0 -8819
  756. package/node_modules/@agentclientprotocol/sdk/schema/v2/schema.unstable.json +0 -10098
  757. package/node_modules/@libsql/client/README.md +0 -128
  758. package/node_modules/@libsql/client/lib-cjs/hrana.js +0 -372
  759. package/node_modules/@libsql/client/lib-cjs/http.js +0 -268
  760. package/node_modules/@libsql/client/lib-cjs/node.js +0 -41
  761. package/node_modules/@libsql/client/lib-cjs/package.json +0 -3
  762. package/node_modules/@libsql/client/lib-cjs/sql_cache.js +0 -91
  763. package/node_modules/@libsql/client/lib-cjs/sqlite3.js +0 -501
  764. package/node_modules/@libsql/client/lib-cjs/web.js +0 -41
  765. package/node_modules/@libsql/client/lib-cjs/ws.js +0 -395
  766. package/node_modules/@libsql/client/lib-esm/hrana.d.ts +0 -23
  767. package/node_modules/@libsql/client/lib-esm/hrana.js +0 -341
  768. package/node_modules/@libsql/client/lib-esm/http.d.ts +0 -39
  769. package/node_modules/@libsql/client/lib-esm/http.js +0 -232
  770. package/node_modules/@libsql/client/lib-esm/node.d.ts +0 -7
  771. package/node_modules/@libsql/client/lib-esm/node.js +0 -23
  772. package/node_modules/@libsql/client/lib-esm/sql_cache.d.ts +0 -7
  773. package/node_modules/@libsql/client/lib-esm/sql_cache.js +0 -87
  774. package/node_modules/@libsql/client/lib-esm/sqlite3.d.ts +0 -35
  775. package/node_modules/@libsql/client/lib-esm/sqlite3.js +0 -477
  776. package/node_modules/@libsql/client/lib-esm/web.d.ts +0 -6
  777. package/node_modules/@libsql/client/lib-esm/web.js +0 -22
  778. package/node_modules/@libsql/client/lib-esm/ws.d.ts +0 -50
  779. package/node_modules/@libsql/client/lib-esm/ws.js +0 -359
  780. package/node_modules/@libsql/client/package.json +0 -123
  781. package/node_modules/@raggle-ai/local/LICENSE +0 -21
  782. package/node_modules/@raggle-ai/local/README.md +0 -52
  783. package/node_modules/@raggle-ai/local/THIRD_PARTY_NOTICES.md +0 -95
  784. package/node_modules/@raggle-ai/local/dist/acp/client.d.ts +0 -31
  785. package/node_modules/@raggle-ai/local/dist/acp/client.js +0 -92
  786. package/node_modules/@raggle-ai/local/dist/acp/distributions.d.ts +0 -18
  787. package/node_modules/@raggle-ai/local/dist/acp/distributions.js +0 -41
  788. package/node_modules/@raggle-ai/local/dist/acp/index.d.ts +0 -4
  789. package/node_modules/@raggle-ai/local/dist/acp/index.js +0 -14
  790. package/node_modules/@raggle-ai/local/dist/acp/registry.d.ts +0 -111
  791. package/node_modules/@raggle-ai/local/dist/acp/registry.js +0 -137
  792. package/node_modules/@raggle-ai/local/dist/acp/sdk-types.d.ts +0 -17
  793. package/node_modules/@raggle-ai/local/dist/acp/sdk-types.js +0 -2
  794. package/node_modules/@raggle-ai/local/dist/adapters/agent-instructions.d.ts +0 -100
  795. package/node_modules/@raggle-ai/local/dist/adapters/agent-instructions.js +0 -286
  796. package/node_modules/@raggle-ai/local/dist/adapters/application-open.d.ts +0 -6
  797. package/node_modules/@raggle-ai/local/dist/adapters/application-open.js +0 -37
  798. package/node_modules/@raggle-ai/local/dist/adapters/base-repository.d.ts +0 -75
  799. package/node_modules/@raggle-ai/local/dist/adapters/base-repository.js +0 -469
  800. package/node_modules/@raggle-ai/local/dist/adapters/git-changes.d.ts +0 -2
  801. package/node_modules/@raggle-ai/local/dist/adapters/git-changes.js +0 -78
  802. package/node_modules/@raggle-ai/local/dist/adapters/git-clone.d.ts +0 -12
  803. package/node_modules/@raggle-ai/local/dist/adapters/git-clone.js +0 -162
  804. package/node_modules/@raggle-ai/local/dist/adapters/git-repository.d.ts +0 -17
  805. package/node_modules/@raggle-ai/local/dist/adapters/git-repository.js +0 -86
  806. package/node_modules/@raggle-ai/local/dist/adapters/git-sync.d.ts +0 -5
  807. package/node_modules/@raggle-ai/local/dist/adapters/git-sync.js +0 -45
  808. package/node_modules/@raggle-ai/local/dist/adapters/github.d.ts +0 -72
  809. package/node_modules/@raggle-ai/local/dist/adapters/github.js +0 -301
  810. package/node_modules/@raggle-ai/local/dist/adapters/import.d.ts +0 -86
  811. package/node_modules/@raggle-ai/local/dist/adapters/import.js +0 -239
  812. package/node_modules/@raggle-ai/local/dist/adapters/init.d.ts +0 -1
  813. package/node_modules/@raggle-ai/local/dist/adapters/init.js +0 -37
  814. package/node_modules/@raggle-ai/local/dist/adapters/libsql-client.d.ts +0 -11
  815. package/node_modules/@raggle-ai/local/dist/adapters/libsql-client.js +0 -18
  816. package/node_modules/@raggle-ai/local/dist/adapters/linked-workspace.d.ts +0 -32
  817. package/node_modules/@raggle-ai/local/dist/adapters/linked-workspace.js +0 -248
  818. package/node_modules/@raggle-ai/local/dist/adapters/local-folder.d.ts +0 -4
  819. package/node_modules/@raggle-ai/local/dist/adapters/local-folder.js +0 -17
  820. package/node_modules/@raggle-ai/local/dist/adapters/local-metadata-assets.d.ts +0 -18
  821. package/node_modules/@raggle-ai/local/dist/adapters/local-metadata-assets.js +0 -35
  822. package/node_modules/@raggle-ai/local/dist/adapters/local-metadata.d.ts +0 -2
  823. package/node_modules/@raggle-ai/local/dist/adapters/local-metadata.js +0 -64
  824. package/node_modules/@raggle-ai/local/dist/adapters/macos-apps.d.ts +0 -17
  825. package/node_modules/@raggle-ai/local/dist/adapters/macos-apps.js +0 -124
  826. package/node_modules/@raggle-ai/local/dist/adapters/markdown-files.d.ts +0 -3
  827. package/node_modules/@raggle-ai/local/dist/adapters/markdown-files.js +0 -161
  828. package/node_modules/@raggle-ai/local/dist/adapters/opencode-local.d.ts +0 -12
  829. package/node_modules/@raggle-ai/local/dist/adapters/opencode-local.js +0 -124
  830. package/node_modules/@raggle-ai/local/dist/adapters/project-action-plugins.d.ts +0 -3
  831. package/node_modules/@raggle-ai/local/dist/adapters/project-action-plugins.js +0 -24
  832. package/node_modules/@raggle-ai/local/dist/adapters/project-display-name.d.ts +0 -29
  833. package/node_modules/@raggle-ai/local/dist/adapters/project-display-name.js +0 -74
  834. package/node_modules/@raggle-ai/local/dist/adapters/project-favorites.d.ts +0 -22
  835. package/node_modules/@raggle-ai/local/dist/adapters/project-favorites.js +0 -63
  836. package/node_modules/@raggle-ai/local/dist/adapters/project-feed-assets.d.ts +0 -22
  837. package/node_modules/@raggle-ai/local/dist/adapters/project-feed-assets.js +0 -52
  838. package/node_modules/@raggle-ai/local/dist/adapters/project-feed.d.ts +0 -43
  839. package/node_modules/@raggle-ai/local/dist/adapters/project-feed.js +0 -141
  840. package/node_modules/@raggle-ai/local/dist/adapters/project-icons.d.ts +0 -3
  841. package/node_modules/@raggle-ai/local/dist/adapters/project-icons.js +0 -14
  842. package/node_modules/@raggle-ai/local/dist/adapters/project-recents.d.ts +0 -11
  843. package/node_modules/@raggle-ai/local/dist/adapters/project-recents.js +0 -36
  844. package/node_modules/@raggle-ai/local/dist/adapters/project-source.d.ts +0 -46
  845. package/node_modules/@raggle-ai/local/dist/adapters/project-source.js +0 -107
  846. package/node_modules/@raggle-ai/local/dist/adapters/raggle-account-api.d.ts +0 -25
  847. package/node_modules/@raggle-ai/local/dist/adapters/raggle-account-api.js +0 -62
  848. package/node_modules/@raggle-ai/local/dist/adapters/relation-annotations-api.d.ts +0 -72
  849. package/node_modules/@raggle-ai/local/dist/adapters/relation-annotations-api.js +0 -207
  850. package/node_modules/@raggle-ai/local/dist/adapters/remote-repository-config.d.ts +0 -19
  851. package/node_modules/@raggle-ai/local/dist/adapters/remote-repository-config.js +0 -71
  852. package/node_modules/@raggle-ai/local/dist/adapters/session-resolvers.d.ts +0 -8
  853. package/node_modules/@raggle-ai/local/dist/adapters/session-resolvers.js +0 -225
  854. package/node_modules/@raggle-ai/local/dist/adapters/turso-project-source.d.ts +0 -22
  855. package/node_modules/@raggle-ai/local/dist/adapters/turso-project-source.js +0 -579
  856. package/node_modules/@raggle-ai/local/dist/adapters/turso-provider.d.ts +0 -17
  857. package/node_modules/@raggle-ai/local/dist/adapters/turso-provider.js +0 -103
  858. package/node_modules/@raggle-ai/local/dist/adapters/user-project-order.d.ts +0 -2
  859. package/node_modules/@raggle-ai/local/dist/adapters/user-project-order.js +0 -19
  860. package/node_modules/@raggle-ai/local/dist/adapters/user-settings.d.ts +0 -162
  861. package/node_modules/@raggle-ai/local/dist/adapters/user-settings.js +0 -398
  862. package/node_modules/@raggle-ai/local/dist/adapters/workspace-discovery.d.ts +0 -7
  863. package/node_modules/@raggle-ai/local/dist/adapters/workspace-discovery.js +0 -59
  864. package/node_modules/@raggle-ai/local/dist/cache/clone-directory-repository-index.d.ts +0 -23
  865. package/node_modules/@raggle-ai/local/dist/cache/clone-directory-repository-index.js +0 -186
  866. package/node_modules/@raggle-ai/local/dist/cache/project-catalog.d.ts +0 -40
  867. package/node_modules/@raggle-ai/local/dist/cache/project-catalog.js +0 -174
  868. package/node_modules/@raggle-ai/local/dist/cache/project-icon-cache.d.ts +0 -11
  869. package/node_modules/@raggle-ai/local/dist/cache/project-icon-cache.js +0 -82
  870. package/node_modules/@raggle-ai/local/dist/cache/project-state-cache.d.ts +0 -12
  871. package/node_modules/@raggle-ai/local/dist/cache/project-state-cache.js +0 -47
  872. package/node_modules/@raggle-ai/local/dist/core/agent-instructions-settings.d.ts +0 -20
  873. package/node_modules/@raggle-ai/local/dist/core/agent-instructions-settings.js +0 -35
  874. package/node_modules/@raggle-ai/local/dist/core/ai-chat-clients.d.ts +0 -1
  875. package/node_modules/@raggle-ai/local/dist/core/ai-chat-clients.js +0 -17
  876. package/node_modules/@raggle-ai/local/dist/core/application-open-target.d.ts +0 -1
  877. package/node_modules/@raggle-ai/local/dist/core/application-open-target.js +0 -5
  878. package/node_modules/@raggle-ai/local/dist/core/base-repository.d.ts +0 -60
  879. package/node_modules/@raggle-ai/local/dist/core/base-repository.js +0 -2
  880. package/node_modules/@raggle-ai/local/dist/core/catalog-project.d.ts +0 -4
  881. package/node_modules/@raggle-ai/local/dist/core/catalog-project.js +0 -45
  882. package/node_modules/@raggle-ai/local/dist/core/connected-projects.d.ts +0 -52
  883. package/node_modules/@raggle-ai/local/dist/core/connected-projects.js +0 -440
  884. package/node_modules/@raggle-ai/local/dist/core/generated/cli-commands.d.ts +0 -28
  885. package/node_modules/@raggle-ai/local/dist/core/generated/cli-commands.js +0 -401
  886. package/node_modules/@raggle-ai/local/dist/core/git-change.d.ts +0 -9
  887. package/node_modules/@raggle-ai/local/dist/core/git-change.js +0 -2
  888. package/node_modules/@raggle-ai/local/dist/core/indexed-search.d.ts +0 -32
  889. package/node_modules/@raggle-ai/local/dist/core/indexed-search.js +0 -95
  890. package/node_modules/@raggle-ai/local/dist/core/link.d.ts +0 -176
  891. package/node_modules/@raggle-ai/local/dist/core/link.js +0 -740
  892. package/node_modules/@raggle-ai/local/dist/core/live-project-search.d.ts +0 -47
  893. package/node_modules/@raggle-ai/local/dist/core/live-project-search.js +0 -122
  894. package/node_modules/@raggle-ai/local/dist/core/llm-context.d.ts +0 -29
  895. package/node_modules/@raggle-ai/local/dist/core/llm-context.js +0 -352
  896. package/node_modules/@raggle-ai/local/dist/core/local-metadata.d.ts +0 -37
  897. package/node_modules/@raggle-ai/local/dist/core/local-metadata.js +0 -4
  898. package/node_modules/@raggle-ai/local/dist/core/local-repository-candidate.d.ts +0 -7
  899. package/node_modules/@raggle-ai/local/dist/core/local-repository-candidate.js +0 -43
  900. package/node_modules/@raggle-ai/local/dist/core/logging.d.ts +0 -6
  901. package/node_modules/@raggle-ai/local/dist/core/logging.js +0 -37
  902. package/node_modules/@raggle-ai/local/dist/core/markdown-file.d.ts +0 -20
  903. package/node_modules/@raggle-ai/local/dist/core/markdown-file.js +0 -2
  904. package/node_modules/@raggle-ai/local/dist/core/open-in.d.ts +0 -18
  905. package/node_modules/@raggle-ai/local/dist/core/open-in.js +0 -37
  906. package/node_modules/@raggle-ai/local/dist/core/personal-relations-sync.d.ts +0 -27
  907. package/node_modules/@raggle-ai/local/dist/core/personal-relations-sync.js +0 -231
  908. package/node_modules/@raggle-ai/local/dist/core/personal-relations.d.ts +0 -34
  909. package/node_modules/@raggle-ai/local/dist/core/personal-relations.js +0 -128
  910. package/node_modules/@raggle-ai/local/dist/core/project-action-config-source.d.ts +0 -2
  911. package/node_modules/@raggle-ai/local/dist/core/project-action-config-source.js +0 -161
  912. package/node_modules/@raggle-ai/local/dist/core/project-actions.d.ts +0 -11
  913. package/node_modules/@raggle-ai/local/dist/core/project-actions.js +0 -2
  914. package/node_modules/@raggle-ai/local/dist/core/project-add.d.ts +0 -20
  915. package/node_modules/@raggle-ai/local/dist/core/project-add.js +0 -119
  916. package/node_modules/@raggle-ai/local/dist/core/project-cache-record.d.ts +0 -43
  917. package/node_modules/@raggle-ai/local/dist/core/project-cache-record.js +0 -85
  918. package/node_modules/@raggle-ai/local/dist/core/project-emoji-preferences.d.ts +0 -2
  919. package/node_modules/@raggle-ai/local/dist/core/project-emoji-preferences.js +0 -10
  920. package/node_modules/@raggle-ai/local/dist/core/project-emoji.d.ts +0 -15
  921. package/node_modules/@raggle-ai/local/dist/core/project-emoji.js +0 -117
  922. package/node_modules/@raggle-ai/local/dist/core/project-instruction.d.ts +0 -3
  923. package/node_modules/@raggle-ai/local/dist/core/project-instruction.js +0 -16
  924. package/node_modules/@raggle-ai/local/dist/core/project-metadata-hydration.d.ts +0 -11
  925. package/node_modules/@raggle-ai/local/dist/core/project-metadata-hydration.js +0 -17
  926. package/node_modules/@raggle-ai/local/dist/core/project-metadata.d.ts +0 -4
  927. package/node_modules/@raggle-ai/local/dist/core/project-metadata.js +0 -72
  928. package/node_modules/@raggle-ai/local/dist/core/project-presentation.d.ts +0 -14
  929. package/node_modules/@raggle-ai/local/dist/core/project-presentation.js +0 -33
  930. package/node_modules/@raggle-ai/local/dist/core/project-remote.d.ts +0 -3
  931. package/node_modules/@raggle-ai/local/dist/core/project-remote.js +0 -45
  932. package/node_modules/@raggle-ai/local/dist/core/project-schema.d.ts +0 -126
  933. package/node_modules/@raggle-ai/local/dist/core/project-schema.js +0 -10
  934. package/node_modules/@raggle-ai/local/dist/core/project-source-settings.d.ts +0 -19
  935. package/node_modules/@raggle-ai/local/dist/core/project-source-settings.js +0 -57
  936. package/node_modules/@raggle-ai/local/dist/core/project-store-add.d.ts +0 -21
  937. package/node_modules/@raggle-ai/local/dist/core/project-store-add.js +0 -36
  938. package/node_modules/@raggle-ai/local/dist/core/project-subpaths.d.ts +0 -16
  939. package/node_modules/@raggle-ai/local/dist/core/project-subpaths.js +0 -37
  940. package/node_modules/@raggle-ai/local/dist/core/raggle-deep-link.d.ts +0 -1
  941. package/node_modules/@raggle-ai/local/dist/core/raggle-deep-link.js +0 -12
  942. package/node_modules/@raggle-ai/local/dist/core/relation-commands.d.ts +0 -32
  943. package/node_modules/@raggle-ai/local/dist/core/relation-commands.js +0 -111
  944. package/node_modules/@raggle-ai/local/dist/core/relation-depth.d.ts +0 -3
  945. package/node_modules/@raggle-ai/local/dist/core/relation-depth.js +0 -5
  946. package/node_modules/@raggle-ai/local/dist/core/remote-connection-code.d.ts +0 -17
  947. package/node_modules/@raggle-ai/local/dist/core/remote-connection-code.js +0 -113
  948. package/node_modules/@raggle-ai/local/dist/core/repository-subpaths.d.ts +0 -6
  949. package/node_modules/@raggle-ai/local/dist/core/repository-subpaths.js +0 -54
  950. package/node_modules/@raggle-ai/local/dist/core/search.d.ts +0 -151
  951. package/node_modules/@raggle-ai/local/dist/core/search.js +0 -297
  952. package/node_modules/@raggle-ai/local/dist/core/skills.d.ts +0 -21
  953. package/node_modules/@raggle-ai/local/dist/core/skills.js +0 -117
  954. package/node_modules/@raggle-ai/local/dist/core/types.d.ts +0 -47
  955. package/node_modules/@raggle-ai/local/dist/core/types.js +0 -2
  956. package/node_modules/@raggle-ai/local/dist/core/user-projects.d.ts +0 -17
  957. package/node_modules/@raggle-ai/local/dist/core/user-projects.js +0 -317
  958. package/node_modules/@raggle-ai/local/dist/discovery/markdown-files.d.ts +0 -8
  959. package/node_modules/@raggle-ai/local/dist/discovery/markdown-files.js +0 -27
  960. package/node_modules/@raggle-ai/local/dist/discovery/project-folders.d.ts +0 -5
  961. package/node_modules/@raggle-ai/local/dist/discovery/project-folders.js +0 -61
  962. package/node_modules/@raggle-ai/local/dist/discovery/scanner.d.ts +0 -30
  963. package/node_modules/@raggle-ai/local/dist/discovery/scanner.js +0 -68
  964. package/node_modules/@raggle-ai/local/dist/folder-metadata/assets.d.ts +0 -6
  965. package/node_modules/@raggle-ai/local/dist/folder-metadata/assets.js +0 -39
  966. package/node_modules/@raggle-ai/local/dist/folder-metadata/icons.d.ts +0 -11
  967. package/node_modules/@raggle-ai/local/dist/folder-metadata/icons.js +0 -65
  968. package/node_modules/@raggle-ai/local/dist/folder-metadata/index.d.ts +0 -2
  969. package/node_modules/@raggle-ai/local/dist/folder-metadata/index.js +0 -9
  970. package/node_modules/@raggle-ai/local/dist/folder-metadata/resolve.d.ts +0 -14
  971. package/node_modules/@raggle-ai/local/dist/folder-metadata/resolve.js +0 -52
  972. package/node_modules/@raggle-ai/local/dist/generated/project-emoji.json +0 -1
  973. package/node_modules/@raggle-ai/local/dist/index.d.ts +0 -84
  974. package/node_modules/@raggle-ai/local/dist/index.js +0 -435
  975. package/node_modules/@raggle-ai/local/dist/mcp/generated/handlers.d.ts +0 -92
  976. package/node_modules/@raggle-ai/local/dist/mcp/generated/handlers.js +0 -108
  977. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-client.d.ts +0 -64
  978. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-client.js +0 -91
  979. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/index.d.ts +0 -15
  980. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/index.js +0 -31
  981. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/match.d.ts +0 -12
  982. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/match.js +0 -9
  983. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/projectGet200.d.ts +0 -12
  984. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/projectGet200.js +0 -2
  985. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/projectList200.d.ts +0 -13
  986. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/projectList200.js +0 -2
  987. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/projectSearch200.d.ts +0 -14
  988. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/projectSearch200.js +0 -2
  989. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/projectSearch200ItemsItem.d.ts +0 -12
  990. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/projectSearch200ItemsItem.js +0 -2
  991. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/projectSearchParams.d.ts +0 -20
  992. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/projectSearchParams.js +0 -9
  993. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/serviceProject.d.ts +0 -19
  994. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/serviceProject.js +0 -9
  995. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/serviceVersion200.d.ts +0 -12
  996. package/node_modules/@raggle-ai/local/dist/mcp/generated/http-schemas/serviceVersion200.js +0 -9
  997. package/node_modules/@raggle-ai/local/dist/mcp/generated/server.d.ts +0 -8
  998. package/node_modules/@raggle-ai/local/dist/mcp/generated/server.js +0 -48
  999. package/node_modules/@raggle-ai/local/dist/mcp/generated/tool-schemas.zod.d.ts +0 -17
  1000. package/node_modules/@raggle-ai/local/dist/mcp/generated/tool-schemas.zod.js +0 -58
  1001. package/node_modules/@raggle-ai/local/dist/mcp/scout-mcp-server.d.ts +0 -6
  1002. package/node_modules/@raggle-ai/local/dist/mcp/scout-mcp-server.js +0 -29
  1003. package/node_modules/@raggle-ai/local/dist/native/index.d.ts +0 -396
  1004. package/node_modules/@raggle-ai/local/dist/native/index.js +0 -766
  1005. package/node_modules/@raggle-ai/local/dist/native/raggle-local-native.darwin-arm64.node +0 -0
  1006. package/node_modules/@raggle-ai/local/dist/native/raggle-local-native.darwin-x64.node +0 -0
  1007. package/node_modules/@raggle-ai/local/dist/native/raggle-local-native.linux-x64-gnu.node +0 -0
  1008. package/node_modules/@raggle-ai/local/dist/native-bridge.d.ts +0 -383
  1009. package/node_modules/@raggle-ai/local/dist/native-bridge.js +0 -306
  1010. package/node_modules/@raggle-ai/local/dist/native.d.ts +0 -1
  1011. package/node_modules/@raggle-ai/local/dist/native.js +0 -10
  1012. package/node_modules/@raggle-ai/local/dist/search/index.d.ts +0 -3
  1013. package/node_modules/@raggle-ai/local/dist/search/index.js +0 -23
  1014. package/node_modules/@raggle-ai/local/dist/service/client.d.ts +0 -2
  1015. package/node_modules/@raggle-ai/local/dist/service/client.js +0 -18
  1016. package/node_modules/@raggle-ai/local/dist/service/generated/client.d.ts +0 -64
  1017. package/node_modules/@raggle-ai/local/dist/service/generated/client.js +0 -84
  1018. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/index.d.ts +0 -15
  1019. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/index.js +0 -31
  1020. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/match.d.ts +0 -12
  1021. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/match.js +0 -9
  1022. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/projectGet200.d.ts +0 -12
  1023. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/projectGet200.js +0 -2
  1024. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/projectList200.d.ts +0 -13
  1025. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/projectList200.js +0 -2
  1026. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/projectSearch200.d.ts +0 -14
  1027. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/projectSearch200.js +0 -2
  1028. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/projectSearch200ItemsItem.d.ts +0 -12
  1029. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/projectSearch200ItemsItem.js +0 -2
  1030. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/projectSearchParams.d.ts +0 -20
  1031. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/projectSearchParams.js +0 -9
  1032. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/serviceProject.d.ts +0 -19
  1033. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/serviceProject.js +0 -9
  1034. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/serviceVersion200.d.ts +0 -12
  1035. package/node_modules/@raggle-ai/local/dist/service/generated/schemas/serviceVersion200.js +0 -9
  1036. package/node_modules/@raggle-ai/local/dist/service/scout-service.d.ts +0 -17
  1037. package/node_modules/@raggle-ai/local/dist/service/scout-service.js +0 -196
  1038. package/node_modules/@raggle-ai/local/dist/sessions/create.d.ts +0 -7
  1039. package/node_modules/@raggle-ai/local/dist/sessions/create.js +0 -28
  1040. package/node_modules/@raggle-ai/local/dist/sessions/index.d.ts +0 -48
  1041. package/node_modules/@raggle-ai/local/dist/sessions/index.js +0 -686
  1042. package/node_modules/@raggle-ai/local/dist/sessions/resume.d.ts +0 -74
  1043. package/node_modules/@raggle-ai/local/dist/sessions/resume.js +0 -96
  1044. package/node_modules/@raggle-ai/local/package.json +0 -111
  1045. package/node_modules/@raggle-ai/local/schemas/cli-commands.json +0 -358
  1046. package/node_modules/@raggle-ai/local/schemas/config.json +0 -473
  1047. package/node_modules/@raggle-ai/local/schemas/scout-service-openapi.json +0 -189
  1048. package/node_modules/@raggle-ai/local/schemas/settings.json +0 -383
  1049. package/node_modules/zod/LICENSE +0 -21
  1050. package/node_modules/zod/README.md +0 -191
  1051. package/node_modules/zod/index.cjs +0 -33
  1052. package/node_modules/zod/index.d.cts +0 -4
  1053. package/node_modules/zod/index.d.ts +0 -4
  1054. package/node_modules/zod/index.js +0 -4
  1055. package/node_modules/zod/locales/index.cjs +0 -17
  1056. package/node_modules/zod/locales/index.d.cts +0 -1
  1057. package/node_modules/zod/locales/index.d.ts +0 -1
  1058. package/node_modules/zod/locales/index.js +0 -1
  1059. package/node_modules/zod/locales/package.json +0 -7
  1060. package/node_modules/zod/mini/index.cjs +0 -32
  1061. package/node_modules/zod/mini/index.d.cts +0 -3
  1062. package/node_modules/zod/mini/index.d.ts +0 -3
  1063. package/node_modules/zod/mini/index.js +0 -3
  1064. package/node_modules/zod/mini/package.json +0 -7
  1065. package/node_modules/zod/package.json +0 -135
  1066. package/node_modules/zod/src/index.ts +0 -4
  1067. package/node_modules/zod/src/locales/index.ts +0 -1
  1068. package/node_modules/zod/src/mini/index.ts +0 -3
  1069. package/node_modules/zod/src/v3/ZodError.ts +0 -330
  1070. package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  1071. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  1072. package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  1073. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  1074. package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  1075. package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  1076. package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  1077. package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  1078. package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  1079. package/node_modules/zod/src/v3/errors.ts +0 -13
  1080. package/node_modules/zod/src/v3/external.ts +0 -6
  1081. package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  1082. package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  1083. package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  1084. package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  1085. package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  1086. package/node_modules/zod/src/v3/helpers/util.ts +0 -224
  1087. package/node_modules/zod/src/v3/index.ts +0 -4
  1088. package/node_modules/zod/src/v3/locales/en.ts +0 -124
  1089. package/node_modules/zod/src/v3/standard-schema.ts +0 -113
  1090. package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  1091. package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  1092. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  1093. package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  1094. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  1095. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  1096. package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  1097. package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  1098. package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  1099. package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  1100. package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  1101. package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  1102. package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  1103. package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  1104. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  1105. package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  1106. package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  1107. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  1108. package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  1109. package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  1110. package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  1111. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  1112. package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  1113. package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  1114. package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  1115. package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  1116. package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  1117. package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  1118. package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  1119. package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  1120. package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  1121. package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  1122. package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  1123. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  1124. package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  1125. package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  1126. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  1127. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  1128. package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  1129. package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  1130. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  1131. package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  1132. package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  1133. package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  1134. package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  1135. package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  1136. package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  1137. package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  1138. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  1139. package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  1140. package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  1141. package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  1142. package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  1143. package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  1144. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  1145. package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  1146. package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  1147. package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  1148. package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  1149. package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  1150. package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  1151. package/node_modules/zod/src/v3/types.ts +0 -5138
  1152. package/node_modules/zod/src/v4/classic/checks.ts +0 -32
  1153. package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  1154. package/node_modules/zod/src/v4/classic/compat.ts +0 -70
  1155. package/node_modules/zod/src/v4/classic/errors.ts +0 -82
  1156. package/node_modules/zod/src/v4/classic/external.ts +0 -52
  1157. package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -659
  1158. package/node_modules/zod/src/v4/classic/index.ts +0 -5
  1159. package/node_modules/zod/src/v4/classic/iso.ts +0 -90
  1160. package/node_modules/zod/src/v4/classic/parse.ts +0 -82
  1161. package/node_modules/zod/src/v4/classic/schemas.ts +0 -2672
  1162. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  1163. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
  1164. package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  1165. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -216
  1166. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  1167. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  1168. package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  1169. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  1170. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  1171. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -326
  1172. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  1173. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
  1174. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -703
  1175. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  1176. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  1177. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  1178. package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
  1179. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
  1180. package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -409
  1181. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  1182. package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  1183. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -197
  1184. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -694
  1185. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  1186. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -807
  1187. package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  1188. package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
  1189. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
  1190. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  1191. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -895
  1192. package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
  1193. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  1194. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -39
  1195. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
  1196. package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
  1197. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
  1198. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
  1199. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -46
  1200. package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  1201. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  1202. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
  1203. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
  1204. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
  1205. package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
  1206. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  1207. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  1208. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
  1209. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  1210. package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -325
  1211. package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -717
  1212. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -333
  1213. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -450
  1214. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  1215. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
  1216. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
  1217. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -26
  1218. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
  1219. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  1220. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  1221. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  1222. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  1223. package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -717
  1224. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -631
  1225. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -633
  1226. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  1227. package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
  1228. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
  1229. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
  1230. package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1224
  1231. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
  1232. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
  1233. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  1234. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -3125
  1235. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
  1236. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -496
  1237. package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -273
  1238. package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  1239. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  1240. package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  1241. package/node_modules/zod/src/v4/core/api.ts +0 -1823
  1242. package/node_modules/zod/src/v4/core/checks.ts +0 -1293
  1243. package/node_modules/zod/src/v4/core/config.ts +0 -15
  1244. package/node_modules/zod/src/v4/core/core.ts +0 -153
  1245. package/node_modules/zod/src/v4/core/doc.ts +0 -44
  1246. package/node_modules/zod/src/v4/core/errors.ts +0 -455
  1247. package/node_modules/zod/src/v4/core/index.ts +0 -16
  1248. package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
  1249. package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -666
  1250. package/node_modules/zod/src/v4/core/json-schema.ts +0 -147
  1251. package/node_modules/zod/src/v4/core/parse.ts +0 -195
  1252. package/node_modules/zod/src/v4/core/regexes.ts +0 -190
  1253. package/node_modules/zod/src/v4/core/registries.ts +0 -105
  1254. package/node_modules/zod/src/v4/core/schemas.ts +0 -4730
  1255. package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  1256. package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  1257. package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  1258. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  1259. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -215
  1260. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  1261. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
  1262. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
  1263. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  1264. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
  1265. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  1266. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  1267. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  1268. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
  1269. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
  1270. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  1271. package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -622
  1272. package/node_modules/zod/src/v4/core/util.ts +0 -983
  1273. package/node_modules/zod/src/v4/core/versions.ts +0 -5
  1274. package/node_modules/zod/src/v4/core/zsf.ts +0 -323
  1275. package/node_modules/zod/src/v4/index.ts +0 -4
  1276. package/node_modules/zod/src/v4/locales/ar.ts +0 -115
  1277. package/node_modules/zod/src/v4/locales/az.ts +0 -111
  1278. package/node_modules/zod/src/v4/locales/be.ts +0 -176
  1279. package/node_modules/zod/src/v4/locales/bg.ts +0 -128
  1280. package/node_modules/zod/src/v4/locales/ca.ts +0 -116
  1281. package/node_modules/zod/src/v4/locales/cs.ts +0 -118
  1282. package/node_modules/zod/src/v4/locales/da.ts +0 -123
  1283. package/node_modules/zod/src/v4/locales/de.ts +0 -116
  1284. package/node_modules/zod/src/v4/locales/el.ts +0 -121
  1285. package/node_modules/zod/src/v4/locales/en.ts +0 -123
  1286. package/node_modules/zod/src/v4/locales/eo.ts +0 -118
  1287. package/node_modules/zod/src/v4/locales/es.ts +0 -141
  1288. package/node_modules/zod/src/v4/locales/fa.ts +0 -126
  1289. package/node_modules/zod/src/v4/locales/fi.ts +0 -121
  1290. package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
  1291. package/node_modules/zod/src/v4/locales/fr.ts +0 -132
  1292. package/node_modules/zod/src/v4/locales/he.ts +0 -246
  1293. package/node_modules/zod/src/v4/locales/hr.ts +0 -131
  1294. package/node_modules/zod/src/v4/locales/hu.ts +0 -117
  1295. package/node_modules/zod/src/v4/locales/hy.ts +0 -164
  1296. package/node_modules/zod/src/v4/locales/id.ts +0 -115
  1297. package/node_modules/zod/src/v4/locales/index.ts +0 -52
  1298. package/node_modules/zod/src/v4/locales/is.ts +0 -119
  1299. package/node_modules/zod/src/v4/locales/it.ts +0 -116
  1300. package/node_modules/zod/src/v4/locales/ja.ts +0 -114
  1301. package/node_modules/zod/src/v4/locales/ka.ts +0 -123
  1302. package/node_modules/zod/src/v4/locales/kh.ts +0 -7
  1303. package/node_modules/zod/src/v4/locales/km.ts +0 -119
  1304. package/node_modules/zod/src/v4/locales/ko.ts +0 -121
  1305. package/node_modules/zod/src/v4/locales/lt.ts +0 -239
  1306. package/node_modules/zod/src/v4/locales/mk.ts +0 -118
  1307. package/node_modules/zod/src/v4/locales/ms.ts +0 -115
  1308. package/node_modules/zod/src/v4/locales/nl.ts +0 -121
  1309. package/node_modules/zod/src/v4/locales/no.ts +0 -116
  1310. package/node_modules/zod/src/v4/locales/ota.ts +0 -117
  1311. package/node_modules/zod/src/v4/locales/pl.ts +0 -118
  1312. package/node_modules/zod/src/v4/locales/ps.ts +0 -126
  1313. package/node_modules/zod/src/v4/locales/pt.ts +0 -116
  1314. package/node_modules/zod/src/v4/locales/ro.ts +0 -129
  1315. package/node_modules/zod/src/v4/locales/ru.ts +0 -176
  1316. package/node_modules/zod/src/v4/locales/sl.ts +0 -118
  1317. package/node_modules/zod/src/v4/locales/sv.ts +0 -119
  1318. package/node_modules/zod/src/v4/locales/ta.ts +0 -118
  1319. package/node_modules/zod/src/v4/locales/th.ts +0 -119
  1320. package/node_modules/zod/src/v4/locales/tr.ts +0 -111
  1321. package/node_modules/zod/src/v4/locales/ua.ts +0 -7
  1322. package/node_modules/zod/src/v4/locales/uk.ts +0 -117
  1323. package/node_modules/zod/src/v4/locales/ur.ts +0 -119
  1324. package/node_modules/zod/src/v4/locales/uz.ts +0 -117
  1325. package/node_modules/zod/src/v4/locales/vi.ts +0 -117
  1326. package/node_modules/zod/src/v4/locales/yo.ts +0 -124
  1327. package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
  1328. package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
  1329. package/node_modules/zod/src/v4/mini/checks.ts +0 -32
  1330. package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  1331. package/node_modules/zod/src/v4/mini/external.ts +0 -41
  1332. package/node_modules/zod/src/v4/mini/index.ts +0 -3
  1333. package/node_modules/zod/src/v4/mini/iso.ts +0 -66
  1334. package/node_modules/zod/src/v4/mini/parse.ts +0 -14
  1335. package/node_modules/zod/src/v4/mini/schemas.ts +0 -1947
  1336. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
  1337. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  1338. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  1339. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  1340. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -548
  1341. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  1342. package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  1343. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
  1344. package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -993
  1345. package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  1346. package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
  1347. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  1348. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -325
  1349. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  1350. package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -352
  1351. package/node_modules/zod/src/v4-mini/index.ts +0 -3
  1352. package/node_modules/zod/v3/ZodError.cjs +0 -138
  1353. package/node_modules/zod/v3/ZodError.d.cts +0 -164
  1354. package/node_modules/zod/v3/ZodError.d.ts +0 -164
  1355. package/node_modules/zod/v3/ZodError.js +0 -133
  1356. package/node_modules/zod/v3/errors.cjs +0 -17
  1357. package/node_modules/zod/v3/errors.d.cts +0 -5
  1358. package/node_modules/zod/v3/errors.d.ts +0 -5
  1359. package/node_modules/zod/v3/errors.js +0 -9
  1360. package/node_modules/zod/v3/external.cjs +0 -22
  1361. package/node_modules/zod/v3/external.d.cts +0 -6
  1362. package/node_modules/zod/v3/external.d.ts +0 -6
  1363. package/node_modules/zod/v3/external.js +0 -6
  1364. package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  1365. package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  1366. package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  1367. package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  1368. package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  1369. package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  1370. package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  1371. package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  1372. package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  1373. package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  1374. package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  1375. package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  1376. package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  1377. package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  1378. package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  1379. package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  1380. package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  1381. package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  1382. package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  1383. package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  1384. package/node_modules/zod/v3/helpers/util.cjs +0 -137
  1385. package/node_modules/zod/v3/helpers/util.d.cts +0 -85
  1386. package/node_modules/zod/v3/helpers/util.d.ts +0 -85
  1387. package/node_modules/zod/v3/helpers/util.js +0 -133
  1388. package/node_modules/zod/v3/index.cjs +0 -33
  1389. package/node_modules/zod/v3/index.d.cts +0 -4
  1390. package/node_modules/zod/v3/index.d.ts +0 -4
  1391. package/node_modules/zod/v3/index.js +0 -4
  1392. package/node_modules/zod/v3/locales/en.cjs +0 -112
  1393. package/node_modules/zod/v3/locales/en.d.cts +0 -3
  1394. package/node_modules/zod/v3/locales/en.d.ts +0 -3
  1395. package/node_modules/zod/v3/locales/en.js +0 -109
  1396. package/node_modules/zod/v3/package.json +0 -7
  1397. package/node_modules/zod/v3/standard-schema.cjs +0 -2
  1398. package/node_modules/zod/v3/standard-schema.d.cts +0 -102
  1399. package/node_modules/zod/v3/standard-schema.d.ts +0 -102
  1400. package/node_modules/zod/v3/standard-schema.js +0 -1
  1401. package/node_modules/zod/v3/types.cjs +0 -3777
  1402. package/node_modules/zod/v3/types.d.cts +0 -1034
  1403. package/node_modules/zod/v3/types.d.ts +0 -1034
  1404. package/node_modules/zod/v3/types.js +0 -3695
  1405. package/node_modules/zod/v4/classic/checks.cjs +0 -33
  1406. package/node_modules/zod/v4/classic/checks.d.cts +0 -1
  1407. package/node_modules/zod/v4/classic/checks.d.ts +0 -1
  1408. package/node_modules/zod/v4/classic/checks.js +0 -1
  1409. package/node_modules/zod/v4/classic/coerce.cjs +0 -47
  1410. package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  1411. package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  1412. package/node_modules/zod/v4/classic/coerce.js +0 -17
  1413. package/node_modules/zod/v4/classic/compat.cjs +0 -61
  1414. package/node_modules/zod/v4/classic/compat.d.cts +0 -50
  1415. package/node_modules/zod/v4/classic/compat.d.ts +0 -50
  1416. package/node_modules/zod/v4/classic/compat.js +0 -31
  1417. package/node_modules/zod/v4/classic/errors.cjs +0 -74
  1418. package/node_modules/zod/v4/classic/errors.d.cts +0 -30
  1419. package/node_modules/zod/v4/classic/errors.d.ts +0 -30
  1420. package/node_modules/zod/v4/classic/errors.js +0 -48
  1421. package/node_modules/zod/v4/classic/external.cjs +0 -73
  1422. package/node_modules/zod/v4/classic/external.d.cts +0 -16
  1423. package/node_modules/zod/v4/classic/external.d.ts +0 -16
  1424. package/node_modules/zod/v4/classic/external.js +0 -20
  1425. package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -625
  1426. package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
  1427. package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
  1428. package/node_modules/zod/v4/classic/from-json-schema.js +0 -599
  1429. package/node_modules/zod/v4/classic/index.cjs +0 -33
  1430. package/node_modules/zod/v4/classic/index.d.cts +0 -4
  1431. package/node_modules/zod/v4/classic/index.d.ts +0 -4
  1432. package/node_modules/zod/v4/classic/index.js +0 -4
  1433. package/node_modules/zod/v4/classic/iso.cjs +0 -60
  1434. package/node_modules/zod/v4/classic/iso.d.cts +0 -22
  1435. package/node_modules/zod/v4/classic/iso.d.ts +0 -22
  1436. package/node_modules/zod/v4/classic/iso.js +0 -30
  1437. package/node_modules/zod/v4/classic/package.json +0 -7
  1438. package/node_modules/zod/v4/classic/parse.cjs +0 -41
  1439. package/node_modules/zod/v4/classic/parse.d.cts +0 -31
  1440. package/node_modules/zod/v4/classic/parse.d.ts +0 -31
  1441. package/node_modules/zod/v4/classic/parse.js +0 -15
  1442. package/node_modules/zod/v4/classic/schemas.cjs +0 -1511
  1443. package/node_modules/zod/v4/classic/schemas.d.cts +0 -767
  1444. package/node_modules/zod/v4/classic/schemas.d.ts +0 -767
  1445. package/node_modules/zod/v4/classic/schemas.js +0 -1395
  1446. package/node_modules/zod/v4/core/api.cjs +0 -1227
  1447. package/node_modules/zod/v4/core/api.d.cts +0 -325
  1448. package/node_modules/zod/v4/core/api.d.ts +0 -325
  1449. package/node_modules/zod/v4/core/api.js +0 -1087
  1450. package/node_modules/zod/v4/core/checks.cjs +0 -601
  1451. package/node_modules/zod/v4/core/checks.d.cts +0 -278
  1452. package/node_modules/zod/v4/core/checks.d.ts +0 -278
  1453. package/node_modules/zod/v4/core/checks.js +0 -575
  1454. package/node_modules/zod/v4/core/core.cjs +0 -85
  1455. package/node_modules/zod/v4/core/core.d.cts +0 -70
  1456. package/node_modules/zod/v4/core/core.d.ts +0 -70
  1457. package/node_modules/zod/v4/core/core.js +0 -78
  1458. package/node_modules/zod/v4/core/doc.cjs +0 -39
  1459. package/node_modules/zod/v4/core/doc.d.cts +0 -14
  1460. package/node_modules/zod/v4/core/doc.d.ts +0 -14
  1461. package/node_modules/zod/v4/core/doc.js +0 -35
  1462. package/node_modules/zod/v4/core/errors.cjs +0 -216
  1463. package/node_modules/zod/v4/core/errors.d.cts +0 -221
  1464. package/node_modules/zod/v4/core/errors.d.ts +0 -221
  1465. package/node_modules/zod/v4/core/errors.js +0 -185
  1466. package/node_modules/zod/v4/core/index.cjs +0 -47
  1467. package/node_modules/zod/v4/core/index.d.cts +0 -16
  1468. package/node_modules/zod/v4/core/index.d.ts +0 -16
  1469. package/node_modules/zod/v4/core/index.js +0 -16
  1470. package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
  1471. package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
  1472. package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
  1473. package/node_modules/zod/v4/core/json-schema-generator.js +0 -95
  1474. package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -644
  1475. package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
  1476. package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
  1477. package/node_modules/zod/v4/core/json-schema-processors.js +0 -601
  1478. package/node_modules/zod/v4/core/json-schema.cjs +0 -2
  1479. package/node_modules/zod/v4/core/json-schema.d.cts +0 -88
  1480. package/node_modules/zod/v4/core/json-schema.d.ts +0 -88
  1481. package/node_modules/zod/v4/core/json-schema.js +0 -1
  1482. package/node_modules/zod/v4/core/package.json +0 -7
  1483. package/node_modules/zod/v4/core/parse.cjs +0 -131
  1484. package/node_modules/zod/v4/core/parse.d.cts +0 -49
  1485. package/node_modules/zod/v4/core/parse.d.ts +0 -49
  1486. package/node_modules/zod/v4/core/parse.js +0 -93
  1487. package/node_modules/zod/v4/core/regexes.cjs +0 -172
  1488. package/node_modules/zod/v4/core/regexes.d.cts +0 -85
  1489. package/node_modules/zod/v4/core/regexes.d.ts +0 -85
  1490. package/node_modules/zod/v4/core/regexes.js +0 -139
  1491. package/node_modules/zod/v4/core/registries.cjs +0 -56
  1492. package/node_modules/zod/v4/core/registries.d.cts +0 -35
  1493. package/node_modules/zod/v4/core/registries.d.ts +0 -35
  1494. package/node_modules/zod/v4/core/registries.js +0 -51
  1495. package/node_modules/zod/v4/core/schemas.cjs +0 -2270
  1496. package/node_modules/zod/v4/core/schemas.d.cts +0 -1184
  1497. package/node_modules/zod/v4/core/schemas.d.ts +0 -1184
  1498. package/node_modules/zod/v4/core/schemas.js +0 -2239
  1499. package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  1500. package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
  1501. package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
  1502. package/node_modules/zod/v4/core/standard-schema.js +0 -1
  1503. package/node_modules/zod/v4/core/to-json-schema.cjs +0 -457
  1504. package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -114
  1505. package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -114
  1506. package/node_modules/zod/v4/core/to-json-schema.js +0 -448
  1507. package/node_modules/zod/v4/core/util.cjs +0 -734
  1508. package/node_modules/zod/v4/core/util.d.cts +0 -200
  1509. package/node_modules/zod/v4/core/util.d.ts +0 -200
  1510. package/node_modules/zod/v4/core/util.js +0 -674
  1511. package/node_modules/zod/v4/core/versions.cjs +0 -8
  1512. package/node_modules/zod/v4/core/versions.d.cts +0 -5
  1513. package/node_modules/zod/v4/core/versions.d.ts +0 -5
  1514. package/node_modules/zod/v4/core/versions.js +0 -5
  1515. package/node_modules/zod/v4/index.cjs +0 -22
  1516. package/node_modules/zod/v4/index.d.cts +0 -3
  1517. package/node_modules/zod/v4/index.d.ts +0 -3
  1518. package/node_modules/zod/v4/index.js +0 -3
  1519. package/node_modules/zod/v4/locales/ar.cjs +0 -133
  1520. package/node_modules/zod/v4/locales/ar.d.cts +0 -5
  1521. package/node_modules/zod/v4/locales/ar.d.ts +0 -4
  1522. package/node_modules/zod/v4/locales/ar.js +0 -106
  1523. package/node_modules/zod/v4/locales/az.cjs +0 -132
  1524. package/node_modules/zod/v4/locales/az.d.cts +0 -5
  1525. package/node_modules/zod/v4/locales/az.d.ts +0 -4
  1526. package/node_modules/zod/v4/locales/az.js +0 -105
  1527. package/node_modules/zod/v4/locales/be.cjs +0 -183
  1528. package/node_modules/zod/v4/locales/be.d.cts +0 -5
  1529. package/node_modules/zod/v4/locales/be.d.ts +0 -4
  1530. package/node_modules/zod/v4/locales/be.js +0 -156
  1531. package/node_modules/zod/v4/locales/bg.cjs +0 -147
  1532. package/node_modules/zod/v4/locales/bg.d.cts +0 -5
  1533. package/node_modules/zod/v4/locales/bg.d.ts +0 -4
  1534. package/node_modules/zod/v4/locales/bg.js +0 -120
  1535. package/node_modules/zod/v4/locales/ca.cjs +0 -134
  1536. package/node_modules/zod/v4/locales/ca.d.cts +0 -5
  1537. package/node_modules/zod/v4/locales/ca.d.ts +0 -4
  1538. package/node_modules/zod/v4/locales/ca.js +0 -107
  1539. package/node_modules/zod/v4/locales/cs.cjs +0 -138
  1540. package/node_modules/zod/v4/locales/cs.d.cts +0 -5
  1541. package/node_modules/zod/v4/locales/cs.d.ts +0 -4
  1542. package/node_modules/zod/v4/locales/cs.js +0 -111
  1543. package/node_modules/zod/v4/locales/da.cjs +0 -142
  1544. package/node_modules/zod/v4/locales/da.d.cts +0 -5
  1545. package/node_modules/zod/v4/locales/da.d.ts +0 -4
  1546. package/node_modules/zod/v4/locales/da.js +0 -115
  1547. package/node_modules/zod/v4/locales/de.cjs +0 -135
  1548. package/node_modules/zod/v4/locales/de.d.cts +0 -5
  1549. package/node_modules/zod/v4/locales/de.d.ts +0 -4
  1550. package/node_modules/zod/v4/locales/de.js +0 -108
  1551. package/node_modules/zod/v4/locales/el.cjs +0 -136
  1552. package/node_modules/zod/v4/locales/el.d.cts +0 -5
  1553. package/node_modules/zod/v4/locales/el.d.ts +0 -4
  1554. package/node_modules/zod/v4/locales/el.js +0 -109
  1555. package/node_modules/zod/v4/locales/en.cjs +0 -140
  1556. package/node_modules/zod/v4/locales/en.d.cts +0 -5
  1557. package/node_modules/zod/v4/locales/en.d.ts +0 -4
  1558. package/node_modules/zod/v4/locales/en.js +0 -113
  1559. package/node_modules/zod/v4/locales/eo.cjs +0 -136
  1560. package/node_modules/zod/v4/locales/eo.d.cts +0 -5
  1561. package/node_modules/zod/v4/locales/eo.d.ts +0 -4
  1562. package/node_modules/zod/v4/locales/eo.js +0 -109
  1563. package/node_modules/zod/v4/locales/es.cjs +0 -159
  1564. package/node_modules/zod/v4/locales/es.d.cts +0 -5
  1565. package/node_modules/zod/v4/locales/es.d.ts +0 -4
  1566. package/node_modules/zod/v4/locales/es.js +0 -132
  1567. package/node_modules/zod/v4/locales/fa.cjs +0 -141
  1568. package/node_modules/zod/v4/locales/fa.d.cts +0 -5
  1569. package/node_modules/zod/v4/locales/fa.d.ts +0 -4
  1570. package/node_modules/zod/v4/locales/fa.js +0 -114
  1571. package/node_modules/zod/v4/locales/fi.cjs +0 -139
  1572. package/node_modules/zod/v4/locales/fi.d.cts +0 -5
  1573. package/node_modules/zod/v4/locales/fi.d.ts +0 -4
  1574. package/node_modules/zod/v4/locales/fi.js +0 -112
  1575. package/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
  1576. package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
  1577. package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  1578. package/node_modules/zod/v4/locales/fr-CA.js +0 -107
  1579. package/node_modules/zod/v4/locales/fr.cjs +0 -152
  1580. package/node_modules/zod/v4/locales/fr.d.cts +0 -5
  1581. package/node_modules/zod/v4/locales/fr.d.ts +0 -4
  1582. package/node_modules/zod/v4/locales/fr.js +0 -125
  1583. package/node_modules/zod/v4/locales/he.cjs +0 -241
  1584. package/node_modules/zod/v4/locales/he.d.cts +0 -5
  1585. package/node_modules/zod/v4/locales/he.d.ts +0 -4
  1586. package/node_modules/zod/v4/locales/he.js +0 -214
  1587. package/node_modules/zod/v4/locales/hr.cjs +0 -149
  1588. package/node_modules/zod/v4/locales/hr.d.cts +0 -5
  1589. package/node_modules/zod/v4/locales/hr.d.ts +0 -4
  1590. package/node_modules/zod/v4/locales/hr.js +0 -122
  1591. package/node_modules/zod/v4/locales/hu.cjs +0 -135
  1592. package/node_modules/zod/v4/locales/hu.d.cts +0 -5
  1593. package/node_modules/zod/v4/locales/hu.d.ts +0 -4
  1594. package/node_modules/zod/v4/locales/hu.js +0 -108
  1595. package/node_modules/zod/v4/locales/hy.cjs +0 -174
  1596. package/node_modules/zod/v4/locales/hy.d.cts +0 -5
  1597. package/node_modules/zod/v4/locales/hy.d.ts +0 -4
  1598. package/node_modules/zod/v4/locales/hy.js +0 -147
  1599. package/node_modules/zod/v4/locales/id.cjs +0 -133
  1600. package/node_modules/zod/v4/locales/id.d.cts +0 -5
  1601. package/node_modules/zod/v4/locales/id.d.ts +0 -4
  1602. package/node_modules/zod/v4/locales/id.js +0 -106
  1603. package/node_modules/zod/v4/locales/index.cjs +0 -111
  1604. package/node_modules/zod/v4/locales/index.d.cts +0 -52
  1605. package/node_modules/zod/v4/locales/index.d.ts +0 -52
  1606. package/node_modules/zod/v4/locales/index.js +0 -52
  1607. package/node_modules/zod/v4/locales/is.cjs +0 -136
  1608. package/node_modules/zod/v4/locales/is.d.cts +0 -5
  1609. package/node_modules/zod/v4/locales/is.d.ts +0 -4
  1610. package/node_modules/zod/v4/locales/is.js +0 -109
  1611. package/node_modules/zod/v4/locales/it.cjs +0 -135
  1612. package/node_modules/zod/v4/locales/it.d.cts +0 -5
  1613. package/node_modules/zod/v4/locales/it.d.ts +0 -4
  1614. package/node_modules/zod/v4/locales/it.js +0 -108
  1615. package/node_modules/zod/v4/locales/ja.cjs +0 -134
  1616. package/node_modules/zod/v4/locales/ja.d.cts +0 -5
  1617. package/node_modules/zod/v4/locales/ja.d.ts +0 -4
  1618. package/node_modules/zod/v4/locales/ja.js +0 -107
  1619. package/node_modules/zod/v4/locales/ka.cjs +0 -139
  1620. package/node_modules/zod/v4/locales/ka.d.cts +0 -5
  1621. package/node_modules/zod/v4/locales/ka.d.ts +0 -4
  1622. package/node_modules/zod/v4/locales/ka.js +0 -112
  1623. package/node_modules/zod/v4/locales/kh.cjs +0 -12
  1624. package/node_modules/zod/v4/locales/kh.d.cts +0 -5
  1625. package/node_modules/zod/v4/locales/kh.d.ts +0 -5
  1626. package/node_modules/zod/v4/locales/kh.js +0 -5
  1627. package/node_modules/zod/v4/locales/km.cjs +0 -137
  1628. package/node_modules/zod/v4/locales/km.d.cts +0 -5
  1629. package/node_modules/zod/v4/locales/km.d.ts +0 -4
  1630. package/node_modules/zod/v4/locales/km.js +0 -110
  1631. package/node_modules/zod/v4/locales/ko.cjs +0 -138
  1632. package/node_modules/zod/v4/locales/ko.d.cts +0 -5
  1633. package/node_modules/zod/v4/locales/ko.d.ts +0 -4
  1634. package/node_modules/zod/v4/locales/ko.js +0 -111
  1635. package/node_modules/zod/v4/locales/lt.cjs +0 -230
  1636. package/node_modules/zod/v4/locales/lt.d.cts +0 -5
  1637. package/node_modules/zod/v4/locales/lt.d.ts +0 -4
  1638. package/node_modules/zod/v4/locales/lt.js +0 -203
  1639. package/node_modules/zod/v4/locales/mk.cjs +0 -136
  1640. package/node_modules/zod/v4/locales/mk.d.cts +0 -5
  1641. package/node_modules/zod/v4/locales/mk.d.ts +0 -4
  1642. package/node_modules/zod/v4/locales/mk.js +0 -109
  1643. package/node_modules/zod/v4/locales/ms.cjs +0 -134
  1644. package/node_modules/zod/v4/locales/ms.d.cts +0 -5
  1645. package/node_modules/zod/v4/locales/ms.d.ts +0 -4
  1646. package/node_modules/zod/v4/locales/ms.js +0 -107
  1647. package/node_modules/zod/v4/locales/nl.cjs +0 -137
  1648. package/node_modules/zod/v4/locales/nl.d.cts +0 -5
  1649. package/node_modules/zod/v4/locales/nl.d.ts +0 -4
  1650. package/node_modules/zod/v4/locales/nl.js +0 -110
  1651. package/node_modules/zod/v4/locales/no.cjs +0 -135
  1652. package/node_modules/zod/v4/locales/no.d.cts +0 -5
  1653. package/node_modules/zod/v4/locales/no.d.ts +0 -4
  1654. package/node_modules/zod/v4/locales/no.js +0 -108
  1655. package/node_modules/zod/v4/locales/ota.cjs +0 -136
  1656. package/node_modules/zod/v4/locales/ota.d.cts +0 -5
  1657. package/node_modules/zod/v4/locales/ota.d.ts +0 -4
  1658. package/node_modules/zod/v4/locales/ota.js +0 -109
  1659. package/node_modules/zod/v4/locales/package.json +0 -7
  1660. package/node_modules/zod/v4/locales/pl.cjs +0 -136
  1661. package/node_modules/zod/v4/locales/pl.d.cts +0 -5
  1662. package/node_modules/zod/v4/locales/pl.d.ts +0 -4
  1663. package/node_modules/zod/v4/locales/pl.js +0 -109
  1664. package/node_modules/zod/v4/locales/ps.cjs +0 -141
  1665. package/node_modules/zod/v4/locales/ps.d.cts +0 -5
  1666. package/node_modules/zod/v4/locales/ps.d.ts +0 -4
  1667. package/node_modules/zod/v4/locales/ps.js +0 -114
  1668. package/node_modules/zod/v4/locales/pt.cjs +0 -135
  1669. package/node_modules/zod/v4/locales/pt.d.cts +0 -5
  1670. package/node_modules/zod/v4/locales/pt.d.ts +0 -4
  1671. package/node_modules/zod/v4/locales/pt.js +0 -108
  1672. package/node_modules/zod/v4/locales/ro.cjs +0 -146
  1673. package/node_modules/zod/v4/locales/ro.d.cts +0 -5
  1674. package/node_modules/zod/v4/locales/ro.d.ts +0 -4
  1675. package/node_modules/zod/v4/locales/ro.js +0 -119
  1676. package/node_modules/zod/v4/locales/ru.cjs +0 -183
  1677. package/node_modules/zod/v4/locales/ru.d.cts +0 -5
  1678. package/node_modules/zod/v4/locales/ru.d.ts +0 -4
  1679. package/node_modules/zod/v4/locales/ru.js +0 -156
  1680. package/node_modules/zod/v4/locales/sl.cjs +0 -136
  1681. package/node_modules/zod/v4/locales/sl.d.cts +0 -5
  1682. package/node_modules/zod/v4/locales/sl.d.ts +0 -4
  1683. package/node_modules/zod/v4/locales/sl.js +0 -109
  1684. package/node_modules/zod/v4/locales/sv.cjs +0 -137
  1685. package/node_modules/zod/v4/locales/sv.d.cts +0 -5
  1686. package/node_modules/zod/v4/locales/sv.d.ts +0 -4
  1687. package/node_modules/zod/v4/locales/sv.js +0 -110
  1688. package/node_modules/zod/v4/locales/ta.cjs +0 -137
  1689. package/node_modules/zod/v4/locales/ta.d.cts +0 -5
  1690. package/node_modules/zod/v4/locales/ta.d.ts +0 -4
  1691. package/node_modules/zod/v4/locales/ta.js +0 -110
  1692. package/node_modules/zod/v4/locales/th.cjs +0 -137
  1693. package/node_modules/zod/v4/locales/th.d.cts +0 -5
  1694. package/node_modules/zod/v4/locales/th.d.ts +0 -4
  1695. package/node_modules/zod/v4/locales/th.js +0 -110
  1696. package/node_modules/zod/v4/locales/tr.cjs +0 -132
  1697. package/node_modules/zod/v4/locales/tr.d.cts +0 -5
  1698. package/node_modules/zod/v4/locales/tr.d.ts +0 -4
  1699. package/node_modules/zod/v4/locales/tr.js +0 -105
  1700. package/node_modules/zod/v4/locales/ua.cjs +0 -12
  1701. package/node_modules/zod/v4/locales/ua.d.cts +0 -5
  1702. package/node_modules/zod/v4/locales/ua.d.ts +0 -5
  1703. package/node_modules/zod/v4/locales/ua.js +0 -5
  1704. package/node_modules/zod/v4/locales/uk.cjs +0 -135
  1705. package/node_modules/zod/v4/locales/uk.d.cts +0 -5
  1706. package/node_modules/zod/v4/locales/uk.d.ts +0 -4
  1707. package/node_modules/zod/v4/locales/uk.js +0 -108
  1708. package/node_modules/zod/v4/locales/ur.cjs +0 -137
  1709. package/node_modules/zod/v4/locales/ur.d.cts +0 -5
  1710. package/node_modules/zod/v4/locales/ur.d.ts +0 -4
  1711. package/node_modules/zod/v4/locales/ur.js +0 -110
  1712. package/node_modules/zod/v4/locales/uz.cjs +0 -137
  1713. package/node_modules/zod/v4/locales/uz.d.cts +0 -5
  1714. package/node_modules/zod/v4/locales/uz.d.ts +0 -4
  1715. package/node_modules/zod/v4/locales/uz.js +0 -110
  1716. package/node_modules/zod/v4/locales/vi.cjs +0 -135
  1717. package/node_modules/zod/v4/locales/vi.d.cts +0 -5
  1718. package/node_modules/zod/v4/locales/vi.d.ts +0 -4
  1719. package/node_modules/zod/v4/locales/vi.js +0 -108
  1720. package/node_modules/zod/v4/locales/yo.cjs +0 -134
  1721. package/node_modules/zod/v4/locales/yo.d.cts +0 -5
  1722. package/node_modules/zod/v4/locales/yo.d.ts +0 -4
  1723. package/node_modules/zod/v4/locales/yo.js +0 -107
  1724. package/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
  1725. package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
  1726. package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  1727. package/node_modules/zod/v4/locales/zh-CN.js +0 -109
  1728. package/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
  1729. package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
  1730. package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  1731. package/node_modules/zod/v4/locales/zh-TW.js +0 -107
  1732. package/node_modules/zod/v4/mini/checks.cjs +0 -34
  1733. package/node_modules/zod/v4/mini/checks.d.cts +0 -1
  1734. package/node_modules/zod/v4/mini/checks.d.ts +0 -1
  1735. package/node_modules/zod/v4/mini/checks.js +0 -1
  1736. package/node_modules/zod/v4/mini/coerce.cjs +0 -52
  1737. package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  1738. package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  1739. package/node_modules/zod/v4/mini/coerce.js +0 -22
  1740. package/node_modules/zod/v4/mini/external.cjs +0 -63
  1741. package/node_modules/zod/v4/mini/external.d.cts +0 -13
  1742. package/node_modules/zod/v4/mini/external.d.ts +0 -13
  1743. package/node_modules/zod/v4/mini/external.js +0 -14
  1744. package/node_modules/zod/v4/mini/index.cjs +0 -32
  1745. package/node_modules/zod/v4/mini/index.d.cts +0 -3
  1746. package/node_modules/zod/v4/mini/index.d.ts +0 -3
  1747. package/node_modules/zod/v4/mini/index.js +0 -3
  1748. package/node_modules/zod/v4/mini/iso.cjs +0 -64
  1749. package/node_modules/zod/v4/mini/iso.d.cts +0 -22
  1750. package/node_modules/zod/v4/mini/iso.d.ts +0 -22
  1751. package/node_modules/zod/v4/mini/iso.js +0 -34
  1752. package/node_modules/zod/v4/mini/package.json +0 -7
  1753. package/node_modules/zod/v4/mini/parse.cjs +0 -16
  1754. package/node_modules/zod/v4/mini/parse.d.cts +0 -1
  1755. package/node_modules/zod/v4/mini/parse.d.ts +0 -1
  1756. package/node_modules/zod/v4/mini/parse.js +0 -1
  1757. package/node_modules/zod/v4/mini/schemas.cjs +0 -1083
  1758. package/node_modules/zod/v4/mini/schemas.d.cts +0 -445
  1759. package/node_modules/zod/v4/mini/schemas.d.ts +0 -445
  1760. package/node_modules/zod/v4/mini/schemas.js +0 -961
  1761. package/node_modules/zod/v4/package.json +0 -7
  1762. package/node_modules/zod/v4-mini/index.cjs +0 -32
  1763. package/node_modules/zod/v4-mini/index.d.cts +0 -3
  1764. package/node_modules/zod/v4-mini/index.d.ts +0 -3
  1765. package/node_modules/zod/v4-mini/index.js +0 -3
  1766. package/node_modules/zod/v4-mini/package.json +0 -7
  1767. package/web/assets/abnfDiagram-VRR7QNED-Brm1vcGG.js +0 -1
  1768. package/web/assets/app-Debw-lUT.js +0 -2
  1769. package/web/assets/app-options-UU_JlJQv.js +0 -25
  1770. package/web/assets/app-view-header-BSOI-wB6.js +0 -1
  1771. package/web/assets/arc-zngHsMKV.js +0 -1
  1772. package/web/assets/architectureDiagram-ZJ3FMSHR-BLklLqRP.js +0 -36
  1773. package/web/assets/ask-tray-B4SPj-fH.js +0 -14
  1774. package/web/assets/blockDiagram-677ZJIJ3-yhC2fEtu.js +0 -132
  1775. package/web/assets/button-CuuAtS1I.js +0 -1
  1776. package/web/assets/c4Diagram-LMCZKHZV-DMcweQme.js +0 -10
  1777. package/web/assets/channel-BgYLn5Cm.js +0 -1
  1778. package/web/assets/chunk-2Q5K7J3B-DD-S6n8h.js +0 -1
  1779. package/web/assets/chunk-32BRIVSS-DFIAKRv_.js +0 -1
  1780. package/web/assets/chunk-5VM5RSS4-B23APb3c.js +0 -15
  1781. package/web/assets/chunk-EX3LRPZG-BSVEB7db.js +0 -231
  1782. package/web/assets/chunk-JWPE2WC7-B6qGd0ng.js +0 -1
  1783. package/web/assets/chunk-MOJQB5TN-N4T1-ew1.js +0 -88
  1784. package/web/assets/chunk-RYQCIY6F-6oc6i_Xw.js +0 -1
  1785. package/web/assets/chunk-V7JOEXUC-Dftgm9ck.js +0 -206
  1786. package/web/assets/chunk-VR4S4FIN-DfjqwEsO.js +0 -1
  1787. package/web/assets/chunk-XXDRQBXY-CsFsQYow.js +0 -1
  1788. package/web/assets/classDiagram-OUVF2IWQ-Fzhmfbkt.js +0 -1
  1789. package/web/assets/classDiagram-v2-EOCWNBFH-Fzhmfbkt.js +0 -1
  1790. package/web/assets/client-C1WdY7jQ.js +0 -22
  1791. package/web/assets/client-D__L4Hl0.js +0 -17
  1792. package/web/assets/client-DoMhF9Tv.js +0 -5
  1793. package/web/assets/command-D_9V8ejS.js +0 -38
  1794. package/web/assets/copy-context-CevDWX59.js +0 -1
  1795. package/web/assets/cose-bilkent-JH36ORCC-DzKsIuDb.js +0 -1
  1796. package/web/assets/cynefin-VYW2F7L2-AL45ZHbw.js +0 -166
  1797. package/web/assets/cynefinDiagram-TSTJHNR4-DSbBegxZ.js +0 -62
  1798. package/web/assets/dagre-VKFMJZFB-BaG6MGUE.js +0 -4
  1799. package/web/assets/diagram-FQU43EPY-WbDotTX5.js +0 -3
  1800. package/web/assets/diagram-G47NLZAW-DMbouYVI.js +0 -24
  1801. package/web/assets/diagram-NH7WQ7WH-DoEuaWd_.js +0 -24
  1802. package/web/assets/diagram-OA4YK3LP-BjGd-PoH.js +0 -30
  1803. package/web/assets/diagram-WEI45ONY-CXHi27jF.js +0 -41
  1804. package/web/assets/document-CVJCfWiQ.js +0 -23
  1805. package/web/assets/ebnfDiagram-CCIWWBDH-B5vMUDOs.js +0 -1
  1806. package/web/assets/entities-BTKzWJ-r.js +0 -22
  1807. package/web/assets/erDiagram-Q63AITRT-DhO7ayzF.js +0 -85
  1808. package/web/assets/file-viewer-D1HK9J3A.js +0 -1
  1809. package/web/assets/flowDiagram-23GEKE2U-CublTUlC.js +0 -156
  1810. package/web/assets/folder-filter-bar-BHz7s9Vb.js +0 -4
  1811. package/web/assets/folder-image-L_AjkRfI.js +0 -1
  1812. package/web/assets/folder-landing-Byh8W67L.js +0 -54
  1813. package/web/assets/folder-list-jMyo-7pV.js +0 -1
  1814. package/web/assets/folder-metadata-bCocvxpP.js +0 -2
  1815. package/web/assets/folder-mobile-bar-DvvyOS-a.js +0 -1
  1816. package/web/assets/folder-plugin-view-sib0Dwfw.js +0 -3
  1817. package/web/assets/ganttDiagram-NO4QXBWP-BLMJWerM.js +0 -292
  1818. package/web/assets/gitGraphDiagram-IHSO6WYX-Br0E6qyZ.js +0 -106
  1819. package/web/assets/index-4Xh9UKim.js +0 -1
  1820. package/web/assets/index-BVyeNcuc.js +0 -41
  1821. package/web/assets/index-Bu75S2qS.js +0 -1
  1822. package/web/assets/index-CPcMcCUY.js +0 -2
  1823. package/web/assets/index-CXxkvzNJ.css +0 -1
  1824. package/web/assets/index-Cg-gtBkw.js +0 -1
  1825. package/web/assets/index-DbVDdnzL.js +0 -1
  1826. package/web/assets/infoDiagram-FWYZ7A6U-Dgz0npJO.js +0 -2
  1827. package/web/assets/ishikawaDiagram-FXEZZL3T-rY5pdS3b.js +0 -70
  1828. package/web/assets/journeyDiagram-5HDEW3XC-CKZALyR6.js +0 -139
  1829. package/web/assets/kanban-definition-HUTT4EX6-EGPY9Vda.js +0 -89
  1830. package/web/assets/linear-DkJW9OwI.js +0 -1
  1831. package/web/assets/linked-session-header-BkEweU0Z.js +0 -3
  1832. package/web/assets/markdown-Bw9RgUGR.js +0 -327
  1833. package/web/assets/mermaid.core-DVEpXYiF.js +0 -308
  1834. package/web/assets/metadata-Bu_ffLUd.js +0 -1
  1835. package/web/assets/mindmap-definition-LN4V7U3C-BEOUVnDN.js +0 -96
  1836. package/web/assets/pegDiagram-2B236MQR-DThjl3eK.js +0 -1
  1837. package/web/assets/pieDiagram-ENE6RG2P-DzmoGgw2.js +0 -39
  1838. package/web/assets/popover-3AMcPJpt.js +0 -9
  1839. package/web/assets/project-search-dialog-e2Jmhvfq.js +0 -43
  1840. package/web/assets/quadrantDiagram-ABIIQ3AL-BqT8U3FS.js +0 -7
  1841. package/web/assets/railroadDiagram-RFXS5EU6-1k1tfPk1.js +0 -1
  1842. package/web/assets/react-B9jn2M18.js +0 -9
  1843. package/web/assets/requirementDiagram-TGXJPOKE-bM4RTd2J.js +0 -84
  1844. package/web/assets/sankeyDiagram-HTMAVEWB-TCgfqDLy.js +0 -40
  1845. package/web/assets/search-BOHZTLC-.css +0 -1
  1846. package/web/assets/search-DQiFH2up.js +0 -2
  1847. package/web/assets/select-CkOwL81C.js +0 -30
  1848. package/web/assets/selection-popup-bqfgVd-L.js +0 -7
  1849. package/web/assets/sequenceDiagram-DBY2YBRQ-BRhGHI0i.js +0 -162
  1850. package/web/assets/sizeCapture-X5ZJPWSS-EeUWgn0N.js +0 -1
  1851. package/web/assets/stateDiagram-2N3HPSRC-BSOG758d.js +0 -1
  1852. package/web/assets/stateDiagram-v2-6OUMAXLB-DUeGDz1r.js +0 -1
  1853. package/web/assets/swimlanes-5IMT3BWC-DpCo4aEm.js +0 -2
  1854. package/web/assets/swimlanesDiagram-G3AALYLV-BGOaCfyV.js +0 -8
  1855. package/web/assets/tanstack-YzX_Mi37.js +0 -3
  1856. package/web/assets/timeline-definition-FHXFAJF6-BpaObe6u.js +0 -120
  1857. package/web/assets/use-folder-filter-hA6fa7nm.js +0 -1
  1858. package/web/assets/utils-Cg80pk1W.js +0 -1
  1859. package/web/assets/vennDiagram-L72KCM5P-ClvUzW8B.js +0 -34
  1860. package/web/assets/view-context-CVvDw2JM.js +0 -229
  1861. package/web/assets/viewer-capabilities-CFBwvpcI.js +0 -1
  1862. package/web/assets/wardleyDiagram-EHGQE667-Dg1CX0Fl.js +0 -78
  1863. package/web/assets/xychartDiagram-FW5EYKEG-C0c9zQTr.js +0 -7
@@ -1,3695 +0,0 @@
1
- import { ZodError, ZodIssueCode, } from "./ZodError.js";
2
- import { defaultErrorMap, getErrorMap } from "./errors.js";
3
- import { errorUtil } from "./helpers/errorUtil.js";
4
- import { DIRTY, INVALID, OK, ParseStatus, addIssueToContext, isAborted, isAsync, isDirty, isValid, makeIssue, } from "./helpers/parseUtil.js";
5
- import { util, ZodParsedType, getParsedType } from "./helpers/util.js";
6
- class ParseInputLazyPath {
7
- constructor(parent, value, path, key) {
8
- this._cachedPath = [];
9
- this.parent = parent;
10
- this.data = value;
11
- this._path = path;
12
- this._key = key;
13
- }
14
- get path() {
15
- if (!this._cachedPath.length) {
16
- if (Array.isArray(this._key)) {
17
- this._cachedPath.push(...this._path, ...this._key);
18
- }
19
- else {
20
- this._cachedPath.push(...this._path, this._key);
21
- }
22
- }
23
- return this._cachedPath;
24
- }
25
- }
26
- const handleResult = (ctx, result) => {
27
- if (isValid(result)) {
28
- return { success: true, data: result.value };
29
- }
30
- else {
31
- if (!ctx.common.issues.length) {
32
- throw new Error("Validation failed but no issues detected.");
33
- }
34
- return {
35
- success: false,
36
- get error() {
37
- if (this._error)
38
- return this._error;
39
- const error = new ZodError(ctx.common.issues);
40
- this._error = error;
41
- return this._error;
42
- },
43
- };
44
- }
45
- };
46
- function processCreateParams(params) {
47
- if (!params)
48
- return {};
49
- const { errorMap, invalid_type_error, required_error, description } = params;
50
- if (errorMap && (invalid_type_error || required_error)) {
51
- throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
52
- }
53
- if (errorMap)
54
- return { errorMap: errorMap, description };
55
- const customMap = (iss, ctx) => {
56
- const { message } = params;
57
- if (iss.code === "invalid_enum_value") {
58
- return { message: message ?? ctx.defaultError };
59
- }
60
- if (typeof ctx.data === "undefined") {
61
- return { message: message ?? required_error ?? ctx.defaultError };
62
- }
63
- if (iss.code !== "invalid_type")
64
- return { message: ctx.defaultError };
65
- return { message: message ?? invalid_type_error ?? ctx.defaultError };
66
- };
67
- return { errorMap: customMap, description };
68
- }
69
- export class ZodType {
70
- get description() {
71
- return this._def.description;
72
- }
73
- _getType(input) {
74
- return getParsedType(input.data);
75
- }
76
- _getOrReturnCtx(input, ctx) {
77
- return (ctx || {
78
- common: input.parent.common,
79
- data: input.data,
80
- parsedType: getParsedType(input.data),
81
- schemaErrorMap: this._def.errorMap,
82
- path: input.path,
83
- parent: input.parent,
84
- });
85
- }
86
- _processInputParams(input) {
87
- return {
88
- status: new ParseStatus(),
89
- ctx: {
90
- common: input.parent.common,
91
- data: input.data,
92
- parsedType: getParsedType(input.data),
93
- schemaErrorMap: this._def.errorMap,
94
- path: input.path,
95
- parent: input.parent,
96
- },
97
- };
98
- }
99
- _parseSync(input) {
100
- const result = this._parse(input);
101
- if (isAsync(result)) {
102
- throw new Error("Synchronous parse encountered promise.");
103
- }
104
- return result;
105
- }
106
- _parseAsync(input) {
107
- const result = this._parse(input);
108
- return Promise.resolve(result);
109
- }
110
- parse(data, params) {
111
- const result = this.safeParse(data, params);
112
- if (result.success)
113
- return result.data;
114
- throw result.error;
115
- }
116
- safeParse(data, params) {
117
- const ctx = {
118
- common: {
119
- issues: [],
120
- async: params?.async ?? false,
121
- contextualErrorMap: params?.errorMap,
122
- },
123
- path: params?.path || [],
124
- schemaErrorMap: this._def.errorMap,
125
- parent: null,
126
- data,
127
- parsedType: getParsedType(data),
128
- };
129
- const result = this._parseSync({ data, path: ctx.path, parent: ctx });
130
- return handleResult(ctx, result);
131
- }
132
- "~validate"(data) {
133
- const ctx = {
134
- common: {
135
- issues: [],
136
- async: !!this["~standard"].async,
137
- },
138
- path: [],
139
- schemaErrorMap: this._def.errorMap,
140
- parent: null,
141
- data,
142
- parsedType: getParsedType(data),
143
- };
144
- if (!this["~standard"].async) {
145
- try {
146
- const result = this._parseSync({ data, path: [], parent: ctx });
147
- return isValid(result)
148
- ? {
149
- value: result.value,
150
- }
151
- : {
152
- issues: ctx.common.issues,
153
- };
154
- }
155
- catch (err) {
156
- if (err?.message?.toLowerCase()?.includes("encountered")) {
157
- this["~standard"].async = true;
158
- }
159
- ctx.common = {
160
- issues: [],
161
- async: true,
162
- };
163
- }
164
- }
165
- return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result)
166
- ? {
167
- value: result.value,
168
- }
169
- : {
170
- issues: ctx.common.issues,
171
- });
172
- }
173
- async parseAsync(data, params) {
174
- const result = await this.safeParseAsync(data, params);
175
- if (result.success)
176
- return result.data;
177
- throw result.error;
178
- }
179
- async safeParseAsync(data, params) {
180
- const ctx = {
181
- common: {
182
- issues: [],
183
- contextualErrorMap: params?.errorMap,
184
- async: true,
185
- },
186
- path: params?.path || [],
187
- schemaErrorMap: this._def.errorMap,
188
- parent: null,
189
- data,
190
- parsedType: getParsedType(data),
191
- };
192
- const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });
193
- const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));
194
- return handleResult(ctx, result);
195
- }
196
- refine(check, message) {
197
- const getIssueProperties = (val) => {
198
- if (typeof message === "string" || typeof message === "undefined") {
199
- return { message };
200
- }
201
- else if (typeof message === "function") {
202
- return message(val);
203
- }
204
- else {
205
- return message;
206
- }
207
- };
208
- return this._refinement((val, ctx) => {
209
- const result = check(val);
210
- const setError = () => ctx.addIssue({
211
- code: ZodIssueCode.custom,
212
- ...getIssueProperties(val),
213
- });
214
- if (typeof Promise !== "undefined" && result instanceof Promise) {
215
- return result.then((data) => {
216
- if (!data) {
217
- setError();
218
- return false;
219
- }
220
- else {
221
- return true;
222
- }
223
- });
224
- }
225
- if (!result) {
226
- setError();
227
- return false;
228
- }
229
- else {
230
- return true;
231
- }
232
- });
233
- }
234
- refinement(check, refinementData) {
235
- return this._refinement((val, ctx) => {
236
- if (!check(val)) {
237
- ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData);
238
- return false;
239
- }
240
- else {
241
- return true;
242
- }
243
- });
244
- }
245
- _refinement(refinement) {
246
- return new ZodEffects({
247
- schema: this,
248
- typeName: ZodFirstPartyTypeKind.ZodEffects,
249
- effect: { type: "refinement", refinement },
250
- });
251
- }
252
- superRefine(refinement) {
253
- return this._refinement(refinement);
254
- }
255
- constructor(def) {
256
- /** Alias of safeParseAsync */
257
- this.spa = this.safeParseAsync;
258
- this._def = def;
259
- this.parse = this.parse.bind(this);
260
- this.safeParse = this.safeParse.bind(this);
261
- this.parseAsync = this.parseAsync.bind(this);
262
- this.safeParseAsync = this.safeParseAsync.bind(this);
263
- this.spa = this.spa.bind(this);
264
- this.refine = this.refine.bind(this);
265
- this.refinement = this.refinement.bind(this);
266
- this.superRefine = this.superRefine.bind(this);
267
- this.optional = this.optional.bind(this);
268
- this.nullable = this.nullable.bind(this);
269
- this.nullish = this.nullish.bind(this);
270
- this.array = this.array.bind(this);
271
- this.promise = this.promise.bind(this);
272
- this.or = this.or.bind(this);
273
- this.and = this.and.bind(this);
274
- this.transform = this.transform.bind(this);
275
- this.brand = this.brand.bind(this);
276
- this.default = this.default.bind(this);
277
- this.catch = this.catch.bind(this);
278
- this.describe = this.describe.bind(this);
279
- this.pipe = this.pipe.bind(this);
280
- this.readonly = this.readonly.bind(this);
281
- this.isNullable = this.isNullable.bind(this);
282
- this.isOptional = this.isOptional.bind(this);
283
- this["~standard"] = {
284
- version: 1,
285
- vendor: "zod",
286
- validate: (data) => this["~validate"](data),
287
- };
288
- }
289
- optional() {
290
- return ZodOptional.create(this, this._def);
291
- }
292
- nullable() {
293
- return ZodNullable.create(this, this._def);
294
- }
295
- nullish() {
296
- return this.nullable().optional();
297
- }
298
- array() {
299
- return ZodArray.create(this);
300
- }
301
- promise() {
302
- return ZodPromise.create(this, this._def);
303
- }
304
- or(option) {
305
- return ZodUnion.create([this, option], this._def);
306
- }
307
- and(incoming) {
308
- return ZodIntersection.create(this, incoming, this._def);
309
- }
310
- transform(transform) {
311
- return new ZodEffects({
312
- ...processCreateParams(this._def),
313
- schema: this,
314
- typeName: ZodFirstPartyTypeKind.ZodEffects,
315
- effect: { type: "transform", transform },
316
- });
317
- }
318
- default(def) {
319
- const defaultValueFunc = typeof def === "function" ? def : () => def;
320
- return new ZodDefault({
321
- ...processCreateParams(this._def),
322
- innerType: this,
323
- defaultValue: defaultValueFunc,
324
- typeName: ZodFirstPartyTypeKind.ZodDefault,
325
- });
326
- }
327
- brand() {
328
- return new ZodBranded({
329
- typeName: ZodFirstPartyTypeKind.ZodBranded,
330
- type: this,
331
- ...processCreateParams(this._def),
332
- });
333
- }
334
- catch(def) {
335
- const catchValueFunc = typeof def === "function" ? def : () => def;
336
- return new ZodCatch({
337
- ...processCreateParams(this._def),
338
- innerType: this,
339
- catchValue: catchValueFunc,
340
- typeName: ZodFirstPartyTypeKind.ZodCatch,
341
- });
342
- }
343
- describe(description) {
344
- const This = this.constructor;
345
- return new This({
346
- ...this._def,
347
- description,
348
- });
349
- }
350
- pipe(target) {
351
- return ZodPipeline.create(this, target);
352
- }
353
- readonly() {
354
- return ZodReadonly.create(this);
355
- }
356
- isOptional() {
357
- return this.safeParse(undefined).success;
358
- }
359
- isNullable() {
360
- return this.safeParse(null).success;
361
- }
362
- }
363
- const cuidRegex = /^c[^\s-]{8,}$/i;
364
- const cuid2Regex = /^[0-9a-z]+$/;
365
- const ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
366
- // const uuidRegex =
367
- // /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;
368
- const uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;
369
- const nanoidRegex = /^[a-z0-9_-]{21}$/i;
370
- const jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
371
- const durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
372
- // from https://stackoverflow.com/a/46181/1550155
373
- // old version: too slow, didn't support unicode
374
- // const emailRegex = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;
375
- //old email regex
376
- // const emailRegex = /^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@((?!-)([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{1,})[^-<>()[\].,;:\s@"]$/i;
377
- // eslint-disable-next-line
378
- // const emailRegex =
379
- // /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/;
380
- // const emailRegex =
381
- // /^[a-zA-Z0-9\.\!\#\$\%\&\'\*\+\/\=\?\^\_\`\{\|\}\~\-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
382
- // const emailRegex =
383
- // /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
384
- const emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
385
- // const emailRegex =
386
- // /^[a-z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\.[a-z0-9\-]+)*$/i;
387
- // from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression
388
- const _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
389
- let emojiRegex;
390
- // faster, simpler, safer
391
- const ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
392
- const ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;
393
- // const ipv6Regex =
394
- // /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;
395
- const ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;
396
- const ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
397
- // https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript
398
- const base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
399
- // https://base64.guru/standards/base64url
400
- const base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;
401
- // simple
402
- // const dateRegexSource = `\\d{4}-\\d{2}-\\d{2}`;
403
- // no leap year validation
404
- // const dateRegexSource = `\\d{4}-((0[13578]|10|12)-31|(0[13-9]|1[0-2])-30|(0[1-9]|1[0-2])-(0[1-9]|1\\d|2\\d))`;
405
- // with leap year validation
406
- const dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
407
- const dateRegex = new RegExp(`^${dateRegexSource}$`);
408
- function timeRegexSource(args) {
409
- let secondsRegexSource = `[0-5]\\d`;
410
- if (args.precision) {
411
- secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
412
- }
413
- else if (args.precision == null) {
414
- secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
415
- }
416
- const secondsQuantifier = args.precision ? "+" : "?"; // require seconds if precision is nonzero
417
- return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
418
- }
419
- function timeRegex(args) {
420
- return new RegExp(`^${timeRegexSource(args)}$`);
421
- }
422
- // Adapted from https://stackoverflow.com/a/3143231
423
- export function datetimeRegex(args) {
424
- let regex = `${dateRegexSource}T${timeRegexSource(args)}`;
425
- const opts = [];
426
- opts.push(args.local ? `Z?` : `Z`);
427
- if (args.offset)
428
- opts.push(`([+-]\\d{2}:?\\d{2})`);
429
- regex = `${regex}(${opts.join("|")})`;
430
- return new RegExp(`^${regex}$`);
431
- }
432
- function isValidIP(ip, version) {
433
- if ((version === "v4" || !version) && ipv4Regex.test(ip)) {
434
- return true;
435
- }
436
- if ((version === "v6" || !version) && ipv6Regex.test(ip)) {
437
- return true;
438
- }
439
- return false;
440
- }
441
- function isValidJWT(jwt, alg) {
442
- if (!jwtRegex.test(jwt))
443
- return false;
444
- try {
445
- const [header] = jwt.split(".");
446
- if (!header)
447
- return false;
448
- // Convert base64url to base64
449
- const base64 = header
450
- .replace(/-/g, "+")
451
- .replace(/_/g, "/")
452
- .padEnd(header.length + ((4 - (header.length % 4)) % 4), "=");
453
- // @ts-ignore
454
- const decoded = JSON.parse(atob(base64));
455
- if (typeof decoded !== "object" || decoded === null)
456
- return false;
457
- if ("typ" in decoded && decoded?.typ !== "JWT")
458
- return false;
459
- if (!decoded.alg)
460
- return false;
461
- if (alg && decoded.alg !== alg)
462
- return false;
463
- return true;
464
- }
465
- catch {
466
- return false;
467
- }
468
- }
469
- function isValidCidr(ip, version) {
470
- if ((version === "v4" || !version) && ipv4CidrRegex.test(ip)) {
471
- return true;
472
- }
473
- if ((version === "v6" || !version) && ipv6CidrRegex.test(ip)) {
474
- return true;
475
- }
476
- return false;
477
- }
478
- export class ZodString extends ZodType {
479
- _parse(input) {
480
- if (this._def.coerce) {
481
- input.data = String(input.data);
482
- }
483
- const parsedType = this._getType(input);
484
- if (parsedType !== ZodParsedType.string) {
485
- const ctx = this._getOrReturnCtx(input);
486
- addIssueToContext(ctx, {
487
- code: ZodIssueCode.invalid_type,
488
- expected: ZodParsedType.string,
489
- received: ctx.parsedType,
490
- });
491
- return INVALID;
492
- }
493
- const status = new ParseStatus();
494
- let ctx = undefined;
495
- for (const check of this._def.checks) {
496
- if (check.kind === "min") {
497
- if (input.data.length < check.value) {
498
- ctx = this._getOrReturnCtx(input, ctx);
499
- addIssueToContext(ctx, {
500
- code: ZodIssueCode.too_small,
501
- minimum: check.value,
502
- type: "string",
503
- inclusive: true,
504
- exact: false,
505
- message: check.message,
506
- });
507
- status.dirty();
508
- }
509
- }
510
- else if (check.kind === "max") {
511
- if (input.data.length > check.value) {
512
- ctx = this._getOrReturnCtx(input, ctx);
513
- addIssueToContext(ctx, {
514
- code: ZodIssueCode.too_big,
515
- maximum: check.value,
516
- type: "string",
517
- inclusive: true,
518
- exact: false,
519
- message: check.message,
520
- });
521
- status.dirty();
522
- }
523
- }
524
- else if (check.kind === "length") {
525
- const tooBig = input.data.length > check.value;
526
- const tooSmall = input.data.length < check.value;
527
- if (tooBig || tooSmall) {
528
- ctx = this._getOrReturnCtx(input, ctx);
529
- if (tooBig) {
530
- addIssueToContext(ctx, {
531
- code: ZodIssueCode.too_big,
532
- maximum: check.value,
533
- type: "string",
534
- inclusive: true,
535
- exact: true,
536
- message: check.message,
537
- });
538
- }
539
- else if (tooSmall) {
540
- addIssueToContext(ctx, {
541
- code: ZodIssueCode.too_small,
542
- minimum: check.value,
543
- type: "string",
544
- inclusive: true,
545
- exact: true,
546
- message: check.message,
547
- });
548
- }
549
- status.dirty();
550
- }
551
- }
552
- else if (check.kind === "email") {
553
- if (!emailRegex.test(input.data)) {
554
- ctx = this._getOrReturnCtx(input, ctx);
555
- addIssueToContext(ctx, {
556
- validation: "email",
557
- code: ZodIssueCode.invalid_string,
558
- message: check.message,
559
- });
560
- status.dirty();
561
- }
562
- }
563
- else if (check.kind === "emoji") {
564
- if (!emojiRegex) {
565
- emojiRegex = new RegExp(_emojiRegex, "u");
566
- }
567
- if (!emojiRegex.test(input.data)) {
568
- ctx = this._getOrReturnCtx(input, ctx);
569
- addIssueToContext(ctx, {
570
- validation: "emoji",
571
- code: ZodIssueCode.invalid_string,
572
- message: check.message,
573
- });
574
- status.dirty();
575
- }
576
- }
577
- else if (check.kind === "uuid") {
578
- if (!uuidRegex.test(input.data)) {
579
- ctx = this._getOrReturnCtx(input, ctx);
580
- addIssueToContext(ctx, {
581
- validation: "uuid",
582
- code: ZodIssueCode.invalid_string,
583
- message: check.message,
584
- });
585
- status.dirty();
586
- }
587
- }
588
- else if (check.kind === "nanoid") {
589
- if (!nanoidRegex.test(input.data)) {
590
- ctx = this._getOrReturnCtx(input, ctx);
591
- addIssueToContext(ctx, {
592
- validation: "nanoid",
593
- code: ZodIssueCode.invalid_string,
594
- message: check.message,
595
- });
596
- status.dirty();
597
- }
598
- }
599
- else if (check.kind === "cuid") {
600
- if (!cuidRegex.test(input.data)) {
601
- ctx = this._getOrReturnCtx(input, ctx);
602
- addIssueToContext(ctx, {
603
- validation: "cuid",
604
- code: ZodIssueCode.invalid_string,
605
- message: check.message,
606
- });
607
- status.dirty();
608
- }
609
- }
610
- else if (check.kind === "cuid2") {
611
- if (!cuid2Regex.test(input.data)) {
612
- ctx = this._getOrReturnCtx(input, ctx);
613
- addIssueToContext(ctx, {
614
- validation: "cuid2",
615
- code: ZodIssueCode.invalid_string,
616
- message: check.message,
617
- });
618
- status.dirty();
619
- }
620
- }
621
- else if (check.kind === "ulid") {
622
- if (!ulidRegex.test(input.data)) {
623
- ctx = this._getOrReturnCtx(input, ctx);
624
- addIssueToContext(ctx, {
625
- validation: "ulid",
626
- code: ZodIssueCode.invalid_string,
627
- message: check.message,
628
- });
629
- status.dirty();
630
- }
631
- }
632
- else if (check.kind === "url") {
633
- try {
634
- // @ts-ignore
635
- new URL(input.data);
636
- }
637
- catch {
638
- ctx = this._getOrReturnCtx(input, ctx);
639
- addIssueToContext(ctx, {
640
- validation: "url",
641
- code: ZodIssueCode.invalid_string,
642
- message: check.message,
643
- });
644
- status.dirty();
645
- }
646
- }
647
- else if (check.kind === "regex") {
648
- check.regex.lastIndex = 0;
649
- const testResult = check.regex.test(input.data);
650
- if (!testResult) {
651
- ctx = this._getOrReturnCtx(input, ctx);
652
- addIssueToContext(ctx, {
653
- validation: "regex",
654
- code: ZodIssueCode.invalid_string,
655
- message: check.message,
656
- });
657
- status.dirty();
658
- }
659
- }
660
- else if (check.kind === "trim") {
661
- input.data = input.data.trim();
662
- }
663
- else if (check.kind === "includes") {
664
- if (!input.data.includes(check.value, check.position)) {
665
- ctx = this._getOrReturnCtx(input, ctx);
666
- addIssueToContext(ctx, {
667
- code: ZodIssueCode.invalid_string,
668
- validation: { includes: check.value, position: check.position },
669
- message: check.message,
670
- });
671
- status.dirty();
672
- }
673
- }
674
- else if (check.kind === "toLowerCase") {
675
- input.data = input.data.toLowerCase();
676
- }
677
- else if (check.kind === "toUpperCase") {
678
- input.data = input.data.toUpperCase();
679
- }
680
- else if (check.kind === "startsWith") {
681
- if (!input.data.startsWith(check.value)) {
682
- ctx = this._getOrReturnCtx(input, ctx);
683
- addIssueToContext(ctx, {
684
- code: ZodIssueCode.invalid_string,
685
- validation: { startsWith: check.value },
686
- message: check.message,
687
- });
688
- status.dirty();
689
- }
690
- }
691
- else if (check.kind === "endsWith") {
692
- if (!input.data.endsWith(check.value)) {
693
- ctx = this._getOrReturnCtx(input, ctx);
694
- addIssueToContext(ctx, {
695
- code: ZodIssueCode.invalid_string,
696
- validation: { endsWith: check.value },
697
- message: check.message,
698
- });
699
- status.dirty();
700
- }
701
- }
702
- else if (check.kind === "datetime") {
703
- const regex = datetimeRegex(check);
704
- if (!regex.test(input.data)) {
705
- ctx = this._getOrReturnCtx(input, ctx);
706
- addIssueToContext(ctx, {
707
- code: ZodIssueCode.invalid_string,
708
- validation: "datetime",
709
- message: check.message,
710
- });
711
- status.dirty();
712
- }
713
- }
714
- else if (check.kind === "date") {
715
- const regex = dateRegex;
716
- if (!regex.test(input.data)) {
717
- ctx = this._getOrReturnCtx(input, ctx);
718
- addIssueToContext(ctx, {
719
- code: ZodIssueCode.invalid_string,
720
- validation: "date",
721
- message: check.message,
722
- });
723
- status.dirty();
724
- }
725
- }
726
- else if (check.kind === "time") {
727
- const regex = timeRegex(check);
728
- if (!regex.test(input.data)) {
729
- ctx = this._getOrReturnCtx(input, ctx);
730
- addIssueToContext(ctx, {
731
- code: ZodIssueCode.invalid_string,
732
- validation: "time",
733
- message: check.message,
734
- });
735
- status.dirty();
736
- }
737
- }
738
- else if (check.kind === "duration") {
739
- if (!durationRegex.test(input.data)) {
740
- ctx = this._getOrReturnCtx(input, ctx);
741
- addIssueToContext(ctx, {
742
- validation: "duration",
743
- code: ZodIssueCode.invalid_string,
744
- message: check.message,
745
- });
746
- status.dirty();
747
- }
748
- }
749
- else if (check.kind === "ip") {
750
- if (!isValidIP(input.data, check.version)) {
751
- ctx = this._getOrReturnCtx(input, ctx);
752
- addIssueToContext(ctx, {
753
- validation: "ip",
754
- code: ZodIssueCode.invalid_string,
755
- message: check.message,
756
- });
757
- status.dirty();
758
- }
759
- }
760
- else if (check.kind === "jwt") {
761
- if (!isValidJWT(input.data, check.alg)) {
762
- ctx = this._getOrReturnCtx(input, ctx);
763
- addIssueToContext(ctx, {
764
- validation: "jwt",
765
- code: ZodIssueCode.invalid_string,
766
- message: check.message,
767
- });
768
- status.dirty();
769
- }
770
- }
771
- else if (check.kind === "cidr") {
772
- if (!isValidCidr(input.data, check.version)) {
773
- ctx = this._getOrReturnCtx(input, ctx);
774
- addIssueToContext(ctx, {
775
- validation: "cidr",
776
- code: ZodIssueCode.invalid_string,
777
- message: check.message,
778
- });
779
- status.dirty();
780
- }
781
- }
782
- else if (check.kind === "base64") {
783
- if (!base64Regex.test(input.data)) {
784
- ctx = this._getOrReturnCtx(input, ctx);
785
- addIssueToContext(ctx, {
786
- validation: "base64",
787
- code: ZodIssueCode.invalid_string,
788
- message: check.message,
789
- });
790
- status.dirty();
791
- }
792
- }
793
- else if (check.kind === "base64url") {
794
- if (!base64urlRegex.test(input.data)) {
795
- ctx = this._getOrReturnCtx(input, ctx);
796
- addIssueToContext(ctx, {
797
- validation: "base64url",
798
- code: ZodIssueCode.invalid_string,
799
- message: check.message,
800
- });
801
- status.dirty();
802
- }
803
- }
804
- else {
805
- util.assertNever(check);
806
- }
807
- }
808
- return { status: status.value, value: input.data };
809
- }
810
- _regex(regex, validation, message) {
811
- return this.refinement((data) => regex.test(data), {
812
- validation,
813
- code: ZodIssueCode.invalid_string,
814
- ...errorUtil.errToObj(message),
815
- });
816
- }
817
- _addCheck(check) {
818
- return new ZodString({
819
- ...this._def,
820
- checks: [...this._def.checks, check],
821
- });
822
- }
823
- email(message) {
824
- return this._addCheck({ kind: "email", ...errorUtil.errToObj(message) });
825
- }
826
- url(message) {
827
- return this._addCheck({ kind: "url", ...errorUtil.errToObj(message) });
828
- }
829
- emoji(message) {
830
- return this._addCheck({ kind: "emoji", ...errorUtil.errToObj(message) });
831
- }
832
- uuid(message) {
833
- return this._addCheck({ kind: "uuid", ...errorUtil.errToObj(message) });
834
- }
835
- nanoid(message) {
836
- return this._addCheck({ kind: "nanoid", ...errorUtil.errToObj(message) });
837
- }
838
- cuid(message) {
839
- return this._addCheck({ kind: "cuid", ...errorUtil.errToObj(message) });
840
- }
841
- cuid2(message) {
842
- return this._addCheck({ kind: "cuid2", ...errorUtil.errToObj(message) });
843
- }
844
- ulid(message) {
845
- return this._addCheck({ kind: "ulid", ...errorUtil.errToObj(message) });
846
- }
847
- base64(message) {
848
- return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) });
849
- }
850
- base64url(message) {
851
- // base64url encoding is a modification of base64 that can safely be used in URLs and filenames
852
- return this._addCheck({
853
- kind: "base64url",
854
- ...errorUtil.errToObj(message),
855
- });
856
- }
857
- jwt(options) {
858
- return this._addCheck({ kind: "jwt", ...errorUtil.errToObj(options) });
859
- }
860
- ip(options) {
861
- return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
862
- }
863
- cidr(options) {
864
- return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
865
- }
866
- datetime(options) {
867
- if (typeof options === "string") {
868
- return this._addCheck({
869
- kind: "datetime",
870
- precision: null,
871
- offset: false,
872
- local: false,
873
- message: options,
874
- });
875
- }
876
- return this._addCheck({
877
- kind: "datetime",
878
- precision: typeof options?.precision === "undefined" ? null : options?.precision,
879
- offset: options?.offset ?? false,
880
- local: options?.local ?? false,
881
- ...errorUtil.errToObj(options?.message),
882
- });
883
- }
884
- date(message) {
885
- return this._addCheck({ kind: "date", message });
886
- }
887
- time(options) {
888
- if (typeof options === "string") {
889
- return this._addCheck({
890
- kind: "time",
891
- precision: null,
892
- message: options,
893
- });
894
- }
895
- return this._addCheck({
896
- kind: "time",
897
- precision: typeof options?.precision === "undefined" ? null : options?.precision,
898
- ...errorUtil.errToObj(options?.message),
899
- });
900
- }
901
- duration(message) {
902
- return this._addCheck({ kind: "duration", ...errorUtil.errToObj(message) });
903
- }
904
- regex(regex, message) {
905
- return this._addCheck({
906
- kind: "regex",
907
- regex: regex,
908
- ...errorUtil.errToObj(message),
909
- });
910
- }
911
- includes(value, options) {
912
- return this._addCheck({
913
- kind: "includes",
914
- value: value,
915
- position: options?.position,
916
- ...errorUtil.errToObj(options?.message),
917
- });
918
- }
919
- startsWith(value, message) {
920
- return this._addCheck({
921
- kind: "startsWith",
922
- value: value,
923
- ...errorUtil.errToObj(message),
924
- });
925
- }
926
- endsWith(value, message) {
927
- return this._addCheck({
928
- kind: "endsWith",
929
- value: value,
930
- ...errorUtil.errToObj(message),
931
- });
932
- }
933
- min(minLength, message) {
934
- return this._addCheck({
935
- kind: "min",
936
- value: minLength,
937
- ...errorUtil.errToObj(message),
938
- });
939
- }
940
- max(maxLength, message) {
941
- return this._addCheck({
942
- kind: "max",
943
- value: maxLength,
944
- ...errorUtil.errToObj(message),
945
- });
946
- }
947
- length(len, message) {
948
- return this._addCheck({
949
- kind: "length",
950
- value: len,
951
- ...errorUtil.errToObj(message),
952
- });
953
- }
954
- /**
955
- * Equivalent to `.min(1)`
956
- */
957
- nonempty(message) {
958
- return this.min(1, errorUtil.errToObj(message));
959
- }
960
- trim() {
961
- return new ZodString({
962
- ...this._def,
963
- checks: [...this._def.checks, { kind: "trim" }],
964
- });
965
- }
966
- toLowerCase() {
967
- return new ZodString({
968
- ...this._def,
969
- checks: [...this._def.checks, { kind: "toLowerCase" }],
970
- });
971
- }
972
- toUpperCase() {
973
- return new ZodString({
974
- ...this._def,
975
- checks: [...this._def.checks, { kind: "toUpperCase" }],
976
- });
977
- }
978
- get isDatetime() {
979
- return !!this._def.checks.find((ch) => ch.kind === "datetime");
980
- }
981
- get isDate() {
982
- return !!this._def.checks.find((ch) => ch.kind === "date");
983
- }
984
- get isTime() {
985
- return !!this._def.checks.find((ch) => ch.kind === "time");
986
- }
987
- get isDuration() {
988
- return !!this._def.checks.find((ch) => ch.kind === "duration");
989
- }
990
- get isEmail() {
991
- return !!this._def.checks.find((ch) => ch.kind === "email");
992
- }
993
- get isURL() {
994
- return !!this._def.checks.find((ch) => ch.kind === "url");
995
- }
996
- get isEmoji() {
997
- return !!this._def.checks.find((ch) => ch.kind === "emoji");
998
- }
999
- get isUUID() {
1000
- return !!this._def.checks.find((ch) => ch.kind === "uuid");
1001
- }
1002
- get isNANOID() {
1003
- return !!this._def.checks.find((ch) => ch.kind === "nanoid");
1004
- }
1005
- get isCUID() {
1006
- return !!this._def.checks.find((ch) => ch.kind === "cuid");
1007
- }
1008
- get isCUID2() {
1009
- return !!this._def.checks.find((ch) => ch.kind === "cuid2");
1010
- }
1011
- get isULID() {
1012
- return !!this._def.checks.find((ch) => ch.kind === "ulid");
1013
- }
1014
- get isIP() {
1015
- return !!this._def.checks.find((ch) => ch.kind === "ip");
1016
- }
1017
- get isCIDR() {
1018
- return !!this._def.checks.find((ch) => ch.kind === "cidr");
1019
- }
1020
- get isBase64() {
1021
- return !!this._def.checks.find((ch) => ch.kind === "base64");
1022
- }
1023
- get isBase64url() {
1024
- // base64url encoding is a modification of base64 that can safely be used in URLs and filenames
1025
- return !!this._def.checks.find((ch) => ch.kind === "base64url");
1026
- }
1027
- get minLength() {
1028
- let min = null;
1029
- for (const ch of this._def.checks) {
1030
- if (ch.kind === "min") {
1031
- if (min === null || ch.value > min)
1032
- min = ch.value;
1033
- }
1034
- }
1035
- return min;
1036
- }
1037
- get maxLength() {
1038
- let max = null;
1039
- for (const ch of this._def.checks) {
1040
- if (ch.kind === "max") {
1041
- if (max === null || ch.value < max)
1042
- max = ch.value;
1043
- }
1044
- }
1045
- return max;
1046
- }
1047
- }
1048
- ZodString.create = (params) => {
1049
- return new ZodString({
1050
- checks: [],
1051
- typeName: ZodFirstPartyTypeKind.ZodString,
1052
- coerce: params?.coerce ?? false,
1053
- ...processCreateParams(params),
1054
- });
1055
- };
1056
- // https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034
1057
- function floatSafeRemainder(val, step) {
1058
- const valDecCount = (val.toString().split(".")[1] || "").length;
1059
- const stepDecCount = (step.toString().split(".")[1] || "").length;
1060
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
1061
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
1062
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
1063
- return (valInt % stepInt) / 10 ** decCount;
1064
- }
1065
- export class ZodNumber extends ZodType {
1066
- constructor() {
1067
- super(...arguments);
1068
- this.min = this.gte;
1069
- this.max = this.lte;
1070
- this.step = this.multipleOf;
1071
- }
1072
- _parse(input) {
1073
- if (this._def.coerce) {
1074
- input.data = Number(input.data);
1075
- }
1076
- const parsedType = this._getType(input);
1077
- if (parsedType !== ZodParsedType.number) {
1078
- const ctx = this._getOrReturnCtx(input);
1079
- addIssueToContext(ctx, {
1080
- code: ZodIssueCode.invalid_type,
1081
- expected: ZodParsedType.number,
1082
- received: ctx.parsedType,
1083
- });
1084
- return INVALID;
1085
- }
1086
- let ctx = undefined;
1087
- const status = new ParseStatus();
1088
- for (const check of this._def.checks) {
1089
- if (check.kind === "int") {
1090
- if (!util.isInteger(input.data)) {
1091
- ctx = this._getOrReturnCtx(input, ctx);
1092
- addIssueToContext(ctx, {
1093
- code: ZodIssueCode.invalid_type,
1094
- expected: "integer",
1095
- received: "float",
1096
- message: check.message,
1097
- });
1098
- status.dirty();
1099
- }
1100
- }
1101
- else if (check.kind === "min") {
1102
- const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
1103
- if (tooSmall) {
1104
- ctx = this._getOrReturnCtx(input, ctx);
1105
- addIssueToContext(ctx, {
1106
- code: ZodIssueCode.too_small,
1107
- minimum: check.value,
1108
- type: "number",
1109
- inclusive: check.inclusive,
1110
- exact: false,
1111
- message: check.message,
1112
- });
1113
- status.dirty();
1114
- }
1115
- }
1116
- else if (check.kind === "max") {
1117
- const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
1118
- if (tooBig) {
1119
- ctx = this._getOrReturnCtx(input, ctx);
1120
- addIssueToContext(ctx, {
1121
- code: ZodIssueCode.too_big,
1122
- maximum: check.value,
1123
- type: "number",
1124
- inclusive: check.inclusive,
1125
- exact: false,
1126
- message: check.message,
1127
- });
1128
- status.dirty();
1129
- }
1130
- }
1131
- else if (check.kind === "multipleOf") {
1132
- if (floatSafeRemainder(input.data, check.value) !== 0) {
1133
- ctx = this._getOrReturnCtx(input, ctx);
1134
- addIssueToContext(ctx, {
1135
- code: ZodIssueCode.not_multiple_of,
1136
- multipleOf: check.value,
1137
- message: check.message,
1138
- });
1139
- status.dirty();
1140
- }
1141
- }
1142
- else if (check.kind === "finite") {
1143
- if (!Number.isFinite(input.data)) {
1144
- ctx = this._getOrReturnCtx(input, ctx);
1145
- addIssueToContext(ctx, {
1146
- code: ZodIssueCode.not_finite,
1147
- message: check.message,
1148
- });
1149
- status.dirty();
1150
- }
1151
- }
1152
- else {
1153
- util.assertNever(check);
1154
- }
1155
- }
1156
- return { status: status.value, value: input.data };
1157
- }
1158
- gte(value, message) {
1159
- return this.setLimit("min", value, true, errorUtil.toString(message));
1160
- }
1161
- gt(value, message) {
1162
- return this.setLimit("min", value, false, errorUtil.toString(message));
1163
- }
1164
- lte(value, message) {
1165
- return this.setLimit("max", value, true, errorUtil.toString(message));
1166
- }
1167
- lt(value, message) {
1168
- return this.setLimit("max", value, false, errorUtil.toString(message));
1169
- }
1170
- setLimit(kind, value, inclusive, message) {
1171
- return new ZodNumber({
1172
- ...this._def,
1173
- checks: [
1174
- ...this._def.checks,
1175
- {
1176
- kind,
1177
- value,
1178
- inclusive,
1179
- message: errorUtil.toString(message),
1180
- },
1181
- ],
1182
- });
1183
- }
1184
- _addCheck(check) {
1185
- return new ZodNumber({
1186
- ...this._def,
1187
- checks: [...this._def.checks, check],
1188
- });
1189
- }
1190
- int(message) {
1191
- return this._addCheck({
1192
- kind: "int",
1193
- message: errorUtil.toString(message),
1194
- });
1195
- }
1196
- positive(message) {
1197
- return this._addCheck({
1198
- kind: "min",
1199
- value: 0,
1200
- inclusive: false,
1201
- message: errorUtil.toString(message),
1202
- });
1203
- }
1204
- negative(message) {
1205
- return this._addCheck({
1206
- kind: "max",
1207
- value: 0,
1208
- inclusive: false,
1209
- message: errorUtil.toString(message),
1210
- });
1211
- }
1212
- nonpositive(message) {
1213
- return this._addCheck({
1214
- kind: "max",
1215
- value: 0,
1216
- inclusive: true,
1217
- message: errorUtil.toString(message),
1218
- });
1219
- }
1220
- nonnegative(message) {
1221
- return this._addCheck({
1222
- kind: "min",
1223
- value: 0,
1224
- inclusive: true,
1225
- message: errorUtil.toString(message),
1226
- });
1227
- }
1228
- multipleOf(value, message) {
1229
- return this._addCheck({
1230
- kind: "multipleOf",
1231
- value: value,
1232
- message: errorUtil.toString(message),
1233
- });
1234
- }
1235
- finite(message) {
1236
- return this._addCheck({
1237
- kind: "finite",
1238
- message: errorUtil.toString(message),
1239
- });
1240
- }
1241
- safe(message) {
1242
- return this._addCheck({
1243
- kind: "min",
1244
- inclusive: true,
1245
- value: Number.MIN_SAFE_INTEGER,
1246
- message: errorUtil.toString(message),
1247
- })._addCheck({
1248
- kind: "max",
1249
- inclusive: true,
1250
- value: Number.MAX_SAFE_INTEGER,
1251
- message: errorUtil.toString(message),
1252
- });
1253
- }
1254
- get minValue() {
1255
- let min = null;
1256
- for (const ch of this._def.checks) {
1257
- if (ch.kind === "min") {
1258
- if (min === null || ch.value > min)
1259
- min = ch.value;
1260
- }
1261
- }
1262
- return min;
1263
- }
1264
- get maxValue() {
1265
- let max = null;
1266
- for (const ch of this._def.checks) {
1267
- if (ch.kind === "max") {
1268
- if (max === null || ch.value < max)
1269
- max = ch.value;
1270
- }
1271
- }
1272
- return max;
1273
- }
1274
- get isInt() {
1275
- return !!this._def.checks.find((ch) => ch.kind === "int" || (ch.kind === "multipleOf" && util.isInteger(ch.value)));
1276
- }
1277
- get isFinite() {
1278
- let max = null;
1279
- let min = null;
1280
- for (const ch of this._def.checks) {
1281
- if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
1282
- return true;
1283
- }
1284
- else if (ch.kind === "min") {
1285
- if (min === null || ch.value > min)
1286
- min = ch.value;
1287
- }
1288
- else if (ch.kind === "max") {
1289
- if (max === null || ch.value < max)
1290
- max = ch.value;
1291
- }
1292
- }
1293
- return Number.isFinite(min) && Number.isFinite(max);
1294
- }
1295
- }
1296
- ZodNumber.create = (params) => {
1297
- return new ZodNumber({
1298
- checks: [],
1299
- typeName: ZodFirstPartyTypeKind.ZodNumber,
1300
- coerce: params?.coerce || false,
1301
- ...processCreateParams(params),
1302
- });
1303
- };
1304
- export class ZodBigInt extends ZodType {
1305
- constructor() {
1306
- super(...arguments);
1307
- this.min = this.gte;
1308
- this.max = this.lte;
1309
- }
1310
- _parse(input) {
1311
- if (this._def.coerce) {
1312
- try {
1313
- input.data = BigInt(input.data);
1314
- }
1315
- catch {
1316
- return this._getInvalidInput(input);
1317
- }
1318
- }
1319
- const parsedType = this._getType(input);
1320
- if (parsedType !== ZodParsedType.bigint) {
1321
- return this._getInvalidInput(input);
1322
- }
1323
- let ctx = undefined;
1324
- const status = new ParseStatus();
1325
- for (const check of this._def.checks) {
1326
- if (check.kind === "min") {
1327
- const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
1328
- if (tooSmall) {
1329
- ctx = this._getOrReturnCtx(input, ctx);
1330
- addIssueToContext(ctx, {
1331
- code: ZodIssueCode.too_small,
1332
- type: "bigint",
1333
- minimum: check.value,
1334
- inclusive: check.inclusive,
1335
- message: check.message,
1336
- });
1337
- status.dirty();
1338
- }
1339
- }
1340
- else if (check.kind === "max") {
1341
- const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
1342
- if (tooBig) {
1343
- ctx = this._getOrReturnCtx(input, ctx);
1344
- addIssueToContext(ctx, {
1345
- code: ZodIssueCode.too_big,
1346
- type: "bigint",
1347
- maximum: check.value,
1348
- inclusive: check.inclusive,
1349
- message: check.message,
1350
- });
1351
- status.dirty();
1352
- }
1353
- }
1354
- else if (check.kind === "multipleOf") {
1355
- if (input.data % check.value !== BigInt(0)) {
1356
- ctx = this._getOrReturnCtx(input, ctx);
1357
- addIssueToContext(ctx, {
1358
- code: ZodIssueCode.not_multiple_of,
1359
- multipleOf: check.value,
1360
- message: check.message,
1361
- });
1362
- status.dirty();
1363
- }
1364
- }
1365
- else {
1366
- util.assertNever(check);
1367
- }
1368
- }
1369
- return { status: status.value, value: input.data };
1370
- }
1371
- _getInvalidInput(input) {
1372
- const ctx = this._getOrReturnCtx(input);
1373
- addIssueToContext(ctx, {
1374
- code: ZodIssueCode.invalid_type,
1375
- expected: ZodParsedType.bigint,
1376
- received: ctx.parsedType,
1377
- });
1378
- return INVALID;
1379
- }
1380
- gte(value, message) {
1381
- return this.setLimit("min", value, true, errorUtil.toString(message));
1382
- }
1383
- gt(value, message) {
1384
- return this.setLimit("min", value, false, errorUtil.toString(message));
1385
- }
1386
- lte(value, message) {
1387
- return this.setLimit("max", value, true, errorUtil.toString(message));
1388
- }
1389
- lt(value, message) {
1390
- return this.setLimit("max", value, false, errorUtil.toString(message));
1391
- }
1392
- setLimit(kind, value, inclusive, message) {
1393
- return new ZodBigInt({
1394
- ...this._def,
1395
- checks: [
1396
- ...this._def.checks,
1397
- {
1398
- kind,
1399
- value,
1400
- inclusive,
1401
- message: errorUtil.toString(message),
1402
- },
1403
- ],
1404
- });
1405
- }
1406
- _addCheck(check) {
1407
- return new ZodBigInt({
1408
- ...this._def,
1409
- checks: [...this._def.checks, check],
1410
- });
1411
- }
1412
- positive(message) {
1413
- return this._addCheck({
1414
- kind: "min",
1415
- value: BigInt(0),
1416
- inclusive: false,
1417
- message: errorUtil.toString(message),
1418
- });
1419
- }
1420
- negative(message) {
1421
- return this._addCheck({
1422
- kind: "max",
1423
- value: BigInt(0),
1424
- inclusive: false,
1425
- message: errorUtil.toString(message),
1426
- });
1427
- }
1428
- nonpositive(message) {
1429
- return this._addCheck({
1430
- kind: "max",
1431
- value: BigInt(0),
1432
- inclusive: true,
1433
- message: errorUtil.toString(message),
1434
- });
1435
- }
1436
- nonnegative(message) {
1437
- return this._addCheck({
1438
- kind: "min",
1439
- value: BigInt(0),
1440
- inclusive: true,
1441
- message: errorUtil.toString(message),
1442
- });
1443
- }
1444
- multipleOf(value, message) {
1445
- return this._addCheck({
1446
- kind: "multipleOf",
1447
- value,
1448
- message: errorUtil.toString(message),
1449
- });
1450
- }
1451
- get minValue() {
1452
- let min = null;
1453
- for (const ch of this._def.checks) {
1454
- if (ch.kind === "min") {
1455
- if (min === null || ch.value > min)
1456
- min = ch.value;
1457
- }
1458
- }
1459
- return min;
1460
- }
1461
- get maxValue() {
1462
- let max = null;
1463
- for (const ch of this._def.checks) {
1464
- if (ch.kind === "max") {
1465
- if (max === null || ch.value < max)
1466
- max = ch.value;
1467
- }
1468
- }
1469
- return max;
1470
- }
1471
- }
1472
- ZodBigInt.create = (params) => {
1473
- return new ZodBigInt({
1474
- checks: [],
1475
- typeName: ZodFirstPartyTypeKind.ZodBigInt,
1476
- coerce: params?.coerce ?? false,
1477
- ...processCreateParams(params),
1478
- });
1479
- };
1480
- export class ZodBoolean extends ZodType {
1481
- _parse(input) {
1482
- if (this._def.coerce) {
1483
- input.data = Boolean(input.data);
1484
- }
1485
- const parsedType = this._getType(input);
1486
- if (parsedType !== ZodParsedType.boolean) {
1487
- const ctx = this._getOrReturnCtx(input);
1488
- addIssueToContext(ctx, {
1489
- code: ZodIssueCode.invalid_type,
1490
- expected: ZodParsedType.boolean,
1491
- received: ctx.parsedType,
1492
- });
1493
- return INVALID;
1494
- }
1495
- return OK(input.data);
1496
- }
1497
- }
1498
- ZodBoolean.create = (params) => {
1499
- return new ZodBoolean({
1500
- typeName: ZodFirstPartyTypeKind.ZodBoolean,
1501
- coerce: params?.coerce || false,
1502
- ...processCreateParams(params),
1503
- });
1504
- };
1505
- export class ZodDate extends ZodType {
1506
- _parse(input) {
1507
- if (this._def.coerce) {
1508
- input.data = new Date(input.data);
1509
- }
1510
- const parsedType = this._getType(input);
1511
- if (parsedType !== ZodParsedType.date) {
1512
- const ctx = this._getOrReturnCtx(input);
1513
- addIssueToContext(ctx, {
1514
- code: ZodIssueCode.invalid_type,
1515
- expected: ZodParsedType.date,
1516
- received: ctx.parsedType,
1517
- });
1518
- return INVALID;
1519
- }
1520
- if (Number.isNaN(input.data.getTime())) {
1521
- const ctx = this._getOrReturnCtx(input);
1522
- addIssueToContext(ctx, {
1523
- code: ZodIssueCode.invalid_date,
1524
- });
1525
- return INVALID;
1526
- }
1527
- const status = new ParseStatus();
1528
- let ctx = undefined;
1529
- for (const check of this._def.checks) {
1530
- if (check.kind === "min") {
1531
- if (input.data.getTime() < check.value) {
1532
- ctx = this._getOrReturnCtx(input, ctx);
1533
- addIssueToContext(ctx, {
1534
- code: ZodIssueCode.too_small,
1535
- message: check.message,
1536
- inclusive: true,
1537
- exact: false,
1538
- minimum: check.value,
1539
- type: "date",
1540
- });
1541
- status.dirty();
1542
- }
1543
- }
1544
- else if (check.kind === "max") {
1545
- if (input.data.getTime() > check.value) {
1546
- ctx = this._getOrReturnCtx(input, ctx);
1547
- addIssueToContext(ctx, {
1548
- code: ZodIssueCode.too_big,
1549
- message: check.message,
1550
- inclusive: true,
1551
- exact: false,
1552
- maximum: check.value,
1553
- type: "date",
1554
- });
1555
- status.dirty();
1556
- }
1557
- }
1558
- else {
1559
- util.assertNever(check);
1560
- }
1561
- }
1562
- return {
1563
- status: status.value,
1564
- value: new Date(input.data.getTime()),
1565
- };
1566
- }
1567
- _addCheck(check) {
1568
- return new ZodDate({
1569
- ...this._def,
1570
- checks: [...this._def.checks, check],
1571
- });
1572
- }
1573
- min(minDate, message) {
1574
- return this._addCheck({
1575
- kind: "min",
1576
- value: minDate.getTime(),
1577
- message: errorUtil.toString(message),
1578
- });
1579
- }
1580
- max(maxDate, message) {
1581
- return this._addCheck({
1582
- kind: "max",
1583
- value: maxDate.getTime(),
1584
- message: errorUtil.toString(message),
1585
- });
1586
- }
1587
- get minDate() {
1588
- let min = null;
1589
- for (const ch of this._def.checks) {
1590
- if (ch.kind === "min") {
1591
- if (min === null || ch.value > min)
1592
- min = ch.value;
1593
- }
1594
- }
1595
- return min != null ? new Date(min) : null;
1596
- }
1597
- get maxDate() {
1598
- let max = null;
1599
- for (const ch of this._def.checks) {
1600
- if (ch.kind === "max") {
1601
- if (max === null || ch.value < max)
1602
- max = ch.value;
1603
- }
1604
- }
1605
- return max != null ? new Date(max) : null;
1606
- }
1607
- }
1608
- ZodDate.create = (params) => {
1609
- return new ZodDate({
1610
- checks: [],
1611
- coerce: params?.coerce || false,
1612
- typeName: ZodFirstPartyTypeKind.ZodDate,
1613
- ...processCreateParams(params),
1614
- });
1615
- };
1616
- export class ZodSymbol extends ZodType {
1617
- _parse(input) {
1618
- const parsedType = this._getType(input);
1619
- if (parsedType !== ZodParsedType.symbol) {
1620
- const ctx = this._getOrReturnCtx(input);
1621
- addIssueToContext(ctx, {
1622
- code: ZodIssueCode.invalid_type,
1623
- expected: ZodParsedType.symbol,
1624
- received: ctx.parsedType,
1625
- });
1626
- return INVALID;
1627
- }
1628
- return OK(input.data);
1629
- }
1630
- }
1631
- ZodSymbol.create = (params) => {
1632
- return new ZodSymbol({
1633
- typeName: ZodFirstPartyTypeKind.ZodSymbol,
1634
- ...processCreateParams(params),
1635
- });
1636
- };
1637
- export class ZodUndefined extends ZodType {
1638
- _parse(input) {
1639
- const parsedType = this._getType(input);
1640
- if (parsedType !== ZodParsedType.undefined) {
1641
- const ctx = this._getOrReturnCtx(input);
1642
- addIssueToContext(ctx, {
1643
- code: ZodIssueCode.invalid_type,
1644
- expected: ZodParsedType.undefined,
1645
- received: ctx.parsedType,
1646
- });
1647
- return INVALID;
1648
- }
1649
- return OK(input.data);
1650
- }
1651
- }
1652
- ZodUndefined.create = (params) => {
1653
- return new ZodUndefined({
1654
- typeName: ZodFirstPartyTypeKind.ZodUndefined,
1655
- ...processCreateParams(params),
1656
- });
1657
- };
1658
- export class ZodNull extends ZodType {
1659
- _parse(input) {
1660
- const parsedType = this._getType(input);
1661
- if (parsedType !== ZodParsedType.null) {
1662
- const ctx = this._getOrReturnCtx(input);
1663
- addIssueToContext(ctx, {
1664
- code: ZodIssueCode.invalid_type,
1665
- expected: ZodParsedType.null,
1666
- received: ctx.parsedType,
1667
- });
1668
- return INVALID;
1669
- }
1670
- return OK(input.data);
1671
- }
1672
- }
1673
- ZodNull.create = (params) => {
1674
- return new ZodNull({
1675
- typeName: ZodFirstPartyTypeKind.ZodNull,
1676
- ...processCreateParams(params),
1677
- });
1678
- };
1679
- export class ZodAny extends ZodType {
1680
- constructor() {
1681
- super(...arguments);
1682
- // to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.
1683
- this._any = true;
1684
- }
1685
- _parse(input) {
1686
- return OK(input.data);
1687
- }
1688
- }
1689
- ZodAny.create = (params) => {
1690
- return new ZodAny({
1691
- typeName: ZodFirstPartyTypeKind.ZodAny,
1692
- ...processCreateParams(params),
1693
- });
1694
- };
1695
- export class ZodUnknown extends ZodType {
1696
- constructor() {
1697
- super(...arguments);
1698
- // required
1699
- this._unknown = true;
1700
- }
1701
- _parse(input) {
1702
- return OK(input.data);
1703
- }
1704
- }
1705
- ZodUnknown.create = (params) => {
1706
- return new ZodUnknown({
1707
- typeName: ZodFirstPartyTypeKind.ZodUnknown,
1708
- ...processCreateParams(params),
1709
- });
1710
- };
1711
- export class ZodNever extends ZodType {
1712
- _parse(input) {
1713
- const ctx = this._getOrReturnCtx(input);
1714
- addIssueToContext(ctx, {
1715
- code: ZodIssueCode.invalid_type,
1716
- expected: ZodParsedType.never,
1717
- received: ctx.parsedType,
1718
- });
1719
- return INVALID;
1720
- }
1721
- }
1722
- ZodNever.create = (params) => {
1723
- return new ZodNever({
1724
- typeName: ZodFirstPartyTypeKind.ZodNever,
1725
- ...processCreateParams(params),
1726
- });
1727
- };
1728
- export class ZodVoid extends ZodType {
1729
- _parse(input) {
1730
- const parsedType = this._getType(input);
1731
- if (parsedType !== ZodParsedType.undefined) {
1732
- const ctx = this._getOrReturnCtx(input);
1733
- addIssueToContext(ctx, {
1734
- code: ZodIssueCode.invalid_type,
1735
- expected: ZodParsedType.void,
1736
- received: ctx.parsedType,
1737
- });
1738
- return INVALID;
1739
- }
1740
- return OK(input.data);
1741
- }
1742
- }
1743
- ZodVoid.create = (params) => {
1744
- return new ZodVoid({
1745
- typeName: ZodFirstPartyTypeKind.ZodVoid,
1746
- ...processCreateParams(params),
1747
- });
1748
- };
1749
- export class ZodArray extends ZodType {
1750
- _parse(input) {
1751
- const { ctx, status } = this._processInputParams(input);
1752
- const def = this._def;
1753
- if (ctx.parsedType !== ZodParsedType.array) {
1754
- addIssueToContext(ctx, {
1755
- code: ZodIssueCode.invalid_type,
1756
- expected: ZodParsedType.array,
1757
- received: ctx.parsedType,
1758
- });
1759
- return INVALID;
1760
- }
1761
- if (def.exactLength !== null) {
1762
- const tooBig = ctx.data.length > def.exactLength.value;
1763
- const tooSmall = ctx.data.length < def.exactLength.value;
1764
- if (tooBig || tooSmall) {
1765
- addIssueToContext(ctx, {
1766
- code: tooBig ? ZodIssueCode.too_big : ZodIssueCode.too_small,
1767
- minimum: (tooSmall ? def.exactLength.value : undefined),
1768
- maximum: (tooBig ? def.exactLength.value : undefined),
1769
- type: "array",
1770
- inclusive: true,
1771
- exact: true,
1772
- message: def.exactLength.message,
1773
- });
1774
- status.dirty();
1775
- }
1776
- }
1777
- if (def.minLength !== null) {
1778
- if (ctx.data.length < def.minLength.value) {
1779
- addIssueToContext(ctx, {
1780
- code: ZodIssueCode.too_small,
1781
- minimum: def.minLength.value,
1782
- type: "array",
1783
- inclusive: true,
1784
- exact: false,
1785
- message: def.minLength.message,
1786
- });
1787
- status.dirty();
1788
- }
1789
- }
1790
- if (def.maxLength !== null) {
1791
- if (ctx.data.length > def.maxLength.value) {
1792
- addIssueToContext(ctx, {
1793
- code: ZodIssueCode.too_big,
1794
- maximum: def.maxLength.value,
1795
- type: "array",
1796
- inclusive: true,
1797
- exact: false,
1798
- message: def.maxLength.message,
1799
- });
1800
- status.dirty();
1801
- }
1802
- }
1803
- if (ctx.common.async) {
1804
- return Promise.all([...ctx.data].map((item, i) => {
1805
- return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));
1806
- })).then((result) => {
1807
- return ParseStatus.mergeArray(status, result);
1808
- });
1809
- }
1810
- const result = [...ctx.data].map((item, i) => {
1811
- return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));
1812
- });
1813
- return ParseStatus.mergeArray(status, result);
1814
- }
1815
- get element() {
1816
- return this._def.type;
1817
- }
1818
- min(minLength, message) {
1819
- return new ZodArray({
1820
- ...this._def,
1821
- minLength: { value: minLength, message: errorUtil.toString(message) },
1822
- });
1823
- }
1824
- max(maxLength, message) {
1825
- return new ZodArray({
1826
- ...this._def,
1827
- maxLength: { value: maxLength, message: errorUtil.toString(message) },
1828
- });
1829
- }
1830
- length(len, message) {
1831
- return new ZodArray({
1832
- ...this._def,
1833
- exactLength: { value: len, message: errorUtil.toString(message) },
1834
- });
1835
- }
1836
- nonempty(message) {
1837
- return this.min(1, message);
1838
- }
1839
- }
1840
- ZodArray.create = (schema, params) => {
1841
- return new ZodArray({
1842
- type: schema,
1843
- minLength: null,
1844
- maxLength: null,
1845
- exactLength: null,
1846
- typeName: ZodFirstPartyTypeKind.ZodArray,
1847
- ...processCreateParams(params),
1848
- });
1849
- };
1850
- function deepPartialify(schema) {
1851
- if (schema instanceof ZodObject) {
1852
- const newShape = {};
1853
- for (const key in schema.shape) {
1854
- const fieldSchema = schema.shape[key];
1855
- newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));
1856
- }
1857
- return new ZodObject({
1858
- ...schema._def,
1859
- shape: () => newShape,
1860
- });
1861
- }
1862
- else if (schema instanceof ZodArray) {
1863
- return new ZodArray({
1864
- ...schema._def,
1865
- type: deepPartialify(schema.element),
1866
- });
1867
- }
1868
- else if (schema instanceof ZodOptional) {
1869
- return ZodOptional.create(deepPartialify(schema.unwrap()));
1870
- }
1871
- else if (schema instanceof ZodNullable) {
1872
- return ZodNullable.create(deepPartialify(schema.unwrap()));
1873
- }
1874
- else if (schema instanceof ZodTuple) {
1875
- return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));
1876
- }
1877
- else {
1878
- return schema;
1879
- }
1880
- }
1881
- export class ZodObject extends ZodType {
1882
- constructor() {
1883
- super(...arguments);
1884
- this._cached = null;
1885
- /**
1886
- * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
1887
- * If you want to pass through unknown properties, use `.passthrough()` instead.
1888
- */
1889
- this.nonstrict = this.passthrough;
1890
- // extend<
1891
- // Augmentation extends ZodRawShape,
1892
- // NewOutput extends util.flatten<{
1893
- // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
1894
- // ? Augmentation[k]["_output"]
1895
- // : k extends keyof Output
1896
- // ? Output[k]
1897
- // : never;
1898
- // }>,
1899
- // NewInput extends util.flatten<{
1900
- // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
1901
- // ? Augmentation[k]["_input"]
1902
- // : k extends keyof Input
1903
- // ? Input[k]
1904
- // : never;
1905
- // }>
1906
- // >(
1907
- // augmentation: Augmentation
1908
- // ): ZodObject<
1909
- // extendShape<T, Augmentation>,
1910
- // UnknownKeys,
1911
- // Catchall,
1912
- // NewOutput,
1913
- // NewInput
1914
- // > {
1915
- // return new ZodObject({
1916
- // ...this._def,
1917
- // shape: () => ({
1918
- // ...this._def.shape(),
1919
- // ...augmentation,
1920
- // }),
1921
- // }) as any;
1922
- // }
1923
- /**
1924
- * @deprecated Use `.extend` instead
1925
- * */
1926
- this.augment = this.extend;
1927
- }
1928
- _getCached() {
1929
- if (this._cached !== null)
1930
- return this._cached;
1931
- const shape = this._def.shape();
1932
- const keys = util.objectKeys(shape);
1933
- this._cached = { shape, keys };
1934
- return this._cached;
1935
- }
1936
- _parse(input) {
1937
- const parsedType = this._getType(input);
1938
- if (parsedType !== ZodParsedType.object) {
1939
- const ctx = this._getOrReturnCtx(input);
1940
- addIssueToContext(ctx, {
1941
- code: ZodIssueCode.invalid_type,
1942
- expected: ZodParsedType.object,
1943
- received: ctx.parsedType,
1944
- });
1945
- return INVALID;
1946
- }
1947
- const { status, ctx } = this._processInputParams(input);
1948
- const { shape, keys: shapeKeys } = this._getCached();
1949
- const extraKeys = [];
1950
- if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) {
1951
- for (const key in ctx.data) {
1952
- if (!shapeKeys.includes(key)) {
1953
- extraKeys.push(key);
1954
- }
1955
- }
1956
- }
1957
- const pairs = [];
1958
- for (const key of shapeKeys) {
1959
- const keyValidator = shape[key];
1960
- const value = ctx.data[key];
1961
- pairs.push({
1962
- key: { status: "valid", value: key },
1963
- value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),
1964
- alwaysSet: key in ctx.data,
1965
- });
1966
- }
1967
- if (this._def.catchall instanceof ZodNever) {
1968
- const unknownKeys = this._def.unknownKeys;
1969
- if (unknownKeys === "passthrough") {
1970
- for (const key of extraKeys) {
1971
- pairs.push({
1972
- key: { status: "valid", value: key },
1973
- value: { status: "valid", value: ctx.data[key] },
1974
- });
1975
- }
1976
- }
1977
- else if (unknownKeys === "strict") {
1978
- if (extraKeys.length > 0) {
1979
- addIssueToContext(ctx, {
1980
- code: ZodIssueCode.unrecognized_keys,
1981
- keys: extraKeys,
1982
- });
1983
- status.dirty();
1984
- }
1985
- }
1986
- else if (unknownKeys === "strip") {
1987
- }
1988
- else {
1989
- throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
1990
- }
1991
- }
1992
- else {
1993
- // run catchall validation
1994
- const catchall = this._def.catchall;
1995
- for (const key of extraKeys) {
1996
- const value = ctx.data[key];
1997
- pairs.push({
1998
- key: { status: "valid", value: key },
1999
- value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)
2000
- ),
2001
- alwaysSet: key in ctx.data,
2002
- });
2003
- }
2004
- }
2005
- if (ctx.common.async) {
2006
- return Promise.resolve()
2007
- .then(async () => {
2008
- const syncPairs = [];
2009
- for (const pair of pairs) {
2010
- const key = await pair.key;
2011
- const value = await pair.value;
2012
- syncPairs.push({
2013
- key,
2014
- value,
2015
- alwaysSet: pair.alwaysSet,
2016
- });
2017
- }
2018
- return syncPairs;
2019
- })
2020
- .then((syncPairs) => {
2021
- return ParseStatus.mergeObjectSync(status, syncPairs);
2022
- });
2023
- }
2024
- else {
2025
- return ParseStatus.mergeObjectSync(status, pairs);
2026
- }
2027
- }
2028
- get shape() {
2029
- return this._def.shape();
2030
- }
2031
- strict(message) {
2032
- errorUtil.errToObj;
2033
- return new ZodObject({
2034
- ...this._def,
2035
- unknownKeys: "strict",
2036
- ...(message !== undefined
2037
- ? {
2038
- errorMap: (issue, ctx) => {
2039
- const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
2040
- if (issue.code === "unrecognized_keys")
2041
- return {
2042
- message: errorUtil.errToObj(message).message ?? defaultError,
2043
- };
2044
- return {
2045
- message: defaultError,
2046
- };
2047
- },
2048
- }
2049
- : {}),
2050
- });
2051
- }
2052
- strip() {
2053
- return new ZodObject({
2054
- ...this._def,
2055
- unknownKeys: "strip",
2056
- });
2057
- }
2058
- passthrough() {
2059
- return new ZodObject({
2060
- ...this._def,
2061
- unknownKeys: "passthrough",
2062
- });
2063
- }
2064
- // const AugmentFactory =
2065
- // <Def extends ZodObjectDef>(def: Def) =>
2066
- // <Augmentation extends ZodRawShape>(
2067
- // augmentation: Augmentation
2068
- // ): ZodObject<
2069
- // extendShape<ReturnType<Def["shape"]>, Augmentation>,
2070
- // Def["unknownKeys"],
2071
- // Def["catchall"]
2072
- // > => {
2073
- // return new ZodObject({
2074
- // ...def,
2075
- // shape: () => ({
2076
- // ...def.shape(),
2077
- // ...augmentation,
2078
- // }),
2079
- // }) as any;
2080
- // };
2081
- extend(augmentation) {
2082
- return new ZodObject({
2083
- ...this._def,
2084
- shape: () => ({
2085
- ...this._def.shape(),
2086
- ...augmentation,
2087
- }),
2088
- });
2089
- }
2090
- /**
2091
- * Prior to zod@1.0.12 there was a bug in the
2092
- * inferred type of merged objects. Please
2093
- * upgrade if you are experiencing issues.
2094
- */
2095
- merge(merging) {
2096
- const merged = new ZodObject({
2097
- unknownKeys: merging._def.unknownKeys,
2098
- catchall: merging._def.catchall,
2099
- shape: () => ({
2100
- ...this._def.shape(),
2101
- ...merging._def.shape(),
2102
- }),
2103
- typeName: ZodFirstPartyTypeKind.ZodObject,
2104
- });
2105
- return merged;
2106
- }
2107
- // merge<
2108
- // Incoming extends AnyZodObject,
2109
- // Augmentation extends Incoming["shape"],
2110
- // NewOutput extends {
2111
- // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
2112
- // ? Augmentation[k]["_output"]
2113
- // : k extends keyof Output
2114
- // ? Output[k]
2115
- // : never;
2116
- // },
2117
- // NewInput extends {
2118
- // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
2119
- // ? Augmentation[k]["_input"]
2120
- // : k extends keyof Input
2121
- // ? Input[k]
2122
- // : never;
2123
- // }
2124
- // >(
2125
- // merging: Incoming
2126
- // ): ZodObject<
2127
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2128
- // Incoming["_def"]["unknownKeys"],
2129
- // Incoming["_def"]["catchall"],
2130
- // NewOutput,
2131
- // NewInput
2132
- // > {
2133
- // const merged: any = new ZodObject({
2134
- // unknownKeys: merging._def.unknownKeys,
2135
- // catchall: merging._def.catchall,
2136
- // shape: () =>
2137
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2138
- // typeName: ZodFirstPartyTypeKind.ZodObject,
2139
- // }) as any;
2140
- // return merged;
2141
- // }
2142
- setKey(key, schema) {
2143
- return this.augment({ [key]: schema });
2144
- }
2145
- // merge<Incoming extends AnyZodObject>(
2146
- // merging: Incoming
2147
- // ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => {
2148
- // ZodObject<
2149
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2150
- // Incoming["_def"]["unknownKeys"],
2151
- // Incoming["_def"]["catchall"]
2152
- // > {
2153
- // // const mergedShape = objectUtil.mergeShapes(
2154
- // // this._def.shape(),
2155
- // // merging._def.shape()
2156
- // // );
2157
- // const merged: any = new ZodObject({
2158
- // unknownKeys: merging._def.unknownKeys,
2159
- // catchall: merging._def.catchall,
2160
- // shape: () =>
2161
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2162
- // typeName: ZodFirstPartyTypeKind.ZodObject,
2163
- // }) as any;
2164
- // return merged;
2165
- // }
2166
- catchall(index) {
2167
- return new ZodObject({
2168
- ...this._def,
2169
- catchall: index,
2170
- });
2171
- }
2172
- pick(mask) {
2173
- const shape = {};
2174
- for (const key of util.objectKeys(mask)) {
2175
- if (mask[key] && this.shape[key]) {
2176
- shape[key] = this.shape[key];
2177
- }
2178
- }
2179
- return new ZodObject({
2180
- ...this._def,
2181
- shape: () => shape,
2182
- });
2183
- }
2184
- omit(mask) {
2185
- const shape = {};
2186
- for (const key of util.objectKeys(this.shape)) {
2187
- if (!mask[key]) {
2188
- shape[key] = this.shape[key];
2189
- }
2190
- }
2191
- return new ZodObject({
2192
- ...this._def,
2193
- shape: () => shape,
2194
- });
2195
- }
2196
- /**
2197
- * @deprecated
2198
- */
2199
- deepPartial() {
2200
- return deepPartialify(this);
2201
- }
2202
- partial(mask) {
2203
- const newShape = {};
2204
- for (const key of util.objectKeys(this.shape)) {
2205
- const fieldSchema = this.shape[key];
2206
- if (mask && !mask[key]) {
2207
- newShape[key] = fieldSchema;
2208
- }
2209
- else {
2210
- newShape[key] = fieldSchema.optional();
2211
- }
2212
- }
2213
- return new ZodObject({
2214
- ...this._def,
2215
- shape: () => newShape,
2216
- });
2217
- }
2218
- required(mask) {
2219
- const newShape = {};
2220
- for (const key of util.objectKeys(this.shape)) {
2221
- if (mask && !mask[key]) {
2222
- newShape[key] = this.shape[key];
2223
- }
2224
- else {
2225
- const fieldSchema = this.shape[key];
2226
- let newField = fieldSchema;
2227
- while (newField instanceof ZodOptional) {
2228
- newField = newField._def.innerType;
2229
- }
2230
- newShape[key] = newField;
2231
- }
2232
- }
2233
- return new ZodObject({
2234
- ...this._def,
2235
- shape: () => newShape,
2236
- });
2237
- }
2238
- keyof() {
2239
- return createZodEnum(util.objectKeys(this.shape));
2240
- }
2241
- }
2242
- ZodObject.create = (shape, params) => {
2243
- return new ZodObject({
2244
- shape: () => shape,
2245
- unknownKeys: "strip",
2246
- catchall: ZodNever.create(),
2247
- typeName: ZodFirstPartyTypeKind.ZodObject,
2248
- ...processCreateParams(params),
2249
- });
2250
- };
2251
- ZodObject.strictCreate = (shape, params) => {
2252
- return new ZodObject({
2253
- shape: () => shape,
2254
- unknownKeys: "strict",
2255
- catchall: ZodNever.create(),
2256
- typeName: ZodFirstPartyTypeKind.ZodObject,
2257
- ...processCreateParams(params),
2258
- });
2259
- };
2260
- ZodObject.lazycreate = (shape, params) => {
2261
- return new ZodObject({
2262
- shape,
2263
- unknownKeys: "strip",
2264
- catchall: ZodNever.create(),
2265
- typeName: ZodFirstPartyTypeKind.ZodObject,
2266
- ...processCreateParams(params),
2267
- });
2268
- };
2269
- export class ZodUnion extends ZodType {
2270
- _parse(input) {
2271
- const { ctx } = this._processInputParams(input);
2272
- const options = this._def.options;
2273
- function handleResults(results) {
2274
- // return first issue-free validation if it exists
2275
- for (const result of results) {
2276
- if (result.result.status === "valid") {
2277
- return result.result;
2278
- }
2279
- }
2280
- for (const result of results) {
2281
- if (result.result.status === "dirty") {
2282
- // add issues from dirty option
2283
- ctx.common.issues.push(...result.ctx.common.issues);
2284
- return result.result;
2285
- }
2286
- }
2287
- // return invalid
2288
- const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues));
2289
- addIssueToContext(ctx, {
2290
- code: ZodIssueCode.invalid_union,
2291
- unionErrors,
2292
- });
2293
- return INVALID;
2294
- }
2295
- if (ctx.common.async) {
2296
- return Promise.all(options.map(async (option) => {
2297
- const childCtx = {
2298
- ...ctx,
2299
- common: {
2300
- ...ctx.common,
2301
- issues: [],
2302
- },
2303
- parent: null,
2304
- };
2305
- return {
2306
- result: await option._parseAsync({
2307
- data: ctx.data,
2308
- path: ctx.path,
2309
- parent: childCtx,
2310
- }),
2311
- ctx: childCtx,
2312
- };
2313
- })).then(handleResults);
2314
- }
2315
- else {
2316
- let dirty = undefined;
2317
- const issues = [];
2318
- for (const option of options) {
2319
- const childCtx = {
2320
- ...ctx,
2321
- common: {
2322
- ...ctx.common,
2323
- issues: [],
2324
- },
2325
- parent: null,
2326
- };
2327
- const result = option._parseSync({
2328
- data: ctx.data,
2329
- path: ctx.path,
2330
- parent: childCtx,
2331
- });
2332
- if (result.status === "valid") {
2333
- return result;
2334
- }
2335
- else if (result.status === "dirty" && !dirty) {
2336
- dirty = { result, ctx: childCtx };
2337
- }
2338
- if (childCtx.common.issues.length) {
2339
- issues.push(childCtx.common.issues);
2340
- }
2341
- }
2342
- if (dirty) {
2343
- ctx.common.issues.push(...dirty.ctx.common.issues);
2344
- return dirty.result;
2345
- }
2346
- const unionErrors = issues.map((issues) => new ZodError(issues));
2347
- addIssueToContext(ctx, {
2348
- code: ZodIssueCode.invalid_union,
2349
- unionErrors,
2350
- });
2351
- return INVALID;
2352
- }
2353
- }
2354
- get options() {
2355
- return this._def.options;
2356
- }
2357
- }
2358
- ZodUnion.create = (types, params) => {
2359
- return new ZodUnion({
2360
- options: types,
2361
- typeName: ZodFirstPartyTypeKind.ZodUnion,
2362
- ...processCreateParams(params),
2363
- });
2364
- };
2365
- /////////////////////////////////////////////////////
2366
- /////////////////////////////////////////////////////
2367
- ////////// //////////
2368
- ////////// ZodDiscriminatedUnion //////////
2369
- ////////// //////////
2370
- /////////////////////////////////////////////////////
2371
- /////////////////////////////////////////////////////
2372
- const getDiscriminator = (type) => {
2373
- if (type instanceof ZodLazy) {
2374
- return getDiscriminator(type.schema);
2375
- }
2376
- else if (type instanceof ZodEffects) {
2377
- return getDiscriminator(type.innerType());
2378
- }
2379
- else if (type instanceof ZodLiteral) {
2380
- return [type.value];
2381
- }
2382
- else if (type instanceof ZodEnum) {
2383
- return type.options;
2384
- }
2385
- else if (type instanceof ZodNativeEnum) {
2386
- // eslint-disable-next-line ban/ban
2387
- return util.objectValues(type.enum);
2388
- }
2389
- else if (type instanceof ZodDefault) {
2390
- return getDiscriminator(type._def.innerType);
2391
- }
2392
- else if (type instanceof ZodUndefined) {
2393
- return [undefined];
2394
- }
2395
- else if (type instanceof ZodNull) {
2396
- return [null];
2397
- }
2398
- else if (type instanceof ZodOptional) {
2399
- return [undefined, ...getDiscriminator(type.unwrap())];
2400
- }
2401
- else if (type instanceof ZodNullable) {
2402
- return [null, ...getDiscriminator(type.unwrap())];
2403
- }
2404
- else if (type instanceof ZodBranded) {
2405
- return getDiscriminator(type.unwrap());
2406
- }
2407
- else if (type instanceof ZodReadonly) {
2408
- return getDiscriminator(type.unwrap());
2409
- }
2410
- else if (type instanceof ZodCatch) {
2411
- return getDiscriminator(type._def.innerType);
2412
- }
2413
- else {
2414
- return [];
2415
- }
2416
- };
2417
- export class ZodDiscriminatedUnion extends ZodType {
2418
- _parse(input) {
2419
- const { ctx } = this._processInputParams(input);
2420
- if (ctx.parsedType !== ZodParsedType.object) {
2421
- addIssueToContext(ctx, {
2422
- code: ZodIssueCode.invalid_type,
2423
- expected: ZodParsedType.object,
2424
- received: ctx.parsedType,
2425
- });
2426
- return INVALID;
2427
- }
2428
- const discriminator = this.discriminator;
2429
- const discriminatorValue = ctx.data[discriminator];
2430
- const option = this.optionsMap.get(discriminatorValue);
2431
- if (!option) {
2432
- addIssueToContext(ctx, {
2433
- code: ZodIssueCode.invalid_union_discriminator,
2434
- options: Array.from(this.optionsMap.keys()),
2435
- path: [discriminator],
2436
- });
2437
- return INVALID;
2438
- }
2439
- if (ctx.common.async) {
2440
- return option._parseAsync({
2441
- data: ctx.data,
2442
- path: ctx.path,
2443
- parent: ctx,
2444
- });
2445
- }
2446
- else {
2447
- return option._parseSync({
2448
- data: ctx.data,
2449
- path: ctx.path,
2450
- parent: ctx,
2451
- });
2452
- }
2453
- }
2454
- get discriminator() {
2455
- return this._def.discriminator;
2456
- }
2457
- get options() {
2458
- return this._def.options;
2459
- }
2460
- get optionsMap() {
2461
- return this._def.optionsMap;
2462
- }
2463
- /**
2464
- * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
2465
- * However, it only allows a union of objects, all of which need to share a discriminator property. This property must
2466
- * have a different value for each object in the union.
2467
- * @param discriminator the name of the discriminator property
2468
- * @param types an array of object schemas
2469
- * @param params
2470
- */
2471
- static create(discriminator, options, params) {
2472
- // Get all the valid discriminator values
2473
- const optionsMap = new Map();
2474
- // try {
2475
- for (const type of options) {
2476
- const discriminatorValues = getDiscriminator(type.shape[discriminator]);
2477
- if (!discriminatorValues.length) {
2478
- throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
2479
- }
2480
- for (const value of discriminatorValues) {
2481
- if (optionsMap.has(value)) {
2482
- throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
2483
- }
2484
- optionsMap.set(value, type);
2485
- }
2486
- }
2487
- return new ZodDiscriminatedUnion({
2488
- typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,
2489
- discriminator,
2490
- options,
2491
- optionsMap,
2492
- ...processCreateParams(params),
2493
- });
2494
- }
2495
- }
2496
- function mergeValues(a, b) {
2497
- const aType = getParsedType(a);
2498
- const bType = getParsedType(b);
2499
- if (a === b) {
2500
- return { valid: true, data: a };
2501
- }
2502
- else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
2503
- const bKeys = util.objectKeys(b);
2504
- const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
2505
- const newObj = { ...a, ...b };
2506
- for (const key of sharedKeys) {
2507
- const sharedValue = mergeValues(a[key], b[key]);
2508
- if (!sharedValue.valid) {
2509
- return { valid: false };
2510
- }
2511
- newObj[key] = sharedValue.data;
2512
- }
2513
- return { valid: true, data: newObj };
2514
- }
2515
- else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {
2516
- if (a.length !== b.length) {
2517
- return { valid: false };
2518
- }
2519
- const newArray = [];
2520
- for (let index = 0; index < a.length; index++) {
2521
- const itemA = a[index];
2522
- const itemB = b[index];
2523
- const sharedValue = mergeValues(itemA, itemB);
2524
- if (!sharedValue.valid) {
2525
- return { valid: false };
2526
- }
2527
- newArray.push(sharedValue.data);
2528
- }
2529
- return { valid: true, data: newArray };
2530
- }
2531
- else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b) {
2532
- return { valid: true, data: a };
2533
- }
2534
- else {
2535
- return { valid: false };
2536
- }
2537
- }
2538
- export class ZodIntersection extends ZodType {
2539
- _parse(input) {
2540
- const { status, ctx } = this._processInputParams(input);
2541
- const handleParsed = (parsedLeft, parsedRight) => {
2542
- if (isAborted(parsedLeft) || isAborted(parsedRight)) {
2543
- return INVALID;
2544
- }
2545
- const merged = mergeValues(parsedLeft.value, parsedRight.value);
2546
- if (!merged.valid) {
2547
- addIssueToContext(ctx, {
2548
- code: ZodIssueCode.invalid_intersection_types,
2549
- });
2550
- return INVALID;
2551
- }
2552
- if (isDirty(parsedLeft) || isDirty(parsedRight)) {
2553
- status.dirty();
2554
- }
2555
- return { status: status.value, value: merged.data };
2556
- };
2557
- if (ctx.common.async) {
2558
- return Promise.all([
2559
- this._def.left._parseAsync({
2560
- data: ctx.data,
2561
- path: ctx.path,
2562
- parent: ctx,
2563
- }),
2564
- this._def.right._parseAsync({
2565
- data: ctx.data,
2566
- path: ctx.path,
2567
- parent: ctx,
2568
- }),
2569
- ]).then(([left, right]) => handleParsed(left, right));
2570
- }
2571
- else {
2572
- return handleParsed(this._def.left._parseSync({
2573
- data: ctx.data,
2574
- path: ctx.path,
2575
- parent: ctx,
2576
- }), this._def.right._parseSync({
2577
- data: ctx.data,
2578
- path: ctx.path,
2579
- parent: ctx,
2580
- }));
2581
- }
2582
- }
2583
- }
2584
- ZodIntersection.create = (left, right, params) => {
2585
- return new ZodIntersection({
2586
- left: left,
2587
- right: right,
2588
- typeName: ZodFirstPartyTypeKind.ZodIntersection,
2589
- ...processCreateParams(params),
2590
- });
2591
- };
2592
- // type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
2593
- export class ZodTuple extends ZodType {
2594
- _parse(input) {
2595
- const { status, ctx } = this._processInputParams(input);
2596
- if (ctx.parsedType !== ZodParsedType.array) {
2597
- addIssueToContext(ctx, {
2598
- code: ZodIssueCode.invalid_type,
2599
- expected: ZodParsedType.array,
2600
- received: ctx.parsedType,
2601
- });
2602
- return INVALID;
2603
- }
2604
- if (ctx.data.length < this._def.items.length) {
2605
- addIssueToContext(ctx, {
2606
- code: ZodIssueCode.too_small,
2607
- minimum: this._def.items.length,
2608
- inclusive: true,
2609
- exact: false,
2610
- type: "array",
2611
- });
2612
- return INVALID;
2613
- }
2614
- const rest = this._def.rest;
2615
- if (!rest && ctx.data.length > this._def.items.length) {
2616
- addIssueToContext(ctx, {
2617
- code: ZodIssueCode.too_big,
2618
- maximum: this._def.items.length,
2619
- inclusive: true,
2620
- exact: false,
2621
- type: "array",
2622
- });
2623
- status.dirty();
2624
- }
2625
- const items = [...ctx.data]
2626
- .map((item, itemIndex) => {
2627
- const schema = this._def.items[itemIndex] || this._def.rest;
2628
- if (!schema)
2629
- return null;
2630
- return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
2631
- })
2632
- .filter((x) => !!x); // filter nulls
2633
- if (ctx.common.async) {
2634
- return Promise.all(items).then((results) => {
2635
- return ParseStatus.mergeArray(status, results);
2636
- });
2637
- }
2638
- else {
2639
- return ParseStatus.mergeArray(status, items);
2640
- }
2641
- }
2642
- get items() {
2643
- return this._def.items;
2644
- }
2645
- rest(rest) {
2646
- return new ZodTuple({
2647
- ...this._def,
2648
- rest,
2649
- });
2650
- }
2651
- }
2652
- ZodTuple.create = (schemas, params) => {
2653
- if (!Array.isArray(schemas)) {
2654
- throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
2655
- }
2656
- return new ZodTuple({
2657
- items: schemas,
2658
- typeName: ZodFirstPartyTypeKind.ZodTuple,
2659
- rest: null,
2660
- ...processCreateParams(params),
2661
- });
2662
- };
2663
- export class ZodRecord extends ZodType {
2664
- get keySchema() {
2665
- return this._def.keyType;
2666
- }
2667
- get valueSchema() {
2668
- return this._def.valueType;
2669
- }
2670
- _parse(input) {
2671
- const { status, ctx } = this._processInputParams(input);
2672
- if (ctx.parsedType !== ZodParsedType.object) {
2673
- addIssueToContext(ctx, {
2674
- code: ZodIssueCode.invalid_type,
2675
- expected: ZodParsedType.object,
2676
- received: ctx.parsedType,
2677
- });
2678
- return INVALID;
2679
- }
2680
- const pairs = [];
2681
- const keyType = this._def.keyType;
2682
- const valueType = this._def.valueType;
2683
- for (const key in ctx.data) {
2684
- pairs.push({
2685
- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),
2686
- value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),
2687
- alwaysSet: key in ctx.data,
2688
- });
2689
- }
2690
- if (ctx.common.async) {
2691
- return ParseStatus.mergeObjectAsync(status, pairs);
2692
- }
2693
- else {
2694
- return ParseStatus.mergeObjectSync(status, pairs);
2695
- }
2696
- }
2697
- get element() {
2698
- return this._def.valueType;
2699
- }
2700
- static create(first, second, third) {
2701
- if (second instanceof ZodType) {
2702
- return new ZodRecord({
2703
- keyType: first,
2704
- valueType: second,
2705
- typeName: ZodFirstPartyTypeKind.ZodRecord,
2706
- ...processCreateParams(third),
2707
- });
2708
- }
2709
- return new ZodRecord({
2710
- keyType: ZodString.create(),
2711
- valueType: first,
2712
- typeName: ZodFirstPartyTypeKind.ZodRecord,
2713
- ...processCreateParams(second),
2714
- });
2715
- }
2716
- }
2717
- export class ZodMap extends ZodType {
2718
- get keySchema() {
2719
- return this._def.keyType;
2720
- }
2721
- get valueSchema() {
2722
- return this._def.valueType;
2723
- }
2724
- _parse(input) {
2725
- const { status, ctx } = this._processInputParams(input);
2726
- if (ctx.parsedType !== ZodParsedType.map) {
2727
- addIssueToContext(ctx, {
2728
- code: ZodIssueCode.invalid_type,
2729
- expected: ZodParsedType.map,
2730
- received: ctx.parsedType,
2731
- });
2732
- return INVALID;
2733
- }
2734
- const keyType = this._def.keyType;
2735
- const valueType = this._def.valueType;
2736
- const pairs = [...ctx.data.entries()].map(([key, value], index) => {
2737
- return {
2738
- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])),
2739
- value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"])),
2740
- };
2741
- });
2742
- if (ctx.common.async) {
2743
- const finalMap = new Map();
2744
- return Promise.resolve().then(async () => {
2745
- for (const pair of pairs) {
2746
- const key = await pair.key;
2747
- const value = await pair.value;
2748
- if (key.status === "aborted" || value.status === "aborted") {
2749
- return INVALID;
2750
- }
2751
- if (key.status === "dirty" || value.status === "dirty") {
2752
- status.dirty();
2753
- }
2754
- finalMap.set(key.value, value.value);
2755
- }
2756
- return { status: status.value, value: finalMap };
2757
- });
2758
- }
2759
- else {
2760
- const finalMap = new Map();
2761
- for (const pair of pairs) {
2762
- const key = pair.key;
2763
- const value = pair.value;
2764
- if (key.status === "aborted" || value.status === "aborted") {
2765
- return INVALID;
2766
- }
2767
- if (key.status === "dirty" || value.status === "dirty") {
2768
- status.dirty();
2769
- }
2770
- finalMap.set(key.value, value.value);
2771
- }
2772
- return { status: status.value, value: finalMap };
2773
- }
2774
- }
2775
- }
2776
- ZodMap.create = (keyType, valueType, params) => {
2777
- return new ZodMap({
2778
- valueType,
2779
- keyType,
2780
- typeName: ZodFirstPartyTypeKind.ZodMap,
2781
- ...processCreateParams(params),
2782
- });
2783
- };
2784
- export class ZodSet extends ZodType {
2785
- _parse(input) {
2786
- const { status, ctx } = this._processInputParams(input);
2787
- if (ctx.parsedType !== ZodParsedType.set) {
2788
- addIssueToContext(ctx, {
2789
- code: ZodIssueCode.invalid_type,
2790
- expected: ZodParsedType.set,
2791
- received: ctx.parsedType,
2792
- });
2793
- return INVALID;
2794
- }
2795
- const def = this._def;
2796
- if (def.minSize !== null) {
2797
- if (ctx.data.size < def.minSize.value) {
2798
- addIssueToContext(ctx, {
2799
- code: ZodIssueCode.too_small,
2800
- minimum: def.minSize.value,
2801
- type: "set",
2802
- inclusive: true,
2803
- exact: false,
2804
- message: def.minSize.message,
2805
- });
2806
- status.dirty();
2807
- }
2808
- }
2809
- if (def.maxSize !== null) {
2810
- if (ctx.data.size > def.maxSize.value) {
2811
- addIssueToContext(ctx, {
2812
- code: ZodIssueCode.too_big,
2813
- maximum: def.maxSize.value,
2814
- type: "set",
2815
- inclusive: true,
2816
- exact: false,
2817
- message: def.maxSize.message,
2818
- });
2819
- status.dirty();
2820
- }
2821
- }
2822
- const valueType = this._def.valueType;
2823
- function finalizeSet(elements) {
2824
- const parsedSet = new Set();
2825
- for (const element of elements) {
2826
- if (element.status === "aborted")
2827
- return INVALID;
2828
- if (element.status === "dirty")
2829
- status.dirty();
2830
- parsedSet.add(element.value);
2831
- }
2832
- return { status: status.value, value: parsedSet };
2833
- }
2834
- const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));
2835
- if (ctx.common.async) {
2836
- return Promise.all(elements).then((elements) => finalizeSet(elements));
2837
- }
2838
- else {
2839
- return finalizeSet(elements);
2840
- }
2841
- }
2842
- min(minSize, message) {
2843
- return new ZodSet({
2844
- ...this._def,
2845
- minSize: { value: minSize, message: errorUtil.toString(message) },
2846
- });
2847
- }
2848
- max(maxSize, message) {
2849
- return new ZodSet({
2850
- ...this._def,
2851
- maxSize: { value: maxSize, message: errorUtil.toString(message) },
2852
- });
2853
- }
2854
- size(size, message) {
2855
- return this.min(size, message).max(size, message);
2856
- }
2857
- nonempty(message) {
2858
- return this.min(1, message);
2859
- }
2860
- }
2861
- ZodSet.create = (valueType, params) => {
2862
- return new ZodSet({
2863
- valueType,
2864
- minSize: null,
2865
- maxSize: null,
2866
- typeName: ZodFirstPartyTypeKind.ZodSet,
2867
- ...processCreateParams(params),
2868
- });
2869
- };
2870
- export class ZodFunction extends ZodType {
2871
- constructor() {
2872
- super(...arguments);
2873
- this.validate = this.implement;
2874
- }
2875
- _parse(input) {
2876
- const { ctx } = this._processInputParams(input);
2877
- if (ctx.parsedType !== ZodParsedType.function) {
2878
- addIssueToContext(ctx, {
2879
- code: ZodIssueCode.invalid_type,
2880
- expected: ZodParsedType.function,
2881
- received: ctx.parsedType,
2882
- });
2883
- return INVALID;
2884
- }
2885
- function makeArgsIssue(args, error) {
2886
- return makeIssue({
2887
- data: args,
2888
- path: ctx.path,
2889
- errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), defaultErrorMap].filter((x) => !!x),
2890
- issueData: {
2891
- code: ZodIssueCode.invalid_arguments,
2892
- argumentsError: error,
2893
- },
2894
- });
2895
- }
2896
- function makeReturnsIssue(returns, error) {
2897
- return makeIssue({
2898
- data: returns,
2899
- path: ctx.path,
2900
- errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), defaultErrorMap].filter((x) => !!x),
2901
- issueData: {
2902
- code: ZodIssueCode.invalid_return_type,
2903
- returnTypeError: error,
2904
- },
2905
- });
2906
- }
2907
- const params = { errorMap: ctx.common.contextualErrorMap };
2908
- const fn = ctx.data;
2909
- if (this._def.returns instanceof ZodPromise) {
2910
- // Would love a way to avoid disabling this rule, but we need
2911
- // an alias (using an arrow function was what caused 2651).
2912
- // eslint-disable-next-line @typescript-eslint/no-this-alias
2913
- const me = this;
2914
- return OK(async function (...args) {
2915
- const error = new ZodError([]);
2916
- const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
2917
- error.addIssue(makeArgsIssue(args, e));
2918
- throw error;
2919
- });
2920
- const result = await Reflect.apply(fn, this, parsedArgs);
2921
- const parsedReturns = await me._def.returns._def.type
2922
- .parseAsync(result, params)
2923
- .catch((e) => {
2924
- error.addIssue(makeReturnsIssue(result, e));
2925
- throw error;
2926
- });
2927
- return parsedReturns;
2928
- });
2929
- }
2930
- else {
2931
- // Would love a way to avoid disabling this rule, but we need
2932
- // an alias (using an arrow function was what caused 2651).
2933
- // eslint-disable-next-line @typescript-eslint/no-this-alias
2934
- const me = this;
2935
- return OK(function (...args) {
2936
- const parsedArgs = me._def.args.safeParse(args, params);
2937
- if (!parsedArgs.success) {
2938
- throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
2939
- }
2940
- const result = Reflect.apply(fn, this, parsedArgs.data);
2941
- const parsedReturns = me._def.returns.safeParse(result, params);
2942
- if (!parsedReturns.success) {
2943
- throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
2944
- }
2945
- return parsedReturns.data;
2946
- });
2947
- }
2948
- }
2949
- parameters() {
2950
- return this._def.args;
2951
- }
2952
- returnType() {
2953
- return this._def.returns;
2954
- }
2955
- args(...items) {
2956
- return new ZodFunction({
2957
- ...this._def,
2958
- args: ZodTuple.create(items).rest(ZodUnknown.create()),
2959
- });
2960
- }
2961
- returns(returnType) {
2962
- return new ZodFunction({
2963
- ...this._def,
2964
- returns: returnType,
2965
- });
2966
- }
2967
- implement(func) {
2968
- const validatedFunc = this.parse(func);
2969
- return validatedFunc;
2970
- }
2971
- strictImplement(func) {
2972
- const validatedFunc = this.parse(func);
2973
- return validatedFunc;
2974
- }
2975
- static create(args, returns, params) {
2976
- return new ZodFunction({
2977
- args: (args ? args : ZodTuple.create([]).rest(ZodUnknown.create())),
2978
- returns: returns || ZodUnknown.create(),
2979
- typeName: ZodFirstPartyTypeKind.ZodFunction,
2980
- ...processCreateParams(params),
2981
- });
2982
- }
2983
- }
2984
- export class ZodLazy extends ZodType {
2985
- get schema() {
2986
- return this._def.getter();
2987
- }
2988
- _parse(input) {
2989
- const { ctx } = this._processInputParams(input);
2990
- const lazySchema = this._def.getter();
2991
- return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });
2992
- }
2993
- }
2994
- ZodLazy.create = (getter, params) => {
2995
- return new ZodLazy({
2996
- getter: getter,
2997
- typeName: ZodFirstPartyTypeKind.ZodLazy,
2998
- ...processCreateParams(params),
2999
- });
3000
- };
3001
- export class ZodLiteral extends ZodType {
3002
- _parse(input) {
3003
- if (input.data !== this._def.value) {
3004
- const ctx = this._getOrReturnCtx(input);
3005
- addIssueToContext(ctx, {
3006
- received: ctx.data,
3007
- code: ZodIssueCode.invalid_literal,
3008
- expected: this._def.value,
3009
- });
3010
- return INVALID;
3011
- }
3012
- return { status: "valid", value: input.data };
3013
- }
3014
- get value() {
3015
- return this._def.value;
3016
- }
3017
- }
3018
- ZodLiteral.create = (value, params) => {
3019
- return new ZodLiteral({
3020
- value: value,
3021
- typeName: ZodFirstPartyTypeKind.ZodLiteral,
3022
- ...processCreateParams(params),
3023
- });
3024
- };
3025
- function createZodEnum(values, params) {
3026
- return new ZodEnum({
3027
- values,
3028
- typeName: ZodFirstPartyTypeKind.ZodEnum,
3029
- ...processCreateParams(params),
3030
- });
3031
- }
3032
- export class ZodEnum extends ZodType {
3033
- _parse(input) {
3034
- if (typeof input.data !== "string") {
3035
- const ctx = this._getOrReturnCtx(input);
3036
- const expectedValues = this._def.values;
3037
- addIssueToContext(ctx, {
3038
- expected: util.joinValues(expectedValues),
3039
- received: ctx.parsedType,
3040
- code: ZodIssueCode.invalid_type,
3041
- });
3042
- return INVALID;
3043
- }
3044
- if (!this._cache) {
3045
- this._cache = new Set(this._def.values);
3046
- }
3047
- if (!this._cache.has(input.data)) {
3048
- const ctx = this._getOrReturnCtx(input);
3049
- const expectedValues = this._def.values;
3050
- addIssueToContext(ctx, {
3051
- received: ctx.data,
3052
- code: ZodIssueCode.invalid_enum_value,
3053
- options: expectedValues,
3054
- });
3055
- return INVALID;
3056
- }
3057
- return OK(input.data);
3058
- }
3059
- get options() {
3060
- return this._def.values;
3061
- }
3062
- get enum() {
3063
- const enumValues = {};
3064
- for (const val of this._def.values) {
3065
- enumValues[val] = val;
3066
- }
3067
- return enumValues;
3068
- }
3069
- get Values() {
3070
- const enumValues = {};
3071
- for (const val of this._def.values) {
3072
- enumValues[val] = val;
3073
- }
3074
- return enumValues;
3075
- }
3076
- get Enum() {
3077
- const enumValues = {};
3078
- for (const val of this._def.values) {
3079
- enumValues[val] = val;
3080
- }
3081
- return enumValues;
3082
- }
3083
- extract(values, newDef = this._def) {
3084
- return ZodEnum.create(values, {
3085
- ...this._def,
3086
- ...newDef,
3087
- });
3088
- }
3089
- exclude(values, newDef = this._def) {
3090
- return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {
3091
- ...this._def,
3092
- ...newDef,
3093
- });
3094
- }
3095
- }
3096
- ZodEnum.create = createZodEnum;
3097
- export class ZodNativeEnum extends ZodType {
3098
- _parse(input) {
3099
- const nativeEnumValues = util.getValidEnumValues(this._def.values);
3100
- const ctx = this._getOrReturnCtx(input);
3101
- if (ctx.parsedType !== ZodParsedType.string && ctx.parsedType !== ZodParsedType.number) {
3102
- const expectedValues = util.objectValues(nativeEnumValues);
3103
- addIssueToContext(ctx, {
3104
- expected: util.joinValues(expectedValues),
3105
- received: ctx.parsedType,
3106
- code: ZodIssueCode.invalid_type,
3107
- });
3108
- return INVALID;
3109
- }
3110
- if (!this._cache) {
3111
- this._cache = new Set(util.getValidEnumValues(this._def.values));
3112
- }
3113
- if (!this._cache.has(input.data)) {
3114
- const expectedValues = util.objectValues(nativeEnumValues);
3115
- addIssueToContext(ctx, {
3116
- received: ctx.data,
3117
- code: ZodIssueCode.invalid_enum_value,
3118
- options: expectedValues,
3119
- });
3120
- return INVALID;
3121
- }
3122
- return OK(input.data);
3123
- }
3124
- get enum() {
3125
- return this._def.values;
3126
- }
3127
- }
3128
- ZodNativeEnum.create = (values, params) => {
3129
- return new ZodNativeEnum({
3130
- values: values,
3131
- typeName: ZodFirstPartyTypeKind.ZodNativeEnum,
3132
- ...processCreateParams(params),
3133
- });
3134
- };
3135
- export class ZodPromise extends ZodType {
3136
- unwrap() {
3137
- return this._def.type;
3138
- }
3139
- _parse(input) {
3140
- const { ctx } = this._processInputParams(input);
3141
- if (ctx.parsedType !== ZodParsedType.promise && ctx.common.async === false) {
3142
- addIssueToContext(ctx, {
3143
- code: ZodIssueCode.invalid_type,
3144
- expected: ZodParsedType.promise,
3145
- received: ctx.parsedType,
3146
- });
3147
- return INVALID;
3148
- }
3149
- const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data);
3150
- return OK(promisified.then((data) => {
3151
- return this._def.type.parseAsync(data, {
3152
- path: ctx.path,
3153
- errorMap: ctx.common.contextualErrorMap,
3154
- });
3155
- }));
3156
- }
3157
- }
3158
- ZodPromise.create = (schema, params) => {
3159
- return new ZodPromise({
3160
- type: schema,
3161
- typeName: ZodFirstPartyTypeKind.ZodPromise,
3162
- ...processCreateParams(params),
3163
- });
3164
- };
3165
- export class ZodEffects extends ZodType {
3166
- innerType() {
3167
- return this._def.schema;
3168
- }
3169
- sourceType() {
3170
- return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects
3171
- ? this._def.schema.sourceType()
3172
- : this._def.schema;
3173
- }
3174
- _parse(input) {
3175
- const { status, ctx } = this._processInputParams(input);
3176
- const effect = this._def.effect || null;
3177
- const checkCtx = {
3178
- addIssue: (arg) => {
3179
- addIssueToContext(ctx, arg);
3180
- if (arg.fatal) {
3181
- status.abort();
3182
- }
3183
- else {
3184
- status.dirty();
3185
- }
3186
- },
3187
- get path() {
3188
- return ctx.path;
3189
- },
3190
- };
3191
- checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
3192
- if (effect.type === "preprocess") {
3193
- const processed = effect.transform(ctx.data, checkCtx);
3194
- if (ctx.common.async) {
3195
- return Promise.resolve(processed).then(async (processed) => {
3196
- if (status.value === "aborted")
3197
- return INVALID;
3198
- const result = await this._def.schema._parseAsync({
3199
- data: processed,
3200
- path: ctx.path,
3201
- parent: ctx,
3202
- });
3203
- if (result.status === "aborted")
3204
- return INVALID;
3205
- if (result.status === "dirty")
3206
- return DIRTY(result.value);
3207
- if (status.value === "dirty")
3208
- return DIRTY(result.value);
3209
- return result;
3210
- });
3211
- }
3212
- else {
3213
- if (status.value === "aborted")
3214
- return INVALID;
3215
- const result = this._def.schema._parseSync({
3216
- data: processed,
3217
- path: ctx.path,
3218
- parent: ctx,
3219
- });
3220
- if (result.status === "aborted")
3221
- return INVALID;
3222
- if (result.status === "dirty")
3223
- return DIRTY(result.value);
3224
- if (status.value === "dirty")
3225
- return DIRTY(result.value);
3226
- return result;
3227
- }
3228
- }
3229
- if (effect.type === "refinement") {
3230
- const executeRefinement = (acc) => {
3231
- const result = effect.refinement(acc, checkCtx);
3232
- if (ctx.common.async) {
3233
- return Promise.resolve(result);
3234
- }
3235
- if (result instanceof Promise) {
3236
- throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
3237
- }
3238
- return acc;
3239
- };
3240
- if (ctx.common.async === false) {
3241
- const inner = this._def.schema._parseSync({
3242
- data: ctx.data,
3243
- path: ctx.path,
3244
- parent: ctx,
3245
- });
3246
- if (inner.status === "aborted")
3247
- return INVALID;
3248
- if (inner.status === "dirty")
3249
- status.dirty();
3250
- // return value is ignored
3251
- executeRefinement(inner.value);
3252
- return { status: status.value, value: inner.value };
3253
- }
3254
- else {
3255
- return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => {
3256
- if (inner.status === "aborted")
3257
- return INVALID;
3258
- if (inner.status === "dirty")
3259
- status.dirty();
3260
- return executeRefinement(inner.value).then(() => {
3261
- return { status: status.value, value: inner.value };
3262
- });
3263
- });
3264
- }
3265
- }
3266
- if (effect.type === "transform") {
3267
- if (ctx.common.async === false) {
3268
- const base = this._def.schema._parseSync({
3269
- data: ctx.data,
3270
- path: ctx.path,
3271
- parent: ctx,
3272
- });
3273
- if (!isValid(base))
3274
- return INVALID;
3275
- const result = effect.transform(base.value, checkCtx);
3276
- if (result instanceof Promise) {
3277
- throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
3278
- }
3279
- return { status: status.value, value: result };
3280
- }
3281
- else {
3282
- return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
3283
- if (!isValid(base))
3284
- return INVALID;
3285
- return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
3286
- status: status.value,
3287
- value: result,
3288
- }));
3289
- });
3290
- }
3291
- }
3292
- util.assertNever(effect);
3293
- }
3294
- }
3295
- ZodEffects.create = (schema, effect, params) => {
3296
- return new ZodEffects({
3297
- schema,
3298
- typeName: ZodFirstPartyTypeKind.ZodEffects,
3299
- effect,
3300
- ...processCreateParams(params),
3301
- });
3302
- };
3303
- ZodEffects.createWithPreprocess = (preprocess, schema, params) => {
3304
- return new ZodEffects({
3305
- schema,
3306
- effect: { type: "preprocess", transform: preprocess },
3307
- typeName: ZodFirstPartyTypeKind.ZodEffects,
3308
- ...processCreateParams(params),
3309
- });
3310
- };
3311
- export { ZodEffects as ZodTransformer };
3312
- export class ZodOptional extends ZodType {
3313
- _parse(input) {
3314
- const parsedType = this._getType(input);
3315
- if (parsedType === ZodParsedType.undefined) {
3316
- return OK(undefined);
3317
- }
3318
- return this._def.innerType._parse(input);
3319
- }
3320
- unwrap() {
3321
- return this._def.innerType;
3322
- }
3323
- }
3324
- ZodOptional.create = (type, params) => {
3325
- return new ZodOptional({
3326
- innerType: type,
3327
- typeName: ZodFirstPartyTypeKind.ZodOptional,
3328
- ...processCreateParams(params),
3329
- });
3330
- };
3331
- export class ZodNullable extends ZodType {
3332
- _parse(input) {
3333
- const parsedType = this._getType(input);
3334
- if (parsedType === ZodParsedType.null) {
3335
- return OK(null);
3336
- }
3337
- return this._def.innerType._parse(input);
3338
- }
3339
- unwrap() {
3340
- return this._def.innerType;
3341
- }
3342
- }
3343
- ZodNullable.create = (type, params) => {
3344
- return new ZodNullable({
3345
- innerType: type,
3346
- typeName: ZodFirstPartyTypeKind.ZodNullable,
3347
- ...processCreateParams(params),
3348
- });
3349
- };
3350
- export class ZodDefault extends ZodType {
3351
- _parse(input) {
3352
- const { ctx } = this._processInputParams(input);
3353
- let data = ctx.data;
3354
- if (ctx.parsedType === ZodParsedType.undefined) {
3355
- data = this._def.defaultValue();
3356
- }
3357
- return this._def.innerType._parse({
3358
- data,
3359
- path: ctx.path,
3360
- parent: ctx,
3361
- });
3362
- }
3363
- removeDefault() {
3364
- return this._def.innerType;
3365
- }
3366
- }
3367
- ZodDefault.create = (type, params) => {
3368
- return new ZodDefault({
3369
- innerType: type,
3370
- typeName: ZodFirstPartyTypeKind.ZodDefault,
3371
- defaultValue: typeof params.default === "function" ? params.default : () => params.default,
3372
- ...processCreateParams(params),
3373
- });
3374
- };
3375
- export class ZodCatch extends ZodType {
3376
- _parse(input) {
3377
- const { ctx } = this._processInputParams(input);
3378
- // newCtx is used to not collect issues from inner types in ctx
3379
- const newCtx = {
3380
- ...ctx,
3381
- common: {
3382
- ...ctx.common,
3383
- issues: [],
3384
- },
3385
- };
3386
- const result = this._def.innerType._parse({
3387
- data: newCtx.data,
3388
- path: newCtx.path,
3389
- parent: {
3390
- ...newCtx,
3391
- },
3392
- });
3393
- if (isAsync(result)) {
3394
- return result.then((result) => {
3395
- return {
3396
- status: "valid",
3397
- value: result.status === "valid"
3398
- ? result.value
3399
- : this._def.catchValue({
3400
- get error() {
3401
- return new ZodError(newCtx.common.issues);
3402
- },
3403
- input: newCtx.data,
3404
- }),
3405
- };
3406
- });
3407
- }
3408
- else {
3409
- return {
3410
- status: "valid",
3411
- value: result.status === "valid"
3412
- ? result.value
3413
- : this._def.catchValue({
3414
- get error() {
3415
- return new ZodError(newCtx.common.issues);
3416
- },
3417
- input: newCtx.data,
3418
- }),
3419
- };
3420
- }
3421
- }
3422
- removeCatch() {
3423
- return this._def.innerType;
3424
- }
3425
- }
3426
- ZodCatch.create = (type, params) => {
3427
- return new ZodCatch({
3428
- innerType: type,
3429
- typeName: ZodFirstPartyTypeKind.ZodCatch,
3430
- catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,
3431
- ...processCreateParams(params),
3432
- });
3433
- };
3434
- export class ZodNaN extends ZodType {
3435
- _parse(input) {
3436
- const parsedType = this._getType(input);
3437
- if (parsedType !== ZodParsedType.nan) {
3438
- const ctx = this._getOrReturnCtx(input);
3439
- addIssueToContext(ctx, {
3440
- code: ZodIssueCode.invalid_type,
3441
- expected: ZodParsedType.nan,
3442
- received: ctx.parsedType,
3443
- });
3444
- return INVALID;
3445
- }
3446
- return { status: "valid", value: input.data };
3447
- }
3448
- }
3449
- ZodNaN.create = (params) => {
3450
- return new ZodNaN({
3451
- typeName: ZodFirstPartyTypeKind.ZodNaN,
3452
- ...processCreateParams(params),
3453
- });
3454
- };
3455
- export const BRAND = Symbol("zod_brand");
3456
- export class ZodBranded extends ZodType {
3457
- _parse(input) {
3458
- const { ctx } = this._processInputParams(input);
3459
- const data = ctx.data;
3460
- return this._def.type._parse({
3461
- data,
3462
- path: ctx.path,
3463
- parent: ctx,
3464
- });
3465
- }
3466
- unwrap() {
3467
- return this._def.type;
3468
- }
3469
- }
3470
- export class ZodPipeline extends ZodType {
3471
- _parse(input) {
3472
- const { status, ctx } = this._processInputParams(input);
3473
- if (ctx.common.async) {
3474
- const handleAsync = async () => {
3475
- const inResult = await this._def.in._parseAsync({
3476
- data: ctx.data,
3477
- path: ctx.path,
3478
- parent: ctx,
3479
- });
3480
- if (inResult.status === "aborted")
3481
- return INVALID;
3482
- if (inResult.status === "dirty") {
3483
- status.dirty();
3484
- return DIRTY(inResult.value);
3485
- }
3486
- else {
3487
- return this._def.out._parseAsync({
3488
- data: inResult.value,
3489
- path: ctx.path,
3490
- parent: ctx,
3491
- });
3492
- }
3493
- };
3494
- return handleAsync();
3495
- }
3496
- else {
3497
- const inResult = this._def.in._parseSync({
3498
- data: ctx.data,
3499
- path: ctx.path,
3500
- parent: ctx,
3501
- });
3502
- if (inResult.status === "aborted")
3503
- return INVALID;
3504
- if (inResult.status === "dirty") {
3505
- status.dirty();
3506
- return {
3507
- status: "dirty",
3508
- value: inResult.value,
3509
- };
3510
- }
3511
- else {
3512
- return this._def.out._parseSync({
3513
- data: inResult.value,
3514
- path: ctx.path,
3515
- parent: ctx,
3516
- });
3517
- }
3518
- }
3519
- }
3520
- static create(a, b) {
3521
- return new ZodPipeline({
3522
- in: a,
3523
- out: b,
3524
- typeName: ZodFirstPartyTypeKind.ZodPipeline,
3525
- });
3526
- }
3527
- }
3528
- export class ZodReadonly extends ZodType {
3529
- _parse(input) {
3530
- const result = this._def.innerType._parse(input);
3531
- const freeze = (data) => {
3532
- if (isValid(data)) {
3533
- data.value = Object.freeze(data.value);
3534
- }
3535
- return data;
3536
- };
3537
- return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
3538
- }
3539
- unwrap() {
3540
- return this._def.innerType;
3541
- }
3542
- }
3543
- ZodReadonly.create = (type, params) => {
3544
- return new ZodReadonly({
3545
- innerType: type,
3546
- typeName: ZodFirstPartyTypeKind.ZodReadonly,
3547
- ...processCreateParams(params),
3548
- });
3549
- };
3550
- ////////////////////////////////////////
3551
- ////////////////////////////////////////
3552
- ////////// //////////
3553
- ////////// z.custom //////////
3554
- ////////// //////////
3555
- ////////////////////////////////////////
3556
- ////////////////////////////////////////
3557
- function cleanParams(params, data) {
3558
- const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
3559
- const p2 = typeof p === "string" ? { message: p } : p;
3560
- return p2;
3561
- }
3562
- export function custom(check, _params = {},
3563
- /**
3564
- * @deprecated
3565
- *
3566
- * Pass `fatal` into the params object instead:
3567
- *
3568
- * ```ts
3569
- * z.string().custom((val) => val.length > 5, { fatal: false })
3570
- * ```
3571
- *
3572
- */
3573
- fatal) {
3574
- if (check)
3575
- return ZodAny.create().superRefine((data, ctx) => {
3576
- const r = check(data);
3577
- if (r instanceof Promise) {
3578
- return r.then((r) => {
3579
- if (!r) {
3580
- const params = cleanParams(_params, data);
3581
- const _fatal = params.fatal ?? fatal ?? true;
3582
- ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
3583
- }
3584
- });
3585
- }
3586
- if (!r) {
3587
- const params = cleanParams(_params, data);
3588
- const _fatal = params.fatal ?? fatal ?? true;
3589
- ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
3590
- }
3591
- return;
3592
- });
3593
- return ZodAny.create();
3594
- }
3595
- export { ZodType as Schema, ZodType as ZodSchema };
3596
- export const late = {
3597
- object: ZodObject.lazycreate,
3598
- };
3599
- export var ZodFirstPartyTypeKind;
3600
- (function (ZodFirstPartyTypeKind) {
3601
- ZodFirstPartyTypeKind["ZodString"] = "ZodString";
3602
- ZodFirstPartyTypeKind["ZodNumber"] = "ZodNumber";
3603
- ZodFirstPartyTypeKind["ZodNaN"] = "ZodNaN";
3604
- ZodFirstPartyTypeKind["ZodBigInt"] = "ZodBigInt";
3605
- ZodFirstPartyTypeKind["ZodBoolean"] = "ZodBoolean";
3606
- ZodFirstPartyTypeKind["ZodDate"] = "ZodDate";
3607
- ZodFirstPartyTypeKind["ZodSymbol"] = "ZodSymbol";
3608
- ZodFirstPartyTypeKind["ZodUndefined"] = "ZodUndefined";
3609
- ZodFirstPartyTypeKind["ZodNull"] = "ZodNull";
3610
- ZodFirstPartyTypeKind["ZodAny"] = "ZodAny";
3611
- ZodFirstPartyTypeKind["ZodUnknown"] = "ZodUnknown";
3612
- ZodFirstPartyTypeKind["ZodNever"] = "ZodNever";
3613
- ZodFirstPartyTypeKind["ZodVoid"] = "ZodVoid";
3614
- ZodFirstPartyTypeKind["ZodArray"] = "ZodArray";
3615
- ZodFirstPartyTypeKind["ZodObject"] = "ZodObject";
3616
- ZodFirstPartyTypeKind["ZodUnion"] = "ZodUnion";
3617
- ZodFirstPartyTypeKind["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";
3618
- ZodFirstPartyTypeKind["ZodIntersection"] = "ZodIntersection";
3619
- ZodFirstPartyTypeKind["ZodTuple"] = "ZodTuple";
3620
- ZodFirstPartyTypeKind["ZodRecord"] = "ZodRecord";
3621
- ZodFirstPartyTypeKind["ZodMap"] = "ZodMap";
3622
- ZodFirstPartyTypeKind["ZodSet"] = "ZodSet";
3623
- ZodFirstPartyTypeKind["ZodFunction"] = "ZodFunction";
3624
- ZodFirstPartyTypeKind["ZodLazy"] = "ZodLazy";
3625
- ZodFirstPartyTypeKind["ZodLiteral"] = "ZodLiteral";
3626
- ZodFirstPartyTypeKind["ZodEnum"] = "ZodEnum";
3627
- ZodFirstPartyTypeKind["ZodEffects"] = "ZodEffects";
3628
- ZodFirstPartyTypeKind["ZodNativeEnum"] = "ZodNativeEnum";
3629
- ZodFirstPartyTypeKind["ZodOptional"] = "ZodOptional";
3630
- ZodFirstPartyTypeKind["ZodNullable"] = "ZodNullable";
3631
- ZodFirstPartyTypeKind["ZodDefault"] = "ZodDefault";
3632
- ZodFirstPartyTypeKind["ZodCatch"] = "ZodCatch";
3633
- ZodFirstPartyTypeKind["ZodPromise"] = "ZodPromise";
3634
- ZodFirstPartyTypeKind["ZodBranded"] = "ZodBranded";
3635
- ZodFirstPartyTypeKind["ZodPipeline"] = "ZodPipeline";
3636
- ZodFirstPartyTypeKind["ZodReadonly"] = "ZodReadonly";
3637
- })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
3638
- // requires TS 4.4+
3639
- class Class {
3640
- constructor(..._) { }
3641
- }
3642
- const instanceOfType = (
3643
- // const instanceOfType = <T extends new (...args: any[]) => any>(
3644
- cls, params = {
3645
- message: `Input not instance of ${cls.name}`,
3646
- }) => custom((data) => data instanceof cls, params);
3647
- const stringType = ZodString.create;
3648
- const numberType = ZodNumber.create;
3649
- const nanType = ZodNaN.create;
3650
- const bigIntType = ZodBigInt.create;
3651
- const booleanType = ZodBoolean.create;
3652
- const dateType = ZodDate.create;
3653
- const symbolType = ZodSymbol.create;
3654
- const undefinedType = ZodUndefined.create;
3655
- const nullType = ZodNull.create;
3656
- const anyType = ZodAny.create;
3657
- const unknownType = ZodUnknown.create;
3658
- const neverType = ZodNever.create;
3659
- const voidType = ZodVoid.create;
3660
- const arrayType = ZodArray.create;
3661
- const objectType = ZodObject.create;
3662
- const strictObjectType = ZodObject.strictCreate;
3663
- const unionType = ZodUnion.create;
3664
- const discriminatedUnionType = ZodDiscriminatedUnion.create;
3665
- const intersectionType = ZodIntersection.create;
3666
- const tupleType = ZodTuple.create;
3667
- const recordType = ZodRecord.create;
3668
- const mapType = ZodMap.create;
3669
- const setType = ZodSet.create;
3670
- const functionType = ZodFunction.create;
3671
- const lazyType = ZodLazy.create;
3672
- const literalType = ZodLiteral.create;
3673
- const enumType = ZodEnum.create;
3674
- const nativeEnumType = ZodNativeEnum.create;
3675
- const promiseType = ZodPromise.create;
3676
- const effectsType = ZodEffects.create;
3677
- const optionalType = ZodOptional.create;
3678
- const nullableType = ZodNullable.create;
3679
- const preprocessType = ZodEffects.createWithPreprocess;
3680
- const pipelineType = ZodPipeline.create;
3681
- const ostring = () => stringType().optional();
3682
- const onumber = () => numberType().optional();
3683
- const oboolean = () => booleanType().optional();
3684
- export const coerce = {
3685
- string: ((arg) => ZodString.create({ ...arg, coerce: true })),
3686
- number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
3687
- boolean: ((arg) => ZodBoolean.create({
3688
- ...arg,
3689
- coerce: true,
3690
- })),
3691
- bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
3692
- date: ((arg) => ZodDate.create({ ...arg, coerce: true })),
3693
- };
3694
- export { anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, dateType as date, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, instanceOfType as instanceof, intersectionType as intersection, lazyType as lazy, literalType as literal, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, oboolean, onumber, optionalType as optional, ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, recordType as record, setType as set, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, voidType as void, };
3695
- export const NEVER = INVALID;