n9router 0.4.61 → 0.4.62
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.
- package/README.md +33 -0
- package/app/.next/BUILD_ID +1 -1
- package/app/.next/app-path-routes-manifest.json +29 -12
- package/app/.next/build-manifest.json +3 -3
- package/app/.next/prerender-manifest.json +3 -3
- package/app/.next/react-loadable-manifest.json +68 -0
- package/app/.next/required-server-files.json +8 -1
- package/app/.next/routes-manifest.json +111 -0
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -45
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +23 -13
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +7 -7
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +4 -4
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/skills/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
- package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +4 -4
- package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error/page.js +3 -3
- package/app/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_global-error.html +1 -1
- package/app/.next/server/app/_global-error.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next/server/app/_not-found/page.js +2 -2
- package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/_not-found.html +1 -1
- package/app/.next/server/app/_not-found.rsc +4 -4
- package/app/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/api/antigravity-app/route.js +1 -1
- package/app/.next/server/app/api/antigravity-app/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-app-v2/route.js +1 -1
- package/app/.next/server/app/api/antigravity-app-v2/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-ide/route.js +1 -1
- package/app/.next/server/app/api/antigravity-ide/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-targets/route.js +1 -1
- package/app/.next/server/app/api/antigravity-targets/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-tools/import/route.js +1 -1
- package/app/.next/server/app/api/antigravity-tools/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/antigravity-tools/import-refresh-tokens/route.js +1 -1
- package/app/.next/server/app/api/antigravity-tools/import-refresh-tokens/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/login/route.js +1 -1
- package/app/.next/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/logout/route.js +1 -1
- package/app/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/saml/metadata/route.js +1 -1
- package/app/.next/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/saml/start/route.js +1 -1
- package/app/.next/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/saml/test/route.js +2 -2
- package/app/.next/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/auth/status/route.js +2 -2
- package/app/.next/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/all-statuses/route.js +20 -28
- package/app/.next/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/codewhale-settings/route.js +2 -0
- package/app/.next/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -0
- package/app/.next/server/app/api/cli-tools/codewhale-settings/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/cli-tools/codex-profiles/route.js +4 -0
- package/app/.next/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -0
- package/app/.next/server/app/api/cli-tools/codex-profiles/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +1 -2
- package/app/.next/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/crush-settings/route.js +2 -0
- package/app/.next/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -0
- package/app/.next/server/app/api/cli-tools/crush-settings/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/route.js +1 -1
- package/app/.next/server/app/api/cli-tools/cursor-byok/jobs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/cursor-byok/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/cursor-byok/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js +5 -5
- package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/devin-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/forge-settings/route.js +2 -0
- package/app/.next/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -0
- package/app/.next/server/app/api/cli-tools/forge-settings/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/cli-tools/grok-build-settings/route.js +2 -15
- package/app/.next/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/hermes-profiles/route.js +45 -0
- package/app/.next/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -0
- package/app/.next/server/app/api/cli-tools/hermes-profiles/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +2 -11
- package/app/.next/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/jcode-settings/route.js +3 -2
- package/app/.next/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/omp-settings/route.js +16 -0
- package/app/.next/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -0
- package/app/.next/server/app/api/cli-tools/omp-settings/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/cli-tools/pi-settings/route.js +2 -0
- package/app/.next/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -0
- package/app/.next/server/app/api/cli-tools/pi-settings/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/cli-tools/smelt-settings/route.js +2 -0
- package/app/.next/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -0
- package/app/.next/server/app/api/cli-tools/smelt-settings/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/combos/presets/route.js +1 -0
- package/app/.next/server/app/api/combos/presets/route.js.nft.json +1 -0
- package/app/.next/server/app/api/combos/presets/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/combos/route.js +1 -1
- package/app/.next/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next/server/app/api/donate/route.js +1 -1
- package/app/.next/server/app/api/donate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next/server/app/api/headroom/start/route.js +1 -1
- package/app/.next/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next/server/app/api/headroom/status/route.js +1 -1
- package/app/.next/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next/server/app/api/health/route.js +1 -1
- package/app/.next/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next/server/app/api/init/route.js +1 -1
- package/app/.next/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next/server/app/api/internal/account-health/route.js +1 -1
- package/app/.next/server/app/api/internal/account-health/route.js.nft.json +1 -1
- package/app/.next/server/app/api/internal/request-detail/route.js +1 -1
- package/app/.next/server/app/api/internal/request-detail/route.js.nft.json +1 -1
- package/app/.next/server/app/api/internal/usage/route.js +1 -1
- package/app/.next/server/app/api/internal/usage/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/[id]/reset-usage/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/reset-usage/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/[id]/usage/route.js +1 -1
- package/app/.next/server/app/api/keys/[id]/usage/route.js.nft.json +1 -1
- package/app/.next/server/app/api/keys/route.js +1 -1
- package/app/.next/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next/server/app/api/locale/route.js +1 -1
- package/app/.next/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next/server/app/api/mcp/[plugin]/sse/route.js +2 -2
- package/app/.next/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/alias/route.js +1 -1
- package/app/.next/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/availability/route.js +1 -1
- package/app/.next/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/catalog-sync/route.js +1 -1
- package/app/.next/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/custom/route.js +1 -1
- package/app/.next/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/disabled/route.js +1 -1
- package/app/.next/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/route.js +1 -1
- package/app/.next/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/models/test/route.js +1 -1
- package/app/.next/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
- package/app/.next/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
- package/app/.next/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
- package/app/.next/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
- package/app/.next/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next/server/app/api/oauth/xiaomi-mimo/login/start/route.js +1 -0
- package/app/.next/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -0
- package/app/.next/server/app/api/oauth/xiaomi-mimo/login/start/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/oauth/xiaomi-mimo/login/status/route.js +1 -0
- package/app/.next/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -0
- package/app/.next/server/app/api/oauth/xiaomi-mimo/login/status/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/oauth/zed/auto-import/route.js +42 -0
- package/app/.next/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -0
- package/app/.next/server/app/api/oauth/zed/auto-import/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/oauth/zed/import/route.js +1 -0
- package/app/.next/server/app/api/oauth/zed/import/route.js.nft.json +1 -0
- package/app/.next/server/app/api/oauth/zed/import/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/pricing/route.js +1 -1
- package/app/.next/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/overrides/route.js +1 -0
- package/app/.next/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -0
- package/app/.next/server/app/api/providers/[id]/overrides/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/client/route.js +1 -1
- package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/route.js +1 -1
- package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next/server/app/api/providers/validate/route.js +1 -1
- package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
- package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/app/.next/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/netlify-deploy/route.js +68 -0
- package/app/.next/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -0
- package/app/.next/server/app/api/proxy-pools/netlify-deploy/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +8 -7
- package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/logs/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/database/route.js +1 -1
- package/app/.next/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/database/selective/route.js +1 -1
- package/app/.next/server/app/api/settings/database/selective/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next/server/app/api/settings/route.js +1 -1
- package/app/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/shutdown/route.js +1 -1
- package/app/.next/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tags/route.js +1 -1
- package/app/.next/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/load/route.js +1 -1
- package/app/.next/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/save/route.js +1 -1
- package/app/.next/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/send/route.js +1 -1
- package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next/server/app/api/translator/translate/route.js +1 -1
- package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -0
- package/app/.next/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -0
- package/app/.next/server/app/api/usage/[connectionId]/claude-reset/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/chart/route.js +1 -1
- package/app/.next/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/history/route.js +1 -1
- package/app/.next/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/logs/route.js +1 -1
- package/app/.next/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/providers/route.js +1 -1
- package/app/.next/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/report/route.js +1 -1
- package/app/.next/server/app/api/usage/report/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/stats/route.js +1 -1
- package/app/.next/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next/server/app/api/usage/stream/route.js +2 -2
- package/app/.next/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/images/generations/route.js +2 -2
- package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/messages/route.js +1 -1
- package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/[...model]/route.js +1 -1
- package/app/.next/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/models/route.js +1 -1
- package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/responses/route.js +1 -1
- package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/route.js +1 -1
- package/app/.next/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/search/route.js +1 -1
- package/app/.next/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/systemone/route.js +1 -0
- package/app/.next/server/app/api/v1/systemone/route.js.nft.json +1 -0
- package/app/.next/server/app/api/v1/systemone/route_client-reference-manifest.js +1 -0
- package/app/.next/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next/server/app/api/version/route.js +1 -1
- package/app/.next/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next/server/app/api/version/update/route.js +1 -1
- package/app/.next/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next/server/app/callback/page.js +2 -2
- package/app/.next/server/app/callback/page.js.nft.json +1 -1
- package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/callback.html +1 -1
- package/app/.next/server/app/callback.rsc +5 -5
- package/app/.next/server/app/callback.segments/_full.segment.rsc +5 -5
- package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/callback.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next/server/app/dashboard/basic-chat.rsc +6 -6
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next/server/app/dashboard/cli-tools.rsc +6 -6
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.html +1 -1
- package/app/.next/server/app/dashboard/combos.rsc +6 -6
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.html +1 -1
- package/app/.next/server/app/dashboard/endpoint.rsc +6 -6
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.rsc +6 -6
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.html +1 -1
- package/app/.next/server/app/dashboard/mitm.rsc +6 -6
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.html +1 -1
- package/app/.next/server/app/dashboard/profile.rsc +6 -6
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.html +1 -1
- package/app/.next/server/app/dashboard/providers/new.rsc +6 -6
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.html +1 -1
- package/app/.next/server/app/dashboard/providers.rsc +6 -6
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.rsc +6 -6
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next/server/app/dashboard/pxpipe.rsc +6 -6
- package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/quota.html +1 -2
- package/app/.next/server/app/dashboard/quota.rsc +7 -7
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
- package/app/.next/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
- package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.rsc +4 -4
- package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.html +1 -1
- package/app/.next/server/app/dashboard/skills.rsc +6 -6
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/token-saver.html +1 -1
- package/app/.next/server/app/dashboard/token-saver.rsc +6 -6
- package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.html +1 -1
- package/app/.next/server/app/dashboard/translator.rsc +6 -6
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.html +1 -1
- package/app/.next/server/app/dashboard/usage.rsc +6 -6
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.html +1 -1
- package/app/.next/server/app/dashboard.rsc +6 -6
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next/server/app/dashboard.segments/_full.segment.rsc +6 -6
- package/app/.next/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/dashboard.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/favicon.ico/route.js +1 -1
- package/app/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next/server/app/index.html +1 -1
- package/app/.next/server/app/index.rsc +4 -4
- package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next/server/app/index.segments/_full.segment.rsc +4 -4
- package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/index.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/landing/page.js +2 -2
- package/app/.next/server/app/landing/page.js.nft.json +1 -1
- package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/landing.html +1 -1
- package/app/.next/server/app/landing.rsc +5 -5
- package/app/.next/server/app/landing.segments/_full.segment.rsc +5 -5
- package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/landing.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next/server/app/login/page.js +2 -2
- package/app/.next/server/app/login/page.js.nft.json +1 -1
- package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app/login.html +1 -1
- package/app/.next/server/app/login.rsc +5 -5
- package/app/.next/server/app/login.segments/_full.segment.rsc +5 -5
- package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next/server/app/login.segments/_index.segment.rsc +4 -4
- package/app/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next/server/app/page.js +2 -2
- package/app/.next/server/app/page.js.nft.json +1 -1
- package/app/.next/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next/server/app-paths-manifest.json +29 -12
- package/app/.next/server/chunks/1470.js +1 -1
- package/app/.next/server/chunks/1505.js +45 -0
- package/app/.next/server/chunks/1679.js +1 -0
- package/app/.next/server/chunks/1892.js +1 -0
- package/app/.next/server/chunks/2132.js +1 -0
- package/app/.next/server/chunks/2220.js +1 -0
- package/app/.next/server/chunks/238.js +1 -0
- package/app/.next/server/chunks/24.js +1 -1
- package/app/.next/server/chunks/2578.js +1 -0
- package/app/.next/server/chunks/2627.js +1 -0
- package/app/.next/server/chunks/{9528.js → 2750.js} +2 -3
- package/app/.next/server/chunks/2760.js +1 -0
- package/app/.next/server/chunks/{5139.js → 2949.js} +2 -2
- package/app/.next/server/chunks/3225.js +1 -1
- package/app/.next/server/chunks/3385.js +1 -0
- package/app/.next/server/chunks/3449.js +1 -0
- package/app/.next/server/chunks/3481.js +1 -1
- package/app/.next/server/chunks/3535.js +1 -1
- package/app/.next/server/chunks/3546.js +1 -1
- package/app/.next/server/chunks/3662.js +1 -1
- package/app/.next/server/chunks/3726.js +1 -1
- package/app/.next/server/chunks/3913.js +1 -1
- package/app/.next/server/chunks/3943.js +1 -1
- package/app/.next/server/chunks/3962.js +1 -1
- package/app/.next/server/chunks/3966.js +44 -0
- package/app/.next/server/chunks/412.js +5 -5
- package/app/.next/server/chunks/4123.js +1 -1
- package/app/.next/server/chunks/4125.js +1 -1
- package/app/.next/server/chunks/4190.js +1 -0
- package/app/.next/server/chunks/4199.js +1 -0
- package/app/.next/server/chunks/436.js +1 -1
- package/app/.next/server/chunks/4730.js +7 -0
- package/app/.next/server/chunks/4775.js +1 -0
- package/app/.next/server/chunks/4882.js +1 -0
- package/app/.next/server/chunks/4989.js +1 -1
- package/app/.next/server/chunks/5081.js +3 -3
- package/app/.next/server/chunks/5215.js +1 -0
- package/app/.next/server/chunks/5245.js +1 -0
- package/app/.next/server/chunks/5330.js +227 -0
- package/app/.next/server/chunks/5573.js +1 -1
- package/app/.next/server/chunks/5615.js +2 -2
- package/app/.next/server/chunks/5616.js +1 -0
- package/app/.next/server/chunks/6070.js +1 -1
- package/app/.next/server/chunks/6100.js +1 -0
- package/app/.next/server/chunks/6140.js +1 -0
- package/app/.next/server/chunks/615.js +1 -1
- package/app/.next/server/chunks/6249.js +9 -0
- package/app/.next/server/chunks/6457.js +1 -1
- package/app/.next/server/chunks/{4037.js → 6540.js} +1 -1
- package/app/.next/server/chunks/6708.js +1 -0
- package/app/.next/server/chunks/6763.js +1 -1
- package/app/.next/server/chunks/6877.js +1 -1
- package/app/.next/server/chunks/6921.js +64 -0
- package/app/.next/server/chunks/6922.js +1 -1
- package/app/.next/server/chunks/6933.js +1 -0
- package/app/.next/server/chunks/7066.js +1 -0
- package/app/.next/server/chunks/7137.js +1 -1
- package/app/.next/server/chunks/7211.js +1 -1
- package/app/.next/server/chunks/7247.js +1 -1
- package/app/.next/server/chunks/75.js +1 -0
- package/app/.next/server/chunks/7525.js +1 -0
- package/app/.next/server/chunks/7552.js +1 -0
- package/app/.next/server/chunks/7557.js +1 -0
- package/app/.next/server/chunks/7716.js +1 -1
- package/app/.next/server/chunks/7774.js +1 -1
- package/app/.next/server/chunks/7828.js +1 -1
- package/app/.next/server/chunks/7954.js +1 -0
- package/app/.next/server/chunks/7994.js +4 -2
- package/app/.next/server/chunks/7995.js +120 -0
- package/app/.next/server/chunks/8251.js +1 -0
- package/app/.next/server/chunks/8402.js +1 -1
- package/app/.next/server/chunks/8416.js +1 -1
- package/app/.next/server/chunks/8467.js +1 -0
- package/app/.next/server/chunks/8499.js +17 -15
- package/app/.next/server/chunks/8635.js +56 -1
- package/app/.next/server/chunks/869.js +1 -1
- package/app/.next/server/chunks/8866.js +14 -0
- package/app/.next/server/chunks/8895.js +10 -10
- package/app/.next/server/chunks/8910.js +1 -1
- package/app/.next/server/chunks/8920.js +1 -1
- package/app/.next/server/chunks/9055.js +2 -0
- package/app/.next/server/chunks/9323.js +1 -0
- package/app/.next/server/chunks/9488.js +1 -0
- package/app/.next/server/chunks/9609.js +1 -0
- package/app/.next/server/chunks/9696.js +7 -0
- package/app/.next/server/chunks/9718.js +1 -1
- package/app/.next/server/chunks/9819.js +132 -0
- package/app/.next/server/instrumentation.js +1 -1
- package/app/.next/server/middleware-build-manifest.js +1 -1
- package/app/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/app/.next/server/middleware.js +10 -4
- package/app/.next/server/pages/404.html +1 -1
- package/app/.next/server/pages/500.html +1 -1
- package/app/.next/server/server-reference-manifest.js +1 -1
- package/app/.next/server/server-reference-manifest.json +1 -1
- package/app/.next/static/WGoHSNqQVm7Ojq2hfhX5D/_buildManifest.js +1 -0
- package/app/.next/static/chunks/124.2276677ff4165be4.js +1 -0
- package/app/.next/static/chunks/1321-cb0826fa8d7a7655.js +1 -0
- package/app/.next/static/chunks/1753-51167c94d5ad0869.js +1 -0
- package/app/.next/static/chunks/2435.683237fa2a1c3754.js +1 -0
- package/app/.next/static/chunks/2589-fc6ca388055f2ef1.js +5 -0
- package/app/.next/static/chunks/2968-0b9335f61111cbf8.js +132 -0
- package/app/.next/static/chunks/3408-c04be7141d18dc8d.js +1 -0
- package/app/.next/static/chunks/3842-da1878db3339b090.js +1 -0
- package/app/.next/static/chunks/4736-22ed9d5552922112.js +1 -0
- package/app/.next/static/chunks/5462.5350015c546e8523.js +1 -0
- package/app/.next/static/chunks/5497-ef56e3055b44b6b1.js +7 -0
- package/app/.next/static/chunks/6808-5c363421e29504fd.js +1 -0
- package/app/.next/static/chunks/7206.080ce07082624c06.js +1 -0
- package/app/.next/static/chunks/763-74899606be57f1f1.js +1 -0
- package/app/.next/static/chunks/8198-ecfa0da308c39088.js +1 -0
- package/app/.next/static/chunks/9233.06040f7dae2c13df.js +64 -0
- package/app/.next/static/chunks/9326-a45f719bfeb4f379.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-0fd819f7f5548f88.js → page-c77d3edb683b6732.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-45fe654b03bd7d5e.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-de0a6e91c2d4eedd.js → page-e545ab6884cff702.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-9f8f462e7b9602e6.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/console-log/{page-765bd3257b53ea96.js → page-c7981b8a971cfc74.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-b39326ae7c1f2749.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-e79f465b0b29e31d.js +69 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-0a1b5bca3376c87c.js → page-09439f66841742ed.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-81c185a6977c1eb4.js → page-3f8b44acac3b25fa.js} +2 -2
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-2b7897aa1ba23c71.js → page-d9ad974fd4af8b4b.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/{page-37c7894b246793c9.js → page-2f9e1465288e12c0.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/page-76ee65d79c41f68b.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/{page-07e99971e712f435.js → page-4a357772973268d6.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-d6d6a0d967775a7e.js +27 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/{page-0f47afe02fc94258.js → page-297a9029c671b76a.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/{page-b2e8e7af27239aef.js → page-dadbdb899ae67ce8.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-36c4333f41a9bf2c.js +4 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-33918f52028cd5f5.js → page-80140f2bde9923f5.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-f08d25105f41e568.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/skills/{page-156920b6e519dc17.js → page-7ece52fa40af492c.js} +1 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/token-saver/page-84297399f24e1fa3.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-ed5aa4f58a1df6bf.js +1 -0
- package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/page-c15f70466725b49f.js +3 -0
- package/app/.next/static/chunks/app/(dashboard)/{layout-29965adee8720b71.js → layout-a1f4877e1caba44b.js} +1 -1
- package/app/.next/static/chunks/app/_global-error/page-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/antigravity-app/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/antigravity-app-v2/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/antigravity-ide/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/antigravity-targets/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/antigravity-tools/import/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/antigravity-tools/import-refresh-tokens/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/auth/login/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/auth/logout/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/auth/oidc/callback/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/auth/oidc/start/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/auth/oidc/test/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/auth/reset-password/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/auth/saml/acs/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/auth/saml/metadata/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/auth/saml/start/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/auth/saml/test/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/auth/status/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/codewhale-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/codex-profiles/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/crush-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/devin-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/forge-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/grok-build-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/hermes-profiles/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/omp-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/pi-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/cli-tools/smelt-settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/combos/[id]/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/combos/presets/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/combos/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/donate/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/extras/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/restart/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/start/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/status/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/headroom/stop/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/health/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/init/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/internal/account-health/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/internal/request-detail/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/internal/usage/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/reset-usage/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/keys/[id]/usage/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/keys/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/locale/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/models/alias/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/models/availability/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/models/catalog-sync/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/models/custom/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/models/disabled/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/models/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/models/test/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/grok-cli/bulk-import/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/zed/auto-import/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/oauth/zed/import/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/pricing/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/overrides/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/providers/client/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/providers/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/providers/test-batch/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/providers/validate/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/netlify-deploy/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/health/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/install/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/logs/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/restart/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/start/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/stats/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/status/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/pxpipe/stop/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/settings/database/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/settings/database/selective/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/settings/require-login/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/settings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/shutdown/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/tags/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/translator/load/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/translator/save/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/translator/send/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/translator/translate/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/disable/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/enable/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/status/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/claude-reset/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/usage/chart/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/usage/history/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/usage/logs/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/usage/providers/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/usage/report/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-details/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/usage/request-logs/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stats/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/usage/stream/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/api/chat/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/embeddings/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/images/generations/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/messages/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/[...model]/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/info/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/models/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/responses/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/search/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/systemone/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/[id]/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/edits/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/extensions/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/videos/generations/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/v1beta/models/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/version/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/version/shutdown/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/api/version/update/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/callback/{page-b12814e445464090.js → page-97bef4af65a5c1f6.js} +1 -1
- package/app/.next/static/chunks/app/landing/page-173df48fa3377bf1.js +1 -0
- package/app/.next/static/chunks/app/login/{page-e6ff5089ced15cea.js → page-d066805fc51f519d.js} +1 -1
- package/app/.next/static/chunks/app/manifest.webmanifest/route-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/app/page-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-d91b89030208127f.js +1 -0
- package/app/.next/static/chunks/webpack-e1e9171089e3a04c.js +1 -0
- package/app/.next/static/css/76c8b44d89c152a8.css +1 -0
- package/app/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +131 -0
- package/app/node_modules/@aws/lambda-invoke-store/package.json +55 -0
- package/app/node_modules/@aws-sdk/core/client.js +5 -0
- package/app/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +984 -0
- package/app/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +358 -0
- package/app/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +2949 -0
- package/app/node_modules/@aws-sdk/core/httpAuthSchemes.js +5 -0
- package/app/node_modules/@aws-sdk/core/package.json +146 -0
- package/app/node_modules/@aws-sdk/core/protocols.js +5 -0
- package/app/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js +202 -0
- package/app/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/loadCognitoIdentity-v413cIIq.js +4 -0
- package/app/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +59 -0
- package/app/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +39 -0
- package/app/node_modules/@aws-sdk/credential-provider-env/package.json +63 -0
- package/app/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +179 -0
- package/app/node_modules/@aws-sdk/credential-provider-http/package.json +75 -0
- package/app/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +229 -0
- package/app/node_modules/@aws-sdk/credential-provider-ini/package.json +73 -0
- package/app/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +290 -0
- package/app/node_modules/@aws-sdk/credential-provider-login/package.json +66 -0
- package/app/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +166 -0
- package/app/node_modules/@aws-sdk/credential-provider-node/package.json +71 -0
- package/app/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +76 -0
- package/app/node_modules/@aws-sdk/credential-provider-process/package.json +63 -0
- package/app/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +192 -0
- package/app/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js +3 -0
- package/app/node_modules/@aws-sdk/credential-provider-sso/package.json +67 -0
- package/app/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +58 -0
- package/app/node_modules/@aws-sdk/credential-provider-web-identity/package.json +71 -0
- package/app/node_modules/@aws-sdk/credential-providers/dist-cjs/index.js +284 -0
- package/app/node_modules/@aws-sdk/credential-providers/dist-cjs/loadSts-C4jOcYxJ.js +3 -0
- package/app/node_modules/@aws-sdk/credential-providers/package.json +85 -0
- package/app/node_modules/@aws-sdk/nested-clients/cognito-identity.js +5 -0
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +626 -0
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +595 -0
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +473 -0
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +686 -0
- package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +889 -0
- package/app/node_modules/@aws-sdk/nested-clients/package.json +121 -0
- package/app/node_modules/@aws-sdk/nested-clients/signin.js +5 -0
- package/app/node_modules/@aws-sdk/nested-clients/sso-oidc.js +5 -0
- package/app/node_modules/@aws-sdk/nested-clients/sso.js +5 -0
- package/app/node_modules/@aws-sdk/nested-clients/sts.js +5 -0
- package/app/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +155 -0
- package/app/node_modules/@aws-sdk/signature-v4-multi-region/package.json +60 -0
- package/app/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +158 -0
- package/app/node_modules/@aws-sdk/token-providers/package.json +69 -0
- package/app/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +372 -0
- package/app/node_modules/@aws-sdk/xml-builder/package.json +63 -0
- package/app/node_modules/@smithy/core/cbor.js +5 -0
- package/app/node_modules/@smithy/core/checksum.js +5 -0
- package/app/node_modules/@smithy/core/client.js +5 -0
- package/app/node_modules/@smithy/core/config.js +5 -0
- package/app/node_modules/@smithy/core/dist-cjs/index.js +344 -0
- package/app/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +2550 -0
- package/app/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +577 -0
- package/app/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +1200 -0
- package/app/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +779 -0
- package/app/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +879 -0
- package/app/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +924 -0
- package/app/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +2791 -0
- package/app/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +848 -0
- package/app/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +709 -0
- package/app/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +1765 -0
- package/app/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +189 -0
- package/app/node_modules/@smithy/core/endpoints.js +5 -0
- package/app/node_modules/@smithy/core/event-streams.js +5 -0
- package/app/node_modules/@smithy/core/package.json +259 -0
- package/app/node_modules/@smithy/core/protocols.js +5 -0
- package/app/node_modules/@smithy/core/retry.js +5 -0
- package/app/node_modules/@smithy/core/schema.js +5 -0
- package/app/node_modules/@smithy/core/serde.js +5 -0
- package/app/node_modules/@smithy/core/transport.js +5 -0
- package/app/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +370 -0
- package/app/node_modules/@smithy/credential-provider-imds/package.json +57 -0
- package/app/node_modules/@smithy/node-http-handler/dist-cjs/index.js +859 -0
- package/app/node_modules/@smithy/node-http-handler/package.json +56 -0
- package/app/node_modules/@smithy/signature-v4/dist-cjs/index.js +585 -0
- package/app/node_modules/@smithy/signature-v4/package.json +53 -0
- package/app/node_modules/@smithy/types/dist-cjs/index.js +96 -0
- package/app/node_modules/@smithy/types/package.json +50 -0
- package/app/node_modules/bowser/es5.js +1 -0
- package/app/node_modules/bowser/package.json +93 -0
- package/app/node_modules/bundle-name/index.js +5 -0
- package/app/node_modules/bundle-name/package.json +45 -0
- package/app/node_modules/default-browser/index.js +34 -0
- package/app/node_modules/default-browser/package.json +54 -0
- package/app/node_modules/default-browser/windows.js +57 -0
- package/app/node_modules/default-browser-id/index.js +25 -0
- package/app/node_modules/default-browser-id/package.json +41 -0
- package/app/node_modules/define-lazy-prop/index.js +18 -0
- package/app/node_modules/define-lazy-prop/package.json +51 -0
- package/app/node_modules/is-docker/index.js +29 -0
- package/app/node_modules/is-docker/package.json +44 -0
- package/app/node_modules/is-in-ssh/index.js +7 -0
- package/app/node_modules/is-in-ssh/package.json +43 -0
- package/app/node_modules/is-inside-container/index.js +23 -0
- package/app/node_modules/is-inside-container/package.json +51 -0
- package/app/node_modules/is-wsl/index.js +36 -0
- package/app/node_modules/is-wsl/package.json +58 -0
- package/app/node_modules/open/index.js +417 -0
- package/app/node_modules/open/package.json +70 -0
- package/app/node_modules/open/xdg-open +1267 -0
- package/app/node_modules/powershell-utils/index.js +58 -0
- package/app/node_modules/powershell-utils/package.json +47 -0
- package/app/node_modules/run-applescript/index.js +37 -0
- package/app/node_modules/run-applescript/package.json +42 -0
- package/app/node_modules/wsl-utils/index.js +98 -0
- package/app/node_modules/wsl-utils/package.json +48 -0
- package/app/node_modules/wsl-utils/utilities.js +19 -0
- package/app/open-sse/AGENTS.md +1 -1
- package/app/open-sse/config/appConstants.js +13 -0
- package/app/open-sse/config/awsConstants.js +102 -0
- package/app/open-sse/config/errorConfig.js +1 -0
- package/app/open-sse/config/grokCli.js +4 -1
- package/app/open-sse/config/kiroConstants.js +24 -10
- package/app/open-sse/config/providerModels.js +33 -10
- package/app/open-sse/executors/antigravity.js +45 -3
- package/app/open-sse/executors/base.js +4 -2
- package/app/open-sse/executors/bedrock.js +488 -0
- package/app/open-sse/executors/codebuddy-cn.js +27 -0
- package/app/open-sse/executors/codebuddy-intl.js +27 -0
- package/app/open-sse/executors/codex.js +73 -11
- package/app/open-sse/executors/commandcode.js +27 -29
- package/app/open-sse/executors/cursor.js +400 -54
- package/app/open-sse/executors/default.js +54 -6
- package/app/open-sse/executors/index.js +16 -0
- package/app/open-sse/executors/kiro.js +4 -106
- package/app/open-sse/executors/minimax-code.js +57 -0
- package/app/open-sse/executors/opencode-go.js +11 -7
- package/app/open-sse/executors/opencode-zen.js +330 -0
- package/app/open-sse/executors/opencode.js +325 -25
- package/app/open-sse/executors/qoder.js +96 -42
- package/app/open-sse/executors/vertex.js +11 -3
- package/app/open-sse/executors/xiaomi-mimo.js +40 -23
- package/app/open-sse/executors/zed.js +19 -5
- package/app/open-sse/handlers/chatCore/nonStreamingHandler.js +5 -53
- package/app/open-sse/handlers/chatCore/requestDetail.js +15 -0
- package/app/open-sse/handlers/chatCore/sseToJsonHandler.js +22 -6
- package/app/open-sse/handlers/chatCore/streamingHandler.js +11 -4
- package/app/open-sse/handlers/chatCore.js +52 -17
- package/app/open-sse/handlers/embeddingProviders/github.js +19 -0
- package/app/open-sse/handlers/embeddingProviders/index.js +3 -1
- package/app/open-sse/handlers/fetch/index.js +31 -1
- package/app/open-sse/handlers/geminiLiveStt.js +266 -0
- package/app/open-sse/handlers/imageGenerationCore.js +3 -0
- package/app/open-sse/handlers/imageProviders/codex.js +35 -7
- package/app/open-sse/handlers/imageProviders/huggingface.js +80 -5
- package/app/open-sse/handlers/search/callers.js +24 -0
- package/app/open-sse/handlers/search/index.js +4 -1
- package/app/open-sse/handlers/search/normalizers.js +14 -0
- package/app/open-sse/handlers/sttCore.js +130 -4
- package/app/open-sse/handlers/systemoneCore.js +112 -0
- package/app/open-sse/providers/capabilities.js +388 -110
- package/app/open-sse/providers/catalogOverride.js +23 -6
- package/app/open-sse/providers/index.js +1 -1
- package/app/open-sse/providers/models/helpers.js +39 -0
- package/app/open-sse/providers/pricing.js +59 -8
- package/app/open-sse/providers/registry/agnes.js +38 -0
- package/app/open-sse/providers/registry/antigravity.js +12 -7
- package/app/open-sse/providers/registry/atria.js +32 -0
- package/app/open-sse/providers/registry/bai.js +30 -0
- package/app/open-sse/providers/registry/bedrock-xai.js +51 -0
- package/app/open-sse/providers/registry/bedrock.js +77 -0
- package/app/open-sse/providers/registry/claude.js +4 -0
- package/app/open-sse/providers/registry/cloudflare-ai.js +7 -1
- package/app/open-sse/providers/registry/codebuddy-cn.js +6 -6
- package/app/open-sse/providers/registry/codebuddy-intl.js +3 -1
- package/app/open-sse/providers/registry/codex.js +24 -13
- package/app/open-sse/providers/registry/commandcode.js +15 -0
- package/app/open-sse/providers/registry/cursor.js +8 -0
- package/app/open-sse/providers/registry/dahl.js +35 -0
- package/app/open-sse/providers/registry/deepseek.js +1 -0
- package/app/open-sse/providers/registry/elevenlabs.js +29 -2
- package/app/open-sse/providers/registry/gemini.js +2 -0
- package/app/open-sse/providers/registry/github.js +2 -2
- package/app/open-sse/providers/registry/glm.js +20 -2
- package/app/open-sse/providers/registry/grok-cli.js +1 -1
- package/app/open-sse/providers/registry/huggingface.js +73 -3
- package/app/open-sse/providers/registry/index.js +30 -0
- package/app/open-sse/providers/registry/kimi.js +6 -0
- package/app/open-sse/providers/registry/kiro.js +7 -1
- package/app/open-sse/providers/registry/minimax-code-global.js +53 -0
- package/app/open-sse/providers/registry/minimax-code.js +59 -0
- package/app/open-sse/providers/registry/muse.js +67 -0
- package/app/open-sse/providers/registry/nous.js +107 -0
- package/app/open-sse/providers/registry/ollama.js +1 -0
- package/app/open-sse/providers/registry/openai.js +1 -0
- package/app/open-sse/providers/registry/opencode-go.js +25 -2
- package/app/open-sse/providers/registry/opencode-zen.js +135 -0
- package/app/open-sse/providers/registry/opencode.js +22 -2
- package/app/open-sse/providers/registry/openrouter.js +7 -1
- package/app/open-sse/providers/registry/qoder-cn.js +61 -0
- package/app/open-sse/providers/registry/tinyfish.js +36 -0
- package/app/open-sse/providers/registry/tokenharbor.js +49 -0
- package/app/open-sse/providers/registry/v1m.js +31 -0
- package/app/open-sse/providers/registry/vertex.js +2 -0
- package/app/open-sse/providers/registry/xiaomi-mimo.js +17 -7
- package/app/open-sse/providers/registry/zed.js +1 -2
- package/app/open-sse/providers/schema.js +7 -0
- package/app/open-sse/providers/shared.js +19 -5
- package/app/open-sse/providers/thinkingLevels.js +47 -10
- package/app/open-sse/rtk/headroom.js +6 -4
- package/app/open-sse/rtk/index.js +1 -1
- package/app/open-sse/services/accountFallback.js +16 -1
- package/app/open-sse/services/capacityAdapter.js +4 -3
- package/app/open-sse/services/clinepassModels.js +51 -1
- package/app/open-sse/services/combo.js +59 -1
- package/app/open-sse/services/cursorModels.js +78 -1
- package/app/open-sse/services/minimaxCodeUsage.js +253 -0
- package/app/open-sse/services/model.js +17 -0
- package/app/open-sse/services/nous.js +126 -0
- package/app/open-sse/services/qoderModels.js +43 -30
- package/app/open-sse/services/thoughtSignatureStore.js +40 -11
- package/app/open-sse/services/tokenRefresh/providers.js +146 -0
- package/app/open-sse/services/tokenRefresh.js +9 -0
- package/app/open-sse/services/usage/antigravity-weekly.js +30 -14
- package/app/open-sse/services/usage/claude.js +73 -2
- package/app/open-sse/services/usage/commandcode.js +134 -0
- package/app/open-sse/services/usage/cursor.js +254 -0
- package/app/open-sse/services/usage/deepseek.js +4 -3
- package/app/open-sse/services/usage/glm.js +48 -39
- package/app/open-sse/services/usage/google.js +21 -16
- package/app/open-sse/services/usage/misc.js +86 -18
- package/app/open-sse/services/usage/opencode-zen.js +107 -0
- package/app/open-sse/services/usage.js +25 -10
- package/app/open-sse/shared/awsCredentials.js +309 -0
- package/app/open-sse/shared/mimoAccount.js +129 -62
- package/app/open-sse/shared/qoder/constants.js +90 -20
- package/app/open-sse/shared/zedAuth.js +23 -5
- package/app/open-sse/transformer/responsesTransformer.js +4 -0
- package/app/open-sse/translator/concerns/claudeMessage.js +53 -0
- package/app/open-sse/translator/concerns/finishReason.js +5 -0
- package/app/open-sse/translator/concerns/kiroConversation.js +16 -2
- package/app/open-sse/translator/concerns/paramSupport.js +27 -3
- package/app/open-sse/translator/concerns/thinking.js +4 -1
- package/app/open-sse/translator/concerns/thinkingUnified.js +94 -11
- package/app/open-sse/translator/concerns/usage.js +6 -2
- package/app/open-sse/translator/formats/claude.js +143 -22
- package/app/open-sse/translator/formats/gemini.js +74 -7
- package/app/open-sse/translator/index.js +30 -3
- package/app/open-sse/translator/request/claude-to-kiro.js +21 -2
- package/app/open-sse/translator/request/claude-to-openai.js +22 -6
- package/app/open-sse/translator/request/openai-to-commandcode.js +23 -10
- package/app/open-sse/translator/request/openai-to-gemini.js +105 -25
- package/app/open-sse/translator/request/openai-to-kiro.js +10 -1
- package/app/open-sse/translator/response/claude-to-openai.js +9 -8
- package/app/open-sse/translator/response/commandcode-to-openai.js +3 -4
- package/app/open-sse/translator/response/gemini-to-openai.js +2 -2
- package/app/open-sse/translator/response/kiro-to-claude.js +11 -3
- package/app/open-sse/translator/response/kiro-to-openai.js +28 -3
- package/app/open-sse/translator/response/openai-responses.js +118 -23
- package/app/open-sse/translator/schema/blocks.js +1 -0
- package/app/open-sse/translator/schema/finishReasons.js +3 -0
- package/app/open-sse/utils/awsEventStream.js +195 -0
- package/app/open-sse/utils/awsSigv4.js +172 -0
- package/app/open-sse/utils/claudeCloaking.js +40 -8
- package/app/open-sse/utils/cursorProtobuf.js +220 -1
- package/app/open-sse/utils/error.js +9 -6
- package/app/open-sse/utils/opencodeFingerprint.js +338 -0
- package/app/open-sse/utils/proxyFetch.js +70 -13
- package/app/open-sse/utils/stream.js +48 -1
- package/app/open-sse/utils/streamHandler.js +6 -1
- package/app/open-sse/utils/streamHelpers.js +25 -0
- package/app/open-sse/utils/toolDeduper.js +44 -11
- package/app/open-sse/utils/upstreamHeaders.js +12 -0
- package/app/open-sse/utils/usageTracking.js +4 -2
- package/app/package.json +6 -1
- package/app/public/i18n/literals/fa.json +17 -1
- package/app/public/i18n/literals/zh-CN.json +26 -1
- package/app/public/providers/agnes.png +0 -0
- package/app/public/providers/atria.png +0 -0
- package/app/public/providers/bai.png +0 -0
- package/app/public/providers/bedrock-xai.png +0 -0
- package/app/public/providers/bedrock.png +0 -0
- package/app/public/providers/codewhale.svg +9 -0
- package/app/public/providers/crush.png +0 -0
- package/app/public/providers/dahl.png +0 -0
- package/app/public/providers/forge.png +0 -0
- package/app/public/providers/hermes.png +0 -0
- package/app/public/providers/muse.png +0 -0
- package/app/public/providers/nous.png +0 -0
- package/app/public/providers/omp.png +0 -0
- package/app/public/providers/pi.svg +6 -0
- package/app/public/providers/qoder-cn.png +0 -0
- package/app/public/providers/smelt.svg +101 -0
- package/app/public/providers/tinyfish.png +0 -0
- package/app/public/providers/tokenharbor.png +0 -0
- package/app/public/providers/v1m.png +0 -0
- package/app/server.js +1 -1
- package/app/src/lib/oauth/services/qoder.js +24 -3
- package/app/src/mitm/antigravityIdeVersion.js +1 -1
- package/app/src/mitm/config.js +42 -7
- package/app/src/shared/constants/cliTools.js +127 -8
- package/app/src/shared/constants/config.js +2 -2
- package/app/src/shared/constants/keyAccess.js +24 -0
- package/app/src/shared/constants/models.js +20 -0
- package/app/src/shared/constants/providers.js +5 -2
- package/app/src/shared/constants/ttsProviders.js +6 -0
- package/app/src/shared/services/quotaAutoPing.js +57 -25
- package/package.json +1 -1
- package/app/.next/server/chunks/2251.js +0 -64
- package/app/.next/server/chunks/318.js +0 -231
- package/app/.next/server/chunks/3490.js +0 -1
- package/app/.next/server/chunks/3676.js +0 -1
- package/app/.next/server/chunks/3753.js +0 -1
- package/app/.next/server/chunks/3998.js +0 -1
- package/app/.next/server/chunks/5729.js +0 -1
- package/app/.next/server/chunks/6818.js +0 -1
- package/app/.next/server/chunks/7220.js +0 -1
- package/app/.next/server/chunks/8145.js +0 -1
- package/app/.next/server/chunks/8236.js +0 -1
- package/app/.next/server/chunks/8351.js +0 -95
- package/app/.next/server/chunks/8473.js +0 -8
- package/app/.next/server/chunks/8965.js +0 -1
- package/app/.next/server/chunks/9820.js +0 -1
- package/app/.next/server/chunks/9927.js +0 -1
- package/app/.next/static/60FwY0jMQtwHUBO9ot3jD/_buildManifest.js +0 -1
- package/app/.next/static/chunks/1321-d1c556cbac9e0b13.js +0 -1
- package/app/.next/static/chunks/2589-0eea17986c57591f.js +0 -3
- package/app/.next/static/chunks/3277-5ccea691719301a1.js +0 -64
- package/app/.next/static/chunks/5497-885ce51ad3573289.js +0 -7
- package/app/.next/static/chunks/6185-19cd971037415756.js +0 -1
- package/app/.next/static/chunks/7391-9a41b212ce16a288.js +0 -95
- package/app/.next/static/chunks/8198-022f6b876963a14e.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-3ac201b4c0d2f9aa.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-d6943540c8897df0.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-e0aa77f5aeb0e7d8.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-00363c4bec619120.js +0 -59
- package/app/.next/static/chunks/app/(dashboard)/dashboard/page-34bee4b97c188315.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-731ec27cfa6d662d.js +0 -27
- package/app/.next/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-05a31085d32426e4.js +0 -4
- package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-ae6574b656f3faf2.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/token-saver/page-6aae3d87e3964ab9.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-2280d1eee30359ad.js +0 -1
- package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/page-2163160ad437f593.js +0 -3
- package/app/.next/static/chunks/app/_global-error/page-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/antigravity-app/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/antigravity-app-v2/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/antigravity-ide/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/antigravity-targets/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/antigravity-tools/import/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/antigravity-tools/import-refresh-tokens/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/auth/login/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/auth/logout/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/auth/oidc/callback/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/auth/oidc/start/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/auth/oidc/test/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/auth/reset-password/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/auth/saml/acs/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/auth/saml/metadata/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/auth/saml/start/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/auth/saml/test/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/auth/status/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/events/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/[jobId]/sudo/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/jobs/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/cursor-byok/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/devin-settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/grok-build-settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/combos/[id]/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/combos/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/donate/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/extras/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/proxy/[...path]/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/restart/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/start/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/status/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/headroom/stop/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/health/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/init/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/internal/account-health/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/internal/request-detail/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/internal/usage/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/reset-usage/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/keys/[id]/usage/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/keys/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/locale/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/models/alias/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/models/availability/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/models/catalog-sync/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/models/custom/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/models/disabled/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/models/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/models/test/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/cursor/import/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/grok-cli/bulk-import/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/api-key/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/pricing/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/provider-nodes/validate/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/models/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/providers/client/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/providers/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/providers/suggested-models/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/providers/test-batch/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/providers/validate/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/health/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/install/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/logs/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/restart/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/start/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/stats/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/status/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/pxpipe/stop/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/settings/database/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/settings/database/selective/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/settings/proxy-test/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/settings/require-login/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/settings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/shutdown/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/tags/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/translator/load/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/translator/save/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/translator/send/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/translator/translate/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/disable/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/enable/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/status/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/usage/[connectionId]/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/usage/chart/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/usage/history/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/usage/logs/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/usage/providers/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/usage/report/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-details/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/usage/request-logs/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stats/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/usage/stream/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/api/chat/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/speech/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/audio/voices/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/chat/completions/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/embeddings/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/images/generations/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/messages/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/[...model]/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/info/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/models/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/compact/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/responses/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/search/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/[id]/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/edits/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/extensions/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/videos/generations/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1/web/fetch/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/v1beta/models/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/version/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/version/shutdown/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/api/version/update/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/landing/page-8aa1b64c49edfaf2.js +0 -1
- package/app/.next/static/chunks/app/manifest.webmanifest/route-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/app/page-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-bec89eeae5edc8d0.js +0 -1
- package/app/.next/static/chunks/webpack-6b46812a5ae291a1.js +0 -1
- package/app/.next/static/css/e88d3a3f66f134dd.css +0 -1
- /package/app/.next/static/{60FwY0jMQtwHUBO9ot3jD → WGoHSNqQVm7Ojq2hfhX5D}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,2791 @@
|
|
|
1
|
+
const { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader, parseEpochTimestamp, parseRfc7231DateTime, parseRfc3339DateTimeWithOffset } = require("@smithy/core/serde");
|
|
2
|
+
const { HttpRequest, HttpResponse, hasOwn, isValidHostname, getSmithyContext } = require("@smithy/core/transport");
|
|
3
|
+
const { parseQueryString, parseUrl } = require("@smithy/core/transport");
|
|
4
|
+
exports.HttpRequest = HttpRequest;
|
|
5
|
+
exports.HttpResponse = HttpResponse;
|
|
6
|
+
exports.isValidHostname = isValidHostname;
|
|
7
|
+
exports.parseQueryString = parseQueryString;
|
|
8
|
+
exports.parseUrl = parseUrl;
|
|
9
|
+
const { TypeRegistry, NormalizedSchema, translateTraits, deref } = require("@smithy/core/schema");
|
|
10
|
+
const { FieldPosition } = require("@smithy/types");
|
|
11
|
+
|
|
12
|
+
const collectBody = async (streamBody = new Uint8Array(), context) => {
|
|
13
|
+
if (streamBody instanceof Uint8Array) {
|
|
14
|
+
return Uint8ArrayBlobAdapter.mutate(streamBody);
|
|
15
|
+
}
|
|
16
|
+
if (!streamBody) {
|
|
17
|
+
return Uint8ArrayBlobAdapter.mutate(new Uint8Array());
|
|
18
|
+
}
|
|
19
|
+
const fromContext = context.streamCollector(streamBody);
|
|
20
|
+
return Uint8ArrayBlobAdapter.mutate(await fromContext);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
function extendedEncodeURIComponent(str) {
|
|
24
|
+
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
|
|
25
|
+
return "%" + c.charCodeAt(0).toString(16).toUpperCase();
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
class SerdeContext {
|
|
30
|
+
serdeContext;
|
|
31
|
+
setSerdeContext(serdeContext) {
|
|
32
|
+
this.serdeContext = serdeContext;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
class HttpProtocol extends SerdeContext {
|
|
37
|
+
options;
|
|
38
|
+
compositeErrorRegistry;
|
|
39
|
+
constructor(options) {
|
|
40
|
+
super();
|
|
41
|
+
this.options = options;
|
|
42
|
+
this.compositeErrorRegistry = new TypeRegistry(options.defaultNamespace);
|
|
43
|
+
for (const etr of options.errorTypeRegistries ?? []) {
|
|
44
|
+
this.compositeErrorRegistry.copyFrom(etr);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
getRequestType() {
|
|
48
|
+
return HttpRequest;
|
|
49
|
+
}
|
|
50
|
+
getResponseType() {
|
|
51
|
+
return HttpResponse;
|
|
52
|
+
}
|
|
53
|
+
setSerdeContext(serdeContext) {
|
|
54
|
+
this.serdeContext = serdeContext;
|
|
55
|
+
this.serializer.setSerdeContext(serdeContext);
|
|
56
|
+
this.deserializer.setSerdeContext(serdeContext);
|
|
57
|
+
if (this.getPayloadCodec()) {
|
|
58
|
+
this.getPayloadCodec().setSerdeContext(serdeContext);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
updateServiceEndpoint(request, endpoint) {
|
|
62
|
+
if ("url" in endpoint) {
|
|
63
|
+
request.protocol = endpoint.url.protocol;
|
|
64
|
+
request.hostname = endpoint.url.hostname;
|
|
65
|
+
request.port = endpoint.url.port ? Number(endpoint.url.port) : undefined;
|
|
66
|
+
request.path = endpoint.url.pathname;
|
|
67
|
+
request.fragment = endpoint.url.hash || void 0;
|
|
68
|
+
request.username = endpoint.url.username || void 0;
|
|
69
|
+
request.password = endpoint.url.password || void 0;
|
|
70
|
+
if (!request.query) {
|
|
71
|
+
request.query = {};
|
|
72
|
+
}
|
|
73
|
+
for (const [k, v] of endpoint.url.searchParams.entries()) {
|
|
74
|
+
request.query[k] = v;
|
|
75
|
+
}
|
|
76
|
+
if (endpoint.headers) {
|
|
77
|
+
for (const name in endpoint.headers) {
|
|
78
|
+
if (!hasOwn(endpoint.headers, name))
|
|
79
|
+
continue;
|
|
80
|
+
request.headers[name] = endpoint.headers[name].join(", ");
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return request;
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
request.protocol = endpoint.protocol;
|
|
87
|
+
request.hostname = endpoint.hostname;
|
|
88
|
+
request.port = endpoint.port ? Number(endpoint.port) : undefined;
|
|
89
|
+
request.path = endpoint.path;
|
|
90
|
+
request.query = {
|
|
91
|
+
...endpoint.query,
|
|
92
|
+
};
|
|
93
|
+
if (endpoint.headers) {
|
|
94
|
+
for (const name in endpoint.headers) {
|
|
95
|
+
if (!hasOwn(endpoint.headers, name))
|
|
96
|
+
continue;
|
|
97
|
+
request.headers[name] = endpoint.headers[name];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return request;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
setHostPrefix(request, operationSchema, input) {
|
|
104
|
+
if (this.serdeContext?.disableHostPrefix) {
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
const inputNs = NormalizedSchema.of(operationSchema.input);
|
|
108
|
+
const opTraits = translateTraits(operationSchema.traits ?? {});
|
|
109
|
+
if (opTraits.endpoint) {
|
|
110
|
+
let hostPrefix = opTraits.endpoint?.[0];
|
|
111
|
+
if (typeof hostPrefix === "string") {
|
|
112
|
+
for (const [name, member] of inputNs.structIterator()) {
|
|
113
|
+
if (!member.getMergedTraits().hostLabel) {
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
const replacement = input[name];
|
|
117
|
+
if (typeof replacement !== "string") {
|
|
118
|
+
throw new Error(`@smithy/core/schema - ${name} in input must be a string as hostLabel.`);
|
|
119
|
+
}
|
|
120
|
+
hostPrefix = hostPrefix.replace(`{${name}}`, replacement);
|
|
121
|
+
}
|
|
122
|
+
request.hostname = hostPrefix + request.hostname;
|
|
123
|
+
if (!isValidHostname(request.hostname)) {
|
|
124
|
+
throw new Error(`[${request.hostname}] is not a valid hostname.`);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
deserializeMetadata(output) {
|
|
130
|
+
return {
|
|
131
|
+
httpStatusCode: output.statusCode,
|
|
132
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
133
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
134
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
resolveError(name, namespaces, registries) {
|
|
138
|
+
const defaultErrorSchema = [-3, "", "Error", 0, [], [], 0];
|
|
139
|
+
let schema;
|
|
140
|
+
for (const registry of registries) {
|
|
141
|
+
for (const ns of namespaces) {
|
|
142
|
+
try {
|
|
143
|
+
if (ns === "*") {
|
|
144
|
+
schema = registry.getSchema(name);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
schema = registry.getSchema(ns + "#" + name);
|
|
148
|
+
}
|
|
149
|
+
const errorCtor = registry.getErrorCtor(schema);
|
|
150
|
+
if (errorCtor) {
|
|
151
|
+
return [schema, errorCtor, "modeled"];
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
const syntheticErrorSchema = registry.getBaseException();
|
|
155
|
+
if (syntheticErrorSchema) {
|
|
156
|
+
const syntheticErrorCtor = registry.getErrorCtor(syntheticErrorSchema);
|
|
157
|
+
if (syntheticErrorCtor) {
|
|
158
|
+
return [schema, syntheticErrorCtor, "synthetic"];
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
catch (ignored) {
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
for (const registry of registries) {
|
|
168
|
+
const syntheticErrorSchema = registry.getBaseException();
|
|
169
|
+
if (syntheticErrorSchema) {
|
|
170
|
+
const syntheticErrorCtor = registry.getErrorCtor(syntheticErrorSchema);
|
|
171
|
+
if (syntheticErrorCtor) {
|
|
172
|
+
return [syntheticErrorSchema, syntheticErrorCtor, "synthetic"];
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return [defaultErrorSchema, Error, "native"];
|
|
177
|
+
}
|
|
178
|
+
async serializeEventStream({ eventStream, requestSchema, initialRequest, }) {
|
|
179
|
+
const eventStreamSerde = await this.loadEventStreamCapability();
|
|
180
|
+
return eventStreamSerde.serializeEventStream({
|
|
181
|
+
eventStream,
|
|
182
|
+
requestSchema,
|
|
183
|
+
initialRequest,
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
async deserializeEventStream({ response, responseSchema, initialResponseContainer, }) {
|
|
187
|
+
const eventStreamSerde = await this.loadEventStreamCapability();
|
|
188
|
+
return eventStreamSerde.deserializeEventStream({
|
|
189
|
+
response,
|
|
190
|
+
responseSchema,
|
|
191
|
+
initialResponseContainer,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
async loadEventStreamCapability() {
|
|
195
|
+
const { EventStreamSerde, eventStreamSerdeProvider } = require('@smithy/core/event-streams');
|
|
196
|
+
const marshaller = this.resolveEventStreamMarshaller(eventStreamSerdeProvider);
|
|
197
|
+
return new EventStreamSerde({
|
|
198
|
+
marshaller,
|
|
199
|
+
serializer: this.serializer,
|
|
200
|
+
deserializer: this.deserializer,
|
|
201
|
+
serdeContext: this.serdeContext,
|
|
202
|
+
defaultContentType: this.getDefaultContentType(),
|
|
203
|
+
compositeErrorRegistry: this.compositeErrorRegistry,
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
getDefaultContentType() {
|
|
207
|
+
throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`);
|
|
208
|
+
}
|
|
209
|
+
async deserializeHttpMessage(schema, context, response, arg4, arg5) {
|
|
210
|
+
return [];
|
|
211
|
+
}
|
|
212
|
+
getEventStreamMarshaller() {
|
|
213
|
+
const context = this.serdeContext;
|
|
214
|
+
if (!context.eventStreamMarshaller) {
|
|
215
|
+
throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");
|
|
216
|
+
}
|
|
217
|
+
return context.eventStreamMarshaller;
|
|
218
|
+
}
|
|
219
|
+
resolveEventStreamMarshaller(importedProvider) {
|
|
220
|
+
const context = this.serdeContext;
|
|
221
|
+
if (context.eventStreamMarshaller) {
|
|
222
|
+
return context.eventStreamMarshaller;
|
|
223
|
+
}
|
|
224
|
+
return importedProvider(this.serdeContext);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
class HttpBindingProtocol extends HttpProtocol {
|
|
229
|
+
async serializeRequest(operationSchema, _input, context) {
|
|
230
|
+
const input = _input && typeof _input === "object" ? _input : {};
|
|
231
|
+
const serializer = this.serializer;
|
|
232
|
+
const query = {};
|
|
233
|
+
const headers = {};
|
|
234
|
+
const endpoint = await context.endpoint();
|
|
235
|
+
const ns = NormalizedSchema.of(operationSchema?.input);
|
|
236
|
+
const payloadMemberNames = [];
|
|
237
|
+
const payloadMemberSchemas = [];
|
|
238
|
+
let hasNonHttpBindingMember = false;
|
|
239
|
+
let payload;
|
|
240
|
+
const request = new HttpRequest({
|
|
241
|
+
protocol: "",
|
|
242
|
+
hostname: "",
|
|
243
|
+
port: undefined,
|
|
244
|
+
path: "",
|
|
245
|
+
fragment: undefined,
|
|
246
|
+
query: query,
|
|
247
|
+
headers: headers,
|
|
248
|
+
body: undefined,
|
|
249
|
+
});
|
|
250
|
+
if (endpoint) {
|
|
251
|
+
this.updateServiceEndpoint(request, endpoint);
|
|
252
|
+
this.setHostPrefix(request, operationSchema, input);
|
|
253
|
+
const opTraits = translateTraits(operationSchema.traits);
|
|
254
|
+
if (opTraits.http) {
|
|
255
|
+
request.method = opTraits.http[0];
|
|
256
|
+
const [path, search] = opTraits.http[1].split("?");
|
|
257
|
+
if (request.path == "/") {
|
|
258
|
+
request.path = path;
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
request.path += path;
|
|
262
|
+
}
|
|
263
|
+
const traitSearchParams = new URLSearchParams(search ?? "");
|
|
264
|
+
for (const [key, value] of traitSearchParams) {
|
|
265
|
+
query[key] = value;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
for (const [memberName, memberNs] of ns.structIterator()) {
|
|
270
|
+
const memberTraits = memberNs.getMergedTraits() ?? {};
|
|
271
|
+
const inputMemberValue = input[memberName];
|
|
272
|
+
if (inputMemberValue == null && !memberNs.isIdempotencyToken()) {
|
|
273
|
+
if (memberTraits.httpLabel) {
|
|
274
|
+
if (request.path.includes(`{${memberName}+}`) || request.path.includes(`{${memberName}}`)) {
|
|
275
|
+
throw new Error(`No value provided for input HTTP label: ${memberName}.`);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
continue;
|
|
279
|
+
}
|
|
280
|
+
if (memberTraits.httpPayload) {
|
|
281
|
+
const isStreaming = memberNs.isStreaming();
|
|
282
|
+
if (isStreaming) {
|
|
283
|
+
const isEventStream = memberNs.isStructSchema();
|
|
284
|
+
if (isEventStream) {
|
|
285
|
+
if (input[memberName]) {
|
|
286
|
+
payload = await this.serializeEventStream({
|
|
287
|
+
eventStream: input[memberName],
|
|
288
|
+
requestSchema: ns,
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
payload = inputMemberValue;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
else {
|
|
297
|
+
serializer.write(memberNs, inputMemberValue);
|
|
298
|
+
payload = serializer.flush();
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
else if (memberTraits.httpLabel) {
|
|
302
|
+
serializer.write(memberNs, inputMemberValue);
|
|
303
|
+
const replacement = serializer.flush();
|
|
304
|
+
if (request.path.includes(`{${memberName}+}`)) {
|
|
305
|
+
request.path = request.path.replace(`{${memberName}+}`, replacement.split("/").map(extendedEncodeURIComponent).join("/"));
|
|
306
|
+
}
|
|
307
|
+
else if (request.path.includes(`{${memberName}}`)) {
|
|
308
|
+
request.path = request.path.replace(`{${memberName}}`, extendedEncodeURIComponent(replacement));
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
else if (memberTraits.httpHeader) {
|
|
312
|
+
serializer.write(memberNs, inputMemberValue);
|
|
313
|
+
headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush());
|
|
314
|
+
}
|
|
315
|
+
else if (typeof memberTraits.httpPrefixHeaders === "string") {
|
|
316
|
+
for (const key in inputMemberValue) {
|
|
317
|
+
if (!hasOwn(inputMemberValue, key))
|
|
318
|
+
continue;
|
|
319
|
+
const val = inputMemberValue[key];
|
|
320
|
+
const amalgam = memberTraits.httpPrefixHeaders + key;
|
|
321
|
+
serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
|
|
322
|
+
headers[amalgam.toLowerCase()] = serializer.flush();
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
else if (memberTraits.httpQuery || memberTraits.httpQueryParams) {
|
|
326
|
+
this.serializeQuery(memberNs, inputMemberValue, query);
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
hasNonHttpBindingMember = true;
|
|
330
|
+
payloadMemberNames.push(memberName);
|
|
331
|
+
payloadMemberSchemas.push(memberNs);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
if (hasNonHttpBindingMember && input) {
|
|
335
|
+
const [namespace, name] = (ns.getName(true) ?? "#Unknown").split("#");
|
|
336
|
+
const requiredMembers = ns.getSchema()[6];
|
|
337
|
+
const payloadSchema = [
|
|
338
|
+
3,
|
|
339
|
+
namespace,
|
|
340
|
+
name,
|
|
341
|
+
ns.getMergedTraits(),
|
|
342
|
+
payloadMemberNames,
|
|
343
|
+
payloadMemberSchemas,
|
|
344
|
+
undefined,
|
|
345
|
+
];
|
|
346
|
+
if (requiredMembers) {
|
|
347
|
+
payloadSchema[6] = requiredMembers;
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
payloadSchema.pop();
|
|
351
|
+
}
|
|
352
|
+
serializer.write(payloadSchema, input);
|
|
353
|
+
payload = serializer.flush();
|
|
354
|
+
}
|
|
355
|
+
request.headers = headers;
|
|
356
|
+
request.query = query;
|
|
357
|
+
request.body = payload;
|
|
358
|
+
return request;
|
|
359
|
+
}
|
|
360
|
+
serializeQuery(ns, data, query) {
|
|
361
|
+
const serializer = this.serializer;
|
|
362
|
+
const traits = ns.getMergedTraits();
|
|
363
|
+
if (traits.httpQueryParams) {
|
|
364
|
+
for (const key in data) {
|
|
365
|
+
if (!hasOwn(data, key))
|
|
366
|
+
continue;
|
|
367
|
+
if (!(key in query)) {
|
|
368
|
+
const val = data[key];
|
|
369
|
+
const valueSchema = ns.getValueSchema();
|
|
370
|
+
Object.assign(valueSchema.getMergedTraits(), {
|
|
371
|
+
...traits,
|
|
372
|
+
httpQuery: key,
|
|
373
|
+
httpQueryParams: undefined,
|
|
374
|
+
});
|
|
375
|
+
this.serializeQuery(valueSchema, val, query);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
if (ns.isListSchema()) {
|
|
381
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
382
|
+
const buffer = [];
|
|
383
|
+
for (const item of data) {
|
|
384
|
+
serializer.write([ns.getValueSchema(), traits], item);
|
|
385
|
+
const serializable = serializer.flush();
|
|
386
|
+
if (sparse || serializable !== undefined) {
|
|
387
|
+
buffer.push(serializable);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
query[traits.httpQuery] = buffer;
|
|
391
|
+
}
|
|
392
|
+
else {
|
|
393
|
+
serializer.write([ns, traits], data);
|
|
394
|
+
query[traits.httpQuery] = serializer.flush();
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
async deserializeResponse(operationSchema, context, response) {
|
|
398
|
+
const deserializer = this.deserializer;
|
|
399
|
+
const ns = NormalizedSchema.of(operationSchema.output);
|
|
400
|
+
const dataObject = {};
|
|
401
|
+
if (response.statusCode >= 300) {
|
|
402
|
+
const bytes = await collectBody(response.body, context);
|
|
403
|
+
if (bytes.byteLength > 0) {
|
|
404
|
+
Object.assign(dataObject, await deserializer.read(15, bytes));
|
|
405
|
+
}
|
|
406
|
+
await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
|
|
407
|
+
throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.");
|
|
408
|
+
}
|
|
409
|
+
for (const header in response.headers) {
|
|
410
|
+
if (!hasOwn(response.headers, header))
|
|
411
|
+
continue;
|
|
412
|
+
const value = response.headers[header];
|
|
413
|
+
delete response.headers[header];
|
|
414
|
+
response.headers[header.toLowerCase()] = value;
|
|
415
|
+
}
|
|
416
|
+
const nonHttpBindingMembers = await this.deserializeHttpMessage(ns, context, response, dataObject);
|
|
417
|
+
if (nonHttpBindingMembers.length) {
|
|
418
|
+
const bytes = await collectBody(response.body, context);
|
|
419
|
+
if (bytes.byteLength > 0) {
|
|
420
|
+
const dataFromBody = await deserializer.read(ns, bytes);
|
|
421
|
+
for (const member of nonHttpBindingMembers) {
|
|
422
|
+
if (dataFromBody[member] != null) {
|
|
423
|
+
dataObject[member] = dataFromBody[member];
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
else if (nonHttpBindingMembers.discardResponseBody) {
|
|
429
|
+
await collectBody(response.body, context);
|
|
430
|
+
}
|
|
431
|
+
dataObject.$metadata = this.deserializeMetadata(response);
|
|
432
|
+
return dataObject;
|
|
433
|
+
}
|
|
434
|
+
async deserializeHttpMessage(schema, context, response, arg4, arg5) {
|
|
435
|
+
let dataObject;
|
|
436
|
+
if (arg4 instanceof Set) {
|
|
437
|
+
dataObject = arg5;
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
dataObject = arg4;
|
|
441
|
+
}
|
|
442
|
+
let discardResponseBody = true;
|
|
443
|
+
const deserializer = this.deserializer;
|
|
444
|
+
const ns = NormalizedSchema.of(schema);
|
|
445
|
+
const nonHttpBindingMembers = [];
|
|
446
|
+
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
447
|
+
const memberTraits = memberSchema.getMemberTraits();
|
|
448
|
+
if (memberTraits.httpPayload) {
|
|
449
|
+
discardResponseBody = false;
|
|
450
|
+
const isStreaming = memberSchema.isStreaming();
|
|
451
|
+
if (isStreaming) {
|
|
452
|
+
const isEventStream = memberSchema.isStructSchema();
|
|
453
|
+
if (isEventStream) {
|
|
454
|
+
dataObject[memberName] = await this.deserializeEventStream({
|
|
455
|
+
response,
|
|
456
|
+
responseSchema: ns,
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
else {
|
|
460
|
+
dataObject[memberName] = sdkStreamMixin(response.body);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
else if (response.body) {
|
|
464
|
+
const bytes = await collectBody(response.body, context);
|
|
465
|
+
if (bytes.byteLength > 0) {
|
|
466
|
+
dataObject[memberName] = await deserializer.read(memberSchema, bytes);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
else if (memberTraits.httpHeader) {
|
|
471
|
+
const key = String(memberTraits.httpHeader).toLowerCase();
|
|
472
|
+
const value = response.headers[key];
|
|
473
|
+
if (null != value) {
|
|
474
|
+
if (memberSchema.isListSchema()) {
|
|
475
|
+
const headerListValueSchema = memberSchema.getValueSchema();
|
|
476
|
+
headerListValueSchema.getMergedTraits().httpHeader = key;
|
|
477
|
+
let sections;
|
|
478
|
+
if (headerListValueSchema.isTimestampSchema() &&
|
|
479
|
+
headerListValueSchema.getSchema() === 4) {
|
|
480
|
+
sections = splitEvery(value, ",", 2);
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
sections = splitHeader(value);
|
|
484
|
+
}
|
|
485
|
+
const list = [];
|
|
486
|
+
for (const section of sections) {
|
|
487
|
+
list.push(await deserializer.read(headerListValueSchema, section.trim()));
|
|
488
|
+
}
|
|
489
|
+
dataObject[memberName] = list;
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
dataObject[memberName] = await deserializer.read(memberSchema, value);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
else if (memberTraits.httpPrefixHeaders !== undefined) {
|
|
497
|
+
dataObject[memberName] = {};
|
|
498
|
+
for (const header in response.headers) {
|
|
499
|
+
if (!hasOwn(response.headers, header))
|
|
500
|
+
continue;
|
|
501
|
+
if (header.startsWith(memberTraits.httpPrefixHeaders)) {
|
|
502
|
+
const value = response.headers[header];
|
|
503
|
+
const valueSchema = memberSchema.getValueSchema();
|
|
504
|
+
valueSchema.getMergedTraits().httpHeader = header;
|
|
505
|
+
dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read(valueSchema, value);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
else if (memberTraits.httpResponseCode) {
|
|
510
|
+
dataObject[memberName] = response.statusCode;
|
|
511
|
+
}
|
|
512
|
+
else {
|
|
513
|
+
nonHttpBindingMembers.push(memberName);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
nonHttpBindingMembers.discardResponseBody = discardResponseBody;
|
|
517
|
+
return nonHttpBindingMembers;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
class RpcProtocol extends HttpProtocol {
|
|
522
|
+
async serializeRequest(operationSchema, _input, context) {
|
|
523
|
+
const serializer = this.serializer;
|
|
524
|
+
const query = {};
|
|
525
|
+
const headers = {};
|
|
526
|
+
const endpoint = await context.endpoint();
|
|
527
|
+
const ns = NormalizedSchema.of(operationSchema?.input);
|
|
528
|
+
const schema = ns.getSchema();
|
|
529
|
+
let payload;
|
|
530
|
+
const input = _input && typeof _input === "object" ? _input : {};
|
|
531
|
+
const request = new HttpRequest({
|
|
532
|
+
protocol: "",
|
|
533
|
+
hostname: "",
|
|
534
|
+
port: undefined,
|
|
535
|
+
path: "/",
|
|
536
|
+
fragment: undefined,
|
|
537
|
+
query: query,
|
|
538
|
+
headers: headers,
|
|
539
|
+
body: undefined,
|
|
540
|
+
});
|
|
541
|
+
if (endpoint) {
|
|
542
|
+
this.updateServiceEndpoint(request, endpoint);
|
|
543
|
+
this.setHostPrefix(request, operationSchema, input);
|
|
544
|
+
}
|
|
545
|
+
if (input) {
|
|
546
|
+
const eventStreamMember = ns.getEventStreamMember();
|
|
547
|
+
if (eventStreamMember) {
|
|
548
|
+
if (input[eventStreamMember]) {
|
|
549
|
+
const initialRequest = {};
|
|
550
|
+
for (const [memberName] of ns.structIterator()) {
|
|
551
|
+
if (memberName !== eventStreamMember && input[memberName] != null) {
|
|
552
|
+
initialRequest[memberName] = input[memberName];
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
payload = await this.serializeEventStream({
|
|
556
|
+
eventStream: input[eventStreamMember],
|
|
557
|
+
requestSchema: ns,
|
|
558
|
+
initialRequest,
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
else {
|
|
563
|
+
serializer.write(schema, input);
|
|
564
|
+
payload = serializer.flush();
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
request.headers = Object.assign(request.headers, headers);
|
|
568
|
+
request.query = query;
|
|
569
|
+
request.body = payload;
|
|
570
|
+
request.method = "POST";
|
|
571
|
+
return request;
|
|
572
|
+
}
|
|
573
|
+
async deserializeResponse(operationSchema, context, response) {
|
|
574
|
+
const deserializer = this.deserializer;
|
|
575
|
+
const ns = NormalizedSchema.of(operationSchema.output);
|
|
576
|
+
const dataObject = {};
|
|
577
|
+
if (response.statusCode >= 300) {
|
|
578
|
+
const bytes = await collectBody(response.body, context);
|
|
579
|
+
if (bytes.byteLength > 0) {
|
|
580
|
+
Object.assign(dataObject, await deserializer.read(15, bytes));
|
|
581
|
+
}
|
|
582
|
+
await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
|
|
583
|
+
throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
|
|
584
|
+
}
|
|
585
|
+
for (const header in response.headers) {
|
|
586
|
+
if (!hasOwn(response.headers, header))
|
|
587
|
+
continue;
|
|
588
|
+
const value = response.headers[header];
|
|
589
|
+
delete response.headers[header];
|
|
590
|
+
response.headers[header.toLowerCase()] = value;
|
|
591
|
+
}
|
|
592
|
+
const eventStreamMember = ns.getEventStreamMember();
|
|
593
|
+
if (eventStreamMember) {
|
|
594
|
+
dataObject[eventStreamMember] = await this.deserializeEventStream({
|
|
595
|
+
response,
|
|
596
|
+
responseSchema: ns,
|
|
597
|
+
initialResponseContainer: dataObject,
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
else {
|
|
601
|
+
const bytes = await collectBody(response.body, context);
|
|
602
|
+
if (bytes.byteLength > 0) {
|
|
603
|
+
Object.assign(dataObject, await deserializer.read(ns, bytes));
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
dataObject.$metadata = this.deserializeMetadata(response);
|
|
607
|
+
return dataObject;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
const resolvedPath = (resolvedPath, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => {
|
|
612
|
+
if (input != null && input[memberName] !== undefined) {
|
|
613
|
+
const labelValue = labelValueProvider();
|
|
614
|
+
if (labelValue == null || labelValue.length <= 0) {
|
|
615
|
+
throw new Error("Empty value provided for input HTTP label: " + memberName + ".");
|
|
616
|
+
}
|
|
617
|
+
resolvedPath = resolvedPath.replace(uriLabel, isGreedyLabel
|
|
618
|
+
? labelValue
|
|
619
|
+
.split("/")
|
|
620
|
+
.map((segment) => extendedEncodeURIComponent(segment))
|
|
621
|
+
.join("/")
|
|
622
|
+
: extendedEncodeURIComponent(labelValue));
|
|
623
|
+
}
|
|
624
|
+
else {
|
|
625
|
+
throw new Error("No value provided for input HTTP label: " + memberName + ".");
|
|
626
|
+
}
|
|
627
|
+
return resolvedPath;
|
|
628
|
+
};
|
|
629
|
+
|
|
630
|
+
function requestBuilder(input, context) {
|
|
631
|
+
return new RequestBuilder(input, context);
|
|
632
|
+
}
|
|
633
|
+
class RequestBuilder {
|
|
634
|
+
input;
|
|
635
|
+
context;
|
|
636
|
+
query = {};
|
|
637
|
+
method = "";
|
|
638
|
+
headers = {};
|
|
639
|
+
path = "";
|
|
640
|
+
body = null;
|
|
641
|
+
hostname = "";
|
|
642
|
+
resolvePathStack = [];
|
|
643
|
+
constructor(input, context) {
|
|
644
|
+
this.input = input;
|
|
645
|
+
this.context = context;
|
|
646
|
+
}
|
|
647
|
+
async build() {
|
|
648
|
+
const { hostname, protocol = "https", port, path: basePath } = await this.context.endpoint();
|
|
649
|
+
this.path = basePath;
|
|
650
|
+
for (const resolvePath of this.resolvePathStack) {
|
|
651
|
+
resolvePath(this.path);
|
|
652
|
+
}
|
|
653
|
+
return new HttpRequest({
|
|
654
|
+
protocol,
|
|
655
|
+
hostname: this.hostname || hostname,
|
|
656
|
+
port,
|
|
657
|
+
method: this.method,
|
|
658
|
+
path: this.path,
|
|
659
|
+
query: this.query,
|
|
660
|
+
body: this.body,
|
|
661
|
+
headers: this.headers,
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
hn(hostname) {
|
|
665
|
+
this.hostname = hostname;
|
|
666
|
+
return this;
|
|
667
|
+
}
|
|
668
|
+
bp(uriLabel) {
|
|
669
|
+
this.resolvePathStack.push((basePath) => {
|
|
670
|
+
this.path = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + uriLabel;
|
|
671
|
+
});
|
|
672
|
+
return this;
|
|
673
|
+
}
|
|
674
|
+
p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
|
|
675
|
+
this.resolvePathStack.push((path) => {
|
|
676
|
+
this.path = resolvedPath(path, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
|
|
677
|
+
});
|
|
678
|
+
return this;
|
|
679
|
+
}
|
|
680
|
+
h(headers) {
|
|
681
|
+
this.headers = headers;
|
|
682
|
+
return this;
|
|
683
|
+
}
|
|
684
|
+
q(query) {
|
|
685
|
+
this.query = query;
|
|
686
|
+
return this;
|
|
687
|
+
}
|
|
688
|
+
b(body) {
|
|
689
|
+
this.body = body;
|
|
690
|
+
return this;
|
|
691
|
+
}
|
|
692
|
+
m(method) {
|
|
693
|
+
this.method = method;
|
|
694
|
+
return this;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
function determineTimestampFormat(ns, settings) {
|
|
699
|
+
if (settings.timestampFormat.useTrait) {
|
|
700
|
+
if (ns.isTimestampSchema() &&
|
|
701
|
+
(ns.getSchema() === 5 ||
|
|
702
|
+
ns.getSchema() === 6 ||
|
|
703
|
+
ns.getSchema() === 7)) {
|
|
704
|
+
return ns.getSchema();
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
const { httpLabel, httpPrefixHeaders, httpHeader, httpQuery } = ns.getMergedTraits();
|
|
708
|
+
const bindingFormat = settings.httpBindings
|
|
709
|
+
? typeof httpPrefixHeaders === "string" || Boolean(httpHeader)
|
|
710
|
+
? 6
|
|
711
|
+
: Boolean(httpQuery) || Boolean(httpLabel)
|
|
712
|
+
? 5
|
|
713
|
+
: undefined
|
|
714
|
+
: undefined;
|
|
715
|
+
return bindingFormat ?? settings.timestampFormat.default;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
class FromStringShapeDeserializer extends SerdeContext {
|
|
719
|
+
settings;
|
|
720
|
+
constructor(settings) {
|
|
721
|
+
super();
|
|
722
|
+
this.settings = settings;
|
|
723
|
+
}
|
|
724
|
+
read(_schema, data) {
|
|
725
|
+
const ns = NormalizedSchema.of(_schema);
|
|
726
|
+
if (ns.isListSchema()) {
|
|
727
|
+
return splitHeader(data).map((item) => this.read(ns.getValueSchema(), item));
|
|
728
|
+
}
|
|
729
|
+
if (ns.isBlobSchema()) {
|
|
730
|
+
return (this.serdeContext?.base64Decoder ?? fromBase64)(data);
|
|
731
|
+
}
|
|
732
|
+
if (ns.isTimestampSchema()) {
|
|
733
|
+
const format = determineTimestampFormat(ns, this.settings);
|
|
734
|
+
switch (format) {
|
|
735
|
+
case 5:
|
|
736
|
+
return _parseRfc3339DateTimeWithOffset(data);
|
|
737
|
+
case 6:
|
|
738
|
+
return _parseRfc7231DateTime(data);
|
|
739
|
+
case 7:
|
|
740
|
+
return _parseEpochTimestamp(data);
|
|
741
|
+
default:
|
|
742
|
+
console.warn("Missing timestamp format, parsing value with Date constructor:", data);
|
|
743
|
+
return new Date(data);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
if (ns.isStringSchema()) {
|
|
747
|
+
const mediaType = ns.getMergedTraits().mediaType;
|
|
748
|
+
let intermediateValue = data;
|
|
749
|
+
if (mediaType) {
|
|
750
|
+
if (ns.getMergedTraits().httpHeader) {
|
|
751
|
+
intermediateValue = this.base64ToUtf8(intermediateValue);
|
|
752
|
+
}
|
|
753
|
+
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
754
|
+
if (isJson) {
|
|
755
|
+
intermediateValue = LazyJsonString.from(intermediateValue);
|
|
756
|
+
}
|
|
757
|
+
return intermediateValue;
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
if (ns.isNumericSchema()) {
|
|
761
|
+
return Number(data);
|
|
762
|
+
}
|
|
763
|
+
if (ns.isBigIntegerSchema()) {
|
|
764
|
+
return BigInt(data);
|
|
765
|
+
}
|
|
766
|
+
if (ns.isBigDecimalSchema()) {
|
|
767
|
+
return new NumericValue(data, "bigDecimal");
|
|
768
|
+
}
|
|
769
|
+
if (ns.isBooleanSchema()) {
|
|
770
|
+
return String(data).toLowerCase() === "true";
|
|
771
|
+
}
|
|
772
|
+
return data;
|
|
773
|
+
}
|
|
774
|
+
base64ToUtf8(base64String) {
|
|
775
|
+
return (this.serdeContext?.utf8Encoder ?? toUtf8)((this.serdeContext?.base64Decoder ?? fromBase64)(base64String));
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
class HttpInterceptingShapeDeserializer extends SerdeContext {
|
|
780
|
+
codecDeserializer;
|
|
781
|
+
stringDeserializer;
|
|
782
|
+
constructor(codecDeserializer, codecSettings) {
|
|
783
|
+
super();
|
|
784
|
+
this.codecDeserializer = codecDeserializer;
|
|
785
|
+
this.stringDeserializer = new FromStringShapeDeserializer(codecSettings);
|
|
786
|
+
}
|
|
787
|
+
setSerdeContext(serdeContext) {
|
|
788
|
+
this.stringDeserializer.setSerdeContext(serdeContext);
|
|
789
|
+
this.codecDeserializer.setSerdeContext(serdeContext);
|
|
790
|
+
this.serdeContext = serdeContext;
|
|
791
|
+
}
|
|
792
|
+
read(schema, data) {
|
|
793
|
+
const ns = NormalizedSchema.of(schema);
|
|
794
|
+
const traits = ns.getMergedTraits();
|
|
795
|
+
const toString = this.serdeContext?.utf8Encoder ?? toUtf8;
|
|
796
|
+
if (traits.httpHeader || traits.httpResponseCode) {
|
|
797
|
+
return this.stringDeserializer.read(ns, toString(data));
|
|
798
|
+
}
|
|
799
|
+
if (traits.httpPayload) {
|
|
800
|
+
if (ns.isBlobSchema()) {
|
|
801
|
+
const toBytes = this.serdeContext?.utf8Decoder ?? fromUtf8;
|
|
802
|
+
if (typeof data === "string") {
|
|
803
|
+
return toBytes(data);
|
|
804
|
+
}
|
|
805
|
+
return data;
|
|
806
|
+
}
|
|
807
|
+
else if (ns.isStringSchema()) {
|
|
808
|
+
if ("byteLength" in data) {
|
|
809
|
+
return toString(data);
|
|
810
|
+
}
|
|
811
|
+
return data;
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
return this.codecDeserializer.read(ns, data);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
class ToStringShapeSerializer extends SerdeContext {
|
|
819
|
+
settings;
|
|
820
|
+
stringBuffer = "";
|
|
821
|
+
constructor(settings) {
|
|
822
|
+
super();
|
|
823
|
+
this.settings = settings;
|
|
824
|
+
}
|
|
825
|
+
write(schema, value) {
|
|
826
|
+
const ns = NormalizedSchema.of(schema);
|
|
827
|
+
switch (typeof value) {
|
|
828
|
+
case "object":
|
|
829
|
+
if (value === null) {
|
|
830
|
+
this.stringBuffer = "null";
|
|
831
|
+
return;
|
|
832
|
+
}
|
|
833
|
+
if (ns.isTimestampSchema()) {
|
|
834
|
+
if (!(value instanceof Date)) {
|
|
835
|
+
throw new Error(`@smithy/core/protocols - received non-Date value ${value} when schema expected Date in ${ns.getName(true)}`);
|
|
836
|
+
}
|
|
837
|
+
const format = determineTimestampFormat(ns, this.settings);
|
|
838
|
+
switch (format) {
|
|
839
|
+
case 5:
|
|
840
|
+
this.stringBuffer = value.toISOString().replace(".000Z", "Z");
|
|
841
|
+
break;
|
|
842
|
+
case 6:
|
|
843
|
+
this.stringBuffer = dateToUtcString(value);
|
|
844
|
+
break;
|
|
845
|
+
case 7:
|
|
846
|
+
this.stringBuffer = String(value.getTime() / 1000);
|
|
847
|
+
break;
|
|
848
|
+
default:
|
|
849
|
+
console.warn("Missing timestamp format, using epoch seconds", value);
|
|
850
|
+
this.stringBuffer = String(value.getTime() / 1000);
|
|
851
|
+
}
|
|
852
|
+
return;
|
|
853
|
+
}
|
|
854
|
+
if (ns.isBlobSchema() && "byteLength" in value) {
|
|
855
|
+
this.stringBuffer = (this.serdeContext?.base64Encoder ?? toBase64)(value);
|
|
856
|
+
return;
|
|
857
|
+
}
|
|
858
|
+
if (ns.isListSchema() && Array.isArray(value)) {
|
|
859
|
+
let buffer = "";
|
|
860
|
+
for (const item of value) {
|
|
861
|
+
this.write([ns.getValueSchema(), ns.getMergedTraits()], item);
|
|
862
|
+
const headerItem = this.flush();
|
|
863
|
+
const serialized = ns.getValueSchema().isTimestampSchema() ? headerItem : quoteHeader(headerItem);
|
|
864
|
+
if (buffer !== "") {
|
|
865
|
+
buffer += ", ";
|
|
866
|
+
}
|
|
867
|
+
buffer += serialized;
|
|
868
|
+
}
|
|
869
|
+
this.stringBuffer = buffer;
|
|
870
|
+
return;
|
|
871
|
+
}
|
|
872
|
+
this.stringBuffer = JSON.stringify(value, null, 2);
|
|
873
|
+
break;
|
|
874
|
+
case "string":
|
|
875
|
+
const mediaType = ns.getMergedTraits().mediaType;
|
|
876
|
+
let intermediateValue = value;
|
|
877
|
+
if (mediaType) {
|
|
878
|
+
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
879
|
+
if (isJson) {
|
|
880
|
+
intermediateValue = LazyJsonString.from(intermediateValue);
|
|
881
|
+
}
|
|
882
|
+
if (ns.getMergedTraits().httpHeader) {
|
|
883
|
+
this.stringBuffer = (this.serdeContext?.base64Encoder ?? toBase64)(intermediateValue.toString());
|
|
884
|
+
return;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
this.stringBuffer = value;
|
|
888
|
+
break;
|
|
889
|
+
default:
|
|
890
|
+
if (ns.isIdempotencyToken()) {
|
|
891
|
+
this.stringBuffer = generateIdempotencyToken();
|
|
892
|
+
}
|
|
893
|
+
else {
|
|
894
|
+
this.stringBuffer = String(value);
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
flush() {
|
|
899
|
+
const buffer = this.stringBuffer;
|
|
900
|
+
this.stringBuffer = "";
|
|
901
|
+
return buffer;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
class HttpInterceptingShapeSerializer {
|
|
906
|
+
codecSerializer;
|
|
907
|
+
stringSerializer;
|
|
908
|
+
buffer;
|
|
909
|
+
constructor(codecSerializer, codecSettings, stringSerializer = new ToStringShapeSerializer(codecSettings)) {
|
|
910
|
+
this.codecSerializer = codecSerializer;
|
|
911
|
+
this.stringSerializer = stringSerializer;
|
|
912
|
+
}
|
|
913
|
+
setSerdeContext(serdeContext) {
|
|
914
|
+
this.codecSerializer.setSerdeContext(serdeContext);
|
|
915
|
+
this.stringSerializer.setSerdeContext(serdeContext);
|
|
916
|
+
}
|
|
917
|
+
write(schema, value) {
|
|
918
|
+
const ns = NormalizedSchema.of(schema);
|
|
919
|
+
const traits = ns.getMergedTraits();
|
|
920
|
+
if (traits.httpHeader || traits.httpLabel || traits.httpQuery) {
|
|
921
|
+
this.stringSerializer.write(ns, value);
|
|
922
|
+
this.buffer = this.stringSerializer.flush();
|
|
923
|
+
return;
|
|
924
|
+
}
|
|
925
|
+
return this.codecSerializer.write(ns, value);
|
|
926
|
+
}
|
|
927
|
+
flush() {
|
|
928
|
+
if (this.buffer !== undefined) {
|
|
929
|
+
const buffer = this.buffer;
|
|
930
|
+
this.buffer = undefined;
|
|
931
|
+
return buffer;
|
|
932
|
+
}
|
|
933
|
+
return this.codecSerializer.flush();
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
class Field {
|
|
938
|
+
name;
|
|
939
|
+
kind;
|
|
940
|
+
values;
|
|
941
|
+
constructor({ name, kind = FieldPosition.HEADER, values = [] }) {
|
|
942
|
+
this.name = name;
|
|
943
|
+
this.kind = kind;
|
|
944
|
+
this.values = values;
|
|
945
|
+
}
|
|
946
|
+
add(value) {
|
|
947
|
+
this.values.push(value);
|
|
948
|
+
}
|
|
949
|
+
set(values) {
|
|
950
|
+
this.values = values;
|
|
951
|
+
}
|
|
952
|
+
remove(value) {
|
|
953
|
+
this.values = this.values.filter((v) => v !== value);
|
|
954
|
+
}
|
|
955
|
+
toString() {
|
|
956
|
+
return this.values.map((v) => (v.includes(",") || v.includes(" ") ? `"${v}"` : v)).join(", ");
|
|
957
|
+
}
|
|
958
|
+
get() {
|
|
959
|
+
return this.values;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
class Fields {
|
|
964
|
+
entries = {};
|
|
965
|
+
encoding;
|
|
966
|
+
constructor({ fields = [], encoding = "utf-8" }) {
|
|
967
|
+
fields.forEach(this.setField.bind(this));
|
|
968
|
+
this.encoding = encoding;
|
|
969
|
+
}
|
|
970
|
+
setField(field) {
|
|
971
|
+
this.entries[field.name.toLowerCase()] = field;
|
|
972
|
+
}
|
|
973
|
+
getField(name) {
|
|
974
|
+
return this.entries[name.toLowerCase()];
|
|
975
|
+
}
|
|
976
|
+
removeField(name) {
|
|
977
|
+
delete this.entries[name.toLowerCase()];
|
|
978
|
+
}
|
|
979
|
+
getByType(kind) {
|
|
980
|
+
return Object.values(this.entries).filter((field) => field.kind === kind);
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
const getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
|
|
985
|
+
if (runtimeConfig.logger && runtimeConfig.logger.constructor?.name !== "NoOpLogger") {
|
|
986
|
+
runtimeConfig.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"), runtimeConfig.logger);
|
|
987
|
+
}
|
|
988
|
+
return {
|
|
989
|
+
setHttpHandler(handler) {
|
|
990
|
+
runtimeConfig.requestHandler = handler;
|
|
991
|
+
},
|
|
992
|
+
httpHandler() {
|
|
993
|
+
return runtimeConfig.requestHandler;
|
|
994
|
+
},
|
|
995
|
+
updateHttpClientConfig(key, value) {
|
|
996
|
+
runtimeConfig.requestHandler?.updateHttpClientConfig(key, value);
|
|
997
|
+
},
|
|
998
|
+
httpHandlerConfigs() {
|
|
999
|
+
return runtimeConfig.requestHandler.httpHandlerConfigs();
|
|
1000
|
+
},
|
|
1001
|
+
};
|
|
1002
|
+
};
|
|
1003
|
+
const resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
|
|
1004
|
+
return {
|
|
1005
|
+
requestHandler: httpHandlerExtensionConfiguration.httpHandler(),
|
|
1006
|
+
};
|
|
1007
|
+
};
|
|
1008
|
+
|
|
1009
|
+
const CONTENT_LENGTH_HEADER = "content-length";
|
|
1010
|
+
function contentLengthMiddleware(bodyLengthChecker) {
|
|
1011
|
+
return (next) => async (args) => {
|
|
1012
|
+
const request = args.request;
|
|
1013
|
+
if (HttpRequest.isInstance(request)) {
|
|
1014
|
+
const { body, headers } = request;
|
|
1015
|
+
if (body &&
|
|
1016
|
+
Object.keys(headers)
|
|
1017
|
+
.map((str) => str.toLowerCase())
|
|
1018
|
+
.indexOf(CONTENT_LENGTH_HEADER) === -1) {
|
|
1019
|
+
try {
|
|
1020
|
+
const length = bodyLengthChecker(body);
|
|
1021
|
+
if (length != null) {
|
|
1022
|
+
request.headers = {
|
|
1023
|
+
...request.headers,
|
|
1024
|
+
[CONTENT_LENGTH_HEADER]: String(length),
|
|
1025
|
+
};
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
catch (ignored) {
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
return next({
|
|
1033
|
+
...args,
|
|
1034
|
+
request,
|
|
1035
|
+
});
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
const contentLengthMiddlewareOptions = {
|
|
1039
|
+
step: "build",
|
|
1040
|
+
tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"],
|
|
1041
|
+
name: "contentLengthMiddleware",
|
|
1042
|
+
override: true,
|
|
1043
|
+
};
|
|
1044
|
+
const getContentLengthPlugin = (options) => ({
|
|
1045
|
+
applyToStack: (clientStack) => {
|
|
1046
|
+
clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions);
|
|
1047
|
+
},
|
|
1048
|
+
});
|
|
1049
|
+
|
|
1050
|
+
const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
|
|
1051
|
+
const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
|
|
1052
|
+
|
|
1053
|
+
const escapeUriPath = (uri) => uri.split("/").map(escapeUri).join("/");
|
|
1054
|
+
|
|
1055
|
+
function buildQueryString(query) {
|
|
1056
|
+
const parts = [];
|
|
1057
|
+
for (let key of Object.keys(query).sort()) {
|
|
1058
|
+
const value = query[key];
|
|
1059
|
+
key = escapeUri(key);
|
|
1060
|
+
if (Array.isArray(value)) {
|
|
1061
|
+
for (let i = 0, iLen = value.length; i < iLen; i++) {
|
|
1062
|
+
parts.push(`${key}=${escapeUri(value[i])}`);
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
else {
|
|
1066
|
+
let qsEntry = key;
|
|
1067
|
+
if (value || typeof value === "string") {
|
|
1068
|
+
qsEntry += `=${escapeUri(value)}`;
|
|
1069
|
+
}
|
|
1070
|
+
parts.push(qsEntry);
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
return parts.join("&");
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
class SerdeContextConfig {
|
|
1077
|
+
serdeContext;
|
|
1078
|
+
setSerdeContext(serdeContext) {
|
|
1079
|
+
this.serdeContext = serdeContext;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
class UnionSerde {
|
|
1084
|
+
from;
|
|
1085
|
+
to;
|
|
1086
|
+
keys;
|
|
1087
|
+
constructor(from, to) {
|
|
1088
|
+
this.from = from;
|
|
1089
|
+
this.to = to;
|
|
1090
|
+
const keys = Object.keys(this.from);
|
|
1091
|
+
const set = new Set(keys);
|
|
1092
|
+
set.delete("__type");
|
|
1093
|
+
this.keys = set;
|
|
1094
|
+
}
|
|
1095
|
+
mark(key) {
|
|
1096
|
+
this.keys.delete(key);
|
|
1097
|
+
}
|
|
1098
|
+
hasUnknown() {
|
|
1099
|
+
return this.keys.size === 1 && Object.keys(this.to).length === 0;
|
|
1100
|
+
}
|
|
1101
|
+
writeUnknown() {
|
|
1102
|
+
if (this.hasUnknown()) {
|
|
1103
|
+
const k = this.keys.values().next().value;
|
|
1104
|
+
const v = this.from[k];
|
|
1105
|
+
this.to.$unknown = [k, v];
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
let canParseBuffer;
|
|
1111
|
+
function detectBufferParsing() {
|
|
1112
|
+
if (canParseBuffer === undefined) {
|
|
1113
|
+
try {
|
|
1114
|
+
if (typeof Buffer !== "function") {
|
|
1115
|
+
canParseBuffer = false;
|
|
1116
|
+
}
|
|
1117
|
+
else {
|
|
1118
|
+
const result = JSON.parse(Buffer.from([0x7b, 0x7d]));
|
|
1119
|
+
canParseBuffer = result !== null && typeof result === "object";
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
catch {
|
|
1123
|
+
canParseBuffer = false;
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
return canParseBuffer;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
function jsonReviver(key, value, context) {
|
|
1130
|
+
if (context?.source) {
|
|
1131
|
+
const numericString = context.source;
|
|
1132
|
+
if (typeof value === "number") {
|
|
1133
|
+
const inSafeRange = value <= Number.MAX_SAFE_INTEGER && value >= Number.MIN_SAFE_INTEGER;
|
|
1134
|
+
if (inSafeRange) {
|
|
1135
|
+
if (isRepresentable(numericString, value)) {
|
|
1136
|
+
return value;
|
|
1137
|
+
}
|
|
1138
|
+
return new NumericValue(numericString, "bigDecimal");
|
|
1139
|
+
}
|
|
1140
|
+
else {
|
|
1141
|
+
if (isFractionalBigNumeric(numericString)) {
|
|
1142
|
+
return new NumericValue(numericString, "bigDecimal");
|
|
1143
|
+
}
|
|
1144
|
+
if (/[eE]/.test(numericString)) {
|
|
1145
|
+
return expandExponentToBigInt(numericString);
|
|
1146
|
+
}
|
|
1147
|
+
return BigInt(numericString);
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
return value;
|
|
1152
|
+
}
|
|
1153
|
+
function isFractionalBigNumeric(s) {
|
|
1154
|
+
const dotIndex = s.indexOf(".");
|
|
1155
|
+
if (dotIndex === -1) {
|
|
1156
|
+
return false;
|
|
1157
|
+
}
|
|
1158
|
+
const eIndex = s.search(/[eE]/);
|
|
1159
|
+
if (eIndex === -1) {
|
|
1160
|
+
return true;
|
|
1161
|
+
}
|
|
1162
|
+
const fracDigits = eIndex - dotIndex - 1;
|
|
1163
|
+
const exp = parseInt(s.slice(eIndex + 1), 10);
|
|
1164
|
+
return exp < fracDigits;
|
|
1165
|
+
}
|
|
1166
|
+
function isRepresentable(numericString, value) {
|
|
1167
|
+
if (numericString === String(value)) {
|
|
1168
|
+
return true;
|
|
1169
|
+
}
|
|
1170
|
+
if (Object.is(value, -0)) {
|
|
1171
|
+
return true;
|
|
1172
|
+
}
|
|
1173
|
+
if (/[eE]/.test(numericString)) {
|
|
1174
|
+
return expandToDecimal(numericString) === expandToDecimal(String(value));
|
|
1175
|
+
}
|
|
1176
|
+
const normalized = numericString.replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
|
|
1177
|
+
const canonical = String(value);
|
|
1178
|
+
if (normalized === canonical) {
|
|
1179
|
+
return true;
|
|
1180
|
+
}
|
|
1181
|
+
if (/[eE]/.test(canonical)) {
|
|
1182
|
+
return normalized === expandToDecimal(canonical);
|
|
1183
|
+
}
|
|
1184
|
+
return false;
|
|
1185
|
+
}
|
|
1186
|
+
function expandToDecimal(s) {
|
|
1187
|
+
const negative = s.startsWith("-");
|
|
1188
|
+
const abs = negative ? s.slice(1) : s;
|
|
1189
|
+
const eIndex = abs.search(/[eE]/);
|
|
1190
|
+
let result;
|
|
1191
|
+
if (eIndex === -1) {
|
|
1192
|
+
result = abs;
|
|
1193
|
+
}
|
|
1194
|
+
else {
|
|
1195
|
+
const exp = parseInt(abs.slice(eIndex + 1), 10);
|
|
1196
|
+
const mantissa = abs.slice(0, eIndex);
|
|
1197
|
+
const dotIndex = mantissa.indexOf(".");
|
|
1198
|
+
let digits;
|
|
1199
|
+
let intLen;
|
|
1200
|
+
if (dotIndex === -1) {
|
|
1201
|
+
digits = mantissa;
|
|
1202
|
+
intLen = mantissa.length;
|
|
1203
|
+
}
|
|
1204
|
+
else {
|
|
1205
|
+
digits = mantissa.slice(0, dotIndex) + mantissa.slice(dotIndex + 1);
|
|
1206
|
+
intLen = dotIndex;
|
|
1207
|
+
}
|
|
1208
|
+
digits = digits.replace(/0+$/, "") || "0";
|
|
1209
|
+
const newDotPos = intLen + exp;
|
|
1210
|
+
if (digits === "0") {
|
|
1211
|
+
result = "0";
|
|
1212
|
+
}
|
|
1213
|
+
else if (newDotPos <= 0) {
|
|
1214
|
+
result = "0." + "0".repeat(-newDotPos) + digits;
|
|
1215
|
+
}
|
|
1216
|
+
else if (newDotPos >= digits.length) {
|
|
1217
|
+
result = digits + "0".repeat(newDotPos - digits.length);
|
|
1218
|
+
}
|
|
1219
|
+
else {
|
|
1220
|
+
result = digits.slice(0, newDotPos) + "." + digits.slice(newDotPos);
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
if (result.includes(".")) {
|
|
1224
|
+
result = result.replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
|
|
1225
|
+
}
|
|
1226
|
+
return (negative ? "-" : "") + result;
|
|
1227
|
+
}
|
|
1228
|
+
function expandExponentToBigInt(s) {
|
|
1229
|
+
const eIndex = s.search(/[eE]/);
|
|
1230
|
+
const exp = parseInt(s.slice(eIndex + 1), 10);
|
|
1231
|
+
const negative = s.startsWith("-");
|
|
1232
|
+
const mantissa = s.slice(negative ? 1 : 0, eIndex);
|
|
1233
|
+
const dotIndex = mantissa.indexOf(".");
|
|
1234
|
+
let digits;
|
|
1235
|
+
let shift;
|
|
1236
|
+
if (dotIndex === -1) {
|
|
1237
|
+
digits = mantissa;
|
|
1238
|
+
shift = exp;
|
|
1239
|
+
}
|
|
1240
|
+
else {
|
|
1241
|
+
digits = mantissa.slice(0, dotIndex) + mantissa.slice(dotIndex + 1);
|
|
1242
|
+
const fracDigits = mantissa.length - dotIndex - 1;
|
|
1243
|
+
shift = exp - fracDigits;
|
|
1244
|
+
}
|
|
1245
|
+
digits = digits.replace(/0+$/, "") || "0";
|
|
1246
|
+
const result = BigInt(digits) * 10n ** BigInt(shift + (mantissa.replace(".", "").length - digits.length));
|
|
1247
|
+
return negative ? -result : result;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
const REVIVER_SYMBOL = Symbol.for("@aws-sdk/reviver");
|
|
1251
|
+
function needsReviver(schema) {
|
|
1252
|
+
const ns = NormalizedSchema.of(schema);
|
|
1253
|
+
const raw = ns.getSchema();
|
|
1254
|
+
if (Array.isArray(raw) && ns.isStructSchema()) {
|
|
1255
|
+
if (REVIVER_SYMBOL in raw) {
|
|
1256
|
+
return raw[REVIVER_SYMBOL];
|
|
1257
|
+
}
|
|
1258
|
+
const result = _check(ns, new Set());
|
|
1259
|
+
raw[REVIVER_SYMBOL] = result;
|
|
1260
|
+
return result;
|
|
1261
|
+
}
|
|
1262
|
+
return _check(ns, new Set());
|
|
1263
|
+
}
|
|
1264
|
+
function _check(ns, seen) {
|
|
1265
|
+
const raw = ns.getSchema();
|
|
1266
|
+
if (seen.has(raw)) {
|
|
1267
|
+
return false;
|
|
1268
|
+
}
|
|
1269
|
+
seen.add(raw);
|
|
1270
|
+
if (ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
|
|
1271
|
+
return true;
|
|
1272
|
+
}
|
|
1273
|
+
if (ns.isStructSchema()) {
|
|
1274
|
+
for (const [, memberSchema] of ns.structIterator()) {
|
|
1275
|
+
if (_check(memberSchema, seen)) {
|
|
1276
|
+
return true;
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
else if (ns.isListSchema() || ns.isMapSchema()) {
|
|
1281
|
+
if (_check(ns.getValueSchema(), seen)) {
|
|
1282
|
+
return true;
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
else if (ns.isDocumentSchema()) {
|
|
1286
|
+
return true;
|
|
1287
|
+
}
|
|
1288
|
+
return false;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? toUtf8)(body));
|
|
1292
|
+
|
|
1293
|
+
async function parseJsonBody(streamBody, context, schema) {
|
|
1294
|
+
let parsingInput;
|
|
1295
|
+
if (detectBufferParsing() && typeof streamBody?.[Symbol.asyncIterator] === "function") {
|
|
1296
|
+
const buffer = await collectBody(streamBody, context);
|
|
1297
|
+
if (typeof Buffer === "function") {
|
|
1298
|
+
if (Buffer.isBuffer(buffer)) {
|
|
1299
|
+
parsingInput = buffer;
|
|
1300
|
+
}
|
|
1301
|
+
else {
|
|
1302
|
+
parsingInput = Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
if (!parsingInput) {
|
|
1307
|
+
parsingInput = await collectBodyString(streamBody, context);
|
|
1308
|
+
}
|
|
1309
|
+
if (parsingInput.length === 0) {
|
|
1310
|
+
return {};
|
|
1311
|
+
}
|
|
1312
|
+
const reviver = schema && needsReviver(schema) ? jsonReviver : undefined;
|
|
1313
|
+
try {
|
|
1314
|
+
return JSON.parse(parsingInput, reviver);
|
|
1315
|
+
}
|
|
1316
|
+
catch (e) {
|
|
1317
|
+
if (e?.name === "SyntaxError") {
|
|
1318
|
+
Object.defineProperty(e, "$responseBodyText", {
|
|
1319
|
+
value: typeof parsingInput === "string" ? parsingInput : parsingInput.toString("utf8"),
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
throw e;
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
const parseJsonErrorBody = async (errorBody, context) => {
|
|
1326
|
+
const value = await parseJsonBody(errorBody, context);
|
|
1327
|
+
value.message = value.message ?? value.Message;
|
|
1328
|
+
return value;
|
|
1329
|
+
};
|
|
1330
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1331
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
1332
|
+
let cleanValue = rawValue;
|
|
1333
|
+
if (typeof cleanValue === "number") {
|
|
1334
|
+
cleanValue = cleanValue.toString();
|
|
1335
|
+
}
|
|
1336
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1337
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1338
|
+
}
|
|
1339
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1340
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1341
|
+
}
|
|
1342
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1343
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1344
|
+
}
|
|
1345
|
+
return cleanValue;
|
|
1346
|
+
};
|
|
1347
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
1348
|
+
return loadErrorCode(output, data, ["header", "code", "type"]);
|
|
1349
|
+
};
|
|
1350
|
+
const loadJsonRpcErrorCode = (output, data, queryCompat = false) => {
|
|
1351
|
+
return loadErrorCode(output, data, queryCompat ? ["code", "header", "type"] : ["type", "code", "header"]);
|
|
1352
|
+
};
|
|
1353
|
+
const loadSmithyRpcV2JsonErrorCode = (output, data) => {
|
|
1354
|
+
if (data?.__type !== undefined) {
|
|
1355
|
+
let cleanValue = data.__type;
|
|
1356
|
+
if (typeof cleanValue === "number") {
|
|
1357
|
+
cleanValue = cleanValue.toString();
|
|
1358
|
+
}
|
|
1359
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1360
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1361
|
+
}
|
|
1362
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1363
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1364
|
+
}
|
|
1365
|
+
return cleanValue;
|
|
1366
|
+
}
|
|
1367
|
+
};
|
|
1368
|
+
const loadErrorCode = ({ headers }, data, order) => {
|
|
1369
|
+
while (order.length > 0) {
|
|
1370
|
+
const location = order.shift();
|
|
1371
|
+
switch (location) {
|
|
1372
|
+
case "header":
|
|
1373
|
+
const headerKey = findKey(headers ?? {}, "x-amzn-errortype");
|
|
1374
|
+
if (headerKey !== undefined) {
|
|
1375
|
+
return sanitizeErrorCode(headers[headerKey]);
|
|
1376
|
+
}
|
|
1377
|
+
break;
|
|
1378
|
+
case "code":
|
|
1379
|
+
const codeKey = findKey(data ?? {}, "code");
|
|
1380
|
+
if (codeKey && data[codeKey] !== undefined) {
|
|
1381
|
+
return sanitizeErrorCode(data[codeKey]);
|
|
1382
|
+
}
|
|
1383
|
+
break;
|
|
1384
|
+
case "type":
|
|
1385
|
+
if (data?.__type !== undefined) {
|
|
1386
|
+
return sanitizeErrorCode(data.__type);
|
|
1387
|
+
}
|
|
1388
|
+
break;
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
};
|
|
1392
|
+
|
|
1393
|
+
function writeKey(obj) {
|
|
1394
|
+
Object.defineProperty(obj, "__proto__", { value: undefined, writable: true, enumerable: true, configurable: true });
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
class JsonShapeDeserializer2 extends SerdeContextConfig {
|
|
1398
|
+
settings;
|
|
1399
|
+
constructor(settings) {
|
|
1400
|
+
super();
|
|
1401
|
+
this.settings = settings;
|
|
1402
|
+
}
|
|
1403
|
+
async read(schema, data) {
|
|
1404
|
+
const reviver = needsReviver(schema) ? jsonReviver : undefined;
|
|
1405
|
+
let parsed;
|
|
1406
|
+
if (typeof data === "string") {
|
|
1407
|
+
if (data.length === 0) {
|
|
1408
|
+
return {};
|
|
1409
|
+
}
|
|
1410
|
+
parsed = JSON.parse(data, reviver);
|
|
1411
|
+
}
|
|
1412
|
+
else if (data instanceof Uint8Array && detectBufferParsing()) {
|
|
1413
|
+
if (data.byteLength === 0) {
|
|
1414
|
+
return {};
|
|
1415
|
+
}
|
|
1416
|
+
const buf = Buffer.isBuffer(data) ? data : Buffer.from(data.buffer, data.byteOffset, data.byteLength);
|
|
1417
|
+
parsed = JSON.parse(buf, reviver);
|
|
1418
|
+
}
|
|
1419
|
+
else {
|
|
1420
|
+
parsed = await parseJsonBody(data, this.serdeContext, schema);
|
|
1421
|
+
}
|
|
1422
|
+
return this._read(schema, parsed);
|
|
1423
|
+
}
|
|
1424
|
+
readObject(schema, data) {
|
|
1425
|
+
return this._read(schema, data);
|
|
1426
|
+
}
|
|
1427
|
+
_read(schema, value) {
|
|
1428
|
+
const isObject = value !== null && typeof value === "object";
|
|
1429
|
+
const ns = NormalizedSchema.of(schema);
|
|
1430
|
+
if (isObject) {
|
|
1431
|
+
if (ns.isStructSchema()) {
|
|
1432
|
+
return this._readStruct(ns, value);
|
|
1433
|
+
}
|
|
1434
|
+
if (Array.isArray(value) && ns.isListSchema()) {
|
|
1435
|
+
const listMember = ns.getValueSchema();
|
|
1436
|
+
if (this.needsTransform(listMember)) {
|
|
1437
|
+
for (let i = 0; i < value.length; ++i) {
|
|
1438
|
+
value[i] = this._read(listMember, value[i]);
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
return value;
|
|
1442
|
+
}
|
|
1443
|
+
if (ns.isMapSchema()) {
|
|
1444
|
+
const mapMember = ns.getValueSchema();
|
|
1445
|
+
const map = value;
|
|
1446
|
+
if (this.needsTransform(mapMember)) {
|
|
1447
|
+
for (const k in map) {
|
|
1448
|
+
if (!hasOwn(map, k))
|
|
1449
|
+
continue;
|
|
1450
|
+
if (k === "__proto__") {
|
|
1451
|
+
writeKey(map);
|
|
1452
|
+
}
|
|
1453
|
+
map[k] = this._read(mapMember, map[k]);
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
return map;
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
if (ns.isBlobSchema() && typeof value === "string") {
|
|
1460
|
+
return fromBase64(value);
|
|
1461
|
+
}
|
|
1462
|
+
const mediaType = ns.getMergedTraits().mediaType;
|
|
1463
|
+
if (ns.isStringSchema() && typeof value === "string" && mediaType) {
|
|
1464
|
+
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
1465
|
+
if (isJson) {
|
|
1466
|
+
return LazyJsonString.from(value);
|
|
1467
|
+
}
|
|
1468
|
+
return value;
|
|
1469
|
+
}
|
|
1470
|
+
if (ns.isTimestampSchema() && value != null) {
|
|
1471
|
+
const format = determineTimestampFormat(ns, this.settings);
|
|
1472
|
+
switch (format) {
|
|
1473
|
+
case 5:
|
|
1474
|
+
return parseRfc3339DateTimeWithOffset(value);
|
|
1475
|
+
case 6:
|
|
1476
|
+
return parseRfc7231DateTime(value);
|
|
1477
|
+
case 7:
|
|
1478
|
+
return parseEpochTimestamp(value);
|
|
1479
|
+
default:
|
|
1480
|
+
console.warn("Missing timestamp format, parsing value with Date constructor:", value);
|
|
1481
|
+
return new Date(value);
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
|
|
1485
|
+
return BigInt(value);
|
|
1486
|
+
}
|
|
1487
|
+
if (ns.isBigDecimalSchema() && value != undefined) {
|
|
1488
|
+
if (value instanceof NumericValue) {
|
|
1489
|
+
return value;
|
|
1490
|
+
}
|
|
1491
|
+
const untyped = value;
|
|
1492
|
+
if (untyped.type === "bigDecimal" && "string" in untyped) {
|
|
1493
|
+
return new NumericValue(untyped.string, untyped.type);
|
|
1494
|
+
}
|
|
1495
|
+
return new NumericValue(String(value), "bigDecimal");
|
|
1496
|
+
}
|
|
1497
|
+
if (ns.isNumericSchema() && typeof value === "string") {
|
|
1498
|
+
switch (value) {
|
|
1499
|
+
case "Infinity":
|
|
1500
|
+
return Infinity;
|
|
1501
|
+
case "-Infinity":
|
|
1502
|
+
return -Infinity;
|
|
1503
|
+
case "NaN":
|
|
1504
|
+
return NaN;
|
|
1505
|
+
}
|
|
1506
|
+
return value;
|
|
1507
|
+
}
|
|
1508
|
+
if (ns.isDocumentSchema()) {
|
|
1509
|
+
if (isObject) {
|
|
1510
|
+
if (Array.isArray(value)) {
|
|
1511
|
+
for (let i = 0; i < value.length; ++i) {
|
|
1512
|
+
const v = value[i];
|
|
1513
|
+
if (!(v instanceof NumericValue)) {
|
|
1514
|
+
value[i] = this._read(ns, v);
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
else {
|
|
1519
|
+
const doc = value;
|
|
1520
|
+
for (const k in doc) {
|
|
1521
|
+
if (!hasOwn(doc, k))
|
|
1522
|
+
continue;
|
|
1523
|
+
if (k === "__proto__") {
|
|
1524
|
+
writeKey(doc);
|
|
1525
|
+
}
|
|
1526
|
+
const v = doc[k];
|
|
1527
|
+
if (!(v instanceof NumericValue)) {
|
|
1528
|
+
doc[k] = this._read(ns, v);
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
return value;
|
|
1535
|
+
}
|
|
1536
|
+
_readStruct(ns, record) {
|
|
1537
|
+
const union = ns.isUnionSchema();
|
|
1538
|
+
const out = {};
|
|
1539
|
+
let nameMap;
|
|
1540
|
+
const hasType = typeof record.__type === "string";
|
|
1541
|
+
const { jsonName } = this.settings;
|
|
1542
|
+
if (jsonName && hasType) {
|
|
1543
|
+
nameMap = {};
|
|
1544
|
+
}
|
|
1545
|
+
let unionSerde;
|
|
1546
|
+
if (union) {
|
|
1547
|
+
unionSerde = new UnionSerde(record, out);
|
|
1548
|
+
}
|
|
1549
|
+
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
1550
|
+
let fromKey = memberName;
|
|
1551
|
+
if (jsonName) {
|
|
1552
|
+
fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
|
|
1553
|
+
if (hasType) {
|
|
1554
|
+
nameMap[fromKey] = memberName;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
if (union) {
|
|
1558
|
+
unionSerde.mark(fromKey);
|
|
1559
|
+
}
|
|
1560
|
+
if (record[fromKey] != null) {
|
|
1561
|
+
out[memberName] = this._read(memberSchema, record[fromKey]);
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
if (union) {
|
|
1565
|
+
unionSerde.writeUnknown();
|
|
1566
|
+
}
|
|
1567
|
+
else if (hasType) {
|
|
1568
|
+
for (const k in record) {
|
|
1569
|
+
if (!hasOwn(record, k))
|
|
1570
|
+
continue;
|
|
1571
|
+
const v = record[k];
|
|
1572
|
+
const t = jsonName ? (nameMap[k] ?? k) : k;
|
|
1573
|
+
if (!(t in out)) {
|
|
1574
|
+
out[t] = v;
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
return out;
|
|
1579
|
+
}
|
|
1580
|
+
needsTransform(ns) {
|
|
1581
|
+
if (ns.isBlobSchema() ||
|
|
1582
|
+
ns.isTimestampSchema() ||
|
|
1583
|
+
ns.isBigIntegerSchema() ||
|
|
1584
|
+
ns.isBigDecimalSchema() ||
|
|
1585
|
+
ns.isNumericSchema()) {
|
|
1586
|
+
return true;
|
|
1587
|
+
}
|
|
1588
|
+
if (ns.isDocumentSchema() || ns.isStructSchema() || ns.isListSchema() || ns.isMapSchema()) {
|
|
1589
|
+
return true;
|
|
1590
|
+
}
|
|
1591
|
+
if (ns.isStringSchema() && ns.getMergedTraits().mediaType) {
|
|
1592
|
+
return true;
|
|
1593
|
+
}
|
|
1594
|
+
return false;
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
class JsonBytesStringAdapter extends Uint8Array {
|
|
1599
|
+
string = null;
|
|
1600
|
+
static allocUnsafe(bytes) {
|
|
1601
|
+
if (typeof Buffer === "function") {
|
|
1602
|
+
const buffer = Buffer.allocUnsafe(bytes);
|
|
1603
|
+
return new JsonBytesStringAdapter(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
|
1604
|
+
}
|
|
1605
|
+
return new JsonBytesStringAdapter(bytes);
|
|
1606
|
+
}
|
|
1607
|
+
toString() {
|
|
1608
|
+
return this.s();
|
|
1609
|
+
}
|
|
1610
|
+
valueOf() {
|
|
1611
|
+
return this.s();
|
|
1612
|
+
}
|
|
1613
|
+
includes(searchString, position) {
|
|
1614
|
+
if (typeof searchString === "string") {
|
|
1615
|
+
return this.s().includes(searchString, position);
|
|
1616
|
+
}
|
|
1617
|
+
return Uint8Array.prototype.includes.call(this, searchString, position);
|
|
1618
|
+
}
|
|
1619
|
+
indexOf(searchString, position) {
|
|
1620
|
+
if (typeof searchString === "string") {
|
|
1621
|
+
return this.s().indexOf(searchString, position);
|
|
1622
|
+
}
|
|
1623
|
+
return Uint8Array.prototype.indexOf.call(this, searchString, position);
|
|
1624
|
+
}
|
|
1625
|
+
lastIndexOf(searchString, position) {
|
|
1626
|
+
if (typeof searchString === "string") {
|
|
1627
|
+
return this.s().lastIndexOf(searchString, position);
|
|
1628
|
+
}
|
|
1629
|
+
const fn = Uint8Array.prototype.lastIndexOf;
|
|
1630
|
+
if (position !== undefined) {
|
|
1631
|
+
return fn.call(this, searchString, position);
|
|
1632
|
+
}
|
|
1633
|
+
return fn.call(this, searchString);
|
|
1634
|
+
}
|
|
1635
|
+
startsWith(searchString, position) {
|
|
1636
|
+
return this.s().startsWith(searchString, position);
|
|
1637
|
+
}
|
|
1638
|
+
endsWith(searchString, endPosition) {
|
|
1639
|
+
return this.s().endsWith(searchString, endPosition);
|
|
1640
|
+
}
|
|
1641
|
+
match(regexp) {
|
|
1642
|
+
return this.s().match(regexp);
|
|
1643
|
+
}
|
|
1644
|
+
replace(searchValue, replaceValue) {
|
|
1645
|
+
return this.s().replace(searchValue, replaceValue);
|
|
1646
|
+
}
|
|
1647
|
+
search(regexp) {
|
|
1648
|
+
return this.s().search(regexp);
|
|
1649
|
+
}
|
|
1650
|
+
split(separator, limit) {
|
|
1651
|
+
return this.s().split(separator, limit);
|
|
1652
|
+
}
|
|
1653
|
+
substring(start, end) {
|
|
1654
|
+
return this.s().substring(start, end);
|
|
1655
|
+
}
|
|
1656
|
+
trim() {
|
|
1657
|
+
return this.s().trim();
|
|
1658
|
+
}
|
|
1659
|
+
trimStart() {
|
|
1660
|
+
return this.s().trimStart();
|
|
1661
|
+
}
|
|
1662
|
+
trimEnd() {
|
|
1663
|
+
return this.s().trimEnd();
|
|
1664
|
+
}
|
|
1665
|
+
charAt(pos) {
|
|
1666
|
+
return this.s().charAt(pos);
|
|
1667
|
+
}
|
|
1668
|
+
charCodeAt(index) {
|
|
1669
|
+
return this.s().charCodeAt(index);
|
|
1670
|
+
}
|
|
1671
|
+
padStart(maxLength, fillString) {
|
|
1672
|
+
return this.s().padStart(maxLength, fillString);
|
|
1673
|
+
}
|
|
1674
|
+
padEnd(maxLength, fillString) {
|
|
1675
|
+
return this.s().padEnd(maxLength, fillString);
|
|
1676
|
+
}
|
|
1677
|
+
repeat(count) {
|
|
1678
|
+
return this.s().repeat(count);
|
|
1679
|
+
}
|
|
1680
|
+
toUpperCase() {
|
|
1681
|
+
return this.s().toUpperCase();
|
|
1682
|
+
}
|
|
1683
|
+
toLowerCase() {
|
|
1684
|
+
return this.s().toLowerCase();
|
|
1685
|
+
}
|
|
1686
|
+
s() {
|
|
1687
|
+
if (this.string == null) {
|
|
1688
|
+
const n = Date.now();
|
|
1689
|
+
if (n > warned + 60_000) {
|
|
1690
|
+
console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. " +
|
|
1691
|
+
"It has been automatically converted to string. In a future version this will throw an error.");
|
|
1692
|
+
warned = n;
|
|
1693
|
+
}
|
|
1694
|
+
this.string = toUtf8(this);
|
|
1695
|
+
}
|
|
1696
|
+
return this.string;
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
var warned = 0;
|
|
1700
|
+
|
|
1701
|
+
const encoder = new TextEncoder();
|
|
1702
|
+
const OPEN_BRACE = 0x7b;
|
|
1703
|
+
const CLOSE_BRACE = 0x7d;
|
|
1704
|
+
const OPEN_BRACKET = 0x5b;
|
|
1705
|
+
const CLOSE_BRACKET = 0x5d;
|
|
1706
|
+
const QUOTE = 0x22;
|
|
1707
|
+
const COLON = 0x3a;
|
|
1708
|
+
const COMMA = 0x2c;
|
|
1709
|
+
const BACKSLASH = 0x5c;
|
|
1710
|
+
const TRUE = new Uint8Array([0x74, 0x72, 0x75, 0x65]);
|
|
1711
|
+
const FALSE = new Uint8Array([0x66, 0x61, 0x6c, 0x73, 0x65]);
|
|
1712
|
+
const NULL = new Uint8Array([0x6e, 0x75, 0x6c, 0x6c]);
|
|
1713
|
+
const ESCAPE_TABLE = new Array(128).fill(null);
|
|
1714
|
+
ESCAPE_TABLE[0x08] = "b";
|
|
1715
|
+
ESCAPE_TABLE[0x09] = "t";
|
|
1716
|
+
ESCAPE_TABLE[0x0a] = "n";
|
|
1717
|
+
ESCAPE_TABLE[0x0c] = "f";
|
|
1718
|
+
ESCAPE_TABLE[0x0d] = "r";
|
|
1719
|
+
ESCAPE_TABLE[0x22] = '"';
|
|
1720
|
+
ESCAPE_TABLE[0x5c] = "\\";
|
|
1721
|
+
for (let i = 0; i < 0x20; i++) {
|
|
1722
|
+
if (ESCAPE_TABLE[i] === null) {
|
|
1723
|
+
ESCAPE_TABLE[i] = "u00" + i.toString(16).padStart(2, "0");
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
const INITIAL_BUFFER_SIZE = 2048;
|
|
1727
|
+
function alloc(size) {
|
|
1728
|
+
return JsonBytesStringAdapter.allocUnsafe(size);
|
|
1729
|
+
}
|
|
1730
|
+
class JsonShapeSerializer2 extends SerdeContextConfig {
|
|
1731
|
+
settings;
|
|
1732
|
+
json;
|
|
1733
|
+
i = 0;
|
|
1734
|
+
rootSchema;
|
|
1735
|
+
rawValue;
|
|
1736
|
+
passthrough = false;
|
|
1737
|
+
constructor(settings) {
|
|
1738
|
+
super();
|
|
1739
|
+
this.settings = settings;
|
|
1740
|
+
this.json = alloc(INITIAL_BUFFER_SIZE);
|
|
1741
|
+
}
|
|
1742
|
+
write(schema, value) {
|
|
1743
|
+
this.i = 0;
|
|
1744
|
+
this.rawValue = value;
|
|
1745
|
+
this.rootSchema = NormalizedSchema.of(schema);
|
|
1746
|
+
this.passthrough = this.rootSchema.isBlobSchema() || this.rootSchema.isStringSchema();
|
|
1747
|
+
if (!this.passthrough) {
|
|
1748
|
+
this.writeValue(this.rootSchema, value, undefined);
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
writeDiscriminatedDocument(schema, value) {
|
|
1752
|
+
this.i = 0;
|
|
1753
|
+
this.rootSchema = NormalizedSchema.of(schema);
|
|
1754
|
+
const ns = this.rootSchema;
|
|
1755
|
+
if (ns.isStructSchema() && value != null && typeof value === "object") {
|
|
1756
|
+
this.writeValue(ns, value, undefined);
|
|
1757
|
+
const prefix = `"__type":"${ns.getName(true) ?? "Unknown"}",`;
|
|
1758
|
+
const z = prefix.length;
|
|
1759
|
+
this.ensure(z);
|
|
1760
|
+
this.json.copyWithin(1 + z, 1, this.i);
|
|
1761
|
+
encoder.encodeInto(prefix, this.json.subarray(1));
|
|
1762
|
+
this.i += z;
|
|
1763
|
+
}
|
|
1764
|
+
else {
|
|
1765
|
+
this.writeValue(ns, value, undefined);
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
flush() {
|
|
1769
|
+
this.rootSchema = undefined;
|
|
1770
|
+
const finalPosition = this.i;
|
|
1771
|
+
this.i = 0;
|
|
1772
|
+
const raw = this.rawValue;
|
|
1773
|
+
this.rawValue = undefined;
|
|
1774
|
+
if (finalPosition === 0) {
|
|
1775
|
+
return raw;
|
|
1776
|
+
}
|
|
1777
|
+
const result = this.json.subarray(0, finalPosition);
|
|
1778
|
+
this.json = alloc(INITIAL_BUFFER_SIZE);
|
|
1779
|
+
return result;
|
|
1780
|
+
}
|
|
1781
|
+
ensure(byteCount) {
|
|
1782
|
+
const { i, json } = this;
|
|
1783
|
+
if (i + byteCount > json.length) {
|
|
1784
|
+
let newSize = json.length * 2;
|
|
1785
|
+
while (newSize < i + byteCount) {
|
|
1786
|
+
newSize *= 2;
|
|
1787
|
+
}
|
|
1788
|
+
const next = alloc(newSize);
|
|
1789
|
+
next.set(this.json);
|
|
1790
|
+
this.json = next;
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
writeAscii(s) {
|
|
1794
|
+
const z = s.length;
|
|
1795
|
+
this.ensure(z);
|
|
1796
|
+
let { i, json } = this;
|
|
1797
|
+
for (let j = 0; j < z; ++j) {
|
|
1798
|
+
json[i] = s.charCodeAt(j);
|
|
1799
|
+
i += 1;
|
|
1800
|
+
}
|
|
1801
|
+
this.i = i;
|
|
1802
|
+
}
|
|
1803
|
+
writeAsciiQuoted(s) {
|
|
1804
|
+
const z = s.length;
|
|
1805
|
+
this.ensure(z + 4);
|
|
1806
|
+
let { json, i } = this;
|
|
1807
|
+
json[i++] = QUOTE;
|
|
1808
|
+
for (let j = 0; j < z; ++j) {
|
|
1809
|
+
json[i++] = s.charCodeAt(j);
|
|
1810
|
+
}
|
|
1811
|
+
json[i++] = QUOTE;
|
|
1812
|
+
this.i = i;
|
|
1813
|
+
}
|
|
1814
|
+
writeJsonString(s) {
|
|
1815
|
+
this.ensure(s.length * 3 + 2);
|
|
1816
|
+
this.json[this.i++] = QUOTE;
|
|
1817
|
+
const z = s.length;
|
|
1818
|
+
for (let j = 0; j < z; ++j) {
|
|
1819
|
+
const c = s.charCodeAt(j);
|
|
1820
|
+
if (c > 0x22 && c < 0x5c) {
|
|
1821
|
+
this.json[this.i++] = c;
|
|
1822
|
+
}
|
|
1823
|
+
else if (c < 0x80) {
|
|
1824
|
+
const esc = ESCAPE_TABLE[c];
|
|
1825
|
+
if (esc !== null) {
|
|
1826
|
+
this.ensure(esc.length + 1);
|
|
1827
|
+
this.json[this.i++] = BACKSLASH;
|
|
1828
|
+
for (let k = 0; k < esc.length; k++) {
|
|
1829
|
+
this.json[this.i++] = esc.charCodeAt(k);
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
else {
|
|
1833
|
+
this.json[this.i++] = c;
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
else if (c >= 0xd800 && c <= 0xdbff) {
|
|
1837
|
+
const next = j + 1 < z ? s.charCodeAt(j + 1) : 0;
|
|
1838
|
+
if (next >= 0xdc00 && next <= 0xdfff) {
|
|
1839
|
+
this.ensure(4);
|
|
1840
|
+
const { written } = encoder.encodeInto(s.substring(j, j + 2), this.json.subarray(this.i));
|
|
1841
|
+
this.i += written;
|
|
1842
|
+
++j;
|
|
1843
|
+
}
|
|
1844
|
+
else {
|
|
1845
|
+
this.ensure(6);
|
|
1846
|
+
this.writeUnicodeEscape(c);
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
else if (c >= 0xdc00 && c <= 0xdfff) {
|
|
1850
|
+
this.ensure(6);
|
|
1851
|
+
this.writeUnicodeEscape(c);
|
|
1852
|
+
}
|
|
1853
|
+
else {
|
|
1854
|
+
let { i, json } = this;
|
|
1855
|
+
if (c < 0x800) {
|
|
1856
|
+
json[i++] = 0xc0 | (c >> 6);
|
|
1857
|
+
json[i++] = 0x80 | (c & 0x3f);
|
|
1858
|
+
}
|
|
1859
|
+
else {
|
|
1860
|
+
json[i++] = 0xe0 | (c >> 12);
|
|
1861
|
+
json[i++] = 0x80 | ((c >> 6) & 0x3f);
|
|
1862
|
+
json[i++] = 0x80 | (c & 0x3f);
|
|
1863
|
+
}
|
|
1864
|
+
this.i = i;
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
this.json[this.i++] = QUOTE;
|
|
1868
|
+
}
|
|
1869
|
+
writeUnicodeEscape(code) {
|
|
1870
|
+
let { json, i } = this;
|
|
1871
|
+
json[i++] = BACKSLASH;
|
|
1872
|
+
json[i++] = 0x75;
|
|
1873
|
+
const hex = code.toString(16).padStart(4, "0");
|
|
1874
|
+
for (let j = 0; j < 4; ++j) {
|
|
1875
|
+
json[i++] = hex.charCodeAt(j);
|
|
1876
|
+
}
|
|
1877
|
+
this.i = i;
|
|
1878
|
+
}
|
|
1879
|
+
static B64 = (() => {
|
|
1880
|
+
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
1881
|
+
const table = new Uint8Array(64);
|
|
1882
|
+
for (let i = 0; i < 64; ++i) {
|
|
1883
|
+
table[i] = chars.charCodeAt(i);
|
|
1884
|
+
}
|
|
1885
|
+
return table;
|
|
1886
|
+
})();
|
|
1887
|
+
writeBase64(data) {
|
|
1888
|
+
const b64Len = Math.ceil(data.length / 3) * 4;
|
|
1889
|
+
this.ensure(b64Len + 2);
|
|
1890
|
+
const json = this.json;
|
|
1891
|
+
const B64 = JsonShapeSerializer2.B64;
|
|
1892
|
+
let i = this.i;
|
|
1893
|
+
json[i++] = QUOTE;
|
|
1894
|
+
const len = data.length;
|
|
1895
|
+
const remainder = len % 3;
|
|
1896
|
+
const mainLen = len - remainder;
|
|
1897
|
+
for (let j = 0; j < mainLen; j += 3) {
|
|
1898
|
+
const a = data[j];
|
|
1899
|
+
const b = data[j + 1];
|
|
1900
|
+
const c = data[j + 2];
|
|
1901
|
+
json[i++] = B64[a >> 2];
|
|
1902
|
+
json[i++] = B64[((a & 0x03) << 4) | (b >> 4)];
|
|
1903
|
+
json[i++] = B64[((b & 0x0f) << 2) | (c >> 6)];
|
|
1904
|
+
json[i++] = B64[c & 0x3f];
|
|
1905
|
+
}
|
|
1906
|
+
if (remainder === 2) {
|
|
1907
|
+
const a = data[mainLen];
|
|
1908
|
+
const b = data[mainLen + 1];
|
|
1909
|
+
json[i++] = B64[a >> 2];
|
|
1910
|
+
json[i++] = B64[((a & 0x03) << 4) | (b >> 4)];
|
|
1911
|
+
json[i++] = B64[(b & 0x0f) << 2];
|
|
1912
|
+
json[i++] = 0x3d;
|
|
1913
|
+
}
|
|
1914
|
+
else if (remainder === 1) {
|
|
1915
|
+
const a = data[mainLen];
|
|
1916
|
+
json[i++] = B64[a >> 2];
|
|
1917
|
+
json[i++] = B64[(a & 0x03) << 4];
|
|
1918
|
+
json[i++] = 0x3d;
|
|
1919
|
+
json[i++] = 0x3d;
|
|
1920
|
+
}
|
|
1921
|
+
json[i++] = QUOTE;
|
|
1922
|
+
this.i = i;
|
|
1923
|
+
}
|
|
1924
|
+
writeValue(schema, value, container) {
|
|
1925
|
+
if (value == null) {
|
|
1926
|
+
if (container?.isStructSchema()) {
|
|
1927
|
+
if (value === undefined) {
|
|
1928
|
+
const ns = NormalizedSchema.of(schema);
|
|
1929
|
+
if (ns.isIdempotencyToken()) {
|
|
1930
|
+
this.writeAsciiQuoted(generateIdempotencyToken());
|
|
1931
|
+
return;
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
return;
|
|
1935
|
+
}
|
|
1936
|
+
this.ensure(4);
|
|
1937
|
+
this.json.set(NULL, this.i);
|
|
1938
|
+
this.i += 4;
|
|
1939
|
+
return;
|
|
1940
|
+
}
|
|
1941
|
+
const ns = NormalizedSchema.of(schema);
|
|
1942
|
+
const isObject = typeof value === "object";
|
|
1943
|
+
if (ns.isStringSchema()) {
|
|
1944
|
+
const mediaType = ns.getMergedTraits().mediaType;
|
|
1945
|
+
if (mediaType) {
|
|
1946
|
+
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
1947
|
+
if (isJson) {
|
|
1948
|
+
this.writeJsonString(LazyJsonString.from(value).toString());
|
|
1949
|
+
return;
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
if (this.settings.bigNumberAsString && value != null && (ns.isBigIntegerSchema() || ns.isBigDecimalSchema())) {
|
|
1954
|
+
const asString = value instanceof NumericValue ? value.string : String(value);
|
|
1955
|
+
this.writeAsciiQuoted(asString);
|
|
1956
|
+
return;
|
|
1957
|
+
}
|
|
1958
|
+
if (isObject) {
|
|
1959
|
+
if (ns.isStructSchema()) {
|
|
1960
|
+
this.writeStruct(ns, value);
|
|
1961
|
+
return;
|
|
1962
|
+
}
|
|
1963
|
+
if (Array.isArray(value) && (ns.isListSchema() || ns.isDocumentSchema())) {
|
|
1964
|
+
this.writeList(ns, value, ns.isDocumentSchema());
|
|
1965
|
+
return;
|
|
1966
|
+
}
|
|
1967
|
+
if (ns.isMapSchema()) {
|
|
1968
|
+
this.writeMap(ns, value, false);
|
|
1969
|
+
return;
|
|
1970
|
+
}
|
|
1971
|
+
if (value instanceof Uint8Array && (ns.isBlobSchema() || ns.isDocumentSchema())) {
|
|
1972
|
+
this.writeBase64(value);
|
|
1973
|
+
return;
|
|
1974
|
+
}
|
|
1975
|
+
if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) {
|
|
1976
|
+
this.writeTimestamp(ns, value);
|
|
1977
|
+
return;
|
|
1978
|
+
}
|
|
1979
|
+
if (value instanceof NumericValue) {
|
|
1980
|
+
this.writeAscii(value.string);
|
|
1981
|
+
return;
|
|
1982
|
+
}
|
|
1983
|
+
if (ns.isDocumentSchema()) {
|
|
1984
|
+
if (Array.isArray(value)) {
|
|
1985
|
+
this.writeList(ns, value, true);
|
|
1986
|
+
}
|
|
1987
|
+
else {
|
|
1988
|
+
this.writeMap(ns, value, true);
|
|
1989
|
+
}
|
|
1990
|
+
return;
|
|
1991
|
+
}
|
|
1992
|
+
const json = JSON.stringify(value);
|
|
1993
|
+
this.writeAscii(json);
|
|
1994
|
+
return;
|
|
1995
|
+
}
|
|
1996
|
+
if (typeof value === "string") {
|
|
1997
|
+
if (ns.isBlobSchema()) {
|
|
1998
|
+
const b64 = (this.serdeContext?.base64Encoder ?? toBase64)(value);
|
|
1999
|
+
this.writeAsciiQuoted(b64);
|
|
2000
|
+
return;
|
|
2001
|
+
}
|
|
2002
|
+
this.writeJsonString(value);
|
|
2003
|
+
return;
|
|
2004
|
+
}
|
|
2005
|
+
if (typeof value === "number") {
|
|
2006
|
+
if (Math.abs(value) === Infinity || Number.isNaN(value)) {
|
|
2007
|
+
this.writeAsciiQuoted(String(value));
|
|
2008
|
+
return;
|
|
2009
|
+
}
|
|
2010
|
+
const numStr = String(value);
|
|
2011
|
+
this.writeAscii(numStr);
|
|
2012
|
+
return;
|
|
2013
|
+
}
|
|
2014
|
+
if (typeof value === "boolean") {
|
|
2015
|
+
this.ensure(5);
|
|
2016
|
+
let { i, json } = this;
|
|
2017
|
+
if (value) {
|
|
2018
|
+
json.set(TRUE, i);
|
|
2019
|
+
i += 4;
|
|
2020
|
+
}
|
|
2021
|
+
else {
|
|
2022
|
+
json.set(FALSE, i);
|
|
2023
|
+
i += 5;
|
|
2024
|
+
}
|
|
2025
|
+
this.i = i;
|
|
2026
|
+
return;
|
|
2027
|
+
}
|
|
2028
|
+
if (typeof value === "bigint") {
|
|
2029
|
+
this.writeAscii(value.toString());
|
|
2030
|
+
return;
|
|
2031
|
+
}
|
|
2032
|
+
this.writeAscii(String(value));
|
|
2033
|
+
}
|
|
2034
|
+
writeStruct(ns, value) {
|
|
2035
|
+
this.ensure(2);
|
|
2036
|
+
this.json[this.i++] = OPEN_BRACE;
|
|
2037
|
+
let wroteAny = false;
|
|
2038
|
+
const hasType = typeof value.__type === "string";
|
|
2039
|
+
let writtenKeys;
|
|
2040
|
+
if (hasType) {
|
|
2041
|
+
writtenKeys = new Set();
|
|
2042
|
+
}
|
|
2043
|
+
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
2044
|
+
const item = value[memberName];
|
|
2045
|
+
if (item == null && !memberSchema.isIdempotencyToken()) {
|
|
2046
|
+
continue;
|
|
2047
|
+
}
|
|
2048
|
+
if (wroteAny) {
|
|
2049
|
+
this.ensure(1);
|
|
2050
|
+
this.json[this.i++] = COMMA;
|
|
2051
|
+
}
|
|
2052
|
+
wroteAny = true;
|
|
2053
|
+
const targetKey = this.settings.jsonName ? (memberSchema.getMergedTraits().jsonName ?? memberName) : memberName;
|
|
2054
|
+
if (writtenKeys) {
|
|
2055
|
+
writtenKeys.add(memberName);
|
|
2056
|
+
writtenKeys.add(targetKey);
|
|
2057
|
+
}
|
|
2058
|
+
this.writeAsciiQuoted(targetKey);
|
|
2059
|
+
this.json[this.i++] = COLON;
|
|
2060
|
+
this.writeValue(memberSchema, item, ns);
|
|
2061
|
+
}
|
|
2062
|
+
if (!wroteAny && ns.isUnionSchema()) {
|
|
2063
|
+
const { $unknown } = value;
|
|
2064
|
+
if (Array.isArray($unknown)) {
|
|
2065
|
+
const [k, v] = $unknown;
|
|
2066
|
+
this.writeAsciiQuoted(k);
|
|
2067
|
+
this.ensure(1);
|
|
2068
|
+
this.json[this.i++] = COLON;
|
|
2069
|
+
this.writeValue(15, v, ns);
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
else if (hasType) {
|
|
2073
|
+
for (const k in value) {
|
|
2074
|
+
if (writtenKeys.has(k)) {
|
|
2075
|
+
continue;
|
|
2076
|
+
}
|
|
2077
|
+
writtenKeys.add(k);
|
|
2078
|
+
const v = value[k];
|
|
2079
|
+
if (wroteAny) {
|
|
2080
|
+
this.ensure(1);
|
|
2081
|
+
this.json[this.i++] = COMMA;
|
|
2082
|
+
}
|
|
2083
|
+
wroteAny = true;
|
|
2084
|
+
this.writeAsciiQuoted(k);
|
|
2085
|
+
this.ensure(1);
|
|
2086
|
+
this.json[this.i++] = COLON;
|
|
2087
|
+
this.writeValue(15, v, undefined);
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
this.ensure(1);
|
|
2091
|
+
this.json[this.i++] = CLOSE_BRACE;
|
|
2092
|
+
}
|
|
2093
|
+
writeList(ns, value, isDocument) {
|
|
2094
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
2095
|
+
const valueSchema = ns.getValueSchema();
|
|
2096
|
+
if (!isDocument) {
|
|
2097
|
+
if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
|
|
2098
|
+
let hasSpecials = false;
|
|
2099
|
+
for (let i = 0; i < value.length; ++i) {
|
|
2100
|
+
const v = value[i];
|
|
2101
|
+
if (Number.isNaN(v) || v === Infinity || v === -Infinity || (v == null && !sparse)) {
|
|
2102
|
+
hasSpecials = true;
|
|
2103
|
+
break;
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
let json;
|
|
2107
|
+
if (!hasSpecials) {
|
|
2108
|
+
json = JSON.stringify(value);
|
|
2109
|
+
}
|
|
2110
|
+
else {
|
|
2111
|
+
const out = [];
|
|
2112
|
+
for (let i = 0; i < value.length; ++i) {
|
|
2113
|
+
const v = value[i];
|
|
2114
|
+
if (v == null && !sparse)
|
|
2115
|
+
continue;
|
|
2116
|
+
if (Number.isNaN(v) || v === Infinity || v === -Infinity) {
|
|
2117
|
+
out.push(String(v));
|
|
2118
|
+
}
|
|
2119
|
+
else {
|
|
2120
|
+
out.push(v);
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
json = JSON.stringify(out);
|
|
2124
|
+
}
|
|
2125
|
+
this.ensure(json.length * 3);
|
|
2126
|
+
this.i += encoder.encodeInto(json, this.json.subarray(this.i)).written;
|
|
2127
|
+
return;
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
this.ensure(2);
|
|
2131
|
+
this.json[this.i++] = OPEN_BRACKET;
|
|
2132
|
+
let wroteFirstItem = false;
|
|
2133
|
+
for (let i = 0; i < value.length; ++i) {
|
|
2134
|
+
const item = value[i];
|
|
2135
|
+
if (isDocument ? item === undefined : item == null && !sparse) {
|
|
2136
|
+
continue;
|
|
2137
|
+
}
|
|
2138
|
+
if (wroteFirstItem) {
|
|
2139
|
+
this.ensure(1);
|
|
2140
|
+
this.json[this.i++] = COMMA;
|
|
2141
|
+
}
|
|
2142
|
+
this.writeValue(valueSchema, item, undefined);
|
|
2143
|
+
wroteFirstItem = true;
|
|
2144
|
+
}
|
|
2145
|
+
this.ensure(1);
|
|
2146
|
+
this.json[this.i++] = CLOSE_BRACKET;
|
|
2147
|
+
}
|
|
2148
|
+
writeMap(ns, value, isDocument) {
|
|
2149
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
2150
|
+
const valueSchema = ns.getValueSchema();
|
|
2151
|
+
if (!isDocument) {
|
|
2152
|
+
if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
|
|
2153
|
+
let modifications;
|
|
2154
|
+
for (const k in value) {
|
|
2155
|
+
if (!hasOwn(value, k))
|
|
2156
|
+
continue;
|
|
2157
|
+
const v = value[k];
|
|
2158
|
+
if (Number.isNaN(v) || v === Infinity || v === -Infinity) {
|
|
2159
|
+
(modifications ??= {})[k] = v;
|
|
2160
|
+
value[k] = String(v);
|
|
2161
|
+
}
|
|
2162
|
+
else if (v === null && !sparse) {
|
|
2163
|
+
(modifications ??= {})[k] = null;
|
|
2164
|
+
value[k] = undefined;
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
const json = JSON.stringify(value);
|
|
2168
|
+
if (modifications) {
|
|
2169
|
+
Object.assign(value, modifications);
|
|
2170
|
+
}
|
|
2171
|
+
this.ensure(json.length * 3);
|
|
2172
|
+
this.i += encoder.encodeInto(json, this.json.subarray(this.i)).written;
|
|
2173
|
+
return;
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
this.ensure(2);
|
|
2177
|
+
this.json[this.i++] = OPEN_BRACE;
|
|
2178
|
+
let first = true;
|
|
2179
|
+
for (const k in value) {
|
|
2180
|
+
if (!hasOwn(value, k))
|
|
2181
|
+
continue;
|
|
2182
|
+
const v = value[k];
|
|
2183
|
+
if (isDocument ? v === undefined : v == null && !sparse) {
|
|
2184
|
+
continue;
|
|
2185
|
+
}
|
|
2186
|
+
if (!first) {
|
|
2187
|
+
this.ensure(1);
|
|
2188
|
+
this.json[this.i++] = COMMA;
|
|
2189
|
+
}
|
|
2190
|
+
first = false;
|
|
2191
|
+
this.writeJsonString(k);
|
|
2192
|
+
this.ensure(1);
|
|
2193
|
+
this.json[this.i++] = COLON;
|
|
2194
|
+
this.writeValue(valueSchema, v, undefined);
|
|
2195
|
+
}
|
|
2196
|
+
this.ensure(1);
|
|
2197
|
+
this.json[this.i++] = CLOSE_BRACE;
|
|
2198
|
+
}
|
|
2199
|
+
writeTimestamp(ns, value) {
|
|
2200
|
+
const format = determineTimestampFormat(ns, this.settings);
|
|
2201
|
+
switch (format) {
|
|
2202
|
+
case 5: {
|
|
2203
|
+
const iso = value.toISOString().replace(".000Z", "Z");
|
|
2204
|
+
this.writeAsciiQuoted(iso);
|
|
2205
|
+
return;
|
|
2206
|
+
}
|
|
2207
|
+
case 6: {
|
|
2208
|
+
this.writeAsciiQuoted(dateToUtcString(value));
|
|
2209
|
+
return;
|
|
2210
|
+
}
|
|
2211
|
+
case 7: {
|
|
2212
|
+
const epochSecs = String(value.getTime() / 1000);
|
|
2213
|
+
this.writeAscii(epochSecs);
|
|
2214
|
+
return;
|
|
2215
|
+
}
|
|
2216
|
+
default: {
|
|
2217
|
+
const epochSecs = String(value.getTime() / 1000);
|
|
2218
|
+
this.writeAscii(epochSecs);
|
|
2219
|
+
return;
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
class JsonCodec2 extends SerdeContextConfig {
|
|
2226
|
+
settings;
|
|
2227
|
+
constructor(settings) {
|
|
2228
|
+
super();
|
|
2229
|
+
this.settings = settings;
|
|
2230
|
+
}
|
|
2231
|
+
createSerializer() {
|
|
2232
|
+
const serializer = new JsonShapeSerializer2(this.settings);
|
|
2233
|
+
serializer.setSerdeContext(this.serdeContext);
|
|
2234
|
+
return serializer;
|
|
2235
|
+
}
|
|
2236
|
+
createDeserializer() {
|
|
2237
|
+
const deserializer = new JsonShapeDeserializer2(this.settings);
|
|
2238
|
+
deserializer.setSerdeContext(this.serdeContext);
|
|
2239
|
+
return deserializer;
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
class SmithyRpcV2JsonProtocol extends RpcProtocol {
|
|
2244
|
+
codec = new JsonCodec2({
|
|
2245
|
+
timestampFormat: {
|
|
2246
|
+
useTrait: false,
|
|
2247
|
+
default: 7,
|
|
2248
|
+
},
|
|
2249
|
+
jsonName: false,
|
|
2250
|
+
bigNumberAsString: true,
|
|
2251
|
+
});
|
|
2252
|
+
serializer = this.codec.createSerializer();
|
|
2253
|
+
deserializer = this.codec.createDeserializer();
|
|
2254
|
+
constructor({ defaultNamespace, errorTypeRegistries, }) {
|
|
2255
|
+
super({ defaultNamespace, errorTypeRegistries });
|
|
2256
|
+
}
|
|
2257
|
+
getShapeId() {
|
|
2258
|
+
return "smithy.protocols#rpcv2Json";
|
|
2259
|
+
}
|
|
2260
|
+
getPayloadCodec() {
|
|
2261
|
+
return this.codec;
|
|
2262
|
+
}
|
|
2263
|
+
async serializeRequest(operationSchema, input, context) {
|
|
2264
|
+
const request = await super.serializeRequest(operationSchema, input, context);
|
|
2265
|
+
Object.assign(request.headers, {
|
|
2266
|
+
"content-type": this.getDefaultContentType(),
|
|
2267
|
+
"smithy-protocol": "rpc-v2-json",
|
|
2268
|
+
accept: this.getDefaultContentType(),
|
|
2269
|
+
});
|
|
2270
|
+
if (deref(operationSchema.input) === "unit") {
|
|
2271
|
+
delete request.body;
|
|
2272
|
+
delete request.headers["content-type"];
|
|
2273
|
+
}
|
|
2274
|
+
else if (!request.body) {
|
|
2275
|
+
request.body = "{}";
|
|
2276
|
+
}
|
|
2277
|
+
const { service, operation } = getSmithyContext(context);
|
|
2278
|
+
const path = `/service/${service}/operation/${operation}`;
|
|
2279
|
+
if (request.path.endsWith("/")) {
|
|
2280
|
+
request.path += path.slice(1);
|
|
2281
|
+
}
|
|
2282
|
+
else {
|
|
2283
|
+
request.path += path;
|
|
2284
|
+
}
|
|
2285
|
+
return request;
|
|
2286
|
+
}
|
|
2287
|
+
async deserializeResponse(operationSchema, context, response) {
|
|
2288
|
+
return super.deserializeResponse(operationSchema, context, response);
|
|
2289
|
+
}
|
|
2290
|
+
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
2291
|
+
const errorName = loadSmithyRpcV2JsonErrorCode(response, dataObject) ?? "Unknown";
|
|
2292
|
+
const errorMetadata = {
|
|
2293
|
+
$metadata: metadata,
|
|
2294
|
+
$fault: response.statusCode <= 500 ? "client" : "server",
|
|
2295
|
+
};
|
|
2296
|
+
let namespace = this.options.defaultNamespace;
|
|
2297
|
+
if (errorName.includes("#")) {
|
|
2298
|
+
[namespace] = errorName.split("#");
|
|
2299
|
+
}
|
|
2300
|
+
const registry = this.compositeErrorRegistry;
|
|
2301
|
+
const nsRegistry = TypeRegistry.for(namespace);
|
|
2302
|
+
registry.copyFrom(nsRegistry);
|
|
2303
|
+
let errorSchema;
|
|
2304
|
+
try {
|
|
2305
|
+
errorSchema = registry.getSchema(errorName);
|
|
2306
|
+
}
|
|
2307
|
+
catch (ignored) {
|
|
2308
|
+
if (dataObject.Message) {
|
|
2309
|
+
dataObject.message = dataObject.Message;
|
|
2310
|
+
}
|
|
2311
|
+
const syntheticRegistry = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace);
|
|
2312
|
+
registry.copyFrom(syntheticRegistry);
|
|
2313
|
+
const baseExceptionSchema = registry.getBaseException();
|
|
2314
|
+
if (baseExceptionSchema) {
|
|
2315
|
+
const ErrorCtor = registry.getErrorCtor(baseExceptionSchema);
|
|
2316
|
+
throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject);
|
|
2317
|
+
}
|
|
2318
|
+
throw Object.assign(new Error(errorName), errorMetadata, dataObject);
|
|
2319
|
+
}
|
|
2320
|
+
const ns = NormalizedSchema.of(errorSchema);
|
|
2321
|
+
const ErrorCtor = registry.getErrorCtor(errorSchema);
|
|
2322
|
+
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
2323
|
+
const exception = new ErrorCtor({});
|
|
2324
|
+
const output = {};
|
|
2325
|
+
const errorDeserializer = this.codec.createDeserializer();
|
|
2326
|
+
for (const [name, member] of ns.structIterator()) {
|
|
2327
|
+
if (dataObject[name] != null) {
|
|
2328
|
+
output[name] = errorDeserializer.readObject(member, dataObject[name]);
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
throw Object.assign(exception, errorMetadata, {
|
|
2332
|
+
$fault: ns.getMergedTraits().error,
|
|
2333
|
+
message,
|
|
2334
|
+
}, output);
|
|
2335
|
+
}
|
|
2336
|
+
getDefaultContentType() {
|
|
2337
|
+
return "application/json";
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
class JsonShapeDeserializer extends SerdeContextConfig {
|
|
2342
|
+
settings;
|
|
2343
|
+
constructor(settings) {
|
|
2344
|
+
super();
|
|
2345
|
+
this.settings = settings;
|
|
2346
|
+
}
|
|
2347
|
+
async read(schema, data) {
|
|
2348
|
+
const reviver = needsReviver(schema) ? jsonReviver : undefined;
|
|
2349
|
+
return this._read(schema, typeof data === "string" ? JSON.parse(data, reviver) : await parseJsonBody(data, this.serdeContext, schema));
|
|
2350
|
+
}
|
|
2351
|
+
readObject(schema, data) {
|
|
2352
|
+
return this._read(schema, data);
|
|
2353
|
+
}
|
|
2354
|
+
_read(schema, value) {
|
|
2355
|
+
const isObject = value !== null && typeof value === "object";
|
|
2356
|
+
const ns = NormalizedSchema.of(schema);
|
|
2357
|
+
if (isObject) {
|
|
2358
|
+
if (ns.isStructSchema()) {
|
|
2359
|
+
const record = value;
|
|
2360
|
+
const union = ns.isUnionSchema();
|
|
2361
|
+
const out = {};
|
|
2362
|
+
let nameMap = void 0;
|
|
2363
|
+
const { jsonName } = this.settings;
|
|
2364
|
+
if (jsonName) {
|
|
2365
|
+
nameMap = {};
|
|
2366
|
+
}
|
|
2367
|
+
let unionSerde;
|
|
2368
|
+
if (union) {
|
|
2369
|
+
unionSerde = new UnionSerde(record, out);
|
|
2370
|
+
}
|
|
2371
|
+
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
2372
|
+
let fromKey = memberName;
|
|
2373
|
+
if (jsonName) {
|
|
2374
|
+
fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
|
|
2375
|
+
nameMap[fromKey] = memberName;
|
|
2376
|
+
}
|
|
2377
|
+
if (union) {
|
|
2378
|
+
unionSerde.mark(fromKey);
|
|
2379
|
+
}
|
|
2380
|
+
if (record[fromKey] != null) {
|
|
2381
|
+
out[memberName] = this._read(memberSchema, record[fromKey]);
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
if (union) {
|
|
2385
|
+
unionSerde.writeUnknown();
|
|
2386
|
+
}
|
|
2387
|
+
else if (typeof record.__type === "string") {
|
|
2388
|
+
for (const k in record) {
|
|
2389
|
+
if (!hasOwn(record, k))
|
|
2390
|
+
continue;
|
|
2391
|
+
const v = record[k];
|
|
2392
|
+
const t = jsonName ? (nameMap[k] ?? k) : k;
|
|
2393
|
+
if (!(t in out)) {
|
|
2394
|
+
out[t] = v;
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
return out;
|
|
2399
|
+
}
|
|
2400
|
+
if (Array.isArray(value) && ns.isListSchema()) {
|
|
2401
|
+
const listMember = ns.getValueSchema();
|
|
2402
|
+
const out = [];
|
|
2403
|
+
for (const item of value) {
|
|
2404
|
+
out.push(this._read(listMember, item));
|
|
2405
|
+
}
|
|
2406
|
+
return out;
|
|
2407
|
+
}
|
|
2408
|
+
if (ns.isMapSchema()) {
|
|
2409
|
+
const mapMember = ns.getValueSchema();
|
|
2410
|
+
const out = {};
|
|
2411
|
+
for (const _k in value) {
|
|
2412
|
+
if (!hasOwn(value, _k))
|
|
2413
|
+
continue;
|
|
2414
|
+
if (_k === "__proto__") {
|
|
2415
|
+
writeKey(out);
|
|
2416
|
+
}
|
|
2417
|
+
out[_k] = this._read(mapMember, value[_k]);
|
|
2418
|
+
}
|
|
2419
|
+
return out;
|
|
2420
|
+
}
|
|
2421
|
+
}
|
|
2422
|
+
if (ns.isBlobSchema() && typeof value === "string") {
|
|
2423
|
+
return fromBase64(value);
|
|
2424
|
+
}
|
|
2425
|
+
const mediaType = ns.getMergedTraits().mediaType;
|
|
2426
|
+
if (ns.isStringSchema() && typeof value === "string" && mediaType) {
|
|
2427
|
+
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
2428
|
+
if (isJson) {
|
|
2429
|
+
return LazyJsonString.from(value);
|
|
2430
|
+
}
|
|
2431
|
+
return value;
|
|
2432
|
+
}
|
|
2433
|
+
if (ns.isTimestampSchema() && value != null) {
|
|
2434
|
+
const format = determineTimestampFormat(ns, this.settings);
|
|
2435
|
+
switch (format) {
|
|
2436
|
+
case 5:
|
|
2437
|
+
return parseRfc3339DateTimeWithOffset(value);
|
|
2438
|
+
case 6:
|
|
2439
|
+
return parseRfc7231DateTime(value);
|
|
2440
|
+
case 7:
|
|
2441
|
+
return parseEpochTimestamp(value);
|
|
2442
|
+
default:
|
|
2443
|
+
console.warn("Missing timestamp format, parsing value with Date constructor:", value);
|
|
2444
|
+
return new Date(value);
|
|
2445
|
+
}
|
|
2446
|
+
}
|
|
2447
|
+
if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
|
|
2448
|
+
return BigInt(value);
|
|
2449
|
+
}
|
|
2450
|
+
if (ns.isBigDecimalSchema() && value != undefined) {
|
|
2451
|
+
if (value instanceof NumericValue) {
|
|
2452
|
+
return value;
|
|
2453
|
+
}
|
|
2454
|
+
const untyped = value;
|
|
2455
|
+
if (untyped.type === "bigDecimal" && "string" in untyped) {
|
|
2456
|
+
return new NumericValue(untyped.string, untyped.type);
|
|
2457
|
+
}
|
|
2458
|
+
return new NumericValue(String(value), "bigDecimal");
|
|
2459
|
+
}
|
|
2460
|
+
if (ns.isNumericSchema() && typeof value === "string") {
|
|
2461
|
+
switch (value) {
|
|
2462
|
+
case "Infinity":
|
|
2463
|
+
return Infinity;
|
|
2464
|
+
case "-Infinity":
|
|
2465
|
+
return -Infinity;
|
|
2466
|
+
case "NaN":
|
|
2467
|
+
return NaN;
|
|
2468
|
+
}
|
|
2469
|
+
return value;
|
|
2470
|
+
}
|
|
2471
|
+
if (ns.isDocumentSchema()) {
|
|
2472
|
+
if (isObject) {
|
|
2473
|
+
const out = Array.isArray(value) ? [] : {};
|
|
2474
|
+
for (const k in value) {
|
|
2475
|
+
if (!hasOwn(value, k))
|
|
2476
|
+
continue;
|
|
2477
|
+
if (k === "__proto__") {
|
|
2478
|
+
writeKey(out);
|
|
2479
|
+
}
|
|
2480
|
+
const v = value[k];
|
|
2481
|
+
if (v instanceof NumericValue) {
|
|
2482
|
+
out[k] = v;
|
|
2483
|
+
}
|
|
2484
|
+
else {
|
|
2485
|
+
out[k] = this._read(ns, v);
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2488
|
+
return out;
|
|
2489
|
+
}
|
|
2490
|
+
else {
|
|
2491
|
+
return structuredClone(value);
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
return value;
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2498
|
+
const NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
|
|
2499
|
+
class JsonReplacer {
|
|
2500
|
+
values = new Map();
|
|
2501
|
+
counter = 0;
|
|
2502
|
+
stage = 0;
|
|
2503
|
+
createReplacer() {
|
|
2504
|
+
if (this.stage === 1) {
|
|
2505
|
+
throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
|
|
2506
|
+
}
|
|
2507
|
+
if (this.stage === 2) {
|
|
2508
|
+
throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
|
|
2509
|
+
}
|
|
2510
|
+
this.stage = 1;
|
|
2511
|
+
return (key, value) => {
|
|
2512
|
+
if (value instanceof NumericValue) {
|
|
2513
|
+
const v = `${NUMERIC_CONTROL_CHAR + "nv" + this.counter++}_` + value.string;
|
|
2514
|
+
this.values.set(`"${v}"`, value.string);
|
|
2515
|
+
return v;
|
|
2516
|
+
}
|
|
2517
|
+
if (typeof value === "bigint") {
|
|
2518
|
+
const s = value.toString();
|
|
2519
|
+
const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s;
|
|
2520
|
+
this.values.set(`"${v}"`, s);
|
|
2521
|
+
return v;
|
|
2522
|
+
}
|
|
2523
|
+
return value;
|
|
2524
|
+
};
|
|
2525
|
+
}
|
|
2526
|
+
replaceInJson(json) {
|
|
2527
|
+
if (this.stage === 0) {
|
|
2528
|
+
throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
|
|
2529
|
+
}
|
|
2530
|
+
if (this.stage === 2) {
|
|
2531
|
+
throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
|
|
2532
|
+
}
|
|
2533
|
+
this.stage = 2;
|
|
2534
|
+
if (this.counter === 0) {
|
|
2535
|
+
return json;
|
|
2536
|
+
}
|
|
2537
|
+
for (const [key, value] of this.values) {
|
|
2538
|
+
json = json.replace(key, value);
|
|
2539
|
+
}
|
|
2540
|
+
return json;
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
class JsonShapeSerializer extends SerdeContextConfig {
|
|
2545
|
+
settings;
|
|
2546
|
+
buffer;
|
|
2547
|
+
useReplacer = false;
|
|
2548
|
+
rootSchema;
|
|
2549
|
+
constructor(settings) {
|
|
2550
|
+
super();
|
|
2551
|
+
this.settings = settings;
|
|
2552
|
+
}
|
|
2553
|
+
write(schema, value) {
|
|
2554
|
+
this.rootSchema = NormalizedSchema.of(schema);
|
|
2555
|
+
this.buffer = this._write(this.rootSchema, value);
|
|
2556
|
+
}
|
|
2557
|
+
flush() {
|
|
2558
|
+
const { rootSchema, useReplacer } = this;
|
|
2559
|
+
this.rootSchema = undefined;
|
|
2560
|
+
this.useReplacer = false;
|
|
2561
|
+
if (rootSchema?.isStructSchema() || rootSchema?.isDocumentSchema()) {
|
|
2562
|
+
if (!useReplacer) {
|
|
2563
|
+
return JSON.stringify(this.buffer);
|
|
2564
|
+
}
|
|
2565
|
+
const replacer = new JsonReplacer();
|
|
2566
|
+
return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0));
|
|
2567
|
+
}
|
|
2568
|
+
return this.buffer;
|
|
2569
|
+
}
|
|
2570
|
+
writeDiscriminatedDocument(schema, value) {
|
|
2571
|
+
this.write(schema, value);
|
|
2572
|
+
if (typeof this.buffer === "object") {
|
|
2573
|
+
this.buffer.__type = NormalizedSchema.of(schema).getName(true);
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
_write(schema, value, container) {
|
|
2577
|
+
const isObject = value !== null && typeof value === "object";
|
|
2578
|
+
const ns = NormalizedSchema.of(schema);
|
|
2579
|
+
if (isObject) {
|
|
2580
|
+
if (ns.isStructSchema()) {
|
|
2581
|
+
const record = value;
|
|
2582
|
+
const out = {};
|
|
2583
|
+
const { jsonName } = this.settings;
|
|
2584
|
+
let nameMap = void 0;
|
|
2585
|
+
if (jsonName) {
|
|
2586
|
+
nameMap = {};
|
|
2587
|
+
}
|
|
2588
|
+
let outCount = 0;
|
|
2589
|
+
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
2590
|
+
const serializableValue = this._write(memberSchema, record[memberName], ns);
|
|
2591
|
+
if (serializableValue !== undefined) {
|
|
2592
|
+
let targetKey = memberName;
|
|
2593
|
+
if (jsonName) {
|
|
2594
|
+
targetKey = memberSchema.getMergedTraits().jsonName ?? memberName;
|
|
2595
|
+
nameMap[memberName] = targetKey;
|
|
2596
|
+
}
|
|
2597
|
+
out[targetKey] = serializableValue;
|
|
2598
|
+
outCount++;
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
if (ns.isUnionSchema() && outCount === 0) {
|
|
2602
|
+
const { $unknown } = record;
|
|
2603
|
+
if (Array.isArray($unknown)) {
|
|
2604
|
+
const [k, v] = $unknown;
|
|
2605
|
+
if (k === "__proto__") {
|
|
2606
|
+
writeKey(out);
|
|
2607
|
+
}
|
|
2608
|
+
out[k] = this._write(15, v);
|
|
2609
|
+
}
|
|
2610
|
+
}
|
|
2611
|
+
else if (typeof record.__type === "string") {
|
|
2612
|
+
for (const k in record) {
|
|
2613
|
+
if (!hasOwn(record, k))
|
|
2614
|
+
continue;
|
|
2615
|
+
const v = record[k];
|
|
2616
|
+
const targetKey = jsonName ? (nameMap[k] ?? k) : k;
|
|
2617
|
+
if (!(targetKey in out)) {
|
|
2618
|
+
out[targetKey] = this._write(15, v);
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2622
|
+
return out;
|
|
2623
|
+
}
|
|
2624
|
+
if (Array.isArray(value) && ns.isListSchema()) {
|
|
2625
|
+
const listMember = ns.getValueSchema();
|
|
2626
|
+
const out = [];
|
|
2627
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
2628
|
+
for (const item of value) {
|
|
2629
|
+
if (sparse || item != null) {
|
|
2630
|
+
out.push(this._write(listMember, item));
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
return out;
|
|
2634
|
+
}
|
|
2635
|
+
if (ns.isMapSchema()) {
|
|
2636
|
+
const mapMember = ns.getValueSchema();
|
|
2637
|
+
const out = {};
|
|
2638
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
2639
|
+
for (const _k in value) {
|
|
2640
|
+
if (!hasOwn(value, _k))
|
|
2641
|
+
continue;
|
|
2642
|
+
const _v = value[_k];
|
|
2643
|
+
if (sparse || _v != null) {
|
|
2644
|
+
if (_k === "__proto__") {
|
|
2645
|
+
writeKey(out);
|
|
2646
|
+
}
|
|
2647
|
+
out[_k] = this._write(mapMember, _v);
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2650
|
+
return out;
|
|
2651
|
+
}
|
|
2652
|
+
if (value instanceof Uint8Array && ns.isBlobSchema()) {
|
|
2653
|
+
if (ns === this.rootSchema) {
|
|
2654
|
+
return value;
|
|
2655
|
+
}
|
|
2656
|
+
return (this.serdeContext?.base64Encoder ?? toBase64)(value);
|
|
2657
|
+
}
|
|
2658
|
+
if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) {
|
|
2659
|
+
const format = determineTimestampFormat(ns, this.settings);
|
|
2660
|
+
switch (format) {
|
|
2661
|
+
case 5:
|
|
2662
|
+
return value.toISOString().replace(".000Z", "Z");
|
|
2663
|
+
case 6:
|
|
2664
|
+
return dateToUtcString(value);
|
|
2665
|
+
case 7:
|
|
2666
|
+
return value.getTime() / 1000;
|
|
2667
|
+
default:
|
|
2668
|
+
console.warn("Missing timestamp format, using epoch seconds", value);
|
|
2669
|
+
return value.getTime() / 1000;
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
if (value instanceof NumericValue) {
|
|
2673
|
+
this.useReplacer = true;
|
|
2674
|
+
}
|
|
2675
|
+
}
|
|
2676
|
+
if (value === null && container?.isStructSchema()) {
|
|
2677
|
+
return void 0;
|
|
2678
|
+
}
|
|
2679
|
+
if (ns.isStringSchema()) {
|
|
2680
|
+
if (typeof value === "undefined" && ns.isIdempotencyToken()) {
|
|
2681
|
+
return generateIdempotencyToken();
|
|
2682
|
+
}
|
|
2683
|
+
const mediaType = ns.getMergedTraits().mediaType;
|
|
2684
|
+
if (value != null && mediaType) {
|
|
2685
|
+
const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
|
|
2686
|
+
if (isJson) {
|
|
2687
|
+
return LazyJsonString.from(value);
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2690
|
+
return value;
|
|
2691
|
+
}
|
|
2692
|
+
if (typeof value === "number") {
|
|
2693
|
+
if (Math.abs(value) === Infinity || isNaN(value)) {
|
|
2694
|
+
return String(value);
|
|
2695
|
+
}
|
|
2696
|
+
return value;
|
|
2697
|
+
}
|
|
2698
|
+
if (typeof value === "string" && ns.isBlobSchema()) {
|
|
2699
|
+
if (ns === this.rootSchema) {
|
|
2700
|
+
return value;
|
|
2701
|
+
}
|
|
2702
|
+
return (this.serdeContext?.base64Encoder ?? toBase64)(value);
|
|
2703
|
+
}
|
|
2704
|
+
if (typeof value === "bigint") {
|
|
2705
|
+
this.useReplacer = true;
|
|
2706
|
+
}
|
|
2707
|
+
if (ns.isDocumentSchema()) {
|
|
2708
|
+
if (isObject) {
|
|
2709
|
+
if (value instanceof Uint8Array) {
|
|
2710
|
+
return (this.serdeContext?.base64Encoder ?? toBase64)(value);
|
|
2711
|
+
}
|
|
2712
|
+
const out = Array.isArray(value) ? [] : {};
|
|
2713
|
+
for (const k in value) {
|
|
2714
|
+
if (!hasOwn(value, k))
|
|
2715
|
+
continue;
|
|
2716
|
+
const v = value[k];
|
|
2717
|
+
if (k === "__proto__") {
|
|
2718
|
+
writeKey(out);
|
|
2719
|
+
}
|
|
2720
|
+
if (v instanceof NumericValue) {
|
|
2721
|
+
this.useReplacer = true;
|
|
2722
|
+
out[k] = v;
|
|
2723
|
+
}
|
|
2724
|
+
else {
|
|
2725
|
+
out[k] = this._write(ns, v);
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
return out;
|
|
2729
|
+
}
|
|
2730
|
+
else {
|
|
2731
|
+
return structuredClone(value);
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2734
|
+
return value;
|
|
2735
|
+
}
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
class JsonCodec extends SerdeContextConfig {
|
|
2739
|
+
settings;
|
|
2740
|
+
constructor(settings) {
|
|
2741
|
+
super();
|
|
2742
|
+
this.settings = settings;
|
|
2743
|
+
}
|
|
2744
|
+
createSerializer() {
|
|
2745
|
+
const serializer = new JsonShapeSerializer(this.settings);
|
|
2746
|
+
serializer.setSerdeContext(this.serdeContext);
|
|
2747
|
+
return serializer;
|
|
2748
|
+
}
|
|
2749
|
+
createDeserializer() {
|
|
2750
|
+
const deserializer = new JsonShapeDeserializer(this.settings);
|
|
2751
|
+
deserializer.setSerdeContext(this.serdeContext);
|
|
2752
|
+
return deserializer;
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
exports.Field = Field;
|
|
2757
|
+
exports.Fields = Fields;
|
|
2758
|
+
exports.FromStringShapeDeserializer = FromStringShapeDeserializer;
|
|
2759
|
+
exports.HttpBindingProtocol = HttpBindingProtocol;
|
|
2760
|
+
exports.HttpInterceptingShapeDeserializer = HttpInterceptingShapeDeserializer;
|
|
2761
|
+
exports.HttpInterceptingShapeSerializer = HttpInterceptingShapeSerializer;
|
|
2762
|
+
exports.HttpProtocol = HttpProtocol;
|
|
2763
|
+
exports.JsonCodec = JsonCodec;
|
|
2764
|
+
exports.JsonCodec2 = JsonCodec2;
|
|
2765
|
+
exports.JsonShapeDeserializer = JsonShapeDeserializer;
|
|
2766
|
+
exports.JsonShapeDeserializer2 = JsonShapeDeserializer2;
|
|
2767
|
+
exports.JsonShapeSerializer = JsonShapeSerializer;
|
|
2768
|
+
exports.JsonShapeSerializer2 = JsonShapeSerializer2;
|
|
2769
|
+
exports.RequestBuilder = RequestBuilder;
|
|
2770
|
+
exports.RpcProtocol = RpcProtocol;
|
|
2771
|
+
exports.SerdeContext = SerdeContext;
|
|
2772
|
+
exports.SmithyRpcV2JsonProtocol = SmithyRpcV2JsonProtocol;
|
|
2773
|
+
exports.ToStringShapeSerializer = ToStringShapeSerializer;
|
|
2774
|
+
exports.buildQueryString = buildQueryString;
|
|
2775
|
+
exports.collectBody = collectBody;
|
|
2776
|
+
exports.contentLengthMiddleware = contentLengthMiddleware;
|
|
2777
|
+
exports.contentLengthMiddlewareOptions = contentLengthMiddlewareOptions;
|
|
2778
|
+
exports.determineTimestampFormat = determineTimestampFormat;
|
|
2779
|
+
exports.escapeUri = escapeUri;
|
|
2780
|
+
exports.escapeUriPath = escapeUriPath;
|
|
2781
|
+
exports.extendedEncodeURIComponent = extendedEncodeURIComponent;
|
|
2782
|
+
exports.getContentLengthPlugin = getContentLengthPlugin;
|
|
2783
|
+
exports.getHttpHandlerExtensionConfiguration = getHttpHandlerExtensionConfiguration;
|
|
2784
|
+
exports.loadJsonRpcErrorCode = loadJsonRpcErrorCode;
|
|
2785
|
+
exports.loadRestJsonErrorCode = loadRestJsonErrorCode;
|
|
2786
|
+
exports.loadSmithyRpcV2JsonErrorCode = loadSmithyRpcV2JsonErrorCode;
|
|
2787
|
+
exports.parseJsonBody = parseJsonBody;
|
|
2788
|
+
exports.parseJsonErrorBody = parseJsonErrorBody;
|
|
2789
|
+
exports.requestBuilder = requestBuilder;
|
|
2790
|
+
exports.resolveHttpHandlerRuntimeConfig = resolveHttpHandlerRuntimeConfig;
|
|
2791
|
+
exports.resolvedPath = resolvedPath;
|