9router 0.5.116 → 0.5.119

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 (712) hide show
  1. package/README.md +2 -2
  2. package/app/.next-cli-build/BUILD_ID +1 -1
  3. package/app/.next-cli-build/app-path-routes-manifest.json +4 -4
  4. package/app/.next-cli-build/build-manifest.json +2 -2
  5. package/app/.next-cli-build/prerender-manifest.json +3 -3
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +12 -12
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  75. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  76. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  77. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  78. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  79. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  80. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  82. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  83. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  84. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  85. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  86. package/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  87. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  88. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  89. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  90. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  91. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  92. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  93. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  94. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  95. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  104. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  128. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  151. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  159. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  161. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/oauth/commandcode/auto-import/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  187. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/providers/web-login/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  256. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  258. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  269. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  271. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  273. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  286. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +4 -4
  288. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -3
  296. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  301. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  303. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  305. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  307. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  313. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  315. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  317. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  319. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  320. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  321. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  323. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  325. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  326. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  327. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  328. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  329. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  331. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  332. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  333. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  335. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  337. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  338. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  339. package/app/.next-cli-build/server/app/callback.html +1 -1
  340. package/app/.next-cli-build/server/app/callback.rsc +3 -3
  341. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  342. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  343. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
  344. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  345. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +3 -3
  346. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +3 -3
  347. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +3 -3
  348. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  349. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  350. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  351. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +6 -6
  352. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  353. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  354. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  355. package/app/.next-cli-build/server/app/dashboard/combos.rsc +3 -3
  356. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +3 -3
  357. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +3 -3
  358. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  359. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  360. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +3 -3
  361. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +3 -3
  362. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +3 -3
  363. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  364. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  365. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +3 -3
  366. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +3 -3
  367. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +3 -3
  368. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  369. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  370. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  371. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +6 -6
  372. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  373. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  374. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  375. package/app/.next-cli-build/server/app/dashboard/profile.rsc +3 -3
  376. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +3 -3
  377. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +3 -3
  378. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  379. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  380. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +3 -3
  381. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +3 -3
  382. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +3 -3
  383. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  384. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  385. package/app/.next-cli-build/server/app/dashboard/providers.rsc +3 -3
  386. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +3 -3
  387. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +3 -3
  388. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  389. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  390. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
  391. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +5 -5
  392. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
  393. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  394. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  395. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +3 -3
  396. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +3 -3
  397. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +3 -3
  398. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  399. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  400. package/app/.next-cli-build/server/app/dashboard/quota.rsc +4 -4
  401. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +4 -4
  402. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +4 -4
  403. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  404. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  405. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  406. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  407. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  408. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  409. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  410. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  411. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +3 -3
  412. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  413. package/app/.next-cli-build/server/app/dashboard/skills.rsc +3 -3
  414. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +3 -3
  415. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +3 -3
  416. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  417. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  418. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +3 -3
  419. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +3 -3
  420. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +3 -3
  421. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  422. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  423. package/app/.next-cli-build/server/app/dashboard/translator.rsc +3 -3
  424. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +3 -3
  425. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +3 -3
  426. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  427. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  428. package/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
  429. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +5 -5
  430. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  431. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  432. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  433. package/app/.next-cli-build/server/app/dashboard.rsc +3 -3
  434. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +3 -3
  435. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +3 -3
  436. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  437. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  438. package/app/.next-cli-build/server/app/index.html +1 -1
  439. package/app/.next-cli-build/server/app/index.rsc +3 -3
  440. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  441. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  442. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  443. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  444. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  445. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  446. package/app/.next-cli-build/server/app/landing.html +1 -1
  447. package/app/.next-cli-build/server/app/landing.rsc +3 -3
  448. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  449. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  450. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +3 -3
  451. package/app/.next-cli-build/server/app/login/page.js +1 -1
  452. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  453. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  454. package/app/.next-cli-build/server/app/login.html +1 -1
  455. package/app/.next-cli-build/server/app/login.rsc +3 -3
  456. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +3 -3
  457. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  458. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
  459. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  460. package/app/.next-cli-build/server/app/page.js +1 -1
  461. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  462. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  463. package/app/.next-cli-build/server/app-paths-manifest.json +4 -4
  464. package/app/.next-cli-build/server/chunks/1051.js +1 -1
  465. package/app/.next-cli-build/server/chunks/1133.js +1 -1
  466. package/app/.next-cli-build/server/chunks/{2380.js → 1297.js} +3 -53
  467. package/app/.next-cli-build/server/chunks/1356.js +1 -1
  468. package/app/.next-cli-build/server/chunks/{2365.js → 1866.js} +1 -1
  469. package/app/.next-cli-build/server/chunks/24.js +1 -1
  470. package/app/.next-cli-build/server/chunks/2598.js +1 -1
  471. package/app/.next-cli-build/server/chunks/2840.js +1 -0
  472. package/app/.next-cli-build/server/chunks/3225.js +1 -1
  473. package/app/.next-cli-build/server/chunks/3697.js +1 -1
  474. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  475. package/app/.next-cli-build/server/chunks/412.js +5 -5
  476. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  477. package/app/.next-cli-build/server/chunks/4279.js +1 -1
  478. package/app/.next-cli-build/server/chunks/4882.js +1 -1
  479. package/app/.next-cli-build/server/chunks/{3783.js → 5299.js} +3 -3
  480. package/app/.next-cli-build/server/chunks/5330.js +34 -34
  481. package/app/.next-cli-build/server/chunks/5615.js +1 -1
  482. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  483. package/app/.next-cli-build/server/chunks/615.js +1 -1
  484. package/app/.next-cli-build/server/chunks/6297.js +1 -0
  485. package/app/.next-cli-build/server/chunks/6576.js +1 -0
  486. package/app/.next-cli-build/server/chunks/6690.js +1 -1
  487. package/app/.next-cli-build/server/chunks/6724.js +1 -1
  488. package/app/.next-cli-build/server/chunks/6763.js +1 -1
  489. package/app/.next-cli-build/server/chunks/6877.js +1 -1
  490. package/app/.next-cli-build/server/chunks/7187.js +1 -1
  491. package/app/.next-cli-build/server/chunks/7247.js +1 -1
  492. package/app/.next-cli-build/server/chunks/7373.js +1 -1
  493. package/app/.next-cli-build/server/chunks/7525.js +1 -1
  494. package/app/.next-cli-build/server/chunks/7552.js +1 -1
  495. package/app/.next-cli-build/server/chunks/7716.js +1 -1
  496. package/app/.next-cli-build/server/chunks/7843.js +51 -0
  497. package/app/.next-cli-build/server/chunks/8251.js +1 -1
  498. package/app/.next-cli-build/server/chunks/8271.js +1 -1
  499. package/app/.next-cli-build/server/chunks/8402.js +1 -1
  500. package/app/.next-cli-build/server/chunks/8416.js +1 -1
  501. package/app/.next-cli-build/server/chunks/8623.js +1 -1
  502. package/app/.next-cli-build/server/chunks/866.js +1 -0
  503. package/app/.next-cli-build/server/chunks/869.js +1 -1
  504. package/app/.next-cli-build/server/chunks/8895.js +3 -3
  505. package/app/.next-cli-build/server/chunks/8896.js +1 -1
  506. package/app/.next-cli-build/server/chunks/8920.js +1 -1
  507. package/app/.next-cli-build/server/chunks/9128.js +1 -1
  508. package/app/.next-cli-build/server/chunks/9198.js +1 -0
  509. package/app/.next-cli-build/server/chunks/9489.js +1 -1
  510. package/app/.next-cli-build/server/chunks/9604.js +1 -1
  511. package/app/.next-cli-build/server/chunks/9609.js +1 -1
  512. package/app/.next-cli-build/server/instrumentation.js +1 -1
  513. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  514. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  515. package/app/.next-cli-build/server/middleware.js +1 -1
  516. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  517. package/app/.next-cli-build/server/pages/404.html +1 -1
  518. package/app/.next-cli-build/server/pages/500.html +1 -1
  519. package/app/.next-cli-build/static/chunks/1321-2fde166305caeddb.js +1 -0
  520. package/app/.next-cli-build/static/chunks/5497-2d39b4ce6857f490.js +7 -0
  521. package/app/.next-cli-build/static/chunks/{9134-07842c4023ec2223.js → 761-4ab39a76a6565658.js} +10 -10
  522. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-dde07454165b542e.js → page-9fe240988c674585.js} +1 -1
  523. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-0e889b3c170b388d.js → page-2e6e4ef7c270a4ff.js} +1 -1
  524. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-0688449cf035f993.js → page-899c85a4a09b87cc.js} +11 -11
  525. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-38924c451fb16b6e.js → page-2f96a614dc53d80f.js} +1 -1
  526. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-c13b42f0dbad8fcd.js +27 -0
  527. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-8f7c68a9ddffe74b.js +4 -0
  528. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-9782a8d4c3075073.js → page-6923bda560bbc869.js} +1 -1
  529. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-3b1b5d8e342d932f.js +1 -0
  530. package/app/cli/.build-home/.9router/db/data.sqlite +0 -0
  531. package/app/node_modules/undici/README.md +28 -115
  532. package/app/node_modules/undici/docs/docs/api/Agent.md +42 -249
  533. package/app/node_modules/undici/docs/docs/api/BalancedPool.md +48 -246
  534. package/app/node_modules/undici/docs/docs/api/CacheStorage.md +13 -171
  535. package/app/node_modules/undici/docs/docs/api/CacheStore.md +98 -309
  536. package/app/node_modules/undici/docs/docs/api/Client.md +164 -412
  537. package/app/node_modules/undici/docs/docs/api/ClientStats.md +14 -80
  538. package/app/node_modules/undici/docs/docs/api/Connector.md +35 -118
  539. package/app/node_modules/undici/docs/docs/api/ContentType.md +25 -65
  540. package/app/node_modules/undici/docs/docs/api/Cookies.md +71 -122
  541. package/app/node_modules/undici/docs/docs/api/Debug.md +18 -34
  542. package/app/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +167 -368
  543. package/app/node_modules/undici/docs/docs/api/Dispatcher.md +1056 -502
  544. package/app/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +93 -105
  545. package/app/node_modules/undici/docs/docs/api/Errors.md +28 -603
  546. package/app/node_modules/undici/docs/docs/api/EventSource.md +13 -326
  547. package/app/node_modules/undici/docs/docs/api/Fetch.md +30 -691
  548. package/app/node_modules/undici/docs/docs/api/GlobalInstallation.md +96 -78
  549. package/app/node_modules/undici/docs/docs/api/H2CClient.md +176 -299
  550. package/app/node_modules/undici/docs/docs/api/MockAgent.md +314 -333
  551. package/app/node_modules/undici/docs/docs/api/MockCallHistory.md +98 -272
  552. package/app/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +26 -189
  553. package/app/node_modules/undici/docs/docs/api/MockClient.md +33 -151
  554. package/app/node_modules/undici/docs/docs/api/MockErrors.md +5 -56
  555. package/app/node_modules/undici/docs/docs/api/MockPool.md +258 -321
  556. package/app/node_modules/undici/docs/docs/api/Pool.md +41 -235
  557. package/app/node_modules/undici/docs/docs/api/PoolStats.md +13 -119
  558. package/app/node_modules/undici/docs/docs/api/ProxyAgent.md +160 -179
  559. package/app/node_modules/undici/docs/docs/api/RedirectHandler.md +55 -241
  560. package/app/node_modules/undici/docs/docs/api/RetryAgent.md +27 -113
  561. package/app/node_modules/undici/docs/docs/api/RetryHandler.md +79 -161
  562. package/app/node_modules/undici/docs/docs/api/RoundRobinPool.md +72 -166
  563. package/app/node_modules/undici/docs/docs/api/SnapshotAgent.md +517 -262
  564. package/app/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +196 -177
  565. package/app/node_modules/undici/docs/docs/api/Util.md +11 -68
  566. package/app/node_modules/undici/docs/docs/api/WebSocket.md +80 -475
  567. package/app/node_modules/undici/docs/docs/api/api-lifecycle.md +32 -100
  568. package/app/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -2
  569. package/app/node_modules/undici/docs/docs/best-practices/crawling.md +1 -3
  570. package/app/node_modules/undici/docs/docs/best-practices/mocking-request.md +7 -9
  571. package/app/node_modules/undici/docs/docs/best-practices/proxy.md +1 -3
  572. package/app/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +8 -10
  573. package/app/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -2
  574. package/app/node_modules/undici/index.js +2 -4
  575. package/app/node_modules/undici/lib/api/api-connect.js +11 -13
  576. package/app/node_modules/undici/lib/api/api-pipeline.js +13 -26
  577. package/app/node_modules/undici/lib/api/api-request.js +21 -51
  578. package/app/node_modules/undici/lib/api/api-stream.js +20 -81
  579. package/app/node_modules/undici/lib/api/api-upgrade.js +11 -21
  580. package/app/node_modules/undici/lib/api/readable.js +11 -46
  581. package/app/node_modules/undici/lib/cache/memory-cache-store.js +15 -50
  582. package/app/node_modules/undici/lib/cache/sqlite-cache-store.js +7 -85
  583. package/app/node_modules/undici/lib/core/connect.js +7 -46
  584. package/app/node_modules/undici/lib/core/constants.js +23 -11
  585. package/app/node_modules/undici/lib/core/errors.js +3 -60
  586. package/app/node_modules/undici/lib/core/request.js +19 -116
  587. package/app/node_modules/undici/lib/core/symbols.js +0 -5
  588. package/app/node_modules/undici/lib/core/util.js +88 -110
  589. package/app/node_modules/undici/lib/dispatcher/agent.js +32 -51
  590. package/app/node_modules/undici/lib/dispatcher/balanced-pool.js +27 -23
  591. package/app/node_modules/undici/lib/dispatcher/client-h1.js +88 -163
  592. package/app/node_modules/undici/lib/dispatcher/client-h2.js +373 -1249
  593. package/app/node_modules/undici/lib/dispatcher/client.js +34 -114
  594. package/app/node_modules/undici/lib/dispatcher/dispatcher-base.js +8 -10
  595. package/app/node_modules/undici/lib/dispatcher/dispatcher.js +5 -15
  596. package/app/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +13 -57
  597. package/app/node_modules/undici/lib/dispatcher/h2c-client.js +4 -4
  598. package/app/node_modules/undici/lib/dispatcher/pool-base.js +27 -160
  599. package/app/node_modules/undici/lib/dispatcher/pool.js +16 -127
  600. package/app/node_modules/undici/lib/dispatcher/proxy-agent.js +29 -128
  601. package/app/node_modules/undici/lib/dispatcher/retry-agent.js +0 -13
  602. package/app/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -47
  603. package/app/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +63 -153
  604. package/app/node_modules/undici/lib/global.js +14 -37
  605. package/app/node_modules/undici/lib/handler/cache-handler.js +358 -133
  606. package/app/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -10
  607. package/app/node_modules/undici/lib/handler/decorator-handler.js +3 -8
  608. package/app/node_modules/undici/lib/handler/deduplication-handler.js +38 -74
  609. package/app/node_modules/undici/lib/handler/redirect-handler.js +103 -93
  610. package/app/node_modules/undici/lib/handler/retry-handler.js +45 -227
  611. package/app/node_modules/undici/lib/handler/unwrap-handler.js +106 -0
  612. package/app/node_modules/undici/lib/handler/wrap-handler.js +105 -0
  613. package/app/node_modules/undici/lib/interceptor/cache.js +140 -76
  614. package/app/node_modules/undici/lib/interceptor/decompress.js +5 -12
  615. package/app/node_modules/undici/lib/interceptor/deduplicate.js +4 -5
  616. package/app/node_modules/undici/lib/interceptor/dns.js +1 -23
  617. package/app/node_modules/undici/lib/interceptor/redirect.js +3 -3
  618. package/app/node_modules/undici/lib/interceptor/response-error.js +28 -72
  619. package/app/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  620. package/app/node_modules/undici/lib/llhttp/llhttp-wasm.js +1 -1
  621. package/app/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +1 -1
  622. package/app/node_modules/undici/lib/mock/mock-agent.js +9 -32
  623. package/app/node_modules/undici/lib/mock/mock-call-history.js +1 -1
  624. package/app/node_modules/undici/lib/mock/mock-interceptor.js +7 -25
  625. package/app/node_modules/undici/lib/mock/mock-utils.js +47 -281
  626. package/app/node_modules/undici/lib/mock/snapshot-agent.js +7 -25
  627. package/app/node_modules/undici/lib/mock/snapshot-recorder.js +5 -41
  628. package/app/node_modules/undici/lib/mock/snapshot-utils.js +2 -3
  629. package/app/node_modules/undici/lib/util/cache.js +14 -69
  630. package/app/node_modules/undici/lib/util/promise.js +28 -0
  631. package/app/node_modules/undici/lib/util/runtime-features.js +34 -3
  632. package/app/node_modules/undici/lib/web/cache/cache.js +16 -23
  633. package/app/node_modules/undici/lib/web/cache/cachestorage.js +5 -11
  634. package/app/node_modules/undici/lib/web/cookies/index.js +6 -16
  635. package/app/node_modules/undici/lib/web/cookies/parse.js +4 -7
  636. package/app/node_modules/undici/lib/web/cookies/util.js +1 -1
  637. package/app/node_modules/undici/lib/web/eventsource/eventsource.js +23 -66
  638. package/app/node_modules/undici/lib/web/eventsource/util.js +1 -32
  639. package/app/node_modules/undici/lib/web/fetch/body.js +25 -70
  640. package/app/node_modules/undici/lib/web/fetch/constants.js +1 -1
  641. package/app/node_modules/undici/lib/web/fetch/data-url.js +6 -6
  642. package/app/node_modules/undici/lib/web/fetch/formdata-parser.js +4 -12
  643. package/app/node_modules/undici/lib/web/fetch/formdata.js +26 -39
  644. package/app/node_modules/undici/lib/web/fetch/headers.js +33 -36
  645. package/app/node_modules/undici/lib/web/fetch/index.js +250 -294
  646. package/app/node_modules/undici/lib/web/fetch/request.js +75 -99
  647. package/app/node_modules/undici/lib/web/fetch/response.js +47 -44
  648. package/app/node_modules/undici/lib/web/fetch/util.js +9 -17
  649. package/app/node_modules/undici/lib/web/infra/index.js +14 -15
  650. package/app/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +2 -2
  651. package/app/node_modules/undici/lib/web/webidl/index.js +21 -7
  652. package/app/node_modules/undici/lib/web/websocket/connection.js +5 -16
  653. package/app/node_modules/undici/lib/web/websocket/events.js +26 -43
  654. package/app/node_modules/undici/lib/web/websocket/frame.js +7 -1
  655. package/app/node_modules/undici/lib/web/websocket/receiver.js +3 -13
  656. package/app/node_modules/undici/lib/web/websocket/stream/websocketerror.js +10 -13
  657. package/app/node_modules/undici/lib/web/websocket/stream/websocketstream.js +14 -29
  658. package/app/node_modules/undici/lib/web/websocket/websocket.js +40 -65
  659. package/app/node_modules/undici/package.json +13 -15
  660. package/app/node_modules/undici/types/agent.d.ts +2 -0
  661. package/app/node_modules/undici/types/api.d.ts +1 -1
  662. package/app/node_modules/undici/types/cache-interceptor.d.ts +0 -10
  663. package/app/node_modules/undici/types/client.d.ts +27 -64
  664. package/app/node_modules/undici/types/connector.d.ts +0 -1
  665. package/app/node_modules/undici/types/cookies.d.ts +1 -1
  666. package/app/node_modules/undici/types/diagnostics-channel.d.ts +1 -2
  667. package/app/node_modules/undici/types/dispatcher.d.ts +29 -7
  668. package/app/node_modules/undici/types/errors.d.ts +1 -26
  669. package/app/node_modules/undici/types/fetch.d.ts +1 -5
  670. package/app/node_modules/undici/types/formdata.d.ts +6 -0
  671. package/app/node_modules/undici/types/h2c-client.d.ts +7 -7
  672. package/app/node_modules/undici/types/handlers.d.ts +0 -2
  673. package/app/node_modules/undici/types/header.d.ts +0 -5
  674. package/app/node_modules/undici/types/index.d.ts +1 -3
  675. package/app/node_modules/undici/types/interceptors.d.ts +2 -7
  676. package/app/node_modules/undici/types/mock-agent.d.ts +10 -11
  677. package/app/node_modules/undici/types/mock-interceptor.d.ts +1 -5
  678. package/app/node_modules/undici/types/pool.d.ts +2 -0
  679. package/app/node_modules/undici/types/proxy-agent.d.ts +2 -9
  680. package/app/node_modules/undici/types/round-robin-pool.d.ts +2 -0
  681. package/app/node_modules/undici/types/snapshot-agent.d.ts +0 -4
  682. package/app/node_modules/undici/types/socks5-proxy-agent.d.ts +2 -4
  683. package/app/node_modules/undici/types/utility.d.ts +4 -4
  684. package/app/node_modules/undici/types/webidl.d.ts +8 -13
  685. package/app/package.json +5 -2
  686. package/app/public/providers/sensenova-intl.png +0 -0
  687. package/app/src/shared/services/quotaAutoPing.js +17 -2
  688. package/package.json +2 -2
  689. package/app/.next-cli-build/server/chunks/1004.js +0 -1
  690. package/app/.next-cli-build/server/chunks/4480.js +0 -1
  691. package/app/.next-cli-build/server/chunks/7573.js +0 -1
  692. package/app/.next-cli-build/server/chunks/8499.js +0 -1
  693. package/app/.next-cli-build/server/chunks/9102.js +0 -1
  694. package/app/.next-cli-build/static/chunks/1321-93eb6ca56f8fcb1e.js +0 -1
  695. package/app/.next-cli-build/static/chunks/5497-870732fd9d818574.js +0 -7
  696. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-f98f1e29fd6fc471.js +0 -27
  697. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-e5d73ba422004783.js +0 -4
  698. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-888c58ee93724e20.js +0 -1
  699. package/app/node_modules/undici/docs/docs/api/Interceptors.md +0 -439
  700. package/app/node_modules/undici/docs/docs/best-practices/migrating-from-v7-to-v8.md +0 -233
  701. package/app/node_modules/undici/docs/docs/getting-started.md +0 -281
  702. package/app/node_modules/undici/docs/docs/index.md +0 -793
  703. package/app/node_modules/undici/docs/docs/site.json +0 -125
  704. package/app/node_modules/undici/docs/docs/type-map.json +0 -79
  705. package/app/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +0 -127
  706. package/app/node_modules/undici/lib/dispatcher/parser-h1.js +0 -1064
  707. package/app/node_modules/undici/lib/milo/LICENSE.md +0 -7
  708. package/app/node_modules/undici/lib/milo/no-simd.js +0 -1002
  709. package/app/node_modules/undici/lib/milo/simd.js +0 -1002
  710. package/app/node_modules/undici/types/dispatcher1-wrapper.d.ts +0 -7
  711. /package/app/.next-cli-build/static/{Z4ZIksyhEDiaIj7-73igf → 5PG9DiG39fbvOpgKSnR7p}/_buildManifest.js +0 -0
  712. /package/app/.next-cli-build/static/{Z4ZIksyhEDiaIj7-73igf → 5PG9DiG39fbvOpgKSnR7p}/_ssgManifest.js +0 -0
