@anhdhbn/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 (738) hide show
  1. package/README.md +19 -47
  2. package/app/.next-cli-build/BUILD_ID +1 -1
  3. package/app/.next-cli-build/app-path-routes-manifest.json +15 -15
  4. package/app/.next-cli-build/build-manifest.json +2 -2
  5. package/app/.next-cli-build/prerender-manifest.json +6 -6
  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 +5 -5
  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 +2 -2
  104. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  107. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  109. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
  111. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  115. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  123. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  125. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
  131. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  133. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  138. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  140. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  142. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  144. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  146. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  154. package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  179. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/oauth/commandcode/auto-import/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/providers/web-login/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  268. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  274. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  280. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  286. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  288. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  305. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  307. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +4 -4
  309. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  313. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  315. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -3
  317. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  320. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  322. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  324. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  328. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  358. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  360. package/app/.next-cli-build/server/app/callback.html +1 -1
  361. package/app/.next-cli-build/server/app/callback.rsc +3 -3
  362. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  363. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  364. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
  365. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  366. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +3 -3
  367. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +3 -3
  368. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +3 -3
  369. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  370. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  371. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  372. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +6 -6
  373. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  374. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  375. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  376. package/app/.next-cli-build/server/app/dashboard/combos.rsc +3 -3
  377. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +3 -3
  378. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +3 -3
  379. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  380. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  381. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +3 -3
  382. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +3 -3
  383. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +3 -3
  384. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  385. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  386. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +3 -3
  387. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +3 -3
  388. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +3 -3
  389. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  390. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  391. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  392. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +6 -6
  393. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  394. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  395. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  396. package/app/.next-cli-build/server/app/dashboard/profile.rsc +3 -3
  397. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +3 -3
  398. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +3 -3
  399. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  400. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  401. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +3 -3
  402. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +3 -3
  403. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +3 -3
  404. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  405. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  406. package/app/.next-cli-build/server/app/dashboard/providers.rsc +3 -3
  407. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +3 -3
  408. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +3 -3
  409. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  410. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  411. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
  412. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +5 -5
  413. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
  414. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  415. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  416. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +3 -3
  417. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +3 -3
  418. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +3 -3
  419. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  420. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  421. package/app/.next-cli-build/server/app/dashboard/quota.rsc +4 -4
  422. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +4 -4
  423. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +4 -4
  424. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  425. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  426. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  427. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  428. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  429. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  430. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  431. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  432. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +3 -3
  433. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  434. package/app/.next-cli-build/server/app/dashboard/skills.rsc +3 -3
  435. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +3 -3
  436. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +3 -3
  437. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  438. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  439. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +3 -3
  440. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +3 -3
  441. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +3 -3
  442. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  443. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  444. package/app/.next-cli-build/server/app/dashboard/translator.rsc +3 -3
  445. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +3 -3
  446. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +3 -3
  447. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  448. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  449. package/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
  450. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +5 -5
  451. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  452. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  453. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  454. package/app/.next-cli-build/server/app/dashboard.rsc +3 -3
  455. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +3 -3
  456. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +3 -3
  457. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  458. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  459. package/app/.next-cli-build/server/app/index.html +1 -1
  460. package/app/.next-cli-build/server/app/index.rsc +3 -3
  461. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  462. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  463. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  464. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  465. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  466. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  467. package/app/.next-cli-build/server/app/landing.html +1 -1
  468. package/app/.next-cli-build/server/app/landing.rsc +3 -3
  469. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  470. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  471. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +3 -3
  472. package/app/.next-cli-build/server/app/login/page.js +1 -1
  473. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  474. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  475. package/app/.next-cli-build/server/app/login.html +1 -1
  476. package/app/.next-cli-build/server/app/login.rsc +3 -3
  477. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +3 -3
  478. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  479. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
  480. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  481. package/app/.next-cli-build/server/app/page.js +1 -1
  482. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  483. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  484. package/app/.next-cli-build/server/app-paths-manifest.json +15 -15
  485. package/app/.next-cli-build/server/chunks/1051.js +1 -1
  486. package/app/.next-cli-build/server/chunks/{9999.js → 1297.js} +2 -2
  487. package/app/.next-cli-build/server/chunks/1350.js +1 -1
  488. package/app/.next-cli-build/server/chunks/{4597.js → 1568.js} +1 -1
  489. package/app/.next-cli-build/server/chunks/1757.js +1 -1
  490. package/app/.next-cli-build/server/chunks/24.js +1 -1
  491. package/app/.next-cli-build/server/chunks/2840.js +1 -0
  492. package/app/.next-cli-build/server/chunks/3225.js +1 -1
  493. package/app/.next-cli-build/server/chunks/3697.js +1 -1
  494. package/app/.next-cli-build/server/chunks/3885.js +1 -1
  495. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  496. package/app/.next-cli-build/server/chunks/412.js +5 -5
  497. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  498. package/app/.next-cli-build/server/chunks/4882.js +1 -1
  499. package/app/.next-cli-build/server/chunks/{3783.js → 5299.js} +4 -4
  500. package/app/.next-cli-build/server/chunks/5330.js +34 -34
  501. package/app/.next-cli-build/server/chunks/5485.js +1 -1
  502. package/app/.next-cli-build/server/chunks/5615.js +1 -1
  503. package/app/.next-cli-build/server/chunks/5932.js +1 -0
  504. package/app/.next-cli-build/server/chunks/6054.js +1 -1
  505. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  506. package/app/.next-cli-build/server/chunks/615.js +1 -1
  507. package/app/.next-cli-build/server/chunks/6297.js +1 -0
  508. package/app/.next-cli-build/server/chunks/6513.js +1 -1
  509. package/app/.next-cli-build/server/chunks/6576.js +1 -0
  510. package/app/.next-cli-build/server/chunks/6690.js +1 -1
  511. package/app/.next-cli-build/server/chunks/6724.js +1 -1
  512. package/app/.next-cli-build/server/chunks/6763.js +1 -1
  513. package/app/.next-cli-build/server/chunks/7114.js +1 -1
  514. package/app/.next-cli-build/server/chunks/7187.js +1 -1
  515. package/app/.next-cli-build/server/chunks/7247.js +1 -1
  516. package/app/.next-cli-build/server/chunks/7373.js +1 -1
  517. package/app/.next-cli-build/server/chunks/7525.js +1 -1
  518. package/app/.next-cli-build/server/chunks/7552.js +1 -1
  519. package/app/.next-cli-build/server/chunks/7716.js +1 -1
  520. package/app/.next-cli-build/server/chunks/778.js +1 -1
  521. package/app/.next-cli-build/server/chunks/7843.js +51 -0
  522. package/app/.next-cli-build/server/chunks/8251.js +1 -1
  523. package/app/.next-cli-build/server/chunks/8402.js +1 -1
  524. package/app/.next-cli-build/server/chunks/8623.js +1 -1
  525. package/app/.next-cli-build/server/chunks/866.js +1 -0
  526. package/app/.next-cli-build/server/chunks/869.js +1 -1
  527. package/app/.next-cli-build/server/chunks/8895.js +3 -3
  528. package/app/.next-cli-build/server/chunks/8896.js +1 -1
  529. package/app/.next-cli-build/server/chunks/8920.js +1 -1
  530. package/app/.next-cli-build/server/chunks/8994.js +1 -1
  531. package/app/.next-cli-build/server/chunks/9198.js +1 -0
  532. package/app/.next-cli-build/server/chunks/9609.js +1 -1
  533. package/app/.next-cli-build/server/chunks/9927.js +1 -1
  534. package/app/.next-cli-build/server/instrumentation.js +1 -1
  535. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  536. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  537. package/app/.next-cli-build/server/middleware.js +3 -3
  538. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  539. package/app/.next-cli-build/server/pages/404.html +1 -1
  540. package/app/.next-cli-build/server/pages/500.html +1 -1
  541. package/app/.next-cli-build/server/preview-props.json +3 -3
  542. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  543. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  544. package/app/.next-cli-build/static/chunks/1321-2fde166305caeddb.js +1 -0
  545. package/app/.next-cli-build/static/chunks/5497-832391bf809808e3.js +7 -0
  546. package/app/.next-cli-build/static/chunks/{9134-dce513bebf49f409.js → 761-32ad2b1ee5ca216d.js} +10 -10
  547. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-a1c51b0c7ad758ad.js → page-6abc904471ca5d9e.js} +1 -1
  548. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-407f76834b37cd6c.js → page-1f2d3a8531261f5a.js} +1 -1
  549. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-a09d4b437dec0273.js → page-624cd614b7bc1f8c.js} +11 -11
  550. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-f9f9e895a365e8d3.js → page-9ee6ec1d1ae265b8.js} +1 -1
  551. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-efdb4d5aacfda8a6.js +27 -0
  552. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-371203e00dbb386a.js +4 -0
  553. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-cb6752cc71bde85f.js → page-98e943d2e0230bb1.js} +1 -1
  554. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-9121f5a9bc6ae4d6.js +1 -0
  555. package/app/node_modules/undici/README.md +29 -116
  556. package/app/node_modules/undici/docs/docs/api/Agent.md +42 -249
  557. package/app/node_modules/undici/docs/docs/api/BalancedPool.md +48 -246
  558. package/app/node_modules/undici/docs/docs/api/CacheStorage.md +13 -171
  559. package/app/node_modules/undici/docs/docs/api/CacheStore.md +98 -309
  560. package/app/node_modules/undici/docs/docs/api/Client.md +164 -412
  561. package/app/node_modules/undici/docs/docs/api/ClientStats.md +14 -80
  562. package/app/node_modules/undici/docs/docs/api/Connector.md +35 -118
  563. package/app/node_modules/undici/docs/docs/api/ContentType.md +25 -65
  564. package/app/node_modules/undici/docs/docs/api/Cookies.md +71 -122
  565. package/app/node_modules/undici/docs/docs/api/Debug.md +18 -34
  566. package/app/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +167 -368
  567. package/app/node_modules/undici/docs/docs/api/Dispatcher.md +1056 -505
  568. package/app/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +93 -105
  569. package/app/node_modules/undici/docs/docs/api/Errors.md +28 -603
  570. package/app/node_modules/undici/docs/docs/api/EventSource.md +13 -326
  571. package/app/node_modules/undici/docs/docs/api/Fetch.md +30 -691
  572. package/app/node_modules/undici/docs/docs/api/GlobalInstallation.md +96 -78
  573. package/app/node_modules/undici/docs/docs/api/H2CClient.md +176 -299
  574. package/app/node_modules/undici/docs/docs/api/MockAgent.md +314 -333
  575. package/app/node_modules/undici/docs/docs/api/MockCallHistory.md +98 -272
  576. package/app/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +26 -189
  577. package/app/node_modules/undici/docs/docs/api/MockClient.md +33 -151
  578. package/app/node_modules/undici/docs/docs/api/MockErrors.md +5 -56
  579. package/app/node_modules/undici/docs/docs/api/MockPool.md +258 -321
  580. package/app/node_modules/undici/docs/docs/api/Pool.md +41 -235
  581. package/app/node_modules/undici/docs/docs/api/PoolStats.md +13 -119
  582. package/app/node_modules/undici/docs/docs/api/ProxyAgent.md +160 -179
  583. package/app/node_modules/undici/docs/docs/api/RedirectHandler.md +55 -241
  584. package/app/node_modules/undici/docs/docs/api/RetryAgent.md +27 -113
  585. package/app/node_modules/undici/docs/docs/api/RetryHandler.md +79 -161
  586. package/app/node_modules/undici/docs/docs/api/RoundRobinPool.md +72 -166
  587. package/app/node_modules/undici/docs/docs/api/SnapshotAgent.md +517 -262
  588. package/app/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +196 -177
  589. package/app/node_modules/undici/docs/docs/api/Util.md +11 -68
  590. package/app/node_modules/undici/docs/docs/api/WebSocket.md +80 -475
  591. package/app/node_modules/undici/docs/docs/api/api-lifecycle.md +32 -100
  592. package/app/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -2
  593. package/app/node_modules/undici/docs/docs/best-practices/crawling.md +1 -3
  594. package/app/node_modules/undici/docs/docs/best-practices/mocking-request.md +7 -9
  595. package/app/node_modules/undici/docs/docs/best-practices/proxy.md +1 -3
  596. package/app/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +8 -10
  597. package/app/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -2
  598. package/app/node_modules/undici/index.js +2 -4
  599. package/app/node_modules/undici/lib/api/api-connect.js +11 -13
  600. package/app/node_modules/undici/lib/api/api-pipeline.js +13 -26
  601. package/app/node_modules/undici/lib/api/api-request.js +21 -51
  602. package/app/node_modules/undici/lib/api/api-stream.js +20 -81
  603. package/app/node_modules/undici/lib/api/api-upgrade.js +11 -21
  604. package/app/node_modules/undici/lib/api/readable.js +11 -46
  605. package/app/node_modules/undici/lib/cache/memory-cache-store.js +15 -50
  606. package/app/node_modules/undici/lib/cache/sqlite-cache-store.js +18 -142
  607. package/app/node_modules/undici/lib/core/connect.js +7 -46
  608. package/app/node_modules/undici/lib/core/constants.js +23 -11
  609. package/app/node_modules/undici/lib/core/errors.js +3 -60
  610. package/app/node_modules/undici/lib/core/request.js +19 -116
  611. package/app/node_modules/undici/lib/core/symbols.js +0 -5
  612. package/app/node_modules/undici/lib/core/util.js +88 -110
  613. package/app/node_modules/undici/lib/dispatcher/agent.js +32 -51
  614. package/app/node_modules/undici/lib/dispatcher/balanced-pool.js +27 -23
  615. package/app/node_modules/undici/lib/dispatcher/client-h1.js +89 -166
  616. package/app/node_modules/undici/lib/dispatcher/client-h2.js +373 -1306
  617. package/app/node_modules/undici/lib/dispatcher/client.js +34 -114
  618. package/app/node_modules/undici/lib/dispatcher/dispatcher-base.js +8 -10
  619. package/app/node_modules/undici/lib/dispatcher/dispatcher.js +5 -15
  620. package/app/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +13 -57
  621. package/app/node_modules/undici/lib/dispatcher/h2c-client.js +4 -4
  622. package/app/node_modules/undici/lib/dispatcher/pool-base.js +27 -160
  623. package/app/node_modules/undici/lib/dispatcher/pool.js +16 -127
  624. package/app/node_modules/undici/lib/dispatcher/proxy-agent.js +29 -128
  625. package/app/node_modules/undici/lib/dispatcher/retry-agent.js +0 -13
  626. package/app/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -47
  627. package/app/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +63 -153
  628. package/app/node_modules/undici/lib/global.js +14 -37
  629. package/app/node_modules/undici/lib/handler/cache-handler.js +60 -101
  630. package/app/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -10
  631. package/app/node_modules/undici/lib/handler/decorator-handler.js +5 -14
  632. package/app/node_modules/undici/lib/handler/deduplication-handler.js +38 -74
  633. package/app/node_modules/undici/lib/handler/redirect-handler.js +72 -83
  634. package/app/node_modules/undici/lib/handler/retry-handler.js +45 -227
  635. package/app/node_modules/undici/lib/handler/unwrap-handler.js +106 -0
  636. package/app/node_modules/undici/lib/handler/wrap-handler.js +105 -0
  637. package/app/node_modules/undici/lib/interceptor/cache.js +28 -53
  638. package/app/node_modules/undici/lib/interceptor/decompress.js +5 -12
  639. package/app/node_modules/undici/lib/interceptor/deduplicate.js +4 -5
  640. package/app/node_modules/undici/lib/interceptor/dns.js +1 -23
  641. package/app/node_modules/undici/lib/interceptor/redirect.js +3 -3
  642. package/app/node_modules/undici/lib/interceptor/response-error.js +28 -72
  643. package/app/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  644. package/app/node_modules/undici/lib/llhttp/llhttp-wasm.js +1 -1
  645. package/app/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +1 -1
  646. package/app/node_modules/undici/lib/mock/mock-agent.js +9 -32
  647. package/app/node_modules/undici/lib/mock/mock-call-history.js +1 -1
  648. package/app/node_modules/undici/lib/mock/mock-interceptor.js +7 -25
  649. package/app/node_modules/undici/lib/mock/mock-utils.js +48 -292
  650. package/app/node_modules/undici/lib/mock/snapshot-agent.js +7 -25
  651. package/app/node_modules/undici/lib/mock/snapshot-recorder.js +5 -41
  652. package/app/node_modules/undici/lib/mock/snapshot-utils.js +2 -3
  653. package/app/node_modules/undici/lib/util/cache.js +14 -69
  654. package/app/node_modules/undici/lib/util/promise.js +28 -0
  655. package/app/node_modules/undici/lib/util/runtime-features.js +34 -3
  656. package/app/node_modules/undici/lib/web/cache/cache.js +16 -23
  657. package/app/node_modules/undici/lib/web/cache/cachestorage.js +5 -11
  658. package/app/node_modules/undici/lib/web/cookies/index.js +6 -16
  659. package/app/node_modules/undici/lib/web/cookies/parse.js +4 -7
  660. package/app/node_modules/undici/lib/web/cookies/util.js +1 -1
  661. package/app/node_modules/undici/lib/web/eventsource/eventsource.js +23 -66
  662. package/app/node_modules/undici/lib/web/eventsource/util.js +1 -32
  663. package/app/node_modules/undici/lib/web/fetch/body.js +25 -90
  664. package/app/node_modules/undici/lib/web/fetch/constants.js +1 -1
  665. package/app/node_modules/undici/lib/web/fetch/data-url.js +6 -6
  666. package/app/node_modules/undici/lib/web/fetch/formdata-parser.js +4 -12
  667. package/app/node_modules/undici/lib/web/fetch/formdata.js +26 -39
  668. package/app/node_modules/undici/lib/web/fetch/headers.js +33 -36
  669. package/app/node_modules/undici/lib/web/fetch/index.js +259 -297
  670. package/app/node_modules/undici/lib/web/fetch/request.js +170 -172
  671. package/app/node_modules/undici/lib/web/fetch/response.js +47 -44
  672. package/app/node_modules/undici/lib/web/fetch/util.js +9 -17
  673. package/app/node_modules/undici/lib/web/infra/index.js +14 -15
  674. package/app/node_modules/undici/lib/web/webidl/index.js +21 -7
  675. package/app/node_modules/undici/lib/web/websocket/connection.js +5 -16
  676. package/app/node_modules/undici/lib/web/websocket/events.js +26 -43
  677. package/app/node_modules/undici/lib/web/websocket/frame.js +7 -1
  678. package/app/node_modules/undici/lib/web/websocket/receiver.js +3 -13
  679. package/app/node_modules/undici/lib/web/websocket/stream/websocketerror.js +10 -13
  680. package/app/node_modules/undici/lib/web/websocket/stream/websocketstream.js +14 -29
  681. package/app/node_modules/undici/lib/web/websocket/websocket.js +40 -65
  682. package/app/node_modules/undici/package.json +13 -15
  683. package/app/node_modules/undici/types/agent.d.ts +2 -0
  684. package/app/node_modules/undici/types/api.d.ts +1 -1
  685. package/app/node_modules/undici/types/cache-interceptor.d.ts +0 -10
  686. package/app/node_modules/undici/types/client.d.ts +27 -64
  687. package/app/node_modules/undici/types/connector.d.ts +0 -1
  688. package/app/node_modules/undici/types/cookies.d.ts +1 -1
  689. package/app/node_modules/undici/types/diagnostics-channel.d.ts +1 -2
  690. package/app/node_modules/undici/types/dispatcher.d.ts +30 -8
  691. package/app/node_modules/undici/types/errors.d.ts +1 -26
  692. package/app/node_modules/undici/types/fetch.d.ts +1 -5
  693. package/app/node_modules/undici/types/formdata.d.ts +12 -6
  694. package/app/node_modules/undici/types/h2c-client.d.ts +7 -7
  695. package/app/node_modules/undici/types/handlers.d.ts +0 -2
  696. package/app/node_modules/undici/types/header.d.ts +0 -5
  697. package/app/node_modules/undici/types/index.d.ts +1 -3
  698. package/app/node_modules/undici/types/interceptors.d.ts +2 -7
  699. package/app/node_modules/undici/types/mock-agent.d.ts +10 -11
  700. package/app/node_modules/undici/types/mock-interceptor.d.ts +1 -5
  701. package/app/node_modules/undici/types/pool.d.ts +2 -0
  702. package/app/node_modules/undici/types/proxy-agent.d.ts +2 -9
  703. package/app/node_modules/undici/types/retry-handler.d.ts +3 -3
  704. package/app/node_modules/undici/types/round-robin-pool.d.ts +2 -0
  705. package/app/node_modules/undici/types/snapshot-agent.d.ts +0 -4
  706. package/app/node_modules/undici/types/socks5-proxy-agent.d.ts +2 -4
  707. package/app/node_modules/undici/types/utility.d.ts +4 -4
  708. package/app/node_modules/undici/types/webidl.d.ts +8 -13
  709. package/app/package.json +5 -2
  710. package/app/public/providers/sensenova-intl.png +0 -0
  711. package/app/src/shared/services/quotaAutoPing.js +17 -2
  712. package/package.json +2 -2
  713. package/app/.next-cli-build/server/chunks/1004.js +0 -1
  714. package/app/.next-cli-build/server/chunks/4480.js +0 -1
  715. package/app/.next-cli-build/server/chunks/4811.js +0 -51
  716. package/app/.next-cli-build/server/chunks/547.js +0 -1
  717. package/app/.next-cli-build/server/chunks/7573.js +0 -1
  718. package/app/.next-cli-build/server/chunks/8499.js +0 -1
  719. package/app/.next-cli-build/server/chunks/9102.js +0 -1
  720. package/app/.next-cli-build/static/chunks/1321-93eb6ca56f8fcb1e.js +0 -1
  721. package/app/.next-cli-build/static/chunks/5497-02b05d77d17bcdc3.js +0 -7
  722. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-74ca3f1d4f1ec046.js +0 -27
  723. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-b44167799c6c673a.js +0 -4
  724. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-f16fd9091b7ae81c.js +0 -1
  725. package/app/node_modules/undici/docs/docs/api/Interceptors.md +0 -439
  726. package/app/node_modules/undici/docs/docs/best-practices/migrating-from-v7-to-v8.md +0 -233
  727. package/app/node_modules/undici/docs/docs/getting-started.md +0 -281
  728. package/app/node_modules/undici/docs/docs/index.md +0 -793
  729. package/app/node_modules/undici/docs/docs/site.json +0 -125
  730. package/app/node_modules/undici/docs/docs/type-map.json +0 -79
  731. package/app/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +0 -127
  732. package/app/node_modules/undici/lib/dispatcher/parser-h1.js +0 -1065
  733. package/app/node_modules/undici/lib/milo/LICENSE.md +0 -7
  734. package/app/node_modules/undici/lib/milo/no-simd.js +0 -1002
  735. package/app/node_modules/undici/lib/milo/simd.js +0 -1002
  736. package/app/node_modules/undici/types/dispatcher1-wrapper.d.ts +0 -7
  737. /package/app/.next-cli-build/static/{erY6mcU6WqDeuYANqpCwQ → mEL-faV-rpAwzfhUdVe-c}/_buildManifest.js +0 -0
  738. /package/app/.next-cli-build/static/{erY6mcU6WqDeuYANqpCwQ → mEL-faV-rpAwzfhUdVe-c}/_ssgManifest.js +0 -0
