@rabbi696/ezrouter 0.6.8 → 0.6.10

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 (1364) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +4 -3
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/required-server-files.json +2 -1
  5. package/app/.next-cli-build/routes-manifest.json +6 -0
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  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 +3 -3
  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 +2 -2
  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 +2 -2
  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 +2 -2
  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/convoy/page.js +2 -2
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js +2 -2
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js +2 -2
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js.nft.json +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js +2 -2
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js.nft.json +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js +2 -2
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js.nft.json +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +4 -4
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +6 -6
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js +2 -2
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js.nft.json +1 -1
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page_client-reference-manifest.js +1 -1
  81. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  82. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  83. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  84. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  85. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  86. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  87. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  88. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  89. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  90. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  91. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  92. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  93. package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
  94. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  95. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  96. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  97. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  98. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  99. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  100. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  101. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  102. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  103. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  104. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  105. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  107. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  108. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  109. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  110. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  111. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
  112. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  113. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  114. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  115. package/app/.next-cli-build/server/app/api/auth/login/route.js +2 -2
  116. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  118. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  124. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  130. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
  138. package/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +2 -2
  142. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  148. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  150. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js +1 -1
  154. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  156. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  158. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  160. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  166. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  170. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  172. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -3
  176. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  180. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  182. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/combos/export/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/combos/export/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/combos/import/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/combos/import/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/combos/test/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/combos/test/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/convoy/rules/route.js +2 -2
  198. package/app/.next-cli-build/server/app/api/convoy/rules/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  226. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js +2 -2
  238. package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js +2 -2
  240. package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/mcp-gateway/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/mcp-gateway/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js +2 -2
  244. package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  252. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  256. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  258. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  262. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/models/enabled/route.js +1 -0
  266. package/app/.next-cli-build/server/app/api/models/enabled/route.js.nft.json +1 -0
  267. package/app/.next-cli-build/server/app/api/models/enabled/route_client-reference-manifest.js +1 -0
  268. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  269. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  271. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  273. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/oauth/callback/route.js +1 -1
  275. package/app/.next-cli-build/server/app/api/oauth/callback/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  277. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  279. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  281. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  283. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  284. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  285. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  287. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  289. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  291. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  293. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  295. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  297. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  301. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  303. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
  305. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  307. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  313. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  315. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js +1 -1
  317. package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  319. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  320. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  321. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  323. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  325. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  326. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  327. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  328. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  329. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  331. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  332. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  333. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  335. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  337. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  338. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  339. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  340. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +14 -14
  341. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +14 -14
  343. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  344. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  345. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  346. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +3 -3
  347. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  349. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  350. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  351. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  352. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  353. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  354. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  355. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  356. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  357. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  358. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  359. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  360. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  361. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  362. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  363. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  364. package/app/.next-cli-build/server/app/api/routing-health/route.js +1 -1
  365. package/app/.next-cli-build/server/app/api/routing-health/route.js.nft.json +1 -1
  366. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  367. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  368. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  369. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  370. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  371. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  372. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  373. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  374. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  375. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  376. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  377. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  378. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js +1 -1
  379. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js.nft.json +1 -1
  380. package/app/.next-cli-build/server/app/api/token-saver/stream/route.js +2 -2
  381. package/app/.next-cli-build/server/app/api/token-saver/stream/route.js.nft.json +1 -1
  382. package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js +1 -1
  383. package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  385. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  386. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  387. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  388. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  389. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  391. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  392. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  393. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  394. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  395. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  397. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  398. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  399. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  400. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  401. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  402. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  403. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  404. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  405. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  406. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  407. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  408. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  409. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  410. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  411. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  412. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  413. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  414. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  415. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  416. package/app/.next-cli-build/server/app/api/usage/error-logs/route.js +2 -2
  417. package/app/.next-cli-build/server/app/api/usage/error-logs/route.js.nft.json +1 -1
  418. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  419. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  420. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  421. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  422. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  423. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  424. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  425. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  426. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  427. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  428. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  429. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  430. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  431. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  432. package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js +1 -1
  433. package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js.nft.json +1 -1
  434. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  435. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  436. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  437. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  438. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  439. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  440. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  441. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  442. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  443. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  444. package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js +1 -1
  445. package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js.nft.json +1 -1
  446. package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js +1 -1
  447. package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js.nft.json +1 -1
  448. package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js +1 -1
  449. package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js.nft.json +1 -1
  450. package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js +1 -1
  451. package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js.nft.json +1 -1
  452. package/app/.next-cli-build/server/app/api/v1/codex/models/route.js +1 -1
  453. package/app/.next-cli-build/server/app/api/v1/codex/models/route.js.nft.json +1 -1
  454. package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js +1 -1
  455. package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js.nft.json +1 -1
  456. package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js +1 -1
  457. package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js.nft.json +1 -1
  458. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  459. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  460. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -3
  461. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  462. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  463. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  464. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  465. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  466. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  467. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  468. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  469. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  470. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  471. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  472. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  473. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  474. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  475. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  476. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  477. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  478. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  479. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  480. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  481. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  482. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  483. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  484. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  485. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  486. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  487. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  488. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  489. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  490. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  491. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  492. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  493. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  494. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  495. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  496. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  497. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  498. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  499. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  500. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  501. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  502. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  503. package/app/.next-cli-build/server/app/callback.html +1 -1
  504. package/app/.next-cli-build/server/app/callback.rsc +4 -4
  505. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  506. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  507. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
  508. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  509. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  510. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  511. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  512. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  513. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  514. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  515. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  516. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  517. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  518. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  519. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  520. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  521. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  522. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  523. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  524. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  525. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  526. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  527. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  528. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  529. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  530. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  531. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  532. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  533. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  534. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  535. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  536. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  537. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  538. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  539. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  540. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  541. package/app/.next-cli-build/server/app/dashboard/convoy.html +1 -1
  542. package/app/.next-cli-build/server/app/dashboard/convoy.rsc +6 -6
  543. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy/__PAGE__.segment.rsc +2 -2
  544. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy.segment.rsc +1 -1
  545. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  546. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  547. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_full.segment.rsc +6 -6
  548. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_head.segment.rsc +1 -1
  549. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_index.segment.rsc +4 -4
  550. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_tree.segment.rsc +2 -2
  551. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  552. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
  553. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  554. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  555. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  556. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  557. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  558. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  559. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  560. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  561. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.html +1 -1
  562. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.rsc +6 -6
  563. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys/__PAGE__.segment.rsc +2 -2
  564. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys.segment.rsc +1 -1
  565. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
  566. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  567. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  568. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_full.segment.rsc +6 -6
  569. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_head.segment.rsc +1 -1
  570. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_index.segment.rsc +4 -4
  571. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_tree.segment.rsc +2 -2
  572. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.html +1 -1
  573. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.rsc +6 -6
  574. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers/__PAGE__.segment.rsc +2 -2
  575. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers.segment.rsc +1 -1
  576. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
  577. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  578. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  579. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_full.segment.rsc +6 -6
  580. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_head.segment.rsc +1 -1
  581. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_index.segment.rsc +4 -4
  582. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_tree.segment.rsc +2 -2
  583. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.html +1 -1
  584. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.rsc +6 -6
  585. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/__PAGE__.segment.rsc +2 -2
  586. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
  587. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  588. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  589. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_full.segment.rsc +6 -6
  590. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_head.segment.rsc +1 -1
  591. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_index.segment.rsc +4 -4
  592. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_tree.segment.rsc +2 -2
  593. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  594. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  595. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  596. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  597. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  598. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  599. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  600. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  601. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  602. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  603. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  604. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  605. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  606. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  607. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  608. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  609. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  610. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  611. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  612. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  613. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  614. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  615. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  616. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  617. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  618. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  619. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  620. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  621. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  622. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  623. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  624. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  625. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  626. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  627. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  628. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  629. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  630. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  631. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  632. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  633. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  634. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  635. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  636. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  637. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  638. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  639. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  640. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  641. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  642. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  643. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  644. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  645. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  646. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  647. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  648. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  649. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  650. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  651. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  652. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  653. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  654. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  655. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  656. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
  657. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  658. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  659. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  660. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  661. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
  662. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  663. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
  664. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  665. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  666. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  667. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  668. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  669. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  670. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  671. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  672. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  673. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  674. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  675. package/app/.next-cli-build/server/app/dashboard/routing-health.html +1 -1
  676. package/app/.next-cli-build/server/app/dashboard/routing-health.rsc +6 -6
  677. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health/__PAGE__.segment.rsc +2 -2
  678. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health.segment.rsc +1 -1
  679. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  680. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  681. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_full.segment.rsc +6 -6
  682. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_head.segment.rsc +1 -1
  683. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_index.segment.rsc +4 -4
  684. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_tree.segment.rsc +2 -2
  685. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  686. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  687. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  688. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  689. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  690. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  691. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  692. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  693. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  694. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  695. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  696. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  697. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  698. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  699. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  700. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  701. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  702. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  703. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  704. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  705. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  706. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  707. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  708. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  709. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  710. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  711. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  712. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  713. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  714. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  715. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  716. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
  717. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  718. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  719. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  720. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  721. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  722. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  723. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  724. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  725. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  726. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  727. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  728. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  729. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  730. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  731. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  732. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  733. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  734. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  735. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  736. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  737. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  738. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  739. package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  740. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  741. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  742. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  743. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  744. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  745. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
  746. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  747. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  748. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  749. package/app/.next-cli-build/server/app/index.html +1 -1
  750. package/app/.next-cli-build/server/app/index.rsc +4 -4
  751. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  752. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  753. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  754. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +4 -4
  755. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  756. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  757. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  758. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  759. package/app/.next-cli-build/server/app/landing.html +1 -1
  760. package/app/.next-cli-build/server/app/landing.rsc +4 -4
  761. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  762. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  763. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
  764. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  765. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  766. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  767. package/app/.next-cli-build/server/app/login/page.js +2 -2
  768. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  769. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  770. package/app/.next-cli-build/server/app/login.html +1 -1
  771. package/app/.next-cli-build/server/app/login.rsc +5 -5
  772. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  773. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  774. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
  775. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  776. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  777. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  778. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  779. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  780. package/app/.next-cli-build/server/app/page.js +2 -2
  781. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  782. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  783. package/app/.next-cli-build/server/app-paths-manifest.json +4 -3
  784. package/app/.next-cli-build/server/chunks/1133.js +1 -1
  785. package/app/.next-cli-build/server/chunks/1253.js +1 -1
  786. package/app/.next-cli-build/server/chunks/1273.js +1 -1
  787. package/app/.next-cli-build/server/chunks/1522.js +1 -1
  788. package/app/.next-cli-build/server/chunks/1764.js +225 -0
  789. package/app/.next-cli-build/server/chunks/1847.js +1 -1
  790. package/app/.next-cli-build/server/chunks/2021.js +1 -1
  791. package/app/.next-cli-build/server/chunks/2269.js +1 -1
  792. package/app/.next-cli-build/server/chunks/2348.js +1 -1
  793. package/app/.next-cli-build/server/chunks/2461.js +1 -0
  794. package/app/.next-cli-build/server/chunks/2750.js +1 -31
  795. package/app/.next-cli-build/server/chunks/2898.js +3 -3
  796. package/app/.next-cli-build/server/chunks/3245.js +1 -1
  797. package/app/.next-cli-build/server/chunks/3252.js +1 -1
  798. package/app/.next-cli-build/server/chunks/3267.js +40 -0
  799. package/app/.next-cli-build/server/chunks/3433.js +4 -4
  800. package/app/.next-cli-build/server/chunks/3547.js +1 -1
  801. package/app/.next-cli-build/server/chunks/3583.js +2 -2
  802. package/app/.next-cli-build/server/chunks/369.js +24 -24
  803. package/app/.next-cli-build/server/chunks/3814.js +55 -5
  804. package/app/.next-cli-build/server/chunks/3886.js +1 -1
  805. package/app/.next-cli-build/server/chunks/3977.js +1 -1
  806. package/app/.next-cli-build/server/chunks/412.js +2 -2
  807. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  808. package/app/.next-cli-build/server/chunks/4208.js +252 -0
  809. package/app/.next-cli-build/server/chunks/436.js +1 -1
  810. package/app/.next-cli-build/server/chunks/4485.js +1 -1
  811. package/app/.next-cli-build/server/chunks/4574.js +1 -1
  812. package/app/.next-cli-build/server/chunks/4646.js +1 -1
  813. package/app/.next-cli-build/server/chunks/4827.js +1 -1
  814. package/app/.next-cli-build/server/chunks/4878.js +1 -1
  815. package/app/.next-cli-build/server/chunks/5011.js +1 -1
  816. package/app/.next-cli-build/server/chunks/5130.js +1 -1
  817. package/app/.next-cli-build/server/chunks/5614.js +1 -1
  818. package/app/.next-cli-build/server/chunks/576.js +1 -1
  819. package/app/.next-cli-build/server/chunks/5849.js +1 -1
  820. package/app/.next-cli-build/server/chunks/5875.js +1 -1
  821. package/app/.next-cli-build/server/chunks/5948.js +1 -0
  822. package/app/.next-cli-build/server/chunks/615.js +1 -1
  823. package/app/.next-cli-build/server/chunks/6502.js +28 -0
  824. package/app/.next-cli-build/server/chunks/6958.js +1 -1
  825. package/app/.next-cli-build/server/chunks/717.js +1 -0
  826. package/app/.next-cli-build/server/chunks/7239.js +1 -1
  827. package/app/.next-cli-build/server/chunks/7353.js +1 -1
  828. package/app/.next-cli-build/server/chunks/7362.js +1 -1
  829. package/app/.next-cli-build/server/chunks/7512.js +31 -0
  830. package/app/.next-cli-build/server/chunks/7677.js +1 -1
  831. package/app/.next-cli-build/server/chunks/7716.js +1 -1
  832. package/app/.next-cli-build/server/chunks/7774.js +7 -7
  833. package/app/.next-cli-build/server/chunks/7775.js +1 -1
  834. package/app/.next-cli-build/server/chunks/8129.js +1 -1
  835. package/app/.next-cli-build/server/chunks/823.js +1 -1
  836. package/app/.next-cli-build/server/chunks/8243.js +3 -3
  837. package/app/.next-cli-build/server/chunks/8251.js +2 -2
  838. package/app/.next-cli-build/server/chunks/8306.js +1 -1
  839. package/app/.next-cli-build/server/chunks/8421.js +1 -1
  840. package/app/.next-cli-build/server/chunks/8459.js +1 -1
  841. package/app/.next-cli-build/server/chunks/8851.js +55 -5
  842. package/app/.next-cli-build/server/chunks/8946.js +1 -1
  843. package/app/.next-cli-build/server/chunks/8976.js +1 -1
  844. package/app/.next-cli-build/server/chunks/9062.js +1 -1
  845. package/app/.next-cli-build/server/chunks/9303.js +1 -1
  846. package/app/.next-cli-build/server/chunks/9485.js +1 -1
  847. package/app/.next-cli-build/server/chunks/9718.js +1 -1
  848. package/app/.next-cli-build/server/chunks/9865.js +1 -1
  849. package/app/.next-cli-build/server/instrumentation.js +1 -1
  850. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  851. package/app/.next-cli-build/server/middleware.js +3 -3
  852. package/app/.next-cli-build/server/pages/404.html +1 -1
  853. package/app/.next-cli-build/server/pages/500.html +1 -1
  854. package/app/.next-cli-build/static/ZZzFJY8XwYUO3V74IjHEa/_buildManifest.js +1 -0
  855. package/app/.next-cli-build/static/chunks/1321-3959048b066ab2a8.js +1 -0
  856. package/app/.next-cli-build/static/chunks/{5497-a2c327d5099234f0.js → 5497-3d7a0fb93236c34a.js} +4 -4
  857. package/app/.next-cli-build/static/chunks/8105-24cfa2e10ca68766.js +1 -0
  858. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-adc0e63e21c1fd33.js → page-3dee12d2790214bb.js} +1 -1
  859. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-85950757e9505005.js → page-63e73261a2a83714.js} +1 -1
  860. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-173efeab4037cc9a.js +27 -0
  861. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-7ec974bc6ee445f1.js +1 -0
  862. package/app/.next-cli-build/static/chunks/app/_global-error/page-539411a7543bc680.js +1 -0
  863. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-539411a7543bc680.js +1 -0
  864. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-539411a7543bc680.js +1 -0
  865. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-539411a7543bc680.js +1 -0
  866. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-539411a7543bc680.js +1 -0
  867. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-539411a7543bc680.js +1 -0
  868. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-539411a7543bc680.js +1 -0
  869. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-539411a7543bc680.js +1 -0
  870. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-539411a7543bc680.js +1 -0
  871. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-539411a7543bc680.js +1 -0
  872. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-539411a7543bc680.js +1 -0
  873. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-539411a7543bc680.js +1 -0
  874. package/app/.next-cli-build/static/chunks/app/api/changelog/route-539411a7543bc680.js +1 -0
  875. package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-539411a7543bc680.js +1 -0
  876. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-539411a7543bc680.js +1 -0
  877. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-539411a7543bc680.js +1 -0
  878. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-539411a7543bc680.js +1 -0
  879. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-539411a7543bc680.js +1 -0
  880. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-539411a7543bc680.js +1 -0
  881. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-539411a7543bc680.js +1 -0
  882. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-539411a7543bc680.js +1 -0
  883. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-539411a7543bc680.js +1 -0
  884. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-539411a7543bc680.js +1 -0
  885. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-539411a7543bc680.js +1 -0
  886. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-539411a7543bc680.js +1 -0
  887. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-539411a7543bc680.js +1 -0
  888. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-539411a7543bc680.js +1 -0
  889. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-539411a7543bc680.js +1 -0
  890. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-539411a7543bc680.js +1 -0
  891. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-539411a7543bc680.js +1 -0
  892. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-539411a7543bc680.js +1 -0
  893. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-539411a7543bc680.js +1 -0
  894. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-539411a7543bc680.js +1 -0
  895. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-539411a7543bc680.js +1 -0
  896. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-539411a7543bc680.js +1 -0
  897. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-539411a7543bc680.js +1 -0
  898. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-539411a7543bc680.js +1 -0
  899. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-539411a7543bc680.js +1 -0
  900. package/app/.next-cli-build/static/chunks/app/api/combos/export/route-539411a7543bc680.js +1 -0
  901. package/app/.next-cli-build/static/chunks/app/api/combos/import/route-539411a7543bc680.js +1 -0
  902. package/app/.next-cli-build/static/chunks/app/api/combos/route-539411a7543bc680.js +1 -0
  903. package/app/.next-cli-build/static/chunks/app/api/combos/test/route-539411a7543bc680.js +1 -0
  904. package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-539411a7543bc680.js +1 -0
  905. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-539411a7543bc680.js +1 -0
  906. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-539411a7543bc680.js +1 -0
  907. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-539411a7543bc680.js +1 -0
  908. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-539411a7543bc680.js +1 -0
  909. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-539411a7543bc680.js +1 -0
  910. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-539411a7543bc680.js +1 -0
  911. package/app/.next-cli-build/static/chunks/app/api/health/route-539411a7543bc680.js +1 -0
  912. package/app/.next-cli-build/static/chunks/app/api/init/route-539411a7543bc680.js +1 -0
  913. package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-539411a7543bc680.js +1 -0
  914. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-539411a7543bc680.js +1 -0
  915. package/app/.next-cli-build/static/chunks/app/api/keys/route-539411a7543bc680.js +1 -0
  916. package/app/.next-cli-build/static/chunks/app/api/locale/route-539411a7543bc680.js +1 -0
  917. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-539411a7543bc680.js +1 -0
  918. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-539411a7543bc680.js +1 -0
  919. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/route-539411a7543bc680.js +1 -0
  920. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/test/route-539411a7543bc680.js +1 -0
  921. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/route-539411a7543bc680.js +1 -0
  922. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/[id]/route-539411a7543bc680.js +1 -0
  923. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/route-539411a7543bc680.js +1 -0
  924. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/message/route-539411a7543bc680.js +1 -0
  925. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/oauth/[id]/[action]/route-539411a7543bc680.js +1 -0
  926. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/route-539411a7543bc680.js +1 -0
  927. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/sse/route-539411a7543bc680.js +1 -0
  928. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-539411a7543bc680.js +1 -0
  929. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-539411a7543bc680.js +1 -0
  930. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-539411a7543bc680.js +1 -0
  931. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-539411a7543bc680.js +1 -0
  932. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-539411a7543bc680.js +1 -0
  933. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-539411a7543bc680.js +1 -0
  934. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-539411a7543bc680.js +1 -0
  935. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-539411a7543bc680.js +1 -0
  936. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-539411a7543bc680.js +1 -0
  937. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-539411a7543bc680.js +1 -0
  938. package/app/.next-cli-build/static/chunks/app/api/models/enabled/route-539411a7543bc680.js +1 -0
  939. package/app/.next-cli-build/static/chunks/app/api/models/route-539411a7543bc680.js +1 -0
  940. package/app/.next-cli-build/static/chunks/app/api/models/test/route-539411a7543bc680.js +1 -0
  941. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-539411a7543bc680.js +1 -0
  942. package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-539411a7543bc680.js +1 -0
  943. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-539411a7543bc680.js +1 -0
  944. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-539411a7543bc680.js +1 -0
  945. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-539411a7543bc680.js +1 -0
  946. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-539411a7543bc680.js +1 -0
  947. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-539411a7543bc680.js +1 -0
  948. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-539411a7543bc680.js +1 -0
  949. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-539411a7543bc680.js +1 -0
  950. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-539411a7543bc680.js +1 -0
  951. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-539411a7543bc680.js +1 -0
  952. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-539411a7543bc680.js +1 -0
  953. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-539411a7543bc680.js +1 -0
  954. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-539411a7543bc680.js +1 -0
  955. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-539411a7543bc680.js +1 -0
  956. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-539411a7543bc680.js +1 -0
  957. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-539411a7543bc680.js +1 -0
  958. package/app/.next-cli-build/static/chunks/app/api/pricing/route-539411a7543bc680.js +1 -0
  959. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-539411a7543bc680.js +1 -0
  960. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-539411a7543bc680.js +1 -0
  961. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-539411a7543bc680.js +1 -0
  962. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-539411a7543bc680.js +1 -0
  963. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-539411a7543bc680.js +1 -0
  964. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-539411a7543bc680.js +1 -0
  965. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-539411a7543bc680.js +1 -0
  966. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-539411a7543bc680.js +1 -0
  967. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-539411a7543bc680.js +1 -0
  968. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-539411a7543bc680.js +1 -0
  969. package/app/.next-cli-build/static/chunks/app/api/providers/route-539411a7543bc680.js +1 -0
  970. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-539411a7543bc680.js +1 -0
  971. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-539411a7543bc680.js +1 -0
  972. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-539411a7543bc680.js +1 -0
  973. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-539411a7543bc680.js +1 -0
  974. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-539411a7543bc680.js +1 -0
  975. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-539411a7543bc680.js +1 -0
  976. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-539411a7543bc680.js +1 -0
  977. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-539411a7543bc680.js +1 -0
  978. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-539411a7543bc680.js +1 -0
  979. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-539411a7543bc680.js +1 -0
  980. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-539411a7543bc680.js +1 -0
  981. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-539411a7543bc680.js +1 -0
  982. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-539411a7543bc680.js +1 -0
  983. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-539411a7543bc680.js +1 -0
  984. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-539411a7543bc680.js +1 -0
  985. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-539411a7543bc680.js +1 -0
  986. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-539411a7543bc680.js +1 -0
  987. package/app/.next-cli-build/static/chunks/app/api/routing-health/route-539411a7543bc680.js +1 -0
  988. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-539411a7543bc680.js +1 -0
  989. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-539411a7543bc680.js +1 -0
  990. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-539411a7543bc680.js +1 -0
  991. package/app/.next-cli-build/static/chunks/app/api/settings/route-539411a7543bc680.js +1 -0
  992. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-539411a7543bc680.js +1 -0
  993. package/app/.next-cli-build/static/chunks/app/api/tags/route-539411a7543bc680.js +1 -0
  994. package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-539411a7543bc680.js +1 -0
  995. package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-539411a7543bc680.js +1 -0
  996. package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-539411a7543bc680.js +1 -0
  997. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-539411a7543bc680.js +1 -0
  998. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-539411a7543bc680.js +1 -0
  999. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-539411a7543bc680.js +1 -0
  1000. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-539411a7543bc680.js +1 -0
  1001. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-539411a7543bc680.js +1 -0
  1002. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-539411a7543bc680.js +1 -0
  1003. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-539411a7543bc680.js +1 -0
  1004. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-539411a7543bc680.js +1 -0
  1005. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-539411a7543bc680.js +1 -0
  1006. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-539411a7543bc680.js +1 -0
  1007. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-539411a7543bc680.js +1 -0
  1008. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-539411a7543bc680.js +1 -0
  1009. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-539411a7543bc680.js +1 -0
  1010. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-539411a7543bc680.js +1 -0
  1011. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-539411a7543bc680.js +1 -0
  1012. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-539411a7543bc680.js +1 -0
  1013. package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-539411a7543bc680.js +1 -0
  1014. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-539411a7543bc680.js +1 -0
  1015. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-539411a7543bc680.js +1 -0
  1016. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-539411a7543bc680.js +1 -0
  1017. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-539411a7543bc680.js +1 -0
  1018. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-539411a7543bc680.js +1 -0
  1019. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-539411a7543bc680.js +1 -0
  1020. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-539411a7543bc680.js +1 -0
  1021. package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-539411a7543bc680.js +1 -0
  1022. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-539411a7543bc680.js +1 -0
  1023. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-539411a7543bc680.js +1 -0
  1024. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-539411a7543bc680.js +1 -0
  1025. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-539411a7543bc680.js +1 -0
  1026. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-539411a7543bc680.js +1 -0
  1027. package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-539411a7543bc680.js +1 -0
  1028. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-539411a7543bc680.js +1 -0
  1029. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-539411a7543bc680.js +1 -0
  1030. package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-539411a7543bc680.js +1 -0
  1031. package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-539411a7543bc680.js +1 -0
  1032. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-539411a7543bc680.js +1 -0
  1033. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-539411a7543bc680.js +1 -0
  1034. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-539411a7543bc680.js +1 -0
  1035. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-539411a7543bc680.js +1 -0
  1036. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-539411a7543bc680.js +1 -0
  1037. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-539411a7543bc680.js +1 -0
  1038. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-539411a7543bc680.js +1 -0
  1039. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-539411a7543bc680.js +1 -0
  1040. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-539411a7543bc680.js +1 -0
  1041. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-539411a7543bc680.js +1 -0
  1042. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-539411a7543bc680.js +1 -0
  1043. package/app/.next-cli-build/static/chunks/app/api/v1/route-539411a7543bc680.js +1 -0
  1044. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-539411a7543bc680.js +1 -0
  1045. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-539411a7543bc680.js +1 -0
  1046. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-539411a7543bc680.js +1 -0
  1047. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-539411a7543bc680.js +1 -0
  1048. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-539411a7543bc680.js +1 -0
  1049. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-539411a7543bc680.js +1 -0
  1050. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-539411a7543bc680.js +1 -0
  1051. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-539411a7543bc680.js +1 -0
  1052. package/app/.next-cli-build/static/chunks/app/api/version/route-539411a7543bc680.js +1 -0
  1053. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-539411a7543bc680.js +1 -0
  1054. package/app/.next-cli-build/static/chunks/app/api/version/update/route-539411a7543bc680.js +1 -0
  1055. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-539411a7543bc680.js +1 -0
  1056. package/app/.next-cli-build/static/chunks/app/page-539411a7543bc680.js +1 -0
  1057. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-539411a7543bc680.js +1 -0
  1058. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-539411a7543bc680.js +1 -0
  1059. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-539411a7543bc680.js +1 -0
  1060. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-539411a7543bc680.js +1 -0
  1061. package/app/.next-cli-build/static/css/b15914d61d9425a2.css +1 -0
  1062. package/app/CHANGELOG.md +55 -0
  1063. package/app/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +131 -0
  1064. package/app/node_modules/@aws/lambda-invoke-store/package.json +55 -0
  1065. package/app/node_modules/@aws-sdk/core/client.js +5 -0
  1066. package/app/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +984 -0
  1067. package/app/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +349 -0
  1068. package/app/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +2949 -0
  1069. package/app/node_modules/@aws-sdk/core/httpAuthSchemes.js +5 -0
  1070. package/app/node_modules/@aws-sdk/core/package.json +146 -0
  1071. package/app/node_modules/@aws-sdk/core/protocols.js +5 -0
  1072. package/app/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js +202 -0
  1073. package/app/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/loadCognitoIdentity-v413cIIq.js +4 -0
  1074. package/app/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +59 -0
  1075. package/app/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +39 -0
  1076. package/app/node_modules/@aws-sdk/credential-provider-env/package.json +63 -0
  1077. package/app/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +179 -0
  1078. package/app/node_modules/@aws-sdk/credential-provider-http/package.json +75 -0
  1079. package/app/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +229 -0
  1080. package/app/node_modules/@aws-sdk/credential-provider-ini/package.json +73 -0
  1081. package/app/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +290 -0
  1082. package/app/node_modules/@aws-sdk/credential-provider-login/package.json +66 -0
  1083. package/app/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +166 -0
  1084. package/app/node_modules/@aws-sdk/credential-provider-node/package.json +71 -0
  1085. package/app/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +76 -0
  1086. package/app/node_modules/@aws-sdk/credential-provider-process/package.json +63 -0
  1087. package/app/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +192 -0
  1088. package/app/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js +3 -0
  1089. package/app/node_modules/@aws-sdk/credential-provider-sso/package.json +67 -0
  1090. package/app/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +58 -0
  1091. package/app/node_modules/@aws-sdk/credential-provider-web-identity/package.json +71 -0
  1092. package/app/node_modules/@aws-sdk/credential-providers/dist-cjs/index.js +284 -0
  1093. package/app/node_modules/@aws-sdk/credential-providers/dist-cjs/loadSts-C4jOcYxJ.js +3 -0
  1094. package/app/node_modules/@aws-sdk/credential-providers/package.json +85 -0
  1095. package/app/node_modules/@aws-sdk/nested-clients/cognito-identity.js +5 -0
  1096. package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +616 -0
  1097. package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +590 -0
  1098. package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +468 -0
  1099. package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +674 -0
  1100. package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +878 -0
  1101. package/app/node_modules/@aws-sdk/nested-clients/package.json +121 -0
  1102. package/app/node_modules/@aws-sdk/nested-clients/signin.js +5 -0
  1103. package/app/node_modules/@aws-sdk/nested-clients/sso-oidc.js +5 -0
  1104. package/app/node_modules/@aws-sdk/nested-clients/sso.js +5 -0
  1105. package/app/node_modules/@aws-sdk/nested-clients/sts.js +5 -0
  1106. package/app/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +155 -0
  1107. package/app/node_modules/@aws-sdk/signature-v4-multi-region/package.json +60 -0
  1108. package/app/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +158 -0
  1109. package/app/node_modules/@aws-sdk/token-providers/package.json +69 -0
  1110. package/app/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +372 -0
  1111. package/app/node_modules/@aws-sdk/xml-builder/package.json +63 -0
  1112. package/app/node_modules/@smithy/core/cbor.js +5 -0
  1113. package/app/node_modules/@smithy/core/checksum.js +5 -0
  1114. package/app/node_modules/@smithy/core/client.js +5 -0
  1115. package/app/node_modules/@smithy/core/config.js +5 -0
  1116. package/app/node_modules/@smithy/core/dist-cjs/index.js +344 -0
  1117. package/app/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +2565 -0
  1118. package/app/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +577 -0
  1119. package/app/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +1156 -0
  1120. package/app/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +779 -0
  1121. package/app/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +878 -0
  1122. package/app/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +924 -0
  1123. package/app/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1058 -0
  1124. package/app/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +848 -0
  1125. package/app/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +701 -0
  1126. package/app/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +1765 -0
  1127. package/app/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +189 -0
  1128. package/app/node_modules/@smithy/core/endpoints.js +5 -0
  1129. package/app/node_modules/@smithy/core/event-streams.js +5 -0
  1130. package/app/node_modules/@smithy/core/package.json +258 -0
  1131. package/app/node_modules/@smithy/core/protocols.js +5 -0
  1132. package/app/node_modules/@smithy/core/retry.js +5 -0
  1133. package/app/node_modules/@smithy/core/schema.js +5 -0
  1134. package/app/node_modules/@smithy/core/serde.js +5 -0
  1135. package/app/node_modules/@smithy/core/transport.js +5 -0
  1136. package/app/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +370 -0
  1137. package/app/node_modules/@smithy/credential-provider-imds/package.json +57 -0
  1138. package/app/node_modules/@smithy/node-http-handler/dist-cjs/index.js +859 -0
  1139. package/app/node_modules/@smithy/node-http-handler/package.json +56 -0
  1140. package/app/node_modules/@smithy/signature-v4/dist-cjs/index.js +582 -0
  1141. package/app/node_modules/@smithy/signature-v4/package.json +53 -0
  1142. package/app/node_modules/@smithy/types/dist-cjs/index.js +96 -0
  1143. package/app/node_modules/@smithy/types/package.json +50 -0
  1144. package/app/node_modules/bowser/es5.js +1 -0
  1145. package/app/node_modules/bowser/package.json +93 -0
  1146. package/app/package.json +3 -1
  1147. package/app/public/CHANGELOG.md +55 -0
  1148. package/app/public/providers/bedrock.png +0 -0
  1149. package/app/server.js +1 -1
  1150. package/package.json +1 -1
  1151. package/app/.next-cli-build/server/chunks/1744.js +0 -221
  1152. package/app/.next-cli-build/server/chunks/2892.js +0 -1
  1153. package/app/.next-cli-build/server/chunks/3148.js +0 -51
  1154. package/app/.next-cli-build/server/chunks/6330.js +0 -1
  1155. package/app/.next-cli-build/server/chunks/6399.js +0 -300
  1156. package/app/.next-cli-build/server/chunks/6816.js +0 -40
  1157. package/app/.next-cli-build/server/chunks/7603.js +0 -1
  1158. package/app/.next-cli-build/server/chunks/880.js +0 -30
  1159. package/app/.next-cli-build/server/chunks/9217.js +0 -1
  1160. package/app/.next-cli-build/static/8dPzxL-dxwdChBbLdLZmV/_buildManifest.js +0 -1
  1161. package/app/.next-cli-build/static/chunks/1321-e4660a6601ad3949.js +0 -1
  1162. package/app/.next-cli-build/static/chunks/8105-9b78b79b9ec0bad7.js +0 -1
  1163. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-e43920245a9a5e37.js +0 -27
  1164. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-065d2cde7176b5fc.js +0 -1
  1165. package/app/.next-cli-build/static/chunks/app/_global-error/page-116cfb93931e646f.js +0 -1
  1166. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-116cfb93931e646f.js +0 -1
  1167. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-116cfb93931e646f.js +0 -1
  1168. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-116cfb93931e646f.js +0 -1
  1169. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-116cfb93931e646f.js +0 -1
  1170. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-116cfb93931e646f.js +0 -1
  1171. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-116cfb93931e646f.js +0 -1
  1172. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-116cfb93931e646f.js +0 -1
  1173. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-116cfb93931e646f.js +0 -1
  1174. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-116cfb93931e646f.js +0 -1
  1175. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-116cfb93931e646f.js +0 -1
  1176. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-116cfb93931e646f.js +0 -1
  1177. package/app/.next-cli-build/static/chunks/app/api/changelog/route-116cfb93931e646f.js +0 -1
  1178. package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-116cfb93931e646f.js +0 -1
  1179. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-116cfb93931e646f.js +0 -1
  1180. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-116cfb93931e646f.js +0 -1
  1181. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-116cfb93931e646f.js +0 -1
  1182. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-116cfb93931e646f.js +0 -1
  1183. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-116cfb93931e646f.js +0 -1
  1184. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-116cfb93931e646f.js +0 -1
  1185. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-116cfb93931e646f.js +0 -1
  1186. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-116cfb93931e646f.js +0 -1
  1187. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-116cfb93931e646f.js +0 -1
  1188. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-116cfb93931e646f.js +0 -1
  1189. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-116cfb93931e646f.js +0 -1
  1190. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-116cfb93931e646f.js +0 -1
  1191. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-116cfb93931e646f.js +0 -1
  1192. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-116cfb93931e646f.js +0 -1
  1193. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-116cfb93931e646f.js +0 -1
  1194. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-116cfb93931e646f.js +0 -1
  1195. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-116cfb93931e646f.js +0 -1
  1196. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-116cfb93931e646f.js +0 -1
  1197. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-116cfb93931e646f.js +0 -1
  1198. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-116cfb93931e646f.js +0 -1
  1199. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-116cfb93931e646f.js +0 -1
  1200. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-116cfb93931e646f.js +0 -1
  1201. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-116cfb93931e646f.js +0 -1
  1202. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-116cfb93931e646f.js +0 -1
  1203. package/app/.next-cli-build/static/chunks/app/api/combos/export/route-116cfb93931e646f.js +0 -1
  1204. package/app/.next-cli-build/static/chunks/app/api/combos/import/route-116cfb93931e646f.js +0 -1
  1205. package/app/.next-cli-build/static/chunks/app/api/combos/route-116cfb93931e646f.js +0 -1
  1206. package/app/.next-cli-build/static/chunks/app/api/combos/test/route-116cfb93931e646f.js +0 -1
  1207. package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-116cfb93931e646f.js +0 -1
  1208. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-116cfb93931e646f.js +0 -1
  1209. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-116cfb93931e646f.js +0 -1
  1210. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-116cfb93931e646f.js +0 -1
  1211. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-116cfb93931e646f.js +0 -1
  1212. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-116cfb93931e646f.js +0 -1
  1213. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-116cfb93931e646f.js +0 -1
  1214. package/app/.next-cli-build/static/chunks/app/api/health/route-116cfb93931e646f.js +0 -1
  1215. package/app/.next-cli-build/static/chunks/app/api/init/route-116cfb93931e646f.js +0 -1
  1216. package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-116cfb93931e646f.js +0 -1
  1217. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-116cfb93931e646f.js +0 -1
  1218. package/app/.next-cli-build/static/chunks/app/api/keys/route-116cfb93931e646f.js +0 -1
  1219. package/app/.next-cli-build/static/chunks/app/api/locale/route-116cfb93931e646f.js +0 -1
  1220. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-116cfb93931e646f.js +0 -1
  1221. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-116cfb93931e646f.js +0 -1
  1222. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/route-116cfb93931e646f.js +0 -1
  1223. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/test/route-116cfb93931e646f.js +0 -1
  1224. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/route-116cfb93931e646f.js +0 -1
  1225. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/[id]/route-116cfb93931e646f.js +0 -1
  1226. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/route-116cfb93931e646f.js +0 -1
  1227. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/message/route-116cfb93931e646f.js +0 -1
  1228. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/oauth/[id]/[action]/route-116cfb93931e646f.js +0 -1
  1229. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/route-116cfb93931e646f.js +0 -1
  1230. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/sse/route-116cfb93931e646f.js +0 -1
  1231. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-116cfb93931e646f.js +0 -1
  1232. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-116cfb93931e646f.js +0 -1
  1233. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-116cfb93931e646f.js +0 -1
  1234. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-116cfb93931e646f.js +0 -1
  1235. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-116cfb93931e646f.js +0 -1
  1236. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-116cfb93931e646f.js +0 -1
  1237. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-116cfb93931e646f.js +0 -1
  1238. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-116cfb93931e646f.js +0 -1
  1239. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-116cfb93931e646f.js +0 -1
  1240. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-116cfb93931e646f.js +0 -1
  1241. package/app/.next-cli-build/static/chunks/app/api/models/route-116cfb93931e646f.js +0 -1
  1242. package/app/.next-cli-build/static/chunks/app/api/models/test/route-116cfb93931e646f.js +0 -1
  1243. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-116cfb93931e646f.js +0 -1
  1244. package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-116cfb93931e646f.js +0 -1
  1245. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-116cfb93931e646f.js +0 -1
  1246. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-116cfb93931e646f.js +0 -1
  1247. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-116cfb93931e646f.js +0 -1
  1248. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-116cfb93931e646f.js +0 -1
  1249. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-116cfb93931e646f.js +0 -1
  1250. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-116cfb93931e646f.js +0 -1
  1251. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-116cfb93931e646f.js +0 -1
  1252. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-116cfb93931e646f.js +0 -1
  1253. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-116cfb93931e646f.js +0 -1
  1254. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-116cfb93931e646f.js +0 -1
  1255. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-116cfb93931e646f.js +0 -1
  1256. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-116cfb93931e646f.js +0 -1
  1257. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-116cfb93931e646f.js +0 -1
  1258. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-116cfb93931e646f.js +0 -1
  1259. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-116cfb93931e646f.js +0 -1
  1260. package/app/.next-cli-build/static/chunks/app/api/pricing/route-116cfb93931e646f.js +0 -1
  1261. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-116cfb93931e646f.js +0 -1
  1262. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-116cfb93931e646f.js +0 -1
  1263. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-116cfb93931e646f.js +0 -1
  1264. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-116cfb93931e646f.js +0 -1
  1265. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-116cfb93931e646f.js +0 -1
  1266. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-116cfb93931e646f.js +0 -1
  1267. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-116cfb93931e646f.js +0 -1
  1268. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-116cfb93931e646f.js +0 -1
  1269. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-116cfb93931e646f.js +0 -1
  1270. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-116cfb93931e646f.js +0 -1
  1271. package/app/.next-cli-build/static/chunks/app/api/providers/route-116cfb93931e646f.js +0 -1
  1272. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-116cfb93931e646f.js +0 -1
  1273. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-116cfb93931e646f.js +0 -1
  1274. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-116cfb93931e646f.js +0 -1
  1275. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-116cfb93931e646f.js +0 -1
  1276. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-116cfb93931e646f.js +0 -1
  1277. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-116cfb93931e646f.js +0 -1
  1278. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-116cfb93931e646f.js +0 -1
  1279. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-116cfb93931e646f.js +0 -1
  1280. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-116cfb93931e646f.js +0 -1
  1281. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-116cfb93931e646f.js +0 -1
  1282. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-116cfb93931e646f.js +0 -1
  1283. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-116cfb93931e646f.js +0 -1
  1284. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-116cfb93931e646f.js +0 -1
  1285. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-116cfb93931e646f.js +0 -1
  1286. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-116cfb93931e646f.js +0 -1
  1287. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-116cfb93931e646f.js +0 -1
  1288. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-116cfb93931e646f.js +0 -1
  1289. package/app/.next-cli-build/static/chunks/app/api/routing-health/route-116cfb93931e646f.js +0 -1
  1290. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-116cfb93931e646f.js +0 -1
  1291. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-116cfb93931e646f.js +0 -1
  1292. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-116cfb93931e646f.js +0 -1
  1293. package/app/.next-cli-build/static/chunks/app/api/settings/route-116cfb93931e646f.js +0 -1
  1294. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-116cfb93931e646f.js +0 -1
  1295. package/app/.next-cli-build/static/chunks/app/api/tags/route-116cfb93931e646f.js +0 -1
  1296. package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-116cfb93931e646f.js +0 -1
  1297. package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-116cfb93931e646f.js +0 -1
  1298. package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-116cfb93931e646f.js +0 -1
  1299. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-116cfb93931e646f.js +0 -1
  1300. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-116cfb93931e646f.js +0 -1
  1301. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-116cfb93931e646f.js +0 -1
  1302. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-116cfb93931e646f.js +0 -1
  1303. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-116cfb93931e646f.js +0 -1
  1304. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-116cfb93931e646f.js +0 -1
  1305. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-116cfb93931e646f.js +0 -1
  1306. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-116cfb93931e646f.js +0 -1
  1307. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-116cfb93931e646f.js +0 -1
  1308. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-116cfb93931e646f.js +0 -1
  1309. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-116cfb93931e646f.js +0 -1
  1310. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-116cfb93931e646f.js +0 -1
  1311. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-116cfb93931e646f.js +0 -1
  1312. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-116cfb93931e646f.js +0 -1
  1313. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-116cfb93931e646f.js +0 -1
  1314. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-116cfb93931e646f.js +0 -1
  1315. package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-116cfb93931e646f.js +0 -1
  1316. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-116cfb93931e646f.js +0 -1
  1317. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-116cfb93931e646f.js +0 -1
  1318. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-116cfb93931e646f.js +0 -1
  1319. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-116cfb93931e646f.js +0 -1
  1320. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-116cfb93931e646f.js +0 -1
  1321. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-116cfb93931e646f.js +0 -1
  1322. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-116cfb93931e646f.js +0 -1
  1323. package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-116cfb93931e646f.js +0 -1
  1324. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-116cfb93931e646f.js +0 -1
  1325. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-116cfb93931e646f.js +0 -1
  1326. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-116cfb93931e646f.js +0 -1
  1327. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-116cfb93931e646f.js +0 -1
  1328. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-116cfb93931e646f.js +0 -1
  1329. package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-116cfb93931e646f.js +0 -1
  1330. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-116cfb93931e646f.js +0 -1
  1331. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-116cfb93931e646f.js +0 -1
  1332. package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-116cfb93931e646f.js +0 -1
  1333. package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-116cfb93931e646f.js +0 -1
  1334. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-116cfb93931e646f.js +0 -1
  1335. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-116cfb93931e646f.js +0 -1
  1336. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-116cfb93931e646f.js +0 -1
  1337. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-116cfb93931e646f.js +0 -1
  1338. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-116cfb93931e646f.js +0 -1
  1339. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-116cfb93931e646f.js +0 -1
  1340. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-116cfb93931e646f.js +0 -1
  1341. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-116cfb93931e646f.js +0 -1
  1342. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-116cfb93931e646f.js +0 -1
  1343. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-116cfb93931e646f.js +0 -1
  1344. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-116cfb93931e646f.js +0 -1
  1345. package/app/.next-cli-build/static/chunks/app/api/v1/route-116cfb93931e646f.js +0 -1
  1346. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-116cfb93931e646f.js +0 -1
  1347. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-116cfb93931e646f.js +0 -1
  1348. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-116cfb93931e646f.js +0 -1
  1349. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-116cfb93931e646f.js +0 -1
  1350. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-116cfb93931e646f.js +0 -1
  1351. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-116cfb93931e646f.js +0 -1
  1352. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-116cfb93931e646f.js +0 -1
  1353. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-116cfb93931e646f.js +0 -1
  1354. package/app/.next-cli-build/static/chunks/app/api/version/route-116cfb93931e646f.js +0 -1
  1355. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-116cfb93931e646f.js +0 -1
  1356. package/app/.next-cli-build/static/chunks/app/api/version/update/route-116cfb93931e646f.js +0 -1
  1357. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-116cfb93931e646f.js +0 -1
  1358. package/app/.next-cli-build/static/chunks/app/page-116cfb93931e646f.js +0 -1
  1359. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-116cfb93931e646f.js +0 -1
  1360. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-116cfb93931e646f.js +0 -1
  1361. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-116cfb93931e646f.js +0 -1
  1362. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-116cfb93931e646f.js +0 -1
  1363. package/app/.next-cli-build/static/css/3eaed7d6a98582e3.css +0 -1
  1364. /package/app/.next-cli-build/static/{8dPzxL-dxwdChBbLdLZmV → ZZzFJY8XwYUO3V74IjHEa}/_ssgManifest.js +0 -0