@@ -1,210 +1,109 @@
1
- # MockPool
1
+ # Class: MockPool
2
2
 
3
- <!--introduced_in=v4.0.0-->
4
- <!--type=module-->
5
- <!-- source_link=lib/mock/mock-pool.js -->
3
+ Extends: `undici.Pool`
6
4
 
7
- > Stability: 2 - Stable
5
+ A mock Pool class that implements the Pool API and is used by MockAgent to intercept real requests and return mocked responses.
8
6
 
9
- A `MockPool` is a [`Pool`][] that intercepts requests matching registered routes
10
- and replies with mocked responses instead of contacting the network. It is
11
- created by a [`MockAgent`][] and exposes the same interception API as
12
- [`MockClient`][].
7
+ ## `new MockPool(origin, [options])`
13
8
 
14
- A `MockPool` is not constructed directly in most cases; instead it is obtained
15
- through [`mockAgent.get(origin)`][]. Once registered as the global dispatcher,
16
- any request whose origin matches the pool is matched against the mocks it holds.
9
+ Arguments:
17
10
 
18
- ```mjs
11
+ * **origin** `string` - It should only include the **protocol, hostname, and port**.
12
+ * **options** `MockPoolOptions` - It extends the `Pool` options.
13
+
14
+ Returns: `MockPool`
15
+
16
+ ### Parameter: `MockPoolOptions`
17
+
18
+ Extends: `PoolOptions`
19
+
20
+ * **agent** `Agent` - the agent to associate this MockPool with.
21
+
22
+ ### Example - Basic MockPool instantiation
23
+
24
+ We can use MockAgent to instantiate a MockPool ready to be used to intercept specified requests. It will not do anything until registered as the agent to use and any mock request are registered.
25
+
26
+ ```js
19
27
  import { MockAgent } from 'undici'
