@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,2565 @@
1
+ const { nv, NumericValue, calculateBodyLength, generateIdempotencyToken, fromBase64, _parseEpochTimestamp } = require("@smithy/core/serde");
2
+ const { hasOwn, getSmithyContext } = require("@smithy/core/transport");
3
+ const { HttpRequest, collectBody, SerdeContext, RpcProtocol } = require("@smithy/core/protocols");
4
+ const { NormalizedSchema, deref, TypeRegistry } = require("@smithy/core/schema");
5
+
6
+ const majorUint64 = 0;
7
+ const majorNegativeInt64 = 1;
8
+ const majorUnstructuredByteString = 2;
9
+ const majorUtf8String = 3;
10
+ const majorList = 4;
11
+ const majorMap = 5;
12
+ const majorTag = 6;
13
+ const majorSpecial = 7;
14
+ const specialFalse = 20;
15
+ const specialTrue = 21;
16
+ const specialNull = 22;
17
+ const specialUndefined = 23;
18
+ const extendedOneByte = 24;
19
+ const extendedFloat16 = 25;
20
+ const extendedFloat32 = 26;
21
+ const extendedFloat64 = 27;
22
+ const minorIndefinite = 31;
23
+ function alloc(size) {
24
+ return typeof Buffer !== "undefined" ? Buffer.alloc(size) : new Uint8Array(size);
25
+ }
26
+ const tagSymbol = Symbol("@smithy/core/cbor::tagSymbol");
27
+ function tag(data) {
28
+ data[tagSymbol] = true;
29
+ return data;
30
+ }
31
+
32
+ const USE_BUFFER$3 = typeof Buffer !== "undefined";
33
+ const textDecoder$1 = new TextDecoder();
34
+ let payload$1 = alloc(0);
35
+ let isBuffer$1 = false;
36
+ let dataView$2 = new DataView(payload$1.buffer, payload$1.byteOffset, payload$1.byteLength);
37
+ let _offset = 0;
38
+ function setPayload(bytes) {
39
+ payload$1 = bytes;
40
+ isBuffer$1 = USE_BUFFER$3 && payload$1 instanceof Buffer;
41
+ dataView$2 = new DataView(payload$1.buffer, payload$1.byteOffset, payload$1.byteLength);
42
+ }
43
+ function decode(at, to) {
44
+ if (at >= to) {
45
+ throw new Error("unexpected end of (decode) payload.");
46
+ }
47
+ const major = (payload$1[at] & 0b1110_0000) >> 5;
48
+ const minor = payload$1[at] & 0b0001_1111;
49
+ if (minor === minorIndefinite && 2 <= major && major <= 5) {
50
+ return decodeIndefinite(at, to);
51
+ }
52
+ switch (major) {
53
+ case majorUint64:
54
+ case majorNegativeInt64:
55
+ case majorTag: {
56
+ let unsignedInt;
57
+ let offset;
58
+ if (minor < 24) {
59
+ unsignedInt = minor;
60
+ offset = 1;
61
+ }
62
+ else {
63
+ switch (minor) {
64
+ case extendedOneByte:
65
+ if (to - at < 2) {
66
+ overflow$1(1);
67
+ }
68
+ unsignedInt = payload$1[at + 1];
69
+ offset = 2;
70
+ break;
71
+ case extendedFloat16:
72
+ if (to - at < 3) {
73
+ overflow$1(2);
74
+ }
75
+ unsignedInt = dataView$2.getUint16(at + 1);
76
+ offset = 3;
77
+ break;
78
+ case extendedFloat32:
79
+ if (to - at < 5) {
80
+ overflow$1(4);
81
+ }
82
+ unsignedInt = dataView$2.getUint32(at + 1);
83
+ offset = 5;
84
+ break;
85
+ case extendedFloat64:
86
+ if (to - at < 9) {
87
+ overflow$1(8);
88
+ }
89
+ {
90
+ const hi = dataView$2.getUint32(at + 1);
91
+ if (hi < 0x00200000) {
92
+ unsignedInt = hi * 4294967296 + dataView$2.getUint32(at + 5);
93
+ }
94
+ else {
95
+ unsignedInt = dataView$2.getBigUint64(at + 1);
96
+ }
97
+ }
98
+ offset = 9;
99
+ break;
100
+ default:
101
+ unexpectedMinor(minor);
102
+ }
103
+ }
104
+ if (major === majorUint64) {
105
+ _offset = offset;
106
+ return castBigInt$1(unsignedInt);
107
+ }
108
+ else if (major === majorNegativeInt64) {
109
+ let negativeInt;
110
+ if (typeof unsignedInt === "bigint") {
111
+ negativeInt = BigInt(-1) - unsignedInt;
112
+ }
113
+ else {
114
+ negativeInt = -1 - unsignedInt;
115
+ }
116
+ _offset = offset;
117
+ return castBigInt$1(negativeInt);
118
+ }
119
+ else {
120
+ return decodeTagValue(at, to, minor, unsignedInt, offset);
121
+ }
122
+ }
123
+ case majorUtf8String:
124
+ return decodeUtf8String(at, to);
125
+ case majorMap:
126
+ return decodeMap(at, to);
127
+ case majorList:
128
+ return decodeList(at, to);
129
+ case majorUnstructuredByteString:
130
+ return decodeUnstructuredByteString(at, to);
131
+ default:
132
+ return decodeSpecial(at, to);
133
+ }
134
+ }
135
+ function decodeIndefinite(at, to) {
136
+ const major = (payload$1[at] & 0b1110_0000) >> 5;
137
+ const minor = payload$1[at] & 0b0001_1111;
138
+ if (minor === minorIndefinite) {
139
+ switch (major) {
140
+ case majorUtf8String:
141
+ return decodeUtf8StringIndefinite(at, to);
142
+ case majorMap:
143
+ return decodeMapIndefinite(at, to);
144
+ case majorList:
145
+ return decodeListIndefinite(at, to);
146
+ case majorUnstructuredByteString:
147
+ return decodeUnstructuredByteStringIndefinite(at, to);
148
+ }
149
+ }
150
+ }
151
+ function bytesToFloat16$1(a, b) {
152
+ const sign = a >> 7;
153
+ const exponent = (a & 0b0111_1100) >> 2;
154
+ const fraction = ((a & 0b0000_0011) << 8) | b;
155
+ const scalar = sign === 0 ? 1 : -1;
156
+ if (exponent === 0b00000) {
157
+ if (fraction === 0) {
158
+ return 0;
159
+ }
160
+ return scalar * (Math.pow(2, 1 - 15) * (fraction / 1024));
161
+ }
162
+ else if (exponent === 0b11111) {
163
+ if (fraction === 0) {
164
+ return scalar * Infinity;
165
+ }
166
+ return NaN;
167
+ }
168
+ return scalar * (Math.pow(2, exponent - 15) * (1 + fraction / 1024));
169
+ }
170
+ function decodeMap(at, to) {
171
+ const mapDataLength = decodeCount$1(at, to);
172
+ if (mapDataLength < 25) {
173
+ return decodeMapSmall(at, to, mapDataLength);
174
+ }
175
+ return decodeMapLarge(at, to, mapDataLength);
176
+ }
177
+ function decodeMapLarge(at, to, mapDataLength) {
178
+ const offset = _offset;
179
+ at += offset;
180
+ const base = at;
181
+ const map = Object.create(null);
182
+ for (let i = 0; i < mapDataLength; ++i) {
183
+ const key = decodeUtf8String(at, to);
184
+ at += _offset;
185
+ const valMajor = (payload$1[at] & 0b1110_0000) >> 5;
186
+ if (valMajor === majorUtf8String) {
187
+ map[key] = decodeUtf8String(at, to);
188
+ }
189
+ else {
190
+ map[key] = decode(at, to);
191
+ }
192
+ at += _offset;
193
+ }
194
+ _offset = offset + (at - base);
195
+ Object.setPrototypeOf(map, Object.prototype);
196
+ return map;
197
+ }
198
+ function decodeMapSmall(at, to, mapDataLength) {
199
+ const offset = _offset;
200
+ at += offset;
201
+ const base = at;
202
+ const map = {};
203
+ for (let i = 0; i < mapDataLength; ++i) {
204
+ const key = decodeUtf8String(at, to);
205
+ at += _offset;
206
+ map[key] = decode(at, to);
207
+ at += _offset;
208
+ }
209
+ _offset = offset + (at - base);
210
+ return map;
211
+ }
212
+ function decodeList(at, to) {
213
+ const listDataLength = decodeCount$1(at, to);
214
+ const offset = _offset;
215
+ at += offset;
216
+ const base = at;
217
+ const list = Array(listDataLength);
218
+ for (let i = 0; i < listDataLength; ++i) {
219
+ list[i] = decode(at, to);
220
+ at += _offset;
221
+ }
222
+ _offset = offset + (at - base);
223
+ return list;
224
+ }
225
+ function decodeUtf8String(at, to) {
226
+ const length = decodeCount$1(at, to);
227
+ const offset = _offset;
228
+ at += offset;
229
+ if (to - at < length) {
230
+ overflow$1(length);
231
+ }
232
+ _offset = offset + length;
233
+ if (length < 24) {
234
+ return decodeUtf8StringCached(at, length);
235
+ }
236
+ if (isBuffer$1) {
237
+ return payload$1.toString("utf-8", at, at + length);
238
+ }
239
+ return textDecoder$1.decode(payload$1.subarray(at, at + length));
240
+ }
241
+ const stringCache$1 = new Array(2048);
242
+ const stringCacheEpochs$1 = new Uint16Array(2048);
243
+ let cacheEpoch$1 = 0;
244
+ function advanceDecodingEpoch() {
245
+ cacheEpoch$1 = (cacheEpoch$1 + 1) & 0b1111_1111_1111_1111;
246
+ }
247
+ function decodeUtf8StringCached(at, length) {
248
+ let h = length;
249
+ for (let i = 0; i < length; ++i) {
250
+ h = (h * 31 + payload$1[at + i]) | 0;
251
+ }
252
+ const slot = (h >>> 0) & 2047;
253
+ const cached = stringCache$1[slot];
254
+ if (cached !== undefined) {
255
+ if (cached.length === length) {
256
+ let match = true;
257
+ for (let i = 0; i < length; ++i) {
258
+ if (cached.charCodeAt(i) !== payload$1[at + i]) {
259
+ match = false;
260
+ break;
261
+ }
262
+ }
263
+ if (match) {
264
+ stringCacheEpochs$1[slot] = cacheEpoch$1;
265
+ return cached;
266
+ }
267
+ }
268
+ }
269
+ const result = isBuffer$1
270
+ ? payload$1.toString("utf-8", at, at + length)
271
+ : textDecoder$1.decode(payload$1.subarray(at, at + length));
272
+ if (stringCacheEpochs$1[slot] !== cacheEpoch$1) {
273
+ stringCache$1[slot] = result;
274
+ stringCacheEpochs$1[slot] = cacheEpoch$1;
275
+ }
276
+ return result;
277
+ }
278
+ function decodeUnstructuredByteString(at, to) {
279
+ const length = decodeCount$1(at, to);
280
+ const offset = _offset;
281
+ at += offset;
282
+ if (to - at < length) {
283
+ overflow$1(length);
284
+ }
285
+ const value = payload$1.subarray(at, at + length);
286
+ _offset = offset + length;
287
+ return value;
288
+ }
289
+ function decodeTagValue(at, to, minor, unsignedInt, offset) {
290
+ if (minor === 2 || minor === 3) {
291
+ const length = decodeCount$1(at + offset, to);
292
+ let b = BigInt(0);
293
+ const start = at + offset + _offset;
294
+ for (let i = start; i < start + length; ++i) {
295
+ b = (b << BigInt(8)) | BigInt(payload$1[i]);
296
+ }
297
+ _offset = offset + _offset + length;
298
+ return minor === 3 ? -b - BigInt(1) : b;
299
+ }
300
+ else if (minor === 4) {
301
+ const decimalFraction = decode(at + offset, to);
302
+ const [rawExponent, mantissa] = decimalFraction;
303
+ const normalizer = mantissa < 0 ? -1 : 1;
304
+ const absMantissa = BigInt(normalizer) * BigInt(mantissa);
305
+ const mantissaDigits = String(absMantissa);
306
+ const sign = mantissa < 0 ? "-" : "";
307
+ let numericString;
308
+ const isSmallExponent = typeof rawExponent === "number" && Math.abs(rawExponent) <= 2 ** 28;
309
+ if (isSmallExponent) {
310
+ const exponent = rawExponent;
311
+ const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + mantissaDigits;
312
+ numericString =
313
+ exponent === 0
314
+ ? mantissaStr
315
+ : mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
316
+ numericString = numericString.replace(/^0+/g, "");
317
+ if (numericString === "") {
318
+ numericString = "0";
319
+ }
320
+ if (numericString[0] === ".") {
321
+ numericString = "0" + numericString;
322
+ }
323
+ numericString = sign + numericString;
324
+ }
325
+ else {
326
+ const bigExponent = BigInt(rawExponent);
327
+ if (mantissaDigits.length === 1) {
328
+ numericString = sign + mantissaDigits + "e" + String(bigExponent);
329
+ }
330
+ else {
331
+ const adjustedExp = bigExponent + BigInt(mantissaDigits.length - 1);
332
+ numericString = sign + mantissaDigits[0] + "." + mantissaDigits.slice(1) + "e" + String(adjustedExp);
333
+ }
334
+ }
335
+ _offset = offset + _offset;
336
+ return nv(numericString);
337
+ }
338
+ else {
339
+ const value = decode(at + offset, to);
340
+ const valueOffset = _offset;
341
+ _offset = offset + valueOffset;
342
+ return tag({ tag: castBigInt$1(unsignedInt), value });
343
+ }
344
+ }
345
+ function decodeSpecial(at, to) {
346
+ const minor = payload$1[at] & 0b0001_1111;
347
+ switch (minor) {
348
+ case specialTrue:
349
+ case specialFalse:
350
+ _offset = 1;
351
+ return minor === specialTrue;
352
+ case specialNull:
353
+ _offset = 1;
354
+ return null;
355
+ case specialUndefined:
356
+ _offset = 1;
357
+ return null;
358
+ case extendedFloat16:
359
+ if (to - at < 3) {
360
+ throw new Error("incomplete float16 at end of buf.");
361
+ }
362
+ _offset = 3;
363
+ return bytesToFloat16$1(payload$1[at + 1], payload$1[at + 2]);
364
+ case extendedFloat32:
365
+ if (to - at < 5) {
366
+ throw new Error("incomplete float32 at end of buf.");
367
+ }
368
+ _offset = 5;
369
+ return dataView$2.getFloat32(at + 1);
370
+ case extendedFloat64:
371
+ if (to - at < 9) {
372
+ throw new Error("incomplete float64 at end of buf.");
373
+ }
374
+ _offset = 9;
375
+ return dataView$2.getFloat64(at + 1);
376
+ default:
377
+ unexpectedMinor(minor);
378
+ }
379
+ }
380
+ function decodeCount$1(at, to) {
381
+ const minor = payload$1[at] & 0b0001_1111;
382
+ if (minor < 24) {
383
+ _offset = 1;
384
+ return minor;
385
+ }
386
+ switch (minor) {
387
+ case extendedOneByte:
388
+ if (to - at < 2) {
389
+ overflow$1(1);
390
+ }
391
+ _offset = 2;
392
+ return payload$1[at + 1];
393
+ case extendedFloat16:
394
+ if (to - at < 3) {
395
+ overflow$1(2);
396
+ }
397
+ _offset = 3;
398
+ return dataView$2.getUint16(at + 1);
399
+ case extendedFloat32:
400
+ if (to - at < 5) {
401
+ overflow$1(4);
402
+ }
403
+ _offset = 5;
404
+ return dataView$2.getUint32(at + 1);
405
+ case extendedFloat64:
406
+ if (to - at < 9) {
407
+ overflow$1(8);
408
+ }
409
+ _offset = 9;
410
+ return demote(dataView$2.getBigUint64(at + 1));
411
+ default:
412
+ unexpectedMinor(minor);
413
+ }
414
+ }
415
+ function decodeMapIndefinite(at, to) {
416
+ at += 1;
417
+ const base = at;
418
+ const map = {};
419
+ for (; at < to;) {
420
+ if (payload$1[at] === 0b1111_1111) {
421
+ _offset = at - base + 2;
422
+ return map;
423
+ }
424
+ const key = decodeUtf8String(at, to);
425
+ at += _offset;
426
+ map[key] = decode(at, to);
427
+ at += _offset;
428
+ }
429
+ throw new Error("expected break marker.");
430
+ }
431
+ function decodeListIndefinite(at, to) {
432
+ at += 1;
433
+ const list = [];
434
+ for (const base = at; at < to;) {
435
+ if (payload$1[at] === 0b1111_1111) {
436
+ _offset = at - base + 2;
437
+ return list;
438
+ }
439
+ list.push(decode(at, to));
440
+ at += _offset;
441
+ }
442
+ throw new Error("expected break marker.");
443
+ }
444
+ function decodeUtf8StringIndefinite(at, to) {
445
+ at += 1;
446
+ const vector = [];
447
+ for (const base = at; at < to;) {
448
+ if (payload$1[at] === 0b1111_1111) {
449
+ const data = alloc(vector.length);
450
+ data.set(vector, 0);
451
+ _offset = at - base + 2;
452
+ if (USE_BUFFER$3) {
453
+ return data.toString("utf-8", 0, data.length);
454
+ }
455
+ return textDecoder$1.decode(data);
456
+ }
457
+ const major = (payload$1[at] & 0b1110_0000) >> 5;
458
+ const minor = payload$1[at] & 0b0001_1111;
459
+ if (major !== majorUtf8String) {
460
+ unexpectedMajorInIndefiniteString(major);
461
+ }
462
+ if (minor === minorIndefinite) {
463
+ throw new Error("nested indefinite string.");
464
+ }
465
+ const bytes = decodeUnstructuredByteString(at, to);
466
+ const length = _offset;
467
+ at += length;
468
+ for (let i = 0; i < bytes.length; ++i) {
469
+ vector.push(bytes[i]);
470
+ }
471
+ }
472
+ throw new Error("expected break marker.");
473
+ }
474
+ function decodeUnstructuredByteStringIndefinite(at, to) {
475
+ at += 1;
476
+ const vector = [];
477
+ for (const base = at; at < to;) {
478
+ if (payload$1[at] === 0b1111_1111) {
479
+ const data = alloc(vector.length);
480
+ data.set(vector, 0);
481
+ _offset = at - base + 2;
482
+ return data;
483
+ }
484
+ const major = (payload$1[at] & 0b1110_0000) >> 5;
485
+ const minor = payload$1[at] & 0b0001_1111;
486
+ if (major !== majorUnstructuredByteString) {
487
+ unexpectedMajorInIndefiniteString(major);
488
+ }
489
+ if (minor === minorIndefinite) {
490
+ throw new Error("nested indefinite string.");
491
+ }
492
+ const bytes = decodeUnstructuredByteString(at, to);
493
+ const length = _offset;
494
+ at += length;
495
+ for (let i = 0; i < bytes.length; ++i) {
496
+ vector.push(bytes[i]);
497
+ }
498
+ }
499
+ throw new Error("expected break marker.");
500
+ }
501
+ function castBigInt$1(bigInt) {
502
+ if (typeof bigInt === "number") {
503
+ return bigInt;
504
+ }
505
+ const num = Number(bigInt);
506
+ if (Number.MIN_SAFE_INTEGER <= num && num <= Number.MAX_SAFE_INTEGER) {
507
+ return num;
508
+ }
509
+ return bigInt;
510
+ }
511
+ function demote(bigInteger) {
512
+ const num = Number(bigInteger);
513
+ if (num < Number.MIN_SAFE_INTEGER || Number.MAX_SAFE_INTEGER < num) {
514
+ console.warn(new Error(`@smithy/core/cbor - truncating BigInt(${bigInteger}) to ${num} with loss of precision.`));
515
+ }
516
+ return num;
517
+ }
518
+ function overflow$1(n) {
519
+ throw new Error(`length ${n} greater than remaining buf len.`);
520
+ }
521
+ function unexpectedMinor(minor) {
522
+ throw new Error(`unexpected minor value ${minor}.`);
523
+ }
524
+ function unexpectedMajorInIndefiniteString(major) {
525
+ throw new Error(`unexpected major type ${major} in indefinite string.`);
526
+ }
527
+
528
+ const USE_BUFFER$2 = typeof Buffer !== "undefined";
529
+ const encodeStringCache = new Map();
530
+ let encodeCacheEpoch$1 = 0;
531
+ let encodeCacheSaturated$1 = false;
532
+ const initialSize = 2048;
533
+ let data = alloc(initialSize);
534
+ let dataView$1 = new DataView(data.buffer, data.byteOffset, data.byteLength);
535
+ let cursor$1 = 0;
536
+ function encode(_input) {
537
+ const encodeStack = [_input];
538
+ while (encodeStack.length) {
539
+ const input = encodeStack.pop();
540
+ if (typeof input === "string") {
541
+ const len = input.length;
542
+ if (USE_BUFFER$2) {
543
+ ensureSpace(len * 3 + 9);
544
+ if (len > 23) {
545
+ encodeHeader$1(majorUtf8String, Buffer.byteLength(input));
546
+ cursor$1 += data.write(input, cursor$1);
547
+ }
548
+ else {
549
+ encodeStringCached(input);
550
+ }
551
+ }
552
+ else {
553
+ const maxBytes = len * 3;
554
+ ensureSpace(maxBytes + 9);
555
+ const headerPos = cursor$1;
556
+ const result = new TextEncoder().encodeInto(input, data.subarray(cursor$1 + 9));
557
+ const byteLen = result.written;
558
+ let headerSize;
559
+ if (byteLen < 24) {
560
+ headerSize = 1;
561
+ }
562
+ else if (byteLen < 256) {
563
+ headerSize = 2;
564
+ }
565
+ else if (byteLen < 65536) {
566
+ headerSize = 3;
567
+ }
568
+ else if (byteLen < 4294967296) {
569
+ headerSize = 5;
570
+ }
571
+ else {
572
+ headerSize = 9;
573
+ }
574
+ if (headerSize < 9) {
575
+ data.copyWithin(headerPos + headerSize, headerPos + 9, headerPos + 9 + byteLen);
576
+ }
577
+ cursor$1 = headerPos;
578
+ encodeInteger(majorUtf8String, byteLen);
579
+ cursor$1 += byteLen;
580
+ }
581
+ continue;
582
+ }
583
+ if (data.byteLength - cursor$1 < 9) {
584
+ ensureSpace(64);
585
+ }
586
+ if (typeof input === "number") {
587
+ if (Number.isInteger(input) && input >= -9007199254740992 && input <= 0x1fffffffffffff) {
588
+ const nonNegative = input >= 0;
589
+ const major = nonNegative ? majorUint64 : majorNegativeInt64;
590
+ const value = nonNegative ? input : -input - 1;
591
+ if (value < 24) {
592
+ data[cursor$1++] = (major << 5) | value;
593
+ }
594
+ else if (value < 256) {
595
+ data[cursor$1++] = (major << 5) | 24;
596
+ data[cursor$1++] = value;
597
+ }
598
+ else if (value < 65536) {
599
+ data[cursor$1++] = (major << 5) | extendedFloat16;
600
+ data[cursor$1++] = value >> 8;
601
+ data[cursor$1++] = value & 0xff;
602
+ }
603
+ else if (value < 4294967296) {
604
+ data[cursor$1++] = (major << 5) | extendedFloat32;
605
+ dataView$1.setUint32(cursor$1, value);
606
+ cursor$1 += 4;
607
+ }
608
+ else {
609
+ data[cursor$1++] = (major << 5) | extendedFloat64;
610
+ const hi = (value / 4294967296) | 0;
611
+ const lo = (value - hi * 4294967296) | 0;
612
+ dataView$1.setUint32(cursor$1, hi);
613
+ dataView$1.setUint32(cursor$1 + 4, lo);
614
+ cursor$1 += 8;
615
+ }
616
+ continue;
617
+ }
618
+ data[cursor$1++] = (majorSpecial << 5) | extendedFloat64;
619
+ dataView$1.setFloat64(cursor$1, input);
620
+ cursor$1 += 8;
621
+ continue;
622
+ }
623
+ else if (typeof input === "bigint") {
624
+ const nonNegative = input >= 0;
625
+ const major = nonNegative ? majorUint64 : majorNegativeInt64;
626
+ const value = nonNegative ? input : -input - BigInt(1);
627
+ if (value < BigInt("18446744073709551616")) {
628
+ const n = Number(value);
629
+ if (n < 4294967296) {
630
+ encodeInteger(major, n);
631
+ }
632
+ else {
633
+ data[cursor$1++] = (major << 5) | extendedFloat64;
634
+ dataView$1.setBigUint64(cursor$1, value);
635
+ cursor$1 += 8;
636
+ }
637
+ }
638
+ else {
639
+ const binaryBigInt = value.toString(2);
640
+ const bigIntBytes = new Uint8Array(Math.ceil(binaryBigInt.length / 8));
641
+ let b = value;
642
+ let i = 0;
643
+ while (bigIntBytes.byteLength - ++i >= 0) {
644
+ bigIntBytes[bigIntBytes.byteLength - i] = Number(b & BigInt(255));
645
+ b >>= BigInt(8);
646
+ }
647
+ ensureSpace(bigIntBytes.byteLength * 2 + 16);
648
+ data[cursor$1++] = nonNegative ? 0b110_00010 : 0b110_00011;
649
+ encodeHeader$1(majorUnstructuredByteString, bigIntBytes.byteLength);
650
+ data.set(bigIntBytes, cursor$1);
651
+ cursor$1 += bigIntBytes.byteLength;
652
+ }
653
+ continue;
654
+ }
655
+ else if (input === null) {
656
+ data[cursor$1++] = (majorSpecial << 5) | specialNull;
657
+ continue;
658
+ }
659
+ else if (typeof input === "boolean") {
660
+ data[cursor$1++] = (majorSpecial << 5) | (input ? specialTrue : specialFalse);
661
+ continue;
662
+ }
663
+ else if (typeof input === "undefined") {
664
+ throw new Error("@smithy/core/cbor: client may not serialize undefined value.");
665
+ }
666
+ else if (Array.isArray(input)) {
667
+ encodeInteger(majorList, input.length);
668
+ ensureSpace(input.length * 9 + 64);
669
+ for (let i = input.length - 1; i >= 0; --i) {
670
+ encodeStack.push(input[i]);
671
+ }
672
+ continue;
673
+ }
674
+ else if (typeof input.byteLength === "number") {
675
+ ensureSpace(input.length * 2 + 9);
676
+ encodeInteger(majorUnstructuredByteString, input.length);
677
+ data.set(input, cursor$1);
678
+ cursor$1 += input.byteLength;
679
+ continue;
680
+ }
681
+ else if (typeof input === "object") {
682
+ if (input instanceof NumericValue) {
683
+ let str = input.string;
684
+ let expOffset = BigInt(0);
685
+ const eIndex = str.search(/[eE]/);
686
+ if (eIndex !== -1) {
687
+ expOffset = BigInt(str.slice(eIndex + 1));
688
+ str = str.slice(0, eIndex);
689
+ }
690
+ const decimalIndex = str.indexOf(".");
691
+ const fractionDigits = decimalIndex === -1 ? 0 : str.length - decimalIndex - 1;
692
+ const exponent = expOffset - BigInt(fractionDigits);
693
+ const mantissa = BigInt(str.replace(".", ""));
694
+ data[cursor$1++] = 0b110_00100;
695
+ encodeInteger(majorList, 2);
696
+ encodeStack.push(mantissa);
697
+ encodeStack.push(exponent >= -0x20000000000000n && exponent <= 0x1fffffffffffffn ? Number(exponent) : exponent);
698
+ continue;
699
+ }
700
+ if (input[tagSymbol]) {
701
+ if ("tag" in input && "value" in input) {
702
+ encodeStack.push(input.value);
703
+ encodeHeader$1(majorTag, input.tag);
704
+ continue;
705
+ }
706
+ else {
707
+ throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: " + JSON.stringify(input));
708
+ }
709
+ }
710
+ const keys = Object.keys(input);
711
+ const len = keys.length;
712
+ encodeInteger(majorMap, len);
713
+ for (let i = len - 1; i >= 0; --i) {
714
+ encodeStack.push(input[keys[i]]);
715
+ encodeStack.push(keys[i]);
716
+ }
717
+ continue;
718
+ }
719
+ throw new Error(`data type ${input?.constructor?.name ?? typeof input} not compatible for encoding.`);
720
+ }
721
+ }
722
+ function advanceEncodingEpoch() {
723
+ encodeCacheEpoch$1 = (encodeCacheEpoch$1 + 1) & 0b1111_1111_1111_1111;
724
+ encodeCacheSaturated$1 = false;
725
+ }
726
+ function toUint8Array() {
727
+ const out = alloc(cursor$1);
728
+ out.set(data.subarray(0, cursor$1), 0);
729
+ cursor$1 = 0;
730
+ return out;
731
+ }
732
+ function resize(size) {
733
+ const old = data;
734
+ data = alloc(size);
735
+ if (old) {
736
+ if (old.copy) {
737
+ old.copy(data, 0, 0, old.byteLength);
738
+ }
739
+ else {
740
+ data.set(old, 0);
741
+ }
742
+ }
743
+ dataView$1 = new DataView(data.buffer, data.byteOffset, data.byteLength);
744
+ }
745
+ function encodeStringCached(input) {
746
+ const cached = encodeStringCache.get(input);
747
+ if (cached !== undefined) {
748
+ data.set(cached.bytes, cursor$1);
749
+ cursor$1 += cached.bytes.length;
750
+ cached.epoch = encodeCacheEpoch$1;
751
+ return;
752
+ }
753
+ const start = cursor$1;
754
+ const byteLen = Buffer.byteLength(input);
755
+ encodeInteger(majorUtf8String, byteLen);
756
+ cursor$1 += data.write(input, cursor$1);
757
+ const bytes = Uint8Array.prototype.slice.call(data, start, cursor$1);
758
+ if (encodeStringCache.size >= 2048) {
759
+ if (encodeCacheSaturated$1) {
760
+ return;
761
+ }
762
+ let evicted = 0;
763
+ for (const [key, entry] of encodeStringCache) {
764
+ if (evicted >= 1024) {
765
+ break;
766
+ }
767
+ if (entry.epoch !== encodeCacheEpoch$1) {
768
+ encodeStringCache.delete(key);
769
+ evicted++;
770
+ }
771
+ }
772
+ if (evicted === 0) {
773
+ encodeCacheSaturated$1 = true;
774
+ return;
775
+ }
776
+ }
777
+ if (encodeStringCache.size < 2048) {
778
+ encodeStringCache.set(input, { epoch: encodeCacheEpoch$1, bytes });
779
+ }
780
+ }
781
+ function ensureSpace(bytes) {
782
+ const remaining = data.byteLength - cursor$1;
783
+ if (remaining < bytes) {
784
+ if (cursor$1 < 16_000_000) {
785
+ resize(Math.max(data.byteLength * 4, data.byteLength + bytes));
786
+ }
787
+ else {
788
+ resize(data.byteLength + bytes + 16_000_000);
789
+ }
790
+ }
791
+ }
792
+ function encodeHeader$1(major, value) {
793
+ if (value < 24) {
794
+ data[cursor$1++] = (major << 5) | value;
795
+ }
796
+ else if (value < 256) {
797
+ data[cursor$1++] = (major << 5) | 24;
798
+ data[cursor$1++] = value;
799
+ }
800
+ else if (value < 65536) {
801
+ data[cursor$1++] = (major << 5) | extendedFloat16;
802
+ dataView$1.setUint16(cursor$1, value);
803
+ cursor$1 += 2;
804
+ }
805
+ else if (value < 4294967296) {
806
+ data[cursor$1++] = (major << 5) | extendedFloat32;
807
+ dataView$1.setUint32(cursor$1, value);
808
+ cursor$1 += 4;
809
+ }
810
+ else {
811
+ data[cursor$1++] = (major << 5) | extendedFloat64;
812
+ dataView$1.setBigUint64(cursor$1, typeof value === "bigint" ? value : BigInt(value));
813
+ cursor$1 += 8;
814
+ }
815
+ }
816
+ function encodeInteger(major, value) {
817
+ if (value < 24) {
818
+ data[cursor$1++] = (major << 5) | value;
819
+ }
820
+ else if (value < 256) {
821
+ data[cursor$1++] = (major << 5) | 24;
822
+ data[cursor$1++] = value;
823
+ }
824
+ else if (value < 65536) {
825
+ data[cursor$1++] = (major << 5) | extendedFloat16;
826
+ data[cursor$1++] = value >> 8;
827
+ data[cursor$1++] = value & 0xff;
828
+ }
829
+ else if (value < 4294967296) {
830
+ data[cursor$1++] = (major << 5) | extendedFloat32;
831
+ dataView$1.setUint32(cursor$1, value);
832
+ cursor$1 += 4;
833
+ }
834
+ else {
835
+ data[cursor$1++] = (major << 5) | extendedFloat64;
836
+ const hi = (value / 4294967296) | 0;
837
+ const lo = (value - hi * 4294967296) | 0;
838
+ dataView$1.setUint32(cursor$1, hi);
839
+ dataView$1.setUint32(cursor$1 + 4, lo);
840
+ cursor$1 += 8;
841
+ }
842
+ }
843
+
844
+ const cbor = {
845
+ deserialize(payload) {
846
+ advanceDecodingEpoch();
847
+ setPayload(payload);
848
+ return decode(0, payload.length);
849
+ },
850
+ serialize(input) {
851
+ advanceEncodingEpoch();
852
+ try {
853
+ encode(input);
854
+ return toUint8Array();
855
+ }
856
+ catch (e) {
857
+ toUint8Array();
858
+ throw e;
859
+ }
860
+ },
861
+ resizeEncodingBuffer(size) {
862
+ resize(size);
863
+ },
864
+ };
865
+
866
+ const parseCborBody = (streamBody, context) => {
867
+ return collectBody(streamBody, context).then(async (bytes) => {
868
+ if (bytes.length) {
869
+ try {
870
+ return cbor.deserialize(bytes);
871
+ }
872
+ catch (e) {
873
+ Object.defineProperty(e, "$responseBodyText", {
874
+ value: context.utf8Encoder(bytes),
875
+ });
876
+ throw e;
877
+ }
878
+ }
879
+ return {};
880
+ });
881
+ };
882
+ const dateToTag = (date) => {
883
+ return tag({
884
+ tag: 1,
885
+ value: date.getTime() / 1000,
886
+ });
887
+ };
888
+ const parseCborErrorBody = async (errorBody, context) => {
889
+ const value = await parseCborBody(errorBody, context);
890
+ value.message = value.message ?? value.Message;
891
+ return value;
892
+ };
893
+ const loadSmithyRpcV2CborErrorCode = (output, data) => {
894
+ const sanitizeErrorCode = (rawValue) => {
895
+ let cleanValue = rawValue;
896
+ if (typeof cleanValue === "number") {
897
+ cleanValue = cleanValue.toString();
898
+ }
899
+ if (cleanValue.indexOf(",") >= 0) {
900
+ cleanValue = cleanValue.split(",")[0];
901
+ }
902
+ if (cleanValue.indexOf(":") >= 0) {
903
+ cleanValue = cleanValue.split(":")[0];
904
+ }
905
+ if (cleanValue.indexOf("#") >= 0) {
906
+ cleanValue = cleanValue.split("#")[1];
907
+ }
908
+ return cleanValue;
909
+ };
910
+ if (data["__type"] !== undefined) {
911
+ return sanitizeErrorCode(data["__type"]);
912
+ }
913
+ let codeKey;
914
+ for (const key in data) {
915
+ if (!hasOwn(data, key))
916
+ continue;
917
+ if (key.toLowerCase() === "code") {
918
+ codeKey = key;
919
+ break;
920
+ }
921
+ }
922
+ if (codeKey && data[codeKey] !== undefined) {
923
+ return sanitizeErrorCode(data[codeKey]);
924
+ }
925
+ };
926
+ const checkCborResponse = (response) => {
927
+ if (String(response.headers["smithy-protocol"]).toLowerCase() !== "rpc-v2-cbor") {
928
+ throw new Error("Malformed RPCv2 CBOR response, status: " + response.statusCode);
929
+ }
930
+ };
931
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
932
+ const endpoint = await context.endpoint();
933
+ const { hostname, protocol = "https", port, path: basePath } = endpoint;
934
+ const contents = {
935
+ protocol,
936
+ hostname,
937
+ port,
938
+ method: "POST",
939
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
940
+ headers: {
941
+ ...headers,
942
+ },
943
+ };
944
+ if (resolvedHostname !== undefined) {
945
+ contents.hostname = resolvedHostname;
946
+ }
947
+ if (endpoint.headers) {
948
+ for (const name in endpoint.headers) {
949
+ if (!hasOwn(endpoint.headers, name))
950
+ continue;
951
+ contents.headers[name] = endpoint.headers[name];
952
+ }
953
+ }
954
+ if (body !== undefined) {
955
+ contents.body = body;
956
+ try {
957
+ contents.headers["content-length"] = String(calculateBodyLength(body));
958
+ }
959
+ catch (ignored) { }
960
+ }
961
+ return new HttpRequest(contents);
962
+ };
963
+
964
+ class CborShapeSerializer2 extends SerdeContext {
965
+ write(schema, value) {
966
+ cursor = 0;
967
+ const ns = NormalizedSchema.of(schema);
968
+ writeValue(ns, value, undefined, this.serdeContext);
969
+ }
970
+ flush() {
971
+ const result = buf.subarray(0, cursor);
972
+ cursor = 0;
973
+ buf = allocUnsafe(INITIAL_BUFFER_SIZE);
974
+ view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
975
+ return result;
976
+ }
977
+ }
978
+ const CBOR_STRUCT_CACHE = Symbol.for("@smithy/cbor-struct-cache");
979
+ function loadCborStructIterator(ns) {
980
+ const schema = ns.getSchema();
981
+ const existing = schema[CBOR_STRUCT_CACHE];
982
+ if (existing) {
983
+ return existing;
984
+ }
985
+ const memberNames = [];
986
+ const memberSchemas = [];
987
+ for (const [name, memberSchema] of ns.structIterator()) {
988
+ memberNames.push(name);
989
+ memberSchemas.push(memberSchema);
990
+ }
991
+ const encodedKeys = new Array(memberNames.length);
992
+ for (let i = 0; i < memberNames.length; ++i) {
993
+ encodedKeys[i] = encodeCborStringKey(memberNames[i]);
994
+ }
995
+ const cache = { memberNames, memberSchemas, encodedKeys };
996
+ schema[CBOR_STRUCT_CACHE] = cache;
997
+ return cache;
998
+ }
999
+ function encodeCborStringKey(s) {
1000
+ let utf8Bytes;
1001
+ if (USE_BUFFER$1) {
1002
+ utf8Bytes = Buffer.from(s, "utf-8");
1003
+ }
1004
+ else {
1005
+ utf8Bytes = new TextEncoder().encode(s);
1006
+ }
1007
+ const byteLen = utf8Bytes.length;
1008
+ let headerSize;
1009
+ if (byteLen < 24) {
1010
+ headerSize = 1;
1011
+ }
1012
+ else if (byteLen < 256) {
1013
+ headerSize = 2;
1014
+ }
1015
+ else {
1016
+ headerSize = 3;
1017
+ }
1018
+ const result = new Uint8Array(headerSize + byteLen);
1019
+ if (headerSize === 1) {
1020
+ result[0] = (majorUtf8String << 5) | byteLen;
1021
+ }
1022
+ else if (headerSize === 2) {
1023
+ result[0] = (majorUtf8String << 5) | 24;
1024
+ result[1] = byteLen;
1025
+ }
1026
+ else {
1027
+ result[0] = (majorUtf8String << 5) | extendedFloat16;
1028
+ result[1] = byteLen >> 8;
1029
+ result[2] = byteLen & 0xff;
1030
+ }
1031
+ result.set(utf8Bytes, headerSize);
1032
+ return result;
1033
+ }
1034
+ const USE_BUFFER$1 = typeof Buffer !== "undefined";
1035
+ const textEncoder = new TextEncoder();
1036
+ const INITIAL_BUFFER_SIZE = 2048;
1037
+ let buf = USE_BUFFER$1 ? Buffer.allocUnsafe(INITIAL_BUFFER_SIZE) : new Uint8Array(INITIAL_BUFFER_SIZE);
1038
+ let view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
1039
+ let cursor = 0;
1040
+ const STRING_CACHE_MAX = 2048;
1041
+ const stringEncodeCache = new Map();
1042
+ let encodeCacheEpoch = 0;
1043
+ let encodeCacheSaturated = false;
1044
+ function allocUnsafe(size) {
1045
+ return USE_BUFFER$1 ? Buffer.allocUnsafe(size) : new Uint8Array(size);
1046
+ }
1047
+ function writeValue(ns, value, container, serdeContext) {
1048
+ if (value == null) {
1049
+ if (value === undefined && ns.isIdempotencyToken()) {
1050
+ writeString(generateIdempotencyToken());
1051
+ return;
1052
+ }
1053
+ ensure(1);
1054
+ buf[cursor++] = (majorSpecial << 5) | specialNull;
1055
+ return;
1056
+ }
1057
+ if (ns.isUnitSchema()) {
1058
+ ensure(1);
1059
+ encodeHeader(majorMap, 0);
1060
+ return;
1061
+ }
1062
+ const isObject = typeof value === "object";
1063
+ if (isObject) {
1064
+ if (ns.isBlobSchema()) {
1065
+ if (value instanceof Uint8Array) {
1066
+ writeBytes(value);
1067
+ return;
1068
+ }
1069
+ }
1070
+ if (ns.isTimestampSchema()) {
1071
+ if (value instanceof Date) {
1072
+ writeTimestamp(value);
1073
+ return;
1074
+ }
1075
+ }
1076
+ if (ns.isStructSchema()) {
1077
+ writeStruct(ns, value, serdeContext);
1078
+ return;
1079
+ }
1080
+ if (Array.isArray(value) && (ns.isListSchema() || ns.isDocumentSchema())) {
1081
+ writeList(ns, value, ns.isDocumentSchema(), serdeContext);
1082
+ return;
1083
+ }
1084
+ if (ns.isMapSchema()) {
1085
+ writeMap(ns, value, false, serdeContext);
1086
+ return;
1087
+ }
1088
+ if (value instanceof Date) {
1089
+ writeTimestamp(value);
1090
+ return;
1091
+ }
1092
+ if (value instanceof Uint8Array) {
1093
+ writeBytes(value);
1094
+ return;
1095
+ }
1096
+ if (value instanceof NumericValue) {
1097
+ writeNumericValue(value);
1098
+ return;
1099
+ }
1100
+ if (value[tagSymbol]) {
1101
+ const tagged = value;
1102
+ writeTag(tagged.tag, tagged.value);
1103
+ return;
1104
+ }
1105
+ if (ns.isDocumentSchema()) {
1106
+ if (Array.isArray(value)) {
1107
+ writeList(ns, value, true, serdeContext);
1108
+ }
1109
+ else {
1110
+ writeMap(ns, value, true, serdeContext);
1111
+ }
1112
+ return;
1113
+ }
1114
+ if (ns.isBigDecimalSchema()) {
1115
+ writeUntypedValue(value);
1116
+ return;
1117
+ }
1118
+ writeMap(ns, value, true, serdeContext);
1119
+ return;
1120
+ }
1121
+ if (typeof value === "string") {
1122
+ if (ns.isBlobSchema()) {
1123
+ const bytes = (serdeContext?.base64Decoder ?? fromBase64)(value);
1124
+ writeBytes(bytes);
1125
+ return;
1126
+ }
1127
+ writeString(value);
1128
+ return;
1129
+ }
1130
+ if (typeof value === "number") {
1131
+ ensure(9);
1132
+ if (Number.isInteger(value) && value >= -9007199254740992 && value <= 0x1fffffffffffff) {
1133
+ writeInteger(value);
1134
+ }
1135
+ else {
1136
+ writeFloat64(value);
1137
+ }
1138
+ return;
1139
+ }
1140
+ if (typeof value === "boolean") {
1141
+ ensure(1);
1142
+ buf[cursor++] = (majorSpecial << 5) | (value ? specialTrue : specialFalse);
1143
+ return;
1144
+ }
1145
+ if (typeof value === "bigint") {
1146
+ writeBigInt(value);
1147
+ return;
1148
+ }
1149
+ writeString(String(value));
1150
+ }
1151
+ function writeStruct(ns, value, serdeContext) {
1152
+ if (ns.isUnionSchema()) {
1153
+ let wrote = false;
1154
+ for (const [memberName, memberSchema] of ns.structIterator()) {
1155
+ const item = value[memberName];
1156
+ if (item != null) {
1157
+ ensure(9);
1158
+ encodeHeader(majorMap, 1);
1159
+ writeString(memberName);
1160
+ writeValue(memberSchema, item, ns, serdeContext);
1161
+ wrote = true;
1162
+ break;
1163
+ }
1164
+ }
1165
+ if (!wrote) {
1166
+ const { $unknown } = value;
1167
+ if (Array.isArray($unknown)) {
1168
+ ensure(9);
1169
+ encodeHeader(majorMap, 1);
1170
+ writeString($unknown[0]);
1171
+ writeUntypedValue($unknown[1]);
1172
+ }
1173
+ else {
1174
+ ensure(9);
1175
+ encodeHeader(majorMap, 0);
1176
+ }
1177
+ }
1178
+ return;
1179
+ }
1180
+ const cache = loadCborStructIterator(ns);
1181
+ const { memberNames, memberSchemas, encodedKeys } = cache;
1182
+ const z = memberNames.length;
1183
+ let headerSize;
1184
+ if (z < 24) {
1185
+ headerSize = 1;
1186
+ }
1187
+ else if (z < 256) {
1188
+ headerSize = 2;
1189
+ }
1190
+ else {
1191
+ headerSize = 3;
1192
+ }
1193
+ ensure(headerSize);
1194
+ const headerPos = cursor;
1195
+ cursor += headerSize;
1196
+ let count = 0;
1197
+ for (let i = 0; i < z; ++i) {
1198
+ const item = value[memberNames[i]];
1199
+ if (item == null && !memberSchemas[i].isIdempotencyToken()) {
1200
+ continue;
1201
+ }
1202
+ const key = encodedKeys[i];
1203
+ ensure(key.length);
1204
+ buf.set(key, cursor);
1205
+ cursor += key.length;
1206
+ writeValue(memberSchemas[i], item, ns, serdeContext);
1207
+ ++count;
1208
+ }
1209
+ if (typeof value.__type === "string") {
1210
+ for (const k in value) {
1211
+ if (!hasOwn(value, k))
1212
+ continue;
1213
+ if (!memberNames.includes(k)) {
1214
+ writeString(k);
1215
+ writeUntypedValue(value[k]);
1216
+ ++count;
1217
+ }
1218
+ }
1219
+ }
1220
+ if (headerSize === 1) {
1221
+ buf[headerPos] = (majorMap << 5) | count;
1222
+ }
1223
+ else if (headerSize === 2) {
1224
+ buf[headerPos] = (majorMap << 5) | 24;
1225
+ buf[headerPos + 1] = count;
1226
+ }
1227
+ else {
1228
+ buf[headerPos] = (majorMap << 5) | extendedFloat16;
1229
+ buf[headerPos + 1] = count >> 8;
1230
+ buf[headerPos + 2] = count & 0xff;
1231
+ }
1232
+ }
1233
+ function writeList(ns, value, isDocument, serdeContext) {
1234
+ const sparse = !!ns.getMergedTraits().sparse;
1235
+ const valueSchema = ns.getValueSchema();
1236
+ if (isDocument || sparse) {
1237
+ const items = [];
1238
+ for (let i = 0; i < value.length; ++i) {
1239
+ const item = value[i];
1240
+ if (isDocument) {
1241
+ if (item !== undefined) {
1242
+ items.push(item);
1243
+ }
1244
+ }
1245
+ else {
1246
+ if (item != null || sparse) {
1247
+ items.push(item);
1248
+ }
1249
+ }
1250
+ }
1251
+ ensure(9);
1252
+ encodeHeader(majorList, items.length);
1253
+ for (let i = 0; i < items.length; ++i) {
1254
+ writeValue(valueSchema, items[i], undefined, serdeContext);
1255
+ }
1256
+ }
1257
+ else {
1258
+ let count = 0;
1259
+ for (let i = 0; i < value.length; ++i) {
1260
+ if (value[i] != null) {
1261
+ ++count;
1262
+ }
1263
+ }
1264
+ ensure(9);
1265
+ encodeHeader(majorList, count);
1266
+ for (let i = 0; i < value.length; ++i) {
1267
+ if (value[i] != null) {
1268
+ writeValue(valueSchema, value[i], undefined, serdeContext);
1269
+ }
1270
+ }
1271
+ }
1272
+ }
1273
+ function writeMap(ns, value, isDocument, serdeContext) {
1274
+ const sparse = !!ns.getMergedTraits().sparse;
1275
+ const valueSchema = ns.getValueSchema();
1276
+ const keys = [];
1277
+ for (const k in value) {
1278
+ if (!hasOwn(value, k))
1279
+ continue;
1280
+ const v = value[k];
1281
+ if (isDocument ? v !== undefined : v != null || sparse) {
1282
+ keys.push(k);
1283
+ }
1284
+ }
1285
+ ensure(9);
1286
+ encodeHeader(majorMap, keys.length);
1287
+ for (let i = 0; i < keys.length; ++i) {
1288
+ const k = keys[i];
1289
+ writeString(k);
1290
+ writeValue(valueSchema, value[k], undefined, serdeContext);
1291
+ }
1292
+ }
1293
+ function writeUntypedValue(value) {
1294
+ if (value == null) {
1295
+ ensure(1);
1296
+ buf[cursor++] = (majorSpecial << 5) | specialNull;
1297
+ return;
1298
+ }
1299
+ if (typeof value === "string") {
1300
+ writeString(value);
1301
+ return;
1302
+ }
1303
+ if (typeof value === "number") {
1304
+ ensure(9);
1305
+ if (Number.isInteger(value) && value >= -9007199254740992 && value <= 0x1fffffffffffff) {
1306
+ writeInteger(value);
1307
+ }
1308
+ else {
1309
+ writeFloat64(value);
1310
+ }
1311
+ return;
1312
+ }
1313
+ if (typeof value === "boolean") {
1314
+ ensure(1);
1315
+ buf[cursor++] = (majorSpecial << 5) | (value ? specialTrue : specialFalse);
1316
+ return;
1317
+ }
1318
+ if (typeof value === "bigint") {
1319
+ writeBigInt(value);
1320
+ return;
1321
+ }
1322
+ if (value instanceof Uint8Array) {
1323
+ writeBytes(value);
1324
+ return;
1325
+ }
1326
+ if (value instanceof Date) {
1327
+ writeTimestamp(value);
1328
+ return;
1329
+ }
1330
+ if (value instanceof NumericValue) {
1331
+ writeNumericValue(value);
1332
+ return;
1333
+ }
1334
+ if (value[tagSymbol]) {
1335
+ const tagged = value;
1336
+ writeTag(tagged.tag, tagged.value);
1337
+ return;
1338
+ }
1339
+ if (Array.isArray(value)) {
1340
+ ensure(9);
1341
+ encodeHeader(majorList, value.length);
1342
+ for (let i = 0; i < value.length; ++i) {
1343
+ writeUntypedValue(value[i]);
1344
+ }
1345
+ return;
1346
+ }
1347
+ if (typeof value === "object") {
1348
+ const keys = Object.keys(value);
1349
+ ensure(9);
1350
+ encodeHeader(majorMap, keys.length);
1351
+ for (let i = 0; i < keys.length; ++i) {
1352
+ writeString(keys[i]);
1353
+ writeUntypedValue(value[keys[i]]);
1354
+ }
1355
+ return;
1356
+ }
1357
+ writeString(String(value));
1358
+ }
1359
+ function ensure(n) {
1360
+ if (cursor + n > buf.length) {
1361
+ let newSize = buf.length * 2;
1362
+ while (newSize < cursor + n) {
1363
+ newSize *= 2;
1364
+ }
1365
+ const next = allocUnsafe(newSize);
1366
+ next.set(buf.subarray(0, cursor));
1367
+ buf = next;
1368
+ view = new DataView(next.buffer, next.byteOffset, next.byteLength);
1369
+ }
1370
+ }
1371
+ function encodeHeader(major, value) {
1372
+ if (value < 24) {
1373
+ buf[cursor++] = (major << 5) | value;
1374
+ }
1375
+ else if (value < 256) {
1376
+ buf[cursor++] = (major << 5) | 24;
1377
+ buf[cursor++] = value;
1378
+ }
1379
+ else if (value < 65536) {
1380
+ buf[cursor++] = (major << 5) | extendedFloat16;
1381
+ buf[cursor++] = value >> 8;
1382
+ buf[cursor++] = value & 0xff;
1383
+ }
1384
+ else if (value < 4294967296) {
1385
+ buf[cursor++] = (major << 5) | extendedFloat32;
1386
+ view.setUint32(cursor, value);
1387
+ cursor += 4;
1388
+ }
1389
+ else {
1390
+ buf[cursor++] = (major << 5) | extendedFloat64;
1391
+ const hi = (value / 4294967296) | 0;
1392
+ const lo = (value - hi * 4294967296) | 0;
1393
+ view.setUint32(cursor, hi);
1394
+ view.setUint32(cursor + 4, lo);
1395
+ cursor += 8;
1396
+ }
1397
+ }
1398
+ function encodeBigHeader(major, value) {
1399
+ const n = Number(value);
1400
+ if (n < 4294967296) {
1401
+ encodeHeader(major, n);
1402
+ return;
1403
+ }
1404
+ buf[cursor++] = (major << 5) | extendedFloat64;
1405
+ view.setBigUint64(cursor, value);
1406
+ cursor += 8;
1407
+ }
1408
+ function writeString(s) {
1409
+ const len = s.length;
1410
+ if (len <= 23) {
1411
+ const cached = stringEncodeCache.get(s);
1412
+ if (cached) {
1413
+ ensure(cached.bytes.length);
1414
+ buf.set(cached.bytes, cursor);
1415
+ cursor += cached.bytes.length;
1416
+ cached.epoch = encodeCacheEpoch;
1417
+ return;
1418
+ }
1419
+ const start = cursor;
1420
+ writeStringUncached(s, len);
1421
+ const end = cursor;
1422
+ const bytes = Uint8Array.prototype.slice.call(buf, start, end);
1423
+ if (stringEncodeCache.size >= STRING_CACHE_MAX) {
1424
+ if (encodeCacheSaturated) {
1425
+ return;
1426
+ }
1427
+ let evicted = 0;
1428
+ for (const [key, entry] of stringEncodeCache) {
1429
+ if (evicted >= 1024) {
1430
+ break;
1431
+ }
1432
+ if (entry.epoch !== encodeCacheEpoch) {
1433
+ stringEncodeCache.delete(key);
1434
+ ++evicted;
1435
+ }
1436
+ }
1437
+ if (evicted === 0) {
1438
+ encodeCacheSaturated = true;
1439
+ return;
1440
+ }
1441
+ }
1442
+ if (stringEncodeCache.size < STRING_CACHE_MAX) {
1443
+ stringEncodeCache.set(s, { epoch: encodeCacheEpoch, bytes });
1444
+ }
1445
+ return;
1446
+ }
1447
+ writeStringUncached(s, len);
1448
+ }
1449
+ function writeStringUncached(s, len) {
1450
+ if (USE_BUFFER$1) {
1451
+ const maxBytes = len * 3;
1452
+ ensure(maxBytes + 9);
1453
+ const byteLen = Buffer.byteLength(s);
1454
+ encodeHeader(majorUtf8String, byteLen);
1455
+ cursor += buf.write(s, cursor);
1456
+ }
1457
+ else {
1458
+ const maxBytes = len * 3;
1459
+ ensure(maxBytes + 9);
1460
+ const headerPos = cursor;
1461
+ const result = textEncoder.encodeInto(s, buf.subarray(headerPos + 9));
1462
+ const byteLen = result.written;
1463
+ let headerSize;
1464
+ if (byteLen < 24) {
1465
+ headerSize = 1;
1466
+ }
1467
+ else if (byteLen < 256) {
1468
+ headerSize = 2;
1469
+ }
1470
+ else if (byteLen < 65536) {
1471
+ headerSize = 3;
1472
+ }
1473
+ else if (byteLen < 4294967296) {
1474
+ headerSize = 5;
1475
+ }
1476
+ else {
1477
+ headerSize = 9;
1478
+ }
1479
+ if (headerSize < 9) {
1480
+ buf.copyWithin(headerPos + headerSize, headerPos + 9, headerPos + 9 + byteLen);
1481
+ }
1482
+ cursor = headerPos;
1483
+ encodeHeader(majorUtf8String, byteLen);
1484
+ cursor += byteLen;
1485
+ }
1486
+ }
1487
+ function writeFloat64(value) {
1488
+ ensure(9);
1489
+ buf[cursor++] = (majorSpecial << 5) | extendedFloat64;
1490
+ view.setFloat64(cursor, value);
1491
+ cursor += 8;
1492
+ }
1493
+ function writeInteger(value) {
1494
+ ensure(9);
1495
+ const nonNegative = value >= 0;
1496
+ const major = nonNegative ? majorUint64 : majorNegativeInt64;
1497
+ const abs = nonNegative ? value : -value - 1;
1498
+ encodeHeader(major, abs);
1499
+ }
1500
+ function writeBigInt(value) {
1501
+ const nonNegative = value >= 0;
1502
+ const major = nonNegative ? majorUint64 : majorNegativeInt64;
1503
+ const abs = nonNegative ? value : -value - BigInt(1);
1504
+ if (abs < BigInt("18446744073709551616")) {
1505
+ ensure(9);
1506
+ encodeBigHeader(major, abs);
1507
+ }
1508
+ else {
1509
+ const binaryStr = abs.toString(2);
1510
+ const byteLen = Math.ceil(binaryStr.length / 8);
1511
+ const bigIntBytes = new Uint8Array(byteLen);
1512
+ let b = abs;
1513
+ for (let i = byteLen - 1; i >= 0; --i) {
1514
+ bigIntBytes[i] = Number(b & BigInt(255));
1515
+ b >>= BigInt(8);
1516
+ }
1517
+ ensure(byteLen + 16);
1518
+ buf[cursor++] = nonNegative ? 0b110_00010 : 0b110_00011;
1519
+ encodeHeader(majorUnstructuredByteString, byteLen);
1520
+ buf.set(bigIntBytes, cursor);
1521
+ cursor += byteLen;
1522
+ }
1523
+ }
1524
+ function writeBytes(data) {
1525
+ ensure(data.length + 9);
1526
+ encodeHeader(majorUnstructuredByteString, data.length);
1527
+ buf.set(data, cursor);
1528
+ cursor += data.length;
1529
+ }
1530
+ function writeTag(tagValue, innerValue) {
1531
+ ensure(9);
1532
+ if (typeof tagValue === "bigint") {
1533
+ encodeBigHeader(majorTag, tagValue);
1534
+ }
1535
+ else {
1536
+ encodeHeader(majorTag, tagValue);
1537
+ }
1538
+ writeUntypedValue(innerValue);
1539
+ }
1540
+ function writeNumericValue(nv) {
1541
+ let str = nv.string;
1542
+ let expOffset = BigInt(0);
1543
+ const eIndex = str.search(/[eE]/);
1544
+ if (eIndex !== -1) {
1545
+ expOffset = BigInt(str.slice(eIndex + 1));
1546
+ str = str.slice(0, eIndex);
1547
+ }
1548
+ const decimalIndex = str.indexOf(".");
1549
+ const fractionDigits = decimalIndex === -1 ? 0 : str.length - decimalIndex - 1;
1550
+ const exponent = expOffset - BigInt(fractionDigits);
1551
+ const mantissa = BigInt(str.replace(".", ""));
1552
+ ensure(9);
1553
+ buf[cursor++] = 0b110_00100;
1554
+ encodeHeader(majorList, 2);
1555
+ ensure(9);
1556
+ if (exponent >= -0x20000000000000n && exponent <= 0x1fffffffffffffn) {
1557
+ writeInteger(Number(exponent));
1558
+ }
1559
+ else {
1560
+ writeBigInt(exponent);
1561
+ }
1562
+ writeBigInt(mantissa);
1563
+ }
1564
+ function writeTimestamp(date) {
1565
+ ensure(18);
1566
+ encodeHeader(majorTag, 1);
1567
+ const epochSecs = date.getTime() / 1000;
1568
+ if (Number.isInteger(epochSecs)) {
1569
+ writeInteger(epochSecs);
1570
+ }
1571
+ else {
1572
+ writeFloat64(epochSecs);
1573
+ }
1574
+ }
1575
+
1576
+ class CborShapeDeserializer2 extends SerdeContext {
1577
+ read(schema, bytes) {
1578
+ payload = bytes;
1579
+ isBuffer = USE_BUFFER && bytes instanceof Buffer;
1580
+ dataView = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
1581
+ pos = 0;
1582
+ end = bytes.length;
1583
+ cacheEpoch = (cacheEpoch + 1) & 0xffff;
1584
+ return readValue(NormalizedSchema.of(schema));
1585
+ }
1586
+ readValue(_schema, value) {
1587
+ return transformObject(NormalizedSchema.of(_schema), value);
1588
+ }
1589
+ }
1590
+ const USE_BUFFER = typeof Buffer !== "undefined";
1591
+ const textDecoder = new TextDecoder();
1592
+ let payload = new Uint8Array(0);
1593
+ let isBuffer = false;
1594
+ let dataView = new DataView(new ArrayBuffer(0));
1595
+ let pos = 0;
1596
+ let end = 0;
1597
+ const STRING_CACHE_SIZE = 2048;
1598
+ const stringCache = new Array(STRING_CACHE_SIZE);
1599
+ const stringCacheEpochs = new Uint16Array(STRING_CACHE_SIZE);
1600
+ let cacheEpoch = 0;
1601
+ function readValue(ns) {
1602
+ if (pos >= end) {
1603
+ throw new Error("unexpected end of CBOR payload.");
1604
+ }
1605
+ const major = (payload[pos] & 0b1110_0000) >> 5;
1606
+ const minor = payload[pos] & 0b0001_1111;
1607
+ if (minor === minorIndefinite && major >= 2 && major <= 5) {
1608
+ return readIndefinite(ns, major);
1609
+ }
1610
+ switch (major) {
1611
+ case majorUint64:
1612
+ return readUnsignedInt();
1613
+ case majorNegativeInt64:
1614
+ return readNegativeInt();
1615
+ case majorUnstructuredByteString:
1616
+ return readByteString();
1617
+ case majorUtf8String:
1618
+ return readUtf8String();
1619
+ case majorList:
1620
+ return readList(ns);
1621
+ case majorMap:
1622
+ return readMap(ns);
1623
+ case majorTag:
1624
+ return readTag();
1625
+ case majorSpecial:
1626
+ return readSpecial();
1627
+ default:
1628
+ throw new Error(`unexpected CBOR major type ${major}.`);
1629
+ }
1630
+ }
1631
+ function readList(ns) {
1632
+ const count = decodeCount();
1633
+ const memberSchema = ns.isListSchema() ? ns.getValueSchema() : ns;
1634
+ const list = Array(count);
1635
+ for (let i = 0; i < count; ++i) {
1636
+ list[i] = readValue(memberSchema);
1637
+ }
1638
+ return list;
1639
+ }
1640
+ function readMap(ns) {
1641
+ const count = decodeCount();
1642
+ if (ns.isStructSchema()) {
1643
+ const startPos = pos;
1644
+ return readStruct(ns, count, startPos);
1645
+ }
1646
+ const valueSchema = ns.isMapSchema() ? ns.getValueSchema() : ns;
1647
+ const map = {};
1648
+ for (let i = 0; i < count; ++i) {
1649
+ const key = readUtf8String();
1650
+ map[key] = readValue(valueSchema);
1651
+ }
1652
+ return map;
1653
+ }
1654
+ function readStruct(ns, count, startPos) {
1655
+ const isUnion = ns.isUnionSchema();
1656
+ const cache = loadCborStructIterator(ns);
1657
+ const { memberSchemas, encodedKeys, memberNames } = cache;
1658
+ const z = encodedKeys.length;
1659
+ const result = {};
1660
+ let unknownKey;
1661
+ let unknownValue;
1662
+ let unknownCount = 0;
1663
+ let hasType = false;
1664
+ let hint = 0;
1665
+ for (let i = 0; i < count; ++i) {
1666
+ const matchIdx = matchStructKey(encodedKeys, z, hint);
1667
+ if (matchIdx >= 0) {
1668
+ hint = matchIdx + 1;
1669
+ if (hint >= z) {
1670
+ hint = 0;
1671
+ }
1672
+ const val = readValue(memberSchemas[matchIdx]);
1673
+ if (val != null) {
1674
+ result[memberNames[matchIdx]] = val;
1675
+ }
1676
+ }
1677
+ else {
1678
+ const key = readUtf8String();
1679
+ const val = readValue(NormalizedSchema.of(15));
1680
+ if (key === "__type" && typeof val === "string") {
1681
+ hasType = true;
1682
+ }
1683
+ else {
1684
+ unknownKey = key;
1685
+ unknownValue = val;
1686
+ ++unknownCount;
1687
+ }
1688
+ }
1689
+ }
1690
+ if (isUnion) {
1691
+ let resultEmpty = true;
1692
+ for (const _ in result) {
1693
+ if (!hasOwn(result, _))
1694
+ continue;
1695
+ resultEmpty = false;
1696
+ break;
1697
+ }
1698
+ if (resultEmpty && unknownCount === 1) {
1699
+ result.$unknown = [unknownKey, unknownValue];
1700
+ }
1701
+ }
1702
+ else if (hasType) {
1703
+ pos = startPos;
1704
+ const docSchema = NormalizedSchema.of(15);
1705
+ for (let i = 0; i < count; ++i) {
1706
+ const key = readUtf8String();
1707
+ const val = readValue(docSchema);
1708
+ if (!(key in result)) {
1709
+ result[key] = val;
1710
+ }
1711
+ }
1712
+ }
1713
+ return result;
1714
+ }
1715
+ function readTag(ns) {
1716
+ const tagNum = decodeArgument();
1717
+ const tagNumber = typeof tagNum === "bigint" ? Number(tagNum) : tagNum;
1718
+ if (tagNumber === 1) {
1719
+ const docSchema = NormalizedSchema.of(15);
1720
+ const epochValue = readValue(docSchema);
1721
+ return _parseEpochTimestamp(epochValue);
1722
+ }
1723
+ if (tagNumber === 2 || tagNumber === 3) {
1724
+ const byteStr = readByteString();
1725
+ let b = BigInt(0);
1726
+ for (let i = 0; i < byteStr.length; ++i) {
1727
+ b = (b << BigInt(8)) | BigInt(byteStr[i]);
1728
+ }
1729
+ return tagNumber === 3 ? -b - BigInt(1) : b;
1730
+ }
1731
+ if (tagNumber === 4) {
1732
+ const docSchema = NormalizedSchema.of(15);
1733
+ const pair = readValue(docSchema);
1734
+ const [rawExponent, mantissa] = pair;
1735
+ const normalizer = mantissa < 0 ? -1 : 1;
1736
+ const absMantissa = BigInt(normalizer) * BigInt(mantissa);
1737
+ const mantissaDigits = String(absMantissa);
1738
+ const sign = mantissa < 0 ? "-" : "";
1739
+ let numericString;
1740
+ const isSmallExponent = typeof rawExponent === "number" && Math.abs(rawExponent) <= 2 ** 28;
1741
+ if (isSmallExponent) {
1742
+ const exponent = rawExponent;
1743
+ const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + mantissaDigits;
1744
+ numericString =
1745
+ exponent === 0
1746
+ ? mantissaStr
1747
+ : mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
1748
+ numericString = numericString.replace(/^0+/g, "");
1749
+ if (numericString === "") {
1750
+ numericString = "0";
1751
+ }
1752
+ if (numericString[0] === ".") {
1753
+ numericString = "0" + numericString;
1754
+ }
1755
+ numericString = sign + numericString;
1756
+ }
1757
+ else {
1758
+ const bigExponent = BigInt(rawExponent);
1759
+ if (mantissaDigits.length === 1) {
1760
+ numericString = sign + mantissaDigits + "e" + String(bigExponent);
1761
+ }
1762
+ else {
1763
+ const adjustedExp = bigExponent + BigInt(mantissaDigits.length - 1);
1764
+ numericString = sign + mantissaDigits[0] + "." + mantissaDigits.slice(1) + "e" + String(adjustedExp);
1765
+ }
1766
+ }
1767
+ return nv(numericString);
1768
+ }
1769
+ const docSchema = NormalizedSchema.of(15);
1770
+ const innerValue = readValue(docSchema);
1771
+ return { tag: castBigInt(tagNum), value: innerValue };
1772
+ }
1773
+ function readIndefinite(ns, major) {
1774
+ switch (major) {
1775
+ case majorUtf8String:
1776
+ return readUtf8StringIndefinite();
1777
+ case majorUnstructuredByteString:
1778
+ return readByteStringIndefinite();
1779
+ case majorList:
1780
+ return readListIndefinite(ns);
1781
+ case majorMap:
1782
+ return readMapIndefinite(ns);
1783
+ default:
1784
+ throw new Error(`unexpected indefinite length for major ${major}.`);
1785
+ }
1786
+ }
1787
+ function readUtf8StringIndefinite() {
1788
+ pos += 1;
1789
+ const chunks = [];
1790
+ let totalLen = 0;
1791
+ while (pos < end) {
1792
+ if (payload[pos] === 0xff) {
1793
+ pos += 1;
1794
+ const combined = new Uint8Array(totalLen);
1795
+ let offset = 0;
1796
+ for (let i = 0; i < chunks.length; ++i) {
1797
+ combined.set(chunks[i], offset);
1798
+ offset += chunks[i].length;
1799
+ }
1800
+ if (USE_BUFFER) {
1801
+ return Buffer.from(combined.buffer, combined.byteOffset, combined.byteLength).toString("utf-8");
1802
+ }
1803
+ return textDecoder.decode(combined);
1804
+ }
1805
+ const bytes = readByteString();
1806
+ chunks.push(bytes);
1807
+ totalLen += bytes.length;
1808
+ }
1809
+ throw new Error("expected break marker.");
1810
+ }
1811
+ function readByteStringIndefinite() {
1812
+ pos += 1;
1813
+ const chunks = [];
1814
+ let totalLen = 0;
1815
+ while (pos < end) {
1816
+ if (payload[pos] === 0xff) {
1817
+ pos += 1;
1818
+ const combined = new Uint8Array(totalLen);
1819
+ let offset = 0;
1820
+ for (let i = 0; i < chunks.length; ++i) {
1821
+ combined.set(chunks[i], offset);
1822
+ offset += chunks[i].length;
1823
+ }
1824
+ return combined;
1825
+ }
1826
+ const bytes = readByteString();
1827
+ chunks.push(bytes);
1828
+ totalLen += bytes.length;
1829
+ }
1830
+ throw new Error("expected break marker.");
1831
+ }
1832
+ function readListIndefinite(ns) {
1833
+ pos += 1;
1834
+ const memberSchema = ns.isListSchema() ? ns.getValueSchema() : ns;
1835
+ const list = [];
1836
+ while (pos < end) {
1837
+ if (payload[pos] === 0xff) {
1838
+ pos += 1;
1839
+ return list;
1840
+ }
1841
+ list.push(readValue(memberSchema));
1842
+ }
1843
+ throw new Error("expected break marker.");
1844
+ }
1845
+ function readMapIndefinite(ns) {
1846
+ pos += 1;
1847
+ if (ns.isStructSchema()) {
1848
+ const cache = loadCborStructIterator(ns);
1849
+ const { memberSchemas, encodedKeys, memberNames } = cache;
1850
+ const z = encodedKeys.length;
1851
+ const isUnion = ns.isUnionSchema();
1852
+ const result = {};
1853
+ let unknownKey;
1854
+ let unknownValue;
1855
+ let unknownCount = 0;
1856
+ let hint = 0;
1857
+ while (pos < end) {
1858
+ if (payload[pos] === 0xff) {
1859
+ pos += 1;
1860
+ if (isUnion) {
1861
+ let resultEmpty = true;
1862
+ for (const _ in result) {
1863
+ if (!hasOwn(result, _))
1864
+ continue;
1865
+ resultEmpty = false;
1866
+ break;
1867
+ }
1868
+ if (resultEmpty && unknownCount === 1) {
1869
+ result.$unknown = [unknownKey, unknownValue];
1870
+ }
1871
+ }
1872
+ return result;
1873
+ }
1874
+ const matchIdx = matchStructKey(encodedKeys, z, hint);
1875
+ if (matchIdx >= 0) {
1876
+ hint = matchIdx + 1;
1877
+ if (hint >= z) {
1878
+ hint = 0;
1879
+ }
1880
+ const val = readValue(memberSchemas[matchIdx]);
1881
+ if (val != null) {
1882
+ result[memberNames[matchIdx]] = val;
1883
+ }
1884
+ }
1885
+ else {
1886
+ const key = readUtf8String();
1887
+ const val = readValue(NormalizedSchema.of(15));
1888
+ if (key !== "__type") {
1889
+ unknownKey = key;
1890
+ unknownValue = val;
1891
+ ++unknownCount;
1892
+ }
1893
+ }
1894
+ }
1895
+ throw new Error("expected break marker.");
1896
+ }
1897
+ const valueSchema = ns.isMapSchema() ? ns.getValueSchema() : ns;
1898
+ const map = {};
1899
+ while (pos < end) {
1900
+ if (payload[pos] === 0xff) {
1901
+ pos += 1;
1902
+ return map;
1903
+ }
1904
+ const key = readUtf8String();
1905
+ map[key] = readValue(valueSchema);
1906
+ }
1907
+ throw new Error("expected break marker.");
1908
+ }
1909
+ function matchStructKey(encodedKeys, z, hint) {
1910
+ const hintKey = encodedKeys[hint];
1911
+ if (pos + hintKey.length <= end && bytesMatch(pos, hintKey)) {
1912
+ pos += hintKey.length;
1913
+ return hint;
1914
+ }
1915
+ for (let i = 0; i < z; ++i) {
1916
+ if (i === hint) {
1917
+ continue;
1918
+ }
1919
+ const ek = encodedKeys[i];
1920
+ if (pos + ek.length <= end && bytesMatch(pos, ek)) {
1921
+ pos += ek.length;
1922
+ return i;
1923
+ }
1924
+ }
1925
+ return -1;
1926
+ }
1927
+ function bytesMatch(at, expected) {
1928
+ const len = expected.length;
1929
+ if (payload[at] !== expected[0]) {
1930
+ return false;
1931
+ }
1932
+ for (let i = 1; i < len; ++i) {
1933
+ if (payload[at + i] !== expected[i]) {
1934
+ return false;
1935
+ }
1936
+ }
1937
+ return true;
1938
+ }
1939
+ function decodeArgument() {
1940
+ const minor = payload[pos] & 0b0001_1111;
1941
+ if (minor < 24) {
1942
+ pos += 1;
1943
+ return minor;
1944
+ }
1945
+ switch (minor) {
1946
+ case extendedOneByte:
1947
+ if (end - pos < 2) {
1948
+ overflow(1);
1949
+ }
1950
+ pos += 2;
1951
+ return payload[pos - 1];
1952
+ case extendedFloat16:
1953
+ if (end - pos < 3) {
1954
+ overflow(2);
1955
+ }
1956
+ pos += 3;
1957
+ return dataView.getUint16(pos - 2);
1958
+ case extendedFloat32:
1959
+ if (end - pos < 5) {
1960
+ overflow(4);
1961
+ }
1962
+ pos += 5;
1963
+ return dataView.getUint32(pos - 4);
1964
+ case extendedFloat64: {
1965
+ if (end - pos < 9) {
1966
+ overflow(8);
1967
+ }
1968
+ pos += 9;
1969
+ const hi = dataView.getUint32(pos - 8);
1970
+ if (hi < 0x00200000) {
1971
+ return hi * 4294967296 + dataView.getUint32(pos - 4);
1972
+ }
1973
+ return dataView.getBigUint64(pos - 8);
1974
+ }
1975
+ default:
1976
+ throw new Error(`unexpected minor value ${minor}.`);
1977
+ }
1978
+ }
1979
+ function decodeCount() {
1980
+ const val = decodeArgument();
1981
+ return typeof val === "bigint" ? Number(val) : val;
1982
+ }
1983
+ function readUnsignedInt() {
1984
+ const val = decodeArgument();
1985
+ return castBigInt(val);
1986
+ }
1987
+ function readNegativeInt() {
1988
+ const val = decodeArgument();
1989
+ if (typeof val === "bigint") {
1990
+ return BigInt(-1) - val;
1991
+ }
1992
+ return -1 - val;
1993
+ }
1994
+ function readByteString() {
1995
+ const length = decodeCount();
1996
+ if (end - pos < length) {
1997
+ overflow(length);
1998
+ }
1999
+ const start = pos;
2000
+ pos += length;
2001
+ return payload.subarray(start, start + length);
2002
+ }
2003
+ function readUtf8String() {
2004
+ const length = decodeCount();
2005
+ if (end - pos < length) {
2006
+ overflow(length);
2007
+ }
2008
+ const start = pos;
2009
+ pos += length;
2010
+ if (length < 24) {
2011
+ return decodeUtf8Cached(start, length);
2012
+ }
2013
+ if (isBuffer) {
2014
+ return payload.toString("utf-8", start, start + length);
2015
+ }
2016
+ return textDecoder.decode(payload.subarray(start, start + length));
2017
+ }
2018
+ function decodeUtf8Cached(at, length) {
2019
+ let h = length;
2020
+ for (let i = 0; i < length; ++i) {
2021
+ h = (h * 31 + payload[at + i]) | 0;
2022
+ }
2023
+ const slot = (h >>> 0) & (STRING_CACHE_SIZE - 1);
2024
+ const cached = stringCache[slot];
2025
+ if (cached !== undefined && cached.length === length) {
2026
+ let match = true;
2027
+ for (let i = 0; i < length; ++i) {
2028
+ if (cached.charCodeAt(i) !== payload[at + i]) {
2029
+ match = false;
2030
+ break;
2031
+ }
2032
+ }
2033
+ if (match) {
2034
+ stringCacheEpochs[slot] = cacheEpoch;
2035
+ return cached;
2036
+ }
2037
+ }
2038
+ const result = isBuffer
2039
+ ? payload.toString("utf-8", at, at + length)
2040
+ : textDecoder.decode(payload.subarray(at, at + length));
2041
+ if (stringCacheEpochs[slot] !== cacheEpoch) {
2042
+ stringCache[slot] = result;
2043
+ stringCacheEpochs[slot] = cacheEpoch;
2044
+ }
2045
+ return result;
2046
+ }
2047
+ function readSpecial() {
2048
+ const p = pos;
2049
+ const minor = payload[p] & 0b0001_1111;
2050
+ switch (minor) {
2051
+ case specialTrue:
2052
+ pos = p + 1;
2053
+ return true;
2054
+ case specialFalse:
2055
+ pos = p + 1;
2056
+ return false;
2057
+ case specialNull:
2058
+ pos = p + 1;
2059
+ return null;
2060
+ case specialUndefined:
2061
+ pos = p + 1;
2062
+ return null;
2063
+ case extendedFloat16: {
2064
+ if (end - p < 3) {
2065
+ overflow(2);
2066
+ }
2067
+ pos = p + 3;
2068
+ return bytesToFloat16(payload[p + 1], payload[p + 2]);
2069
+ }
2070
+ case extendedFloat32: {
2071
+ if (end - p < 5) {
2072
+ overflow(4);
2073
+ }
2074
+ pos = p + 5;
2075
+ return dataView.getFloat32(p + 1);
2076
+ }
2077
+ case extendedFloat64: {
2078
+ if (end - p < 9) {
2079
+ overflow(8);
2080
+ }
2081
+ pos = p + 9;
2082
+ return dataView.getFloat64(p + 1);
2083
+ }
2084
+ default:
2085
+ throw new Error(`unexpected minor value ${minor} for major 7.`);
2086
+ }
2087
+ }
2088
+ function bytesToFloat16(a, b) {
2089
+ const sign = a >> 7;
2090
+ const exponent = (a & 0b0111_1100) >> 2;
2091
+ const fraction = ((a & 0b0000_0011) << 8) | b;
2092
+ const scalar = sign === 0 ? 1 : -1;
2093
+ if (exponent === 0b00000) {
2094
+ if (fraction === 0) {
2095
+ return 0;
2096
+ }
2097
+ return scalar * (Math.pow(2, 1 - 15) * (fraction / 1024));
2098
+ }
2099
+ else if (exponent === 0b11111) {
2100
+ if (fraction === 0) {
2101
+ return scalar * Infinity;
2102
+ }
2103
+ return NaN;
2104
+ }
2105
+ return scalar * (Math.pow(2, exponent - 15) * (1 + fraction / 1024));
2106
+ }
2107
+ function castBigInt(value) {
2108
+ if (typeof value === "number") {
2109
+ return value;
2110
+ }
2111
+ const num = Number(value);
2112
+ if (Number.MIN_SAFE_INTEGER <= num && num <= Number.MAX_SAFE_INTEGER) {
2113
+ return num;
2114
+ }
2115
+ return value;
2116
+ }
2117
+ function overflow(n) {
2118
+ throw new Error(`CBOR: length ${n} greater than remaining buffer length.`);
2119
+ }
2120
+ function transformObject(ns, value) {
2121
+ if (ns.isTimestampSchema()) {
2122
+ if (typeof value === "number") {
2123
+ return _parseEpochTimestamp(value);
2124
+ }
2125
+ if (typeof value === "object" && value !== null) {
2126
+ if (value.tag === 1 && "value" in value) {
2127
+ return _parseEpochTimestamp(value.value);
2128
+ }
2129
+ }
2130
+ }
2131
+ if (ns.isBlobSchema()) {
2132
+ return value;
2133
+ }
2134
+ if (typeof value === "undefined" ||
2135
+ typeof value === "boolean" ||
2136
+ typeof value === "number" ||
2137
+ typeof value === "string" ||
2138
+ typeof value === "bigint" ||
2139
+ typeof value === "symbol") {
2140
+ return value;
2141
+ }
2142
+ if (typeof value !== "object" || value === null) {
2143
+ return value;
2144
+ }
2145
+ if ("byteLength" in value) {
2146
+ return value;
2147
+ }
2148
+ if (value instanceof Date) {
2149
+ return value;
2150
+ }
2151
+ if (value instanceof NumericValue) {
2152
+ return value;
2153
+ }
2154
+ if (ns.isDocumentSchema()) {
2155
+ return value;
2156
+ }
2157
+ if (ns.isListSchema()) {
2158
+ const memberSchema = ns.getValueSchema();
2159
+ const out = [];
2160
+ for (const item of value) {
2161
+ out.push(transformObject(memberSchema, item));
2162
+ }
2163
+ return out;
2164
+ }
2165
+ const newObject = {};
2166
+ if (ns.isMapSchema()) {
2167
+ const targetSchema = ns.getValueSchema();
2168
+ for (const key in value) {
2169
+ if (!hasOwn(value, key))
2170
+ continue;
2171
+ newObject[key] = transformObject(targetSchema, value[key]);
2172
+ }
2173
+ }
2174
+ else if (ns.isStructSchema()) {
2175
+ const isUnion = ns.isUnionSchema();
2176
+ let keys;
2177
+ if (isUnion) {
2178
+ keys = new Set();
2179
+ for (const k in value) {
2180
+ if (!hasOwn(value, k))
2181
+ continue;
2182
+ if (k !== "__type") {
2183
+ keys.add(k);
2184
+ }
2185
+ }
2186
+ }
2187
+ for (const [key, memberSchema] of ns.structIterator()) {
2188
+ if (isUnion) {
2189
+ keys.delete(key);
2190
+ }
2191
+ if (value[key] != null) {
2192
+ newObject[key] = transformObject(memberSchema, value[key]);
2193
+ }
2194
+ }
2195
+ if (isUnion && keys?.size === 1) {
2196
+ let newObjectEmpty = true;
2197
+ for (const _ in newObject) {
2198
+ if (!hasOwn(newObject, _))
2199
+ continue;
2200
+ newObjectEmpty = false;
2201
+ break;
2202
+ }
2203
+ if (newObjectEmpty) {
2204
+ const k = keys.values().next().value;
2205
+ newObject.$unknown = [k, value[k]];
2206
+ }
2207
+ }
2208
+ else if (typeof value.__type === "string") {
2209
+ for (const k in value) {
2210
+ if (!hasOwn(value, k))
2211
+ continue;
2212
+ if (!(k in newObject)) {
2213
+ newObject[k] = value[k];
2214
+ }
2215
+ }
2216
+ }
2217
+ }
2218
+ return newObject;
2219
+ }
2220
+
2221
+ class CborCodec extends SerdeContext {
2222
+ createSerializer() {
2223
+ const serializer = new CborShapeSerializer2();
2224
+ serializer.setSerdeContext(this.serdeContext);
2225
+ return serializer;
2226
+ }
2227
+ createDeserializer() {
2228
+ const deserializer = new CborShapeDeserializer2();
2229
+ deserializer.setSerdeContext(this.serdeContext);
2230
+ return deserializer;
2231
+ }
2232
+ }
2233
+
2234
+ class SmithyRpcV2CborProtocol extends RpcProtocol {
2235
+ codec = new CborCodec();
2236
+ serializer = this.codec.createSerializer();
2237
+ deserializer = this.codec.createDeserializer();
2238
+ constructor({ defaultNamespace, errorTypeRegistries, }) {
2239
+ super({ defaultNamespace, errorTypeRegistries });
2240
+ }
2241
+ getShapeId() {
2242
+ return "smithy.protocols#rpcv2Cbor";
2243
+ }
2244
+ getPayloadCodec() {
2245
+ return this.codec;
2246
+ }
2247
+ async serializeRequest(operationSchema, input, context) {
2248
+ const request = await super.serializeRequest(operationSchema, input, context);
2249
+ Object.assign(request.headers, {
2250
+ "content-type": this.getDefaultContentType(),
2251
+ "smithy-protocol": "rpc-v2-cbor",
2252
+ accept: this.getDefaultContentType(),
2253
+ });
2254
+ if (deref(operationSchema.input) === "unit") {
2255
+ delete request.body;
2256
+ delete request.headers["content-type"];
2257
+ }
2258
+ else {
2259
+ if (!request.body) {
2260
+ this.serializer.write(15, {});
2261
+ request.body = this.serializer.flush();
2262
+ }
2263
+ if (request.body instanceof Uint8Array) {
2264
+ request.headers["content-length"] = String(request.body.byteLength);
2265
+ }
2266
+ }
2267
+ const { service, operation } = getSmithyContext(context);
2268
+ const path = `/service/${service}/operation/${operation}`;
2269
+ if (request.path.endsWith("/")) {
2270
+ request.path += path.slice(1);
2271
+ }
2272
+ else {
2273
+ request.path += path;
2274
+ }
2275
+ return request;
2276
+ }
2277
+ async deserializeResponse(operationSchema, context, response) {
2278
+ return super.deserializeResponse(operationSchema, context, response);
2279
+ }
2280
+ async handleError(operationSchema, context, response, dataObject, metadata) {
2281
+ const errorName = loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown";
2282
+ const errorMetadata = {
2283
+ $metadata: metadata,
2284
+ $fault: response.statusCode <= 500 ? "client" : "server",
2285
+ };
2286
+ let namespace = this.options.defaultNamespace;
2287
+ if (errorName.includes("#")) {
2288
+ [namespace] = errorName.split("#");
2289
+ }
2290
+ const registry = this.compositeErrorRegistry;
2291
+ const nsRegistry = TypeRegistry.for(namespace);
2292
+ registry.copyFrom(nsRegistry);
2293
+ let errorSchema;
2294
+ try {
2295
+ errorSchema = registry.getSchema(errorName);
2296
+ }
2297
+ catch (ignored) {
2298
+ if (dataObject.Message) {
2299
+ dataObject.message = dataObject.Message;
2300
+ }
2301
+ const syntheticRegistry = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace);
2302
+ registry.copyFrom(syntheticRegistry);
2303
+ const baseExceptionSchema = registry.getBaseException();
2304
+ if (baseExceptionSchema) {
2305
+ const ErrorCtor = registry.getErrorCtor(baseExceptionSchema);
2306
+ throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject);
2307
+ }
2308
+ throw Object.assign(new Error(errorName), errorMetadata, dataObject);
2309
+ }
2310
+ const ns = NormalizedSchema.of(errorSchema);
2311
+ const ErrorCtor = registry.getErrorCtor(errorSchema);
2312
+ const message = dataObject.message ?? dataObject.Message ?? "Unknown";
2313
+ const exception = new ErrorCtor({});
2314
+ const output = {};
2315
+ for (const [name, member] of ns.structIterator()) {
2316
+ output[name] = this.deserializer.readValue(member, dataObject[name]);
2317
+ }
2318
+ throw Object.assign(exception, errorMetadata, {
2319
+ $fault: ns.getMergedTraits().error,
2320
+ message,
2321
+ }, output);
2322
+ }
2323
+ getDefaultContentType() {
2324
+ return "application/cbor";
2325
+ }
2326
+ }
2327
+
2328
+ class CborShapeSerializer extends SerdeContext {
2329
+ value;
2330
+ write(schema, value) {
2331
+ this.value = this.serialize(schema, value);
2332
+ }
2333
+ serialize(schema, source) {
2334
+ const ns = NormalizedSchema.of(schema);
2335
+ if (source == null) {
2336
+ if (ns.isIdempotencyToken()) {
2337
+ return generateIdempotencyToken();
2338
+ }
2339
+ return source;
2340
+ }
2341
+ if (ns.isBlobSchema()) {
2342
+ if (typeof source === "string") {
2343
+ return (this.serdeContext?.base64Decoder ?? fromBase64)(source);
2344
+ }
2345
+ return source;
2346
+ }
2347
+ if (ns.isTimestampSchema()) {
2348
+ if (typeof source === "number" || typeof source === "bigint") {
2349
+ return dateToTag(new Date((Number(source) / 1000) | 0));
2350
+ }
2351
+ return dateToTag(source);
2352
+ }
2353
+ if (typeof source === "function" || typeof source === "object") {
2354
+ const sourceObject = source;
2355
+ if (ns.isListSchema() && Array.isArray(sourceObject)) {
2356
+ const sparse = !!ns.getMergedTraits().sparse;
2357
+ const newArray = [];
2358
+ let i = 0;
2359
+ for (const item of sourceObject) {
2360
+ const value = this.serialize(ns.getValueSchema(), item);
2361
+ if (value != null || sparse) {
2362
+ newArray[i++] = value;
2363
+ }
2364
+ }
2365
+ return newArray;
2366
+ }
2367
+ if (sourceObject instanceof Date) {
2368
+ return dateToTag(sourceObject);
2369
+ }
2370
+ const newObject = {};
2371
+ if (ns.isMapSchema()) {
2372
+ const sparse = !!ns.getMergedTraits().sparse;
2373
+ for (const key in sourceObject) {
2374
+ if (!hasOwn(sourceObject, key))
2375
+ continue;
2376
+ const value = this.serialize(ns.getValueSchema(), sourceObject[key]);
2377
+ if (value != null || sparse) {
2378
+ newObject[key] = value;
2379
+ }
2380
+ }
2381
+ }
2382
+ else if (ns.isStructSchema()) {
2383
+ for (const [key, memberSchema] of ns.structIterator()) {
2384
+ const value = this.serialize(memberSchema, sourceObject[key]);
2385
+ if (value != null) {
2386
+ newObject[key] = value;
2387
+ }
2388
+ }
2389
+ const isUnion = ns.isUnionSchema();
2390
+ if (isUnion && Array.isArray(sourceObject.$unknown)) {
2391
+ const [k, v] = sourceObject.$unknown;
2392
+ newObject[k] = v;
2393
+ }
2394
+ else if (typeof sourceObject.__type === "string") {
2395
+ for (const k in sourceObject) {
2396
+ if (!hasOwn(sourceObject, k))
2397
+ continue;
2398
+ if (!(k in newObject)) {
2399
+ newObject[k] = this.serialize(15, sourceObject[k]);
2400
+ }
2401
+ }
2402
+ }
2403
+ }
2404
+ else if (ns.isDocumentSchema()) {
2405
+ if (Array.isArray(sourceObject)) {
2406
+ const newArray = [];
2407
+ let i = 0;
2408
+ for (const item of sourceObject) {
2409
+ newArray[i++] = this.serialize(ns.getValueSchema(), item);
2410
+ }
2411
+ return newArray;
2412
+ }
2413
+ for (const key in sourceObject) {
2414
+ if (!hasOwn(sourceObject, key))
2415
+ continue;
2416
+ newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
2417
+ }
2418
+ }
2419
+ else if (ns.isBigDecimalSchema()) {
2420
+ return sourceObject;
2421
+ }
2422
+ return newObject;
2423
+ }
2424
+ return source;
2425
+ }
2426
+ flush() {
2427
+ const buffer = cbor.serialize(this.value);
2428
+ this.value = undefined;
2429
+ return buffer;
2430
+ }
2431
+ }
2432
+
2433
+ class CborShapeDeserializer extends SerdeContext {
2434
+ read(schema, bytes) {
2435
+ const data = cbor.deserialize(bytes);
2436
+ return this.readValue(schema, data);
2437
+ }
2438
+ readValue(_schema, value) {
2439
+ const ns = NormalizedSchema.of(_schema);
2440
+ if (ns.isTimestampSchema()) {
2441
+ if (typeof value === "number") {
2442
+ return _parseEpochTimestamp(value);
2443
+ }
2444
+ if (typeof value === "object") {
2445
+ if (value.tag === 1 && "value" in value) {
2446
+ return _parseEpochTimestamp(value.value);
2447
+ }
2448
+ }
2449
+ }
2450
+ if (ns.isBlobSchema()) {
2451
+ if (typeof value === "string") {
2452
+ return (this.serdeContext?.base64Decoder ?? fromBase64)(value);
2453
+ }
2454
+ return value;
2455
+ }
2456
+ if (typeof value === "undefined" ||
2457
+ typeof value === "boolean" ||
2458
+ typeof value === "number" ||
2459
+ typeof value === "string" ||
2460
+ typeof value === "bigint" ||
2461
+ typeof value === "symbol") {
2462
+ return value;
2463
+ }
2464
+ else if (typeof value === "object") {
2465
+ if (value === null) {
2466
+ return null;
2467
+ }
2468
+ if ("byteLength" in value) {
2469
+ return value;
2470
+ }
2471
+ if (value instanceof Date) {
2472
+ return value;
2473
+ }
2474
+ if (ns.isDocumentSchema()) {
2475
+ return value;
2476
+ }
2477
+ if (ns.isListSchema()) {
2478
+ const newArray = [];
2479
+ const memberSchema = ns.getValueSchema();
2480
+ for (const item of value) {
2481
+ const itemValue = this.readValue(memberSchema, item);
2482
+ newArray.push(itemValue);
2483
+ }
2484
+ return newArray;
2485
+ }
2486
+ const newObject = {};
2487
+ if (ns.isMapSchema()) {
2488
+ const targetSchema = ns.getValueSchema();
2489
+ for (const key in value) {
2490
+ if (!hasOwn(value, key))
2491
+ continue;
2492
+ const itemValue = this.readValue(targetSchema, value[key]);
2493
+ newObject[key] = itemValue;
2494
+ }
2495
+ }
2496
+ else if (ns.isStructSchema()) {
2497
+ const isUnion = ns.isUnionSchema();
2498
+ let keys;
2499
+ if (isUnion) {
2500
+ keys = new Set();
2501
+ for (const k in value) {
2502
+ if (!hasOwn(value, k))
2503
+ continue;
2504
+ if (k !== "__type") {
2505
+ keys.add(k);
2506
+ }
2507
+ }
2508
+ }
2509
+ for (const [key, memberSchema] of ns.structIterator()) {
2510
+ if (isUnion) {
2511
+ keys.delete(key);
2512
+ }
2513
+ if (value[key] != null) {
2514
+ newObject[key] = this.readValue(memberSchema, value[key]);
2515
+ }
2516
+ }
2517
+ if (isUnion && keys?.size === 1) {
2518
+ let newObjectEmpty = true;
2519
+ for (const _ in newObject) {
2520
+ if (!hasOwn(newObject, _))
2521
+ continue;
2522
+ newObjectEmpty = false;
2523
+ break;
2524
+ }
2525
+ if (newObjectEmpty) {
2526
+ const k = keys.values().next().value;
2527
+ newObject.$unknown = [k, value[k]];
2528
+ }
2529
+ }
2530
+ else if (typeof value.__type === "string") {
2531
+ for (const k in value) {
2532
+ if (!hasOwn(value, k))
2533
+ continue;
2534
+ if (!(k in newObject)) {
2535
+ newObject[k] = value[k];
2536
+ }
2537
+ }
2538
+ }
2539
+ }
2540
+ else if (value instanceof NumericValue) {
2541
+ return value;
2542
+ }
2543
+ return newObject;
2544
+ }
2545
+ else {
2546
+ return value;
2547
+ }
2548
+ }
2549
+ }
2550
+
2551
+ exports.CborCodec = CborCodec;
2552
+ exports.CborShapeDeserializer = CborShapeDeserializer;
2553
+ exports.CborShapeDeserializer2 = CborShapeDeserializer2;
2554
+ exports.CborShapeSerializer = CborShapeSerializer;
2555
+ exports.CborShapeSerializer2 = CborShapeSerializer2;
2556
+ exports.SmithyRpcV2CborProtocol = SmithyRpcV2CborProtocol;
2557
+ exports.buildHttpRpcRequest = buildHttpRpcRequest;
2558
+ exports.cbor = cbor;
2559
+ exports.checkCborResponse = checkCborResponse;
2560
+ exports.dateToTag = dateToTag;
2561
+ exports.loadSmithyRpcV2CborErrorCode = loadSmithyRpcV2CborErrorCode;
2562
+ exports.parseCborBody = parseCborBody;
2563
+ exports.parseCborErrorBody = parseCborErrorBody;
2564
+ exports.tag = tag;
2565
+ exports.tagSymbol = tagSymbol;