@@ -0,0 +1,2949 @@
1
+ const { SmithyRpcV2CborProtocol, loadSmithyRpcV2CborErrorCode } = require("@smithy/core/cbor");
2
+ const { TypeRegistry, NormalizedSchema, deref } = require("@smithy/core/schema");
3
+ const { decorateServiceException, getValueFromTextNode } = require("@smithy/core/client");
4
+ const { collectBody, determineTimestampFormat, RpcProtocol, HttpBindingProtocol, HttpInterceptingShapeSerializer, HttpInterceptingShapeDeserializer, FromStringShapeDeserializer, extendedEncodeURIComponent } = require("@smithy/core/protocols");
5
+ const { NumericValue, toUtf8, fromBase64, LazyJsonString, parseEpochTimestamp, parseRfc7231DateTime, parseRfc3339DateTimeWithOffset, generateIdempotencyToken, toBase64, dateToUtcString, expectUnion } = require("@smithy/core/serde");
6
+ const { parseXML, XmlNode, XmlText } = require("@aws-sdk/xml-builder");
7
+
8
+ class ProtocolLib {
9
+ queryCompat;
10
+ errorRegistry;
11
+ constructor(queryCompat = false) {
12
+ this.queryCompat = queryCompat;
13
+ }
14
+ resolveRestContentType(defaultContentType, inputSchema) {
15
+ const members = inputSchema.getMemberSchemas();
16
+ const httpPayloadMember = Object.values(members).find((m) => {
17
+ return !!m.getMergedTraits().httpPayload;
18
+ });
19
+ if (httpPayloadMember) {
20
+ const mediaType = httpPayloadMember.getMergedTraits().mediaType;
21
+ if (mediaType) {
22
+ return mediaType;
23
+ }
24
+ else if (httpPayloadMember.isStringSchema()) {
25
+ return "text/plain";
26
+ }
27
+ else if (httpPayloadMember.isBlobSchema()) {
28
+ return "application/octet-stream";
29
+ }
30
+ else {
31
+ return defaultContentType;
32
+ }
33
+ }
34
+ else if (!inputSchema.isUnitSchema()) {
35
+ const hasBody = Object.values(members).find((m) => {
36
+ const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
37
+ const noPrefixHeaders = httpPrefixHeaders === void 0;
38
+ return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && noPrefixHeaders;
39
+ });
40
+ if (hasBody) {
41
+ return defaultContentType;
42
+ }
43
+ }
44
+ }
45
+ async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) {
46
+ let errorName = errorIdentifier;
47
+ if (errorIdentifier.includes("#")) {
48
+ [, errorName] = errorIdentifier.split("#");
49
+ }
50
+ const errorMetadata = {
51
+ $metadata: metadata,
52
+ $fault: response.statusCode < 500 ? "client" : "server",
53
+ };
54
+ if (!this.errorRegistry) {
55
+ throw new Error("@aws-sdk/core/protocols - error handler not initialized.");
56
+ }
57
+ try {
58
+ const errorSchema = getErrorSchema?.(this.errorRegistry, errorName) ??
59
+ this.errorRegistry.getSchema(errorIdentifier);
60
+ return { errorSchema, errorMetadata };
61
+ }
62
+ catch (e) {
63
+ dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
64
+ const synthetic = this.errorRegistry;
65
+ const baseExceptionSchema = synthetic.getBaseException();
66
+ if (baseExceptionSchema) {
67
+ const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema) ?? Error;
68
+ throw this.decorateServiceException(Object.assign(new ErrorCtor({ name: errorName }), errorMetadata), dataObject);
69
+ }
70
+ const d = dataObject;
71
+ const message = d?.message ?? d?.Message ?? d?.Error?.Message ?? d?.Error?.message;
72
+ throw this.decorateServiceException(Object.assign(new Error(message), {
73
+ name: errorName,
74
+ }, errorMetadata), dataObject);
75
+ }
76
+ }
77
+ compose(composite, errorIdentifier, defaultNamespace) {
78
+ let namespace = defaultNamespace;
79
+ if (errorIdentifier.includes("#")) {
80
+ [namespace] = errorIdentifier.split("#");
81
+ }
82
+ const staticRegistry = TypeRegistry.for(namespace);
83
+ const defaultSyntheticRegistry = TypeRegistry.for("smithy.ts.sdk.synthetic." + defaultNamespace);
84
+ composite.copyFrom(staticRegistry);
85
+ composite.copyFrom(defaultSyntheticRegistry);
86
+ this.errorRegistry = composite;
87
+ }
88
+ decorateServiceException(exception, additions = {}) {
89
+ if (this.queryCompat) {
90
+ const msg = exception.Message ?? additions.Message;
91
+ const error = decorateServiceException(exception, additions);
92
+ if (msg) {
93
+ error.message = msg;
94
+ }
95
+ const errorObj = error.Error ?? {};
96
+ errorObj.Type = error.Error?.Type;
97
+ errorObj.Code = error.Error?.Code;
98
+ errorObj.Message = error.Error?.message ?? error.Error?.Message ?? msg;
99
+ error.Error = errorObj;
100
+ const reqId = error.$metadata.requestId;
101
+ if (reqId) {
102
+ error.RequestId = reqId;
103
+ }
104
+ return error;
105
+ }
106
+ return decorateServiceException(exception, additions);
107
+ }
108
+ setQueryCompatError(output, response) {
109
+ const queryErrorHeader = response.headers?.["x-amzn-query-error"];
110
+ if (output !== undefined && queryErrorHeader != null) {
111
+ const [Code, Type] = queryErrorHeader.split(";");
112
+ const keys = Object.keys(output);
113
+ const Error = {
114
+ Code,
115
+ Type,
116
+ };
117
+ output.Code = Code;
118
+ output.Type = Type;
119
+ for (let i = 0; i < keys.length; i++) {
120
+ const k = keys[i];
121
+ Error[k === "message" ? "Message" : k] = output[k];
122
+ }
123
+ delete Error.__type;
124
+ output.Error = Error;
125
+ }
126
+ }
127
+ queryCompatOutput(queryCompatErrorData, errorData) {
128
+ if (queryCompatErrorData.Error) {
129
+ errorData.Error = queryCompatErrorData.Error;
130
+ }
131
+ if (queryCompatErrorData.Type) {
132
+ errorData.Type = queryCompatErrorData.Type;
133
+ }
134
+ if (queryCompatErrorData.Code) {
135
+ errorData.Code = queryCompatErrorData.Code;
136
+ }
137
+ }
138
+ findQueryCompatibleError(registry, errorName) {
139
+ try {
140
+ return registry.getSchema(errorName);
141
+ }
142
+ catch (e) {
143
+ return registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName);
144
+ }
145
+ }
146
+ }
147
+
148
+ class AwsSmithyRpcV2CborProtocol extends SmithyRpcV2CborProtocol {
149
+ awsQueryCompatible;
150
+ mixin;
151
+ constructor({ defaultNamespace, errorTypeRegistries, awsQueryCompatible, }) {
152
+ super({ defaultNamespace, errorTypeRegistries });
153
+ this.awsQueryCompatible = !!awsQueryCompatible;
154
+ this.mixin = new ProtocolLib(this.awsQueryCompatible);
155
+ }
156
+ async serializeRequest(operationSchema, input, context) {
157
+ const request = await super.serializeRequest(operationSchema, input, context);
158
+ if (this.awsQueryCompatible) {
159
+ request.headers["x-amzn-query-mode"] = "true";
160
+ }
161
+ return request;
162
+ }
163
+ async handleError(operationSchema, context, response, dataObject, metadata) {
164
+ if (this.awsQueryCompatible) {
165
+ this.mixin.setQueryCompatError(dataObject, response);
166
+ }
167
+ const errorName = (() => {
168
+ const compatHeader = response.headers["x-amzn-query-error"];
169
+ if (compatHeader && this.awsQueryCompatible) {
170
+ return compatHeader.split(";")[0];
171
+ }
172
+ return loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown";
173
+ })();
174
+ this.mixin.compose(this.compositeErrorRegistry, errorName, this.options.defaultNamespace);
175
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
176
+ const ns = NormalizedSchema.of(errorSchema);
177
+ const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
178
+ const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
179
+ const exception = new ErrorCtor({});
180
+ const output = {};
181
+ for (const [name, member] of ns.structIterator()) {
182
+ if (dataObject[name] != null) {
183
+ output[name] = this.deserializer.readValue(member, dataObject[name]);
184
+ }
185
+ }
186
+ if (this.awsQueryCompatible) {
187
+ this.mixin.queryCompatOutput(dataObject, output);
188
+ }
189
+ throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
190
+ $fault: ns.getMergedTraits().error,
191
+ message,
192
+ }, output), dataObject);
193
+ }
194
+ }
195
+
196
+ class SerdeContextConfig {
197
+ serdeContext;
198
+ setSerdeContext(serdeContext) {
199
+ this.serdeContext = serdeContext;
200
+ }
201
+ }
202
+
203
+ class UnionSerde {
204
+ from;
205
+ to;
206
+ keys;
207
+ constructor(from, to) {
208
+ this.from = from;
209
+ this.to = to;
210
+ const keys = Object.keys(this.from);
211
+ const set = new Set(keys);
212
+ set.delete("__type");
213
+ this.keys = set;
214
+ }
215
+ mark(key) {
216
+ this.keys.delete(key);
217
+ }
218
+ hasUnknown() {
219
+ return this.keys.size === 1 && Object.keys(this.to).length === 0;
220
+ }
221
+ writeUnknown() {
222
+ if (this.hasUnknown()) {
223
+ const k = this.keys.values().next().value;
224
+ const v = this.from[k];
225
+ this.to.$unknown = [k, v];
226
+ }
227
+ }
228
+ }
229
+
230
+ let canParseBuffer;
231
+ function detectBufferParsing() {
232
+ if (canParseBuffer === undefined) {
233
+ try {
234
+ if (typeof Buffer !== "function") {
235
+ canParseBuffer = false;
236
+ }
237
+ else {
238
+ const result = JSON.parse(Buffer.from([0x7b, 0x7d]));
239
+ canParseBuffer = result !== null && typeof result === "object";
240
+ }
241
+ }
242
+ catch {
243
+ canParseBuffer = false;
244
+ }
245
+ }
246
+ return canParseBuffer;
247
+ }
248
+
249
+ function jsonReviver(key, value, context) {
250
+ if (context?.source) {
251
+ const numericString = context.source;
252
+ if (typeof value === "number") {
253
+ const inSafeRange = value <= Number.MAX_SAFE_INTEGER && value >= Number.MIN_SAFE_INTEGER;
254
+ if (inSafeRange) {
255
+ if (isRepresentable(numericString, value)) {
256
+ return value;
257
+ }
258
+ return new NumericValue(numericString, "bigDecimal");
259
+ }
260
+ else {
261
+ if (isFractionalBigNumeric(numericString)) {
262
+ return new NumericValue(numericString, "bigDecimal");
263
+ }
264
+ if (/[eE]/.test(numericString)) {
265
+ return expandExponentToBigInt(numericString);
266
+ }
267
+ return BigInt(numericString);
268
+ }
269
+ }
270
+ }
271
+ return value;
272
+ }
273
+ function isFractionalBigNumeric(s) {
274
+ const dotIndex = s.indexOf(".");
275
+ if (dotIndex === -1) {
276
+ return false;
277
+ }
278
+ const eIndex = s.search(/[eE]/);
279
+ if (eIndex === -1) {
280
+ return true;
281
+ }
282
+ const fracDigits = eIndex - dotIndex - 1;
283
+ const exp = parseInt(s.slice(eIndex + 1), 10);
284
+ return exp < fracDigits;
285
+ }
286
+ function isRepresentable(numericString, value) {
287
+ if (numericString === String(value)) {
288
+ return true;
289
+ }
290
+ if (Object.is(value, -0)) {
291
+ return true;
292
+ }
293
+ if (/[eE]/.test(numericString)) {
294
+ return expandToDecimal(numericString) === expandToDecimal(String(value));
295
+ }
296
+ const normalized = numericString.replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
297
+ const canonical = String(value);
298
+ if (normalized === canonical) {
299
+ return true;
300
+ }
301
+ if (/[eE]/.test(canonical)) {
302
+ return normalized === expandToDecimal(canonical);
303
+ }
304
+ return false;
305
+ }
306
+ function expandToDecimal(s) {
307
+ const negative = s.startsWith("-");
308
+ const abs = negative ? s.slice(1) : s;
309
+ const eIndex = abs.search(/[eE]/);
310
+ let result;
311
+ if (eIndex === -1) {
312
+ result = abs;
313
+ }
314
+ else {
315
+ const exp = parseInt(abs.slice(eIndex + 1), 10);
316
+ const mantissa = abs.slice(0, eIndex);
317
+ const dotIndex = mantissa.indexOf(".");
318
+ let digits;
319
+ let intLen;
320
+ if (dotIndex === -1) {
321
+ digits = mantissa;
322
+ intLen = mantissa.length;
323
+ }
324
+ else {
325
+ digits = mantissa.slice(0, dotIndex) + mantissa.slice(dotIndex + 1);
326
+ intLen = dotIndex;
327
+ }
328
+ digits = digits.replace(/0+$/, "") || "0";
329
+ const newDotPos = intLen + exp;
330
+ if (digits === "0") {
331
+ result = "0";
332
+ }
333
+ else if (newDotPos <= 0) {
334
+ result = "0." + "0".repeat(-newDotPos) + digits;
335
+ }
336
+ else if (newDotPos >= digits.length) {
337
+ result = digits + "0".repeat(newDotPos - digits.length);
338
+ }
339
+ else {
340
+ result = digits.slice(0, newDotPos) + "." + digits.slice(newDotPos);
341
+ }
342
+ }
343
+ if (result.includes(".")) {
344
+ result = result.replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
345
+ }
346
+ return (negative ? "-" : "") + result;
347
+ }
348
+ function expandExponentToBigInt(s) {
349
+ const eIndex = s.search(/[eE]/);
350
+ const exp = parseInt(s.slice(eIndex + 1), 10);
351
+ const negative = s.startsWith("-");
352
+ const mantissa = s.slice(negative ? 1 : 0, eIndex);
353
+ const dotIndex = mantissa.indexOf(".");
354
+ let digits;
355
+ let shift;
356
+ if (dotIndex === -1) {
357
+ digits = mantissa;
358
+ shift = exp;
359
+ }
360
+ else {
361
+ digits = mantissa.slice(0, dotIndex) + mantissa.slice(dotIndex + 1);
362
+ const fracDigits = mantissa.length - dotIndex - 1;
363
+ shift = exp - fracDigits;
364
+ }
365
+ digits = digits.replace(/0+$/, "") || "0";
366
+ const result = BigInt(digits) * 10n ** BigInt(shift + (mantissa.replace(".", "").length - digits.length));
367
+ return negative ? -result : result;
368
+ }
369
+
370
+ const REVIVER_SYMBOL = Symbol.for("@aws-sdk/reviver");
371
+ function needsReviver(schema) {
372
+ const ns = NormalizedSchema.of(schema);
373
+ const raw = ns.getSchema();
374
+ if (Array.isArray(raw) && ns.isStructSchema()) {
375
+ if (REVIVER_SYMBOL in raw) {
376
+ return raw[REVIVER_SYMBOL];
377
+ }
378
+ const result = _check(ns, new Set());
379
+ raw[REVIVER_SYMBOL] = result;
380
+ return result;
381
+ }
382
+ return _check(ns, new Set());
383
+ }
384
+ function _check(ns, seen) {
385
+ const raw = ns.getSchema();
386
+ if (seen.has(raw)) {
387
+ return false;
388
+ }
389
+ seen.add(raw);
390
+ if (ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
391
+ return true;
392
+ }
393
+ if (ns.isStructSchema()) {
394
+ for (const [, memberSchema] of ns.structIterator()) {
395
+ if (_check(memberSchema, seen)) {
396
+ return true;
397
+ }
398
+ }
399
+ }
400
+ else if (ns.isListSchema() || ns.isMapSchema()) {
401
+ if (_check(ns.getValueSchema(), seen)) {
402
+ return true;
403
+ }
404
+ }
405
+ else if (ns.isDocumentSchema()) {
406
+ return true;
407
+ }
408
+ return false;
409
+ }
410
+
411
+ const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? toUtf8)(body));
412
+
413
+ async function parseJsonBody(streamBody, context, schema) {
414
+ let parsingInput;
415
+ if (detectBufferParsing() && typeof streamBody?.[Symbol.asyncIterator] === "function") {
416
+ const buffer = await collectBody(streamBody, context);
417
+ if (typeof Buffer === "function") {
418
+ if (Buffer.isBuffer(buffer)) {
419
+ parsingInput = buffer;
420
+ }
421
+ else {
422
+ parsingInput = Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength);
423
+ }
424
+ }
425
+ }
426
+ if (!parsingInput) {
427
+ parsingInput = await collectBodyString(streamBody, context);
428
+ }
429
+ if (parsingInput.length === 0) {
430
+ return {};
431
+ }
432
+ const reviver = schema && needsReviver(schema) ? jsonReviver : undefined;
433
+ try {
434
+ return JSON.parse(parsingInput, reviver);
435
+ }
436
+ catch (e) {
437
+ if (e?.name === "SyntaxError") {
438
+ Object.defineProperty(e, "$responseBodyText", {
439
+ value: typeof parsingInput === "string" ? parsingInput : parsingInput.toString("utf8"),
440
+ });
441
+ }
442
+ throw e;
443
+ }
444
+ }
445
+ const parseJsonErrorBody = async (errorBody, context) => {
446
+ const value = await parseJsonBody(errorBody, context);
447
+ value.message = value.message ?? value.Message;
448
+ return value;
449
+ };
450
+ const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
451
+ const sanitizeErrorCode = (rawValue) => {
452
+ let cleanValue = rawValue;
453
+ if (typeof cleanValue === "number") {
454
+ cleanValue = cleanValue.toString();
455
+ }
456
+ if (cleanValue.indexOf(",") >= 0) {
457
+ cleanValue = cleanValue.split(",")[0];
458
+ }
459
+ if (cleanValue.indexOf(":") >= 0) {
460
+ cleanValue = cleanValue.split(":")[0];
461
+ }
462
+ if (cleanValue.indexOf("#") >= 0) {
463
+ cleanValue = cleanValue.split("#")[1];
464
+ }
465
+ return cleanValue;
466
+ };
467
+ const loadRestJsonErrorCode = (output, data) => {
468
+ return loadErrorCode(output, data, ["header", "code", "type"]);
469
+ };
470
+ const loadJsonRpcErrorCode = (output, data, queryCompat = false) => {
471
+ return loadErrorCode(output, data, queryCompat ? ["code", "header", "type"] : ["type", "code", "header"]);
472
+ };
473
+ const loadErrorCode = ({ headers }, data, order) => {
474
+ while (order.length > 0) {
475
+ const location = order.shift();
476
+ switch (location) {
477
+ case "header":
478
+ const headerKey = findKey(headers ?? {}, "x-amzn-errortype");
479
+ if (headerKey !== undefined) {
480
+ return sanitizeErrorCode(headers[headerKey]);
481
+ }
482
+ break;
483
+ case "code":
484
+ const codeKey = findKey(data ?? {}, "code");
485
+ if (codeKey && data[codeKey] !== undefined) {
486
+ return sanitizeErrorCode(data[codeKey]);
487
+ }
488
+ break;
489
+ case "type":
490
+ if (data?.__type !== undefined) {
491
+ return sanitizeErrorCode(data.__type);
492
+ }
493
+ break;
494
+ }
495
+ }
496
+ };
497
+
498
+ function writeKey(obj) {
499
+ Object.defineProperty(obj, "__proto__", { value: undefined, writable: true, enumerable: true, configurable: true });
500
+ }
501
+
502
+ class JsonShapeDeserializer2 extends SerdeContextConfig {
503
+ settings;
504
+ constructor(settings) {
505
+ super();
506
+ this.settings = settings;
507
+ }
508
+ async read(schema, data) {
509
+ const reviver = needsReviver(schema) ? jsonReviver : undefined;
510
+ let parsed;
511
+ if (typeof data === "string") {
512
+ if (data.length === 0) {
513
+ return {};
514
+ }
515
+ parsed = JSON.parse(data, reviver);
516
+ }
517
+ else if (data instanceof Uint8Array && detectBufferParsing()) {
518
+ if (data.byteLength === 0) {
519
+ return {};
520
+ }
521
+ const buf = Buffer.isBuffer(data) ? data : Buffer.from(data.buffer, data.byteOffset, data.byteLength);
522
+ parsed = JSON.parse(buf, reviver);
523
+ }
524
+ else {
525
+ parsed = await parseJsonBody(data, this.serdeContext, schema);
526
+ }
527
+ return this._read(schema, parsed);
528
+ }
529
+ readObject(schema, data) {
530
+ return this._read(schema, data);
531
+ }
532
+ _read(schema, value) {
533
+ const isObject = value !== null && typeof value === "object";
534
+ const ns = NormalizedSchema.of(schema);
535
+ if (isObject) {
536
+ if (ns.isStructSchema()) {
537
+ return this._readStruct(ns, value);
538
+ }
539
+ if (Array.isArray(value) && ns.isListSchema()) {
540
+ const listMember = ns.getValueSchema();
541
+ if (this.needsTransform(listMember)) {
542
+ for (let i = 0; i < value.length; ++i) {
543
+ value[i] = this._read(listMember, value[i]);
544
+ }
545
+ }
546
+ return value;
547
+ }
548
+ if (ns.isMapSchema()) {
549
+ const mapMember = ns.getValueSchema();
550
+ const map = value;
551
+ if (this.needsTransform(mapMember)) {
552
+ for (const k in map) {
553
+ if (k === "__proto__") {
554
+ writeKey(map);
555
+ }
556
+ map[k] = this._read(mapMember, map[k]);
557
+ }
558
+ }
559
+ return map;
560
+ }
561
+ }
562
+ if (ns.isBlobSchema() && typeof value === "string") {
563
+ return fromBase64(value);
564
+ }
565
+ const mediaType = ns.getMergedTraits().mediaType;
566
+ if (ns.isStringSchema() && typeof value === "string" && mediaType) {
567
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
568
+ if (isJson) {
569
+ return LazyJsonString.from(value);
570
+ }
571
+ return value;
572
+ }
573
+ if (ns.isTimestampSchema() && value != null) {
574
+ const format = determineTimestampFormat(ns, this.settings);
575
+ switch (format) {
576
+ case 5:
577
+ return parseRfc3339DateTimeWithOffset(value);
578
+ case 6:
579
+ return parseRfc7231DateTime(value);
580
+ case 7:
581
+ return parseEpochTimestamp(value);
582
+ default:
583
+ console.warn("Missing timestamp format, parsing value with Date constructor:", value);
584
+ return new Date(value);
585
+ }
586
+ }
587
+ if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
588
+ return BigInt(value);
589
+ }
590
+ if (ns.isBigDecimalSchema() && value != undefined) {
591
+ if (value instanceof NumericValue) {
592
+ return value;
593
+ }
594
+ const untyped = value;
595
+ if (untyped.type === "bigDecimal" && "string" in untyped) {
596
+ return new NumericValue(untyped.string, untyped.type);
597
+ }
598
+ return new NumericValue(String(value), "bigDecimal");
599
+ }
600
+ if (ns.isNumericSchema() && typeof value === "string") {
601
+ switch (value) {
602
+ case "Infinity":
603
+ return Infinity;
604
+ case "-Infinity":
605
+ return -Infinity;
606
+ case "NaN":
607
+ return NaN;
608
+ }
609
+ return value;
610
+ }
611
+ if (ns.isDocumentSchema()) {
612
+ if (isObject) {
613
+ if (Array.isArray(value)) {
614
+ for (let i = 0; i < value.length; ++i) {
615
+ const v = value[i];
616
+ if (!(v instanceof NumericValue)) {
617
+ value[i] = this._read(ns, v);
618
+ }
619
+ }
620
+ }
621
+ else {
622
+ const doc = value;
623
+ for (const k in doc) {
624
+ if (k === "__proto__") {
625
+ writeKey(doc);
626
+ }
627
+ const v = doc[k];
628
+ if (!(v instanceof NumericValue)) {
629
+ doc[k] = this._read(ns, v);
630
+ }
631
+ }
632
+ }
633
+ }
634
+ }
635
+ return value;
636
+ }
637
+ _readStruct(ns, record) {
638
+ const union = ns.isUnionSchema();
639
+ const out = {};
640
+ let nameMap;
641
+ const hasType = typeof record.__type === "string";
642
+ const { jsonName } = this.settings;
643
+ if (jsonName && hasType) {
644
+ nameMap = {};
645
+ }
646
+ let unionSerde;
647
+ if (union) {
648
+ unionSerde = new UnionSerde(record, out);
649
+ }
650
+ for (const [memberName, memberSchema] of ns.structIterator()) {
651
+ let fromKey = memberName;
652
+ if (jsonName) {
653
+ fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
654
+ if (hasType) {
655
+ nameMap[fromKey] = memberName;
656
+ }
657
+ }
658
+ if (union) {
659
+ unionSerde.mark(fromKey);
660
+ }
661
+ if (record[fromKey] != null) {
662
+ out[memberName] = this._read(memberSchema, record[fromKey]);
663
+ }
664
+ }
665
+ if (union) {
666
+ unionSerde.writeUnknown();
667
+ }
668
+ else if (hasType) {
669
+ for (const k in record) {
670
+ const v = record[k];
671
+ const t = jsonName ? (nameMap[k] ?? k) : k;
672
+ if (!(t in out)) {
673
+ out[t] = v;
674
+ }
675
+ }
676
+ }
677
+ return out;
678
+ }
679
+ needsTransform(ns) {
680
+ if (ns.isBlobSchema() || ns.isTimestampSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
681
+ return true;
682
+ }
683
+ if (ns.isDocumentSchema() || ns.isStructSchema() || ns.isListSchema() || ns.isMapSchema()) {
684
+ return true;
685
+ }
686
+ if (ns.isStringSchema() && ns.getMergedTraits().mediaType) {
687
+ return true;
688
+ }
689
+ return false;
690
+ }
691
+ }
692
+
693
+ class JsonBytesStringAdapter extends Uint8Array {
694
+ string = null;
695
+ static allocUnsafe(bytes) {
696
+ if (typeof Buffer === "function") {
697
+ const buffer = Buffer.allocUnsafe(bytes);
698
+ return new JsonBytesStringAdapter(buffer.buffer, buffer.byteOffset, buffer.byteLength);
699
+ }
700
+ return new JsonBytesStringAdapter(bytes);
701
+ }
702
+ toString() {
703
+ return this.s();
704
+ }
705
+ valueOf() {
706
+ return this.s();
707
+ }
708
+ includes(searchString, position) {
709
+ if (typeof searchString === "string") {
710
+ return this.s().includes(searchString, position);
711
+ }
712
+ return Uint8Array.prototype.includes.call(this, searchString, position);
713
+ }
714
+ indexOf(searchString, position) {
715
+ if (typeof searchString === "string") {
716
+ return this.s().indexOf(searchString, position);
717
+ }
718
+ return Uint8Array.prototype.indexOf.call(this, searchString, position);
719
+ }
720
+ lastIndexOf(searchString, position) {
721
+ if (typeof searchString === "string") {
722
+ return this.s().lastIndexOf(searchString, position);
723
+ }
724
+ const fn = Uint8Array.prototype.lastIndexOf;
725
+ if (position !== undefined) {
726
+ return fn.call(this, searchString, position);
727
+ }
728
+ return fn.call(this, searchString);
729
+ }
730
+ startsWith(searchString, position) {
731
+ return this.s().startsWith(searchString, position);
732
+ }
733
+ endsWith(searchString, endPosition) {
734
+ return this.s().endsWith(searchString, endPosition);
735
+ }
736
+ match(regexp) {
737
+ return this.s().match(regexp);
738
+ }
739
+ replace(searchValue, replaceValue) {
740
+ return this.s().replace(searchValue, replaceValue);
741
+ }
742
+ search(regexp) {
743
+ return this.s().search(regexp);
744
+ }
745
+ split(separator, limit) {
746
+ return this.s().split(separator, limit);
747
+ }
748
+ substring(start, end) {
749
+ return this.s().substring(start, end);
750
+ }
751
+ trim() {
752
+ return this.s().trim();
753
+ }
754
+ trimStart() {
755
+ return this.s().trimStart();
756
+ }
757
+ trimEnd() {
758
+ return this.s().trimEnd();
759
+ }
760
+ charAt(pos) {
761
+ return this.s().charAt(pos);
762
+ }
763
+ charCodeAt(index) {
764
+ return this.s().charCodeAt(index);
765
+ }
766
+ padStart(maxLength, fillString) {
767
+ return this.s().padStart(maxLength, fillString);
768
+ }
769
+ padEnd(maxLength, fillString) {
770
+ return this.s().padEnd(maxLength, fillString);
771
+ }
772
+ repeat(count) {
773
+ return this.s().repeat(count);
774
+ }
775
+ toUpperCase() {
776
+ return this.s().toUpperCase();
777
+ }
778
+ toLowerCase() {
779
+ return this.s().toLowerCase();
780
+ }
781
+ s() {
782
+ if (this.string == null) {
783
+ const n = Date.now();
784
+ if (n > warned + 60_000) {
785
+ console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. " +
786
+ "It has been automatically converted to string. In a future version this will throw an error.");
787
+ warned = n;
788
+ }
789
+ this.string = toUtf8(this);
790
+ }
791
+ return this.string;
792
+ }
793
+ }
794
+ var warned = 0;
795
+
796
+ const encoder = new TextEncoder();
797
+ const OPEN_BRACE = 0x7b;
798
+ const CLOSE_BRACE = 0x7d;
799
+ const OPEN_BRACKET = 0x5b;
800
+ const CLOSE_BRACKET = 0x5d;
801
+ const QUOTE = 0x22;
802
+ const COLON = 0x3a;
803
+ const COMMA = 0x2c;
804
+ const BACKSLASH = 0x5c;
805
+ const TRUE = new Uint8Array([0x74, 0x72, 0x75, 0x65]);
806
+ const FALSE = new Uint8Array([0x66, 0x61, 0x6c, 0x73, 0x65]);
807
+ const NULL = new Uint8Array([0x6e, 0x75, 0x6c, 0x6c]);
808
+ const ESCAPE_TABLE = new Array(128).fill(null);
809
+ ESCAPE_TABLE[0x08] = "b";
810
+ ESCAPE_TABLE[0x09] = "t";
811
+ ESCAPE_TABLE[0x0a] = "n";
812
+ ESCAPE_TABLE[0x0c] = "f";
813
+ ESCAPE_TABLE[0x0d] = "r";
814
+ ESCAPE_TABLE[0x22] = '"';
815
+ ESCAPE_TABLE[0x5c] = "\\";
816
+ for (let i = 0; i < 0x20; i++) {
817
+ if (ESCAPE_TABLE[i] === null) {
818
+ ESCAPE_TABLE[i] = "u00" + i.toString(16).padStart(2, "0");
819
+ }
820
+ }
821
+ const INITIAL_BUFFER_SIZE = 2048;
822
+ function alloc(size) {
823
+ return JsonBytesStringAdapter.allocUnsafe(size);
824
+ }
825
+ class JsonShapeSerializer2 extends SerdeContextConfig {
826
+ settings;
827
+ json;
828
+ i = 0;
829
+ rootSchema;
830
+ rawValue;
831
+ passthrough = false;
832
+ constructor(settings) {
833
+ super();
834
+ this.settings = settings;
835
+ this.json = alloc(INITIAL_BUFFER_SIZE);
836
+ }
837
+ write(schema, value) {
838
+ this.i = 0;
839
+ this.rawValue = value;
840
+ this.rootSchema = NormalizedSchema.of(schema);
841
+ this.passthrough = this.rootSchema.isBlobSchema() || this.rootSchema.isStringSchema();
842
+ if (!this.passthrough) {
843
+ this.writeValue(this.rootSchema, value, undefined);
844
+ }
845
+ }
846
+ writeDiscriminatedDocument(schema, value) {
847
+ this.i = 0;
848
+ this.rootSchema = NormalizedSchema.of(schema);
849
+ const ns = this.rootSchema;
850
+ if (ns.isStructSchema() && value != null && typeof value === "object") {
851
+ this.writeValue(ns, value, undefined);
852
+ const prefix = `"__type":"${ns.getName(true) ?? "Unknown"}",`;
853
+ const z = prefix.length;
854
+ this.ensure(z);
855
+ this.json.copyWithin(1 + z, 1, this.i);
856
+ encoder.encodeInto(prefix, this.json.subarray(1));
857
+ this.i += z;
858
+ }
859
+ else {
860
+ this.writeValue(ns, value, undefined);
861
+ }
862
+ }
863
+ flush() {
864
+ this.rootSchema = undefined;
865
+ const finalPosition = this.i;
866
+ this.i = 0;
867
+ const raw = this.rawValue;
868
+ this.rawValue = undefined;
869
+ if (finalPosition === 0) {
870
+ return raw;
871
+ }
872
+ const result = this.json.subarray(0, finalPosition);
873
+ this.json = alloc(INITIAL_BUFFER_SIZE);
874
+ return result;
875
+ }
876
+ ensure(byteCount) {
877
+ const { i, json } = this;
878
+ if (i + byteCount > json.length) {
879
+ let newSize = json.length * 2;
880
+ while (newSize < i + byteCount) {
881
+ newSize *= 2;
882
+ }
883
+ const next = alloc(newSize);
884
+ next.set(this.json);
885
+ this.json = next;
886
+ }
887
+ }
888
+ writeAscii(s) {
889
+ const z = s.length;
890
+ this.ensure(z);
891
+ let { i, json } = this;
892
+ for (let j = 0; j < z; ++j) {
893
+ json[i] = s.charCodeAt(j);
894
+ i += 1;
895
+ }
896
+ this.i = i;
897
+ }
898
+ writeAsciiQuoted(s) {
899
+ const z = s.length;
900
+ this.ensure(z + 4);
901
+ let { json, i } = this;
902
+ json[i++] = QUOTE;
903
+ for (let j = 0; j < z; ++j) {
904
+ json[i++] = s.charCodeAt(j);
905
+ }
906
+ json[i++] = QUOTE;
907
+ this.i = i;
908
+ }
909
+ writeJsonString(s) {
910
+ this.ensure(s.length * 3 + 2);
911
+ this.json[this.i++] = QUOTE;
912
+ const z = s.length;
913
+ for (let j = 0; j < z; ++j) {
914
+ const c = s.charCodeAt(j);
915
+ if (c > 0x22 && c < 0x5c) {
916
+ this.json[this.i++] = c;
917
+ }
918
+ else if (c < 0x80) {
919
+ const esc = ESCAPE_TABLE[c];
920
+ if (esc !== null) {
921
+ this.ensure(esc.length + 1);
922
+ this.json[this.i++] = BACKSLASH;
923
+ for (let k = 0; k < esc.length; k++) {
924
+ this.json[this.i++] = esc.charCodeAt(k);
925
+ }
926
+ }
927
+ else {
928
+ this.json[this.i++] = c;
929
+ }
930
+ }
931
+ else if (c >= 0xd800 && c <= 0xdbff) {
932
+ const next = j + 1 < z ? s.charCodeAt(j + 1) : 0;
933
+ if (next >= 0xdc00 && next <= 0xdfff) {
934
+ this.ensure(4);
935
+ const { written } = encoder.encodeInto(s.substring(j, j + 2), this.json.subarray(this.i));
936
+ this.i += written;
937
+ ++j;
938
+ }
939
+ else {
940
+ this.ensure(6);
941
+ this.writeUnicodeEscape(c);
942
+ }
943
+ }
944
+ else if (c >= 0xdc00 && c <= 0xdfff) {
945
+ this.ensure(6);
946
+ this.writeUnicodeEscape(c);
947
+ }
948
+ else {
949
+ let { i, json } = this;
950
+ if (c < 0x800) {
951
+ json[i++] = 0xc0 | (c >> 6);
952
+ json[i++] = 0x80 | (c & 0x3f);
953
+ }
954
+ else {
955
+ json[i++] = 0xe0 | (c >> 12);
956
+ json[i++] = 0x80 | ((c >> 6) & 0x3f);
957
+ json[i++] = 0x80 | (c & 0x3f);
958
+ }
959
+ this.i = i;
960
+ }
961
+ }
962
+ this.json[this.i++] = QUOTE;
963
+ }
964
+ writeUnicodeEscape(code) {
965
+ let { json, i } = this;
966
+ json[i++] = BACKSLASH;
967
+ json[i++] = 0x75;
968
+ const hex = code.toString(16).padStart(4, "0");
969
+ for (let j = 0; j < 4; ++j) {
970
+ json[i++] = hex.charCodeAt(j);
971
+ }
972
+ this.i = i;
973
+ }
974
+ static B64 = (() => {
975
+ const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
976
+ const table = new Uint8Array(64);
977
+ for (let i = 0; i < 64; ++i) {
978
+ table[i] = chars.charCodeAt(i);
979
+ }
980
+ return table;
981
+ })();
982
+ writeBase64(data) {
983
+ const b64Len = Math.ceil(data.length / 3) * 4;
984
+ this.ensure(b64Len + 2);
985
+ const json = this.json;
986
+ const B64 = JsonShapeSerializer2.B64;
987
+ let i = this.i;
988
+ json[i++] = QUOTE;
989
+ const len = data.length;
990
+ const remainder = len % 3;
991
+ const mainLen = len - remainder;
992
+ for (let j = 0; j < mainLen; j += 3) {
993
+ const a = data[j];
994
+ const b = data[j + 1];
995
+ const c = data[j + 2];
996
+ json[i++] = B64[a >> 2];
997
+ json[i++] = B64[((a & 0x03) << 4) | (b >> 4)];
998
+ json[i++] = B64[((b & 0x0f) << 2) | (c >> 6)];
999
+ json[i++] = B64[c & 0x3f];
1000
+ }
1001
+ if (remainder === 2) {
1002
+ const a = data[mainLen];
1003
+ const b = data[mainLen + 1];
1004
+ json[i++] = B64[a >> 2];
1005
+ json[i++] = B64[((a & 0x03) << 4) | (b >> 4)];
1006
+ json[i++] = B64[(b & 0x0f) << 2];
1007
+ json[i++] = 0x3d;
1008
+ }
1009
+ else if (remainder === 1) {
1010
+ const a = data[mainLen];
1011
+ json[i++] = B64[a >> 2];
1012
+ json[i++] = B64[(a & 0x03) << 4];
1013
+ json[i++] = 0x3d;
1014
+ json[i++] = 0x3d;
1015
+ }
1016
+ json[i++] = QUOTE;
1017
+ this.i = i;
1018
+ }
1019
+ writeValue(schema, value, container) {
1020
+ if (value == null) {
1021
+ if (container?.isStructSchema()) {
1022
+ if (value === undefined) {
1023
+ const ns = NormalizedSchema.of(schema);
1024
+ if (ns.isIdempotencyToken()) {
1025
+ this.writeAsciiQuoted(generateIdempotencyToken());
1026
+ return;
1027
+ }
1028
+ }
1029
+ return;
1030
+ }
1031
+ this.ensure(4);
1032
+ this.json.set(NULL, this.i);
1033
+ this.i += 4;
1034
+ return;
1035
+ }
1036
+ const ns = NormalizedSchema.of(schema);
1037
+ const isObject = typeof value === "object";
1038
+ if (ns.isStringSchema()) {
1039
+ const mediaType = ns.getMergedTraits().mediaType;
1040
+ if (mediaType) {
1041
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
1042
+ if (isJson) {
1043
+ this.writeJsonString(LazyJsonString.from(value).toString());
1044
+ return;
1045
+ }
1046
+ }
1047
+ }
1048
+ if (isObject) {
1049
+ if (ns.isStructSchema()) {
1050
+ this.writeStruct(ns, value);
1051
+ return;
1052
+ }
1053
+ if (Array.isArray(value) && (ns.isListSchema() || ns.isDocumentSchema())) {
1054
+ this.writeList(ns, value, ns.isDocumentSchema());
1055
+ return;
1056
+ }
1057
+ if (ns.isMapSchema()) {
1058
+ this.writeMap(ns, value, false);
1059
+ return;
1060
+ }
1061
+ if (value instanceof Uint8Array && (ns.isBlobSchema() || ns.isDocumentSchema())) {
1062
+ this.writeBase64(value);
1063
+ return;
1064
+ }
1065
+ if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) {
1066
+ this.writeTimestamp(ns, value);
1067
+ return;
1068
+ }
1069
+ if (value instanceof NumericValue) {
1070
+ this.writeAscii(value.string);
1071
+ return;
1072
+ }
1073
+ if (ns.isDocumentSchema()) {
1074
+ if (Array.isArray(value)) {
1075
+ this.writeList(ns, value, true);
1076
+ }
1077
+ else {
1078
+ this.writeMap(ns, value, true);
1079
+ }
1080
+ return;
1081
+ }
1082
+ const json = JSON.stringify(value);
1083
+ this.writeAscii(json);
1084
+ return;
1085
+ }
1086
+ if (typeof value === "string") {
1087
+ if (ns.isBlobSchema()) {
1088
+ const b64 = (this.serdeContext?.base64Encoder ?? toBase64)(value);
1089
+ this.writeAsciiQuoted(b64);
1090
+ return;
1091
+ }
1092
+ this.writeJsonString(value);
1093
+ return;
1094
+ }
1095
+ if (typeof value === "number") {
1096
+ if (Math.abs(value) === Infinity || Number.isNaN(value)) {
1097
+ this.writeAsciiQuoted(String(value));
1098
+ return;
1099
+ }
1100
+ const numStr = String(value);
1101
+ this.writeAscii(numStr);
1102
+ return;
1103
+ }
1104
+ if (typeof value === "boolean") {
1105
+ this.ensure(5);
1106
+ let { i, json } = this;
1107
+ if (value) {
1108
+ json.set(TRUE, i);
1109
+ i += 4;
1110
+ }
1111
+ else {
1112
+ json.set(FALSE, i);
1113
+ i += 5;
1114
+ }
1115
+ this.i = i;
1116
+ return;
1117
+ }
1118
+ if (typeof value === "bigint") {
1119
+ this.writeAscii(value.toString());
1120
+ return;
1121
+ }
1122
+ this.writeAscii(String(value));
1123
+ }
1124
+ writeStruct(ns, value) {
1125
+ this.ensure(2);
1126
+ this.json[this.i++] = OPEN_BRACE;
1127
+ let wroteAny = false;
1128
+ const hasType = typeof value.__type === "string";
1129
+ let writtenKeys;
1130
+ if (hasType) {
1131
+ writtenKeys = new Set();
1132
+ }
1133
+ for (const [memberName, memberSchema] of ns.structIterator()) {
1134
+ const item = value[memberName];
1135
+ if (item == null && !memberSchema.isIdempotencyToken()) {
1136
+ continue;
1137
+ }
1138
+ if (wroteAny) {
1139
+ this.ensure(1);
1140
+ this.json[this.i++] = COMMA;
1141
+ }
1142
+ wroteAny = true;
1143
+ const targetKey = this.settings.jsonName ? (memberSchema.getMergedTraits().jsonName ?? memberName) : memberName;
1144
+ if (writtenKeys) {
1145
+ writtenKeys.add(memberName);
1146
+ writtenKeys.add(targetKey);
1147
+ }
1148
+ this.writeAsciiQuoted(targetKey);
1149
+ this.json[this.i++] = COLON;
1150
+ this.writeValue(memberSchema, item, ns);
1151
+ }
1152
+ if (!wroteAny && ns.isUnionSchema()) {
1153
+ const { $unknown } = value;
1154
+ if (Array.isArray($unknown)) {
1155
+ const [k, v] = $unknown;
1156
+ this.writeAsciiQuoted(k);
1157
+ this.ensure(1);
1158
+ this.json[this.i++] = COLON;
1159
+ this.writeValue(15, v, ns);
1160
+ }
1161
+ }
1162
+ else if (hasType) {
1163
+ for (const k in value) {
1164
+ if (writtenKeys.has(k)) {
1165
+ continue;
1166
+ }
1167
+ writtenKeys.add(k);
1168
+ const v = value[k];
1169
+ if (wroteAny) {
1170
+ this.ensure(1);
1171
+ this.json[this.i++] = COMMA;
1172
+ }
1173
+ wroteAny = true;
1174
+ this.writeAsciiQuoted(k);
1175
+ this.ensure(1);
1176
+ this.json[this.i++] = COLON;
1177
+ this.writeValue(15, v, undefined);
1178
+ }
1179
+ }
1180
+ this.ensure(1);
1181
+ this.json[this.i++] = CLOSE_BRACE;
1182
+ }
1183
+ writeList(ns, value, isDocument) {
1184
+ const sparse = !!ns.getMergedTraits().sparse;
1185
+ const valueSchema = ns.getValueSchema();
1186
+ if (!isDocument) {
1187
+ if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
1188
+ let hasSpecials = false;
1189
+ for (let i = 0; i < value.length; ++i) {
1190
+ const v = value[i];
1191
+ if (Number.isNaN(v) || v === Infinity || v === -Infinity || (v == null && !sparse)) {
1192
+ hasSpecials = true;
1193
+ break;
1194
+ }
1195
+ }
1196
+ let json;
1197
+ if (!hasSpecials) {
1198
+ json = JSON.stringify(value);
1199
+ }
1200
+ else {
1201
+ const out = [];
1202
+ for (let i = 0; i < value.length; ++i) {
1203
+ const v = value[i];
1204
+ if (v == null && !sparse)
1205
+ continue;
1206
+ if (Number.isNaN(v) || v === Infinity || v === -Infinity) {
1207
+ out.push(String(v));
1208
+ }
1209
+ else {
1210
+ out.push(v);
1211
+ }
1212
+ }
1213
+ json = JSON.stringify(out);
1214
+ }
1215
+ this.ensure(json.length * 3);
1216
+ this.i += encoder.encodeInto(json, this.json.subarray(this.i)).written;
1217
+ return;
1218
+ }
1219
+ }
1220
+ this.ensure(2);
1221
+ this.json[this.i++] = OPEN_BRACKET;
1222
+ let wroteFirstItem = false;
1223
+ for (let i = 0; i < value.length; ++i) {
1224
+ const item = value[i];
1225
+ if (isDocument ? item === undefined : item == null && !sparse) {
1226
+ continue;
1227
+ }
1228
+ if (wroteFirstItem) {
1229
+ this.ensure(1);
1230
+ this.json[this.i++] = COMMA;
1231
+ }
1232
+ this.writeValue(valueSchema, item, undefined);
1233
+ wroteFirstItem = true;
1234
+ }
1235
+ this.ensure(1);
1236
+ this.json[this.i++] = CLOSE_BRACKET;
1237
+ }
1238
+ writeMap(ns, value, isDocument) {
1239
+ const sparse = !!ns.getMergedTraits().sparse;
1240
+ const valueSchema = ns.getValueSchema();
1241
+ if (!isDocument) {
1242
+ if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
1243
+ let modifications;
1244
+ for (const k in value) {
1245
+ const v = value[k];
1246
+ if (Number.isNaN(v) || v === Infinity || v === -Infinity) {
1247
+ (modifications ??= {})[k] = v;
1248
+ value[k] = String(v);
1249
+ }
1250
+ else if (v === null && !sparse) {
1251
+ (modifications ??= {})[k] = null;
1252
+ value[k] = undefined;
1253
+ }
1254
+ }
1255
+ const json = JSON.stringify(value);
1256
+ if (modifications) {
1257
+ Object.assign(value, modifications);
1258
+ }
1259
+ this.ensure(json.length * 3);
1260
+ this.i += encoder.encodeInto(json, this.json.subarray(this.i)).written;
1261
+ return;
1262
+ }
1263
+ }
1264
+ this.ensure(2);
1265
+ this.json[this.i++] = OPEN_BRACE;
1266
+ let first = true;
1267
+ for (const k in value) {
1268
+ const v = value[k];
1269
+ if (isDocument ? v === undefined : v == null && !sparse) {
1270
+ continue;
1271
+ }
1272
+ if (!first) {
1273
+ this.ensure(1);
1274
+ this.json[this.i++] = COMMA;
1275
+ }
1276
+ first = false;
1277
+ this.writeJsonString(k);
1278
+ this.ensure(1);
1279
+ this.json[this.i++] = COLON;
1280
+ this.writeValue(valueSchema, v, undefined);
1281
+ }
1282
+ this.ensure(1);
1283
+ this.json[this.i++] = CLOSE_BRACE;
1284
+ }
1285
+ writeTimestamp(ns, value) {
1286
+ const format = determineTimestampFormat(ns, this.settings);
1287
+ switch (format) {
1288
+ case 5: {
1289
+ const iso = value.toISOString().replace(".000Z", "Z");
1290
+ this.writeAsciiQuoted(iso);
1291
+ return;
1292
+ }
1293
+ case 6: {
1294
+ this.writeAsciiQuoted(dateToUtcString(value));
1295
+ return;
1296
+ }
1297
+ case 7: {
1298
+ const epochSecs = String(value.getTime() / 1000);
1299
+ this.writeAscii(epochSecs);
1300
+ return;
1301
+ }
1302
+ default: {
1303
+ const epochSecs = String(value.getTime() / 1000);
1304
+ this.writeAscii(epochSecs);
1305
+ return;
1306
+ }
1307
+ }
1308
+ }
1309
+ }
1310
+
1311
+ class JsonCodec2 extends SerdeContextConfig {
1312
+ settings;
1313
+ constructor(settings) {
1314
+ super();
1315
+ this.settings = settings;
1316
+ }
1317
+ createSerializer() {
1318
+ const serializer = new JsonShapeSerializer2(this.settings);
1319
+ serializer.setSerdeContext(this.serdeContext);
1320
+ return serializer;
1321
+ }
1322
+ createDeserializer() {
1323
+ const deserializer = new JsonShapeDeserializer2(this.settings);
1324
+ deserializer.setSerdeContext(this.serdeContext);
1325
+ return deserializer;
1326
+ }
1327
+ }
1328
+
1329
+ class AwsJsonRpcProtocol extends RpcProtocol {
1330
+ serializer;
1331
+ deserializer;
1332
+ serviceTarget;
1333
+ codec;
1334
+ mixin;
1335
+ awsQueryCompatible;
1336
+ constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) {
1337
+ super({
1338
+ defaultNamespace,
1339
+ errorTypeRegistries,
1340
+ });
1341
+ this.serviceTarget = serviceTarget;
1342
+ this.codec =
1343
+ jsonCodec ??
1344
+ new JsonCodec2({
1345
+ timestampFormat: {
1346
+ useTrait: true,
1347
+ default: 7,
1348
+ },
1349
+ jsonName: false,
1350
+ });
1351
+ this.serializer = this.codec.createSerializer();
1352
+ this.deserializer = this.codec.createDeserializer();
1353
+ this.awsQueryCompatible = !!awsQueryCompatible;
1354
+ this.mixin = new ProtocolLib(this.awsQueryCompatible);
1355
+ }
1356
+ async serializeRequest(operationSchema, input, context) {
1357
+ const request = await super.serializeRequest(operationSchema, input, context);
1358
+ if (!request.path.endsWith("/")) {
1359
+ request.path += "/";
1360
+ }
1361
+ request.headers["content-type"] = `application/x-amz-json-${this.getJsonRpcVersion()}`;
1362
+ request.headers["x-amz-target"] = `${this.serviceTarget}.${operationSchema.name}`;
1363
+ if (this.awsQueryCompatible) {
1364
+ request.headers["x-amzn-query-mode"] = "true";
1365
+ }
1366
+ if (deref(operationSchema.input) === "unit" || !request.body) {
1367
+ request.body = "{}";
1368
+ }
1369
+ return request;
1370
+ }
1371
+ getPayloadCodec() {
1372
+ return this.codec;
1373
+ }
1374
+ async handleError(operationSchema, context, response, dataObject, metadata) {
1375
+ const { awsQueryCompatible } = this;
1376
+ if (awsQueryCompatible) {
1377
+ this.mixin.setQueryCompatError(dataObject, response);
1378
+ }
1379
+ const errorIdentifier = loadJsonRpcErrorCode(response, dataObject, awsQueryCompatible) ?? "Unknown";
1380
+ this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
1381
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata, awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
1382
+ const ns = NormalizedSchema.of(errorSchema);
1383
+ const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
1384
+ const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
1385
+ const exception = new ErrorCtor({});
1386
+ const output = {};
1387
+ const errorDeserializer = this.codec.createDeserializer();
1388
+ for (const [name, member] of ns.structIterator()) {
1389
+ if (dataObject[name] != null) {
1390
+ output[name] = errorDeserializer.readObject(member, dataObject[name]);
1391
+ }
1392
+ }
1393
+ if (awsQueryCompatible) {
1394
+ this.mixin.queryCompatOutput(dataObject, output);
1395
+ }
1396
+ throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
1397
+ $fault: ns.getMergedTraits().error,
1398
+ message,
1399
+ }, output), dataObject);
1400
+ }
1401
+ }
1402
+
1403
+ class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
1404
+ constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) {
1405
+ super({
1406
+ defaultNamespace,
1407
+ errorTypeRegistries,
1408
+ serviceTarget,
1409
+ awsQueryCompatible,
1410
+ jsonCodec,
1411
+ });
1412
+ }
1413
+ getShapeId() {
1414
+ return "aws.protocols#awsJson1_0";
1415
+ }
1416
+ getJsonRpcVersion() {
1417
+ return "1.0";
1418
+ }
1419
+ getDefaultContentType() {
1420
+ return "application/x-amz-json-1.0";
1421
+ }
1422
+ }
1423
+
1424
+ class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
1425
+ constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) {
1426
+ super({
1427
+ defaultNamespace,
1428
+ errorTypeRegistries,
1429
+ serviceTarget,
1430
+ awsQueryCompatible,
1431
+ jsonCodec,
1432
+ });
1433
+ }
1434
+ getShapeId() {
1435
+ return "aws.protocols#awsJson1_1";
1436
+ }
1437
+ getJsonRpcVersion() {
1438
+ return "1.1";
1439
+ }
1440
+ getDefaultContentType() {
1441
+ return "application/x-amz-json-1.1";
1442
+ }
1443
+ }
1444
+
1445
+ class AwsRestJsonProtocol extends HttpBindingProtocol {
1446
+ serializer;
1447
+ deserializer;
1448
+ codec;
1449
+ mixin = new ProtocolLib();
1450
+ constructor({ defaultNamespace, errorTypeRegistries, jsonCodec, }) {
1451
+ super({
1452
+ defaultNamespace,
1453
+ errorTypeRegistries,
1454
+ });
1455
+ const settings = {
1456
+ timestampFormat: {
1457
+ useTrait: true,
1458
+ default: 7,
1459
+ },
1460
+ httpBindings: true,
1461
+ jsonName: true,
1462
+ };
1463
+ this.codec = jsonCodec ?? new JsonCodec2(settings);
1464
+ this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
1465
+ this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
1466
+ }
1467
+ getShapeId() {
1468
+ return "aws.protocols#restJson1";
1469
+ }
1470
+ getPayloadCodec() {
1471
+ return this.codec;
1472
+ }
1473
+ setSerdeContext(serdeContext) {
1474
+ this.codec.setSerdeContext(serdeContext);
1475
+ super.setSerdeContext(serdeContext);
1476
+ }
1477
+ async serializeRequest(operationSchema, input, context) {
1478
+ const request = await super.serializeRequest(operationSchema, input, context);
1479
+ const inputSchema = NormalizedSchema.of(operationSchema.input);
1480
+ if (!request.headers["content-type"]) {
1481
+ const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
1482
+ if (contentType) {
1483
+ request.headers["content-type"] = contentType;
1484
+ }
1485
+ }
1486
+ if (request.body == null && request.headers["content-type"] === this.getDefaultContentType()) {
1487
+ request.body = "{}";
1488
+ }
1489
+ return request;
1490
+ }
1491
+ async deserializeResponse(operationSchema, context, response) {
1492
+ const output = await super.deserializeResponse(operationSchema, context, response);
1493
+ const outputSchema = NormalizedSchema.of(operationSchema.output);
1494
+ for (const [name, member] of outputSchema.structIterator()) {
1495
+ if (member.getMemberTraits().httpPayload && !(name in output)) {
1496
+ output[name] = null;
1497
+ }
1498
+ }
1499
+ return output;
1500
+ }
1501
+ async handleError(operationSchema, context, response, dataObject, metadata) {
1502
+ const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
1503
+ this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
1504
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
1505
+ const ns = NormalizedSchema.of(errorSchema);
1506
+ const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
1507
+ const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
1508
+ const exception = new ErrorCtor({});
1509
+ await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
1510
+ const output = {};
1511
+ const errorDeserializer = this.codec.createDeserializer();
1512
+ for (const [name, member] of ns.structIterator()) {
1513
+ const target = member.getMergedTraits().jsonName ?? name;
1514
+ output[name] = errorDeserializer.readObject(member, dataObject[target]);
1515
+ }
1516
+ throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
1517
+ $fault: ns.getMergedTraits().error,
1518
+ message,
1519
+ }, output), dataObject);
1520
+ }
1521
+ getDefaultContentType() {
1522
+ return "application/json";
1523
+ }
1524
+ }
1525
+
1526
+ class JsonShapeDeserializer extends SerdeContextConfig {
1527
+ settings;
1528
+ constructor(settings) {
1529
+ super();
1530
+ this.settings = settings;
1531
+ }
1532
+ async read(schema, data) {
1533
+ const reviver = needsReviver(schema) ? jsonReviver : undefined;
1534
+ return this._read(schema, typeof data === "string" ? JSON.parse(data, reviver) : await parseJsonBody(data, this.serdeContext, schema));
1535
+ }
1536
+ readObject(schema, data) {
1537
+ return this._read(schema, data);
1538
+ }
1539
+ _read(schema, value) {
1540
+ const isObject = value !== null && typeof value === "object";
1541
+ const ns = NormalizedSchema.of(schema);
1542
+ if (isObject) {
1543
+ if (ns.isStructSchema()) {
1544
+ const record = value;
1545
+ const union = ns.isUnionSchema();
1546
+ const out = {};
1547
+ let nameMap = void 0;
1548
+ const { jsonName } = this.settings;
1549
+ if (jsonName) {
1550
+ nameMap = {};
1551
+ }
1552
+ let unionSerde;
1553
+ if (union) {
1554
+ unionSerde = new UnionSerde(record, out);
1555
+ }
1556
+ for (const [memberName, memberSchema] of ns.structIterator()) {
1557
+ let fromKey = memberName;
1558
+ if (jsonName) {
1559
+ fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
1560
+ nameMap[fromKey] = memberName;
1561
+ }
1562
+ if (union) {
1563
+ unionSerde.mark(fromKey);
1564
+ }
1565
+ if (record[fromKey] != null) {
1566
+ out[memberName] = this._read(memberSchema, record[fromKey]);
1567
+ }
1568
+ }
1569
+ if (union) {
1570
+ unionSerde.writeUnknown();
1571
+ }
1572
+ else if (typeof record.__type === "string") {
1573
+ for (const k in record) {
1574
+ const v = record[k];
1575
+ const t = jsonName ? (nameMap[k] ?? k) : k;
1576
+ if (!(t in out)) {
1577
+ out[t] = v;
1578
+ }
1579
+ }
1580
+ }
1581
+ return out;
1582
+ }
1583
+ if (Array.isArray(value) && ns.isListSchema()) {
1584
+ const listMember = ns.getValueSchema();
1585
+ const out = [];
1586
+ for (const item of value) {
1587
+ out.push(this._read(listMember, item));
1588
+ }
1589
+ return out;
1590
+ }
1591
+ if (ns.isMapSchema()) {
1592
+ const mapMember = ns.getValueSchema();
1593
+ const out = {};
1594
+ for (const _k in value) {
1595
+ if (_k === "__proto__") {
1596
+ writeKey(out);
1597
+ }
1598
+ out[_k] = this._read(mapMember, value[_k]);
1599
+ }
1600
+ return out;
1601
+ }
1602
+ }
1603
+ if (ns.isBlobSchema() && typeof value === "string") {
1604
+ return fromBase64(value);
1605
+ }
1606
+ const mediaType = ns.getMergedTraits().mediaType;
1607
+ if (ns.isStringSchema() && typeof value === "string" && mediaType) {
1608
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
1609
+ if (isJson) {
1610
+ return LazyJsonString.from(value);
1611
+ }
1612
+ return value;
1613
+ }
1614
+ if (ns.isTimestampSchema() && value != null) {
1615
+ const format = determineTimestampFormat(ns, this.settings);
1616
+ switch (format) {
1617
+ case 5:
1618
+ return parseRfc3339DateTimeWithOffset(value);
1619
+ case 6:
1620
+ return parseRfc7231DateTime(value);
1621
+ case 7:
1622
+ return parseEpochTimestamp(value);
1623
+ default:
1624
+ console.warn("Missing timestamp format, parsing value with Date constructor:", value);
1625
+ return new Date(value);
1626
+ }
1627
+ }
1628
+ if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
1629
+ return BigInt(value);
1630
+ }
1631
+ if (ns.isBigDecimalSchema() && value != undefined) {
1632
+ if (value instanceof NumericValue) {
1633
+ return value;
1634
+ }
1635
+ const untyped = value;
1636
+ if (untyped.type === "bigDecimal" && "string" in untyped) {
1637
+ return new NumericValue(untyped.string, untyped.type);
1638
+ }
1639
+ return new NumericValue(String(value), "bigDecimal");
1640
+ }
1641
+ if (ns.isNumericSchema() && typeof value === "string") {
1642
+ switch (value) {
1643
+ case "Infinity":
1644
+ return Infinity;
1645
+ case "-Infinity":
1646
+ return -Infinity;
1647
+ case "NaN":
1648
+ return NaN;
1649
+ }
1650
+ return value;
1651
+ }
1652
+ if (ns.isDocumentSchema()) {
1653
+ if (isObject) {
1654
+ const out = Array.isArray(value) ? [] : {};
1655
+ for (const k in value) {
1656
+ if (k === "__proto__") {
1657
+ writeKey(out);
1658
+ }
1659
+ const v = value[k];
1660
+ if (v instanceof NumericValue) {
1661
+ out[k] = v;
1662
+ }
1663
+ else {
1664
+ out[k] = this._read(ns, v);
1665
+ }
1666
+ }
1667
+ return out;
1668
+ }
1669
+ else {
1670
+ return structuredClone(value);
1671
+ }
1672
+ }
1673
+ return value;
1674
+ }
1675
+ }
1676
+
1677
+ const NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
1678
+ class JsonReplacer {
1679
+ values = new Map();
1680
+ counter = 0;
1681
+ stage = 0;
1682
+ createReplacer() {
1683
+ if (this.stage === 1) {
1684
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
1685
+ }
1686
+ if (this.stage === 2) {
1687
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
1688
+ }
1689
+ this.stage = 1;
1690
+ return (key, value) => {
1691
+ if (value instanceof NumericValue) {
1692
+ const v = `${NUMERIC_CONTROL_CHAR + "nv" + this.counter++}_` + value.string;
1693
+ this.values.set(`"${v}"`, value.string);
1694
+ return v;
1695
+ }
1696
+ if (typeof value === "bigint") {
1697
+ const s = value.toString();
1698
+ const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s;
1699
+ this.values.set(`"${v}"`, s);
1700
+ return v;
1701
+ }
1702
+ return value;
1703
+ };
1704
+ }
1705
+ replaceInJson(json) {
1706
+ if (this.stage === 0) {
1707
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
1708
+ }
1709
+ if (this.stage === 2) {
1710
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
1711
+ }
1712
+ this.stage = 2;
1713
+ if (this.counter === 0) {
1714
+ return json;
1715
+ }
1716
+ for (const [key, value] of this.values) {
1717
+ json = json.replace(key, value);
1718
+ }
1719
+ return json;
1720
+ }
1721
+ }
1722
+
1723
+ class JsonShapeSerializer extends SerdeContextConfig {
1724
+ settings;
1725
+ buffer;
1726
+ useReplacer = false;
1727
+ rootSchema;
1728
+ constructor(settings) {
1729
+ super();
1730
+ this.settings = settings;
1731
+ }
1732
+ write(schema, value) {
1733
+ this.rootSchema = NormalizedSchema.of(schema);
1734
+ this.buffer = this._write(this.rootSchema, value);
1735
+ }
1736
+ flush() {
1737
+ const { rootSchema, useReplacer } = this;
1738
+ this.rootSchema = undefined;
1739
+ this.useReplacer = false;
1740
+ if (rootSchema?.isStructSchema() || rootSchema?.isDocumentSchema()) {
1741
+ if (!useReplacer) {
1742
+ return JSON.stringify(this.buffer);
1743
+ }
1744
+ const replacer = new JsonReplacer();
1745
+ return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0));
1746
+ }
1747
+ return this.buffer;
1748
+ }
1749
+ writeDiscriminatedDocument(schema, value) {
1750
+ this.write(schema, value);
1751
+ if (typeof this.buffer === "object") {
1752
+ this.buffer.__type = NormalizedSchema.of(schema).getName(true);
1753
+ }
1754
+ }
1755
+ _write(schema, value, container) {
1756
+ const isObject = value !== null && typeof value === "object";
1757
+ const ns = NormalizedSchema.of(schema);
1758
+ if (isObject) {
1759
+ if (ns.isStructSchema()) {
1760
+ const record = value;
1761
+ const out = {};
1762
+ const { jsonName } = this.settings;
1763
+ let nameMap = void 0;
1764
+ if (jsonName) {
1765
+ nameMap = {};
1766
+ }
1767
+ let outCount = 0;
1768
+ for (const [memberName, memberSchema] of ns.structIterator()) {
1769
+ const serializableValue = this._write(memberSchema, record[memberName], ns);
1770
+ if (serializableValue !== undefined) {
1771
+ let targetKey = memberName;
1772
+ if (jsonName) {
1773
+ targetKey = memberSchema.getMergedTraits().jsonName ?? memberName;
1774
+ nameMap[memberName] = targetKey;
1775
+ }
1776
+ out[targetKey] = serializableValue;
1777
+ outCount++;
1778
+ }
1779
+ }
1780
+ if (ns.isUnionSchema() && outCount === 0) {
1781
+ const { $unknown } = record;
1782
+ if (Array.isArray($unknown)) {
1783
+ const [k, v] = $unknown;
1784
+ if (k === "__proto__") {
1785
+ writeKey(out);
1786
+ }
1787
+ out[k] = this._write(15, v);
1788
+ }
1789
+ }
1790
+ else if (typeof record.__type === "string") {
1791
+ for (const k in record) {
1792
+ const v = record[k];
1793
+ const targetKey = jsonName ? (nameMap[k] ?? k) : k;
1794
+ if (!(targetKey in out)) {
1795
+ out[targetKey] = this._write(15, v);
1796
+ }
1797
+ }
1798
+ }
1799
+ return out;
1800
+ }
1801
+ if (Array.isArray(value) && ns.isListSchema()) {
1802
+ const listMember = ns.getValueSchema();
1803
+ const out = [];
1804
+ const sparse = !!ns.getMergedTraits().sparse;
1805
+ for (const item of value) {
1806
+ if (sparse || item != null) {
1807
+ out.push(this._write(listMember, item));
1808
+ }
1809
+ }
1810
+ return out;
1811
+ }
1812
+ if (ns.isMapSchema()) {
1813
+ const mapMember = ns.getValueSchema();
1814
+ const out = {};
1815
+ const sparse = !!ns.getMergedTraits().sparse;
1816
+ for (const _k in value) {
1817
+ const _v = value[_k];
1818
+ if (sparse || _v != null) {
1819
+ if (_k === "__proto__") {
1820
+ writeKey(out);
1821
+ }
1822
+ out[_k] = this._write(mapMember, _v);
1823
+ }
1824
+ }
1825
+ return out;
1826
+ }
1827
+ if (value instanceof Uint8Array && ns.isBlobSchema()) {
1828
+ if (ns === this.rootSchema) {
1829
+ return value;
1830
+ }
1831
+ return (this.serdeContext?.base64Encoder ?? toBase64)(value);
1832
+ }
1833
+ if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) {
1834
+ const format = determineTimestampFormat(ns, this.settings);
1835
+ switch (format) {
1836
+ case 5:
1837
+ return value.toISOString().replace(".000Z", "Z");
1838
+ case 6:
1839
+ return dateToUtcString(value);
1840
+ case 7:
1841
+ return value.getTime() / 1000;
1842
+ default:
1843
+ console.warn("Missing timestamp format, using epoch seconds", value);
1844
+ return value.getTime() / 1000;
1845
+ }
1846
+ }
1847
+ if (value instanceof NumericValue) {
1848
+ this.useReplacer = true;
1849
+ }
1850
+ }
1851
+ if (value === null && container?.isStructSchema()) {
1852
+ return void 0;
1853
+ }
1854
+ if (ns.isStringSchema()) {
1855
+ if (typeof value === "undefined" && ns.isIdempotencyToken()) {
1856
+ return generateIdempotencyToken();
1857
+ }
1858
+ const mediaType = ns.getMergedTraits().mediaType;
1859
+ if (value != null && mediaType) {
1860
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
1861
+ if (isJson) {
1862
+ return LazyJsonString.from(value);
1863
+ }
1864
+ }
1865
+ return value;
1866
+ }
1867
+ if (typeof value === "number") {
1868
+ if (Math.abs(value) === Infinity || isNaN(value)) {
1869
+ return String(value);
1870
+ }
1871
+ return value;
1872
+ }
1873
+ if (typeof value === "string" && ns.isBlobSchema()) {
1874
+ if (ns === this.rootSchema) {
1875
+ return value;
1876
+ }
1877
+ return (this.serdeContext?.base64Encoder ?? toBase64)(value);
1878
+ }
1879
+ if (typeof value === "bigint") {
1880
+ this.useReplacer = true;
1881
+ }
1882
+ if (ns.isDocumentSchema()) {
1883
+ if (isObject) {
1884
+ if (value instanceof Uint8Array) {
1885
+ return (this.serdeContext?.base64Encoder ?? toBase64)(value);
1886
+ }
1887
+ const out = Array.isArray(value) ? [] : {};
1888
+ for (const k in value) {
1889
+ const v = value[k];
1890
+ if (k === "__proto__") {
1891
+ writeKey(out);
1892
+ }
1893
+ if (v instanceof NumericValue) {
1894
+ this.useReplacer = true;
1895
+ out[k] = v;
1896
+ }
1897
+ else {
1898
+ out[k] = this._write(ns, v);
1899
+ }
1900
+ }
1901
+ return out;
1902
+ }
1903
+ else {
1904
+ return structuredClone(value);
1905
+ }
1906
+ }
1907
+ return value;
1908
+ }
1909
+ }
1910
+
1911
+ class JsonCodec extends SerdeContextConfig {
1912
+ settings;
1913
+ constructor(settings) {
1914
+ super();
1915
+ this.settings = settings;
1916
+ }
1917
+ createSerializer() {
1918
+ const serializer = new JsonShapeSerializer(this.settings);
1919
+ serializer.setSerdeContext(this.serdeContext);
1920
+ return serializer;
1921
+ }
1922
+ createDeserializer() {
1923
+ const deserializer = new JsonShapeDeserializer(this.settings);
1924
+ deserializer.setSerdeContext(this.serdeContext);
1925
+ return deserializer;
1926
+ }
1927
+ }
1928
+
1929
+ class XmlShapeDeserializer extends SerdeContextConfig {
1930
+ settings;
1931
+ stringDeserializer;
1932
+ constructor(settings) {
1933
+ super();
1934
+ this.settings = settings;
1935
+ this.stringDeserializer = new FromStringShapeDeserializer(settings);
1936
+ }
1937
+ setSerdeContext(serdeContext) {
1938
+ this.serdeContext = serdeContext;
1939
+ this.stringDeserializer.setSerdeContext(serdeContext);
1940
+ }
1941
+ read(schema, bytes, key) {
1942
+ const ns = NormalizedSchema.of(schema);
1943
+ const memberSchemas = ns.getMemberSchemas();
1944
+ const isEventPayload = ns.isStructSchema() &&
1945
+ ns.isMemberSchema() &&
1946
+ !!Object.values(memberSchemas).find((memberNs) => {
1947
+ return !!memberNs.getMemberTraits().eventPayload;
1948
+ });
1949
+ if (isEventPayload) {
1950
+ const output = {};
1951
+ const memberName = Object.keys(memberSchemas)[0];
1952
+ const eventMemberSchema = memberSchemas[memberName];
1953
+ if (eventMemberSchema.isBlobSchema()) {
1954
+ output[memberName] = bytes;
1955
+ }
1956
+ else {
1957
+ output[memberName] = this.read(memberSchemas[memberName], bytes);
1958
+ }
1959
+ return output;
1960
+ }
1961
+ const xmlString = (this.serdeContext?.utf8Encoder ?? toUtf8)(bytes);
1962
+ const parsedObject = this.parseXml(xmlString);
1963
+ return this.readSchema(schema, key ? parsedObject[key] : parsedObject);
1964
+ }
1965
+ readSchema(_schema, value) {
1966
+ const ns = NormalizedSchema.of(_schema);
1967
+ if (ns.isUnitSchema()) {
1968
+ return;
1969
+ }
1970
+ const traits = ns.getMergedTraits();
1971
+ if (ns.isListSchema() && !Array.isArray(value)) {
1972
+ return this.readSchema(ns, [value]);
1973
+ }
1974
+ if (value == null) {
1975
+ return value;
1976
+ }
1977
+ if (typeof value === "object") {
1978
+ const flat = !!traits.xmlFlattened;
1979
+ if (ns.isListSchema()) {
1980
+ const listValue = ns.getValueSchema();
1981
+ const buffer = [];
1982
+ const sourceKey = listValue.getMergedTraits().xmlName ?? "member";
1983
+ const source = flat ? value : (value[0] ?? value)[sourceKey];
1984
+ if (source == null) {
1985
+ return buffer;
1986
+ }
1987
+ const sourceArray = Array.isArray(source) ? source : [source];
1988
+ for (const v of sourceArray) {
1989
+ buffer.push(this.readSchema(listValue, v));
1990
+ }
1991
+ return buffer;
1992
+ }
1993
+ const buffer = {};
1994
+ if (ns.isMapSchema()) {
1995
+ const keyNs = ns.getKeySchema();
1996
+ const memberNs = ns.getValueSchema();
1997
+ let entries;
1998
+ if (flat) {
1999
+ entries = Array.isArray(value) ? value : [value];
2000
+ }
2001
+ else {
2002
+ entries = Array.isArray(value.entry) ? value.entry : [value.entry];
2003
+ }
2004
+ const keyProperty = keyNs.getMergedTraits().xmlName ?? "key";
2005
+ const valueProperty = memberNs.getMergedTraits().xmlName ?? "value";
2006
+ for (const entry of entries) {
2007
+ const key = entry[keyProperty];
2008
+ const value = entry[valueProperty];
2009
+ if (key === "__proto__") {
2010
+ writeKey(buffer);
2011
+ }
2012
+ buffer[key] = this.readSchema(memberNs, value);
2013
+ }
2014
+ return buffer;
2015
+ }
2016
+ if (ns.isStructSchema()) {
2017
+ const union = ns.isUnionSchema();
2018
+ let unionSerde;
2019
+ if (union) {
2020
+ unionSerde = new UnionSerde(value, buffer);
2021
+ }
2022
+ for (const [memberName, memberSchema] of ns.structIterator()) {
2023
+ const memberTraits = memberSchema.getMergedTraits();
2024
+ const xmlObjectKey = !memberTraits.httpPayload
2025
+ ? (memberSchema.getMemberTraits().xmlName ?? memberName)
2026
+ : (memberTraits.xmlName ?? memberSchema.getName());
2027
+ if (union) {
2028
+ unionSerde.mark(xmlObjectKey);
2029
+ }
2030
+ if (value[xmlObjectKey] != null) {
2031
+ buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]);
2032
+ }
2033
+ }
2034
+ if (union) {
2035
+ unionSerde.writeUnknown();
2036
+ }
2037
+ return buffer;
2038
+ }
2039
+ if (ns.isDocumentSchema()) {
2040
+ return value;
2041
+ }
2042
+ throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`);
2043
+ }
2044
+ if (ns.isListSchema()) {
2045
+ return [];
2046
+ }
2047
+ if (ns.isMapSchema() || ns.isStructSchema()) {
2048
+ return {};
2049
+ }
2050
+ return this.stringDeserializer.read(ns, value);
2051
+ }
2052
+ parseXml(xml) {
2053
+ if (xml.length) {
2054
+ let parsedObj;
2055
+ try {
2056
+ parsedObj = parseXML(xml);
2057
+ }
2058
+ catch (e) {
2059
+ if (e && typeof e === "object") {
2060
+ Object.defineProperty(e, "$responseBodyText", {
2061
+ value: xml,
2062
+ });
2063
+ }
2064
+ throw e;
2065
+ }
2066
+ const textNodeName = "#text";
2067
+ const key = Object.keys(parsedObj)[0];
2068
+ const parsedObjToReturn = parsedObj[key];
2069
+ if (parsedObjToReturn[textNodeName]) {
2070
+ parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
2071
+ delete parsedObjToReturn[textNodeName];
2072
+ }
2073
+ return getValueFromTextNode(parsedObjToReturn);
2074
+ }
2075
+ return {};
2076
+ }
2077
+ }
2078
+
2079
+ class QueryShapeSerializer extends SerdeContextConfig {
2080
+ settings;
2081
+ buffer;
2082
+ constructor(settings) {
2083
+ super();
2084
+ this.settings = settings;
2085
+ }
2086
+ write(schema, value, prefix = "") {
2087
+ if (this.buffer === undefined) {
2088
+ this.buffer = "";
2089
+ }
2090
+ const ns = NormalizedSchema.of(schema);
2091
+ if (prefix && !prefix.endsWith(".")) {
2092
+ prefix += ".";
2093
+ }
2094
+ if (ns.isBlobSchema()) {
2095
+ if (typeof value === "string" || value instanceof Uint8Array) {
2096
+ this.writeKey(prefix);
2097
+ this.writeValue((this.serdeContext?.base64Encoder ?? toBase64)(value));
2098
+ }
2099
+ }
2100
+ else if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isStringSchema()) {
2101
+ if (value != null) {
2102
+ this.writeKey(prefix);
2103
+ this.writeValue(String(value));
2104
+ }
2105
+ else if (ns.isIdempotencyToken()) {
2106
+ this.writeKey(prefix);
2107
+ this.writeValue(generateIdempotencyToken());
2108
+ }
2109
+ }
2110
+ else if (ns.isBigIntegerSchema()) {
2111
+ if (value != null) {
2112
+ this.writeKey(prefix);
2113
+ this.writeValue(String(value));
2114
+ }
2115
+ }
2116
+ else if (ns.isBigDecimalSchema()) {
2117
+ if (value != null) {
2118
+ this.writeKey(prefix);
2119
+ this.writeValue(value instanceof NumericValue ? value.string : String(value));
2120
+ }
2121
+ }
2122
+ else if (ns.isTimestampSchema()) {
2123
+ if (value instanceof Date) {
2124
+ this.writeKey(prefix);
2125
+ const format = determineTimestampFormat(ns, this.settings);
2126
+ switch (format) {
2127
+ case 5:
2128
+ this.writeValue(value.toISOString().replace(".000Z", "Z"));
2129
+ break;
2130
+ case 6:
2131
+ this.writeValue(dateToUtcString(value));
2132
+ break;
2133
+ case 7:
2134
+ this.writeValue(String(value.getTime() / 1000));
2135
+ break;
2136
+ }
2137
+ }
2138
+ }
2139
+ else if (ns.isDocumentSchema()) {
2140
+ if (Array.isArray(value)) {
2141
+ this.write(64 | 15, value, prefix);
2142
+ }
2143
+ else if (value instanceof Date) {
2144
+ this.write(4, value, prefix);
2145
+ }
2146
+ else if (value instanceof Uint8Array) {
2147
+ this.write(21, value, prefix);
2148
+ }
2149
+ else if (value && typeof value === "object") {
2150
+ this.write(128 | 15, value, prefix);
2151
+ }
2152
+ else {
2153
+ this.writeKey(prefix);
2154
+ this.writeValue(String(value));
2155
+ }
2156
+ }
2157
+ else if (ns.isListSchema()) {
2158
+ if (Array.isArray(value)) {
2159
+ if (value.length === 0) {
2160
+ if (this.settings.serializeEmptyLists) {
2161
+ this.writeKey(prefix);
2162
+ this.writeValue("");
2163
+ }
2164
+ }
2165
+ else {
2166
+ const member = ns.getValueSchema();
2167
+ const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened;
2168
+ let i = 1;
2169
+ for (const item of value) {
2170
+ if (item == null) {
2171
+ continue;
2172
+ }
2173
+ const traits = member.getMergedTraits();
2174
+ const suffix = this.getKey("member", traits.xmlName, traits.ec2QueryName);
2175
+ const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`;
2176
+ this.write(member, item, key);
2177
+ ++i;
2178
+ }
2179
+ }
2180
+ }
2181
+ }
2182
+ else if (ns.isMapSchema()) {
2183
+ if (value && typeof value === "object") {
2184
+ const keySchema = ns.getKeySchema();
2185
+ const memberSchema = ns.getValueSchema();
2186
+ const flat = ns.getMergedTraits().xmlFlattened;
2187
+ let i = 1;
2188
+ for (const k in value) {
2189
+ const v = value[k];
2190
+ if (v == null) {
2191
+ continue;
2192
+ }
2193
+ const keyTraits = keySchema.getMergedTraits();
2194
+ const keySuffix = this.getKey("key", keyTraits.xmlName, keyTraits.ec2QueryName);
2195
+ const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`;
2196
+ const valTraits = memberSchema.getMergedTraits();
2197
+ const valueSuffix = this.getKey("value", valTraits.xmlName, valTraits.ec2QueryName);
2198
+ const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`;
2199
+ this.write(keySchema, k, key);
2200
+ this.write(memberSchema, v, valueKey);
2201
+ ++i;
2202
+ }
2203
+ }
2204
+ }
2205
+ else if (ns.isStructSchema()) {
2206
+ if (value && typeof value === "object") {
2207
+ let didWriteMember = false;
2208
+ for (const [memberName, member] of ns.structIterator()) {
2209
+ if (value[memberName] == null && !member.isIdempotencyToken()) {
2210
+ continue;
2211
+ }
2212
+ const traits = member.getMergedTraits();
2213
+ const suffix = this.getKey(memberName, traits.xmlName, traits.ec2QueryName, "struct");
2214
+ const key = `${prefix}${suffix}`;
2215
+ this.write(member, value[memberName], key);
2216
+ didWriteMember = true;
2217
+ }
2218
+ if (!didWriteMember && ns.isUnionSchema()) {
2219
+ const { $unknown } = value;
2220
+ if (Array.isArray($unknown)) {
2221
+ const [k, v] = $unknown;
2222
+ const key = `${prefix}${k}`;
2223
+ this.write(15, v, key);
2224
+ }
2225
+ }
2226
+ }
2227
+ }
2228
+ else if (ns.isUnitSchema()) ;
2229
+ else {
2230
+ throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`);
2231
+ }
2232
+ }
2233
+ flush() {
2234
+ if (this.buffer === undefined) {
2235
+ throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");
2236
+ }
2237
+ const str = this.buffer;
2238
+ delete this.buffer;
2239
+ return str;
2240
+ }
2241
+ getKey(memberName, xmlName, ec2QueryName, keySource) {
2242
+ const { ec2, capitalizeKeys } = this.settings;
2243
+ if (ec2 && ec2QueryName) {
2244
+ return ec2QueryName;
2245
+ }
2246
+ const key = xmlName ?? memberName;
2247
+ if (capitalizeKeys && keySource === "struct") {
2248
+ return key[0].toUpperCase() + key.slice(1);
2249
+ }
2250
+ return key;
2251
+ }
2252
+ writeKey(key) {
2253
+ if (key.endsWith(".")) {
2254
+ key = key.slice(0, key.length - 1);
2255
+ }
2256
+ this.buffer += `&${extendedEncodeURIComponent(key)}=`;
2257
+ }
2258
+ writeValue(value) {
2259
+ this.buffer += extendedEncodeURIComponent(value);
2260
+ }
2261
+ }
2262
+
2263
+ class AwsQueryProtocol extends RpcProtocol {
2264
+ options;
2265
+ serializer;
2266
+ deserializer;
2267
+ mixin = new ProtocolLib();
2268
+ constructor(options) {
2269
+ super({
2270
+ defaultNamespace: options.defaultNamespace,
2271
+ errorTypeRegistries: options.errorTypeRegistries,
2272
+ });
2273
+ this.options = options;
2274
+ const settings = {
2275
+ timestampFormat: {
2276
+ useTrait: true,
2277
+ default: 5,
2278
+ },
2279
+ httpBindings: false,
2280
+ xmlNamespace: options.xmlNamespace,
2281
+ serviceNamespace: options.defaultNamespace,
2282
+ serializeEmptyLists: true,
2283
+ };
2284
+ this.serializer = new QueryShapeSerializer(settings);
2285
+ this.deserializer = new XmlShapeDeserializer(settings);
2286
+ }
2287
+ getShapeId() {
2288
+ return "aws.protocols#awsQuery";
2289
+ }
2290
+ setSerdeContext(serdeContext) {
2291
+ this.serializer.setSerdeContext(serdeContext);
2292
+ this.deserializer.setSerdeContext(serdeContext);
2293
+ }
2294
+ getPayloadCodec() {
2295
+ throw new Error("AWSQuery protocol has no payload codec.");
2296
+ }
2297
+ async serializeRequest(operationSchema, input, context) {
2298
+ const request = await super.serializeRequest(operationSchema, input, context);
2299
+ if (!request.path.endsWith("/")) {
2300
+ request.path += "/";
2301
+ }
2302
+ request.headers["content-type"] = "application/x-www-form-urlencoded";
2303
+ if (deref(operationSchema.input) === "unit" || !request.body) {
2304
+ request.body = "";
2305
+ }
2306
+ const action = operationSchema.name.split("#")[1] ?? operationSchema.name;
2307
+ request.body = `Action=${action}&Version=${this.options.version}` + request.body;
2308
+ if (request.body.endsWith("&")) {
2309
+ request.body = request.body.slice(-1);
2310
+ }
2311
+ return request;
2312
+ }
2313
+ async deserializeResponse(operationSchema, context, response) {
2314
+ const deserializer = this.deserializer;
2315
+ const ns = NormalizedSchema.of(operationSchema.output);
2316
+ const dataObject = {};
2317
+ if (response.statusCode >= 300) {
2318
+ const bytes = await collectBody(response.body, context);
2319
+ if (bytes.byteLength > 0) {
2320
+ Object.assign(dataObject, await deserializer.read(15, bytes));
2321
+ }
2322
+ await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
2323
+ }
2324
+ for (const header in response.headers) {
2325
+ const value = response.headers[header];
2326
+ delete response.headers[header];
2327
+ response.headers[header.toLowerCase()] = value;
2328
+ }
2329
+ const shortName = operationSchema.name.split("#")[1] ?? operationSchema.name;
2330
+ const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? shortName + "Result" : undefined;
2331
+ const bytes = await collectBody(response.body, context);
2332
+ if (bytes.byteLength > 0) {
2333
+ Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
2334
+ }
2335
+ dataObject.$metadata = this.deserializeMetadata(response);
2336
+ return dataObject;
2337
+ }
2338
+ useNestedResult() {
2339
+ return true;
2340
+ }
2341
+ async handleError(operationSchema, context, response, dataObject, metadata) {
2342
+ const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
2343
+ this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
2344
+ const errorData = this.loadQueryError(dataObject) ?? {};
2345
+ const message = this.loadQueryErrorMessage(dataObject);
2346
+ errorData.message = message;
2347
+ errorData.Error = {
2348
+ Type: errorData.Type,
2349
+ Code: errorData.Code,
2350
+ Message: message,
2351
+ };
2352
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, this.mixin.findQueryCompatibleError);
2353
+ const ns = NormalizedSchema.of(errorSchema);
2354
+ const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
2355
+ const exception = new ErrorCtor({});
2356
+ const output = {
2357
+ Type: errorData.Error.Type,
2358
+ Code: errorData.Error.Code,
2359
+ Error: errorData.Error,
2360
+ };
2361
+ for (const [name, member] of ns.structIterator()) {
2362
+ const target = member.getMergedTraits().xmlName ?? name;
2363
+ const value = errorData[target] ?? dataObject[target];
2364
+ output[name] = this.deserializer.readSchema(member, value);
2365
+ }
2366
+ throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
2367
+ $fault: ns.getMergedTraits().error,
2368
+ message,
2369
+ }, output), dataObject);
2370
+ }
2371
+ loadQueryErrorCode(output, data) {
2372
+ const code = (data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error)?.Code;
2373
+ if (code !== undefined) {
2374
+ return code;
2375
+ }
2376
+ if (output.statusCode == 404) {
2377
+ return "NotFound";
2378
+ }
2379
+ }
2380
+ loadQueryError(data) {
2381
+ return data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error;
2382
+ }
2383
+ loadQueryErrorMessage(data) {
2384
+ const errorData = this.loadQueryError(data);
2385
+ return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown";
2386
+ }
2387
+ getDefaultContentType() {
2388
+ return "application/x-www-form-urlencoded";
2389
+ }
2390
+ }
2391
+
2392
+ class AwsEc2QueryProtocol extends AwsQueryProtocol {
2393
+ options;
2394
+ constructor(options) {
2395
+ super(options);
2396
+ this.options = options;
2397
+ const ec2Settings = {
2398
+ capitalizeKeys: true,
2399
+ flattenLists: true,
2400
+ serializeEmptyLists: false,
2401
+ ec2: true,
2402
+ };
2403
+ Object.assign(this.serializer.settings, ec2Settings);
2404
+ }
2405
+ getShapeId() {
2406
+ return "aws.protocols#ec2Query";
2407
+ }
2408
+ useNestedResult() {
2409
+ return false;
2410
+ }
2411
+ }
2412
+
2413
+ const parseXmlBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2414
+ if (encoded.length) {
2415
+ let parsedObj;
2416
+ try {
2417
+ parsedObj = parseXML(encoded);
2418
+ }
2419
+ catch (e) {
2420
+ if (e && typeof e === "object") {
2421
+ Object.defineProperty(e, "$responseBodyText", {
2422
+ value: encoded,
2423
+ });
2424
+ }
2425
+ throw e;
2426
+ }
2427
+ const textNodeName = "#text";
2428
+ const key = Object.keys(parsedObj)[0];
2429
+ const parsedObjToReturn = parsedObj[key];
2430
+ if (parsedObjToReturn[textNodeName]) {
2431
+ parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
2432
+ delete parsedObjToReturn[textNodeName];
2433
+ }
2434
+ return getValueFromTextNode(parsedObjToReturn);
2435
+ }
2436
+ return {};
2437
+ });
2438
+ const parseXmlErrorBody = async (errorBody, context) => {
2439
+ const value = await parseXmlBody(errorBody, context);
2440
+ if (value.Error) {
2441
+ value.Error.message = value.Error.message ?? value.Error.Message;
2442
+ }
2443
+ return value;
2444
+ };
2445
+ const loadRestXmlErrorCode = (output, data) => {
2446
+ if (data?.Error?.Code !== undefined) {
2447
+ return data.Error.Code;
2448
+ }
2449
+ if (data?.Code !== undefined) {
2450
+ return data.Code;
2451
+ }
2452
+ if (output.statusCode == 404) {
2453
+ return "NotFound";
2454
+ }
2455
+ };
2456
+
2457
+ class XmlShapeSerializer extends SerdeContextConfig {
2458
+ settings;
2459
+ stringBuffer;
2460
+ byteBuffer;
2461
+ buffer;
2462
+ constructor(settings) {
2463
+ super();
2464
+ this.settings = settings;
2465
+ }
2466
+ write(schema, value) {
2467
+ const ns = NormalizedSchema.of(schema);
2468
+ if (ns.isStringSchema() && typeof value === "string") {
2469
+ this.stringBuffer = value;
2470
+ }
2471
+ else if (ns.isBlobSchema()) {
2472
+ this.byteBuffer =
2473
+ "byteLength" in value
2474
+ ? value
2475
+ : (this.serdeContext?.base64Decoder ?? fromBase64)(value);
2476
+ }
2477
+ else {
2478
+ this.buffer = this.writeStruct(ns, value, undefined);
2479
+ const traits = ns.getMergedTraits();
2480
+ if (traits.httpPayload && !traits.xmlName) {
2481
+ this.buffer.withName(ns.getName());
2482
+ }
2483
+ }
2484
+ }
2485
+ flush() {
2486
+ if (this.byteBuffer !== undefined) {
2487
+ const bytes = this.byteBuffer;
2488
+ delete this.byteBuffer;
2489
+ return bytes;
2490
+ }
2491
+ if (this.stringBuffer !== undefined) {
2492
+ const str = this.stringBuffer;
2493
+ delete this.stringBuffer;
2494
+ return str;
2495
+ }
2496
+ const buffer = this.buffer;
2497
+ if (this.settings.xmlNamespace) {
2498
+ if (!buffer?.attributes?.["xmlns"]) {
2499
+ buffer.addAttribute("xmlns", this.settings.xmlNamespace);
2500
+ }
2501
+ }
2502
+ delete this.buffer;
2503
+ return buffer.toString();
2504
+ }
2505
+ writeStruct(ns, value, parentXmlns) {
2506
+ const traits = ns.getMergedTraits();
2507
+ const name = ns.isMemberSchema() && !traits.httpPayload
2508
+ ? (ns.getMemberTraits().xmlName ?? ns.getMemberName())
2509
+ : (traits.xmlName ?? ns.getName());
2510
+ if (!name || !ns.isStructSchema()) {
2511
+ throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName(true)}.`);
2512
+ }
2513
+ const structXmlNode = XmlNode.of(name);
2514
+ const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
2515
+ for (const [memberName, memberSchema] of ns.structIterator()) {
2516
+ const val = value[memberName];
2517
+ if (val != null || memberSchema.isIdempotencyToken()) {
2518
+ if (memberSchema.getMergedTraits().xmlAttribute) {
2519
+ structXmlNode.addAttribute(memberSchema.getMergedTraits().xmlName ?? memberName, this.writeSimple(memberSchema, val));
2520
+ continue;
2521
+ }
2522
+ if (memberSchema.isListSchema()) {
2523
+ this.writeList(memberSchema, val, structXmlNode, xmlns);
2524
+ }
2525
+ else if (memberSchema.isMapSchema()) {
2526
+ this.writeMap(memberSchema, val, structXmlNode, xmlns);
2527
+ }
2528
+ else if (memberSchema.isStructSchema()) {
2529
+ structXmlNode.addChildNode(this.writeStruct(memberSchema, val, xmlns));
2530
+ }
2531
+ else {
2532
+ const memberNode = XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName());
2533
+ this.writeSimpleInto(memberSchema, val, memberNode, xmlns);
2534
+ structXmlNode.addChildNode(memberNode);
2535
+ }
2536
+ }
2537
+ }
2538
+ const { $unknown } = value;
2539
+ if ($unknown && ns.isUnionSchema() && Array.isArray($unknown) && Object.keys(value).length === 1) {
2540
+ const [k, v] = $unknown;
2541
+ const node = XmlNode.of(k);
2542
+ if (typeof v !== "string") {
2543
+ if (value instanceof XmlNode || value instanceof XmlText) {
2544
+ structXmlNode.addChildNode(value);
2545
+ }
2546
+ else {
2547
+ throw new Error(`@aws-sdk - $unknown union member in XML requires ` +
2548
+ `value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`);
2549
+ }
2550
+ }
2551
+ this.writeSimpleInto(0, v, node, xmlns);
2552
+ structXmlNode.addChildNode(node);
2553
+ }
2554
+ if (xmlns) {
2555
+ structXmlNode.addAttribute(xmlnsAttr, xmlns);
2556
+ }
2557
+ return structXmlNode;
2558
+ }
2559
+ writeList(listMember, array, container, parentXmlns) {
2560
+ if (!listMember.isMemberSchema()) {
2561
+ throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${listMember.getName(true)}`);
2562
+ }
2563
+ const listTraits = listMember.getMergedTraits();
2564
+ const listValueSchema = listMember.getValueSchema();
2565
+ const listValueTraits = listValueSchema.getMergedTraits();
2566
+ const sparse = !!listValueTraits.sparse;
2567
+ const flat = !!listTraits.xmlFlattened;
2568
+ const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns);
2569
+ const writeItem = (container, value) => {
2570
+ if (listValueSchema.isListSchema()) {
2571
+ this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container, xmlns);
2572
+ }
2573
+ else if (listValueSchema.isMapSchema()) {
2574
+ this.writeMap(listValueSchema, value, container, xmlns);
2575
+ }
2576
+ else if (listValueSchema.isStructSchema()) {
2577
+ const struct = this.writeStruct(listValueSchema, value, xmlns);
2578
+ container.addChildNode(struct.withName(flat ? (listTraits.xmlName ?? listMember.getMemberName()) : (listValueTraits.xmlName ?? "member")));
2579
+ }
2580
+ else {
2581
+ const listItemNode = XmlNode.of(flat ? (listTraits.xmlName ?? listMember.getMemberName()) : (listValueTraits.xmlName ?? "member"));
2582
+ this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns);
2583
+ container.addChildNode(listItemNode);
2584
+ }
2585
+ };
2586
+ if (flat) {
2587
+ for (const value of array) {
2588
+ if (sparse || value != null) {
2589
+ writeItem(container, value);
2590
+ }
2591
+ }
2592
+ }
2593
+ else {
2594
+ const listNode = XmlNode.of(listTraits.xmlName ?? listMember.getMemberName());
2595
+ if (xmlns) {
2596
+ listNode.addAttribute(xmlnsAttr, xmlns);
2597
+ }
2598
+ for (const value of array) {
2599
+ if (sparse || value != null) {
2600
+ writeItem(listNode, value);
2601
+ }
2602
+ }
2603
+ container.addChildNode(listNode);
2604
+ }
2605
+ }
2606
+ writeMap(mapMember, map, container, parentXmlns, containerIsMap = false) {
2607
+ if (!mapMember.isMemberSchema()) {
2608
+ throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${mapMember.getName(true)}`);
2609
+ }
2610
+ const mapTraits = mapMember.getMergedTraits();
2611
+ const mapKeySchema = mapMember.getKeySchema();
2612
+ const mapKeyTraits = mapKeySchema.getMergedTraits();
2613
+ const keyTag = mapKeyTraits.xmlName ?? "key";
2614
+ const mapValueSchema = mapMember.getValueSchema();
2615
+ const mapValueTraits = mapValueSchema.getMergedTraits();
2616
+ const valueTag = mapValueTraits.xmlName ?? "value";
2617
+ const sparse = !!mapValueTraits.sparse;
2618
+ const flat = !!mapTraits.xmlFlattened;
2619
+ const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns);
2620
+ const addKeyValue = (entry, key, val) => {
2621
+ const keyNode = XmlNode.of(keyTag, key);
2622
+ const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns);
2623
+ if (keyXmlns) {
2624
+ keyNode.addAttribute(keyXmlnsAttr, keyXmlns);
2625
+ }
2626
+ entry.addChildNode(keyNode);
2627
+ let valueNode = XmlNode.of(valueTag);
2628
+ if (mapValueSchema.isListSchema()) {
2629
+ this.writeList(mapValueSchema, val, valueNode, xmlns);
2630
+ }
2631
+ else if (mapValueSchema.isMapSchema()) {
2632
+ this.writeMap(mapValueSchema, val, valueNode, xmlns, true);
2633
+ }
2634
+ else if (mapValueSchema.isStructSchema()) {
2635
+ valueNode = this.writeStruct(mapValueSchema, val, xmlns);
2636
+ }
2637
+ else {
2638
+ this.writeSimpleInto(mapValueSchema, val, valueNode, xmlns);
2639
+ }
2640
+ entry.addChildNode(valueNode);
2641
+ };
2642
+ if (flat) {
2643
+ for (const key in map) {
2644
+ const val = map[key];
2645
+ if (sparse || val != null) {
2646
+ const entry = XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
2647
+ addKeyValue(entry, key, val);
2648
+ container.addChildNode(entry);
2649
+ }
2650
+ }
2651
+ }
2652
+ else {
2653
+ let mapNode;
2654
+ if (!containerIsMap) {
2655
+ mapNode = XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
2656
+ if (xmlns) {
2657
+ mapNode.addAttribute(xmlnsAttr, xmlns);
2658
+ }
2659
+ container.addChildNode(mapNode);
2660
+ }
2661
+ for (const key in map) {
2662
+ const val = map[key];
2663
+ if (sparse || val != null) {
2664
+ const entry = XmlNode.of("entry");
2665
+ addKeyValue(entry, key, val);
2666
+ (containerIsMap ? container : mapNode).addChildNode(entry);
2667
+ }
2668
+ }
2669
+ }
2670
+ }
2671
+ writeSimple(_schema, value) {
2672
+ if (null === value) {
2673
+ throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");
2674
+ }
2675
+ const ns = NormalizedSchema.of(_schema);
2676
+ let nodeContents = null;
2677
+ if (value && typeof value === "object") {
2678
+ if (ns.isBlobSchema()) {
2679
+ nodeContents = (this.serdeContext?.base64Encoder ?? toBase64)(value);
2680
+ }
2681
+ else if (ns.isTimestampSchema() && value instanceof Date) {
2682
+ const format = determineTimestampFormat(ns, this.settings);
2683
+ switch (format) {
2684
+ case 5:
2685
+ nodeContents = value.toISOString().replace(".000Z", "Z");
2686
+ break;
2687
+ case 6:
2688
+ nodeContents = dateToUtcString(value);
2689
+ break;
2690
+ case 7:
2691
+ nodeContents = String(value.getTime() / 1000);
2692
+ break;
2693
+ default:
2694
+ console.warn("Missing timestamp format, using http date", value);
2695
+ nodeContents = dateToUtcString(value);
2696
+ break;
2697
+ }
2698
+ }
2699
+ else if (ns.isBigDecimalSchema() && value) {
2700
+ if (value instanceof NumericValue) {
2701
+ return value.string;
2702
+ }
2703
+ return String(value);
2704
+ }
2705
+ else if (ns.isMapSchema() || ns.isListSchema()) {
2706
+ throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.");
2707
+ }
2708
+ else {
2709
+ throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${ns.getName(true)}`);
2710
+ }
2711
+ }
2712
+ if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
2713
+ nodeContents = String(value);
2714
+ }
2715
+ if (ns.isStringSchema()) {
2716
+ if (value === undefined && ns.isIdempotencyToken()) {
2717
+ nodeContents = generateIdempotencyToken();
2718
+ }
2719
+ else {
2720
+ nodeContents = String(value);
2721
+ }
2722
+ }
2723
+ if (nodeContents === null) {
2724
+ throw new Error(`Unhandled schema-value pair ${ns.getName(true)}=${value}`);
2725
+ }
2726
+ return nodeContents;
2727
+ }
2728
+ writeSimpleInto(_schema, value, into, parentXmlns) {
2729
+ const nodeContents = this.writeSimple(_schema, value);
2730
+ const ns = NormalizedSchema.of(_schema);
2731
+ const content = new XmlText(nodeContents);
2732
+ const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns);
2733
+ if (xmlns) {
2734
+ into.addAttribute(xmlnsAttr, xmlns);
2735
+ }
2736
+ into.addChildNode(content);
2737
+ }
2738
+ getXmlnsAttribute(ns, parentXmlns) {
2739
+ const traits = ns.getMergedTraits();
2740
+ const [prefix, xmlns] = traits.xmlNamespace ?? [];
2741
+ if (xmlns && xmlns !== parentXmlns) {
2742
+ return [prefix ? `xmlns:${prefix}` : "xmlns", xmlns];
2743
+ }
2744
+ return [void 0, void 0];
2745
+ }
2746
+ }
2747
+
2748
+ class XmlCodec extends SerdeContextConfig {
2749
+ settings;
2750
+ constructor(settings) {
2751
+ super();
2752
+ this.settings = settings;
2753
+ }
2754
+ createSerializer() {
2755
+ const serializer = new XmlShapeSerializer(this.settings);
2756
+ serializer.setSerdeContext(this.serdeContext);
2757
+ return serializer;
2758
+ }
2759
+ createDeserializer() {
2760
+ const deserializer = new XmlShapeDeserializer(this.settings);
2761
+ deserializer.setSerdeContext(this.serdeContext);
2762
+ return deserializer;
2763
+ }
2764
+ }
2765
+
2766
+ class AwsRestXmlProtocol extends HttpBindingProtocol {
2767
+ codec;
2768
+ serializer;
2769
+ deserializer;
2770
+ mixin = new ProtocolLib();
2771
+ constructor(options) {
2772
+ super(options);
2773
+ const settings = {
2774
+ timestampFormat: {
2775
+ useTrait: true,
2776
+ default: 5,
2777
+ },
2778
+ httpBindings: true,
2779
+ xmlNamespace: options.xmlNamespace,
2780
+ serviceNamespace: options.defaultNamespace,
2781
+ };
2782
+ this.codec = new XmlCodec(settings);
2783
+ this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
2784
+ this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
2785
+ }
2786
+ getPayloadCodec() {
2787
+ return this.codec;
2788
+ }
2789
+ getShapeId() {
2790
+ return "aws.protocols#restXml";
2791
+ }
2792
+ async serializeRequest(operationSchema, input, context) {
2793
+ const request = await super.serializeRequest(operationSchema, input, context);
2794
+ const inputSchema = NormalizedSchema.of(operationSchema.input);
2795
+ if (!request.headers["content-type"]) {
2796
+ const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema);
2797
+ if (contentType) {
2798
+ request.headers["content-type"] = contentType;
2799
+ }
2800
+ }
2801
+ if (typeof request.body === "string" &&
2802
+ request.headers["content-type"] === this.getDefaultContentType() &&
2803
+ !request.body.startsWith("<?xml ") &&
2804
+ !this.hasUnstructuredPayloadBinding(inputSchema)) {
2805
+ request.body = '<?xml version="1.0" encoding="UTF-8"?>' + request.body;
2806
+ }
2807
+ return request;
2808
+ }
2809
+ async deserializeResponse(operationSchema, context, response) {
2810
+ return super.deserializeResponse(operationSchema, context, response);
2811
+ }
2812
+ async handleError(operationSchema, context, response, dataObject, metadata) {
2813
+ const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown";
2814
+ this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
2815
+ if (dataObject.Error && typeof dataObject.Error === "object") {
2816
+ for (const key of Object.keys(dataObject.Error)) {
2817
+ dataObject[key] = dataObject.Error[key];
2818
+ if (key.toLowerCase() === "message") {
2819
+ dataObject.message = dataObject.Error[key];
2820
+ }
2821
+ }
2822
+ }
2823
+ if (dataObject.RequestId && !metadata.requestId) {
2824
+ metadata.requestId = dataObject.RequestId;
2825
+ }
2826
+ const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
2827
+ const ns = NormalizedSchema.of(errorSchema);
2828
+ const message = dataObject.Error?.message ??
2829
+ dataObject.Error?.Message ??
2830
+ dataObject.message ??
2831
+ dataObject.Message ??
2832
+ "UnknownError";
2833
+ const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
2834
+ const exception = new ErrorCtor({});
2835
+ await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
2836
+ const output = {};
2837
+ const errorDeserializer = this.codec.createDeserializer();
2838
+ for (const [name, member] of ns.structIterator()) {
2839
+ const target = member.getMergedTraits().xmlName ?? name;
2840
+ const value = dataObject.Error?.[target] ?? dataObject[target];
2841
+ output[name] = errorDeserializer.readSchema(member, value);
2842
+ }
2843
+ throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
2844
+ $fault: ns.getMergedTraits().error,
2845
+ message,
2846
+ }, output), dataObject);
2847
+ }
2848
+ getDefaultContentType() {
2849
+ return "application/xml";
2850
+ }
2851
+ hasUnstructuredPayloadBinding(ns) {
2852
+ for (const [, member] of ns.structIterator()) {
2853
+ if (member.getMergedTraits().httpPayload) {
2854
+ return !(member.isStructSchema() || member.isMapSchema() || member.isListSchema());
2855
+ }
2856
+ }
2857
+ return false;
2858
+ }
2859
+ }
2860
+
2861
+ const awsExpectUnion = (value) => {
2862
+ if (value == null) {
2863
+ return undefined;
2864
+ }
2865
+ if (typeof value === "object" && "__type" in value) {
2866
+ delete value.__type;
2867
+ }
2868
+ return expectUnion(value);
2869
+ };
2870
+
2871
+ const _toStr = (val) => {
2872
+ if (val == null) {
2873
+ return val;
2874
+ }
2875
+ if (typeof val === "number" || typeof val === "bigint") {
2876
+ const warning = new Error(`Received number ${val} where a string was expected.`);
2877
+ warning.name = "Warning";
2878
+ console.warn(warning);
2879
+ return String(val);
2880
+ }
2881
+ if (typeof val === "boolean") {
2882
+ const warning = new Error(`Received boolean ${val} where a string was expected.`);
2883
+ warning.name = "Warning";
2884
+ console.warn(warning);
2885
+ return String(val);
2886
+ }
2887
+ return val;
2888
+ };
2889
+ const _toBool = (val) => {
2890
+ if (val == null) {
2891
+ return val;
2892
+ }
2893
+ if (typeof val === "string") {
2894
+ const lowercase = val.toLowerCase();
2895
+ if (val !== "" && lowercase !== "false" && lowercase !== "true") {
2896
+ const warning = new Error(`Received string "${val}" where a boolean was expected.`);
2897
+ warning.name = "Warning";
2898
+ console.warn(warning);
2899
+ }
2900
+ return val !== "" && lowercase !== "false";
2901
+ }
2902
+ return val;
2903
+ };
2904
+ const _toNum = (val) => {
2905
+ if (val == null) {
2906
+ return val;
2907
+ }
2908
+ if (typeof val === "string") {
2909
+ const num = Number(val);
2910
+ if (num.toString() !== val) {
2911
+ const warning = new Error(`Received string "${val}" where a number was expected.`);
2912
+ warning.name = "Warning";
2913
+ console.warn(warning);
2914
+ return val;
2915
+ }
2916
+ return num;
2917
+ }
2918
+ return val;
2919
+ };
2920
+
2921
+ exports.AwsEc2QueryProtocol = AwsEc2QueryProtocol;
2922
+ exports.AwsJson1_0Protocol = AwsJson1_0Protocol;
2923
+ exports.AwsJson1_1Protocol = AwsJson1_1Protocol;
2924
+ exports.AwsJsonRpcProtocol = AwsJsonRpcProtocol;
2925
+ exports.AwsQueryProtocol = AwsQueryProtocol;
2926
+ exports.AwsRestJsonProtocol = AwsRestJsonProtocol;
2927
+ exports.AwsRestXmlProtocol = AwsRestXmlProtocol;
2928
+ exports.AwsSmithyRpcV2CborProtocol = AwsSmithyRpcV2CborProtocol;
2929
+ exports.JsonCodec = JsonCodec;
2930
+ exports.JsonCodec2 = JsonCodec2;
2931
+ exports.JsonShapeDeserializer = JsonShapeDeserializer;
2932
+ exports.JsonShapeDeserializer2 = JsonShapeDeserializer2;
2933
+ exports.JsonShapeSerializer = JsonShapeSerializer;
2934
+ exports.JsonShapeSerializer2 = JsonShapeSerializer2;
2935
+ exports.QueryShapeSerializer = QueryShapeSerializer;
2936
+ exports.XmlCodec = XmlCodec;
2937
+ exports.XmlShapeDeserializer = XmlShapeDeserializer;
2938
+ exports.XmlShapeSerializer = XmlShapeSerializer;
2939
+ exports._toBool = _toBool;
2940
+ exports._toNum = _toNum;
2941
+ exports._toStr = _toStr;
2942
+ exports.awsExpectUnion = awsExpectUnion;
2943
+ exports.loadJsonRpcErrorCode = loadJsonRpcErrorCode;
2944
+ exports.loadRestJsonErrorCode = loadRestJsonErrorCode;
2945
+ exports.loadRestXmlErrorCode = loadRestXmlErrorCode;
2946
+ exports.parseJsonBody = parseJsonBody;
2947
+ exports.parseJsonErrorBody = parseJsonErrorBody;
2948
+ exports.parseXmlBody = parseXmlBody;
2949
+ exports.parseXmlErrorBody = parseXmlErrorBody;