20
28
 
21
29
  const mockAgent = new MockAgent()
30
+
22
31
  const mockPool = mockAgent.get('http://localhost:3000')
23
32
  ```
24
33
 
25
- ```cjs
26
- const { MockAgent } = require('undici')
34
+ ## Instance Methods
27
35
 
28
- const mockAgent = new MockAgent()
29
- const mockPool = mockAgent.get('http://localhost:3000')
30
- ```
36
+ ### `MockPool.intercept(options)`
31
37
 
32
- ## Class: `MockPool`
38
+ This method defines the interception rules for matching against requests for a MockPool or MockPool. We can intercept multiple times on a single instance, but each intercept is only used once. For example if you expect to make 2 requests inside a test, you need to call `intercept()` twice. Assuming you use `disableNetConnect()` you will get `MockNotMatchedError` on the second request when you only call `intercept()` once.
33
39
 
34
- <!-- YAML
35
- added: v4.0.0
36
- -->
40
+ When defining interception rules, all the rules must pass for a request to be intercepted. If a request is not intercepted, a real request will be attempted.
37
41
 
38
- * Extends: {Pool}
42
+ | Matcher type | Condition to pass |
43
+ |:------------:| -------------------------- |
44
+ | `string` | Exact match against string |
45
+ | `RegExp` | Regex must pass |
46
+ | `Function` | Function must return true |
39
47
 
40
- Extends [`Pool`][] and implements the `Interceptable` interface, allowing
41
- requests made through it to be matched against registered mocks.
48
+ Arguments:
42
49
 
43
- ### `new MockPool(origin[, options])`
50
+ * **options** `MockPoolInterceptOptions` - Interception options.
44
51
 
45
- <!-- YAML
46
- added: v4.0.0
47
- -->
52
+ Returns: `MockInterceptor` corresponding to the input options.
48
53
 
49
- * `origin` {string} The origin to associate this mock pool with. It should only
50
- include the protocol, hostname, and port.
51
- * `options` {MockPoolOptions} Extends the [`Pool`][] options.
52
- * Returns: {MockPool}
54
+ ### Parameter: `MockPoolInterceptOptions`
53
55
 
54
- The `agent` option is required and must implement the `Agent` interface;
55
- otherwise an `InvalidArgumentError` is thrown.
56
+ * **path** `string | RegExp | (path: string) => boolean` - a matcher for the HTTP request path. When a `RegExp` or callback is used, it will match against the request path including all query parameters in alphabetical order. When a `string` is provided, the query parameters can be conveniently specified through the `MockPoolInterceptOptions.query` setting.
57
+ * **method** `string | RegExp | (method: string) => boolean` - (optional) - a matcher for the HTTP request method. Defaults to `GET`.
58
+ * **body** `string | RegExp | (body: string) => boolean` - (optional) - a matcher for the HTTP request body.
59
+ * **headers** `Record<string, string | RegExp | (body: string) => boolean`> - (optional) - a matcher for the HTTP request headers. To be intercepted, a request must match all defined headers. Extra headers not defined here may (or may not) be included in the request and do not affect the interception in any way.
60
+ * **query** `Record<string, any> | null` - (optional) - a matcher for the HTTP request query string params. Only applies when a `string` was provided for `MockPoolInterceptOptions.path`.
61
+ * **ignoreTrailingSlash** `boolean` - (optional) - set to `true` if the matcher should also match by ignoring potential trailing slashes in `MockPoolInterceptOptions.path`.
56
62
 
57
- #### Parameter: `MockPoolOptions`
63
+ ### Return: `MockInterceptor`
58
64
 
59
- Extends: `PoolOptions`
65
+ We can define the behaviour of an intercepted request with the following options.
66
+
67
+ * **reply** `(statusCode: number, replyData: string | Buffer | object | MockInterceptor.MockResponseDataHandler, responseOptions?: MockResponseOptions) => MockScope` - define a reply for a matching request. You can define the replyData as a callback to read incoming request data. Default for `responseOptions` is `{}`.
68
+ * **reply** `(callback: MockInterceptor.MockReplyOptionsCallback) => MockScope` - define a reply for a matching request, allowing dynamic mocking of all reply options rather than just the data.
69
+ * **replyWithError** `(error: Error) => MockScope` - define an error for a matching request to throw.
70
+ * **defaultReplyHeaders** `(headers: Record<string, string>) => MockInterceptor` - define default headers to be included in subsequent replies. These are in addition to headers on a specific reply.
71
+ * **defaultReplyTrailers** `(trailers: Record<string, string>) => MockInterceptor` - define default trailers to be included in subsequent replies. These are in addition to trailers on a specific reply.
72
+ * **replyContentLength** `() => MockInterceptor` - define automatically calculated `content-length` headers to be included in subsequent replies.
73
+
74
+ The reply data of an intercepted request may either be a string, buffer, or JavaScript object. Objects are converted to JSON while strings and buffers are sent as-is.
75
+
76
+ By default, `reply` and `replyWithError` define the behaviour for the first matching request only. Subsequent requests will not be affected (this can be changed using the returned `MockScope`).
77
+
78
+ ### Parameter: `MockResponseOptions`
60
79
 
61
- * `agent` {MockAgent} The agent to associate this mock pool with.
62
- * `ignoreTrailingSlash` {boolean} Whether trailing slashes should be ignored
63
- when matching the path of intercepted requests. **Default:** `false`.
64
-
65
- ### `mockPool.intercept(options)`
66
-
67
- <!-- YAML
68
- added: v4.0.0
69
- -->
70
-
71
- * `options` {MockPoolInterceptOptions} The matching criteria for the requests to
72
- intercept.
73
- * Returns: {MockInterceptor} The interceptor used to define the mocked reply.
74
-
75
- Registers a route on the mock pool and returns a [`MockInterceptor`][] for any
76
- matching request that uses the same origin as this mock pool. The interceptor is
77
- then used to define the reply, for example with `reply()` or `replyWithError()`.
78
-
79
- Each `intercept()` call is consumed by a single matching request. To match more
80
- than one request, call `intercept()` once per expected request, or use
81
- `persist()` or `times()` on the returned [`MockScope`][]. When no registered
82
- mock matches a request, a real request is attempted unless network connections
83
- have been disabled on the [`MockAgent`][], in which case a `MockNotMatchedError`
84
- is thrown.
85
-
86
- A request is intercepted only when every defined matcher passes. The accepted
87
- matcher forms behave as follows:
88
-
89
- | Matcher type | Condition to pass |
90
- | :----------: | ---------------------------- |
91
- | `string` | Exact match against the value |
92
- | `RegExp` | The expression must match |
93
- | `Function` | The function must return `true` |
94
-
95
- #### Parameter: `MockPoolInterceptOptions`
96
-
97
- * `path` {string|RegExp|Function} A matcher for the HTTP request path. The
98
- function form has the signature `(path: string) => boolean`. When a `RegExp`
99
- or function is used, it matches against the request path including all query
100
- parameters in alphabetical order. When a `string` is used, query parameters
101
- can instead be supplied through `query`.
102
- * `method` {string|RegExp|Function} A matcher for the HTTP request method. The
103
- function form has the signature `(method: string) => boolean`.
104
- **Default:** `'GET'`.
105
- * `body` {string|RegExp|Function} A matcher for the HTTP request body. The
106
- function form has the signature `(body: string) => boolean`.
107
- * `headers` {Object|Function} A matcher for the HTTP request headers, given
108
- either as a map of header name to a `string`, `RegExp`, or
109
- `(value: string) => boolean` matcher, or as a single function that receives
110
- all headers and returns a `boolean`. When a map is used, the request must
111
- match every defined header; extra headers not listed here do not affect
112
- matching.
113
- * `query` {Object} A matcher for the HTTP request query string parameters. Only
114
- applies when a `string` was provided for `path`.
115
- * `ignoreTrailingSlash` {boolean} Whether a trailing slash on `path` is ignored
116
- when matching. Inherited from the mock pool's `ignoreTrailingSlash` option
117
- when not set.
118
-
119
- #### Return: `MockInterceptor`
120
-
121
- The reply behaviour of a matching request is defined through the returned
122
- `MockInterceptor`.
123
-
124
- * `reply(statusCode[, data[, responseOptions]])` {Function} Defines the reply
125
- for a matching request.
126
- * `statusCode` {number} The status code of the mocked reply.
127
- * `data` {string|Buffer|Object|Function} The body of the mocked reply.
128
- Objects are serialized to JSON; strings and `Buffer`s are sent as-is. The
129
- function form has the signature
130
- `(opts: MockResponseCallbackOptions) => string | Buffer | Object` and is
131
- invoked with the incoming request to compute the reply body.
132
- * `responseOptions` {MockResponseOptions} Additional reply options.
133
- **Default:** `{}`.
134
- * Returns: {MockScope}
135
- * `reply(callback)` {Function} Defines the reply for a matching request,
136
- computing all reply options dynamically rather than just the body.
137
- * `callback` {Function} A `(opts: MockResponseCallbackOptions) =>
138
- { statusCode, data, responseOptions }` function invoked with the incoming
139
- request. The callback may be asynchronous; a returned promise is awaited
140
- and must resolve to the same shape.
141
- * Returns: {MockScope}
142
- * `replyWithError(error)` {Function} Defines an error for a matching request to
143
- throw.
144
- * `error` {Error} The error thrown when a request matches.
145
- * Returns: {MockScope}
146
- * `defaultReplyHeaders(headers)` {Function} Sets default headers included on
147
- every subsequent reply defined on this interceptor, in addition to any headers
148
- set on a specific reply.
149
- * `headers` {Object} A map of header name to value.
150
- * Returns: {MockInterceptor}
151
- * `defaultReplyTrailers(trailers)` {Function} Sets default trailers included on
152
- every subsequent reply defined on this interceptor, in addition to any
153
- trailers set on a specific reply.
154
- * `trailers` {Object} A map of trailer name to value.
155
- * Returns: {MockInterceptor}
156
- * `replyContentLength()` {Function} Sets an automatically calculated
157
- `content-length` header on every subsequent reply defined on this interceptor.
158
- * Returns: {MockInterceptor}
159
-
160
- By default, `reply()` and `replyWithError()` define the behaviour for the first
161
- matching request only; subsequent requests are not affected unless `persist()`
162
- or `times()` is used on the returned [`MockScope`][].
163
-
164
- #### Parameter: `MockResponseCallbackOptions`
165
-
166
- The argument passed to the `reply()` data and options callbacks.
167
-
168
- * `path` {string} The path of the intercepted request.
169
- * `method` {string} The method of the intercepted request.
170
- * `headers` {Object|Headers} The headers of the intercepted request.
171
- * `origin` {string} The origin of the intercepted request.
172
- * `body` {string|null} The body of the intercepted request.
173
-
174
- #### Parameter: `MockResponseOptions`
175
-
176
- * `headers` {Object} Headers to include on the mocked reply.
177
- * `trailers` {Object} Trailers to include on the mocked reply.
178
-
179
- #### Return: `MockScope`
180
-
181
- A `MockScope` is associated with a single [`MockInterceptor`][] and configures
182
- how many times the defined reply is used.
183
-
184
- * `delay(waitInMs)` {Function} Delays the associated reply by a set amount of
185
- time.
186
- * `waitInMs` {number} The delay in milliseconds.
187
- * Returns: {MockScope}
188
- * `persist()` {Function} Makes the associated reply match indefinitely, so every
189
- matching request receives the defined response.
190
- * Returns: {MockScope}
191
- * `times(repeatTimes)` {Function} Makes the associated reply match a fixed number
192
- of times. This is overridden by `persist()`.
193
- * `repeatTimes` {number} The number of matching requests the reply applies to.
194
- * Returns: {MockScope}
195
-
196
- The following examples show common interception patterns.
197
-
198
- ```mjs displayName="Basic mocked request"
80
+ * **headers** `Record<string, string>` - headers to be included on the mocked reply.
81
+ * **trailers** `Record<string, string>` - trailers to be included on the mocked reply.
82
+
83
+ ### Return: `MockScope`
84
+
85
+ A `MockScope` is associated with a single `MockInterceptor`. With this, we can configure the default behaviour of an intercepted reply.
86
+
87
+ * **delay** `(waitInMs: number) => MockScope` - delay the associated reply by a set amount in ms.
88
+ * **persist** `() => MockScope` - any matching request will always reply with the defined response indefinitely.
89
+ * **times** `(repeatTimes: number) => MockScope` - any matching request will reply with the defined response a fixed amount of times. This is overridden by **persist**.
90
+
91
+ #### Example - Basic Mocked Request
92
+
93
+ ```js
199
94
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
200
95
 
201
96
  const mockAgent = new MockAgent()
202
97
  setGlobalDispatcher(mockAgent)
203
98
 
99
+ // MockPool
204
100
  const mockPool = mockAgent.get('http://localhost:3000')
205
101
  mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
206
102
 
207
- const { statusCode, body } = await request('http://localhost:3000/foo')
103
+ const {
104
+ statusCode,
105
+ body
106
+ } = await request('http://localhost:3000/foo')
208
107
 
209
108
  console.log('response received', statusCode) // response received 200
210
109
 
@@ -213,7 +112,9 @@ for await (const data of body) {
213
112
  }
214
113
  ```
