@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,1971 +0,0 @@
1
- /**
2
- * Copyright 2017 François Nguyen and others.
3
- *
4
- * Billy Kwok <https://github.com/billykwok>
5
- * Bradley Odell <https://github.com/BTOdell>
6
- * Espen Hovlandsdal <https://github.com/rexxars>
7
- * Floris de Bijl <https://github.com/Fdebijl>
8
- * François Nguyen <https://github.com/phurytw>
9
- * Jamie Woodbury <https://github.com/JamieWoodbury>
10
- * Wooseop Kim <https://github.com/wooseopkim>
11
- *
12
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
13
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
14
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
15
- * permit persons to whom the Software is furnished to do so, subject to the following conditions:
16
- *
17
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
18
- * the Software.
19
- *
20
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
21
- * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
22
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
23
- * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
- */
25
-
26
- // SPDX-License-Identifier: MIT
27
-
28
- /// <reference types="node" />
29
-
30
- import type { Duplex } from 'node:stream';
31
-
32
- //#region Constructor functions
33
-
34
- /**
35
- * Creates a sharp instance from an image
36
- * @param input Buffer containing JPEG, PNG, WebP, AVIF, GIF, SVG, TIFF or raw pixel image data, or String containing the path to an JPEG, PNG, WebP, AVIF, GIF, SVG or TIFF image file.
37
- * @param options Object with optional attributes.
38
- * @throws {Error} Invalid parameters
39
- * @returns A sharp instance that can be used to chain operations
40
- */
41
- declare function sharp(options?: sharp.SharpOptions): sharp.Sharp;
42
- declare function sharp(
43
- input?: sharp.SharpInput | Array<sharp.SharpInput>,
44
- options?: sharp.SharpOptions,
45
- ): sharp.Sharp;
46
-
47
- declare namespace sharp {
48
- /** Object containing nested boolean values representing the available input and output formats/methods. */
49
- const format: FormatEnum;
50
-
51
- /** An Object containing the version numbers of sharp, libvips and its dependencies. */
52
- const versions: {
53
- aom?: string | undefined;
54
- archive?: string | undefined;
55
- cairo?: string | undefined;
56
- cgif?: string | undefined;
57
- exif?: string | undefined;
58
- expat?: string | undefined;
59
- ffi?: string | undefined;
60
- fontconfig?: string | undefined;
61
- freetype?: string | undefined;
62
- fribidi?: string | undefined;
63
- glib?: string | undefined;
64
- harfbuzz?: string | undefined;
65
- heif?: string | undefined;
66
- highway?: string | undefined;
67
- imagequant?: string | undefined;
68
- lcms?: string | undefined;
69
- mozjpeg?: string | undefined;
70
- pango?: string | undefined;
71
- pixman?: string | undefined;
72
- png?: string | undefined;
73
- "proxy-libintl"?: string | undefined;
74
- rsvg?: string | undefined;
75
- sharp: string;
76
- spng?: string | undefined;
77
- tiff?: string | undefined;
78
- vips: string;
79
- webp?: string | undefined;
80
- xml?: string | undefined;
81
- "zlib-ng"?: string | undefined;
82
- };
83
-
84
- /** An Object containing the available interpolators and their proper values */
85
- const interpolators: Interpolators;
86
-
87
- /** An EventEmitter that emits a change event when a task is either queued, waiting for libuv to provide a worker thread, complete */
88
- const queue: NodeJS.EventEmitter;
89
-
90
- //#endregion
91
-
92
- //#region Utility functions
93
-
94
- /**
95
- * Gets or, when options are provided, sets the limits of libvips' operation cache.
96
- * Existing entries in the cache will be trimmed after any change in limits.
97
- * This method always returns cache statistics, useful for determining how much working memory is required for a particular task.
98
- * @param options Object with the following attributes, or Boolean where true uses default cache settings and false removes all caching (optional, default true)
99
- * @returns The cache results.
100
- */
101
- function cache(options?: boolean | CacheOptions): CacheResult;
102
-
103
- /**
104
- * Gets or sets the number of threads libvips' should create to process each image.
105
- * The default value is the number of CPU cores. A value of 0 will reset to this default.
106
- * The maximum number of images that can be processed in parallel is limited by libuv's UV_THREADPOOL_SIZE environment variable.
107
- * @param concurrency The new concurrency value.
108
- * @returns The current concurrency value.
109
- */
110
- function concurrency(concurrency?: number): number;
111
-
112
- /**
113
- * Provides access to internal task counters.
114
- * @returns Object containing task counters
115
- */
116
- function counters(): SharpCounters;
117
-
118
- /**
119
- * Get and set use of SIMD vector unit instructions. Requires libvips to have been compiled with highway support.
120
- * Improves the performance of resize, blur and sharpen operations by taking advantage of the SIMD vector unit of the CPU, e.g. Intel SSE and ARM NEON.
121
- * @param enable enable or disable use of SIMD vector unit instructions
122
- * @returns true if usage of SIMD vector unit instructions is enabled
123
- */
124
- function simd(enable?: boolean): boolean;
125
-
126
- /**
127
- * Block libvips operations at runtime.
128
- *
129
- * This is in addition to the `VIPS_BLOCK_UNTRUSTED` environment variable,
130
- * which when set will block all "untrusted" operations.
131
- *
132
- * @since 0.32.4
133
- *
134
- * @example <caption>Block all TIFF input.</caption>
135
- * sharp.block({
136
- * operation: ['VipsForeignLoadTiff']
137
- * });
138
- *
139
- * @param {Object} options
140
- * @param {Array<string>} options.operation - List of libvips low-level operation names to block.
141
- */
142
- function block(options: { operation: string[] }): void;
143
-
144
- /**
145
- * Unblock libvips operations at runtime.
146
- *
147
- * This is useful for defining a list of allowed operations.
148
- *
149
- * @since 0.32.4
150
- *
151
- * @example <caption>Block all input except WebP from the filesystem.</caption>
152
- * sharp.block({
153
- * operation: ['VipsForeignLoad']
154
- * });
155
- * sharp.unblock({
156
- * operation: ['VipsForeignLoadWebpFile']
157
- * });
158
- *
159
- * @example <caption>Block all input except JPEG and PNG from a Buffer or Stream.</caption>
160
- * sharp.block({
161
- * operation: ['VipsForeignLoad']
162
- * });
163
- * sharp.unblock({
164
- * operation: ['VipsForeignLoadJpegBuffer', 'VipsForeignLoadPngBuffer']
165
- * });
166
- *
167
- * @param {Object} options
168
- * @param {Array<string>} options.operation - List of libvips low-level operation names to unblock.
169
- */
170
- function unblock(options: { operation: string[] }): void;
171
-
172
- //#endregion
173
-
174
- const gravity: GravityEnum;
175
- const strategy: StrategyEnum;
176
- const kernel: KernelEnum;
177
- const fit: FitEnum;
178
- const bool: BoolEnum;
179
-
180
- interface Sharp extends Duplex {
181
- //#region Channel functions
182
-
183
- /**
184
- * Remove alpha channel, if any. This is a no-op if the image does not have an alpha channel.
185
- * @returns A sharp instance that can be used to chain operations
186
- */
187
- removeAlpha(): Sharp;
188
-
189
- /**
190
- * Ensure alpha channel, if missing. The added alpha channel will be fully opaque. This is a no-op if the image already has an alpha channel.
191
- * @param alpha transparency level (0=fully-transparent, 1=fully-opaque) (optional, default 1).
192
- * @returns A sharp instance that can be used to chain operations
193
- */
194
- ensureAlpha(alpha?: number): Sharp;
195
-
196
- /**
197
- * Extract a single channel from a multi-channel image.
198
- * @param channel zero-indexed channel/band number to extract, or red, green, blue or alpha.
199
- * @throws {Error} Invalid channel
200
- * @returns A sharp instance that can be used to chain operations
201
- */
202
- extractChannel(channel: 0 | 1 | 2 | 3 | 'red' | 'green' | 'blue' | 'alpha'): Sharp;
203
-
204
- /**
205
- * Join one or more channels to the image. The meaning of the added channels depends on the output colourspace, set with toColourspace().
206
- * By default the output image will be web-friendly sRGB, with additional channels interpreted as alpha channels. Channel ordering follows vips convention:
207
- * - sRGB: 0: Red, 1: Green, 2: Blue, 3: Alpha.
208
- * - CMYK: 0: Magenta, 1: Cyan, 2: Yellow, 3: Black, 4: Alpha.
209
- *
210
- * Buffers may be any of the image formats supported by sharp.
211
- * For raw pixel input, the options object should contain a raw attribute, which follows the format of the attribute of the same name in the sharp() constructor.
212
- * @param images one or more images (file paths, Buffers).
213
- * @param options image options, see sharp() constructor.
214
- * @throws {Error} Invalid parameters
215
- * @returns A sharp instance that can be used to chain operations
216
- */
217
- joinChannel(images: string | Buffer | ArrayLike<string | Buffer>, options?: SharpOptions): Sharp;
218
-
219
- /**
220
- * Perform a bitwise boolean operation on all input image channels (bands) to produce a single channel output image.
221
- * @param boolOp one of "and", "or" or "eor" to perform that bitwise operation, like the C logic operators &, | and ^ respectively.
222
- * @throws {Error} Invalid parameters
223
- * @returns A sharp instance that can be used to chain operations
224
- */
225
- bandbool(boolOp: keyof BoolEnum): Sharp;
226
-
227
- //#endregion
228
-
229
- //#region Color functions
230
-
231
- /**
232
- * Tint the image using the provided colour.
233
- * An alpha channel may be present and will be unchanged by the operation.
234
- * @param tint Parsed by the color module.
235
- * @returns A sharp instance that can be used to chain operations
236
- */
237
- tint(tint: Colour | Color): Sharp;
238
-
239
- /**
240
- * Convert to 8-bit greyscale; 256 shades of grey.
241
- * This is a linear operation.
242
- * If the input image is in a non-linear colour space such as sRGB, use gamma() with greyscale() for the best results.
243
- * By default the output image will be web-friendly sRGB and contain three (identical) colour channels.
244
- * This may be overridden by other sharp operations such as toColourspace('b-w'), which will produce an output image containing one colour channel.
245
- * An alpha channel may be present, and will be unchanged by the operation.
246
- * @param greyscale true to enable and false to disable (defaults to true)
247
- * @returns A sharp instance that can be used to chain operations
248
- */
249
- greyscale(greyscale?: boolean): Sharp;
250
-
251
- /**
252
- * Alternative spelling of greyscale().
253
- * @param grayscale true to enable and false to disable (defaults to true)
254
- * @returns A sharp instance that can be used to chain operations
255
- */
256
- grayscale(grayscale?: boolean): Sharp;
257
-
258
- /**
259
- * Set the pipeline colourspace.
260
- * The input image will be converted to the provided colourspace at the start of the pipeline.
261
- * All operations will use this colourspace before converting to the output colourspace, as defined by toColourspace.
262
- * This feature is experimental and has not yet been fully-tested with all operations.
263
- *
264
- * @param colourspace pipeline colourspace e.g. rgb16, scrgb, lab, grey16 ...
265
- * @throws {Error} Invalid parameters
266
- * @returns A sharp instance that can be used to chain operations
267
- */
268
- pipelineColourspace(colourspace?: string): Sharp;
269
-
270
- /**
271
- * Alternative spelling of pipelineColourspace
272
- * @param colorspace pipeline colourspace e.g. rgb16, scrgb, lab, grey16 ...
273
- * @throws {Error} Invalid parameters
274
- * @returns A sharp instance that can be used to chain operations
275
- */
276
- pipelineColorspace(colorspace?: string): Sharp;
277
-
278
- /**
279
- * Set the output colourspace.
280
- * By default output image will be web-friendly sRGB, with additional channels interpreted as alpha channels.
281
- * @param colourspace output colourspace e.g. srgb, rgb, cmyk, lab, b-w ...
282
- * @throws {Error} Invalid parameters
283
- * @returns A sharp instance that can be used to chain operations
284
- */
285
- toColourspace(colourspace?: string): Sharp;
286
-
287
- /**
288
- * Alternative spelling of toColourspace().
289
- * @param colorspace output colorspace e.g. srgb, rgb, cmyk, lab, b-w ...
290
- * @throws {Error} Invalid parameters
291
- * @returns A sharp instance that can be used to chain operations
292
- */
293
- toColorspace(colorspace: string): Sharp;
294
-
295
- //#endregion
296
-
297
- //#region Composite functions
298
-
299
- /**
300
- * Composite image(s) over the processed (resized, extracted etc.) image.
301
- *
302
- * The images to composite must be the same size or smaller than the processed image.
303
- * If both `top` and `left` options are provided, they take precedence over `gravity`.
304
- * @param images - Ordered list of images to composite
305
- * @throws {Error} Invalid parameters
306
- * @returns A sharp instance that can be used to chain operations
307
- */
308
- composite(images: OverlayOptions[]): Sharp;
309
-
310
- //#endregion
311
-
312
- //#region Input functions
313
-
314
- /**
315
- * Take a "snapshot" of the Sharp instance, returning a new instance.
316
- * Cloned instances inherit the input of their parent instance.
317
- * This allows multiple output Streams and therefore multiple processing pipelines to share a single input Stream.
318
- * @returns A sharp instance that can be used to chain operations
319
- */
320
- clone(): Sharp;
321
-
322
- /**
323
- * Fast access to (uncached) image metadata without decoding any compressed image data.
324
- * @returns A sharp instance that can be used to chain operations
325
- */
326
- metadata(callback: (err: Error, metadata: Metadata) => void): Sharp;
327
-
328
- /**
329
- * Fast access to (uncached) image metadata without decoding any compressed image data.
330
- * @returns A promise that resolves with a metadata object
331
- */
332
- metadata(): Promise<Metadata>;
333
-
334
- /**
335
- * Keep all metadata (EXIF, ICC, XMP, IPTC) from the input image in the output image.
336
- * @returns A sharp instance that can be used to chain operations
337
- */
338
- keepMetadata(): Sharp;
339
-
340
- /**
341
- * Access to pixel-derived image statistics for every channel in the image.
342
- * @returns A sharp instance that can be used to chain operations
343
- */
344
- stats(callback: (err: Error, stats: Stats) => void): Sharp;
345
-
346
- /**
347
- * Access to pixel-derived image statistics for every channel in the image.
348
- * @returns A promise that resolves with a stats object
349
- */
350
- stats(): Promise<Stats>;
351
-
352
- //#endregion
353
-
354
- //#region Operation functions
355
-
356
- /**
357
- * Rotate the output image by either an explicit angle
358
- * or auto-orient based on the EXIF `Orientation` tag.
359
- *
360
- * If an angle is provided, it is converted to a valid positive degree rotation.
361
- * For example, `-450` will produce a 270 degree rotation.
362
- *
363
- * When rotating by an angle other than a multiple of 90,
364
- * the background colour can be provided with the `background` option.
365
- *
366
- * If no angle is provided, it is determined from the EXIF data.
367
- * Mirroring is supported and may infer the use of a flip operation.
368
- *
369
- * The use of `rotate` without an angle will remove the EXIF `Orientation` tag, if any.
370
- *
371
- * Only one rotation can occur per pipeline (aside from an initial call without
372
- * arguments to orient via EXIF data). Previous calls to `rotate` in the same
373
- * pipeline will be ignored.
374
- *
375
- * Multi-page images can only be rotated by 180 degrees.
376
- *
377
- * Method order is important when rotating, resizing and/or extracting regions,
378
- * for example `.rotate(x).extract(y)` will produce a different result to `.extract(y).rotate(x)`.
379
- *
380
- * @example
381
- * const pipeline = sharp()
382
- * .rotate()
383
- * .resize(null, 200)
384
- * .toBuffer(function (err, outputBuffer, info) {
385
- * // outputBuffer contains 200px high JPEG image data,
386
- * // auto-rotated using EXIF Orientation tag
387
- * // info.width and info.height contain the dimensions of the resized image
388
- * });
389
- * readableStream.pipe(pipeline);
390
- *
391
- * @example
392
- * const rotateThenResize = await sharp(input)
393
- * .rotate(90)
394
- * .resize({ width: 16, height: 8, fit: 'fill' })
395
- * .toBuffer();
396
- * const resizeThenRotate = await sharp(input)
397
- * .resize({ width: 16, height: 8, fit: 'fill' })
398
- * .rotate(90)
399
- * .toBuffer();
400
- *
401
- * @param {number} [angle=auto] angle of rotation.
402
- * @param {Object} [options] - if present, is an Object with optional attributes.
403
- * @param {string|Object} [options.background="#000000"] parsed by the [color](https://www.npmjs.org/package/color) module to extract values for red, green, blue and alpha.
404
- * @returns {Sharp}
405
- * @throws {Error} Invalid parameters
406
- */
407
- rotate(angle?: number, options?: RotateOptions): Sharp;
408
-
409
- /**
410
- * Alias for calling `rotate()` with no arguments, which orients the image based
411
- * on EXIF orientsion.
412
- *
413
- * This operation is aliased to emphasize its purpose, helping to remove any
414
- * confusion between rotation and orientation.
415
- *
416
- * @example
417
- * const output = await sharp(input).autoOrient().toBuffer();
418
- *
419
- * @returns {Sharp}
420
- */
421
- autoOrient(): Sharp
422
-
423
- /**
424
- * Flip the image about the vertical Y axis. This always occurs after rotation, if any.
425
- * The use of flip implies the removal of the EXIF Orientation tag, if any.
426
- * @param flip true to enable and false to disable (defaults to true)
427
- * @returns A sharp instance that can be used to chain operations
428
- */
429
- flip(flip?: boolean): Sharp;
430
-
431
- /**
432
- * Flop the image about the horizontal X axis. This always occurs after rotation, if any.
433
- * The use of flop implies the removal of the EXIF Orientation tag, if any.
434
- * @param flop true to enable and false to disable (defaults to true)
435
- * @returns A sharp instance that can be used to chain operations
436
- */
437
- flop(flop?: boolean): Sharp;
438
-
439
- /**
440
- * Perform an affine transform on an image. This operation will always occur after resizing, extraction and rotation, if any.
441
- * You must provide an array of length 4 or a 2x2 affine transformation matrix.
442
- * By default, new pixels are filled with a black background. You can provide a background colour with the `background` option.
443
- * A particular interpolator may also be specified. Set the `interpolator` option to an attribute of the `sharp.interpolators` Object e.g. `sharp.interpolators.nohalo`.
444
- *
445
- * In the case of a 2x2 matrix, the transform is:
446
- * X = matrix[0, 0] * (x + idx) + matrix[0, 1] * (y + idy) + odx
447
- * Y = matrix[1, 0] * (x + idx) + matrix[1, 1] * (y + idy) + ody
448
- *
449
- * where:
450
- *
451
- * x and y are the coordinates in input image.
452
- * X and Y are the coordinates in output image.
453
- * (0,0) is the upper left corner.
454
- *
455
- * @param matrix Affine transformation matrix, may either by a array of length four or a 2x2 matrix array
456
- * @param options if present, is an Object with optional attributes.
457
- *
458
- * @returns A sharp instance that can be used to chain operations
459
- */
460
- affine(matrix: [number, number, number, number] | Matrix2x2, options?: AffineOptions): Sharp;
461
-
462
- /**
463
- * Sharpen the image.
464
- * When used without parameters, performs a fast, mild sharpen of the output image.
465
- * When a sigma is provided, performs a slower, more accurate sharpen of the L channel in the LAB colour space.
466
- * Fine-grained control over the level of sharpening in "flat" (m1) and "jagged" (m2) areas is available.
467
- * @param options if present, is an Object with optional attributes
468
- * @throws {Error} Invalid parameters
469
- * @returns A sharp instance that can be used to chain operations
470
- */
471
- sharpen(options?: SharpenOptions): Sharp;
472
-
473
- /**
474
- * Sharpen the image.
475
- * When used without parameters, performs a fast, mild sharpen of the output image.
476
- * When a sigma is provided, performs a slower, more accurate sharpen of the L channel in the LAB colour space.
477
- * Fine-grained control over the level of sharpening in "flat" (m1) and "jagged" (m2) areas is available.
478
- * @param sigma the sigma of the Gaussian mask, where sigma = 1 + radius / 2.
479
- * @param flat the level of sharpening to apply to "flat" areas. (optional, default 1.0)
480
- * @param jagged the level of sharpening to apply to "jagged" areas. (optional, default 2.0)
481
- * @throws {Error} Invalid parameters
482
- * @returns A sharp instance that can be used to chain operations
483
- *
484
- * @deprecated Use the object parameter `sharpen({sigma, m1, m2, x1, y2, y3})` instead
485
- */
486
- sharpen(sigma?: number, flat?: number, jagged?: number): Sharp;
487
-
488
- /**
489
- * Apply median filter. When used without parameters the default window is 3x3.
490
- * @param size square mask size: size x size (optional, default 3)
491
- * @throws {Error} Invalid parameters
492
- * @returns A sharp instance that can be used to chain operations
493
- */
494
- median(size?: number): Sharp;
495
-
496
- /**
497
- * Blur the image.
498
- * When used without parameters, performs a fast, mild blur of the output image.
499
- * When a sigma is provided, performs a slower, more accurate Gaussian blur.
500
- * When a boolean sigma is provided, ether blur mild or disable blur
501
- * @param sigma a value between 0.3 and 1000 representing the sigma of the Gaussian mask, where sigma = 1 + radius / 2.
502
- * @throws {Error} Invalid parameters
503
- * @returns A sharp instance that can be used to chain operations
504
- */
505
- blur(sigma?: number | boolean | BlurOptions): Sharp;
506
-
507
- /**
508
- * Expand foreground objects using the dilate morphological operator.
509
- * @param {Number} [width=1] dilation width in pixels.
510
- * @throws {Error} Invalid parameters
511
- * @returns A sharp instance that can be used to chain operations
512
- */
513
- dilate(width?: number): Sharp;
514
-
515
- /**
516
- * Shrink foreground objects using the erode morphological operator.
517
- * @param {Number} [width=1] erosion width in pixels.
518
- * @throws {Error} Invalid parameters
519
- * @returns A sharp instance that can be used to chain operations
520
- */
521
- erode(width?: number): Sharp;
522
-
523
- /**
524
- * Merge alpha transparency channel, if any, with background.
525
- * @param flatten true to enable and false to disable (defaults to true)
526
- * @returns A sharp instance that can be used to chain operations
527
- */
528
- flatten(flatten?: boolean | FlattenOptions): Sharp;
529
-
530
- /**
531
- * Ensure the image has an alpha channel with all white pixel values made fully transparent.
532
- * Existing alpha channel values for non-white pixels remain unchanged.
533
- * @returns A sharp instance that can be used to chain operations
534
- */
535
- unflatten(): Sharp;
536
-
537
- /**
538
- * Apply a gamma correction by reducing the encoding (darken) pre-resize at a factor of 1/gamma then increasing the encoding (brighten) post-resize at a factor of gamma.
539
- * This can improve the perceived brightness of a resized image in non-linear colour spaces.
540
- * JPEG and WebP input images will not take advantage of the shrink-on-load performance optimisation when applying a gamma correction.
541
- * Supply a second argument to use a different output gamma value, otherwise the first value is used in both cases.
542
- * @param gamma value between 1.0 and 3.0. (optional, default 2.2)
543
- * @param gammaOut value between 1.0 and 3.0. (optional, defaults to same as gamma)
544
- * @throws {Error} Invalid parameters
545
- * @returns A sharp instance that can be used to chain operations
546
- */
547
- gamma(gamma?: number, gammaOut?: number): Sharp;
548
-
549
- /**
550
- * Produce the "negative" of the image.
551
- * @param negate true to enable and false to disable, or an object of options (defaults to true)
552
- * @returns A sharp instance that can be used to chain operations
553
- */
554
- negate(negate?: boolean | NegateOptions): Sharp;
555
-
556
- /**
557
- * Enhance output image contrast by stretching its luminance to cover a full dynamic range.
558
- *
559
- * Uses a histogram-based approach, taking a default range of 1% to 99% to reduce sensitivity to noise at the extremes.
560
- *
561
- * Luminance values below the `lower` percentile will be underexposed by clipping to zero.
562
- * Luminance values above the `upper` percentile will be overexposed by clipping to the max pixel value.
563
- *
564
- * @param normalise options
565
- * @throws {Error} Invalid parameters
566
- * @returns A sharp instance that can be used to chain operations
567
- */
568
- normalise(normalise?: NormaliseOptions): Sharp;
569
-
570
- /**
571
- * Alternative spelling of normalise.
572
- * @param normalize options
573
- * @throws {Error} Invalid parameters
574
- * @returns A sharp instance that can be used to chain operations
575
- */
576
- normalize(normalize?: NormaliseOptions): Sharp;
577
-
578
- /**
579
- * Perform contrast limiting adaptive histogram equalization (CLAHE)
580
- *
581
- * This will, in general, enhance the clarity of the image by bringing out
582
- * darker details. Please read more about CLAHE here:
583
- * https://en.wikipedia.org/wiki/Adaptive_histogram_equalization#Contrast_Limited_AHE
584
- *
585
- * @param options clahe options
586
- */
587
- clahe(options: ClaheOptions): Sharp;
588
-
589
- /**
590
- * Convolve the image with the specified kernel.
591
- * @param kernel the specified kernel
592
- * @throws {Error} Invalid parameters
593
- * @returns A sharp instance that can be used to chain operations
594
- */
595
- convolve(kernel: Kernel): Sharp;
596
-
597
- /**
598
- * Any pixel value greather than or equal to the threshold value will be set to 255, otherwise it will be set to 0.
599
- * @param threshold a value in the range 0-255 representing the level at which the threshold will be applied. (optional, default 128)
600
- * @param options threshold options
601
- * @throws {Error} Invalid parameters
602
- * @returns A sharp instance that can be used to chain operations
603
- */
604
- threshold(threshold?: number, options?: ThresholdOptions): Sharp;
605
-
606
- /**
607
- * Perform a bitwise boolean operation with operand image.
608
- * This operation creates an output image where each pixel is the result of the selected bitwise boolean operation between the corresponding pixels of the input images.
609
- * @param operand Buffer containing image data or String containing the path to an image file.
610
- * @param operator one of "and", "or" or "eor" to perform that bitwise operation, like the C logic operators &, | and ^ respectively.
611
- * @param options describes operand when using raw pixel data.
612
- * @throws {Error} Invalid parameters
613
- * @returns A sharp instance that can be used to chain operations
614
- */
615
- boolean(operand: string | Buffer, operator: keyof BoolEnum, options?: { raw: Raw }): Sharp;
616
-
617
- /**
618
- * Apply the linear formula a * input + b to the image (levels adjustment)
619
- * @param a multiplier (optional, default 1.0)
620
- * @param b offset (optional, default 0.0)
621
- * @throws {Error} Invalid parameters
622
- * @returns A sharp instance that can be used to chain operations
623
- */
624
- linear(a?: number | number[] | null, b?: number | number[]): Sharp;
625
-
626
- /**
627
- * Recomb the image with the specified matrix.
628
- * @param inputMatrix 3x3 Recombination matrix or 4x4 Recombination matrix
629
- * @throws {Error} Invalid parameters
630
- * @returns A sharp instance that can be used to chain operations
631
- */
632
- recomb(inputMatrix: Matrix3x3 | Matrix4x4): Sharp;
633
-
634
- /**
635
- * Transforms the image using brightness, saturation, hue rotation and lightness.
636
- * Brightness and lightness both operate on luminance, with the difference being that brightness is multiplicative whereas lightness is additive.
637
- * @param options describes the modulation
638
- * @returns A sharp instance that can be used to chain operations
639
- */
640
- modulate(options?: {
641
- brightness?: number | undefined;
642
- saturation?: number | undefined;
643
- hue?: number | undefined;
644
- lightness?: number | undefined;
645
- }): Sharp;
646
-
647
- //#endregion
648
-
649
- //#region Output functions
650
-
651
- /**
652
- * Write output image data to a file.
653
- * If an explicit output format is not selected, it will be inferred from the extension, with JPEG, PNG, WebP, AVIF, TIFF, DZI, and libvips' V format supported.
654
- * Note that raw pixel data is only supported for buffer output.
655
- * @param fileOut The path to write the image data to.
656
- * @param callback Callback function called on completion with two arguments (err, info). info contains the output image format, size (bytes), width, height and channels.
657
- * @throws {Error} Invalid parameters
658
- * @returns A sharp instance that can be used to chain operations
659
- */
660
- toFile(fileOut: string, callback: (err: Error, info: OutputInfo) => void): Sharp;
661
-
662
- /**
663
- * Write output image data to a file.
664
- * @param fileOut The path to write the image data to.
665
- * @throws {Error} Invalid parameters
666
- * @returns A promise that fulfills with an object containing information on the resulting file
667
- */
668
- toFile(fileOut: string): Promise<OutputInfo>;
669
-
670
- /**
671
- * Write output to a Buffer. JPEG, PNG, WebP, AVIF, TIFF, GIF and RAW output are supported.
672
- * By default, the format will match the input image, except SVG input which becomes PNG output.
673
- * @param callback Callback function called on completion with three arguments (err, buffer, info).
674
- * @returns A sharp instance that can be used to chain operations
675
- */
676
- toBuffer(callback: (err: Error, buffer: Buffer, info: OutputInfo) => void): Sharp;
677
-
678
- /**
679
- * Write output to a Buffer. JPEG, PNG, WebP, AVIF, TIFF, GIF and RAW output are supported.
680
- * By default, the format will match the input image, except SVG input which becomes PNG output.
681
- * @param options resolve options
682
- * @param options.resolveWithObject Resolve the Promise with an Object containing data and info properties instead of resolving only with data.
683
- * @returns A promise that resolves with the Buffer data.
684
- */
685
- toBuffer(options?: { resolveWithObject: false }): Promise<Buffer>;
686
-
687
- /**
688
- * Write output to a Buffer. JPEG, PNG, WebP, AVIF, TIFF, GIF and RAW output are supported.
689
- * By default, the format will match the input image, except SVG input which becomes PNG output.
690
- * @param options resolve options
691
- * @param options.resolveWithObject Resolve the Promise with an Object containing data and info properties instead of resolving only with data.
692
- * @returns A promise that resolves with an object containing the Buffer data and an info object containing the output image format, size (bytes), width, height and channels
693
- */
694
- toBuffer(options: { resolveWithObject: true }): Promise<{ data: Buffer; info: OutputInfo }>;
695
-
696
- /**
697
- * Keep all EXIF metadata from the input image in the output image.
698
- * EXIF metadata is unsupported for TIFF output.
699
- * @returns A sharp instance that can be used to chain operations
700
- */
701
- keepExif(): Sharp;
702
-
703
- /**
704
- * Set EXIF metadata in the output image, ignoring any EXIF in the input image.
705
- * @param {Exif} exif Object keyed by IFD0, IFD1 etc. of key/value string pairs to write as EXIF data.
706
- * @returns A sharp instance that can be used to chain operations
707
- * @throws {Error} Invalid parameters
708
- */
709
- withExif(exif: Exif): Sharp;
710
-
711
- /**
712
- * Update EXIF metadata from the input image in the output image.
713
- * @param {Exif} exif Object keyed by IFD0, IFD1 etc. of key/value string pairs to write as EXIF data.
714
- * @returns A sharp instance that can be used to chain operations
715
- * @throws {Error} Invalid parameters
716
- */
717
- withExifMerge(exif: Exif): Sharp;
718
-
719
- /**
720
- * Keep ICC profile from the input image in the output image where possible.
721
- * @returns A sharp instance that can be used to chain operations
722
- */
723
- keepIccProfile(): Sharp;
724
-
725
- /**
726
- * Transform using an ICC profile and attach to the output image.
727
- * @param {string} icc - Absolute filesystem path to output ICC profile or built-in profile name (srgb, p3, cmyk).
728
- * @returns A sharp instance that can be used to chain operations
729
- * @throws {Error} Invalid parameters
730
- */
731
- withIccProfile(icc: string, options?: WithIccProfileOptions): Sharp;
732
-
733
- /**
734
- * Keep all XMP metadata from the input image in the output image.
735
- * @returns A sharp instance that can be used to chain operations
736
- */
737
- keepXmp(): Sharp;
738
-
739
- /**
740
- * Set XMP metadata in the output image.
741
- * @param {string} xmp - String containing XMP metadata to be embedded in the output image.
742
- * @returns A sharp instance that can be used to chain operations
743
- * @throws {Error} Invalid parameters
744
- */
745
- withXmp(xmp: string): Sharp;
746
-
747
- /**
748
- * Include all metadata (EXIF, XMP, IPTC) from the input image in the output image.
749
- * The default behaviour, when withMetadata is not used, is to strip all metadata and convert to the device-independent sRGB colour space.
750
- * This will also convert to and add a web-friendly sRGB ICC profile.
751
- * @param withMetadata
752
- * @throws {Error} Invalid parameters.
753
- */
754
- withMetadata(withMetadata?: WriteableMetadata): Sharp;
755
-
756
- /**
757
- * Use these JPEG options for output image.
758
- * @param options Output options.
759
- * @throws {Error} Invalid options
760
- * @returns A sharp instance that can be used to chain operations
761
- */
762
- jpeg(options?: JpegOptions): Sharp;
763
-
764
- /**
765
- * Use these JP2 (JPEG 2000) options for output image.
766
- * @param options Output options.
767
- * @throws {Error} Invalid options
768
- * @returns A sharp instance that can be used to chain operations
769
- */
770
- jp2(options?: Jp2Options): Sharp;
771
-
772
- /**
773
- * Use these JPEG-XL (JXL) options for output image.
774
- * This feature is experimental, please do not use in production systems.
775
- * Requires libvips compiled with support for libjxl.
776
- * The prebuilt binaries do not include this.
777
- * Image metadata (EXIF, XMP) is unsupported.
778
- * @param options Output options.
779
- * @throws {Error} Invalid options
780
- * @returns A sharp instance that can be used to chain operations
781
- */
782
- jxl(options?: JxlOptions): Sharp;
783
-
784
- /**
785
- * Use these PNG options for output image.
786
- * PNG output is always full colour at 8 or 16 bits per pixel.
787
- * Indexed PNG input at 1, 2 or 4 bits per pixel is converted to 8 bits per pixel.
788
- * @param options Output options.
789
- * @throws {Error} Invalid options
790
- * @returns A sharp instance that can be used to chain operations
791
- */
792
- png(options?: PngOptions): Sharp;
793
-
794
- /**
795
- * Use these WebP options for output image.
796
- * @param options Output options.
797
- * @throws {Error} Invalid options
798
- * @returns A sharp instance that can be used to chain operations
799
- */
800
- webp(options?: WebpOptions): Sharp;
801
-
802
- /**
803
- * Use these GIF options for output image.
804
- * Requires libvips compiled with support for ImageMagick or GraphicsMagick. The prebuilt binaries do not include this - see installing a custom libvips.
805
- * @param options Output options.
806
- * @throws {Error} Invalid options
807
- * @returns A sharp instance that can be used to chain operations
808
- */
809
- gif(options?: GifOptions): Sharp;
810
-
811
- /**
812
- * Use these AVIF options for output image.
813
- * @param options Output options.
814
- * @throws {Error} Invalid options
815
- * @returns A sharp instance that can be used to chain operations
816
- */
817
- avif(options?: AvifOptions): Sharp;
818
-
819
- /**
820
- * Use these HEIF options for output image.
821
- * Support for patent-encumbered HEIC images requires the use of a globally-installed libvips compiled with support for libheif, libde265 and x265.
822
- * @param options Output options.
823
- * @throws {Error} Invalid options
824
- * @returns A sharp instance that can be used to chain operations
825
- */
826
- heif(options?: HeifOptions): Sharp;
827
-
828
- /**
829
- * Use these TIFF options for output image.
830
- * @param options Output options.
831
- * @throws {Error} Invalid options
832
- * @returns A sharp instance that can be used to chain operations
833
- */
834
- tiff(options?: TiffOptions): Sharp;
835
-
836
- /**
837
- * Force output to be raw, uncompressed uint8 pixel data.
838
- * @param options Raw output options.
839
- * @throws {Error} Invalid options
840
- * @returns A sharp instance that can be used to chain operations
841
- */
842
- raw(options?: RawOptions): Sharp;
843
-
844
- /**
845
- * Force output to a given format.
846
- * @param format a String or an Object with an 'id' attribute
847
- * @param options output options
848
- * @throws {Error} Unsupported format or options
849
- * @returns A sharp instance that can be used to chain operations
850
- */
851
- toFormat(
852
- format: keyof FormatEnum | AvailableFormatInfo,
853
- options?:
854
- | OutputOptions
855
- | JpegOptions
856
- | PngOptions
857
- | WebpOptions
858
- | AvifOptions
859
- | HeifOptions
860
- | JxlOptions
861
- | GifOptions
862
- | Jp2Options
863
- | RawOptions
864
- | TiffOptions,
865
- ): Sharp;
866
-
867
- /**
868
- * Use tile-based deep zoom (image pyramid) output.
869
- * Set the format and options for tile images via the toFormat, jpeg, png or webp functions.
870
- * Use a .zip or .szi file extension with toFile to write to a compressed archive file format.
871
- * @param tile tile options
872
- * @throws {Error} Invalid options
873
- * @returns A sharp instance that can be used to chain operations
874
- */
875
- tile(tile?: TileOptions): Sharp;
876
-
877
- /**
878
- * Set a timeout for processing, in seconds. Use a value of zero to continue processing indefinitely, the default behaviour.
879
- * The clock starts when libvips opens an input image for processing. Time spent waiting for a libuv thread to become available is not included.
880
- * @param options Object with a `seconds` attribute between 0 and 3600 (number)
881
- * @throws {Error} Invalid options
882
- * @returns A sharp instance that can be used to chain operations
883
- */
884
- timeout(options: TimeoutOptions): Sharp;
885
-
886
- //#endregion
887
-
888
- //#region Resize functions
889
-
890
- /**
891
- * Resize image to width, height or width x height.
892
- *
893
- * When both a width and height are provided, the possible methods by which the image should fit these are:
894
- * - cover: Crop to cover both provided dimensions (the default).
895
- * - contain: Embed within both provided dimensions.
896
- * - fill: Ignore the aspect ratio of the input and stretch to both provided dimensions.
897
- * - inside: Preserving aspect ratio, resize the image to be as large as possible while ensuring its dimensions are less than or equal to both those specified.
898
- * - outside: Preserving aspect ratio, resize the image to be as small as possible while ensuring its dimensions are greater than or equal to both those specified.
899
- * Some of these values are based on the object-fit CSS property.
900
- *
901
- * When using a fit of cover or contain, the default position is centre. Other options are:
902
- * - sharp.position: top, right top, right, right bottom, bottom, left bottom, left, left top.
903
- * - sharp.gravity: north, northeast, east, southeast, south, southwest, west, northwest, center or centre.
904
- * - sharp.strategy: cover only, dynamically crop using either the entropy or attention strategy. Some of these values are based on the object-position CSS property.
905
- *
906
- * The experimental strategy-based approach resizes so one dimension is at its target length then repeatedly ranks edge regions,
907
- * discarding the edge with the lowest score based on the selected strategy.
908
- * - entropy: focus on the region with the highest Shannon entropy.
909
- * - attention: focus on the region with the highest luminance frequency, colour saturation and presence of skin tones.
910
- *
911
- * Possible interpolation kernels are:
912
- * - nearest: Use nearest neighbour interpolation.
913
- * - cubic: Use a Catmull-Rom spline.
914
- * - lanczos2: Use a Lanczos kernel with a=2.
915
- * - lanczos3: Use a Lanczos kernel with a=3 (the default).
916
- *
917
- * @param width pixels wide the resultant image should be. Use null or undefined to auto-scale the width to match the height.
918
- * @param height pixels high the resultant image should be. Use null or undefined to auto-scale the height to match the width.
919
- * @param options resize options
920
- * @throws {Error} Invalid parameters
921
- * @returns A sharp instance that can be used to chain operations
922
- */
923
- resize(widthOrOptions?: number | ResizeOptions | null, height?: number | null, options?: ResizeOptions): Sharp;
924
-
925
- /**
926
- * Shorthand for resize(null, null, options);
927
- *
928
- * @param options resize options
929
- * @throws {Error} Invalid parameters
930
- * @returns A sharp instance that can be used to chain operations
931
- */
932
- resize(options: ResizeOptions): Sharp;
933
-
934
- /**
935
- * Extend / pad / extrude one or more edges of the image with either
936
- * the provided background colour or pixels derived from the image.
937
- * This operation will always occur after resizing and extraction, if any.
938
- * @param extend single pixel count to add to all edges or an Object with per-edge counts
939
- * @throws {Error} Invalid parameters
940
- * @returns A sharp instance that can be used to chain operations
941
- */
942
- extend(extend: number | ExtendOptions): Sharp;
943
-
944
- /**
945
- * Extract a region of the image.
946
- * - Use extract() before resize() for pre-resize extraction.
947
- * - Use extract() after resize() for post-resize extraction.
948
- * - Use extract() before and after for both.
949
- *
950
- * @param region The region to extract
951
- * @throws {Error} Invalid parameters
952
- * @returns A sharp instance that can be used to chain operations
953
- */
954
- extract(region: Region): Sharp;
955
-
956
- /**
957
- * Trim pixels from all edges that contain values similar to the given background colour, which defaults to that of the top-left pixel.
958
- * Images with an alpha channel will use the combined bounding box of alpha and non-alpha channels.
959
- * The info response Object will contain trimOffsetLeft and trimOffsetTop properties.
960
- * @param options trim options
961
- * @throws {Error} Invalid parameters
962
- * @returns A sharp instance that can be used to chain operations
963
- */
964
- trim(options?: TrimOptions): Sharp;
965
-
966
- //#endregion
967
- }
968
-
969
- type SharpInput = Buffer
970
- | ArrayBuffer
971
- | Uint8Array
972
- | Uint8ClampedArray
973
- | Int8Array
974
- | Uint16Array
975
- | Int16Array
976
- | Uint32Array
977
- | Int32Array
978
- | Float32Array
979
- | Float64Array
980
- | string;
981
-
982
- interface SharpOptions {
983
- /**
984
- * Auto-orient based on the EXIF `Orientation` tag, if present.
985
- * Mirroring is supported and may infer the use of a flip operation.
986
- *
987
- * Using this option will remove the EXIF `Orientation` tag, if any.
988
- */
989
- autoOrient?: boolean | undefined;
990
- /**
991
- * When to abort processing of invalid pixel data, one of (in order of sensitivity):
992
- * 'none' (least), 'truncated', 'error' or 'warning' (most), highers level imply lower levels, invalid metadata will always abort. (optional, default 'warning')
993
- */
994
- failOn?: FailOnOptions | undefined;
995
- /**
996
- * By default halt processing and raise an error when loading invalid images.
997
- * Set this flag to false if you'd rather apply a "best effort" to decode images,
998
- * even if the data is corrupt or invalid. (optional, default true)
999
- *
1000
- * @deprecated Use `failOn` instead
1001
- */
1002
- failOnError?: boolean | undefined;
1003
- /**
1004
- * Do not process input images where the number of pixels (width x height) exceeds this limit.
1005
- * Assumes image dimensions contained in the input metadata can be trusted.
1006
- * An integral Number of pixels, zero or false to remove limit, true to use default limit of 268402689 (0x3FFF x 0x3FFF). (optional, default 268402689)
1007
- */
1008
- limitInputPixels?: number | boolean | undefined;
1009
- /** Set this to true to remove safety features that help prevent memory exhaustion (SVG, PNG). (optional, default false) */
1010
- unlimited?: boolean | undefined;
1011
- /** Set this to false to use random access rather than sequential read. Some operations will do this automatically. */
1012
- sequentialRead?: boolean | undefined;
1013
- /** Number representing the DPI for vector images in the range 1 to 100000. (optional, default 72) */
1014
- density?: number | undefined;
1015
- /** Should the embedded ICC profile, if any, be ignored. */
1016
- ignoreIcc?: boolean | undefined;
1017
- /** Number of pages to extract for multi-page input (GIF, TIFF, PDF), use -1 for all pages */
1018
- pages?: number | undefined;
1019
- /** Page number to start extracting from for multi-page input (GIF, TIFF, PDF), zero based. (optional, default 0) */
1020
- page?: number | undefined;
1021
- /** TIFF specific input options */
1022
- tiff?: TiffInputOptions | undefined;
1023
- /** SVG specific input options */
1024
- svg?: SvgInputOptions | undefined;
1025
- /** PDF specific input options */
1026
- pdf?: PdfInputOptions | undefined;
1027
- /** OpenSlide specific input options */
1028
- openSlide?: OpenSlideInputOptions | undefined;
1029
- /** JPEG 2000 specific input options */
1030
- jp2?: Jp2InputOptions | undefined;
1031
- /** Deprecated: use tiff.subifd instead */
1032
- subifd?: number | undefined;
1033
- /** Deprecated: use pdf.background instead */
1034
- pdfBackground?: Colour | Color | undefined;
1035
- /** Deprecated: use openSlide.level instead */
1036
- level?: number | undefined;
1037
- /** Set to `true` to read all frames/pages of an animated image (equivalent of setting `pages` to `-1`). (optional, default false) */
1038
- animated?: boolean | undefined;
1039
- /** Describes raw pixel input image data. See raw() for pixel ordering. */
1040
- raw?: CreateRaw | undefined;
1041
- /** Describes a new image to be created. */
1042
- create?: Create | undefined;
1043
- /** Describes a new text image to be created. */
1044
- text?: CreateText | undefined;
1045
- /** Describes how array of input images should be joined. */
1046
- join?: Join | undefined;
1047
- }
1048
-
1049
- interface CacheOptions {
1050
- /** Is the maximum memory in MB to use for this cache (optional, default 50) */
1051
- memory?: number | undefined;
1052
- /** Is the maximum number of files to hold open (optional, default 20) */
1053
- files?: number | undefined;
1054
- /** Is the maximum number of operations to cache (optional, default 100) */
1055
- items?: number | undefined;
1056
- }
1057
-
1058
- interface TimeoutOptions {
1059
- /** Number of seconds after which processing will be stopped (default 0, eg disabled) */
1060
- seconds: number;
1061
- }
1062
-
1063
- interface SharpCounters {
1064
- /** The number of tasks this module has queued waiting for libuv to provide a worker thread from its pool. */
1065
- queue: number;
1066
- /** The number of resize tasks currently being processed. */
1067
- process: number;
1068
- }
1069
-
1070
- interface Raw {
1071
- width: number;
1072
- height: number;
1073
- channels: Channels;
1074
- }
1075
-
1076
- interface CreateRaw extends Raw {
1077
- /** Specifies that the raw input has already been premultiplied, set to true to avoid sharp premultiplying the image. (optional, default false) */
1078
- premultiplied?: boolean | undefined;
1079
- /** The height of each page/frame for animated images, must be an integral factor of the overall image height. */
1080
- pageHeight?: number | undefined;
1081
- }
1082
-
1083
- type CreateChannels = 3 | 4;
1084
-
1085
- interface Create {
1086
- /** Number of pixels wide. */
1087
- width: number;
1088
- /** Number of pixels high. */
1089
- height: number;
1090
- /** Number of bands, 3 for RGB, 4 for RGBA */
1091
- channels: CreateChannels;
1092
- /** Parsed by the [color](https://www.npmjs.org/package/color) module to extract values for red, green, blue and alpha. */
1093
- background: Colour | Color;
1094
- /** Describes a noise to be created. */
1095
- noise?: Noise | undefined;
1096
- /** The height of each page/frame for animated images, must be an integral factor of the overall image height. */
1097
- pageHeight?: number | undefined;
1098
-
1099
- }
1100
-
1101
- interface CreateText {
1102
- /** Text to render as a UTF-8 string. It can contain Pango markup, for example `<i>Le</i>Monde`. */
1103
- text: string;
1104
- /** Font name to render with. */
1105
- font?: string;
1106
- /** Absolute filesystem path to a font file that can be used by `font`. */
1107
- fontfile?: string;
1108
- /** Integral number of pixels to word-wrap at. Lines of text wider than this will be broken at word boundaries. (optional, default `0`) */
1109
- width?: number;
1110
- /**
1111
- * Integral number of pixels high. When defined, `dpi` will be ignored and the text will automatically fit the pixel resolution
1112
- * defined by `width` and `height`. Will be ignored if `width` is not specified or set to 0. (optional, default `0`)
1113
- */
1114
- height?: number;
1115
- /** Text alignment ('left', 'centre', 'center', 'right'). (optional, default 'left') */
1116
- align?: TextAlign;
1117
- /** Set this to true to apply justification to the text. (optional, default `false`) */
1118
- justify?: boolean;
1119
- /** The resolution (size) at which to render the text. Does not take effect if `height` is specified. (optional, default `72`) */
1120
- dpi?: number;
1121
- /**
1122
- * Set this to true to enable RGBA output. This is useful for colour emoji rendering,
1123
- * or support for pango markup features like `<span foreground="red">Red!</span>`. (optional, default `false`)
1124
- */
1125
- rgba?: boolean;
1126
- /** Text line height in points. Will use the font line height if none is specified. (optional, default `0`) */
1127
- spacing?: number;
1128
- /** Word wrapping style when width is provided, one of: 'word', 'char', 'word-char' (prefer word, fallback to char) or 'none' */
1129
- wrap?: TextWrap;
1130
- }
1131
-
1132
- interface Join {
1133
- /** Number of images per row. */
1134
- across?: number | undefined;
1135
- /** Treat input as frames of an animated image. */
1136
- animated?: boolean | undefined;
1137
- /** Space between images, in pixels. */
1138
- shim?: number | undefined;
1139
- /** Background colour. */
1140
- background?: Colour | Color | undefined;
1141
- /** Horizontal alignment. */
1142
- halign?: HorizontalAlignment | undefined;
1143
- /** Vertical alignment. */
1144
- valign?: VerticalAlignment | undefined;
1145
- }
1146
-
1147
- interface TiffInputOptions {
1148
- /** Sub Image File Directory to extract, defaults to main image. Use -1 for all subifds. */
1149
- subifd?: number | undefined;
1150
- }
1151
-
1152
- interface SvgInputOptions {
1153
- /** Custom CSS for SVG input, applied with a User Origin during the CSS cascade. */
1154
- stylesheet?: string | undefined;
1155
- /** Set to `true` to render SVG input at 32-bits per channel (128-bit) instead of 8-bits per channel (32-bit) RGBA. */
1156
- highBitdepth?: boolean | undefined;
1157
- }
1158
-
1159
- interface PdfInputOptions {
1160
- /** Background colour to use when PDF is partially transparent. Requires the use of a globally-installed libvips compiled with support for PDFium, Poppler, ImageMagick or GraphicsMagick. */
1161
- background?: Colour | Color | undefined;
1162
- }
1163
-
1164
- interface OpenSlideInputOptions {
1165
- /** Level to extract from a multi-level input, zero based. (optional, default 0) */
1166
- level?: number | undefined;
1167
- }
1168
-
1169
- interface Jp2InputOptions {
1170
- /** Set to `true` to load JPEG 2000 images using [oneshot mode](https://github.com/libvips/libvips/issues/4205) */
1171
- oneshot?: boolean | undefined;
1172
- }
1173
-
1174
- interface ExifDir {
1175
- [k: string]: string;
1176
- }
1177
-
1178
- interface Exif {
1179
- 'IFD0'?: ExifDir;
1180
- 'IFD1'?: ExifDir;
1181
- 'IFD2'?: ExifDir;
1182
- 'IFD3'?: ExifDir;
1183
- }
1184
-
1185
- type HeifCompression = 'av1' | 'hevc';
1186
-
1187
- type Unit = 'inch' | 'cm';
1188
-
1189
- interface WriteableMetadata {
1190
- /** Number of pixels per inch (DPI) */
1191
- density?: number | undefined;
1192
- /** Value between 1 and 8, used to update the EXIF Orientation tag. */
1193
- orientation?: number | undefined;
1194
- /**
1195
- * Filesystem path to output ICC profile, defaults to sRGB.
1196
- * @deprecated Use `withIccProfile()` instead.
1197
- */
1198
- icc?: string | undefined;
1199
- /**
1200
- * Object keyed by IFD0, IFD1 etc. of key/value string pairs to write as EXIF data.
1201
- * @deprecated Use `withExif()` or `withExifMerge()` instead.
1202
- */
1203
- exif?: Exif | undefined;
1204
- }
1205
-
1206
- interface Metadata {
1207
- /** Number value of the EXIF Orientation header, if present */
1208
- orientation?: number | undefined;
1209
- /** Name of decoder used to decompress image data e.g. jpeg, png, webp, gif, svg */
1210
- format: keyof FormatEnum;
1211
- /** Total size of image in bytes, for Stream and Buffer input only */
1212
- size?: number | undefined;
1213
- /** Number of pixels wide (EXIF orientation is not taken into consideration) */
1214
- width: number;
1215
- /** Number of pixels high (EXIF orientation is not taken into consideration) */
1216
- height: number;
1217
- /** Any changed metadata after the image orientation is applied. */
1218
- autoOrient: {
1219
- /** Number of pixels wide (EXIF orientation is taken into consideration) */
1220
- width: number;
1221
- /** Number of pixels high (EXIF orientation is taken into consideration) */
1222
- height: number;
1223
- };
1224
- /** Name of colour space interpretation */
1225
- space: keyof ColourspaceEnum;
1226
- /** Number of bands e.g. 3 for sRGB, 4 for CMYK */
1227
- channels: Channels;
1228
- /** Name of pixel depth format e.g. uchar, char, ushort, float ... */
1229
- depth: keyof DepthEnum;
1230
- /** Number of pixels per inch (DPI), if present */
1231
- density?: number | undefined;
1232
- /** String containing JPEG chroma subsampling, 4:2:0 or 4:4:4 for RGB, 4:2:0:4 or 4:4:4:4 for CMYK */
1233
- chromaSubsampling?: string | undefined;
1234
- /** Boolean indicating whether the image is interlaced using a progressive scan */
1235
- isProgressive: boolean;
1236
- /** Boolean indicating whether the image is palette-based (GIF, PNG). */
1237
- isPalette: boolean;
1238
- /** Number of bits per sample for each channel (GIF, PNG). */
1239
- bitsPerSample?: number | undefined;
1240
- /** Number of pages/frames contained within the image, with support for TIFF, HEIF, PDF, animated GIF and animated WebP */
1241
- pages?: number | undefined;
1242
- /** Number of pixels high each page in a multi-page image will be. */
1243
- pageHeight?: number | undefined;
1244
- /** Number of times to loop an animated image, zero refers to a continuous loop. */
1245
- loop?: number | undefined;
1246
- /** Delay in ms between each page in an animated image, provided as an array of integers. */
1247
- delay?: number[] | undefined;
1248
- /** Number of the primary page in a HEIF image */
1249
- pagePrimary?: number | undefined;
1250
- /** Boolean indicating the presence of an embedded ICC profile */
1251
- hasProfile: boolean;
1252
- /** Boolean indicating the presence of an alpha transparency channel */
1253
- hasAlpha: boolean;
1254
- /** Buffer containing raw EXIF data, if present */
1255
- exif?: Buffer | undefined;
1256
- /** Buffer containing raw ICC profile data, if present */
1257
- icc?: Buffer | undefined;
1258
- /** Buffer containing raw IPTC data, if present */
1259
- iptc?: Buffer | undefined;
1260
- /** Buffer containing raw XMP data, if present */
1261
- xmp?: Buffer | undefined;
1262
- /** String containing XMP data, if valid UTF-8 */
1263
- xmpAsString?: string | undefined;
1264
- /** Buffer containing raw TIFFTAG_PHOTOSHOP data, if present */
1265
- tifftagPhotoshop?: Buffer | undefined;
1266
- /** The encoder used to compress an HEIF file, `av1` (AVIF) or `hevc` (HEIC) */
1267
- compression?: HeifCompression | undefined;
1268
- /** Default background colour, if present, for PNG (bKGD) and GIF images */
1269
- background?: { r: number; g: number; b: number } | { gray: number };
1270
- /** Details of each level in a multi-level image provided as an array of objects, requires libvips compiled with support for OpenSlide */
1271
- levels?: LevelMetadata[] | undefined;
1272
- /** Number of Sub Image File Directories in an OME-TIFF image */
1273
- subifds?: number | undefined;
1274
- /** The unit of resolution (density) */
1275
- resolutionUnit?: Unit | undefined;
1276
- /** String containing format for images loaded via *magick */
1277
- formatMagick?: string | undefined;
1278
- /** Array of keyword/text pairs representing PNG text blocks, if present. */
1279
- comments?: CommentsMetadata[] | undefined;
1280
- }
1281
-
1282
- interface LevelMetadata {
1283
- width: number;
1284
- height: number;
1285
- }
1286
-
1287
- interface CommentsMetadata {
1288
- keyword: string;
1289
- text: string;
1290
- }
1291
-
1292
- interface Stats {
1293
- /** Array of channel statistics for each channel in the image. */
1294
- channels: ChannelStats[];
1295
- /** Value to identify if the image is opaque or transparent, based on the presence and use of alpha channel */
1296
- isOpaque: boolean;
1297
- /** Histogram-based estimation of greyscale entropy, discarding alpha channel if any (experimental) */
1298
- entropy: number;
1299
- /** Estimation of greyscale sharpness based on the standard deviation of a Laplacian convolution, discarding alpha channel if any (experimental) */
1300
- sharpness: number;
1301
- /** Object containing most dominant sRGB colour based on a 4096-bin 3D histogram (experimental) */
1302
- dominant: { r: number; g: number; b: number };
1303
- }
1304
-
1305
- interface ChannelStats {
1306
- /** minimum value in the channel */
1307
- min: number;
1308
- /** maximum value in the channel */
1309
- max: number;
1310
- /** sum of all values in a channel */
1311
- sum: number;
1312
- /** sum of squared values in a channel */
1313
- squaresSum: number;
1314
- /** mean of the values in a channel */
1315
- mean: number;
1316
- /** standard deviation for the values in a channel */
1317
- stdev: number;
1318
- /** x-coordinate of one of the pixel where the minimum lies */
1319
- minX: number;
1320
- /** y-coordinate of one of the pixel where the minimum lies */
1321
- minY: number;
1322
- /** x-coordinate of one of the pixel where the maximum lies */
1323
- maxX: number;
1324
- /** y-coordinate of one of the pixel where the maximum lies */
1325
- maxY: number;
1326
- }
1327
-
1328
- interface OutputOptions {
1329
- /** Force format output, otherwise attempt to use input format (optional, default true) */
1330
- force?: boolean | undefined;
1331
- }
1332
-
1333
- interface WithIccProfileOptions {
1334
- /** Should the ICC profile be included in the output image metadata? (optional, default true) */
1335
- attach?: boolean | undefined;
1336
- }
1337
-
1338
- interface JpegOptions extends OutputOptions {
1339
- /** Quality, integer 1-100 (optional, default 80) */
1340
- quality?: number | undefined;
1341
- /** Use progressive (interlace) scan (optional, default false) */
1342
- progressive?: boolean | undefined;
1343
- /** Set to '4:4:4' to prevent chroma subsampling when quality <= 90 (optional, default '4:2:0') */
1344
- chromaSubsampling?: string | undefined;
1345
- /** Apply trellis quantisation (optional, default false) */
1346
- trellisQuantisation?: boolean | undefined;
1347
- /** Apply overshoot deringing (optional, default false) */
1348
- overshootDeringing?: boolean | undefined;
1349
- /** Optimise progressive scans, forces progressive (optional, default false) */
1350
- optimiseScans?: boolean | undefined;
1351
- /** Alternative spelling of optimiseScans (optional, default false) */
1352
- optimizeScans?: boolean | undefined;
1353
- /** Optimise Huffman coding tables (optional, default true) */
1354
- optimiseCoding?: boolean | undefined;
1355
- /** Alternative spelling of optimiseCoding (optional, default true) */
1356
- optimizeCoding?: boolean | undefined;
1357
- /** Quantization table to use, integer 0-8 (optional, default 0) */
1358
- quantisationTable?: number | undefined;
1359
- /** Alternative spelling of quantisationTable (optional, default 0) */
1360
- quantizationTable?: number | undefined;
1361
- /** Use mozjpeg defaults (optional, default false) */
1362
- mozjpeg?: boolean | undefined;
1363
- }
1364
-
1365
- interface Jp2Options extends OutputOptions {
1366
- /** Quality, integer 1-100 (optional, default 80) */
1367
- quality?: number;
1368
- /** Use lossless compression mode (optional, default false) */
1369
- lossless?: boolean;
1370
- /** Horizontal tile size (optional, default 512) */
1371
- tileWidth?: number;
1372
- /** Vertical tile size (optional, default 512) */
1373
- tileHeight?: number;
1374
- /** Set to '4:2:0' to enable chroma subsampling (optional, default '4:4:4') */
1375
- chromaSubsampling?: '4:4:4' | '4:2:0';
1376
- }
1377
-
1378
- interface JxlOptions extends OutputOptions {
1379
- /** Maximum encoding error, between 0 (highest quality) and 15 (lowest quality) (optional, default 1.0) */
1380
- distance?: number;
1381
- /** Calculate distance based on JPEG-like quality, between 1 and 100, overrides distance if specified */
1382
- quality?: number;
1383
- /** Target decode speed tier, between 0 (highest quality) and 4 (lowest quality) (optional, default 0) */
1384
- decodingTier?: number;
1385
- /** Use lossless compression (optional, default false) */
1386
- lossless?: boolean;
1387
- /** CPU effort, between 3 (fastest) and 9 (slowest) (optional, default 7) */
1388
- effort?: number | undefined;
1389
- }
1390
-
1391
- interface WebpOptions extends OutputOptions, AnimationOptions {
1392
- /** Quality, integer 1-100 (optional, default 80) */
1393
- quality?: number | undefined;
1394
- /** Quality of alpha layer, number from 0-100 (optional, default 100) */
1395
- alphaQuality?: number | undefined;
1396
- /** Use lossless compression mode (optional, default false) */
1397
- lossless?: boolean | undefined;
1398
- /** Use near_lossless compression mode (optional, default false) */
1399
- nearLossless?: boolean | undefined;
1400
- /** Use high quality chroma subsampling (optional, default false) */
1401
- smartSubsample?: boolean | undefined;
1402
- /** Auto-adjust the deblocking filter, slow but can improve low contrast edges (optional, default false) */
1403
- smartDeblock?: boolean | undefined;
1404
- /** Level of CPU effort to reduce file size, integer 0-6 (optional, default 4) */
1405
- effort?: number | undefined;
1406
- /** Prevent use of animation key frames to minimise file size (slow) (optional, default false) */
1407
- minSize?: boolean;
1408
- /** Allow mixture of lossy and lossless animation frames (slow) (optional, default false) */
1409
- mixed?: boolean;
1410
- /** Preset options: one of default, photo, picture, drawing, icon, text (optional, default 'default') */
1411
- preset?: keyof PresetEnum | undefined;
1412
- }
1413
-
1414
- interface AvifOptions extends OutputOptions {
1415
- /** quality, integer 1-100 (optional, default 50) */
1416
- quality?: number | undefined;
1417
- /** use lossless compression (optional, default false) */
1418
- lossless?: boolean | undefined;
1419
- /** Level of CPU effort to reduce file size, between 0 (fastest) and 9 (slowest) (optional, default 4) */
1420
- effort?: number | undefined;
1421
- /** set to '4:2:0' to use chroma subsampling, requires libvips v8.11.0 (optional, default '4:4:4') */
1422
- chromaSubsampling?: string | undefined;
1423
- /** Set bitdepth to 8, 10 or 12 bit (optional, default 8) */
1424
- bitdepth?: 8 | 10 | 12 | undefined;
1425
- }
1426
-
1427
- interface HeifOptions extends OutputOptions {
1428
- /** quality, integer 1-100 (optional, default 50) */
1429
- quality?: number | undefined;
1430
- /** compression format: av1, hevc (optional, default 'av1') */
1431
- compression?: HeifCompression | undefined;
1432
- /** use lossless compression (optional, default false) */
1433
- lossless?: boolean | undefined;
1434
- /** Level of CPU effort to reduce file size, between 0 (fastest) and 9 (slowest) (optional, default 4) */
1435
- effort?: number | undefined;
1436
- /** set to '4:2:0' to use chroma subsampling (optional, default '4:4:4') */
1437
- chromaSubsampling?: string | undefined;
1438
- /** Set bitdepth to 8, 10 or 12 bit (optional, default 8) */
1439
- bitdepth?: 8 | 10 | 12 | undefined;
1440
- }
1441
-
1442
- interface GifOptions extends OutputOptions, AnimationOptions {
1443
- /** Re-use existing palette, otherwise generate new (slow) */
1444
- reuse?: boolean | undefined;
1445
- /** Use progressive (interlace) scan */
1446
- progressive?: boolean | undefined;
1447
- /** Maximum number of palette entries, including transparency, between 2 and 256 (optional, default 256) */
1448
- colours?: number | undefined;
1449
- /** Alternative spelling of "colours". Maximum number of palette entries, including transparency, between 2 and 256 (optional, default 256) */
1450
- colors?: number | undefined;
1451
- /** Level of CPU effort to reduce file size, between 1 (fastest) and 10 (slowest) (optional, default 7) */
1452
- effort?: number | undefined;
1453
- /** Level of Floyd-Steinberg error diffusion, between 0 (least) and 1 (most) (optional, default 1.0) */
1454
- dither?: number | undefined;
1455
- /** Maximum inter-frame error for transparency, between 0 (lossless) and 32 (optional, default 0) */
1456
- interFrameMaxError?: number | undefined;
1457
- /** Maximum inter-palette error for palette reuse, between 0 and 256 (optional, default 3) */
1458
- interPaletteMaxError?: number | undefined;
1459
- /** Keep duplicate frames in the output instead of combining them (optional, default false) */
1460
- keepDuplicateFrames?: boolean | undefined;
1461
- }
1462
-
1463
- interface TiffOptions extends OutputOptions {
1464
- /** Quality, integer 1-100 (optional, default 80) */
1465
- quality?: number | undefined;
1466
- /** Compression options: none, jpeg, deflate, packbits, ccittfax4, lzw, webp, zstd, jp2k (optional, default 'jpeg') */
1467
- compression?: string | undefined;
1468
- /** Use BigTIFF variant (has no effect when compression is none) (optional, default false) */
1469
- bigtiff?: boolean | undefined;
1470
- /** Compression predictor options: none, horizontal, float (optional, default 'horizontal') */
1471
- predictor?: string | undefined;
1472
- /** Write an image pyramid (optional, default false) */
1473
- pyramid?: boolean | undefined;
1474
- /** Write a tiled tiff (optional, default false) */
1475
- tile?: boolean | undefined;
1476
- /** Horizontal tile size (optional, default 256) */
1477
- tileWidth?: number | undefined;
1478
- /** Vertical tile size (optional, default 256) */
1479
- tileHeight?: number | undefined;
1480
- /** Horizontal resolution in pixels/mm (optional, default 1.0) */
1481
- xres?: number | undefined;
1482
- /** Vertical resolution in pixels/mm (optional, default 1.0) */
1483
- yres?: number | undefined;
1484
- /** Reduce bitdepth to 1, 2 or 4 bit (optional, default 8) */
1485
- bitdepth?: 1 | 2 | 4 | 8 | undefined;
1486
- /** Write 1-bit images as miniswhite (optional, default false) */
1487
- miniswhite?: boolean | undefined;
1488
- /** Resolution unit options: inch, cm (optional, default 'inch') */
1489
- resolutionUnit?: Unit | undefined;
1490
- }
1491
-
1492
- interface PngOptions extends OutputOptions {
1493
- /** Use progressive (interlace) scan (optional, default false) */
1494
- progressive?: boolean | undefined;
1495
- /** zlib compression level, 0-9 (optional, default 6) */
1496
- compressionLevel?: number | undefined;
1497
- /** Use adaptive row filtering (optional, default false) */
1498
- adaptiveFiltering?: boolean | undefined;
1499
- /** Use the lowest number of colours needed to achieve given quality (optional, default `100`) */
1500
- quality?: number | undefined;
1501
- /** Level of CPU effort to reduce file size, between 1 (fastest) and 10 (slowest), sets palette to true (optional, default 7) */
1502
- effort?: number | undefined;
1503
- /** Quantise to a palette-based image with alpha transparency support (optional, default false) */
1504
- palette?: boolean | undefined;
1505
- /** Maximum number of palette entries (optional, default 256) */
1506
- colours?: number | undefined;
1507
- /** Alternative Spelling of "colours". Maximum number of palette entries (optional, default 256) */
1508
- colors?: number | undefined;
1509
- /** Level of Floyd-Steinberg error diffusion (optional, default 1.0) */
1510
- dither?: number | undefined;
1511
- }
1512
-
1513
- interface RotateOptions {
1514
- /** parsed by the color module to extract values for red, green, blue and alpha. (optional, default "#000000") */
1515
- background?: Colour | Color | undefined;
1516
- }
1517
-
1518
- type Precision = 'integer' | 'float' | 'approximate';
1519
-
1520
- interface BlurOptions {
1521
- /** A value between 0.3 and 1000 representing the sigma of the Gaussian mask, where `sigma = 1 + radius / 2` */
1522
- sigma: number;
1523
- /** A value between 0.001 and 1. A smaller value will generate a larger, more accurate mask. */
1524
- minAmplitude?: number;
1525
- /** How accurate the operation should be, one of: integer, float, approximate. (optional, default "integer") */
1526
- precision?: Precision | undefined;
1527
- }
1528
-
1529
- interface FlattenOptions {
1530
- /** background colour, parsed by the color module, defaults to black. (optional, default {r:0,g:0,b:0}) */
1531
- background?: Colour | Color | undefined;
1532
- }
1533
-
1534
- interface NegateOptions {
1535
- /** whether or not to negate any alpha channel. (optional, default true) */
1536
- alpha?: boolean | undefined;
1537
- }
1538
-
1539
- interface NormaliseOptions {
1540
- /** Percentile below which luminance values will be underexposed. */
1541
- lower?: number | undefined;
1542
- /** Percentile above which luminance values will be overexposed. */
1543
- upper?: number | undefined;
1544
- }
1545
-
1546
- interface ResizeOptions {
1547
- /** Alternative means of specifying width. If both are present this takes priority. */
1548
- width?: number | undefined;
1549
- /** Alternative means of specifying height. If both are present this takes priority. */
1550
- height?: number | undefined;
1551
- /** How the image should be resized to fit both provided dimensions, one of cover, contain, fill, inside or outside. (optional, default 'cover') */
1552
- fit?: keyof FitEnum | undefined;
1553
- /** Position, gravity or strategy to use when fit is cover or contain. (optional, default 'centre') */
1554
- position?: number | string | undefined;
1555
- /** Background colour when using a fit of contain, parsed by the color module, defaults to black without transparency. (optional, default {r:0,g:0,b:0,alpha:1}) */
1556
- background?: Colour | Color | undefined;
1557
- /** The kernel to use for image reduction. (optional, default 'lanczos3') */
1558
- kernel?: keyof KernelEnum | undefined;
1559
- /** Do not enlarge if the width or height are already less than the specified dimensions, equivalent to GraphicsMagick's > geometry option. (optional, default false) */
1560
- withoutEnlargement?: boolean | undefined;
1561
- /** Do not reduce if the width or height are already greater than the specified dimensions, equivalent to GraphicsMagick's < geometry option. (optional, default false) */
1562
- withoutReduction?: boolean | undefined;
1563
- /** Take greater advantage of the JPEG and WebP shrink-on-load feature, which can lead to a slight moiré pattern on some images. (optional, default true) */
1564
- fastShrinkOnLoad?: boolean | undefined;
1565
- }
1566
-
1567
- interface Region {
1568
- /** zero-indexed offset from left edge */
1569
- left: number;
1570
- /** zero-indexed offset from top edge */
1571
- top: number;
1572
- /** dimension of extracted image */
1573
- width: number;
1574
- /** dimension of extracted image */
1575
- height: number;
1576
- }
1577
-
1578
- interface Noise {
1579
- /** type of generated noise, currently only gaussian is supported. */
1580
- type: 'gaussian';
1581
- /** mean of pixels in generated noise. */
1582
- mean?: number | undefined;
1583
- /** standard deviation of pixels in generated noise. */
1584
- sigma?: number | undefined;
1585
- }
1586
-
1587
- type ExtendWith = 'background' | 'copy' | 'repeat' | 'mirror';
1588
-
1589
- interface ExtendOptions {
1590
- /** single pixel count to top edge (optional, default 0) */
1591
- top?: number | undefined;
1592
- /** single pixel count to left edge (optional, default 0) */
1593
- left?: number | undefined;
1594
- /** single pixel count to bottom edge (optional, default 0) */
1595
- bottom?: number | undefined;
1596
- /** single pixel count to right edge (optional, default 0) */
1597
- right?: number | undefined;
1598
- /** background colour, parsed by the color module, defaults to black without transparency. (optional, default {r:0,g:0,b:0,alpha:1}) */
1599
- background?: Colour | Color | undefined;
1600
- /** how the extension is done, one of: "background", "copy", "repeat", "mirror" (optional, default `'background'`) */
1601
- extendWith?: ExtendWith | undefined;
1602
- }
1603
-
1604
- interface TrimOptions {
1605
- /** Background colour, parsed by the color module, defaults to that of the top-left pixel. (optional) */
1606
- background?: Colour | Color | undefined;
1607
- /** Allowed difference from the above colour, a positive number. (optional, default 10) */
1608
- threshold?: number | undefined;
1609
- /** Does the input more closely resemble line art (e.g. vector) rather than being photographic? (optional, default false) */
1610
- lineArt?: boolean | undefined;
1611
- }
1612
-
1613
- interface RawOptions {
1614
- depth?: keyof DepthEnum;
1615
- }
1616
-
1617
- /** 1 for grayscale, 2 for grayscale + alpha, 3 for sRGB, 4 for CMYK or RGBA */
1618
- type Channels = 1 | 2 | 3 | 4;
1619
-
1620
- interface RGBA {
1621
- r?: number | undefined;
1622
- g?: number | undefined;
1623
- b?: number | undefined;
1624
- alpha?: number | undefined;
1625
- }
1626
-
1627
- type Colour = string | RGBA;
1628
- type Color = Colour;
1629
-
1630
- interface Kernel {
1631
- /** width of the kernel in pixels. */
1632
- width: number;
1633
- /** height of the kernel in pixels. */
1634
- height: number;
1635
- /** Array of length width*height containing the kernel values. */
1636
- kernel: ArrayLike<number>;
1637
- /** the scale of the kernel in pixels. (optional, default sum) */
1638
- scale?: number | undefined;
1639
- /** the offset of the kernel in pixels. (optional, default 0) */
1640
- offset?: number | undefined;
1641
- }
1642
-
1643
- interface ClaheOptions {
1644
- /** width of the region */
1645
- width: number;
1646
- /** height of the region */
1647
- height: number;
1648
- /** max slope of the cumulative contrast. A value of 0 disables contrast limiting. Valid values are integers in the range 0-100 (inclusive) (optional, default 3) */
1649
- maxSlope?: number | undefined;
1650
- }
1651
-
1652
- interface ThresholdOptions {
1653
- /** convert to single channel greyscale. (optional, default true) */
1654
- greyscale?: boolean | undefined;
1655
- /** alternative spelling for greyscale. (optional, default true) */
1656
- grayscale?: boolean | undefined;
1657
- }
1658
-
1659
- interface OverlayOptions extends SharpOptions {
1660
- /** Buffer containing image data, String containing the path to an image file, or Create object */
1661
- input?: string | Buffer | { create: Create } | { text: CreateText } | { raw: CreateRaw } | undefined;
1662
- /** how to blend this image with the image below. (optional, default `'over'`) */
1663
- blend?: Blend | undefined;
1664
- /** gravity at which to place the overlay. (optional, default 'centre') */
1665
- gravity?: Gravity | undefined;
1666
- /** the pixel offset from the top edge. */
1667
- top?: number | undefined;
1668
- /** the pixel offset from the left edge. */
1669
- left?: number | undefined;
1670
- /** set to true to repeat the overlay image across the entire image with the given gravity. (optional, default false) */
1671
- tile?: boolean | undefined;
1672
- /** Set to true to avoid premultipling the image below. Equivalent to the --premultiplied vips option. */
1673
- premultiplied?: boolean | undefined;
1674
- /** number representing the DPI for vector overlay image. (optional, default 72)*/
1675
- density?: number | undefined;
1676
- /** Set to true to read all frames/pages of an animated image. (optional, default false) */
1677
- animated?: boolean | undefined;
1678
- /** see sharp() constructor, (optional, default 'warning') */
1679
- failOn?: FailOnOptions | undefined;
1680
- /** see sharp() constructor, (optional, default 268402689) */
1681
- limitInputPixels?: number | boolean | undefined;
1682
- /** see sharp() constructor, (optional, default false) */
1683
- autoOrient?: boolean | undefined;
1684
- }
1685
-
1686
- interface TileOptions {
1687
- /** Tile size in pixels, a value between 1 and 8192. (optional, default 256) */
1688
- size?: number | undefined;
1689
- /** Tile overlap in pixels, a value between 0 and 8192. (optional, default 0) */
1690
- overlap?: number | undefined;
1691
- /** Tile angle of rotation, must be a multiple of 90. (optional, default 0) */
1692
- angle?: number | undefined;
1693
- /** background colour, parsed by the color module, defaults to white without transparency. (optional, default {r:255,g:255,b:255,alpha:1}) */
1694
- background?: string | RGBA | undefined;
1695
- /** How deep to make the pyramid, possible values are "onepixel", "onetile" or "one" (default based on layout) */
1696
- depth?: string | undefined;
1697
- /** Threshold to skip tile generation, a value 0 - 255 for 8-bit images or 0 - 65535 for 16-bit images */
1698
- skipBlanks?: number | undefined;
1699
- /** Tile container, with value fs (filesystem) or zip (compressed file). (optional, default 'fs') */
1700
- container?: TileContainer | undefined;
1701
- /** Filesystem layout, possible values are dz, iiif, iiif3, zoomify or google. (optional, default 'dz') */
1702
- layout?: TileLayout | undefined;
1703
- /** Centre image in tile. (optional, default false) */
1704
- centre?: boolean | undefined;
1705
- /** Alternative spelling of centre. (optional, default false) */
1706
- center?: boolean | undefined;
1707
- /** When layout is iiif/iiif3, sets the @id/id attribute of info.json (optional, default 'https://example.com/iiif') */
1708
- id?: string | undefined;
1709
- /** The name of the directory within the zip file when container is `zip`. */
1710
- basename?: string | undefined;
1711
- }
1712
-
1713
- interface AnimationOptions {
1714
- /** Number of animation iterations, a value between 0 and 65535. Use 0 for infinite animation. (optional, default 0) */
1715
- loop?: number | undefined;
1716
- /** delay(s) between animation frames (in milliseconds), each value between 0 and 65535. (optional) */
1717
- delay?: number | number[] | undefined;
1718
- }
1719
-
1720
- interface SharpenOptions {
1721
- /** The sigma of the Gaussian mask, where sigma = 1 + radius / 2, between 0.000001 and 10000 */
1722
- sigma: number;
1723
- /** The level of sharpening to apply to "flat" areas, between 0 and 1000000 (optional, default 1.0) */
1724
- m1?: number | undefined;
1725
- /** The level of sharpening to apply to "jagged" areas, between 0 and 1000000 (optional, default 2.0) */
1726
- m2?: number | undefined;
1727
- /** Threshold between "flat" and "jagged", between 0 and 1000000 (optional, default 2.0) */
1728
- x1?: number | undefined;
1729
- /** Maximum amount of brightening, between 0 and 1000000 (optional, default 10.0) */
1730
- y2?: number | undefined;
1731
- /** Maximum amount of darkening, between 0 and 1000000 (optional, default 20.0) */
1732
- y3?: number | undefined;
1733
- }
1734
-
1735
- interface AffineOptions {
1736
- /** Parsed by the color module to extract values for red, green, blue and alpha. (optional, default "#000000") */
1737
- background?: string | object | undefined;
1738
- /** Input horizontal offset (optional, default 0) */
1739
- idx?: number | undefined;
1740
- /** Input vertical offset (optional, default 0) */
1741
- idy?: number | undefined;
1742
- /** Output horizontal offset (optional, default 0) */
1743
- odx?: number | undefined;
1744
- /** Output horizontal offset (optional, default 0) */
1745
- ody?: number | undefined;
1746
- /** Interpolator (optional, default sharp.interpolators.bicubic) */
1747
- interpolator?: Interpolators[keyof Interpolators] | undefined;
1748
- }
1749
-
1750
- interface OutputInfo {
1751
- format: string;
1752
- size: number;
1753
- width: number;
1754
- height: number;
1755
- channels: Channels;
1756
- /** indicating if premultiplication was used */
1757
- premultiplied: boolean;
1758
- /** Only defined when using a crop strategy */
1759
- cropOffsetLeft?: number | undefined;
1760
- /** Only defined when using a crop strategy */
1761
- cropOffsetTop?: number | undefined;
1762
- /** Only defined when using a trim method */
1763
- trimOffsetLeft?: number | undefined;
1764
- /** Only defined when using a trim method */
1765
- trimOffsetTop?: number | undefined;
1766
- /** DPI the font was rendered at, only defined when using `text` input */
1767
- textAutofitDpi?: number | undefined;
1768
- /** When using the attention crop strategy, the focal point of the cropped region */
1769
- attentionX?: number | undefined;
1770
- attentionY?: number | undefined;
1771
- /** Number of pages/frames contained within the image, with support for TIFF, HEIF, PDF, animated GIF and animated WebP */
1772
- pages?: number | undefined;
1773
- /** Number of pixels high each page in a multi-page image will be. */
1774
- pageHeight?: number | undefined;
1775
- }
1776
-
1777
- interface AvailableFormatInfo {
1778
- id: string;
1779
- input: { file: boolean; buffer: boolean; stream: boolean; fileSuffix?: string[] };
1780
- output: { file: boolean; buffer: boolean; stream: boolean; alias?: string[] };
1781
- }
1782
-
1783
- interface FitEnum {
1784
- contain: 'contain';
1785
- cover: 'cover';
1786
- fill: 'fill';
1787
- inside: 'inside';
1788
- outside: 'outside';
1789
- }
1790
-
1791
- interface KernelEnum {
1792
- nearest: 'nearest';
1793
- cubic: 'cubic';
1794
- linear: 'linear';
1795
- mitchell: 'mitchell';
1796
- lanczos2: 'lanczos2';
1797
- lanczos3: 'lanczos3';
1798
- mks2013: 'mks2013';
1799
- mks2021: 'mks2021';
1800
- }
1801
-
1802
- interface PresetEnum {
1803
- default: 'default';
1804
- picture: 'picture';
1805
- photo: 'photo';
1806
- drawing: 'drawing';
1807
- icon: 'icon';
1808
- text: 'text';
1809
- }
1810
-
1811
- interface BoolEnum {
1812
- and: 'and';
1813
- or: 'or';
1814
- eor: 'eor';
1815
- }
1816
-
1817
- interface ColourspaceEnum {
1818
- 'b-w': string;
1819
- cmc: string;
1820
- cmyk: string;
1821
- fourier: string;
1822
- grey16: string;
1823
- histogram: string;
1824
- hsv: string;
1825
- lab: string;
1826
- labq: string;
1827
- labs: string;
1828
- lch: string;
1829
- matrix: string;
1830
- multiband: string;
1831
- rgb: string;
1832
- rgb16: string;
1833
- scrgb: string;
1834
- srgb: string;
1835
- xyz: string;
1836
- yxy: string;
1837
- }
1838
-
1839
- interface DepthEnum {
1840
- char: string;
1841
- complex: string;
1842
- double: string;
1843
- dpcomplex: string;
1844
- float: string;
1845
- int: string;
1846
- short: string;
1847
- uchar: string;
1848
- uint: string;
1849
- ushort: string;
1850
- }
1851
-
1852
- type FailOnOptions = 'none' | 'truncated' | 'error' | 'warning';
1853
-
1854
- type TextAlign = 'left' | 'centre' | 'center' | 'right';
1855
-
1856
- type TextWrap = 'word' | 'char' | 'word-char' | 'none';
1857
-
1858
- type HorizontalAlignment = 'left' | 'centre' | 'center' | 'right';
1859
-
1860
- type VerticalAlignment = 'top' | 'centre' | 'center' | 'bottom';
1861
-
1862
- type TileContainer = 'fs' | 'zip';
1863
-
1864
- type TileLayout = 'dz' | 'iiif' | 'iiif3' | 'zoomify' | 'google';
1865
-
1866
- type Blend =
1867
- | 'clear'
1868
- | 'source'
1869
- | 'over'
1870
- | 'in'
1871
- | 'out'
1872
- | 'atop'
1873
- | 'dest'
1874
- | 'dest-over'
1875
- | 'dest-in'
1876
- | 'dest-out'
1877
- | 'dest-atop'
1878
- | 'xor'
1879
- | 'add'
1880
- | 'saturate'
1881
- | 'multiply'
1882
- | 'screen'
1883
- | 'overlay'
1884
- | 'darken'
1885
- | 'lighten'
1886
- | 'color-dodge'
1887
- | 'colour-dodge'
1888
- | 'color-burn'
1889
- | 'colour-burn'
1890
- | 'hard-light'
1891
- | 'soft-light'
1892
- | 'difference'
1893
- | 'exclusion';
1894
-
1895
- type Gravity = number | string;
1896
-
1897
- interface GravityEnum {
1898
- north: number;
1899
- northeast: number;
1900
- southeast: number;
1901
- south: number;
1902
- southwest: number;
1903
- west: number;
1904
- northwest: number;
1905
- east: number;
1906
- center: number;
1907
- centre: number;
1908
- }
1909
-
1910
- interface StrategyEnum {
1911
- entropy: number;
1912
- attention: number;
1913
- }
1914
-
1915
- interface FormatEnum {
1916
- avif: AvailableFormatInfo;
1917
- dcraw: AvailableFormatInfo;
1918
- dz: AvailableFormatInfo;
1919
- exr: AvailableFormatInfo;
1920
- fits: AvailableFormatInfo;
1921
- gif: AvailableFormatInfo;
1922
- heif: AvailableFormatInfo;
1923
- input: AvailableFormatInfo;
1924
- jpeg: AvailableFormatInfo;
1925
- jpg: AvailableFormatInfo;
1926
- jp2: AvailableFormatInfo;
1927
- jxl: AvailableFormatInfo;
1928
- magick: AvailableFormatInfo;
1929
- openslide: AvailableFormatInfo;
1930
- pdf: AvailableFormatInfo;
1931
- png: AvailableFormatInfo;
1932
- ppm: AvailableFormatInfo;
1933
- rad: AvailableFormatInfo;
1934
- raw: AvailableFormatInfo;
1935
- svg: AvailableFormatInfo;
1936
- tiff: AvailableFormatInfo;
1937
- tif: AvailableFormatInfo;
1938
- v: AvailableFormatInfo;
1939
- webp: AvailableFormatInfo;
1940
- }
1941
-
1942
- interface CacheResult {
1943
- memory: { current: number; high: number; max: number };
1944
- files: { current: number; max: number };
1945
- items: { current: number; max: number };
1946
- }
1947
-
1948
- interface Interpolators {
1949
- /** [Nearest neighbour interpolation](http://en.wikipedia.org/wiki/Nearest-neighbor_interpolation). Suitable for image enlargement only. */
1950
- nearest: 'nearest';
1951
- /** [Bilinear interpolation](http://en.wikipedia.org/wiki/Bilinear_interpolation). Faster than bicubic but with less smooth results. */
1952
- bilinear: 'bilinear';
1953
- /** [Bicubic interpolation](http://en.wikipedia.org/wiki/Bicubic_interpolation) (the default). */
1954
- bicubic: 'bicubic';
1955
- /**
1956
- * [LBB interpolation](https://github.com/libvips/libvips/blob/master/libvips/resample/lbb.cpp#L100).
1957
- * Prevents some "[acutance](http://en.wikipedia.org/wiki/Acutance)" but typically reduces performance by a factor of 2.
1958
- */
1959
- locallyBoundedBicubic: 'lbb';
1960
- /** [Nohalo interpolation](http://eprints.soton.ac.uk/268086/). Prevents acutance but typically reduces performance by a factor of 3. */
1961
- nohalo: 'nohalo';
1962
- /** [VSQBS interpolation](https://github.com/libvips/libvips/blob/master/libvips/resample/vsqbs.cpp#L48). Prevents "staircasing" when enlarging. */
1963
- vertexSplitQuadraticBasisSpline: 'vsqbs';
1964
- }
1965
-
1966
- type Matrix2x2 = [[number, number], [number, number]];
1967
- type Matrix3x3 = [[number, number, number], [number, number, number], [number, number, number]];
1968
- type Matrix4x4 = [[number, number, number, number], [number, number, number, number], [number, number, number, number], [number, number, number, number]];
1969
- }
1970
-
1971
- export = sharp;