@guru-ai-product/ai-product-kit 0.2.251117213210 → 0.2.251118120602

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 (966) hide show
  1. package/package.json +1 -1
  2. package/skills/aipk_aso-new-release/GURU_AI.md +4 -4
  3. package/skills/aipk_development/GURU_AI.md +3 -3
  4. package/skills/aipk_format-requirement-pages-with-design/GURU_AI.md +3 -3
  5. package/skills/aipk_init_project/GURU_AI.md +5 -5
  6. package/skills/aipk_initiative-planning/GURU_AI.md +7 -7
  7. package/skills/aipk_requirements-changes/GURU_AI.md +6 -6
  8. package/skills/aipk_requirements-documentation/GURU_AI.md +15 -15
  9. package/skills/aipk_requirements-intake/GURU_AI.md +9 -9
  10. package/skills/aipk_skill_generate/GURU_AI.md +5 -5
  11. package/skills/aipk_tool_prompts/GURU_AI.md +8 -8
  12. package/skills/aipk_update-requirements-from-design/GURU_AI.md +6 -116
  13. package/mcp/.doc_cache/04980c3595edbf2d_SKILL.md +0 -218
  14. package/mcp/.doc_cache/04e80f12d73851a2_/346/214/207/345/215/227/346/226/207/346/241/243/346/240/207/345/207/206/346/250/241/346/235/277.md +0 -59
  15. package/mcp/.doc_cache/07cc092c31fd7015_/345/267/245/345/205/267/344/275/277/347/224/250/346/214/207/345/215/227/346/250/241/346/235/277.md +0 -106
  16. package/mcp/.doc_cache/09ac9834a831e8b5_/346/212/200/346/234/257/346/226/271/346/241/210/350/257/204/344/274/260/344/270/216/345/217/257/350/241/214/346/200/247/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -72
  17. package/mcp/.doc_cache/0c0570b87cf4a98a_/351/234/200/346/261/202/350/277/255/344/273/243/346/250/241/346/235/277.md +0 -821
  18. package/mcp/.doc_cache/0c284fc4be48dbd3_/346/267/261/345/272/246/347/224/250/346/210/267/350/241/214/344/270/272/344/270/216/351/234/200/346/261/202/346/264/236/345/257/237/346/250/241/346/235/277.md +0 -59
  19. package/mcp/.doc_cache/0da74fe7b9aad548_K12/346/225/260/345/255/246/345/255/246/344/271/240/345/272/224/347/224/250/346/241/210/344/276/213.md +0 -371
  20. package/mcp/.doc_cache/1546780035ed893b_Draft_/344/272/247/345/223/201/351/234/200/346/261/202/350/215/211/347/250/277.md +0 -60
  21. package/mcp/.doc_cache/16d5f6b79f02c65e_/351/234/200/346/261/202/350/277/255/344/273/243/347/264/242/345/274/225.md +0 -30
  22. package/mcp/.doc_cache/1c631acd2940588e_index.md +0 -83
  23. package/mcp/.doc_cache/1e4a829f0abddb00_/344/272/247/345/223/201/350/247/204/345/210/222/346/250/241/346/235/277.md +0 -322
  24. package/mcp/.doc_cache/24f00280e7b9b2c7_index.md +0 -83
  25. package/mcp/.doc_cache/2767e2d4cd6afd5c_/345/225/206/344/270/232/345/214/226/350/247/204/345/210/222/346/250/241/346/235/277.md +0 -201
  26. package/mcp/.doc_cache/276d12074fd7af7d_SKILL.md +0 -243
  27. package/mcp/.doc_cache/2b6b35389546c3b9_SKILL.md +0 -407
  28. package/mcp/.doc_cache/2f45cddfb05ac32c_/351/234/200/346/261/202/350/277/255/344/273/243/347/264/242/345/274/225.md +0 -30
  29. package/mcp/.doc_cache/3086c6d32a0393da_Draft_/347/224/250/346/210/267/346/227/205/347/250/213/350/215/211/347/250/277.md +0 -84
  30. package/mcp/.doc_cache/33cd96cf79c86eaa_K12/346/225/260/345/255/246/345/255/246/344/271/240/345/272/224/347/224/250/346/241/210/344/276/213.md +0 -371
  31. package/mcp/.doc_cache/341909c063335dd2_/351/234/200/346/261/202/345/217/230/345/212/250/350/257/264/346/230/216/347/224/237/346/210/220Prompt.md +0 -349
  32. package/mcp/.doc_cache/3e0dfd0a1b9f6ce7_/344/272/247/345/223/201/351/234/200/346/261/202/345/217/221/347/216/260/344/270/216/351/252/214/350/257/201/346/250/241/346/235/277.md +0 -53
  33. package/mcp/.doc_cache/3eab19b804522d23_SKILL.md +0 -407
  34. package/mcp/.doc_cache/4b671afde6bb1fa8_/351/234/200/346/261/202/345/217/230/345/212/250/350/257/264/346/230/216/347/224/237/346/210/220/346/214/207/345/215/227.md +0 -292
  35. package/mcp/.doc_cache/4c780724e27f6f94_/351/234/200/346/261/202/350/277/255/344/273/243/346/250/241/346/235/277.md +0 -821
  36. package/mcp/.doc_cache/563de023ffa4a630_/345/237/213/347/202/271/350/247/204/350/214/203/346/226/207/346/241/243.md +0 -372
  37. package/mcp/.doc_cache/56975fb92532ee87_2_/345/212/237/350/203/275/351/234/200/346/261/202.md +0 -67
  38. package/mcp/.doc_cache/5a67e1c18353cfca_/345/270/202/345/234/272/346/234/272/344/274/232/350/257/204/344/274/260/344/270/216/347/253/236/344/272/211/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -53
  39. package/mcp/.doc_cache/5b8ba3d67e39371a_SKILL.md +0 -930
  40. package/mcp/.doc_cache/5b91334295d6ad31_SKILL.md +0 -588
  41. package/mcp/.doc_cache/609688b8b4332a01_/351/234/200/346/261/202/345/217/230/345/212/250/350/257/264/346/230/216/346/226/207/346/241/243/346/250/241/346/235/277.md +0 -576
  42. package/mcp/.doc_cache/61a0859a11a562ca_3_/345/225/206/344/270/232/345/214/226/347/255/226/347/225/245.md +0 -131
  43. package/mcp/.doc_cache/6643f4d546c6a03c_/346/267/261/345/272/246/347/224/250/346/210/267/350/241/214/344/270/272/344/270/216/351/234/200/346/261/202/346/264/236/345/257/237/346/250/241/346/235/277.md +0 -59
  44. package/mcp/.doc_cache/674c69479a90ad15_4_/347/224/250/346/210/267/347/225/214/351/235/242/344/270/216/344/275/223/351/252/214.md +0 -665
  45. package/mcp/.doc_cache/674f8b285658055d_/345/270/202/345/234/272/344/270/216/345/225/206/344/270/232/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -176
  46. package/mcp/.doc_cache/6cfccfda6b0e7641_SWOT/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -381
  47. package/mcp/.doc_cache/6fbc13740044659b_1_/344/272/247/345/223/201/345/256/232/344/275/215/344/270/216/345/210/206/346/236/220.md +0 -86
  48. package/mcp/.doc_cache/7842a4e7fe7a3b91_/346/212/200/346/234/257/350/247/204/345/210/222/346/250/241/346/235/277.md +0 -314
  49. package/mcp/.doc_cache/7db63a8354bf8037_2_/345/212/237/350/203/275/351/234/200/346/261/202.md +0 -67
  50. package/mcp/.doc_cache/81528b4e0b12a881_SKILL.md +0 -196
  51. package/mcp/.doc_cache/83d17bdb48d30903_4_/347/224/250/346/210/267/347/225/214/351/235/242/344/270/216/344/275/223/351/252/214.md +0 -665
  52. package/mcp/.doc_cache/88e1d483f18abd02_/345/237/213/347/202/271/350/247/204/350/214/203/346/226/207/346/241/243.md +0 -372
  53. package/mcp/.doc_cache/8f420425062dcb93_SWOT/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -381
  54. package/mcp/.doc_cache/8f981c56b3d4b17d_/345/225/206/344/270/232/345/214/226/350/247/204/345/210/222/346/250/241/346/235/277.md +0 -201
  55. package/mcp/.doc_cache/a3328dcce1521943_/345/270/202/345/234/272/344/270/216/345/225/206/344/270/232/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -176
  56. package/mcp/.doc_cache/a4ef757633f13133_/346/212/200/346/234/257/346/226/271/346/241/210/350/257/204/344/274/260/344/270/216/345/217/257/350/241/214/346/200/247/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -72
  57. package/mcp/.doc_cache/a90401fc94ca29a3_SKILL.md +0 -260
  58. package/mcp/.doc_cache/bad4b7992748a7a0_/344/272/247/345/223/201/351/234/200/346/261/202/345/217/221/347/216/260/344/270/216/351/252/214/350/257/201/346/250/241/346/235/277.md +0 -53
  59. package/mcp/.doc_cache/baeac26fdbcd25de_/344/272/247/345/223/201/350/247/204/345/210/222/346/250/241/346/235/277.md +0 -322
  60. package/mcp/.doc_cache/c58bcfc199ada118_SKILL.md +0 -196
  61. package/mcp/.doc_cache/c8305789db809e48_SKILL.md +0 -588
  62. package/mcp/.doc_cache/cache_mapping.json +0 -69
  63. package/mcp/.doc_cache/d09142514e6a9de0_/347/224/265/345/225/206/345/271/263/345/217/260/344/274/230/345/214/226/346/241/210/344/276/213.md +0 -426
  64. package/mcp/.doc_cache/d165d35fea568d64_/351/234/200/346/261/202/345/217/230/345/212/250/350/257/264/346/230/216/346/226/207/346/241/243/346/250/241/346/235/277.md +0 -576
  65. package/mcp/.doc_cache/d17b04c82d2497b2_/347/224/265/345/225/206/345/271/263/345/217/260/344/274/230/345/214/226/346/241/210/344/276/213.md +0 -426
  66. package/mcp/.doc_cache/d1cfa2f8882fcdf9_/346/214/207/345/215/227/346/226/207/346/241/243/346/240/207/345/207/206/346/250/241/346/235/277.md +0 -59
  67. package/mcp/.doc_cache/d2585b5df3d21fc9_3_/345/225/206/344/270/232/345/214/226/347/255/226/347/225/245.md +0 -131
  68. package/mcp/.doc_cache/d604a1290099121c_/351/234/200/346/261/202/345/217/230/345/212/250/350/257/264/346/230/216/347/224/237/346/210/220/346/214/207/345/215/227.md +0 -292
  69. package/mcp/.doc_cache/d66edce025de6b82_Draft_/344/272/247/345/223/201/351/234/200/346/261/202/350/215/211/347/250/277.md +0 -60
  70. package/mcp/.doc_cache/d6c3ff791e7da726_SKILL.md +0 -33
  71. package/mcp/.doc_cache/da2c3d4d7b8957af_SKILL.md +0 -218
  72. package/mcp/.doc_cache/da8f4d40a1e8f36a_/346/212/200/346/234/257/350/247/204/345/210/222/346/250/241/346/235/277.md +0 -314
  73. package/mcp/.doc_cache/db70562fc59f1658_SKILL.md +0 -260
  74. package/mcp/.doc_cache/dd61f22b0ec13e10_Draft_/347/224/250/346/210/267/346/227/205/347/250/213/350/215/211/347/250/277.md +0 -84
  75. package/mcp/.doc_cache/e1451d5b65894789_SKILL.md +0 -930
  76. package/mcp/.doc_cache/e4f23de1b5313796_1_/344/272/247/345/223/201/345/256/232/344/275/215/344/270/216/345/210/206/346/236/220.md +0 -86
  77. package/mcp/.doc_cache/e668cf08c5f905ca_/345/267/245/345/205/267/344/275/277/347/224/250/346/214/207/345/215/227/346/250/241/346/235/277.md +0 -106
  78. package/mcp/.doc_cache/e69eeaaf88a175df_/345/270/202/345/234/272/346/234/272/344/274/232/350/257/204/344/274/260/344/270/216/347/253/236/344/272/211/345/210/206/346/236/220/346/250/241/346/235/277.md +0 -53
  79. package/mcp/.doc_cache/ea4c5e5a6254f616_SKILL.md +0 -243
  80. package/mcp/.doc_cache/ec9ad6ce24808f0a_/351/234/200/346/261/202/345/217/230/345/212/250/350/257/264/346/230/216/347/224/237/346/210/220Prompt.md +0 -349
  81. package/mcp/node_modules/.package-lock.json +0 -147
  82. package/mcp/node_modules/@modelcontextprotocol/sdk/LICENSE +0 -7
  83. package/mcp/node_modules/@modelcontextprotocol/sdk/README.md +0 -110
  84. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/cli.d.ts +0 -2
  85. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/cli.d.ts.map +0 -1
  86. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/cli.js +0 -129
  87. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/cli.js.map +0 -1
  88. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.d.ts +0 -773
  89. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.d.ts.map +0 -1
  90. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.js +0 -206
  91. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.js.map +0 -1
  92. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.d.ts +0 -2
  93. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.d.ts.map +0 -1
  94. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.js +0 -357
  95. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/index.test.js.map +0 -1
  96. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/sse.d.ts +0 -22
  97. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/sse.d.ts.map +0 -1
  98. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/sse.js +0 -91
  99. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/sse.js.map +0 -1
  100. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.d.ts +0 -56
  101. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.d.ts.map +0 -1
  102. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.js +0 -135
  103. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.js.map +0 -1
  104. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.d.ts +0 -2
  105. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.d.ts.map +0 -1
  106. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.js +0 -51
  107. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/stdio.test.js.map +0 -1
  108. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.d.ts +0 -17
  109. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.d.ts.map +0 -1
  110. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.js +0 -61
  111. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/client/websocket.js.map +0 -1
  112. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.d.ts +0 -20
  113. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.d.ts.map +0 -1
  114. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.js +0 -47
  115. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.js.map +0 -1
  116. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.d.ts +0 -2
  117. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.d.ts.map +0 -1
  118. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.js +0 -74
  119. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/inMemory.test.js.map +0 -1
  120. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.d.ts +0 -112
  121. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.d.ts.map +0 -1
  122. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.js +0 -182
  123. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.js.map +0 -1
  124. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.d.ts +0 -2
  125. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.d.ts.map +0 -1
  126. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.js +0 -360
  127. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/index.test.js.map +0 -1
  128. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/sse.d.ts +0 -46
  129. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/sse.d.ts.map +0 -1
  130. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/sse.js +0 -116
  131. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/sse.js.map +0 -1
  132. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.d.ts +0 -28
  133. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.d.ts.map +0 -1
  134. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.js +0 -69
  135. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.js.map +0 -1
  136. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.d.ts +0 -2
  137. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.d.ts.map +0 -1
  138. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.js +0 -87
  139. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/server/stdio.test.js.map +0 -1
  140. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.d.ts +0 -149
  141. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.d.ts.map +0 -1
  142. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.js +0 -274
  143. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/protocol.js.map +0 -1
  144. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.d.ts +0 -13
  145. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.d.ts.map +0 -1
  146. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.js +0 -31
  147. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.js.map +0 -1
  148. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.d.ts +0 -2
  149. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.d.ts.map +0 -1
  150. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.js +0 -27
  151. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/stdio.test.js.map +0 -1
  152. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.d.ts +0 -39
  153. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.d.ts.map +0 -1
  154. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.js +0 -2
  155. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/shared/transport.js.map +0 -1
  156. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/types.d.ts +0 -26424
  157. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/types.d.ts.map +0 -1
  158. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/types.js +0 -996
  159. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/types.js.map +0 -1
  160. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.d.ts +0 -5
  161. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.d.ts.map +0 -1
  162. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.js +0 -11
  163. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.js.map +0 -1
  164. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.test.d.ts +0 -2
  165. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.test.d.ts.map +0 -1
  166. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.test.js +0 -14
  167. package/mcp/node_modules/@modelcontextprotocol/sdk/dist/utils.test.js.map +0 -1
  168. package/mcp/node_modules/@modelcontextprotocol/sdk/package.json +0 -61
  169. package/mcp/node_modules/bytes/History.md +0 -97
  170. package/mcp/node_modules/bytes/LICENSE +0 -23
  171. package/mcp/node_modules/bytes/Readme.md +0 -152
  172. package/mcp/node_modules/bytes/index.js +0 -170
  173. package/mcp/node_modules/bytes/package.json +0 -42
  174. package/mcp/node_modules/content-type/HISTORY.md +0 -29
  175. package/mcp/node_modules/content-type/LICENSE +0 -22
  176. package/mcp/node_modules/content-type/README.md +0 -94
  177. package/mcp/node_modules/content-type/index.js +0 -225
  178. package/mcp/node_modules/content-type/package.json +0 -42
  179. package/mcp/node_modules/depd/History.md +0 -103
  180. package/mcp/node_modules/depd/LICENSE +0 -22
  181. package/mcp/node_modules/depd/Readme.md +0 -280
  182. package/mcp/node_modules/depd/index.js +0 -538
  183. package/mcp/node_modules/depd/lib/browser/index.js +0 -77
  184. package/mcp/node_modules/depd/package.json +0 -45
  185. package/mcp/node_modules/http-errors/HISTORY.md +0 -180
  186. package/mcp/node_modules/http-errors/LICENSE +0 -23
  187. package/mcp/node_modules/http-errors/README.md +0 -169
  188. package/mcp/node_modules/http-errors/index.js +0 -289
  189. package/mcp/node_modules/http-errors/package.json +0 -50
  190. package/mcp/node_modules/iconv-lite/Changelog.md +0 -236
  191. package/mcp/node_modules/iconv-lite/LICENSE +0 -21
  192. package/mcp/node_modules/iconv-lite/README.md +0 -138
  193. package/mcp/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -532
  194. package/mcp/node_modules/iconv-lite/encodings/dbcs-data.js +0 -185
  195. package/mcp/node_modules/iconv-lite/encodings/index.js +0 -23
  196. package/mcp/node_modules/iconv-lite/encodings/internal.js +0 -218
  197. package/mcp/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -75
  198. package/mcp/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  199. package/mcp/node_modules/iconv-lite/encodings/sbcs-data.js +0 -178
  200. package/mcp/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  201. package/mcp/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  202. package/mcp/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  203. package/mcp/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  204. package/mcp/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  205. package/mcp/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  206. package/mcp/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
  207. package/mcp/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  208. package/mcp/node_modules/iconv-lite/encodings/utf16.js +0 -187
  209. package/mcp/node_modules/iconv-lite/encodings/utf32.js +0 -307
  210. package/mcp/node_modules/iconv-lite/encodings/utf7.js +0 -283
  211. package/mcp/node_modules/iconv-lite/lib/bom-handling.js +0 -48
  212. package/mcp/node_modules/iconv-lite/lib/helpers/merge-exports.js +0 -13
  213. package/mcp/node_modules/iconv-lite/lib/index.d.ts +0 -41
  214. package/mcp/node_modules/iconv-lite/lib/index.js +0 -183
  215. package/mcp/node_modules/iconv-lite/lib/streams.js +0 -105
  216. package/mcp/node_modules/iconv-lite/package.json +0 -59
  217. package/mcp/node_modules/inherits/LICENSE +0 -16
  218. package/mcp/node_modules/inherits/README.md +0 -42
  219. package/mcp/node_modules/inherits/inherits.js +0 -9
  220. package/mcp/node_modules/inherits/inherits_browser.js +0 -27
  221. package/mcp/node_modules/inherits/package.json +0 -29
  222. package/mcp/node_modules/raw-body/HISTORY.md +0 -333
  223. package/mcp/node_modules/raw-body/LICENSE +0 -22
  224. package/mcp/node_modules/raw-body/README.md +0 -223
  225. package/mcp/node_modules/raw-body/SECURITY.md +0 -24
  226. package/mcp/node_modules/raw-body/index.d.ts +0 -85
  227. package/mcp/node_modules/raw-body/index.js +0 -336
  228. package/mcp/node_modules/raw-body/package.json +0 -50
  229. package/mcp/node_modules/safer-buffer/LICENSE +0 -21
  230. package/mcp/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  231. package/mcp/node_modules/safer-buffer/Readme.md +0 -156
  232. package/mcp/node_modules/safer-buffer/dangerous.js +0 -58
  233. package/mcp/node_modules/safer-buffer/package.json +0 -34
  234. package/mcp/node_modules/safer-buffer/safer.js +0 -77
  235. package/mcp/node_modules/safer-buffer/tests.js +0 -406
  236. package/mcp/node_modules/setprototypeof/LICENSE +0 -13
  237. package/mcp/node_modules/setprototypeof/README.md +0 -31
  238. package/mcp/node_modules/setprototypeof/index.d.ts +0 -2
  239. package/mcp/node_modules/setprototypeof/index.js +0 -17
  240. package/mcp/node_modules/setprototypeof/package.json +0 -38
  241. package/mcp/node_modules/setprototypeof/test/index.js +0 -24
  242. package/mcp/node_modules/statuses/HISTORY.md +0 -82
  243. package/mcp/node_modules/statuses/LICENSE +0 -23
  244. package/mcp/node_modules/statuses/README.md +0 -136
  245. package/mcp/node_modules/statuses/codes.json +0 -65
  246. package/mcp/node_modules/statuses/index.js +0 -146
  247. package/mcp/node_modules/statuses/package.json +0 -49
  248. package/mcp/node_modules/toidentifier/HISTORY.md +0 -9
  249. package/mcp/node_modules/toidentifier/LICENSE +0 -21
  250. package/mcp/node_modules/toidentifier/README.md +0 -61
  251. package/mcp/node_modules/toidentifier/index.js +0 -32
  252. package/mcp/node_modules/toidentifier/package.json +0 -38
  253. package/mcp/node_modules/unpipe/HISTORY.md +0 -4
  254. package/mcp/node_modules/unpipe/LICENSE +0 -22
  255. package/mcp/node_modules/unpipe/README.md +0 -43
  256. package/mcp/node_modules/unpipe/index.js +0 -69
  257. package/mcp/node_modules/unpipe/package.json +0 -27
  258. package/mcp/node_modules/zod/LICENSE +0 -21
  259. package/mcp/node_modules/zod/README.md +0 -208
  260. package/mcp/node_modules/zod/index.cjs +0 -33
  261. package/mcp/node_modules/zod/index.d.cts +0 -4
  262. package/mcp/node_modules/zod/index.d.ts +0 -4
  263. package/mcp/node_modules/zod/index.js +0 -4
  264. package/mcp/node_modules/zod/package.json +0 -118
  265. package/mcp/node_modules/zod/src/index.ts +0 -4
  266. package/mcp/node_modules/zod/src/v3/ZodError.ts +0 -330
  267. package/mcp/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  268. package/mcp/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  269. package/mcp/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  270. package/mcp/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  271. package/mcp/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  272. package/mcp/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  273. package/mcp/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  274. package/mcp/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  275. package/mcp/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  276. package/mcp/node_modules/zod/src/v3/errors.ts +0 -13
  277. package/mcp/node_modules/zod/src/v3/external.ts +0 -6
  278. package/mcp/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  279. package/mcp/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  280. package/mcp/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  281. package/mcp/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  282. package/mcp/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  283. package/mcp/node_modules/zod/src/v3/helpers/util.ts +0 -224
  284. package/mcp/node_modules/zod/src/v3/index.ts +0 -4
  285. package/mcp/node_modules/zod/src/v3/locales/en.ts +0 -124
  286. package/mcp/node_modules/zod/src/v3/standard-schema.ts +0 -113
  287. package/mcp/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  288. package/mcp/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  289. package/mcp/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  290. package/mcp/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  291. package/mcp/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  292. package/mcp/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  293. package/mcp/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  294. package/mcp/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  295. package/mcp/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  296. package/mcp/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  297. package/mcp/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  298. package/mcp/node_modules/zod/src/v3/tests/complex.test.ts +0 -56
  299. package/mcp/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  300. package/mcp/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  301. package/mcp/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  302. package/mcp/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  303. package/mcp/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  304. package/mcp/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  305. package/mcp/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  306. package/mcp/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  307. package/mcp/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  308. package/mcp/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  309. package/mcp/node_modules/zod/src/v3/tests/function.test.ts +0 -257
  310. package/mcp/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  311. package/mcp/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  312. package/mcp/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  313. package/mcp/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  314. package/mcp/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  315. package/mcp/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  316. package/mcp/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  317. package/mcp/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  318. package/mcp/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  319. package/mcp/node_modules/zod/src/v3/tests/nan.test.ts +0 -21
  320. package/mcp/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  321. package/mcp/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  322. package/mcp/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  323. package/mcp/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  324. package/mcp/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  325. package/mcp/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  326. package/mcp/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  327. package/mcp/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  328. package/mcp/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  329. package/mcp/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  330. package/mcp/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  331. package/mcp/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  332. package/mcp/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  333. package/mcp/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  334. package/mcp/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  335. package/mcp/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  336. package/mcp/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  337. package/mcp/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  338. package/mcp/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  339. package/mcp/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  340. package/mcp/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  341. package/mcp/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  342. package/mcp/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  343. package/mcp/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  344. package/mcp/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  345. package/mcp/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  346. package/mcp/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  347. package/mcp/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  348. package/mcp/node_modules/zod/src/v3/types.ts +0 -5136
  349. package/mcp/node_modules/zod/src/v4/classic/checks.ts +0 -30
  350. package/mcp/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  351. package/mcp/node_modules/zod/src/v4/classic/compat.ts +0 -66
  352. package/mcp/node_modules/zod/src/v4/classic/errors.ts +0 -75
  353. package/mcp/node_modules/zod/src/v4/classic/external.ts +0 -50
  354. package/mcp/node_modules/zod/src/v4/classic/index.ts +0 -5
  355. package/mcp/node_modules/zod/src/v4/classic/iso.ts +0 -90
  356. package/mcp/node_modules/zod/src/v4/classic/parse.ts +0 -33
  357. package/mcp/node_modules/zod/src/v4/classic/schemas.ts +0 -2054
  358. package/mcp/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  359. package/mcp/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  360. package/mcp/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
  361. package/mcp/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  362. package/mcp/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  363. package/mcp/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  364. package/mcp/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  365. package/mcp/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -63
  366. package/mcp/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -252
  367. package/mcp/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  368. package/mcp/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  369. package/mcp/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -352
  370. package/mcp/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  371. package/mcp/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -31
  372. package/mcp/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -296
  373. package/mcp/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -313
  374. package/mcp/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  375. package/mcp/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -619
  376. package/mcp/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  377. package/mcp/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -527
  378. package/mcp/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  379. package/mcp/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -91
  380. package/mcp/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -175
  381. package/mcp/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -268
  382. package/mcp/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  383. package/mcp/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -829
  384. package/mcp/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -34
  385. package/mcp/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -171
  386. package/mcp/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -108
  387. package/mcp/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  388. package/mcp/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -92
  389. package/mcp/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -196
  390. package/mcp/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  391. package/mcp/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  392. package/mcp/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -86
  393. package/mcp/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  394. package/mcp/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -247
  395. package/mcp/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -563
  396. package/mcp/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -123
  397. package/mcp/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -147
  398. package/mcp/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -127
  399. package/mcp/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -81
  400. package/mcp/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -37
  401. package/mcp/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -298
  402. package/mcp/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  403. package/mcp/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  404. package/mcp/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  405. package/mcp/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  406. package/mcp/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -342
  407. package/mcp/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -356
  408. package/mcp/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -532
  409. package/mcp/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -204
  410. package/mcp/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -179
  411. package/mcp/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -57
  412. package/mcp/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -109
  413. package/mcp/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -881
  414. package/mcp/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -66
  415. package/mcp/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -758
  416. package/mcp/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2314
  417. package/mcp/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -250
  418. package/mcp/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -163
  419. package/mcp/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -94
  420. package/mcp/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  421. package/mcp/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  422. package/mcp/node_modules/zod/src/v4/core/api.ts +0 -1594
  423. package/mcp/node_modules/zod/src/v4/core/checks.ts +0 -1283
  424. package/mcp/node_modules/zod/src/v4/core/config.ts +0 -15
  425. package/mcp/node_modules/zod/src/v4/core/core.ts +0 -134
  426. package/mcp/node_modules/zod/src/v4/core/doc.ts +0 -44
  427. package/mcp/node_modules/zod/src/v4/core/errors.ts +0 -424
  428. package/mcp/node_modules/zod/src/v4/core/function.ts +0 -176
  429. package/mcp/node_modules/zod/src/v4/core/index.ts +0 -15
  430. package/mcp/node_modules/zod/src/v4/core/json-schema.ts +0 -143
  431. package/mcp/node_modules/zod/src/v4/core/parse.ts +0 -94
  432. package/mcp/node_modules/zod/src/v4/core/regexes.ts +0 -135
  433. package/mcp/node_modules/zod/src/v4/core/registries.ts +0 -96
  434. package/mcp/node_modules/zod/src/v4/core/schemas.ts +0 -3842
  435. package/mcp/node_modules/zod/src/v4/core/standard-schema.ts +0 -64
  436. package/mcp/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  437. package/mcp/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  438. package/mcp/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  439. package/mcp/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  440. package/mcp/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  441. package/mcp/node_modules/zod/src/v4/core/to-json-schema.ts +0 -977
  442. package/mcp/node_modules/zod/src/v4/core/util.ts +0 -775
  443. package/mcp/node_modules/zod/src/v4/core/versions.ts +0 -5
  444. package/mcp/node_modules/zod/src/v4/core/zsf.ts +0 -323
  445. package/mcp/node_modules/zod/src/v4/index.ts +0 -4
  446. package/mcp/node_modules/zod/src/v4/locales/ar.ts +0 -125
  447. package/mcp/node_modules/zod/src/v4/locales/az.ts +0 -121
  448. package/mcp/node_modules/zod/src/v4/locales/be.ts +0 -184
  449. package/mcp/node_modules/zod/src/v4/locales/ca.ts +0 -127
  450. package/mcp/node_modules/zod/src/v4/locales/cs.ts +0 -142
  451. package/mcp/node_modules/zod/src/v4/locales/de.ts +0 -124
  452. package/mcp/node_modules/zod/src/v4/locales/en.ts +0 -127
  453. package/mcp/node_modules/zod/src/v4/locales/eo.ts +0 -125
  454. package/mcp/node_modules/zod/src/v4/locales/es.ts +0 -125
  455. package/mcp/node_modules/zod/src/v4/locales/fa.ts +0 -134
  456. package/mcp/node_modules/zod/src/v4/locales/fi.ts +0 -131
  457. package/mcp/node_modules/zod/src/v4/locales/fr-CA.ts +0 -126
  458. package/mcp/node_modules/zod/src/v4/locales/fr.ts +0 -124
  459. package/mcp/node_modules/zod/src/v4/locales/he.ts +0 -125
  460. package/mcp/node_modules/zod/src/v4/locales/hu.ts +0 -126
  461. package/mcp/node_modules/zod/src/v4/locales/id.ts +0 -125
  462. package/mcp/node_modules/zod/src/v4/locales/index.ts +0 -39
  463. package/mcp/node_modules/zod/src/v4/locales/it.ts +0 -125
  464. package/mcp/node_modules/zod/src/v4/locales/ja.ts +0 -122
  465. package/mcp/node_modules/zod/src/v4/locales/kh.ts +0 -126
  466. package/mcp/node_modules/zod/src/v4/locales/ko.ts +0 -131
  467. package/mcp/node_modules/zod/src/v4/locales/mk.ts +0 -127
  468. package/mcp/node_modules/zod/src/v4/locales/ms.ts +0 -124
  469. package/mcp/node_modules/zod/src/v4/locales/nl.ts +0 -126
  470. package/mcp/node_modules/zod/src/v4/locales/no.ts +0 -124
  471. package/mcp/node_modules/zod/src/v4/locales/ota.ts +0 -125
  472. package/mcp/node_modules/zod/src/v4/locales/pl.ts +0 -126
  473. package/mcp/node_modules/zod/src/v4/locales/ps.ts +0 -133
  474. package/mcp/node_modules/zod/src/v4/locales/pt.ts +0 -123
  475. package/mcp/node_modules/zod/src/v4/locales/ru.ts +0 -184
  476. package/mcp/node_modules/zod/src/v4/locales/sl.ts +0 -126
  477. package/mcp/node_modules/zod/src/v4/locales/sv.ts +0 -127
  478. package/mcp/node_modules/zod/src/v4/locales/ta.ts +0 -125
  479. package/mcp/node_modules/zod/src/v4/locales/th.ts +0 -126
  480. package/mcp/node_modules/zod/src/v4/locales/tr.ts +0 -121
  481. package/mcp/node_modules/zod/src/v4/locales/ua.ts +0 -126
  482. package/mcp/node_modules/zod/src/v4/locales/ur.ts +0 -126
  483. package/mcp/node_modules/zod/src/v4/locales/vi.ts +0 -125
  484. package/mcp/node_modules/zod/src/v4/locales/zh-CN.ts +0 -123
  485. package/mcp/node_modules/zod/src/v4/locales/zh-TW.ts +0 -125
  486. package/mcp/node_modules/zod/src/v4/mini/checks.ts +0 -32
  487. package/mcp/node_modules/zod/src/v4/mini/coerce.ts +0 -22
  488. package/mcp/node_modules/zod/src/v4/mini/external.ts +0 -40
  489. package/mcp/node_modules/zod/src/v4/mini/index.ts +0 -3
  490. package/mcp/node_modules/zod/src/v4/mini/iso.ts +0 -62
  491. package/mcp/node_modules/zod/src/v4/mini/parse.ts +0 -1
  492. package/mcp/node_modules/zod/src/v4/mini/schemas.ts +0 -1579
  493. package/mcp/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  494. package/mcp/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -51
  495. package/mcp/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  496. package/mcp/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  497. package/mcp/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  498. package/mcp/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -43
  499. package/mcp/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -871
  500. package/mcp/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  501. package/mcp/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -185
  502. package/mcp/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  503. package/mcp/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
  504. package/mcp/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -299
  505. package/mcp/node_modules/zod/src/v4-mini/index.ts +0 -1
  506. package/mcp/node_modules/zod/v3/ZodError.cjs +0 -138
  507. package/mcp/node_modules/zod/v3/ZodError.d.cts +0 -164
  508. package/mcp/node_modules/zod/v3/ZodError.d.ts +0 -164
  509. package/mcp/node_modules/zod/v3/ZodError.js +0 -133
  510. package/mcp/node_modules/zod/v3/errors.cjs +0 -17
  511. package/mcp/node_modules/zod/v3/errors.d.cts +0 -5
  512. package/mcp/node_modules/zod/v3/errors.d.ts +0 -5
  513. package/mcp/node_modules/zod/v3/errors.js +0 -9
  514. package/mcp/node_modules/zod/v3/external.cjs +0 -22
  515. package/mcp/node_modules/zod/v3/external.d.cts +0 -6
  516. package/mcp/node_modules/zod/v3/external.d.ts +0 -6
  517. package/mcp/node_modules/zod/v3/external.js +0 -6
  518. package/mcp/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  519. package/mcp/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  520. package/mcp/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  521. package/mcp/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  522. package/mcp/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  523. package/mcp/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  524. package/mcp/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  525. package/mcp/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  526. package/mcp/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  527. package/mcp/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  528. package/mcp/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  529. package/mcp/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  530. package/mcp/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  531. package/mcp/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  532. package/mcp/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  533. package/mcp/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  534. package/mcp/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  535. package/mcp/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  536. package/mcp/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  537. package/mcp/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  538. package/mcp/node_modules/zod/v3/helpers/util.cjs +0 -137
  539. package/mcp/node_modules/zod/v3/helpers/util.d.cts +0 -85
  540. package/mcp/node_modules/zod/v3/helpers/util.d.ts +0 -85
  541. package/mcp/node_modules/zod/v3/helpers/util.js +0 -133
  542. package/mcp/node_modules/zod/v3/index.cjs +0 -33
  543. package/mcp/node_modules/zod/v3/index.d.cts +0 -4
  544. package/mcp/node_modules/zod/v3/index.d.ts +0 -4
  545. package/mcp/node_modules/zod/v3/index.js +0 -4
  546. package/mcp/node_modules/zod/v3/locales/en.cjs +0 -111
  547. package/mcp/node_modules/zod/v3/locales/en.d.cts +0 -3
  548. package/mcp/node_modules/zod/v3/locales/en.d.ts +0 -3
  549. package/mcp/node_modules/zod/v3/locales/en.js +0 -109
  550. package/mcp/node_modules/zod/v3/standard-schema.cjs +0 -2
  551. package/mcp/node_modules/zod/v3/standard-schema.d.cts +0 -102
  552. package/mcp/node_modules/zod/v3/standard-schema.d.ts +0 -102
  553. package/mcp/node_modules/zod/v3/standard-schema.js +0 -1
  554. package/mcp/node_modules/zod/v3/types.cjs +0 -3775
  555. package/mcp/node_modules/zod/v3/types.d.cts +0 -1031
  556. package/mcp/node_modules/zod/v3/types.d.ts +0 -1031
  557. package/mcp/node_modules/zod/v3/types.js +0 -3693
  558. package/mcp/node_modules/zod/v4/classic/checks.cjs +0 -32
  559. package/mcp/node_modules/zod/v4/classic/checks.d.cts +0 -1
  560. package/mcp/node_modules/zod/v4/classic/checks.d.ts +0 -1
  561. package/mcp/node_modules/zod/v4/classic/checks.js +0 -1
  562. package/mcp/node_modules/zod/v4/classic/coerce.cjs +0 -47
  563. package/mcp/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  564. package/mcp/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  565. package/mcp/node_modules/zod/v4/classic/coerce.js +0 -17
  566. package/mcp/node_modules/zod/v4/classic/compat.cjs +0 -57
  567. package/mcp/node_modules/zod/v4/classic/compat.d.cts +0 -46
  568. package/mcp/node_modules/zod/v4/classic/compat.d.ts +0 -46
  569. package/mcp/node_modules/zod/v4/classic/compat.js +0 -27
  570. package/mcp/node_modules/zod/v4/classic/errors.cjs +0 -67
  571. package/mcp/node_modules/zod/v4/classic/errors.d.cts +0 -30
  572. package/mcp/node_modules/zod/v4/classic/errors.d.ts +0 -30
  573. package/mcp/node_modules/zod/v4/classic/errors.js +0 -41
  574. package/mcp/node_modules/zod/v4/classic/external.cjs +0 -70
  575. package/mcp/node_modules/zod/v4/classic/external.d.cts +0 -13
  576. package/mcp/node_modules/zod/v4/classic/external.d.ts +0 -13
  577. package/mcp/node_modules/zod/v4/classic/external.js +0 -18
  578. package/mcp/node_modules/zod/v4/classic/index.cjs +0 -33
  579. package/mcp/node_modules/zod/v4/classic/index.d.cts +0 -4
  580. package/mcp/node_modules/zod/v4/classic/index.d.ts +0 -4
  581. package/mcp/node_modules/zod/v4/classic/index.js +0 -4
  582. package/mcp/node_modules/zod/v4/classic/iso.cjs +0 -60
  583. package/mcp/node_modules/zod/v4/classic/iso.d.cts +0 -22
  584. package/mcp/node_modules/zod/v4/classic/iso.d.ts +0 -22
  585. package/mcp/node_modules/zod/v4/classic/iso.js +0 -30
  586. package/mcp/node_modules/zod/v4/classic/parse.cjs +0 -32
  587. package/mcp/node_modules/zod/v4/classic/parse.d.cts +0 -23
  588. package/mcp/node_modules/zod/v4/classic/parse.d.ts +0 -23
  589. package/mcp/node_modules/zod/v4/classic/parse.js +0 -6
  590. package/mcp/node_modules/zod/v4/classic/schemas.cjs +0 -1109
  591. package/mcp/node_modules/zod/v4/classic/schemas.d.cts +0 -630
  592. package/mcp/node_modules/zod/v4/classic/schemas.d.ts +0 -630
  593. package/mcp/node_modules/zod/v4/classic/schemas.js +0 -1006
  594. package/mcp/node_modules/zod/v4/core/api.cjs +0 -1039
  595. package/mcp/node_modules/zod/v4/core/api.d.cts +0 -284
  596. package/mcp/node_modules/zod/v4/core/api.d.ts +0 -284
  597. package/mcp/node_modules/zod/v4/core/api.js +0 -906
  598. package/mcp/node_modules/zod/v4/core/checks.cjs +0 -591
  599. package/mcp/node_modules/zod/v4/core/checks.d.cts +0 -278
  600. package/mcp/node_modules/zod/v4/core/checks.d.ts +0 -278
  601. package/mcp/node_modules/zod/v4/core/checks.js +0 -565
  602. package/mcp/node_modules/zod/v4/core/core.cjs +0 -67
  603. package/mcp/node_modules/zod/v4/core/core.d.cts +0 -49
  604. package/mcp/node_modules/zod/v4/core/core.d.ts +0 -49
  605. package/mcp/node_modules/zod/v4/core/core.js +0 -61
  606. package/mcp/node_modules/zod/v4/core/doc.cjs +0 -39
  607. package/mcp/node_modules/zod/v4/core/doc.d.cts +0 -14
  608. package/mcp/node_modules/zod/v4/core/doc.d.ts +0 -14
  609. package/mcp/node_modules/zod/v4/core/doc.js +0 -35
  610. package/mcp/node_modules/zod/v4/core/errors.cjs +0 -226
  611. package/mcp/node_modules/zod/v4/core/errors.d.cts +0 -208
  612. package/mcp/node_modules/zod/v4/core/errors.d.ts +0 -208
  613. package/mcp/node_modules/zod/v4/core/errors.js +0 -195
  614. package/mcp/node_modules/zod/v4/core/function.cjs +0 -102
  615. package/mcp/node_modules/zod/v4/core/function.d.cts +0 -52
  616. package/mcp/node_modules/zod/v4/core/function.d.ts +0 -52
  617. package/mcp/node_modules/zod/v4/core/function.js +0 -75
  618. package/mcp/node_modules/zod/v4/core/index.cjs +0 -44
  619. package/mcp/node_modules/zod/v4/core/index.d.cts +0 -15
  620. package/mcp/node_modules/zod/v4/core/index.d.ts +0 -15
  621. package/mcp/node_modules/zod/v4/core/index.js +0 -15
  622. package/mcp/node_modules/zod/v4/core/json-schema.cjs +0 -2
  623. package/mcp/node_modules/zod/v4/core/json-schema.d.cts +0 -87
  624. package/mcp/node_modules/zod/v4/core/json-schema.d.ts +0 -87
  625. package/mcp/node_modules/zod/v4/core/json-schema.js +0 -1
  626. package/mcp/node_modules/zod/v4/core/parse.cjs +0 -87
  627. package/mcp/node_modules/zod/v4/core/parse.d.cts +0 -25
  628. package/mcp/node_modules/zod/v4/core/parse.d.ts +0 -25
  629. package/mcp/node_modules/zod/v4/core/parse.js +0 -57
  630. package/mcp/node_modules/zod/v4/core/regexes.cjs +0 -103
  631. package/mcp/node_modules/zod/v4/core/regexes.d.cts +0 -62
  632. package/mcp/node_modules/zod/v4/core/regexes.d.ts +0 -62
  633. package/mcp/node_modules/zod/v4/core/regexes.js +0 -95
  634. package/mcp/node_modules/zod/v4/core/registries.cjs +0 -56
  635. package/mcp/node_modules/zod/v4/core/registries.d.cts +0 -35
  636. package/mcp/node_modules/zod/v4/core/registries.d.ts +0 -35
  637. package/mcp/node_modules/zod/v4/core/registries.js +0 -51
  638. package/mcp/node_modules/zod/v4/core/schemas.cjs +0 -1748
  639. package/mcp/node_modules/zod/v4/core/schemas.d.cts +0 -1041
  640. package/mcp/node_modules/zod/v4/core/schemas.d.ts +0 -1041
  641. package/mcp/node_modules/zod/v4/core/schemas.js +0 -1717
  642. package/mcp/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  643. package/mcp/node_modules/zod/v4/core/standard-schema.d.cts +0 -55
  644. package/mcp/node_modules/zod/v4/core/standard-schema.d.ts +0 -55
  645. package/mcp/node_modules/zod/v4/core/standard-schema.js +0 -1
  646. package/mcp/node_modules/zod/v4/core/to-json-schema.cjs +0 -854
  647. package/mcp/node_modules/zod/v4/core/to-json-schema.d.cts +0 -88
  648. package/mcp/node_modules/zod/v4/core/to-json-schema.d.ts +0 -88
  649. package/mcp/node_modules/zod/v4/core/to-json-schema.js +0 -849
  650. package/mcp/node_modules/zod/v4/core/util.cjs +0 -539
  651. package/mcp/node_modules/zod/v4/core/util.d.cts +0 -183
  652. package/mcp/node_modules/zod/v4/core/util.d.ts +0 -183
  653. package/mcp/node_modules/zod/v4/core/util.js +0 -493
  654. package/mcp/node_modules/zod/v4/core/versions.cjs +0 -8
  655. package/mcp/node_modules/zod/v4/core/versions.d.cts +0 -5
  656. package/mcp/node_modules/zod/v4/core/versions.d.ts +0 -5
  657. package/mcp/node_modules/zod/v4/core/versions.js +0 -5
  658. package/mcp/node_modules/zod/v4/index.cjs +0 -22
  659. package/mcp/node_modules/zod/v4/index.d.cts +0 -3
  660. package/mcp/node_modules/zod/v4/index.d.ts +0 -3
  661. package/mcp/node_modules/zod/v4/index.js +0 -3
  662. package/mcp/node_modules/zod/v4/locales/ar.cjs +0 -142
  663. package/mcp/node_modules/zod/v4/locales/ar.d.cts +0 -4
  664. package/mcp/node_modules/zod/v4/locales/ar.d.ts +0 -4
  665. package/mcp/node_modules/zod/v4/locales/ar.js +0 -116
  666. package/mcp/node_modules/zod/v4/locales/az.cjs +0 -141
  667. package/mcp/node_modules/zod/v4/locales/az.d.cts +0 -4
  668. package/mcp/node_modules/zod/v4/locales/az.d.ts +0 -4
  669. package/mcp/node_modules/zod/v4/locales/az.js +0 -115
  670. package/mcp/node_modules/zod/v4/locales/be.cjs +0 -190
  671. package/mcp/node_modules/zod/v4/locales/be.d.cts +0 -4
  672. package/mcp/node_modules/zod/v4/locales/be.d.ts +0 -4
  673. package/mcp/node_modules/zod/v4/locales/be.js +0 -164
  674. package/mcp/node_modules/zod/v4/locales/ca.cjs +0 -144
  675. package/mcp/node_modules/zod/v4/locales/ca.d.cts +0 -4
  676. package/mcp/node_modules/zod/v4/locales/ca.d.ts +0 -4
  677. package/mcp/node_modules/zod/v4/locales/ca.js +0 -118
  678. package/mcp/node_modules/zod/v4/locales/cs.cjs +0 -161
  679. package/mcp/node_modules/zod/v4/locales/cs.d.cts +0 -4
  680. package/mcp/node_modules/zod/v4/locales/cs.d.ts +0 -4
  681. package/mcp/node_modules/zod/v4/locales/cs.js +0 -135
  682. package/mcp/node_modules/zod/v4/locales/de.cjs +0 -142
  683. package/mcp/node_modules/zod/v4/locales/de.d.cts +0 -4
  684. package/mcp/node_modules/zod/v4/locales/de.d.ts +0 -4
  685. package/mcp/node_modules/zod/v4/locales/de.js +0 -116
  686. package/mcp/node_modules/zod/v4/locales/en.cjs +0 -145
  687. package/mcp/node_modules/zod/v4/locales/en.d.cts +0 -5
  688. package/mcp/node_modules/zod/v4/locales/en.d.ts +0 -5
  689. package/mcp/node_modules/zod/v4/locales/en.js +0 -117
  690. package/mcp/node_modules/zod/v4/locales/eo.cjs +0 -144
  691. package/mcp/node_modules/zod/v4/locales/eo.d.cts +0 -5
  692. package/mcp/node_modules/zod/v4/locales/eo.d.ts +0 -5
  693. package/mcp/node_modules/zod/v4/locales/eo.js +0 -116
  694. package/mcp/node_modules/zod/v4/locales/es.cjs +0 -143
  695. package/mcp/node_modules/zod/v4/locales/es.d.cts +0 -4
  696. package/mcp/node_modules/zod/v4/locales/es.d.ts +0 -4
  697. package/mcp/node_modules/zod/v4/locales/es.js +0 -117
  698. package/mcp/node_modules/zod/v4/locales/fa.cjs +0 -148
  699. package/mcp/node_modules/zod/v4/locales/fa.d.cts +0 -4
  700. package/mcp/node_modules/zod/v4/locales/fa.d.ts +0 -4
  701. package/mcp/node_modules/zod/v4/locales/fa.js +0 -122
  702. package/mcp/node_modules/zod/v4/locales/fi.cjs +0 -148
  703. package/mcp/node_modules/zod/v4/locales/fi.d.cts +0 -4
  704. package/mcp/node_modules/zod/v4/locales/fi.d.ts +0 -4
  705. package/mcp/node_modules/zod/v4/locales/fi.js +0 -122
  706. package/mcp/node_modules/zod/v4/locales/fr-CA.cjs +0 -143
  707. package/mcp/node_modules/zod/v4/locales/fr-CA.d.cts +0 -4
  708. package/mcp/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  709. package/mcp/node_modules/zod/v4/locales/fr-CA.js +0 -117
  710. package/mcp/node_modules/zod/v4/locales/fr.cjs +0 -142
  711. package/mcp/node_modules/zod/v4/locales/fr.d.cts +0 -4
  712. package/mcp/node_modules/zod/v4/locales/fr.d.ts +0 -4
  713. package/mcp/node_modules/zod/v4/locales/fr.js +0 -116
  714. package/mcp/node_modules/zod/v4/locales/he.cjs +0 -143
  715. package/mcp/node_modules/zod/v4/locales/he.d.cts +0 -4
  716. package/mcp/node_modules/zod/v4/locales/he.d.ts +0 -4
  717. package/mcp/node_modules/zod/v4/locales/he.js +0 -117
  718. package/mcp/node_modules/zod/v4/locales/hu.cjs +0 -143
  719. package/mcp/node_modules/zod/v4/locales/hu.d.cts +0 -4
  720. package/mcp/node_modules/zod/v4/locales/hu.d.ts +0 -4
  721. package/mcp/node_modules/zod/v4/locales/hu.js +0 -117
  722. package/mcp/node_modules/zod/v4/locales/id.cjs +0 -142
  723. package/mcp/node_modules/zod/v4/locales/id.d.cts +0 -4
  724. package/mcp/node_modules/zod/v4/locales/id.d.ts +0 -4
  725. package/mcp/node_modules/zod/v4/locales/id.js +0 -116
  726. package/mcp/node_modules/zod/v4/locales/index.cjs +0 -84
  727. package/mcp/node_modules/zod/v4/locales/index.d.cts +0 -39
  728. package/mcp/node_modules/zod/v4/locales/index.d.ts +0 -39
  729. package/mcp/node_modules/zod/v4/locales/index.js +0 -39
  730. package/mcp/node_modules/zod/v4/locales/it.cjs +0 -143
  731. package/mcp/node_modules/zod/v4/locales/it.d.cts +0 -4
  732. package/mcp/node_modules/zod/v4/locales/it.d.ts +0 -4
  733. package/mcp/node_modules/zod/v4/locales/it.js +0 -117
  734. package/mcp/node_modules/zod/v4/locales/ja.cjs +0 -141
  735. package/mcp/node_modules/zod/v4/locales/ja.d.cts +0 -4
  736. package/mcp/node_modules/zod/v4/locales/ja.d.ts +0 -4
  737. package/mcp/node_modules/zod/v4/locales/ja.js +0 -115
  738. package/mcp/node_modules/zod/v4/locales/kh.cjs +0 -143
  739. package/mcp/node_modules/zod/v4/locales/kh.d.cts +0 -4
  740. package/mcp/node_modules/zod/v4/locales/kh.d.ts +0 -4
  741. package/mcp/node_modules/zod/v4/locales/kh.js +0 -117
  742. package/mcp/node_modules/zod/v4/locales/ko.cjs +0 -147
  743. package/mcp/node_modules/zod/v4/locales/ko.d.cts +0 -4
  744. package/mcp/node_modules/zod/v4/locales/ko.d.ts +0 -4
  745. package/mcp/node_modules/zod/v4/locales/ko.js +0 -121
  746. package/mcp/node_modules/zod/v4/locales/mk.cjs +0 -144
  747. package/mcp/node_modules/zod/v4/locales/mk.d.cts +0 -4
  748. package/mcp/node_modules/zod/v4/locales/mk.d.ts +0 -4
  749. package/mcp/node_modules/zod/v4/locales/mk.js +0 -118
  750. package/mcp/node_modules/zod/v4/locales/ms.cjs +0 -142
  751. package/mcp/node_modules/zod/v4/locales/ms.d.cts +0 -4
  752. package/mcp/node_modules/zod/v4/locales/ms.d.ts +0 -4
  753. package/mcp/node_modules/zod/v4/locales/ms.js +0 -116
  754. package/mcp/node_modules/zod/v4/locales/nl.cjs +0 -143
  755. package/mcp/node_modules/zod/v4/locales/nl.d.cts +0 -4
  756. package/mcp/node_modules/zod/v4/locales/nl.d.ts +0 -4
  757. package/mcp/node_modules/zod/v4/locales/nl.js +0 -117
  758. package/mcp/node_modules/zod/v4/locales/no.cjs +0 -142
  759. package/mcp/node_modules/zod/v4/locales/no.d.cts +0 -4
  760. package/mcp/node_modules/zod/v4/locales/no.d.ts +0 -4
  761. package/mcp/node_modules/zod/v4/locales/no.js +0 -116
  762. package/mcp/node_modules/zod/v4/locales/ota.cjs +0 -143
  763. package/mcp/node_modules/zod/v4/locales/ota.d.cts +0 -4
  764. package/mcp/node_modules/zod/v4/locales/ota.d.ts +0 -4
  765. package/mcp/node_modules/zod/v4/locales/ota.js +0 -117
  766. package/mcp/node_modules/zod/v4/locales/pl.cjs +0 -143
  767. package/mcp/node_modules/zod/v4/locales/pl.d.cts +0 -4
  768. package/mcp/node_modules/zod/v4/locales/pl.d.ts +0 -4
  769. package/mcp/node_modules/zod/v4/locales/pl.js +0 -117
  770. package/mcp/node_modules/zod/v4/locales/ps.cjs +0 -148
  771. package/mcp/node_modules/zod/v4/locales/ps.d.cts +0 -4
  772. package/mcp/node_modules/zod/v4/locales/ps.d.ts +0 -4
  773. package/mcp/node_modules/zod/v4/locales/ps.js +0 -122
  774. package/mcp/node_modules/zod/v4/locales/pt.cjs +0 -142
  775. package/mcp/node_modules/zod/v4/locales/pt.d.cts +0 -4
  776. package/mcp/node_modules/zod/v4/locales/pt.d.ts +0 -4
  777. package/mcp/node_modules/zod/v4/locales/pt.js +0 -116
  778. package/mcp/node_modules/zod/v4/locales/ru.cjs +0 -190
  779. package/mcp/node_modules/zod/v4/locales/ru.d.cts +0 -4
  780. package/mcp/node_modules/zod/v4/locales/ru.d.ts +0 -4
  781. package/mcp/node_modules/zod/v4/locales/ru.js +0 -164
  782. package/mcp/node_modules/zod/v4/locales/sl.cjs +0 -143
  783. package/mcp/node_modules/zod/v4/locales/sl.d.cts +0 -4
  784. package/mcp/node_modules/zod/v4/locales/sl.d.ts +0 -4
  785. package/mcp/node_modules/zod/v4/locales/sl.js +0 -117
  786. package/mcp/node_modules/zod/v4/locales/sv.cjs +0 -144
  787. package/mcp/node_modules/zod/v4/locales/sv.d.cts +0 -4
  788. package/mcp/node_modules/zod/v4/locales/sv.d.ts +0 -4
  789. package/mcp/node_modules/zod/v4/locales/sv.js +0 -118
  790. package/mcp/node_modules/zod/v4/locales/ta.cjs +0 -143
  791. package/mcp/node_modules/zod/v4/locales/ta.d.cts +0 -4
  792. package/mcp/node_modules/zod/v4/locales/ta.d.ts +0 -4
  793. package/mcp/node_modules/zod/v4/locales/ta.js +0 -117
  794. package/mcp/node_modules/zod/v4/locales/th.cjs +0 -143
  795. package/mcp/node_modules/zod/v4/locales/th.d.cts +0 -4
  796. package/mcp/node_modules/zod/v4/locales/th.d.ts +0 -4
  797. package/mcp/node_modules/zod/v4/locales/th.js +0 -117
  798. package/mcp/node_modules/zod/v4/locales/tr.cjs +0 -143
  799. package/mcp/node_modules/zod/v4/locales/tr.d.cts +0 -5
  800. package/mcp/node_modules/zod/v4/locales/tr.d.ts +0 -5
  801. package/mcp/node_modules/zod/v4/locales/tr.js +0 -115
  802. package/mcp/node_modules/zod/v4/locales/ua.cjs +0 -143
  803. package/mcp/node_modules/zod/v4/locales/ua.d.cts +0 -4
  804. package/mcp/node_modules/zod/v4/locales/ua.d.ts +0 -4
  805. package/mcp/node_modules/zod/v4/locales/ua.js +0 -117
  806. package/mcp/node_modules/zod/v4/locales/ur.cjs +0 -143
  807. package/mcp/node_modules/zod/v4/locales/ur.d.cts +0 -4
  808. package/mcp/node_modules/zod/v4/locales/ur.d.ts +0 -4
  809. package/mcp/node_modules/zod/v4/locales/ur.js +0 -117
  810. package/mcp/node_modules/zod/v4/locales/vi.cjs +0 -142
  811. package/mcp/node_modules/zod/v4/locales/vi.d.cts +0 -4
  812. package/mcp/node_modules/zod/v4/locales/vi.d.ts +0 -4
  813. package/mcp/node_modules/zod/v4/locales/vi.js +0 -116
  814. package/mcp/node_modules/zod/v4/locales/zh-CN.cjs +0 -142
  815. package/mcp/node_modules/zod/v4/locales/zh-CN.d.cts +0 -4
  816. package/mcp/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  817. package/mcp/node_modules/zod/v4/locales/zh-CN.js +0 -116
  818. package/mcp/node_modules/zod/v4/locales/zh-TW.cjs +0 -143
  819. package/mcp/node_modules/zod/v4/locales/zh-TW.d.cts +0 -4
  820. package/mcp/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  821. package/mcp/node_modules/zod/v4/locales/zh-TW.js +0 -117
  822. package/mcp/node_modules/zod/v4/mini/checks.cjs +0 -34
  823. package/mcp/node_modules/zod/v4/mini/checks.d.cts +0 -1
  824. package/mcp/node_modules/zod/v4/mini/checks.d.ts +0 -1
  825. package/mcp/node_modules/zod/v4/mini/checks.js +0 -1
  826. package/mcp/node_modules/zod/v4/mini/coerce.cjs +0 -47
  827. package/mcp/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  828. package/mcp/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  829. package/mcp/node_modules/zod/v4/mini/coerce.js +0 -17
  830. package/mcp/node_modules/zod/v4/mini/external.cjs +0 -62
  831. package/mcp/node_modules/zod/v4/mini/external.d.cts +0 -11
  832. package/mcp/node_modules/zod/v4/mini/external.d.ts +0 -11
  833. package/mcp/node_modules/zod/v4/mini/external.js +0 -13
  834. package/mcp/node_modules/zod/v4/mini/index.cjs +0 -32
  835. package/mcp/node_modules/zod/v4/mini/index.d.cts +0 -3
  836. package/mcp/node_modules/zod/v4/mini/index.d.ts +0 -3
  837. package/mcp/node_modules/zod/v4/mini/index.js +0 -3
  838. package/mcp/node_modules/zod/v4/mini/iso.cjs +0 -60
  839. package/mcp/node_modules/zod/v4/mini/iso.d.cts +0 -22
  840. package/mcp/node_modules/zod/v4/mini/iso.d.ts +0 -22
  841. package/mcp/node_modules/zod/v4/mini/iso.js +0 -30
  842. package/mcp/node_modules/zod/v4/mini/parse.cjs +0 -8
  843. package/mcp/node_modules/zod/v4/mini/parse.d.cts +0 -1
  844. package/mcp/node_modules/zod/v4/mini/parse.d.ts +0 -1
  845. package/mcp/node_modules/zod/v4/mini/parse.js +0 -1
  846. package/mcp/node_modules/zod/v4/mini/schemas.cjs +0 -839
  847. package/mcp/node_modules/zod/v4/mini/schemas.d.cts +0 -356
  848. package/mcp/node_modules/zod/v4/mini/schemas.d.ts +0 -356
  849. package/mcp/node_modules/zod/v4/mini/schemas.js +0 -732
  850. package/mcp/node_modules/zod/v4-mini/index.cjs +0 -17
  851. package/mcp/node_modules/zod/v4-mini/index.d.cts +0 -1
  852. package/mcp/node_modules/zod/v4-mini/index.d.ts +0 -1
  853. package/mcp/node_modules/zod/v4-mini/index.js +0 -1
  854. package/mcp/src/__pycache__/server.cpython-312.pyc +0 -0
  855. package/mcp/src/__pycache__/server_core.cpython-312.pyc +0 -0
  856. package/mcp/test/__pycache__/test_server.cpython-312-pytest-8.4.1.pyc +0 -0
  857. package/mcp/test/__pycache__/test_server.cpython-312.pyc +0 -0
  858. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/.package-lock.json +0 -113
  859. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/colour/LICENSE.md +0 -82
  860. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/colour/README.md +0 -15
  861. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/colour/color.cjs +0 -1594
  862. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/colour/index.cjs +0 -1
  863. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/colour/package.json +0 -45
  864. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-darwin-arm64/LICENSE +0 -191
  865. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-darwin-arm64/README.md +0 -18
  866. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
  867. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-darwin-arm64/package.json +0 -40
  868. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-libvips-darwin-arm64/README.md +0 -46
  869. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h +0 -220
  870. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-libvips-darwin-arm64/lib/index.js +0 -1
  871. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib +0 -0
  872. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-libvips-darwin-arm64/package.json +0 -36
  873. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +0 -30
  874. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/LICENSE +0 -201
  875. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/README.md +0 -163
  876. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/index.d.ts +0 -14
  877. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/lib/detect-libc.js +0 -313
  878. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/lib/elf.js +0 -39
  879. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/lib/filesystem.js +0 -51
  880. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/lib/process.js +0 -24
  881. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/detect-libc/package.json +0 -44
  882. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/LICENSE +0 -15
  883. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/README.md +0 -664
  884. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/bin/semver.js +0 -191
  885. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/classes/comparator.js +0 -143
  886. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/classes/index.js +0 -7
  887. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/classes/range.js +0 -557
  888. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/classes/semver.js +0 -333
  889. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/clean.js +0 -8
  890. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/cmp.js +0 -54
  891. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/coerce.js +0 -62
  892. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/compare-build.js +0 -9
  893. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/compare-loose.js +0 -5
  894. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/compare.js +0 -7
  895. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/diff.js +0 -60
  896. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/eq.js +0 -5
  897. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/gt.js +0 -5
  898. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/gte.js +0 -5
  899. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/inc.js +0 -21
  900. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/lt.js +0 -5
  901. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/lte.js +0 -5
  902. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/major.js +0 -5
  903. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/minor.js +0 -5
  904. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/neq.js +0 -5
  905. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/parse.js +0 -18
  906. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/patch.js +0 -5
  907. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/prerelease.js +0 -8
  908. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/rcompare.js +0 -5
  909. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/rsort.js +0 -5
  910. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/satisfies.js +0 -12
  911. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/sort.js +0 -5
  912. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/functions/valid.js +0 -8
  913. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/index.js +0 -91
  914. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/internal/constants.js +0 -37
  915. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/internal/debug.js +0 -11
  916. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/internal/identifiers.js +0 -29
  917. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/internal/lrucache.js +0 -42
  918. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/internal/parse-options.js +0 -17
  919. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/internal/re.js +0 -223
  920. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/package.json +0 -78
  921. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/preload.js +0 -4
  922. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/range.bnf +0 -16
  923. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/gtr.js +0 -6
  924. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/intersects.js +0 -9
  925. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/ltr.js +0 -6
  926. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/max-satisfying.js +0 -27
  927. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/min-satisfying.js +0 -26
  928. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/min-version.js +0 -63
  929. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/outside.js +0 -82
  930. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/simplify.js +0 -49
  931. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/subset.js +0 -249
  932. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/to-comparators.js +0 -10
  933. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/semver/ranges/valid.js +0 -13
  934. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/LICENSE +0 -191
  935. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/README.md +0 -118
  936. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/install/build.js +0 -38
  937. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/install/check.js +0 -14
  938. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/channel.js +0 -177
  939. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/colour.js +0 -195
  940. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/composite.js +0 -212
  941. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/constructor.js +0 -499
  942. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/index.d.ts +0 -1971
  943. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/index.js +0 -16
  944. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/input.js +0 -809
  945. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/is.js +0 -143
  946. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/libvips.js +0 -207
  947. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/operation.js +0 -1016
  948. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/output.js +0 -1666
  949. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/resize.js +0 -595
  950. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/sharp.js +0 -121
  951. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/lib/utility.js +0 -291
  952. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/package.json +0 -202
  953. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/binding.gyp +0 -298
  954. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/common.cc +0 -1130
  955. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/common.h +0 -402
  956. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/metadata.cc +0 -346
  957. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/metadata.h +0 -90
  958. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/operations.cc +0 -499
  959. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/operations.h +0 -137
  960. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/pipeline.cc +0 -1814
  961. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/pipeline.h +0 -408
  962. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/sharp.cc +0 -43
  963. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/stats.cc +0 -186
  964. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/stats.h +0 -62
  965. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/utilities.cc +0 -288
  966. package/skills/aipk_update-requirements-from-design/scripts/sharp-runtime/node_modules/sharp/src/utilities.h +0 -22