@@ -1,84 +1,40 @@
1
- # MockAgent
1
+ # Class: MockAgent
2
2
 
3
- <!--introduced_in=v4.0.0-->
4
- <!--type=module-->
5
- <!-- source_link=lib/mock/mock-agent.js -->
3
+ Extends: `undici.Dispatcher`
6
4
 
7
- > Stability: 2 - Stable
5
+ A mocked Agent class that implements the Agent API. It allows one to intercept HTTP requests made through undici and return mocked responses instead.
8
6
 
9
- A `MockAgent` is a {Dispatcher} that intercepts HTTP requests made through
10
- undici and replies with programmed mock responses instead of contacting the
11
- network. It is useful for testing code that performs HTTP requests without
12
- relying on a live server.
7
+ ## `new MockAgent([options])`
13
8
 
14
- A `MockAgent` does not intercept requests on its own. Mock responses are
15
- registered on the {MockClient} or {MockPool} instances returned by
16
- [`mockAgent.get(origin)`][], and requests are routed through them once the
17
- `MockAgent` is set as the dispatcher (for example through
18
- [`setGlobalDispatcher()`][] or a per-request `dispatcher` option).
9
+ Arguments:
19
10
 
20
- > [!NOTE]
21
- > [`setGlobalDispatcher()`][] only affects undici APIs that use the global
22
- > dispatcher, such as `request()` and `fetch()`. It does not replace or
23
- > monkeypatch {Pool} or {Client} instances that were created separately. To test
24
- > code that accepts or creates a pool/client directly, pass the {MockPool} or
25
- > {MockClient} returned by [`mockAgent.get(origin)`][] into that code.
11
+ * **options** `MockAgentOptions` (optional) - It extends the `Agent` options.
26
12
 