215
114
 
216
- ```mjs displayName="Reply with a data callback"
115
+ #### Example - Mocked request using reply data callbacks
116
+
117
+ ```js
217
118
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
218
119
 
219
120
  const mockAgent = new MockAgent()
@@ -223,21 +124,30 @@ const mockPool = mockAgent.get('http://localhost:3000')
223
124
 
224
125
  mockPool.intercept({
225
126
  path: '/echo',
226
- method: 'GET'
227
- }).reply(200, ({ headers }) => ({ message: headers.message }))
127
+ method: 'GET',
128
+ headers: {
129
+ 'User-Agent': 'undici',
130
+ Host: 'example.com'
131
+ }
132
+ }).reply(200, ({ headers }) => ({ message: headers.get('message') }))
228
133
 
229
- const { statusCode, body } = await request('http://localhost:3000/echo', {
230
- headers: { message: 'hello world!' }
134
+ const { statusCode, body, headers } = await request('http://localhost:3000', {
135
+ headers: {
136
+ message: 'hello world!'
137
+ }
231
138
  })
232
139
 
233
140
  console.log('response received', statusCode) // response received 200
141
+ console.log('headers', headers) // { 'content-type': 'application/json' }
234
142
 
235
143
  for await (const data of body) {
236
- console.log('data', data.toString('utf8')) // {"message":"hello world!"}
144
+ console.log('data', data.toString('utf8')) // { "message":"hello world!" }
237
145
  }
238
146
  ```
239
147
 
240
- ```mjs displayName="Reply with an options callback"
148
+ #### Example - Mocked request using reply options callback
149
+
150
+ ```js
241
151
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
242
152
 
243
153
  const mockAgent = new MockAgent()
@@ -247,25 +157,30 @@ const mockPool = mockAgent.get('http://localhost:3000')
247
157
 
248
158
  mockPool.intercept({
249
159
  path: '/echo',
250
- method: 'GET'
251
- }).reply(({ headers }) => ({
252
- statusCode: 200,
253
- data: { message: headers.message }
254
- }))
160
+ method: 'GET',
161
+ headers: {
162
+ 'User-Agent': 'undici',
163
+ Host: 'example.com'
164
+ }
165
+ }).reply(({ headers }) => ({ statusCode: 200, data: { message: headers.get('message') }})))
255
166
 
256
- const { statusCode, body } = await request('http://localhost:3000/echo', {
257
- headers: { message: 'hello world!' }
167
+ const { statusCode, body, headers } = await request('http://localhost:3000', {
168
+ headers: {
169
+ message: 'hello world!'
170
+ }
258
171
  })
259
172
 
260
173
  console.log('response received', statusCode) // response received 200
174
+ console.log('headers', headers) // { 'content-type': 'application/json' }
261
175
 
262
176
  for await (const data of body) {
263
- console.log('data', data.toString('utf8')) // {"message":"hello world!"}
177
+ console.log('data', data.toString('utf8')) // { "message":"hello world!" }
264
178
  }
265
179
  ```
266
180
 
267
- ```mjs displayName="Reply with an asynchronous options callback"
268
- import { readFile } from 'node:fs/promises'
181
+ #### Example - Basic Mocked requests with multiple intercepts
182
+
183
+ ```js
269
184
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
270
185
 
271
186
  const mockAgent = new MockAgent()
@@ -274,45 +189,35 @@ setGlobalDispatcher(mockAgent)
274
189
  const mockPool = mockAgent.get('http://localhost:3000')
275
190
 
276
191
  mockPool.intercept({
277
- path: '/fixture',
192
+ path: '/foo',
278
193
  method: 'GET'
279
- }).reply(async ({ path }) => ({
280
- statusCode: 200,
281
- data: await readFile(new URL('./fixture.json', import.meta.url))
282
- }))
283
-
284
- const { statusCode, body } = await request('http://localhost:3000/fixture')
285
-
286
- console.log('response received', statusCode) // response received 200
287
-
288
- for await (const data of body) {
289
- console.log('data', data.toString('utf8')) // contents of fixture.json
290
- }
291
- ```
292
-
293
- ```mjs displayName="Multiple intercepts"
294
- import { MockAgent, setGlobalDispatcher, request } from 'undici'
194
+ }).reply(200, 'foo')
295
195
 