@@ -1,1748 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.$ZodSet = exports.$ZodMap = exports.$ZodRecord = exports.$ZodTuple = exports.$ZodIntersection = exports.$ZodDiscriminatedUnion = exports.$ZodUnion = exports.$ZodObject = exports.$ZodArray = exports.$ZodDate = exports.$ZodVoid = exports.$ZodNever = exports.$ZodUnknown = exports.$ZodAny = exports.$ZodNull = exports.$ZodUndefined = exports.$ZodSymbol = exports.$ZodBigIntFormat = exports.$ZodBigInt = exports.$ZodBoolean = exports.$ZodNumberFormat = exports.$ZodNumber = exports.$ZodCustomStringFormat = exports.$ZodJWT = exports.$ZodE164 = exports.$ZodBase64URL = exports.$ZodBase64 = exports.$ZodCIDRv6 = exports.$ZodCIDRv4 = exports.$ZodIPv6 = exports.$ZodIPv4 = exports.$ZodISODuration = exports.$ZodISOTime = exports.$ZodISODate = exports.$ZodISODateTime = exports.$ZodKSUID = exports.$ZodXID = exports.$ZodULID = exports.$ZodCUID2 = exports.$ZodCUID = exports.$ZodNanoID = exports.$ZodEmoji = exports.$ZodURL = exports.$ZodEmail = exports.$ZodUUID = exports.$ZodGUID = exports.$ZodStringFormat = exports.$ZodString = exports.clone = exports.$ZodType = void 0;
27
- exports.$ZodCustom = exports.$ZodLazy = exports.$ZodPromise = exports.$ZodTemplateLiteral = exports.$ZodReadonly = exports.$ZodPipe = exports.$ZodNaN = exports.$ZodCatch = exports.$ZodSuccess = exports.$ZodNonOptional = exports.$ZodPrefault = exports.$ZodDefault = exports.$ZodNullable = exports.$ZodOptional = exports.$ZodTransform = exports.$ZodFile = exports.$ZodLiteral = exports.$ZodEnum = void 0;
28
- exports.isValidBase64 = isValidBase64;
29
- exports.isValidBase64URL = isValidBase64URL;
30
- exports.isValidJWT = isValidJWT;
31
- const checks = __importStar(require("./checks.cjs"));
32
- const core = __importStar(require("./core.cjs"));
33
- const doc_js_1 = require("./doc.cjs");
34
- const parse_js_1 = require("./parse.cjs");
35
- const regexes = __importStar(require("./regexes.cjs"));
36
- const util = __importStar(require("./util.cjs"));
37
- const versions_js_1 = require("./versions.cjs");
38
- exports.$ZodType = core.$constructor("$ZodType", (inst, def) => {
39
- var _a;
40
- inst ?? (inst = {});
41
- inst._zod.def = def; // set _def property
42
- inst._zod.bag = inst._zod.bag || {}; // initialize _bag object
43
- inst._zod.version = versions_js_1.version;
44
- const checks = [...(inst._zod.def.checks ?? [])];
45
- // if inst is itself a checks.$ZodCheck, run it as a check
46
- if (inst._zod.traits.has("$ZodCheck")) {
47
- checks.unshift(inst);
48
- }
49
- //
50
- for (const ch of checks) {
51
- for (const fn of ch._zod.onattach) {
52
- fn(inst);
53
- }
54
- }
55
- if (checks.length === 0) {
56
- // deferred initializer
57
- // inst._zod.parse is not yet defined
58
- (_a = inst._zod).deferred ?? (_a.deferred = []);
59
- inst._zod.deferred?.push(() => {
60
- inst._zod.run = inst._zod.parse;
61
- });
62
- }
63
- else {
64
- const runChecks = (payload, checks, ctx) => {
65
- let isAborted = util.aborted(payload);
66
- let asyncResult;
67
- for (const ch of checks) {
68
- if (ch._zod.def.when) {
69
- const shouldRun = ch._zod.def.when(payload);
70
- if (!shouldRun)
71
- continue;
72
- }
73
- else if (isAborted) {
74
- continue;
75
- }
76
- const currLen = payload.issues.length;
77
- const _ = ch._zod.check(payload);
78
- if (_ instanceof Promise && ctx?.async === false) {
79
- throw new core.$ZodAsyncError();
80
- }
81
- if (asyncResult || _ instanceof Promise) {
82
- asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
83
- await _;
84
- const nextLen = payload.issues.length;
85
- if (nextLen === currLen)
86
- return;
87
- if (!isAborted)
88
- isAborted = util.aborted(payload, currLen);
89
- });
90
- }
91
- else {
92
- const nextLen = payload.issues.length;
93
- if (nextLen === currLen)
94
- continue;
95
- if (!isAborted)
96
- isAborted = util.aborted(payload, currLen);
97
- }
98
- }
99
- if (asyncResult) {
100
- return asyncResult.then(() => {
101
- return payload;
102
- });
103
- }
104
- return payload;
105
- };
106
- inst._zod.run = (payload, ctx) => {
107
- const result = inst._zod.parse(payload, ctx);
108
- if (result instanceof Promise) {
109
- if (ctx.async === false)
110
- throw new core.$ZodAsyncError();
111
- return result.then((result) => runChecks(result, checks, ctx));
112
- }
113
- return runChecks(result, checks, ctx);
114
- };
115
- }
116
- inst["~standard"] = {
117
- validate: (value) => {
118
- try {
119
- const r = (0, parse_js_1.safeParse)(inst, value);
120
- return r.success ? { value: r.data } : { issues: r.error?.issues };
121
- }
122
- catch (_) {
123
- return (0, parse_js_1.safeParseAsync)(inst, value).then((r) => (r.success ? { value: r.data } : { issues: r.error?.issues }));
124
- }
125
- },
126
- vendor: "zod",
127
- version: 1,
128
- };
129
- });
130
- var util_js_1 = require("./util.cjs");
131
- Object.defineProperty(exports, "clone", { enumerable: true, get: function () { return util_js_1.clone; } });
132
- exports.$ZodString = core.$constructor("$ZodString", (inst, def) => {
133
- exports.$ZodType.init(inst, def);
134
- inst._zod.pattern = [...(inst?._zod.bag?.patterns ?? [])].pop() ?? regexes.string(inst._zod.bag);
135
- inst._zod.parse = (payload, _) => {
136
- if (def.coerce)
137
- try {
138
- payload.value = String(payload.value);
139
- }
140
- catch (_) { }
141
- if (typeof payload.value === "string")
142
- return payload;
143
- payload.issues.push({
144
- expected: "string",
145
- code: "invalid_type",
146
- input: payload.value,
147
- inst,
148
- });
149
- return payload;
150
- };
151
- });
152
- exports.$ZodStringFormat = core.$constructor("$ZodStringFormat", (inst, def) => {
153
- // check initialization must come first
154
- checks.$ZodCheckStringFormat.init(inst, def);
155
- exports.$ZodString.init(inst, def);
156
- });
157
- exports.$ZodGUID = core.$constructor("$ZodGUID", (inst, def) => {
158
- def.pattern ?? (def.pattern = regexes.guid);
159
- exports.$ZodStringFormat.init(inst, def);
160
- });
161
- exports.$ZodUUID = core.$constructor("$ZodUUID", (inst, def) => {
162
- if (def.version) {
163
- const versionMap = {
164
- v1: 1,
165
- v2: 2,
166
- v3: 3,
167
- v4: 4,
168
- v5: 5,
169
- v6: 6,
170
- v7: 7,
171
- v8: 8,
172
- };
173
- const v = versionMap[def.version];
174
- if (v === undefined)
175
- throw new Error(`Invalid UUID version: "${def.version}"`);
176
- def.pattern ?? (def.pattern = regexes.uuid(v));
177
- }
178
- else
179
- def.pattern ?? (def.pattern = regexes.uuid());
180
- exports.$ZodStringFormat.init(inst, def);
181
- });
182
- exports.$ZodEmail = core.$constructor("$ZodEmail", (inst, def) => {
183
- def.pattern ?? (def.pattern = regexes.email);
184
- exports.$ZodStringFormat.init(inst, def);
185
- });
186
- exports.$ZodURL = core.$constructor("$ZodURL", (inst, def) => {
187
- exports.$ZodStringFormat.init(inst, def);
188
- inst._zod.check = (payload) => {
189
- try {
190
- const orig = payload.value;
191
- const url = new URL(orig);
192
- const href = url.href;
193
- if (def.hostname) {
194
- def.hostname.lastIndex = 0;
195
- if (!def.hostname.test(url.hostname)) {
196
- payload.issues.push({
197
- code: "invalid_format",
198
- format: "url",
199
- note: "Invalid hostname",
200
- pattern: regexes.hostname.source,
201
- input: payload.value,
202
- inst,
203
- continue: !def.abort,
204
- });
205
- }
206
- }
207
- if (def.protocol) {
208
- def.protocol.lastIndex = 0;
209
- if (!def.protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol)) {
210
- payload.issues.push({
211
- code: "invalid_format",
212
- format: "url",
213
- note: "Invalid protocol",
214
- pattern: def.protocol.source,
215
- input: payload.value,
216
- inst,
217
- continue: !def.abort,
218
- });
219
- }
220
- }
221
- // payload.value = url.href;
222
- if (!orig.endsWith("/") && href.endsWith("/")) {
223
- payload.value = href.slice(0, -1);
224
- }
225
- else {
226
- payload.value = href;
227
- }
228
- return;
229
- }
230
- catch (_) {
231
- payload.issues.push({
232
- code: "invalid_format",
233
- format: "url",
234
- input: payload.value,
235
- inst,
236
- continue: !def.abort,
237
- });
238
- }
239
- };
240
- });
241
- exports.$ZodEmoji = core.$constructor("$ZodEmoji", (inst, def) => {
242
- def.pattern ?? (def.pattern = regexes.emoji());
243
- exports.$ZodStringFormat.init(inst, def);
244
- });
245
- exports.$ZodNanoID = core.$constructor("$ZodNanoID", (inst, def) => {
246
- def.pattern ?? (def.pattern = regexes.nanoid);
247
- exports.$ZodStringFormat.init(inst, def);
248
- });
249
- exports.$ZodCUID = core.$constructor("$ZodCUID", (inst, def) => {
250
- def.pattern ?? (def.pattern = regexes.cuid);
251
- exports.$ZodStringFormat.init(inst, def);
252
- });
253
- exports.$ZodCUID2 = core.$constructor("$ZodCUID2", (inst, def) => {
254
- def.pattern ?? (def.pattern = regexes.cuid2);
255
- exports.$ZodStringFormat.init(inst, def);
256
- });
257
- exports.$ZodULID = core.$constructor("$ZodULID", (inst, def) => {
258
- def.pattern ?? (def.pattern = regexes.ulid);
259
- exports.$ZodStringFormat.init(inst, def);
260
- });
261
- exports.$ZodXID = core.$constructor("$ZodXID", (inst, def) => {
262
- def.pattern ?? (def.pattern = regexes.xid);
263
- exports.$ZodStringFormat.init(inst, def);
264
- });
265
- exports.$ZodKSUID = core.$constructor("$ZodKSUID", (inst, def) => {
266
- def.pattern ?? (def.pattern = regexes.ksuid);
267
- exports.$ZodStringFormat.init(inst, def);
268
- });
269
- exports.$ZodISODateTime = core.$constructor("$ZodISODateTime", (inst, def) => {
270
- def.pattern ?? (def.pattern = regexes.datetime(def));
271
- exports.$ZodStringFormat.init(inst, def);
272
- });
273
- exports.$ZodISODate = core.$constructor("$ZodISODate", (inst, def) => {
274
- def.pattern ?? (def.pattern = regexes.date);
275
- exports.$ZodStringFormat.init(inst, def);
276
- });
277
- exports.$ZodISOTime = core.$constructor("$ZodISOTime", (inst, def) => {
278
- def.pattern ?? (def.pattern = regexes.time(def));
279
- exports.$ZodStringFormat.init(inst, def);
280
- });
281
- exports.$ZodISODuration = core.$constructor("$ZodISODuration", (inst, def) => {
282
- def.pattern ?? (def.pattern = regexes.duration);
283
- exports.$ZodStringFormat.init(inst, def);
284
- });
285
- exports.$ZodIPv4 = core.$constructor("$ZodIPv4", (inst, def) => {
286
- def.pattern ?? (def.pattern = regexes.ipv4);
287
- exports.$ZodStringFormat.init(inst, def);
288
- inst._zod.onattach.push((inst) => {
289
- const bag = inst._zod.bag;
290
- bag.format = `ipv4`;
291
- });
292
- });
293
- exports.$ZodIPv6 = core.$constructor("$ZodIPv6", (inst, def) => {
294
- def.pattern ?? (def.pattern = regexes.ipv6);
295
- exports.$ZodStringFormat.init(inst, def);
296
- inst._zod.onattach.push((inst) => {
297
- const bag = inst._zod.bag;
298
- bag.format = `ipv6`;
299
- });
300
- inst._zod.check = (payload) => {
301
- try {
302
- new URL(`http://[${payload.value}]`);
303
- // return;
304
- }
305
- catch {
306
- payload.issues.push({
307
- code: "invalid_format",
308
- format: "ipv6",
309
- input: payload.value,
310
- inst,
311
- continue: !def.abort,
312
- });
313
- }
314
- };
315
- });
316
- exports.$ZodCIDRv4 = core.$constructor("$ZodCIDRv4", (inst, def) => {
317
- def.pattern ?? (def.pattern = regexes.cidrv4);
318
- exports.$ZodStringFormat.init(inst, def);
319
- });
320
- exports.$ZodCIDRv6 = core.$constructor("$ZodCIDRv6", (inst, def) => {
321
- def.pattern ?? (def.pattern = regexes.cidrv6); // not used for validation
322
- exports.$ZodStringFormat.init(inst, def);
323
- inst._zod.check = (payload) => {
324
- const [address, prefix] = payload.value.split("/");
325
- try {
326
- if (!prefix)
327
- throw new Error();
328
- const prefixNum = Number(prefix);
329
- if (`${prefixNum}` !== prefix)
330
- throw new Error();
331
- if (prefixNum < 0 || prefixNum > 128)
332
- throw new Error();
333
- new URL(`http://[${address}]`);
334
- }
335
- catch {
336
- payload.issues.push({
337
- code: "invalid_format",
338
- format: "cidrv6",
339
- input: payload.value,
340
- inst,
341
- continue: !def.abort,
342
- });
343
- }
344
- };
345
- });
346
- ////////////////////////////// ZodBase64 //////////////////////////////
347
- function isValidBase64(data) {
348
- if (data === "")
349
- return true;
350
- if (data.length % 4 !== 0)
351
- return false;
352
- try {
353
- atob(data);
354
- return true;
355
- }
356
- catch {
357
- return false;
358
- }
359
- }
360
- exports.$ZodBase64 = core.$constructor("$ZodBase64", (inst, def) => {
361
- def.pattern ?? (def.pattern = regexes.base64);
362
- exports.$ZodStringFormat.init(inst, def);
363
- inst._zod.onattach.push((inst) => {
364
- inst._zod.bag.contentEncoding = "base64";
365
- });
366
- inst._zod.check = (payload) => {
367
- if (isValidBase64(payload.value))
368
- return;
369
- payload.issues.push({
370
- code: "invalid_format",
371
- format: "base64",
372
- input: payload.value,
373
- inst,
374
- continue: !def.abort,
375
- });
376
- };
377
- });
378
- ////////////////////////////// ZodBase64 //////////////////////////////
379
- function isValidBase64URL(data) {
380
- if (!regexes.base64url.test(data))
381
- return false;
382
- const base64 = data.replace(/[-_]/g, (c) => (c === "-" ? "+" : "/"));
383
- const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, "=");
384
- return isValidBase64(padded);
385
- }
386
- exports.$ZodBase64URL = core.$constructor("$ZodBase64URL", (inst, def) => {
387
- def.pattern ?? (def.pattern = regexes.base64url);
388
- exports.$ZodStringFormat.init(inst, def);
389
- inst._zod.onattach.push((inst) => {
390
- inst._zod.bag.contentEncoding = "base64url";
391
- });
392
- inst._zod.check = (payload) => {
393
- if (isValidBase64URL(payload.value))
394
- return;
395
- payload.issues.push({
396
- code: "invalid_format",
397
- format: "base64url",
398
- input: payload.value,
399
- inst,
400
- continue: !def.abort,
401
- });
402
- };
403
- });
404
- exports.$ZodE164 = core.$constructor("$ZodE164", (inst, def) => {
405
- def.pattern ?? (def.pattern = regexes.e164);
406
- exports.$ZodStringFormat.init(inst, def);
407
- });
408
- ////////////////////////////// ZodJWT //////////////////////////////
409
- function isValidJWT(token, algorithm = null) {
410
- try {
411
- const tokensParts = token.split(".");
412
- if (tokensParts.length !== 3)
413
- return false;
414
- const [header] = tokensParts;
415
- if (!header)
416
- return false;
417
- const parsedHeader = JSON.parse(atob(header));
418
- if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")
419
- return false;
420
- if (!parsedHeader.alg)
421
- return false;
422
- if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm))
423
- return false;
424
- return true;
425
- }
426
- catch {
427
- return false;
428
- }
429
- }
430
- exports.$ZodJWT = core.$constructor("$ZodJWT", (inst, def) => {
431
- exports.$ZodStringFormat.init(inst, def);
432
- inst._zod.check = (payload) => {
433
- if (isValidJWT(payload.value, def.alg))
434
- return;
435
- payload.issues.push({
436
- code: "invalid_format",
437
- format: "jwt",
438
- input: payload.value,
439
- inst,
440
- continue: !def.abort,
441
- });
442
- };
443
- });
444
- exports.$ZodCustomStringFormat = core.$constructor("$ZodCustomStringFormat", (inst, def) => {
445
- exports.$ZodStringFormat.init(inst, def);
446
- inst._zod.check = (payload) => {
447
- if (def.fn(payload.value))
448
- return;
449
- payload.issues.push({
450
- code: "invalid_format",
451
- format: def.format,
452
- input: payload.value,
453
- inst,
454
- continue: !def.abort,
455
- });
456
- };
457
- });
458
- exports.$ZodNumber = core.$constructor("$ZodNumber", (inst, def) => {
459
- exports.$ZodType.init(inst, def);
460
- inst._zod.pattern = inst._zod.bag.pattern ?? regexes.number;
461
- inst._zod.parse = (payload, _ctx) => {
462
- if (def.coerce)
463
- try {
464
- payload.value = Number(payload.value);
465
- }
466
- catch (_) { }
467
- const input = payload.value;
468
- if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) {
469
- return payload;
470
- }
471
- const received = typeof input === "number"
472
- ? Number.isNaN(input)
473
- ? "NaN"
474
- : !Number.isFinite(input)
475
- ? "Infinity"
476
- : undefined
477
- : undefined;
478
- payload.issues.push({
479
- expected: "number",
480
- code: "invalid_type",
481
- input,
482
- inst,
483
- ...(received ? { received } : {}),
484
- });
485
- return payload;
486
- };
487
- });
488
- exports.$ZodNumberFormat = core.$constructor("$ZodNumber", (inst, def) => {
489
- checks.$ZodCheckNumberFormat.init(inst, def);
490
- exports.$ZodNumber.init(inst, def); // no format checksp
491
- });
492
- exports.$ZodBoolean = core.$constructor("$ZodBoolean", (inst, def) => {
493
- exports.$ZodType.init(inst, def);
494
- inst._zod.pattern = regexes.boolean;
495
- inst._zod.parse = (payload, _ctx) => {
496
- if (def.coerce)
497
- try {
498
- payload.value = Boolean(payload.value);
499
- }
500
- catch (_) { }
501
- const input = payload.value;
502
- if (typeof input === "boolean")
503
- return payload;
504
- payload.issues.push({
505
- expected: "boolean",
506
- code: "invalid_type",
507
- input,
508
- inst,
509
- });
510
- return payload;
511
- };
512
- });
513
- exports.$ZodBigInt = core.$constructor("$ZodBigInt", (inst, def) => {
514
- exports.$ZodType.init(inst, def);
515
- inst._zod.pattern = regexes.bigint;
516
- inst._zod.parse = (payload, _ctx) => {
517
- if (def.coerce)
518
- try {
519
- payload.value = BigInt(payload.value);
520
- }
521
- catch (_) { }
522
- if (typeof payload.value === "bigint")
523
- return payload;
524
- payload.issues.push({
525
- expected: "bigint",
526
- code: "invalid_type",
527
- input: payload.value,
528
- inst,
529
- });
530
- return payload;
531
- };
532
- });
533
- exports.$ZodBigIntFormat = core.$constructor("$ZodBigInt", (inst, def) => {
534
- checks.$ZodCheckBigIntFormat.init(inst, def);
535
- exports.$ZodBigInt.init(inst, def); // no format checks
536
- });
537
- exports.$ZodSymbol = core.$constructor("$ZodSymbol", (inst, def) => {
538
- exports.$ZodType.init(inst, def);
539
- inst._zod.parse = (payload, _ctx) => {
540
- const input = payload.value;
541
- if (typeof input === "symbol")
542
- return payload;
543
- payload.issues.push({
544
- expected: "symbol",
545
- code: "invalid_type",
546
- input,
547
- inst,
548
- });
549
- return payload;
550
- };
551
- });
552
- exports.$ZodUndefined = core.$constructor("$ZodUndefined", (inst, def) => {
553
- exports.$ZodType.init(inst, def);
554
- inst._zod.pattern = regexes.undefined;
555
- inst._zod.values = new Set([undefined]);
556
- inst._zod.optin = "optional";
557
- inst._zod.optout = "optional";
558
- inst._zod.parse = (payload, _ctx) => {
559
- const input = payload.value;
560
- if (typeof input === "undefined")
561
- return payload;
562
- payload.issues.push({
563
- expected: "undefined",
564
- code: "invalid_type",
565
- input,
566
- inst,
567
- });
568
- return payload;
569
- };
570
- });
571
- exports.$ZodNull = core.$constructor("$ZodNull", (inst, def) => {
572
- exports.$ZodType.init(inst, def);
573
- inst._zod.pattern = regexes.null;
574
- inst._zod.values = new Set([null]);
575
- inst._zod.parse = (payload, _ctx) => {
576
- const input = payload.value;
577
- if (input === null)
578
- return payload;
579
- payload.issues.push({
580
- expected: "null",
581
- code: "invalid_type",
582
- input,
583
- inst,
584
- });
585
- return payload;
586
- };
587
- });
588
- exports.$ZodAny = core.$constructor("$ZodAny", (inst, def) => {
589
- exports.$ZodType.init(inst, def);
590
- inst._zod.parse = (payload) => payload;
591
- });
592
- exports.$ZodUnknown = core.$constructor("$ZodUnknown", (inst, def) => {
593
- exports.$ZodType.init(inst, def);
594
- inst._zod.parse = (payload) => payload;
595
- });
596
- exports.$ZodNever = core.$constructor("$ZodNever", (inst, def) => {
597
- exports.$ZodType.init(inst, def);
598
- inst._zod.parse = (payload, _ctx) => {
599
- payload.issues.push({
600
- expected: "never",
601
- code: "invalid_type",
602
- input: payload.value,
603
- inst,
604
- });
605
- return payload;
606
- };
607
- });
608
- exports.$ZodVoid = core.$constructor("$ZodVoid", (inst, def) => {
609
- exports.$ZodType.init(inst, def);
610
- inst._zod.parse = (payload, _ctx) => {
611
- const input = payload.value;
612
- if (typeof input === "undefined")
613
- return payload;
614
- payload.issues.push({
615
- expected: "void",
616
- code: "invalid_type",
617
- input,
618
- inst,
619
- });
620
- return payload;
621
- };
622
- });
623
- exports.$ZodDate = core.$constructor("$ZodDate", (inst, def) => {
624
- exports.$ZodType.init(inst, def);
625
- inst._zod.parse = (payload, _ctx) => {
626
- if (def.coerce) {
627
- try {
628
- payload.value = new Date(payload.value);
629
- }
630
- catch (_err) { }
631
- }
632
- const input = payload.value;
633
- const isDate = input instanceof Date;
634
- const isValidDate = isDate && !Number.isNaN(input.getTime());
635
- if (isValidDate)
636
- return payload;
637
- payload.issues.push({
638
- expected: "date",
639
- code: "invalid_type",
640
- input,
641
- ...(isDate ? { received: "Invalid Date" } : {}),
642
- inst,
643
- });
644
- return payload;
645
- };
646
- });
647
- function handleArrayResult(result, final, index) {
648
- if (result.issues.length) {
649
- final.issues.push(...util.prefixIssues(index, result.issues));
650
- }
651
- final.value[index] = result.value;
652
- }
653
- exports.$ZodArray = core.$constructor("$ZodArray", (inst, def) => {
654
- exports.$ZodType.init(inst, def);
655
- inst._zod.parse = (payload, ctx) => {
656
- const input = payload.value;
657
- if (!Array.isArray(input)) {
658
- payload.issues.push({
659
- expected: "array",
660
- code: "invalid_type",
661
- input,
662
- inst,
663
- });
664
- return payload;
665
- }
666
- payload.value = Array(input.length);
667
- const proms = [];
668
- for (let i = 0; i < input.length; i++) {
669
- const item = input[i];
670
- const result = def.element._zod.run({
671
- value: item,
672
- issues: [],
673
- }, ctx);
674
- if (result instanceof Promise) {
675
- proms.push(result.then((result) => handleArrayResult(result, payload, i)));
676
- }
677
- else {
678
- handleArrayResult(result, payload, i);
679
- }
680
- }
681
- if (proms.length) {
682
- return Promise.all(proms).then(() => payload);
683
- }
684
- return payload; //handleArrayResultsAsync(parseResults, final);
685
- };
686
- });
687
- function handleObjectResult(result, final, key) {
688
- // if(isOptional)
689
- if (result.issues.length) {
690
- final.issues.push(...util.prefixIssues(key, result.issues));
691
- }
692
- final.value[key] = result.value;
693
- }
694
- function handleOptionalObjectResult(result, final, key, input) {
695
- if (result.issues.length) {
696
- // validation failed against value schema
697
- if (input[key] === undefined) {
698
- // if input was undefined, ignore the error
699
- if (key in input) {
700
- final.value[key] = undefined;
701
- }
702
- else {
703
- final.value[key] = result.value;
704
- }
705
- }
706
- else {
707
- final.issues.push(...util.prefixIssues(key, result.issues));
708
- }
709
- }
710
- else if (result.value === undefined) {
711
- // validation returned `undefined`
712
- if (key in input)
713
- final.value[key] = undefined;
714
- }
715
- else {
716
- // non-undefined value
717
- final.value[key] = result.value;
718
- }
719
- }
720
- exports.$ZodObject = core.$constructor("$ZodObject", (inst, def) => {
721
- // requires cast because technically $ZodObject doesn't extend
722
- exports.$ZodType.init(inst, def);
723
- const _normalized = util.cached(() => {
724
- const keys = Object.keys(def.shape);
725
- for (const k of keys) {
726
- if (!(def.shape[k] instanceof exports.$ZodType)) {
727
- throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
728
- }
729
- }
730
- const okeys = util.optionalKeys(def.shape);
731
- return {
732
- shape: def.shape,
733
- keys,
734
- keySet: new Set(keys),
735
- numKeys: keys.length,
736
- optionalKeys: new Set(okeys),
737
- };
738
- });
739
- util.defineLazy(inst._zod, "propValues", () => {
740
- const shape = def.shape;
741
- const propValues = {};
742
- for (const key in shape) {
743
- const field = shape[key]._zod;
744
- if (field.values) {
745
- propValues[key] ?? (propValues[key] = new Set());
746
- for (const v of field.values)
747
- propValues[key].add(v);
748
- }
749
- }
750
- return propValues;
751
- });
752
- const generateFastpass = (shape) => {
753
- const doc = new doc_js_1.Doc(["shape", "payload", "ctx"]);
754
- const normalized = _normalized.value;
755
- const parseStr = (key) => {
756
- const k = util.esc(key);
757
- return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
758
- };
759
- doc.write(`const input = payload.value;`);
760
- const ids = Object.create(null);
761
- let counter = 0;
762
- for (const key of normalized.keys) {
763
- ids[key] = `key_${counter++}`;
764
- }
765
- // A: preserve key order {
766
- doc.write(`const newResult = {}`);
767
- for (const key of normalized.keys) {
768
- if (normalized.optionalKeys.has(key)) {
769
- const id = ids[key];
770
- doc.write(`const ${id} = ${parseStr(key)};`);
771
- const k = util.esc(key);
772
- doc.write(`
773
- if (${id}.issues.length) {
774
- if (input[${k}] === undefined) {
775
- if (${k} in input) {
776
- newResult[${k}] = undefined;
777
- }
778
- } else {
779
- payload.issues = payload.issues.concat(
780
- ${id}.issues.map((iss) => ({
781
- ...iss,
782
- path: iss.path ? [${k}, ...iss.path] : [${k}],
783
- }))
784
- );
785
- }
786
- } else if (${id}.value === undefined) {
787
- if (${k} in input) newResult[${k}] = undefined;
788
- } else {
789
- newResult[${k}] = ${id}.value;
790
- }
791
- `);
792
- }
793
- else {
794
- const id = ids[key];
795
- // const id = ids[key];
796
- doc.write(`const ${id} = ${parseStr(key)};`);
797
- doc.write(`
798
- if (${id}.issues.length) payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
799
- ...iss,
800
- path: iss.path ? [${util.esc(key)}, ...iss.path] : [${util.esc(key)}]
801
- })));`);
802
- doc.write(`newResult[${util.esc(key)}] = ${id}.value`);
803
- }
804
- }
805
- doc.write(`payload.value = newResult;`);
806
- doc.write(`return payload;`);
807
- const fn = doc.compile();
808
- return (payload, ctx) => fn(shape, payload, ctx);
809
- };
810
- let fastpass;
811
- const isObject = util.isObject;
812
- const jit = !core.globalConfig.jitless;
813
- const allowsEval = util.allowsEval;
814
- const fastEnabled = jit && allowsEval.value; // && !def.catchall;
815
- const catchall = def.catchall;
816
- let value;
817
- inst._zod.parse = (payload, ctx) => {
818
- value ?? (value = _normalized.value);
819
- const input = payload.value;
820
- if (!isObject(input)) {
821
- payload.issues.push({
822
- expected: "object",
823
- code: "invalid_type",
824
- input,
825
- inst,
826
- });
827
- return payload;
828
- }
829
- const proms = [];
830
- if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
831
- // always synchronous
832
- if (!fastpass)
833
- fastpass = generateFastpass(def.shape);
834
- payload = fastpass(payload, ctx);
835
- }
836
- else {
837
- payload.value = {};
838
- const shape = value.shape;
839
- for (const key of value.keys) {
840
- const el = shape[key];
841
- // do not add omitted optional keys
842
- // if (!(key in input)) {
843
- // if (optionalKeys.has(key)) continue;
844
- // payload.issues.push({
845
- // code: "invalid_type",
846
- // path: [key],
847
- // expected: "nonoptional",
848
- // note: `Missing required key: "${key}"`,
849
- // input,
850
- // inst,
851
- // });
852
- // }
853
- const r = el._zod.run({ value: input[key], issues: [] }, ctx);
854
- const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
855
- if (r instanceof Promise) {
856
- proms.push(r.then((r) => isOptional ? handleOptionalObjectResult(r, payload, key, input) : handleObjectResult(r, payload, key)));
857
- }
858
- else if (isOptional) {
859
- handleOptionalObjectResult(r, payload, key, input);
860
- }
861
- else {
862
- handleObjectResult(r, payload, key);
863
- }
864
- }
865
- }
866
- if (!catchall) {
867
- // return payload;
868
- return proms.length ? Promise.all(proms).then(() => payload) : payload;
869
- }
870
- const unrecognized = [];
871
- // iterate over input keys
872
- const keySet = value.keySet;
873
- const _catchall = catchall._zod;
874
- const t = _catchall.def.type;
875
- for (const key of Object.keys(input)) {
876
- if (keySet.has(key))
877
- continue;
878
- if (t === "never") {
879
- unrecognized.push(key);
880
- continue;
881
- }
882
- const r = _catchall.run({ value: input[key], issues: [] }, ctx);
883
- if (r instanceof Promise) {
884
- proms.push(r.then((r) => handleObjectResult(r, payload, key)));
885
- }
886
- else {
887
- handleObjectResult(r, payload, key);
888
- }
889
- }
890
- if (unrecognized.length) {
891
- payload.issues.push({
892
- code: "unrecognized_keys",
893
- keys: unrecognized,
894
- input,
895
- inst,
896
- });
897
- }
898
- if (!proms.length)
899
- return payload;
900
- return Promise.all(proms).then(() => {
901
- return payload;
902
- });
903
- };
904
- });
905
- function handleUnionResults(results, final, inst, ctx) {
906
- for (const result of results) {
907
- if (result.issues.length === 0) {
908
- final.value = result.value;
909
- return final;
910
- }
911
- }
912
- final.issues.push({
913
- code: "invalid_union",
914
- input: final.value,
915
- inst,
916
- errors: results.map((result) => result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),
917
- });
918
- return final;
919
- }
920
- exports.$ZodUnion = core.$constructor("$ZodUnion", (inst, def) => {
921
- exports.$ZodType.init(inst, def);
922
- util.defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : undefined);
923
- util.defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
924
- util.defineLazy(inst._zod, "values", () => {
925
- if (def.options.every((o) => o._zod.values)) {
926
- return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
927
- }
928
- return undefined;
929
- });
930
- util.defineLazy(inst._zod, "pattern", () => {
931
- if (def.options.every((o) => o._zod.pattern)) {
932
- const patterns = def.options.map((o) => o._zod.pattern);
933
- return new RegExp(`^(${patterns.map((p) => util.cleanRegex(p.source)).join("|")})$`);
934
- }
935
- return undefined;
936
- });
937
- inst._zod.parse = (payload, ctx) => {
938
- let async = false;
939
- const results = [];
940
- for (const option of def.options) {
941
- const result = option._zod.run({
942
- value: payload.value,
943
- issues: [],
944
- }, ctx);
945
- if (result instanceof Promise) {
946
- results.push(result);
947
- async = true;
948
- }
949
- else {
950
- if (result.issues.length === 0)
951
- return result;
952
- results.push(result);
953
- }
954
- }
955
- if (!async)
956
- return handleUnionResults(results, payload, inst, ctx);
957
- return Promise.all(results).then((results) => {
958
- return handleUnionResults(results, payload, inst, ctx);
959
- });
960
- };
961
- });
962
- exports.$ZodDiscriminatedUnion =
963
- /*@__PURE__*/
964
- core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
965
- exports.$ZodUnion.init(inst, def);
966
- const _super = inst._zod.parse;
967
- util.defineLazy(inst._zod, "propValues", () => {
968
- const propValues = {};
969
- for (const option of def.options) {
970
- const pv = option._zod.propValues;
971
- if (!pv || Object.keys(pv).length === 0)
972
- throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
973
- for (const [k, v] of Object.entries(pv)) {
974
- if (!propValues[k])
975
- propValues[k] = new Set();
976
- for (const val of v) {
977
- propValues[k].add(val);
978
- }
979
- }
980
- }
981
- return propValues;
982
- });
983
- const disc = util.cached(() => {
984
- const opts = def.options;
985
- const map = new Map();
986
- for (const o of opts) {
987
- const values = o._zod.propValues[def.discriminator];
988
- if (!values || values.size === 0)
989
- throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
990
- for (const v of values) {
991
- if (map.has(v)) {
992
- throw new Error(`Duplicate discriminator value "${String(v)}"`);
993
- }
994
- map.set(v, o);
995
- }
996
- }
997
- return map;
998
- });
999
- inst._zod.parse = (payload, ctx) => {
1000
- const input = payload.value;
1001
- if (!util.isObject(input)) {
1002
- payload.issues.push({
1003
- code: "invalid_type",
1004
- expected: "object",
1005
- input,
1006
- inst,
1007
- });
1008
- return payload;
1009
- }
1010
- const opt = disc.value.get(input?.[def.discriminator]);
1011
- if (opt) {
1012
- return opt._zod.run(payload, ctx);
1013
- }
1014
- if (def.unionFallback) {
1015
- return _super(payload, ctx);
1016
- }
1017
- // no matching discriminator
1018
- payload.issues.push({
1019
- code: "invalid_union",
1020
- errors: [],
1021
- note: "No matching discriminator",
1022
- input,
1023
- path: [def.discriminator],
1024
- inst,
1025
- });
1026
- return payload;
1027
- };
1028
- });
1029
- exports.$ZodIntersection = core.$constructor("$ZodIntersection", (inst, def) => {
1030
- exports.$ZodType.init(inst, def);
1031
- inst._zod.parse = (payload, ctx) => {
1032
- const input = payload.value;
1033
- const left = def.left._zod.run({ value: input, issues: [] }, ctx);
1034
- const right = def.right._zod.run({ value: input, issues: [] }, ctx);
1035
- const async = left instanceof Promise || right instanceof Promise;
1036
- if (async) {
1037
- return Promise.all([left, right]).then(([left, right]) => {
1038
- return handleIntersectionResults(payload, left, right);
1039
- });
1040
- }
1041
- return handleIntersectionResults(payload, left, right);
1042
- };
1043
- });
1044
- function mergeValues(a, b) {
1045
- // const aType = parse.t(a);
1046
- // const bType = parse.t(b);
1047
- if (a === b) {
1048
- return { valid: true, data: a };
1049
- }
1050
- if (a instanceof Date && b instanceof Date && +a === +b) {
1051
- return { valid: true, data: a };
1052
- }
1053
- if (util.isPlainObject(a) && util.isPlainObject(b)) {
1054
- const bKeys = Object.keys(b);
1055
- const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
1056
- const newObj = { ...a, ...b };
1057
- for (const key of sharedKeys) {
1058
- const sharedValue = mergeValues(a[key], b[key]);
1059
- if (!sharedValue.valid) {
1060
- return {
1061
- valid: false,
1062
- mergeErrorPath: [key, ...sharedValue.mergeErrorPath],
1063
- };
1064
- }
1065
- newObj[key] = sharedValue.data;
1066
- }
1067
- return { valid: true, data: newObj };
1068
- }
1069
- if (Array.isArray(a) && Array.isArray(b)) {
1070
- if (a.length !== b.length) {
1071
- return { valid: false, mergeErrorPath: [] };
1072
- }
1073
- const newArray = [];
1074
- for (let index = 0; index < a.length; index++) {
1075
- const itemA = a[index];
1076
- const itemB = b[index];
1077
- const sharedValue = mergeValues(itemA, itemB);
1078
- if (!sharedValue.valid) {
1079
- return {
1080
- valid: false,
1081
- mergeErrorPath: [index, ...sharedValue.mergeErrorPath],
1082
- };
1083
- }
1084
- newArray.push(sharedValue.data);
1085
- }
1086
- return { valid: true, data: newArray };
1087
- }
1088
- return { valid: false, mergeErrorPath: [] };
1089
- }
1090
- function handleIntersectionResults(result, left, right) {
1091
- if (left.issues.length) {
1092
- result.issues.push(...left.issues);
1093
- }
1094
- if (right.issues.length) {
1095
- result.issues.push(...right.issues);
1096
- }
1097
- if (util.aborted(result))
1098
- return result;
1099
- const merged = mergeValues(left.value, right.value);
1100
- if (!merged.valid) {
1101
- throw new Error(`Unmergable intersection. Error path: ` + `${JSON.stringify(merged.mergeErrorPath)}`);
1102
- }
1103
- result.value = merged.data;
1104
- return result;
1105
- }
1106
- exports.$ZodTuple = core.$constructor("$ZodTuple", (inst, def) => {
1107
- exports.$ZodType.init(inst, def);
1108
- const items = def.items;
1109
- const optStart = items.length - [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
1110
- inst._zod.parse = (payload, ctx) => {
1111
- const input = payload.value;
1112
- if (!Array.isArray(input)) {
1113
- payload.issues.push({
1114
- input,
1115
- inst,
1116
- expected: "tuple",
1117
- code: "invalid_type",
1118
- });
1119
- return payload;
1120
- }
1121
- payload.value = [];
1122
- const proms = [];
1123
- if (!def.rest) {
1124
- const tooBig = input.length > items.length;
1125
- const tooSmall = input.length < optStart - 1;
1126
- if (tooBig || tooSmall) {
1127
- payload.issues.push({
1128
- input,
1129
- inst,
1130
- origin: "array",
1131
- ...(tooBig ? { code: "too_big", maximum: items.length } : { code: "too_small", minimum: items.length }),
1132
- });
1133
- return payload;
1134
- }
1135
- }
1136
- let i = -1;
1137
- for (const item of items) {
1138
- i++;
1139
- if (i >= input.length)
1140
- if (i >= optStart)
1141
- continue;
1142
- const result = item._zod.run({
1143
- value: input[i],
1144
- issues: [],
1145
- }, ctx);
1146
- if (result instanceof Promise) {
1147
- proms.push(result.then((result) => handleTupleResult(result, payload, i)));
1148
- }
1149
- else {
1150
- handleTupleResult(result, payload, i);
1151
- }
1152
- }
1153
- if (def.rest) {
1154
- const rest = input.slice(items.length);
1155
- for (const el of rest) {
1156
- i++;
1157
- const result = def.rest._zod.run({
1158
- value: el,
1159
- issues: [],
1160
- }, ctx);
1161
- if (result instanceof Promise) {
1162
- proms.push(result.then((result) => handleTupleResult(result, payload, i)));
1163
- }
1164
- else {
1165
- handleTupleResult(result, payload, i);
1166
- }
1167
- }
1168
- }
1169
- if (proms.length)
1170
- return Promise.all(proms).then(() => payload);
1171
- return payload;
1172
- };
1173
- });
1174
- function handleTupleResult(result, final, index) {
1175
- if (result.issues.length) {
1176
- final.issues.push(...util.prefixIssues(index, result.issues));
1177
- }
1178
- final.value[index] = result.value;
1179
- }
1180
- exports.$ZodRecord = core.$constructor("$ZodRecord", (inst, def) => {
1181
- exports.$ZodType.init(inst, def);
1182
- inst._zod.parse = (payload, ctx) => {
1183
- const input = payload.value;
1184
- if (!util.isPlainObject(input)) {
1185
- payload.issues.push({
1186
- expected: "record",
1187
- code: "invalid_type",
1188
- input,
1189
- inst,
1190
- });
1191
- return payload;
1192
- }
1193
- const proms = [];
1194
- if (def.keyType._zod.values) {
1195
- const values = def.keyType._zod.values;
1196
- payload.value = {};
1197
- for (const key of values) {
1198
- if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
1199
- const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1200
- if (result instanceof Promise) {
1201
- proms.push(result.then((result) => {
1202
- if (result.issues.length) {
1203
- payload.issues.push(...util.prefixIssues(key, result.issues));
1204
- }
1205
- payload.value[key] = result.value;
1206
- }));
1207
- }
1208
- else {
1209
- if (result.issues.length) {
1210
- payload.issues.push(...util.prefixIssues(key, result.issues));
1211
- }
1212
- payload.value[key] = result.value;
1213
- }
1214
- }
1215
- }
1216
- let unrecognized;
1217
- for (const key in input) {
1218
- if (!values.has(key)) {
1219
- unrecognized = unrecognized ?? [];
1220
- unrecognized.push(key);
1221
- }
1222
- }
1223
- if (unrecognized && unrecognized.length > 0) {
1224
- payload.issues.push({
1225
- code: "unrecognized_keys",
1226
- input,
1227
- inst,
1228
- keys: unrecognized,
1229
- });
1230
- }
1231
- }
1232
- else {
1233
- payload.value = {};
1234
- for (const key of Reflect.ownKeys(input)) {
1235
- if (key === "__proto__")
1236
- continue;
1237
- const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1238
- if (keyResult instanceof Promise) {
1239
- throw new Error("Async schemas not supported in object keys currently");
1240
- }
1241
- if (keyResult.issues.length) {
1242
- payload.issues.push({
1243
- origin: "record",
1244
- code: "invalid_key",
1245
- issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1246
- input: key,
1247
- path: [key],
1248
- inst,
1249
- });
1250
- payload.value[keyResult.value] = keyResult.value;
1251
- continue;
1252
- }
1253
- const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1254
- if (result instanceof Promise) {
1255
- proms.push(result.then((result) => {
1256
- if (result.issues.length) {
1257
- payload.issues.push(...util.prefixIssues(key, result.issues));
1258
- }
1259
- payload.value[keyResult.value] = result.value;
1260
- }));
1261
- }
1262
- else {
1263
- if (result.issues.length) {
1264
- payload.issues.push(...util.prefixIssues(key, result.issues));
1265
- }
1266
- payload.value[keyResult.value] = result.value;
1267
- }
1268
- }
1269
- }
1270
- if (proms.length) {
1271
- return Promise.all(proms).then(() => payload);
1272
- }
1273
- return payload;
1274
- };
1275
- });
1276
- exports.$ZodMap = core.$constructor("$ZodMap", (inst, def) => {
1277
- exports.$ZodType.init(inst, def);
1278
- inst._zod.parse = (payload, ctx) => {
1279
- const input = payload.value;
1280
- if (!(input instanceof Map)) {
1281
- payload.issues.push({
1282
- expected: "map",
1283
- code: "invalid_type",
1284
- input,
1285
- inst,
1286
- });
1287
- return payload;
1288
- }
1289
- const proms = [];
1290
- payload.value = new Map();
1291
- for (const [key, value] of input) {
1292
- const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1293
- const valueResult = def.valueType._zod.run({ value: value, issues: [] }, ctx);
1294
- if (keyResult instanceof Promise || valueResult instanceof Promise) {
1295
- proms.push(Promise.all([keyResult, valueResult]).then(([keyResult, valueResult]) => {
1296
- handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);
1297
- }));
1298
- }
1299
- else {
1300
- handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);
1301
- }
1302
- }
1303
- if (proms.length)
1304
- return Promise.all(proms).then(() => payload);
1305
- return payload;
1306
- };
1307
- });
1308
- function handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {
1309
- if (keyResult.issues.length) {
1310
- if (util.propertyKeyTypes.has(typeof key)) {
1311
- final.issues.push(...util.prefixIssues(key, keyResult.issues));
1312
- }
1313
- else {
1314
- final.issues.push({
1315
- origin: "map",
1316
- code: "invalid_key",
1317
- input,
1318
- inst,
1319
- issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1320
- });
1321
- }
1322
- }
1323
- if (valueResult.issues.length) {
1324
- if (util.propertyKeyTypes.has(typeof key)) {
1325
- final.issues.push(...util.prefixIssues(key, valueResult.issues));
1326
- }
1327
- else {
1328
- final.issues.push({
1329
- origin: "map",
1330
- code: "invalid_element",
1331
- input,
1332
- inst,
1333
- key: key,
1334
- issues: valueResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1335
- });
1336
- }
1337
- }
1338
- final.value.set(keyResult.value, valueResult.value);
1339
- }
1340
- exports.$ZodSet = core.$constructor("$ZodSet", (inst, def) => {
1341
- exports.$ZodType.init(inst, def);
1342
- inst._zod.parse = (payload, ctx) => {
1343
- const input = payload.value;
1344
- if (!(input instanceof Set)) {
1345
- payload.issues.push({
1346
- input,
1347
- inst,
1348
- expected: "set",
1349
- code: "invalid_type",
1350
- });
1351
- return payload;
1352
- }
1353
- const proms = [];
1354
- payload.value = new Set();
1355
- for (const item of input) {
1356
- const result = def.valueType._zod.run({ value: item, issues: [] }, ctx);
1357
- if (result instanceof Promise) {
1358
- proms.push(result.then((result) => handleSetResult(result, payload)));
1359
- }
1360
- else
1361
- handleSetResult(result, payload);
1362
- }
1363
- if (proms.length)
1364
- return Promise.all(proms).then(() => payload);
1365
- return payload;
1366
- };
1367
- });
1368
- function handleSetResult(result, final) {
1369
- if (result.issues.length) {
1370
- final.issues.push(...result.issues);
1371
- }
1372
- final.value.add(result.value);
1373
- }
1374
- exports.$ZodEnum = core.$constructor("$ZodEnum", (inst, def) => {
1375
- exports.$ZodType.init(inst, def);
1376
- const values = util.getEnumValues(def.entries);
1377
- inst._zod.values = new Set(values);
1378
- inst._zod.pattern = new RegExp(`^(${values
1379
- .filter((k) => util.propertyKeyTypes.has(typeof k))
1380
- .map((o) => (typeof o === "string" ? util.escapeRegex(o) : o.toString()))
1381
- .join("|")})$`);
1382
- inst._zod.parse = (payload, _ctx) => {
1383
- const input = payload.value;
1384
- if (inst._zod.values.has(input)) {
1385
- return payload;
1386
- }
1387
- payload.issues.push({
1388
- code: "invalid_value",
1389
- values,
1390
- input,
1391
- inst,
1392
- });
1393
- return payload;
1394
- };
1395
- });
1396
- exports.$ZodLiteral = core.$constructor("$ZodLiteral", (inst, def) => {
1397
- exports.$ZodType.init(inst, def);
1398
- inst._zod.values = new Set(def.values);
1399
- inst._zod.pattern = new RegExp(`^(${def.values
1400
- .map((o) => (typeof o === "string" ? util.escapeRegex(o) : o ? o.toString() : String(o)))
1401
- .join("|")})$`);
1402
- inst._zod.parse = (payload, _ctx) => {
1403
- const input = payload.value;
1404
- if (inst._zod.values.has(input)) {
1405
- return payload;
1406
- }
1407
- payload.issues.push({
1408
- code: "invalid_value",
1409
- values: def.values,
1410
- input,
1411
- inst,
1412
- });
1413
- return payload;
1414
- };
1415
- });
1416
- exports.$ZodFile = core.$constructor("$ZodFile", (inst, def) => {
1417
- exports.$ZodType.init(inst, def);
1418
- inst._zod.parse = (payload, _ctx) => {
1419
- const input = payload.value;
1420
- if (input instanceof File)
1421
- return payload;
1422
- payload.issues.push({
1423
- expected: "file",
1424
- code: "invalid_type",
1425
- input,
1426
- inst,
1427
- });
1428
- return payload;
1429
- };
1430
- });
1431
- exports.$ZodTransform = core.$constructor("$ZodTransform", (inst, def) => {
1432
- exports.$ZodType.init(inst, def);
1433
- inst._zod.parse = (payload, _ctx) => {
1434
- const _out = def.transform(payload.value, payload);
1435
- if (_ctx.async) {
1436
- const output = _out instanceof Promise ? _out : Promise.resolve(_out);
1437
- return output.then((output) => {
1438
- payload.value = output;
1439
- return payload;
1440
- });
1441
- }
1442
- if (_out instanceof Promise) {
1443
- throw new core.$ZodAsyncError();
1444
- }
1445
- payload.value = _out;
1446
- return payload;
1447
- };
1448
- });
1449
- exports.$ZodOptional = core.$constructor("$ZodOptional", (inst, def) => {
1450
- exports.$ZodType.init(inst, def);
1451
- inst._zod.optin = "optional";
1452
- inst._zod.optout = "optional";
1453
- util.defineLazy(inst._zod, "values", () => {
1454
- return def.innerType._zod.values ? new Set([...def.innerType._zod.values, undefined]) : undefined;
1455
- });
1456
- util.defineLazy(inst._zod, "pattern", () => {
1457
- const pattern = def.innerType._zod.pattern;
1458
- return pattern ? new RegExp(`^(${util.cleanRegex(pattern.source)})?$`) : undefined;
1459
- });
1460
- inst._zod.parse = (payload, ctx) => {
1461
- if (def.innerType._zod.optin === "optional") {
1462
- return def.innerType._zod.run(payload, ctx);
1463
- }
1464
- if (payload.value === undefined) {
1465
- return payload;
1466
- }
1467
- return def.innerType._zod.run(payload, ctx);
1468
- };
1469
- });
1470
- exports.$ZodNullable = core.$constructor("$ZodNullable", (inst, def) => {
1471
- exports.$ZodType.init(inst, def);
1472
- util.defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
1473
- util.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
1474
- util.defineLazy(inst._zod, "pattern", () => {
1475
- const pattern = def.innerType._zod.pattern;
1476
- return pattern ? new RegExp(`^(${util.cleanRegex(pattern.source)}|null)$`) : undefined;
1477
- });
1478
- util.defineLazy(inst._zod, "values", () => {
1479
- return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : undefined;
1480
- });
1481
- inst._zod.parse = (payload, ctx) => {
1482
- if (payload.value === null)
1483
- return payload;
1484
- return def.innerType._zod.run(payload, ctx);
1485
- };
1486
- });
1487
- exports.$ZodDefault = core.$constructor("$ZodDefault", (inst, def) => {
1488
- exports.$ZodType.init(inst, def);
1489
- // inst._zod.qin = "true";
1490
- inst._zod.optin = "optional";
1491
- util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1492
- inst._zod.parse = (payload, ctx) => {
1493
- if (payload.value === undefined) {
1494
- payload.value = def.defaultValue;
1495
- /**
1496
- * $ZodDefault always returns the default value immediately.
1497
- * It doesn't pass the default value into the validator ("prefault"). There's no reason to pass the default value through validation. The validity of the default is enforced by TypeScript statically. Otherwise, it's the responsibility of the user to ensure the default is valid. In the case of pipes with divergent in/out types, you can specify the default on the `in` schema of your ZodPipe to set a "prefault" for the pipe. */
1498
- return payload;
1499
- }
1500
- const result = def.innerType._zod.run(payload, ctx);
1501
- if (result instanceof Promise) {
1502
- return result.then((result) => handleDefaultResult(result, def));
1503
- }
1504
- return handleDefaultResult(result, def);
1505
- };
1506
- });
1507
- function handleDefaultResult(payload, def) {
1508
- if (payload.value === undefined) {
1509
- payload.value = def.defaultValue;
1510
- }
1511
- return payload;
1512
- }
1513
- exports.$ZodPrefault = core.$constructor("$ZodPrefault", (inst, def) => {
1514
- exports.$ZodType.init(inst, def);
1515
- inst._zod.optin = "optional";
1516
- util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1517
- inst._zod.parse = (payload, ctx) => {
1518
- if (payload.value === undefined) {
1519
- payload.value = def.defaultValue;
1520
- }
1521
- return def.innerType._zod.run(payload, ctx);
1522
- };
1523
- });
1524
- exports.$ZodNonOptional = core.$constructor("$ZodNonOptional", (inst, def) => {
1525
- exports.$ZodType.init(inst, def);
1526
- util.defineLazy(inst._zod, "values", () => {
1527
- const v = def.innerType._zod.values;
1528
- return v ? new Set([...v].filter((x) => x !== undefined)) : undefined;
1529
- });
1530
- inst._zod.parse = (payload, ctx) => {
1531
- const result = def.innerType._zod.run(payload, ctx);
1532
- if (result instanceof Promise) {
1533
- return result.then((result) => handleNonOptionalResult(result, inst));
1534
- }
1535
- return handleNonOptionalResult(result, inst);
1536
- };
1537
- });
1538
- function handleNonOptionalResult(payload, inst) {
1539
- if (!payload.issues.length && payload.value === undefined) {
1540
- payload.issues.push({
1541
- code: "invalid_type",
1542
- expected: "nonoptional",
1543
- input: payload.value,
1544
- inst,
1545
- });
1546
- }
1547
- return payload;
1548
- }
1549
- exports.$ZodSuccess = core.$constructor("$ZodSuccess", (inst, def) => {
1550
- exports.$ZodType.init(inst, def);
1551
- inst._zod.parse = (payload, ctx) => {
1552
- const result = def.innerType._zod.run(payload, ctx);
1553
- if (result instanceof Promise) {
1554
- return result.then((result) => {
1555
- payload.value = result.issues.length === 0;
1556
- return payload;
1557
- });
1558
- }
1559
- payload.value = result.issues.length === 0;
1560
- return payload;
1561
- };
1562
- });
1563
- exports.$ZodCatch = core.$constructor("$ZodCatch", (inst, def) => {
1564
- exports.$ZodType.init(inst, def);
1565
- inst._zod.optin = "optional";
1566
- util.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
1567
- util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1568
- inst._zod.parse = (payload, ctx) => {
1569
- const result = def.innerType._zod.run(payload, ctx);
1570
- if (result instanceof Promise) {
1571
- return result.then((result) => {
1572
- payload.value = result.value;
1573
- if (result.issues.length) {
1574
- payload.value = def.catchValue({
1575
- ...payload,
1576
- error: {
1577
- issues: result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1578
- },
1579
- input: payload.value,
1580
- });
1581
- payload.issues = [];
1582
- }
1583
- return payload;
1584
- });
1585
- }
1586
- payload.value = result.value;
1587
- if (result.issues.length) {
1588
- payload.value = def.catchValue({
1589
- ...payload,
1590
- error: {
1591
- issues: result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1592
- },
1593
- input: payload.value,
1594
- });
1595
- payload.issues = [];
1596
- }
1597
- return payload;
1598
- };
1599
- });
1600
- exports.$ZodNaN = core.$constructor("$ZodNaN", (inst, def) => {
1601
- exports.$ZodType.init(inst, def);
1602
- inst._zod.parse = (payload, _ctx) => {
1603
- if (typeof payload.value !== "number" || !Number.isNaN(payload.value)) {
1604
- payload.issues.push({
1605
- input: payload.value,
1606
- inst,
1607
- expected: "nan",
1608
- code: "invalid_type",
1609
- });
1610
- return payload;
1611
- }
1612
- return payload;
1613
- };
1614
- });
1615
- exports.$ZodPipe = core.$constructor("$ZodPipe", (inst, def) => {
1616
- exports.$ZodType.init(inst, def);
1617
- util.defineLazy(inst._zod, "values", () => def.in._zod.values);
1618
- util.defineLazy(inst._zod, "optin", () => def.in._zod.optin);
1619
- util.defineLazy(inst._zod, "optout", () => def.out._zod.optout);
1620
- inst._zod.parse = (payload, ctx) => {
1621
- const left = def.in._zod.run(payload, ctx);
1622
- if (left instanceof Promise) {
1623
- return left.then((left) => handlePipeResult(left, def, ctx));
1624
- }
1625
- return handlePipeResult(left, def, ctx);
1626
- };
1627
- });
1628
- function handlePipeResult(left, def, ctx) {
1629
- if (util.aborted(left)) {
1630
- return left;
1631
- }
1632
- return def.out._zod.run({ value: left.value, issues: left.issues }, ctx);
1633
- }
1634
- exports.$ZodReadonly = core.$constructor("$ZodReadonly", (inst, def) => {
1635
- exports.$ZodType.init(inst, def);
1636
- util.defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
1637
- util.defineLazy(inst._zod, "values", () => def.innerType._zod.values);
1638
- util.defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
1639
- util.defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
1640
- inst._zod.parse = (payload, ctx) => {
1641
- const result = def.innerType._zod.run(payload, ctx);
1642
- if (result instanceof Promise) {
1643
- return result.then(handleReadonlyResult);
1644
- }
1645
- return handleReadonlyResult(result);
1646
- };
1647
- });
1648
- function handleReadonlyResult(payload) {
1649
- payload.value = Object.freeze(payload.value);
1650
- return payload;
1651
- }
1652
- exports.$ZodTemplateLiteral = core.$constructor("$ZodTemplateLiteral", (inst, def) => {
1653
- exports.$ZodType.init(inst, def);
1654
- const regexParts = [];
1655
- for (const part of def.parts) {
1656
- if (part instanceof exports.$ZodType) {
1657
- if (!part._zod.pattern) {
1658
- // if (!source)
1659
- throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);
1660
- }
1661
- const source = part._zod.pattern instanceof RegExp ? part._zod.pattern.source : part._zod.pattern;
1662
- if (!source)
1663
- throw new Error(`Invalid template literal part: ${part._zod.traits}`);
1664
- const start = source.startsWith("^") ? 1 : 0;
1665
- const end = source.endsWith("$") ? source.length - 1 : source.length;
1666
- regexParts.push(source.slice(start, end));
1667
- }
1668
- else if (part === null || util.primitiveTypes.has(typeof part)) {
1669
- regexParts.push(util.escapeRegex(`${part}`));
1670
- }
1671
- else {
1672
- throw new Error(`Invalid template literal part: ${part}`);
1673
- }
1674
- }
1675
- inst._zod.pattern = new RegExp(`^${regexParts.join("")}$`);
1676
- inst._zod.parse = (payload, _ctx) => {
1677
- if (typeof payload.value !== "string") {
1678
- payload.issues.push({
1679
- input: payload.value,
1680
- inst,
1681
- expected: "template_literal",
1682
- code: "invalid_type",
1683
- });
1684
- return payload;
1685
- }
1686
- inst._zod.pattern.lastIndex = 0;
1687
- if (!inst._zod.pattern.test(payload.value)) {
1688
- payload.issues.push({
1689
- input: payload.value,
1690
- inst,
1691
- code: "invalid_format",
1692
- format: "template_literal",
1693
- pattern: inst._zod.pattern.source,
1694
- });
1695
- return payload;
1696
- }
1697
- return payload;
1698
- };
1699
- });
1700
- exports.$ZodPromise = core.$constructor("$ZodPromise", (inst, def) => {
1701
- exports.$ZodType.init(inst, def);
1702
- inst._zod.parse = (payload, ctx) => {
1703
- return Promise.resolve(payload.value).then((inner) => def.innerType._zod.run({ value: inner, issues: [] }, ctx));
1704
- };
1705
- });
1706
- exports.$ZodLazy = core.$constructor("$ZodLazy", (inst, def) => {
1707
- exports.$ZodType.init(inst, def);
1708
- util.defineLazy(inst._zod, "innerType", () => def.getter());
1709
- util.defineLazy(inst._zod, "pattern", () => inst._zod.innerType._zod.pattern);
1710
- util.defineLazy(inst._zod, "propValues", () => inst._zod.innerType._zod.propValues);
1711
- util.defineLazy(inst._zod, "optin", () => inst._zod.innerType._zod.optin);
1712
- util.defineLazy(inst._zod, "optout", () => inst._zod.innerType._zod.optout);
1713
- inst._zod.parse = (payload, ctx) => {
1714
- const inner = inst._zod.innerType;
1715
- return inner._zod.run(payload, ctx);
1716
- };
1717
- });
1718
- exports.$ZodCustom = core.$constructor("$ZodCustom", (inst, def) => {
1719
- checks.$ZodCheck.init(inst, def);
1720
- exports.$ZodType.init(inst, def);
1721
- inst._zod.parse = (payload, _) => {
1722
- return payload;
1723
- };
1724
- inst._zod.check = (payload) => {
1725
- const input = payload.value;
1726
- const r = def.fn(input);
1727
- if (r instanceof Promise) {
1728
- return r.then((r) => handleRefineResult(r, payload, input, inst));
1729
- }
1730
- handleRefineResult(r, payload, input, inst);
1731
- return;
1732
- };
1733
- });
1734
- function handleRefineResult(result, payload, input, inst) {
1735
- if (!result) {
1736
- const _iss = {
1737
- code: "custom",
1738
- input,
1739
- inst, // incorporates params.error into issue reporting
1740
- path: [...(inst._zod.def.path ?? [])], // incorporates params.error into issue reporting
1741
- continue: !inst._zod.def.abort,
1742
- // params: inst._zod.def.params,
1743
- };
1744
- if (inst._zod.def.params)
1745
- _iss.params = inst._zod.def.params;
1746
- payload.issues.push(util.issue(_iss));
1747
- }
1748
- }