27
- ```mjs
28
- import { MockAgent } from 'undici'
29
-
30
- const mockAgent = new MockAgent()
31
- ```
32
-
33
- ## Class: `MockAgent`
34
-
35
- <!-- YAML
36
- added: v4.0.0
37
- -->
38
-
39
- * Extends: {Dispatcher}
13
+ Returns: `MockAgent`
40
14
 
41
- Intercepts HTTP requests made through undici and returns mocked responses.
15
+ ### Parameter: `MockAgentOptions`
42
16
 
43
- ### `new MockAgent([options])`
17
+ Extends: [`AgentOptions`](/docs/docs/api/Agent.md#parameter-agentoptions)
44
18
 
45
- <!-- YAML
46
- added: v4.0.0
47
- changes:
48
- - version: v7.16.0
49
- pr-url: https://github.com/nodejs/undici/pull/4479
50
- description: Mock options are always normalized to an object internally.
51
- -->
19
+ * **agent** `Agent` (optional) - Default: `new Agent([options])` - a custom agent encapsulated by the MockAgent.
52
20
 
53
- * `options` {MockAgentOptions} (optional)
54
- * Returns: {MockAgent}
21
+ * **ignoreTrailingSlash** `boolean` (optional) - Default: `false` - set the default value for `ignoreTrailingSlash` for interceptors.
55
22
 
56
- When instantiated, a `MockAgent` is automatically activated. It does not
57
- intercept any request until mock interceptors are registered on the dispatchers
58
- returned by [`mockAgent.get(origin)`][].
23
+ * **acceptNonStandardSearchParameters** `boolean` (optional) - Default: `false` - set to `true` if the matcher should also accept non standard search parameters such as multi-value items specified with `[]` (e.g. `param[]=1&param[]=2&param[]=3`) and multi-value items which values are comma separated (e.g. `param=1,2,3`).
59
24
 
60
- #### Parameter: `MockAgentOptions`
25
+ ### Example - Basic MockAgent instantiation
61
26
 
62
- * Extends: {AgentOptions}
63
- * `agent` {Dispatcher} (optional) A custom agent to be encapsulated by the
64
- `MockAgent`. It must implement the `Agent` API (that is, expose a `dispatch`
65
- function). **Default:** a new {Agent} constructed from `options`.
66
- * `ignoreTrailingSlash` {boolean} (optional) Whether trailing slashes in the
67
- request path are ignored when matching interceptors. **Default:** `false`.
68
- * `acceptNonStandardSearchParameters` {boolean} (optional) Whether the matcher
69
- also accepts URLs using non-standard search-parameter syntaxes, such as
70
- multi-value items written with `[]` (for example `param[]=1&param[]=2`) or
71
- comma-separated values (for example `param=1,2,3`). **Default:** `false`.
72
- * `enableCallHistory` {boolean} (optional) Whether call history recording is
73
- enabled. See [`mockAgent.getCallHistory()`][]. **Default:** `false`.
27
+ This will instantiate the MockAgent. It will not do anything until registered as the agent to use with requests and mock interceptions are added.
74
28
 
75
- ```mjs displayName="Basic instantiation"
29
+ ```js
76
30
  import { MockAgent } from 'undici'
77
31
 
78
32
  const mockAgent = new MockAgent()
79
33
  ```
80
34
 
81
- ```mjs displayName="Instantiation with a custom agent"
35
+ ### Example - Basic MockAgent instantiation with custom agent
36
+
37
+ ```js
82
38
  import { Agent, MockAgent } from 'undici'
83
39
 
84
40
  const agent = new Agent()
@@ -86,30 +42,34 @@ const agent = new Agent()
86
42
  const mockAgent = new MockAgent({ agent })
87
43
  ```
88
44
 
89
- ### `mockAgent.get(origin)`
45
+ ## Instance Methods
46
+
47
+ ### `MockAgent.get(origin)`
48
+
49
+ This method creates and retrieves MockPool or MockClient instances which can then be used to intercept HTTP requests. If the number of connections on the mock agent is set to 1, a MockClient instance is returned. Otherwise a MockPool instance is returned.
90
50
 
91
- <!-- YAML
92
- added: v4.0.0
93
- -->
51
+ For subsequent `MockAgent.get` calls on the same origin, the same mock instance will be returned.
94
52
 
95
- * `origin` {string|RegExp|Function} A matcher for the origin to retrieve. The
96
- function form has the signature `(origin) => boolean`.
97
- * Returns: {MockClient|MockPool}
53
+ Arguments:
98
54
 
99
- Creates and retrieves the mock dispatcher used to intercept requests for the
100
- given origin. When the `connections` option of the `MockAgent` is `1`, a
101
- {MockClient} is returned; otherwise a {MockPool} is returned. Subsequent calls
102
- with the same origin return the same instance.
55
+ * **origin** `string | RegExp | (value) => boolean` - a matcher for the pool origin to be retrieved from the MockAgent.
103
56
 
104
- The way `origin` is matched against incoming requests depends on its type:
57
+ | Matcher type | Condition to pass |
58
+ |:------------:| -------------------------- |
59
+ | `string` | Exact match against string |
60
+ | `RegExp` | Regex must pass |
61
+ | `Function` | Function must return true |
105
62
 
106
- | Matcher type | Condition to pass |
107
- | :----------: | ---------------------------- |
108
- | `string` | Exact match against the value |
109
- | `RegExp` | The regular expression matches |
110
- | `Function` | The function returns `true` |
63
+ Returns: `MockClient | MockPool`.
111
64
 
112
- ```mjs displayName="Basic mocked request"
65
+ | `MockAgentOptions` | Mock instance returned |
66
+ | -------------------- | ---------------------- |
67
+ | `connections === 1` | `MockClient` |
68
+ | `connections` > `1` | `MockPool` |
69
+
70
+ #### Example - Basic Mocked Request
71
+
72
+ ```js
113
73
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
114
74
 
115
75
  const mockAgent = new MockAgent()
@@ -127,7 +87,9 @@ for await (const data of body) {
127
87
  }
128
88
  ```
129
89
 
130
- ```mjs displayName="Mocked request using a local dispatcher"
90
+ #### Example - Basic Mocked Request with local mock agent dispatcher
91
+
92
+ ```js
131
93
  import { MockAgent, request } from 'undici'
132
94
 
133
95
  const mockAgent = new MockAgent()
@@ -135,9 +97,10 @@ const mockAgent = new MockAgent()
135
97
  const mockPool = mockAgent.get('http://localhost:3000')
136
98
  mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
137
99
 
138
- const { statusCode, body } = await request('http://localhost:3000/foo', {
139
- dispatcher: mockAgent
140
- })
100
+ const {
101
+ statusCode,
102
+ body
103
+ } = await request('http://localhost:3000/foo', { dispatcher: mockAgent })
141
104
 
142
105
  console.log('response received', statusCode) // response received 200
143
106
 
@@ -146,27 +109,31 @@ for await (const data of body) {
146
109
  }
147
110
  ```
148
111
 
149
- ```mjs displayName="Testing code that accepts a pool"
150
- import { MockAgent } from 'undici'
151
-
152
- async function getStatus (pool) {
153
- const { statusCode } = await pool.request({
154
- path: '/foo',
155
- method: 'GET'
156
- })
112
+ #### Example - Basic Mocked Request with local mock pool dispatcher
157
113
 
158
- return statusCode
159
- }
114
+ ```js
115
+ import { MockAgent, request } from 'undici'
160
116
 
161
117
  const mockAgent = new MockAgent()
118
+
162
119
  const mockPool = mockAgent.get('http://localhost:3000')
120
+ mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
121
+
122
+ const {
123
+ statusCode,
124
+ body
125
+ } = await request('http://localhost:3000/foo', { dispatcher: mockPool })
163
126
 
164
- mockPool.intercept({ path: '/foo', method: 'GET' }).reply(200)
127
+ console.log('response received', statusCode) // response received 200
165
128
 
166
- console.log(await getStatus(mockPool)) // 200
129
+ for await (const data of body) {
130
+ console.log('data', data.toString('utf8')) // data foo
131
+ }
167
132
  ```
168
133
 
169
- ```mjs displayName="Returning a MockClient"
134
+ #### Example - Basic Mocked Request with local mock client dispatcher
135
+
136
+ ```js
170
137
  import { MockAgent, request } from 'undici'
171
138
 
172
139
  const mockAgent = new MockAgent({ connections: 1 })
@@ -174,9 +141,10 @@ const mockAgent = new MockAgent({ connections: 1 })
174
141
  const mockClient = mockAgent.get('http://localhost:3000')
175
142
  mockClient.intercept({ path: '/foo' }).reply(200, 'foo')
176
143
 
177
- const { statusCode, body } = await request('http://localhost:3000/foo', {
178
- dispatcher: mockClient
179
- })
144
+ const {
145
+ statusCode,
146
+ body
147
+ } = await request('http://localhost:3000/foo', { dispatcher: mockClient })
180
148
 
181
149
  console.log('response received', statusCode) // response received 200
182
150
 
@@ -185,64 +153,131 @@ for await (const data of body) {
185
153
  }
186
154
  ```
187
155
 
188
- ```mjs displayName="Matching the origin with a regular expression"
156
+ #### Example - Basic Mocked requests with multiple intercepts
157
+
158
+ ```js
189
159
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
190
160
 
191
161
  const mockAgent = new MockAgent()
192
162
  setGlobalDispatcher(mockAgent)
193
163
 
194
- const mockPool = mockAgent.get(new RegExp('http://localhost:3000'))
164
+ const mockPool = mockAgent.get('http://localhost:3000')
195
165
  mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
166
+ mockPool.intercept({ path: '/hello'}).reply(200, 'hello')
196
167
 
197
- const { statusCode } = await request('http://localhost:3000/foo')
168
+ const result1 = await request('http://localhost:3000/foo')
198
169
 
199
- console.log('response received', statusCode) // response received 200
170
+ console.log('response received', result1.statusCode) // response received 200
171
+
172
+ for await (const data of result1.body) {
173
+ console.log('data', data.toString('utf8')) // data foo
174
+ }
175
+
176
+ const result2 = await request('http://localhost:3000/hello')
177
+
178
+ console.log('response received', result2.statusCode) // response received 200
179
+
180
+ for await (const data of result2.body) {
181
+ console.log('data', data.toString('utf8')) // data hello
182
+ }
200
183
  ```
201
184
 
202
- ```mjs displayName="Matching the origin with a function"
185
+ #### Example - Mock different requests within the same file
186
+
187
+ ```js
188
+ const { MockAgent, setGlobalDispatcher } = require('undici');
189
+ const agent = new MockAgent();
190
+ agent.disableNetConnect();
191
+ setGlobalDispatcher(agent);
192
+ describe('Test', () => {
193
+ it('200', async () => {
194
+ const mockAgent = agent.get('http://test.com');
195
+ // your test
196
+ });
197
+ it('200', async () => {
198
+ const mockAgent = agent.get('http://testing.com');
199
+ // your test
200
+ });
201
+ });
202
+ ```
203
+
204
+ #### Example - Mocked request with query body, headers and trailers
205
+
206
+ ```js
203
207
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
204
208
 
205
209
  const mockAgent = new MockAgent()
206
210
  setGlobalDispatcher(mockAgent)
207
211
 
208
- const mockPool = mockAgent.get((origin) => origin === 'http://localhost:3000')
209
- mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
212
+ const mockPool = mockAgent.get('http://localhost:3000')
210
213
 
211
- const { statusCode } = await request('http://localhost:3000/foo')
214
+ mockPool.intercept({
215
+ path: '/foo?hello=there&see=ya',
216
+ method: 'POST',
217
+ body: 'form1=data1&form2=data2'
218
+ }).reply(200, { foo: 'bar' }, {
219
+ headers: { 'content-type': 'application/json' },
220
+ trailers: { 'Content-MD5': 'test' }
221
+ })
222
+
223
+ const {
224
+ statusCode,
225
+ headers,
226
+ trailers,
227
+ body
228
+ } = await request('http://localhost:3000/foo?hello=there&see=ya', {
229
+ method: 'POST',
230
+ body: 'form1=data1&form2=data2'
231
+ })
212
232
 
213
233
  console.log('response received', statusCode) // response received 200
234
+ console.log('headers', headers) // { 'content-type': 'application/json' }
235
+
236
+ for await (const data of body) {
237
+ console.log('data', data.toString('utf8')) // '{"foo":"bar"}'
238
+ }
239
+
240
+ console.log('trailers', trailers) // { 'content-md5': 'test' }
214
241
  ```
215
242
 
216
- ### `mockAgent.dispatch(options, handler)`
243
+ #### Example - Mocked request with origin regex
217
244
 
218
- <!-- YAML
219
- added: v4.0.0
220
- -->
245
+ ```js
246
+ import { MockAgent, setGlobalDispatcher, request } from 'undici'
221
247
 
222
- * `options` {AgentDispatchOptions}
223
- * `handler` {DispatchHandler}
224
- * Returns: {boolean}
248
+ const mockAgent = new MockAgent()
249
+ setGlobalDispatcher(mockAgent)
225
250
 
226
- Dispatches a mocked request. This implements
227
- [`Dispatcher.dispatch()`][] for the encapsulated agent: it ensures the mock
228
- dispatcher for `options.origin` exists, records the call in the call history
229
- when enabled, and forwards the request to the underlying agent. It is normally
230
- invoked indirectly through higher-level methods such as
231
- [`mockAgent.request()`][].
251
+ const mockPool = mockAgent.get(new RegExp('http://localhost:3000'))
252
+ mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
232
253
 
233
- ```mjs displayName="Using mockAgent.request()"
234
- import { MockAgent } from 'undici'
254
+ const {
255
+ statusCode,
256
+ body
257
+ } = await request('http://localhost:3000/foo')
258
+
259
+ console.log('response received', statusCode) // response received 200
260
+
261
+ for await (const data of body) {
262
+ console.log('data', data.toString('utf8')) // data foo
263
+ }
264
+ ```
265
+
266
+ #### Example - Mocked request with origin function
267
+
268
+ ```js
269
+ import { MockAgent, setGlobalDispatcher, request } from 'undici'
235
270
 
236
271
  const mockAgent = new MockAgent()
272
+ setGlobalDispatcher(mockAgent)
237
273
 
238
- const mockPool = mockAgent.get('http://localhost:3000')
274
+ const mockPool = mockAgent.get((origin) => origin === 'http://localhost:3000')
239
275
  mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
240
276
 
241
- const { statusCode, body } = await mockAgent.request({
242
- origin: 'http://localhost:3000',
243
- path: '/foo',
244
- method: 'GET'
245
- })
277
+ const {
278
+ statusCode,
279
+ body
280
+ } = await request('http://localhost:3000/foo')
246
281
 
247
282
  console.log('response received', statusCode) // response received 200
248
283
 
@@ -251,19 +286,15 @@ for await (const data of body) {
251
286
  }
252
287
  ```
253
288
 
254
- ### `mockAgent.close()`
289
+ ### `MockAgent.close()`
255
290
 
256
- <!-- YAML
257
- added: v4.0.0
258
- -->
291
+ Closes the mock agent and waits for registered mock pools and clients to also close before resolving.
259
292
 
260
- * Returns: {Promise<void>} Resolves once the agent and its registered mock pools
261
- and clients have closed.
293
+ Returns: `Promise<void>`
262
294
 
263
- Clears the call history, closes the encapsulated agent, and waits for all
264
- registered mock pools and clients to close.
295
+ #### Example - clean up after tests are complete
265
296
 
266
- ```mjs displayName="Clean up after tests"
297
+ ```js
267
298
  import { MockAgent, setGlobalDispatcher } from 'undici'
268
299
 
269
300
  const mockAgent = new MockAgent()
@@ -272,18 +303,49 @@ setGlobalDispatcher(mockAgent)
272
303
  await mockAgent.close()
273
304
  ```
274
305
 
275
- ### `mockAgent.deactivate()`
306
+ ### `MockAgent.dispatch(options, handlers)`
307
+
308
+ Implements [`Agent.dispatch(options, handlers)`](/docs/docs/api/Agent.md#parameter-agentdispatchoptions).
276
309
 
277
- <!-- YAML
278
- added: v4.0.0
279
- -->
310
+ ### `MockAgent.request(options[, callback])`
280
311
 
281
- * Returns: {undefined}
312
+ See [`Dispatcher.request(options [, callback])`](/docs/docs/api/Dispatcher.md#dispatcherrequestoptions-callback).
282
313
 
283
- Disables mocking on the `MockAgent`. While deactivated, requests are no longer
284
- intercepted.
314
+ #### Example - MockAgent request
285
315
 
286
- ```mjs displayName="Deactivate mocking"
316
+ ```js
317
+ import { MockAgent } from 'undici'
318
+
319
+ const mockAgent = new MockAgent()
320
+
321
+ const mockPool = mockAgent.get('http://localhost:3000')
322
+ mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
323
+
324
+ const {
325
+ statusCode,
326
+ body
327
+ } = await mockAgent.request({
328
+ origin: 'http://localhost:3000',
329
+ path: '/foo',
330
+ method: 'GET'
331
+ })
332
+
333
+ console.log('response received', statusCode) // response received 200
334
+
335
+ for await (const data of body) {
336
+ console.log('data', data.toString('utf8')) // data foo
337
+ }
338
+ ```
339
+
340
+ ### `MockAgent.deactivate()`
341
+
342
+ This method disables mocking in MockAgent.
343
+
344
+ Returns: `void`
345
+
346
+ #### Example - Deactivate Mocking
347
+
348
+ ```js
287
349
  import { MockAgent, setGlobalDispatcher } from 'undici'
288
350
 
289
351
  const mockAgent = new MockAgent()
@@ -292,19 +354,15 @@ setGlobalDispatcher(mockAgent)
292
354
  mockAgent.deactivate()
293
355
  ```
294
356
 
295
- ### `mockAgent.activate()`
357
+ ### `MockAgent.activate()`
296
358
 
297
- <!-- YAML
298
- added: v4.0.0
299
- -->
359
+ This method enables mocking in a MockAgent instance. When instantiated, a MockAgent is automatically activated. Therefore, this method is only effective after `MockAgent.deactivate` has been called.
300
360
 
301
- * Returns: {undefined}
361
+ Returns: `void`
302
362
 
303
- Enables mocking on the `MockAgent`. A `MockAgent` is activated automatically
304
- when instantiated, so this method is only required after
305
- [`mockAgent.deactivate()`][] has been called.
363
+ #### Example - Activate Mocking
306
364
 
307
- ```mjs displayName="Re-activate mocking"
365
+ ```js
308
366
  import { MockAgent, setGlobalDispatcher } from 'undici'
309
367
 
310
368
  const mockAgent = new MockAgent()
@@ -317,23 +375,21 @@ mockAgent.deactivate()
317
375
  mockAgent.activate()
318
376
  ```
319
377
 
320
- ### `mockAgent.enableNetConnect([matcher])`
378
+ ### `MockAgent.enableNetConnect([host])`
379
+
380
+ When requests are not matched in a MockAgent intercept, a real HTTP request is attempted. We can control this further through the use of `enableNetConnect`. This is achieved by defining host matchers so only matching requests will be attempted.
321
381
 
322
- <!-- YAML
323
- added: v4.0.0
324
- -->
382
+ When using a string, it should only include the **hostname and optionally, the port**. In addition, calling this method multiple times with a string will allow all HTTP requests that match these values.
325
383
 
326
- * `matcher` {string|RegExp|Function} (optional) A host matcher. When a string is
327
- used it should only contain the hostname and, optionally, the port. The
328
- function form has the signature `(host) => boolean`. When omitted, all
329
- non-matching requests are allowed to perform a real request.
330
- * Returns: {undefined}
384
+ Arguments:
331
385
 
332
- Defines host matchers so that requests that are not intercepted by a mock
333
- dispatcher are allowed to perform a real HTTP request. Calling this method
334
- multiple times with a string appends each value to the list of allowed hosts.
386
+ * **host** `string | RegExp | (value) => boolean` - (optional)
335
387
 
336
- ```mjs displayName="Allow all non-matching requests"
388
+ Returns: `void`
389
+
390
+ #### Example - Allow all non-matching urls to be dispatched in a real HTTP request
391
+
392
+ ```js
337
393
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
338
394
 
339
395
  const mockAgent = new MockAgent()
@@ -345,7 +401,9 @@ await request('http://example.com')
345
401
  // A real request is made
346
402
  ```
347
403
 
348
- ```mjs displayName="Allow requests matching specific hosts"
404
+ #### Example - Allow requests matching a host string to make real requests
405
+
406
+ ```js
349
407
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
350
408
 
351
409
  const mockAgent = new MockAgent()
@@ -364,167 +422,75 @@ await request('http://example-3.com')
364
422
  // Will throw
365
423
  ```
366
424
 
367
- ```mjs displayName="Allow requests matching a regular expression or function"
425
+ #### Example - Allow requests matching a host regex to make real requests
426
+
427
+ ```js
368
428
  import { MockAgent, setGlobalDispatcher, request } from 'undici'
369
429
 
370
430
  const mockAgent = new MockAgent()
371
431
  setGlobalDispatcher(mockAgent)
372
432
 
373
433
  mockAgent.enableNetConnect(new RegExp('example.com'))
374
- mockAgent.enableNetConnect((host) => host === 'example.org')
375
434
 
376
435
  await request('http://example.com')
377
436
  // A real request is made
378
437
  ```
379
438
 
380
- ### `mockAgent.disableNetConnect()`
381
-
382
- <!-- YAML
383
- added: v4.0.0
384
- -->
385
-
386
- * Returns: {undefined}
387
-
388
- Causes every request that is not matched by a mock interceptor to throw,
389
- disallowing real HTTP requests.
439
+ #### Example - Allow requests matching a host function to make real requests
390
440
 
391
- ```mjs displayName="Throw on every non-matching request"
392
- import { MockAgent, request } from 'undici'
441
+ ```js
442
+ import { MockAgent, setGlobalDispatcher, request } from 'undici'
393
443
 
394
444
  const mockAgent = new MockAgent()
445
+ setGlobalDispatcher(mockAgent)
395
446
 
396
- mockAgent.disableNetConnect()
447
+ mockAgent.enableNetConnect((value) => value === 'example.com')
397
448
 
398
449
  await request('http://example.com')
399
- // Will throw
450
+ // A real request is made
400
451
  ```
401
452
 
402
- ### `mockAgent.enableCallHistory()`
453
+ ### `MockAgent.disableNetConnect()`
403
454
 
404
- <!-- YAML
405
- added: v7.5.0
406
- -->
455
+ This method causes all requests to throw when requests are not matched in a MockAgent intercept.
407
456
 
408
- * Returns: {MockAgent} The same `MockAgent` instance, for chaining.
457
+ Returns: `void`
409
458
 
410
- Enables call history recording. Once enabled, subsequent calls are registered
411
- and can be retrieved through [`mockAgent.getCallHistory()`][]. Call history can
412
- also be enabled at construction time with the `enableCallHistory` option.
459
+ #### Example - Disable all non-matching requests by throwing an error for each
413
460
 
414
- ```mjs
415
- import { MockAgent } from 'undici'
461
+ ```js
462
+ import { MockAgent, request } from 'undici'
416
463
 
417
464
  const mockAgent = new MockAgent()
418
465
 
419
- mockAgent.enableCallHistory()
420
- ```
421
-
422
- ### `mockAgent.disableCallHistory()`
423
-
424
- <!-- YAML
425
- added: v7.5.0
426
- -->
427
-
428
- * Returns: {MockAgent} The same `MockAgent` instance, for chaining.
429
-
430
- Disables call history recording. Subsequent calls are no longer registered.
431
-
432
- ```mjs
433
- import { MockAgent } from 'undici'
434
-
435
- const mockAgent = new MockAgent({ enableCallHistory: true })
436
-
437
- mockAgent.disableCallHistory()
438
- ```
439
-
440
- ### `mockAgent.getCallHistory()`
441
-
442
- <!-- YAML
443
- added: v7.5.0
444
- -->
445
-
446
- * Returns: {MockCallHistory|undefined} The {MockCallHistory} instance, or
447
- `undefined` when call history is not enabled.
448
-
449
- Returns the call history instance, which records every request made through the
450
- `MockAgent` (whether intercepted or not). Call history is not enabled by
451
- default; enable it with the `enableCallHistory` option or
452
- [`mockAgent.enableCallHistory()`][].
453
-
454
- ```mjs displayName="Inspect recorded calls"
455
- import { MockAgent, setGlobalDispatcher, request } from 'undici'
456
-
457
- const mockAgent = new MockAgent({ enableCallHistory: true })
458
- setGlobalDispatcher(mockAgent)
459
-
460
- await request('http://example.com', { query: { item: 1 } })
461
-
462
- mockAgent.getCallHistory()?.firstCall()
463
- // Returns
464
- // MockCallHistoryLog {
465
- // body: undefined,
466
- // headers: undefined,
467
- // method: 'GET',
468
- // origin: 'http://example.com',
469
- // fullUrl: 'http://example.com/?item=1',
470
- // path: '/',
471
- // searchParams: { item: '1' },
472
- // protocol: 'http:',
473
- // host: 'example.com',
474
- // port: ''
475
- // }
476
- ```
477
-
478
- ### `mockAgent.clearCallHistory()`
479
-
480
- <!-- YAML
481
- added: v7.5.0
482
- -->
483
-
484
- * Returns: {undefined}
485
-
486
- Clears the call history, deleting every recorded {MockCallHistoryLog} on the
487
- {MockCallHistory} instance. It is a no-op when call history has never been
488
- enabled.
489
-
490
- ```mjs
491
- import { MockAgent } from 'undici'
492
-
493
- const mockAgent = new MockAgent({ enableCallHistory: true })
466
+ mockAgent.disableNetConnect()
494
467
 
495
- mockAgent.clearCallHistory()
468
+ await request('http://example.com')
469
+ // Will throw
496
470
  ```
497
471
 
498
- ### `mockAgent.pendingInterceptors()`
499
-
500
- <!-- YAML
501
- added: v5.1.0
502
- -->
472
+ ### `MockAgent.pendingInterceptors()`
503
473
 
504
- * Returns: {PendingInterceptor[]} A `PendingInterceptor` is a `MockDispatch`
505
- with an additional `origin` {string} property.
474
+ This method returns any pending interceptors registered on a mock agent. A pending interceptor meets one of the following criteria:
506
475
 
507
- Returns the interceptors registered on the `MockAgent` that are still pending.
508
- An interceptor is pending when it meets one of the following criteria:
476
+ - Is registered with neither `.times(<number>)` nor `.persist()`, and has not been invoked;
477
+ - Is persistent (i.e., registered with `.persist()`) and has not been invoked;
478
+ - Is registered with `.times(<number>)` and has not been invoked `<number>` of times.
509
479
 
510
- * It is registered with neither `.times(<number>)` nor `.persist()` and has not
511
- been invoked.
512
- * It is persistent (registered with `.persist()`) and has not been invoked.
513
- * It is registered with `.times(<number>)` and has not been invoked `<number>`
514
- times.
480
+ Returns: `PendingInterceptor[]` (where `PendingInterceptor` is a `MockDispatch` with an additional `origin: string`)
515
481
 
516
- ```mjs displayName="List pending interceptors"
517
- import { MockAgent } from 'undici'
482
+ #### Example - List all pending interceptors
518
483
 
519
- const mockAgent = new MockAgent()
520
- mockAgent.disableNetConnect()
484
+ ```js
485
+ const agent = new MockAgent()
486
+ agent.disableNetConnect()
521
487
 
522
- mockAgent
488
+ agent
523
489
  .get('https://example.com')
524
490
  .intercept({ method: 'GET', path: '/' })
525
491
  .reply(200)
526
492
 
527
- const pendingInterceptors = mockAgent.pendingInterceptors()
493
+ const pendingInterceptors = agent.pendingInterceptors()
528
494
  // Returns [
529
495
  // {
530
496
  // timesInvoked: 0,
@@ -548,35 +514,26 @@ const pendingInterceptors = mockAgent.pendingInterceptors()
548
514
  // ]
549
515
  ```
550
516
 
551
- ### `mockAgent.assertNoPendingInterceptors([options])`
552
-
553
- <!-- YAML
554
- added: v5.1.0
555
- -->
517
+ ### `MockAgent.assertNoPendingInterceptors([options])`
556
518
 
557
- * `options` {Object} (optional)
558
- * `pendingInterceptorsFormatter` {Object} An object exposing a
559
- `format(pendingInterceptors)` method used to render the pending interceptors
560
- in the thrown error message. **Default:** a built-in formatter that prints a
561
- table.
562
- * Returns: {undefined}
519
+ This method throws if the mock agent has any pending interceptors. A pending interceptor meets one of the following criteria:
563
520
 
564
- Throws an {UndiciError} when the `MockAgent` has any pending interceptors. The
565
- criteria for an interceptor being pending are the same as for
566
- [`mockAgent.pendingInterceptors()`][].
521
+ - Is registered with neither `.times(<number>)` nor `.persist()`, and has not been invoked;
522
+ - Is persistent (i.e., registered with `.persist()`) and has not been invoked;
523
+ - Is registered with `.times(<number>)` and has not been invoked `<number>` of times.
567
524
 
568
- ```mjs displayName="Assert there are no pending interceptors"
569
- import { MockAgent } from 'undici'
525
+ #### Example - Check that there are no pending interceptors
570
526
 
571
- const mockAgent = new MockAgent()
572
- mockAgent.disableNetConnect()
527
+ ```js
528
+ const agent = new MockAgent()
529
+ agent.disableNetConnect()
573
530
 
574
- mockAgent
531
+ agent
575
532
  .get('https://example.com')
576
533
  .intercept({ method: 'GET', path: '/' })
577
534
  .reply(200)
578
535
 
579
- mockAgent.assertNoPendingInterceptors()
536
+ agent.assertNoPendingInterceptors()
580
537
  // Throws an UndiciError with the following message:
581
538
  //
582
539
  // 1 interceptor is pending:
@@ -588,35 +545,59 @@ mockAgent.assertNoPendingInterceptors()
588
545
  // └─────────┴────────┴───────────────────────┴──────┴─────────────┴────────────┴─────────────┴───────────┘
589
546
  ```
590
547
 
591
- ### `mockAgent.isMockActive`
548
+ #### Example - access call history on MockAgent
592
549
 
593
- <!-- YAML
594
- added: v5.3.0
595
- -->
550
+ You can register every call made within a MockAgent to be able to retrieve the body, headers and so on.
596
551
 
597
- * Type: {boolean} `true` while mocking is active, `false` after
598
- [`mockAgent.deactivate()`][] has been called.
552
+ This is not enabled by default.
599
553
 
600
- A read-only property indicating whether mocking is currently active on the
601
- `MockAgent`.
554
+ ```js
555
+ import { MockAgent, setGlobalDispatcher, request } from 'undici'
602
556
 
603
- ```mjs
604
- import { MockAgent } from 'undici'
557
+ const mockAgent = new MockAgent({ enableCallHistory: true })
558
+ setGlobalDispatcher(mockAgent)
605
559
 
606
- const mockAgent = new MockAgent()
560
+ await request('http://example.com', { query: { item: 1 }})
561
+
562
+ mockAgent.getCallHistory()?.firstCall()
563
+ // Returns
564
+ // MockCallHistoryLog {
565
+ // body: undefined,
566
+ // headers: undefined,
567
+ // method: 'GET',
568
+ // origin: 'http://example.com',
569
+ // fullUrl: 'http://example.com/?item=1',
570
+ // path: '/',
571
+ // searchParams: { item: '1' },
572
+ // protocol: 'http:',
573
+ // host: 'example.com',
574
+ // port: ''
575
+ // }
576
+ ```
607
577
 
608
- console.log(mockAgent.isMockActive) // true
578
+ #### Example - clear call history
609
579
 
610
- mockAgent.deactivate()
580
+ ```js
581
+ const mockAgent = new MockAgent()
611
582
 
612
- console.log(mockAgent.isMockActive) // false
583
+ mockAgent.clearAllCallHistory()
613
584
  ```
614
585
 
615
- [`Dispatcher.dispatch()`]: Dispatcher.md#dispatcherdispatchoptions-handler
616
- [`mockAgent.deactivate()`]: #mockagentdeactivate
617
- [`mockAgent.enableCallHistory()`]: #mockagentenablecallhistory
618
- [`mockAgent.get(origin)`]: #mockagentgetorigin
619
- [`mockAgent.getCallHistory()`]: #mockagentgetcallhistory
620
- [`mockAgent.pendingInterceptors()`]: #mockagentpendinginterceptors
621
- [`mockAgent.request()`]: Dispatcher.md#dispatcherrequestoptions-callback
622
- [`setGlobalDispatcher()`]: Dispatcher.md#setglobaldispatcherdispatcher
586
+ #### Example - call history instance class method
587
+
588
+ ```js
589
+ const mockAgent = new MockAgent()
590
+
591
+ const mockAgentHistory = mockAgent.getCallHistory()
592
+
593
+ mockAgentHistory?.calls() // returns an array of MockCallHistoryLogs
594
+ mockAgentHistory?.firstCall() // returns the first MockCallHistoryLogs or undefined
595
+ mockAgentHistory?.lastCall() // returns the last MockCallHistoryLogs or undefined
596
+ mockAgentHistory?.nthCall(3) // returns the third MockCallHistoryLogs or undefined
597
+ mockAgentHistory?.filterCalls({ path: '/endpoint', hash: '#hash-value' }) // returns an Array of MockCallHistoryLogs WHERE path === /endpoint OR hash === #hash-value
598
+ mockAgentHistory?.filterCalls({ path: '/endpoint', hash: '#hash-value' }, { operator: 'AND' }) // returns an Array of MockCallHistoryLogs WHERE path === /endpoint AND hash === #hash-value
599
+ mockAgentHistory?.filterCalls(/"data": "{}"/) // returns an Array of MockCallHistoryLogs where any value match regexp
600
+ mockAgentHistory?.filterCalls('application/json') // returns an Array of MockCallHistoryLogs where any value === 'application/json'
601
+ mockAgentHistory?.filterCalls((log) => log.path === '/endpoint') // returns an Array of MockCallHistoryLogs when given function returns true
602
+ mockAgentHistory?.clear() // clear the history
603
+ ```