296
- const mockAgent = new MockAgent()
297
- setGlobalDispatcher(mockAgent)
196
+ mockPool.intercept({
197
+ path: '/hello',
198
+ method: 'GET',
199
+ }).reply(200, 'hello')
298
200
 
299
- const mockPool = mockAgent.get('http://localhost:3000')
201
+ const result1 = await request('http://localhost:3000/foo')
300
202
 
301
- mockPool.intercept({ path: '/foo', method: 'GET' }).reply(200, 'foo')
302
- mockPool.intercept({ path: '/hello', method: 'GET' }).reply(200, 'hello')
203
+ console.log('response received', result1.statusCode) // response received 200
303
204
 
304
- const fooResult = await request('http://localhost:3000/foo')
305
- for await (const data of fooResult.body) {
205
+ for await (const data of result1.body) {
306
206
  console.log('data', data.toString('utf8')) // data foo
307
207
  }
308
208
 
309
- const helloResult = await request('http://localhost:3000/hello')
310
- for await (const data of helloResult.body) {
209
+ const result2 = await request('http://localhost:3000/hello')
210
+
211
+ console.log('response received', result2.statusCode) // response received 200
212
+
213
+ for await (const data of result2.body) {
311
214
  console.log('data', data.toString('utf8')) // data hello
312
215
  }
313
216
  ```
314
217
 
315
- ```mjs displayName="Match query, body, request headers; reply with headers and trailers"
218
+ #### Example - Mocked request with query body, request headers and response headers and trailers
219
+
220
+ ```js
316
221
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
317
222
 
318
223
  const mockAgent = new MockAgent()
@@ -333,9 +238,12 @@ mockPool.intercept({
333
238
  trailers: { 'Content-MD5': 'test' }
334
239
  })
335
240
 
336
- const { statusCode, headers, trailers, body } = await request(
337
- 'http://localhost:3000/foo?hello=there&see=ya',
338
- {
241
+ const {
242
+ statusCode,
243
+ headers,
244
+ trailers,
245
+ body
246
+ } = await request('http://localhost:3000/foo?hello=there&see=ya', {
339
247
  method: 'POST',
340
248
  body: 'form1=data1&form2=data2',
341
249
  headers: {
@@ -343,20 +251,21 @@ const { statusCode, headers, trailers, body } = await request(
343
251
  'User-Agent': 'undici',
344
252
  Host: 'example.com'
345
253
  }
346
- }
347
- )
254
+ })
348
255
 
349
256
  console.log('response received', statusCode) // response received 200
350
257
  console.log('headers', headers) // { 'content-type': 'application/json' }
351
258
 
352
259
  for await (const data of body) {
353
- console.log('data', data.toString('utf8')) // {"foo":"bar"}
260
+ console.log('data', data.toString('utf8')) // '{"foo":"bar"}'
354
261
  }
355
262
 
356
263
  console.log('trailers', trailers) // { 'content-md5': 'test' }
357
264
  ```
358
265
 
359
- ```mjs displayName="Different matcher forms"
266
+ #### Example - Mocked request using different matchers
267
+
268
+ ```js
360
269
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
361
270
 
362
271
  const mockAgent = new MockAgent()
@@ -370,11 +279,14 @@ mockPool.intercept({
370
279
  body: (value) => value === 'form=data',
371
280
  headers: {
372
281
  'User-Agent': 'undici',
373
- Host: /^example\.com$/
282
+ Host: /^example.com$/
374
283
  }
375
284
  }).reply(200, 'foo')
376
285
 
377
- const { statusCode, body } = await request('http://localhost:3000/foo', {
286
+ const {
287
+ statusCode,
288
+ body
289
+ } = await request('http://localhost:3000/foo', {
378
290
  method: 'GET',
379
291
  body: 'form=data',
380
292
  headers: {
@@ -391,7 +303,9 @@ for await (const data of body) {
391
303
  }
392
304
  ```
393
305
 
394
- ```mjs displayName="Reply with an error"
306
+ #### Example - Mocked request with reply with a defined error
307
+
308
+ ```js
395
309
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
396
310
 
397
311
  const mockAgent = new MockAgent()
@@ -405,13 +319,18 @@ mockPool.intercept({
405
319
  }).replyWithError(new Error('kaboom'))
406
320
 
407
321
  try {
408
- await request('http://localhost:3000/foo', { method: 'GET' })
322
+ await request('http://localhost:3000/foo', {
323
+ method: 'GET'
324
+ })
409
325
  } catch (error) {
410
- console.error(error.message) // kaboom
326
+ console.error(error) // TypeError: fetch failed
327
+ console.error(error.cause) // Error: kaboom
411
328
  }
412
329
  ```
413
330
 
414
- ```mjs displayName="Default reply headers"
331
+ #### Example - Mocked request with defaultReplyHeaders
332
+
333
+ ```js
415
334
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
416
335
 
417
336
  const mockAgent = new MockAgent()
@@ -419,8 +338,10 @@ setGlobalDispatcher(mockAgent)
419
338
 
420
339
  const mockPool = mockAgent.get('http://localhost:3000')
421
340
 
422
- mockPool.intercept({ path: '/foo', method: 'GET' })
423
- .defaultReplyHeaders({ foo: 'bar' })
341
+ mockPool.intercept({
342
+ path: '/foo',
343
+ method: 'GET'
344
+ }).defaultReplyHeaders({ foo: 'bar' })
424
345
  .reply(200, 'foo')
425
346
 
426
347
  const { headers } = await request('http://localhost:3000/foo')
@@ -428,7 +349,9 @@ const { headers } = await request('http://localhost:3000/foo')
428
349
  console.log('headers', headers) // headers { foo: 'bar' }
429
350
  ```
430
351
 
431
- ```mjs displayName="Default reply trailers"
352
+ #### Example - Mocked request with defaultReplyTrailers
353
+
354
+ ```js
432
355
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
433
356
 
434
357
  const mockAgent = new MockAgent()
@@ -436,8 +359,10 @@ setGlobalDispatcher(mockAgent)
436
359
 
437
360
  const mockPool = mockAgent.get('http://localhost:3000')
438
361
 
439
- mockPool.intercept({ path: '/foo', method: 'GET' })
440
- .defaultReplyTrailers({ foo: 'bar' })
362
+ mockPool.intercept({
363
+ path: '/foo',
364
+ method: 'GET'
365
+ }).defaultReplyTrailers({ foo: 'bar' })
441
366
  .reply(200, 'foo')
442
367
 
443
368
  const { trailers } = await request('http://localhost:3000/foo')
@@ -445,7 +370,9 @@ const { trailers } = await request('http://localhost:3000/foo')
445
370
  console.log('trailers', trailers) // trailers { foo: 'bar' }
446
371
  ```
447
372
 
448
- ```mjs displayName="Automatic content-length"
373
+ #### Example - Mocked request with automatic content-length calculation
374
+
375
+ ```js
449
376
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
450
377
 
451
378
  const mockAgent = new MockAgent()
@@ -453,16 +380,19 @@ setGlobalDispatcher(mockAgent)
453
380
 
454
381
  const mockPool = mockAgent.get('http://localhost:3000')
455
382
 
456
- mockPool.intercept({ path: '/foo', method: 'GET' })
457
- .replyContentLength()
458
- .reply(200, 'foo')
383
+ mockPool.intercept({
384
+ path: '/foo',
385
+ method: 'GET'
386
+ }).replyContentLength().reply(200, 'foo')
459
387
 
460
388
  const { headers } = await request('http://localhost:3000/foo')
461
389
 
462
390
  console.log('headers', headers) // headers { 'content-length': '3' }
463
391
  ```
464
392
 
465
- ```mjs displayName="Persisted reply"
393
+ #### Example - Mocked request with automatic content-length calculation on an object
394
+
395
+ ```js
466
396
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
467
397
 
468
398
  const mockAgent = new MockAgent()
@@ -470,13 +400,19 @@ setGlobalDispatcher(mockAgent)
470
400
 
471
401
  const mockPool = mockAgent.get('http://localhost:3000')
472
402
 
473
- mockPool.intercept({ path: '/foo', method: 'GET' }).reply(200, 'foo').persist()
403
+ mockPool.intercept({
404
+ path: '/foo',
405
+ method: 'GET'
406
+ }).replyContentLength().reply(200, { foo: 'bar' })
474
407
 
475
- await request('http://localhost:3000/foo') // Matches and returns the mock
476
- await request('http://localhost:3000/foo') // Matches again, indefinitely
408
+ const { headers } = await request('http://localhost:3000/foo')
409
+
410
+ console.log('headers', headers) // headers { 'content-length': '13' }
477
411
  ```
478
412
 
479
- ```mjs displayName="Reply a fixed number of times"
413
+ #### Example - Mocked request with persist enabled
414
+
415
+ ```js
480
416
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
481
417
 
482
418
  const mockAgent = new MockAgent()
@@ -484,23 +420,57 @@ setGlobalDispatcher(mockAgent)
484
420
 
485
421
  const mockPool = mockAgent.get('http://localhost:3000')
486
422
 
487
- mockPool.intercept({ path: '/foo', method: 'GET' }).reply(200, 'foo').times(2)
423
+ mockPool.intercept({
424
+ path: '/foo',
425
+ method: 'GET'
426
+ }).reply(200, 'foo').persist()
427
+
428
+ const result1 = await request('http://localhost:3000/foo')
429
+ // Will match and return mocked data
488
430
 
489
- await request('http://localhost:3000/foo') // Matches and returns the mock
490
- await request('http://localhost:3000/foo') // Matches and returns the mock
491
- await request('http://localhost:3000/foo') // No match; a real request is attempted
431
+ const result2 = await request('http://localhost:3000/foo')
432
+ // Will match and return mocked data
433
+
434
+ // Etc
492
435
  ```
493
436
 
494
- ```mjs displayName="Match the path with a function"
437
+ #### Example - Mocked request with times enabled
438
+
439
+ ```js
495
440
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
496
- import querystring from 'node:querystring'
497
441
 
498
442
  const mockAgent = new MockAgent()
499
443
  setGlobalDispatcher(mockAgent)
500
444
 
501
445
  const mockPool = mockAgent.get('http://localhost:3000')
502
446
 
503
- const matchPath = (requestPath) => {
447
+ mockPool.intercept({
448
+ path: '/foo',
449
+ method: 'GET'
450
+ }).reply(200, 'foo').times(2)
451
+
452
+ const result1 = await request('http://localhost:3000/foo')
453
+ // Will match and return mocked data
454
+
455
+ const result2 = await request('http://localhost:3000/foo')
456
+ // Will match and return mocked data
457
+
458
+ const result3 = await request('http://localhost:3000/foo')
459
+ // Will not match and make attempt a real request
460
+ ```
461
+
462
+ #### Example - Mocked request with path callback
463
+
464
+ ```js
465
+ import { MockAgent, setGlobalDispatcher, request } from 'undici'
466
+ import querystring from 'querystring'
467
+
468
+ const mockAgent = new MockAgent()
469
+ setGlobalDispatcher(mockAgent)
470
+
471
+ const mockPool = mockAgent.get('http://localhost:3000')
472
+
473
+ const matchPath = requestPath => {
504
474
  const [pathname, search] = requestPath.split('?')
505
475
  const requestQuery = querystring.parse(search)
506
476
 
@@ -508,26 +478,31 @@ const matchPath = (requestPath) => {
508
478
  return false
509
479
  }
510
480
 
511
- return requestQuery.foo === 'bar'
481
+ if (!Object.keys(requestQuery).includes('foo') || requestQuery.foo !== 'bar') {
482
+ return false
483
+ }
484
+
485
+ return true
512
486
  }
513
487
 
514
- mockPool.intercept({ path: matchPath, method: 'GET' }).reply(200, 'foo')
488
+ mockPool.intercept({
489
+ path: matchPath,
490
+ method: 'GET'
491
+ }).reply(200, 'foo')
515
492
 
516
- await request('http://localhost:3000/foo?foo=bar') // Matches and returns the mock
493
+ const result = await request('http://localhost:3000/foo?foo=bar')
494
+ // Will match and return mocked data
517
495
  ```
518
496
 
519
- ### `mockPool.close()`
497
+ ### `MockPool.close()`
520
498
 
521
- <!-- YAML
522
- added: v4.0.0
523
- -->
499
+ Closes the mock pool and de-registers from associated MockAgent.
524
500
 
525
- * Returns: {Promise} Fulfills with `undefined` once the mock pool is closed.
501
+ Returns: `Promise<void>`
526
502
 
527
- Closes the mock pool, gracefully waiting for any enqueued requests to complete,
528
- and removes it from the associated [`MockAgent`][].
503
+ #### Example - clean up after tests are complete
529
504
 
530
- ```mjs
505
+ ```js
531
506
  import { MockAgent } from 'undici'
532
507
 
533
508
  const mockAgent = new MockAgent()
@@ -536,45 +511,31 @@ const mockPool = mockAgent.get('http://localhost:3000')
536
511
  await mockPool.close()
537
512
  ```
538
513
 
539
- ### `mockPool.dispatch(options, handlers)`
540
-
541
- <!-- YAML
542
- added: v4.0.0
543
- -->
544
-
545
- * `options` {DispatchOptions} The request options.
546
- * `handlers` {DispatchHandler} The handlers invoked over the request lifecycle.
547
- * Returns: {boolean} `false` if the dispatcher is busy and the caller should
548
- wait before dispatching further requests, otherwise `true`.
514
+ ### `MockPool.dispatch(options, handlers)`
549
515
 
550
- Dispatches a request, matching it against the registered mocks. This override of
551
- [`dispatcher.dispatch(options, handlers)`][] is what drives the mocking
552
- behaviour for every higher-level method such as `request`.
516
+ Implements [`Dispatcher.dispatch(options, handlers)`](/docs/docs/api/Dispatcher.md#dispatcherdispatchoptions-handler).
553
517
 
554
- ### `mockPool.request(options[, callback])`
518
+ ### `MockPool.request(options[, callback])`
555
519
 
556
- <!-- YAML
557
- added: v4.0.0
558
- -->
520
+ See [`Dispatcher.request(options [, callback])`](/docs/docs/api/Dispatcher.md#dispatcherrequestoptions-callback).
559
521
 
560
- * `options` {DispatchOptions}
561
- * `callback` {Function} (optional) Invoked with the response when no `Promise`
562
- is requested.
563
- * Returns: {Promise} Fulfills with the mocked response when no `callback` is
564
- provided.
522
+ #### Example - MockPool request
565
523
 
566
- Performs a request and resolves it against the registered mocks. Inherited from
567
- [`Pool`][]; see [`dispatcher.request(options[, callback])`][] for the full
568
- parameter and return value documentation.
569
-
570
- ```mjs
524
+ ```js
571
525
  import { MockAgent } from 'undici'
572
526
 
573
527
  const mockAgent = new MockAgent()
528
+
574
529
  const mockPool = mockAgent.get('http://localhost:3000')
575
- mockPool.intercept({ path: '/foo', method: 'GET' }).reply(200, 'foo')
530
+ mockPool.intercept({
531
+ path: '/foo',
532
+ method: 'GET',
533
+ }).reply(200, 'foo')
576
534
 
577
- const { statusCode, body } = await mockPool.request({
535
+ const {
536
+ statusCode,
537
+ body
538
+ } = await mockPool.request({
578
539
  origin: 'http://localhost:3000',
579
540
  path: '/foo',
580
541
  method: 'GET'
@@ -587,32 +548,8 @@ for await (const data of body) {
587
548
  }
588
549
  ```
589
550
 
590
- ### `mockPool.cleanMocks()`
591
-
592
- <!-- YAML
593
- added: v7.11.0
594
- -->
595
-
596
- * Returns: {undefined}
551
+ ### `MockPool.cleanMocks()`
597
552
 
598
- Removes all registered interceptors from the mock pool. Pending mocks defined
599
- before this call no longer match incoming requests.
600
-
601
- ```mjs
602
- import { MockAgent } from 'undici'
603
-
604
- const mockAgent = new MockAgent()
605
- const mockPool = mockAgent.get('http://localhost:3000')
606
-
607
- mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
608
- mockPool.cleanMocks()
609
- ```
553
+ This method cleans up all the prepared mocks.
610
554
 
611
- [`MockAgent`]: MockAgent.md#class-mockagent
612
- [`MockClient`]: MockClient.md#class-mockclient
613
- [`MockInterceptor`]: MockPool.md#return-mockinterceptor
614
- [`MockScope`]: MockPool.md#return-mockscope
615
- [`Pool`]: Pool.md#class-pool
616
- [`dispatcher.dispatch(options, handlers)`]: Dispatcher.md#dispatcherdispatchoptions-handler
617
- [`dispatcher.request(options[, callback])`]: Dispatcher.md#dispatcherrequestoptions-callback
618
- [`mockAgent.get(origin)`]: MockAgent.md#mockagentgetorigin
555
+ Returns: `void`