@humain/humain-code 0.4.12 → 0.4.13
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/CHANGELOG.md +15 -1
- package/dist/bun/sandbox-env-setup.js +1 -1
- package/dist/bun/sandbox-env-setup.js.map +1 -1
- package/dist/bundle/agent-monitor.js +1 -1
- package/dist/bundle/chunks/anthropic-messages-YSAHA7QM.js +67 -0
- package/dist/bundle/chunks/azure-openai-responses-Z5XYDPHS.js +15 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +393 -314
- package/dist/bundle/chunks/{chunk-EDKZRYWJ.js → chunk-2TTB6GIB.js} +2 -2
- package/dist/bundle/chunks/{chunk-HSDTSUZE.js → chunk-36Q5UVQL.js} +47 -89
- package/dist/bundle/chunks/chunk-4DXXZHY2.js +540 -0
- package/dist/bundle/chunks/{chunk-BKJU56SM.js → chunk-A7QKOI62.js} +142 -126
- package/dist/bundle/chunks/{chunk-UW4GMZL3.js → chunk-AIXI6RIE.js} +264 -248
- package/dist/bundle/chunks/{chunk-V5ZF7Q7L.js → chunk-BVHXWQLD.js} +52 -47
- package/dist/bundle/chunks/{chunk-I2ZWZAIV.js → chunk-COF5P635.js} +222 -148
- package/dist/bundle/chunks/{chunk-SCIGZFN5.js → chunk-DNGJMRJW.js} +11 -11
- package/dist/bundle/chunks/{chunk-XGO43DKL.js → chunk-DUSJT2W4.js} +21 -25
- package/dist/bundle/chunks/chunk-EYIYBQAR.js +7 -0
- package/dist/bundle/chunks/chunk-FRUFMISJ.js +505 -0
- package/dist/bundle/chunks/{chunk-R5VIAWGA.js → chunk-H2FY3PEV.js} +9 -8
- package/dist/bundle/chunks/{chunk-KGI4EX6R.js → chunk-JNHXXVLA.js} +126 -125
- package/dist/bundle/chunks/{chunk-45ZBHMQG.js → chunk-JQCWRL5K.js} +4 -4
- package/dist/bundle/chunks/{chunk-AS2Y2MO6.js → chunk-KK3KUUMM.js} +643 -624
- package/dist/bundle/chunks/{chunk-6KAMTNN3.js → chunk-L3J4P5JR.js} +1 -1
- package/dist/bundle/chunks/chunk-L6Z6JKKC.js +3 -0
- package/dist/bundle/chunks/{chunk-DZ5C66IU.js → chunk-LUL775V7.js} +33 -33
- package/dist/bundle/chunks/{chunk-BRXQUQSC.js → chunk-MF2NEHP4.js} +778 -775
- package/dist/bundle/chunks/chunk-MG5PX4KU.js +31 -0
- package/dist/bundle/chunks/{chunk-LCOHFEZZ.js → chunk-NNKA2PAP.js} +1 -1
- package/dist/bundle/chunks/{chunk-HMWAH7ZY.js → chunk-OX2IBCCA.js} +53 -49
- package/dist/bundle/chunks/{chunk-WBJN6PEI.js → chunk-QYCOHSI7.js} +1 -1
- package/dist/bundle/chunks/{chunk-NLTW6A7G.js → chunk-TC7EANW4.js} +3730 -3353
- package/dist/bundle/chunks/{chunk-77EWF2NW.js → chunk-TJG52LZB.js} +1 -1
- package/dist/bundle/chunks/{chunk-5XD3DHYL.js → chunk-UDVC7A5S.js} +1 -1
- package/dist/bundle/chunks/chunk-UGXYG7HN.js +22 -0
- package/dist/bundle/chunks/{chunk-VYIIPF57.js → chunk-UHLW4KJ7.js} +419 -413
- package/dist/bundle/chunks/{chunk-FF26YENK.js → chunk-W2QRCQBX.js} +4 -3
- package/dist/bundle/chunks/chunk-XQRYOCHA.js +26 -0
- package/dist/bundle/chunks/{chunk-7Z5MWPYE.js → chunk-Y3RFGBG2.js} +1 -1
- package/dist/bundle/chunks/chunk-YJ3NQWES.js +9 -0
- package/dist/bundle/chunks/{chunk-YJBE3IGR.js → chunk-YRCLNWFV.js} +20 -20
- package/dist/bundle/chunks/chunk-YZMQXAJM.js +8 -0
- package/dist/bundle/chunks/{chunk-BHM75BJJ.js → chunk-Z74ZYQPX.js} +207 -79
- package/dist/bundle/chunks/{cli-5ACW3WND.js → cli-SRI4UOSL.js} +6 -6
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-FZ3UQCZ7.js → cloudflare-workers-ai-system-one-JGN7NZCV.js} +1 -1
- package/dist/bundle/chunks/codemode-worker.js +27 -14
- package/dist/bundle/chunks/{compat-KXWWOFHQ.js → compat-PCHMBE76.js} +6 -6
- package/dist/bundle/chunks/dist-MNSGVI4C.js +7 -0
- package/dist/bundle/chunks/{dist-6SWVHFCS.js → dist-UWE5M6HK.js} +211 -8
- package/dist/bundle/chunks/{dist-cjs-RL2OCAP2.js → dist-cjs-4BMVQ74V.js} +1 -1
- package/dist/bundle/chunks/{easter-egg-3d-3L3IKAT6.js → easter-egg-3d-ZJ2JUFOA.js} +1 -1
- package/dist/bundle/chunks/es-YEFEOGR3.js +1905 -0
- package/dist/bundle/chunks/{esm-763X2IA7.js → esm-NCUV2DF7.js} +1 -1
- package/dist/bundle/chunks/{event-streams-R5OECII4.js → event-streams-NXFTZDSF.js} +1 -1
- package/dist/bundle/chunks/execute-LRTXH4YJ.js +553 -0
- package/dist/bundle/chunks/{extract-DLZ425VI.js → extract-OZW5JHG6.js} +140 -120
- package/dist/bundle/chunks/{google-generative-ai-JD2FVOIX.js → google-generative-ai-YXXFSTX7.js} +2 -2
- package/dist/bundle/chunks/{google-vertex-PFBMDCBW.js → google-vertex-3IVWLYJ5.js} +2 -2
- package/dist/bundle/chunks/host-2RMBOGA7.js +2 -0
- package/dist/bundle/chunks/{mistral-conversations-D74NZ65O.js → mistral-conversations-Y7GWO3QB.js} +14 -13
- package/dist/bundle/chunks/{node-W47VUEGE.js → node-ELWNZC34.js} +328 -337
- package/dist/bundle/chunks/{node-4GGYDW5Q.js → node-SPBTZUUS.js} +26 -25
- package/dist/bundle/chunks/{openai-codex-responses-JAAA7MSS.js → openai-codex-responses-NSXWHIDT.js} +3 -4
- package/dist/bundle/chunks/{openai-completions-PGPMGQPU.js → openai-completions-WGBQHTYA.js} +9 -8
- package/dist/bundle/chunks/{openai-decisions-QQ4MEABI.js → openai-decisions-QWEISDVO.js} +1 -1
- package/dist/bundle/chunks/{openai-responses-FG2R2M4L.js → openai-responses-OKGCSIEY.js} +6 -6
- package/dist/bundle/chunks/{openrouter-images-NTBP3UUE.js → openrouter-images-BMVMAROU.js} +1 -1
- package/dist/bundle/chunks/{pi-messages-JD4O7KIP.js → pi-messages-XNEG23NU.js} +1 -1
- package/dist/bundle/chunks/runtime-VGSK3QCM.js +2 -0
- package/dist/bundle/chunks/{typesafe-system-one-TTC7YCO3.js → typesafe-system-one-62YHYXZV.js} +1 -1
- package/dist/bundle/chunks/{undici-EEOUTE5F.js → undici-7EW63V4X.js} +1 -1
- package/dist/bundle/chunks/virtual-modules-JSGQ72M6.js +5 -0
- package/dist/bundle/cli-runtime.js +3 -3
- package/dist/bundle/flow/package.json +5 -6
- package/dist/bundle/index.js +6 -6
- package/dist/bundle/rpc-entry.js +2 -2
- package/dist/coordination/adapter/delivery.d.ts.map +1 -1
- package/dist/coordination/adapter/delivery.js +1 -0
- package/dist/coordination/adapter/delivery.js.map +1 -1
- package/dist/coordination/adapter/index.d.ts.map +1 -1
- package/dist/coordination/adapter/index.js +3 -1
- package/dist/coordination/adapter/index.js.map +1 -1
- package/dist/coordination/adapter/receipts.d.ts +2 -1
- package/dist/coordination/adapter/receipts.d.ts.map +1 -1
- package/dist/coordination/adapter/receipts.js +7 -4
- package/dist/coordination/adapter/receipts.js.map +1 -1
- package/dist/coordination/adapter/supervisor.d.ts.map +1 -1
- package/dist/coordination/adapter/supervisor.js +8 -0
- package/dist/coordination/adapter/supervisor.js.map +1 -1
- package/dist/coordination/broker/broker.d.ts +11 -0
- package/dist/coordination/broker/broker.d.ts.map +1 -1
- package/dist/coordination/broker/broker.js +195 -18
- package/dist/coordination/broker/broker.js.map +1 -1
- package/dist/coordination/client/client.d.ts +5 -0
- package/dist/coordination/client/client.d.ts.map +1 -1
- package/dist/coordination/client/client.js +23 -9
- package/dist/coordination/client/client.js.map +1 -1
- package/dist/coordination/transport/protocol.d.ts.map +1 -1
- package/dist/coordination/transport/protocol.js +8 -1
- package/dist/coordination/transport/protocol.js.map +1 -1
- package/dist/coordination/transport/types.d.ts +6 -0
- package/dist/coordination/transport/types.d.ts.map +1 -1
- package/dist/coordination/transport/types.js +2 -1
- package/dist/coordination/transport/types.js.map +1 -1
- package/dist/core/agent-session.d.ts +44 -2
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +305 -124
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +20 -13
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/auto-effort.d.ts +16 -0
- package/dist/core/auto-effort.d.ts.map +1 -0
- package/dist/core/auto-effort.js +69 -0
- package/dist/core/auto-effort.js.map +1 -0
- package/dist/core/auto-session-namer.d.ts.map +1 -1
- package/dist/core/auto-session-namer.js +2 -12
- package/dist/core/auto-session-namer.js.map +1 -1
- package/dist/core/bug-report.d.ts +11 -1
- package/dist/core/bug-report.d.ts.map +1 -1
- package/dist/core/bug-report.js +2 -2
- package/dist/core/bug-report.js.map +1 -1
- package/dist/core/compaction/branch-summarization.d.ts +3 -2
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
- package/dist/core/compaction/branch-summarization.js +1 -1
- package/dist/core/compaction/branch-summarization.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +13 -4
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +94 -5
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/compaction/utils.d.ts +6 -0
- package/dist/core/compaction/utils.d.ts.map +1 -1
- package/dist/core/compaction/utils.js +7 -8
- package/dist/core/compaction/utils.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +4 -2
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +6 -3
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/types.d.ts +33 -7
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/key-id-schema.d.ts +6 -0
- package/dist/core/key-id-schema.d.ts.map +1 -0
- package/dist/core/key-id-schema.js +16 -0
- package/dist/core/key-id-schema.js.map +1 -0
- package/dist/core/keybindings-schema.d.ts +4 -0
- package/dist/core/keybindings-schema.d.ts.map +1 -0
- package/dist/core/keybindings-schema.js +16 -0
- package/dist/core/keybindings-schema.js.map +1 -0
- package/dist/core/keybindings.d.ts +198 -63
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +26 -23
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/model-config.d.ts +695 -74
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +16 -166
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +39 -4
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +3 -3
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/project-trust.d.ts.map +1 -1
- package/dist/core/project-trust.js +2 -1
- package/dist/core/project-trust.js.map +1 -1
- package/dist/core/remote-catalog-provider.d.ts +13 -1
- package/dist/core/remote-catalog-provider.d.ts.map +1 -1
- package/dist/core/remote-catalog-provider.js +110 -27
- package/dist/core/remote-catalog-provider.js.map +1 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +5 -1
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/session-export.d.ts.map +1 -1
- package/dist/core/session-export.js +2 -2
- package/dist/core/session-export.js.map +1 -1
- package/dist/core/session-manager.d.ts +36 -5
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +164 -40
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-defaults.d.ts +65 -0
- package/dist/core/settings-defaults.d.ts.map +1 -0
- package/dist/core/settings-defaults.js +66 -0
- package/dist/core/settings-defaults.js.map +1 -0
- package/dist/core/settings-manager.d.ts +10 -175
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +64 -44
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/settings-schema.d.ts +257 -0
- package/dist/core/settings-schema.d.ts.map +1 -0
- package/dist/core/settings-schema.js +311 -0
- package/dist/core/settings-schema.js.map +1 -0
- package/dist/core/tools/edit-diff.d.ts +4 -1
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js +480 -29
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/core/tools/render-utils.d.ts +18 -0
- package/dist/core/tools/render-utils.d.ts.map +1 -1
- package/dist/core/tools/render-utils.js +46 -0
- package/dist/core/tools/render-utils.js.map +1 -1
- package/dist/core/tools/renderers/bash.d.ts.map +1 -1
- package/dist/core/tools/renderers/bash.js +17 -46
- package/dist/core/tools/renderers/bash.js.map +1 -1
- package/dist/core/tools/renderers/edit.d.ts +19 -1
- package/dist/core/tools/renderers/edit.d.ts.map +1 -1
- package/dist/core/tools/renderers/edit.js +38 -7
- package/dist/core/tools/renderers/edit.js.map +1 -1
- package/dist/core/tools/renderers/find.d.ts.map +1 -1
- package/dist/core/tools/renderers/find.js +3 -0
- package/dist/core/tools/renderers/find.js.map +1 -1
- package/dist/core/tools/renderers/grep.d.ts.map +1 -1
- package/dist/core/tools/renderers/grep.js +3 -0
- package/dist/core/tools/renderers/grep.js.map +1 -1
- package/dist/core/tools/renderers/highlighting.d.ts +13 -0
- package/dist/core/tools/renderers/highlighting.d.ts.map +1 -0
- package/dist/core/tools/renderers/highlighting.js +42 -0
- package/dist/core/tools/renderers/highlighting.js.map +1 -0
- package/dist/core/tools/renderers/ls.d.ts.map +1 -1
- package/dist/core/tools/renderers/ls.js +3 -0
- package/dist/core/tools/renderers/ls.js.map +1 -1
- package/dist/core/tools/renderers/read.d.ts.map +1 -1
- package/dist/core/tools/renderers/read.js +3 -0
- package/dist/core/tools/renderers/read.js.map +1 -1
- package/dist/core/tools/renderers/write.d.ts.map +1 -1
- package/dist/core/tools/renderers/write.js +3 -1
- package/dist/core/tools/renderers/write.js.map +1 -1
- package/dist/core/tools/subagent.d.ts +4 -0
- package/dist/core/tools/subagent.d.ts.map +1 -1
- package/dist/core/tools/subagent.js +85 -8
- package/dist/core/tools/subagent.js.map +1 -1
- package/dist/core/tools/truncate.d.ts.map +1 -1
- package/dist/core/tools/truncate.js +92 -44
- package/dist/core/tools/truncate.js.map +1 -1
- package/dist/core/usage-totals.d.ts +8 -1
- package/dist/core/usage-totals.d.ts.map +1 -1
- package/dist/core/usage-totals.js +106 -10
- package/dist/core/usage-totals.js.map +1 -1
- package/dist/extensions/codemode/execute.d.ts.map +1 -1
- package/dist/extensions/codemode/execute.js +64 -45
- package/dist/extensions/codemode/execute.js.map +1 -1
- package/dist/extensions/codemode/index.d.ts.map +1 -1
- package/dist/extensions/codemode/index.js +2 -1
- package/dist/extensions/codemode/index.js.map +1 -1
- package/dist/extensions/codemode/renderer.d.ts +2 -2
- package/dist/extensions/codemode/renderer.d.ts.map +1 -1
- package/dist/extensions/codemode/renderer.js +9 -3
- package/dist/extensions/codemode/renderer.js.map +1 -1
- package/dist/extensions/codemode/tool.d.ts +6 -12
- package/dist/extensions/codemode/tool.d.ts.map +1 -1
- package/dist/extensions/codemode/tool.js +44 -32
- package/dist/extensions/codemode/tool.js.map +1 -1
- package/dist/extensions/mcp/cli.js +5 -8
- package/dist/extensions/mcp/cli.js.map +1 -1
- package/dist/extensions/mcp/index.d.ts.map +1 -1
- package/dist/extensions/mcp/index.js +26 -23
- package/dist/extensions/mcp/index.js.map +1 -1
- package/dist/extensions/mcp/resources.d.ts +0 -6
- package/dist/extensions/mcp/resources.d.ts.map +1 -1
- package/dist/extensions/mcp/resources.js +1 -1
- package/dist/extensions/mcp/resources.js.map +1 -1
- package/dist/extensions/mcp/runtime.d.ts +3 -6
- package/dist/extensions/mcp/runtime.d.ts.map +1 -1
- package/dist/extensions/mcp/runtime.js +4 -39
- package/dist/extensions/mcp/runtime.js.map +1 -1
- package/dist/extensions/mcp/tools.d.ts +2 -3
- package/dist/extensions/mcp/tools.d.ts.map +1 -1
- package/dist/extensions/mcp/tools.js +62 -6
- package/dist/extensions/mcp/tools.js.map +1 -1
- package/dist/extensions/tool-search/tool.d.ts +0 -2
- package/dist/extensions/tool-search/tool.d.ts.map +1 -1
- package/dist/extensions/tool-search/tool.js +2 -4
- package/dist/extensions/tool-search/tool.js.map +1 -1
- package/dist/humain/adhd/index.d.ts +3 -2
- package/dist/humain/adhd/index.d.ts.map +1 -1
- package/dist/humain/adhd/index.js +22 -10
- package/dist/humain/adhd/index.js.map +1 -1
- package/dist/humain/bedrock-provider/vendor/index.bundle.mjs +306 -20
- package/dist/humain/caveman/index.d.ts +4 -2
- package/dist/humain/caveman/index.d.ts.map +1 -1
- package/dist/humain/caveman/index.js +51 -16
- package/dist/humain/caveman/index.js.map +1 -1
- package/dist/humain/ponytail/index.d.ts +2 -0
- package/dist/humain/ponytail/index.d.ts.map +1 -1
- package/dist/humain/ponytail/index.js +2 -0
- package/dist/humain/ponytail/index.js.map +1 -1
- package/dist/humain/ponytail/vendor/hooks/ponytail-config.d.ts.map +1 -1
- package/dist/humain/ponytail/vendor/hooks/ponytail-config.js +39 -9
- package/dist/humain/ponytail/vendor/hooks/ponytail-config.js.map +1 -1
- package/dist/humain/ponytail/vendor/hooks/ponytail-instructions.js +1 -1
- package/dist/humain/ponytail/vendor/hooks/ponytail-instructions.js.map +1 -1
- package/dist/humain/ponytail/vendor/pi-extension/index.d.ts +4 -0
- package/dist/humain/ponytail/vendor/pi-extension/index.d.ts.map +1 -1
- package/dist/humain/ponytail/vendor/pi-extension/index.js +8 -0
- package/dist/humain/ponytail/vendor/pi-extension/index.js.map +1 -1
- package/dist/humain/web-access/vendor/baizhi.js.map +1 -1
- package/dist/humain/web-access/vendor/brave.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/brave.js +19 -2
- package/dist/humain/web-access/vendor/brave.js.map +1 -1
- package/dist/humain/web-access/vendor/ceramic.d.ts +4 -0
- package/dist/humain/web-access/vendor/ceramic.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/ceramic.js +212 -0
- package/dist/humain/web-access/vendor/ceramic.js.map +1 -0
- package/dist/humain/web-access/vendor/content-find.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/content-find.js +2 -1
- package/dist/humain/web-access/vendor/content-find.js.map +1 -1
- package/dist/humain/web-access/vendor/curator-page.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/curator-page.js +3 -1
- package/dist/humain/web-access/vendor/curator-page.js.map +1 -1
- package/dist/humain/web-access/vendor/curator-server.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/curator-server.js +2 -0
- package/dist/humain/web-access/vendor/curator-server.js.map +1 -1
- package/dist/humain/web-access/vendor/duckduckgo.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/duckduckgo.js +5 -1
- package/dist/humain/web-access/vendor/duckduckgo.js.map +1 -1
- package/dist/humain/web-access/vendor/endpoint-pdf-extract.d.ts +23 -0
- package/dist/humain/web-access/vendor/endpoint-pdf-extract.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/endpoint-pdf-extract.js +193 -0
- package/dist/humain/web-access/vendor/endpoint-pdf-extract.js.map +1 -0
- package/dist/humain/web-access/vendor/extract.d.ts +5 -1
- package/dist/humain/web-access/vendor/extract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/extract.js +49 -12
- package/dist/humain/web-access/vendor/extract.js.map +1 -1
- package/dist/humain/web-access/vendor/fetch-params.d.ts +2 -0
- package/dist/humain/web-access/vendor/fetch-params.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/fetch-params.js +9 -0
- package/dist/humain/web-access/vendor/fetch-params.js.map +1 -1
- package/dist/humain/web-access/vendor/gemini-api.d.ts +5 -0
- package/dist/humain/web-access/vendor/gemini-api.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/gemini-api.js +16 -0
- package/dist/humain/web-access/vendor/gemini-api.js.map +1 -1
- package/dist/humain/web-access/vendor/gemini-search.d.ts +3 -3
- package/dist/humain/web-access/vendor/gemini-search.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/gemini-search.js +48 -172
- package/dist/humain/web-access/vendor/gemini-search.js.map +1 -1
- package/dist/humain/web-access/vendor/github-extract.d.ts +7 -0
- package/dist/humain/web-access/vendor/github-extract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/github-extract.js +31 -2
- package/dist/humain/web-access/vendor/github-extract.js.map +1 -1
- package/dist/humain/web-access/vendor/github-issue-pr.d.ts +2 -0
- package/dist/humain/web-access/vendor/github-issue-pr.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/github-issue-pr.js +86 -74
- package/dist/humain/web-access/vendor/github-issue-pr.js.map +1 -1
- package/dist/humain/web-access/vendor/index.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/index.js +68 -27
- package/dist/humain/web-access/vendor/index.js.map +1 -1
- package/dist/humain/web-access/vendor/openai-search.js +3 -3
- package/dist/humain/web-access/vendor/openai-search.js.map +1 -1
- package/dist/humain/web-access/vendor/page-query.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/page-query.js +6 -9
- package/dist/humain/web-access/vendor/page-query.js.map +1 -1
- package/dist/humain/web-access/vendor/parallel-mcp.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/parallel-mcp.js +2 -0
- package/dist/humain/web-access/vendor/parallel-mcp.js.map +1 -1
- package/dist/humain/web-access/vendor/pdf-extract.d.ts +1 -1
- package/dist/humain/web-access/vendor/pdf-extract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/pdf-extract.js +31 -1
- package/dist/humain/web-access/vendor/pdf-extract.js.map +1 -1
- package/dist/humain/web-access/vendor/perplexity.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/perplexity.js +21 -2
- package/dist/humain/web-access/vendor/perplexity.js.map +1 -1
- package/dist/humain/web-access/vendor/query-rewrite.js +1 -1
- package/dist/humain/web-access/vendor/query-rewrite.js.map +1 -1
- package/dist/humain/web-access/vendor/ssrf-protection.d.ts +4 -0
- package/dist/humain/web-access/vendor/ssrf-protection.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/ssrf-protection.js +19 -4
- package/dist/humain/web-access/vendor/ssrf-protection.js.map +1 -1
- package/dist/humain/web-access/vendor/storage.d.ts +14 -0
- package/dist/humain/web-access/vendor/storage.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/storage.js +48 -0
- package/dist/humain/web-access/vendor/storage.js.map +1 -1
- package/dist/humain/web-access/vendor/summary-review.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/summary-review.js +18 -6
- package/dist/humain/web-access/vendor/summary-review.js.map +1 -1
- package/dist/humain/web-access/vendor/tool-arguments.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/tool-arguments.js +5 -2
- package/dist/humain/web-access/vendor/tool-arguments.js.map +1 -1
- package/dist/humain/web-access/vendor/utils.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/utils.js +21 -6
- package/dist/humain/web-access/vendor/utils.js.map +1 -1
- package/dist/humain/web-access/vendor/video-extract.js +6 -2
- package/dist/humain/web-access/vendor/video-extract.js.map +1 -1
- package/dist/humain/web-access/vendor/web-tool-core.d.ts +2 -1
- package/dist/humain/web-access/vendor/web-tool-core.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/web-tool-core.js +56 -13
- package/dist/humain/web-access/vendor/web-tool-core.js.map +1 -1
- package/dist/humain/web-access/vendor/zai.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.js +3 -3
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/assistant-message.d.ts +21 -1
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +79 -10
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +8 -3
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +156 -133
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/mermaid.js +1 -1
- package/dist/modes/interactive/components/mermaid.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts +10 -1
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +83 -7
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts +1 -1
- package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
- package/dist/modes/interactive/components/status-indicator.js +2 -2
- package/dist/modes/interactive/components/status-indicator.js.map +1 -1
- package/dist/modes/interactive/components/themed-text.d.ts.map +1 -1
- package/dist/modes/interactive/components/themed-text.js +3 -1
- package/dist/modes/interactive/components/themed-text.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts +7 -1
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +36 -19
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/components/transcript-container.d.ts +12 -0
- package/dist/modes/interactive/components/transcript-container.d.ts.map +1 -0
- package/dist/modes/interactive/components/transcript-container.js +31 -0
- package/dist/modes/interactive/components/transcript-container.js.map +1 -0
- package/dist/modes/interactive/components/user-message.d.ts +6 -1
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/user-message.js +20 -5
- package/dist/modes/interactive/components/user-message.js.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.d.ts +20 -5
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -1
- package/dist/modes/interactive/components/visual-truncate.js +42 -3
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +2 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +125 -19
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/theme-schema.d.ts +28 -0
- package/dist/modes/interactive/theme/theme-schema.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-schema.js +105 -0
- package/dist/modes/interactive/theme/theme-schema.js.map +1 -0
- package/dist/modes/interactive/theme/theme-tokens.d.ts +257 -0
- package/dist/modes/interactive/theme/theme-tokens.d.ts.map +1 -0
- package/dist/modes/interactive/theme/theme-tokens.js +94 -0
- package/dist/modes/interactive/theme/theme-tokens.js.map +1 -0
- package/dist/modes/interactive/theme/theme.d.ts +15 -16
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +26 -29
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +4 -0
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/utils/child-process.d.ts +0 -7
- package/dist/utils/child-process.d.ts.map +1 -1
- package/dist/utils/child-process.js +12 -3
- package/dist/utils/child-process.js.map +1 -1
- package/dist/utils/clipboard.d.ts.map +1 -1
- package/dist/utils/clipboard.js +6 -1
- package/dist/utils/clipboard.js.map +1 -1
- package/dist/utils/image-convert.d.ts +7 -0
- package/dist/utils/image-convert.d.ts.map +1 -1
- package/dist/utils/image-convert.js +35 -3
- package/dist/utils/image-convert.js.map +1 -1
- package/dist/utils/image-resize.d.ts.map +1 -1
- package/dist/utils/image-resize.js +2 -2
- package/dist/utils/image-resize.js.map +1 -1
- package/dist/utils/syntax-highlight.d.ts +7 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +54 -3
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/dist/utils/windows-path.js +1 -1
- package/dist/utils/windows-path.js.map +1 -1
- package/dist/utils/zip.d.ts.map +1 -1
- package/dist/utils/zip.js +3 -1
- package/dist/utils/zip.js.map +1 -1
- package/docs/auto-session-namer.md +4 -0
- package/docs/cli-integration.md +1 -1
- package/docs/cli.md +1 -1
- package/docs/codemode.md +1 -1
- package/docs/compaction.md +9 -5
- package/docs/coordination.md +7 -0
- package/docs/environment-variables.md +1 -0
- package/docs/extensions.md +7 -4
- package/docs/keybindings.md +1 -0
- package/docs/mcp.md +1 -1
- package/docs/models.md +1 -0
- package/docs/providers.md +20 -0
- package/docs/session-format.md +16 -2
- package/docs/settings.md +16 -1
- package/docs/themes.md +4 -2
- package/docs/tui.md +1 -1
- package/docs/usage.md +6 -2
- package/examples/extensions/custom-provider-anthropic/package-lock.json +6 -6
- package/examples/extensions/custom-provider-anthropic/package.json +2 -2
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/dynamic-resources/dynamic.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +20 -20
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/overlay-test.ts +2 -2
- package/examples/extensions/plan-mode/index.ts +6 -2
- package/examples/extensions/sandbox/package-lock.json +8 -8
- package/examples/extensions/sandbox/package.json +2 -2
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/examples/plugins/pi-example-plugin/package.json +2 -2
- package/examples/plugins/pi-example-plugin/src/contract.ts +1 -1
- package/examples/plugins/pi-example-plugin/src/session.ts +1 -1
- package/examples/plugins/pi-example-plugin/src/tui.ts +1 -1
- package/npm-shrinkwrap.json +174 -190
- package/package.json +24 -23
- package/schemas/keybindings.schema.json +397 -0
- package/schemas/models.schema.json +1157 -0
- package/schemas/settings.schema.json +875 -0
- package/schemas/theme.schema.json +365 -0
- package/src/coordination/UPSTREAM.md +36 -3
- package/src/coordination/upstream.json +3 -2
- package/src/humain/adhd/UPSTREAM.md +21 -3
- package/src/humain/adhd/upstream.json +1 -1
- package/src/humain/caveman/UPSTREAM.md +24 -3
- package/src/humain/ponytail/UPSTREAM.md +51 -4
- package/src/humain/ponytail/upstream.json +12 -12
- package/src/humain/ponytail/vendor/skills/ponytail/SKILL.md +1 -1
- package/src/humain/ponytail/vendor/skills/ponytail-audit/SKILL.md +1 -1
- package/src/humain/ponytail/vendor/skills/ponytail-debt/SKILL.md +13 -10
- package/src/humain/ponytail/vendor/skills/ponytail-help/SKILL.md +1 -1
- package/src/humain/ponytail/vendor/skills/ponytail-review/SKILL.md +1 -1
- package/src/humain/web-access/UPSTREAM.md +55 -1
- package/src/humain/web-access/upstream.json +4 -4
- package/dist/bundle/chunks/anthropic-messages-UNHXXOD4.js +0 -70
- package/dist/bundle/chunks/azure-openai-responses-4QRYJCC2.js +0 -14
- package/dist/bundle/chunks/chunk-GVVRXZHN.js +0 -17
- package/dist/bundle/chunks/chunk-QMUIATLD.js +0 -209
- package/dist/bundle/chunks/chunk-QSPDLT2R.js +0 -160
- package/dist/bundle/chunks/chunk-SZRZXVVZ.js +0 -125
- package/dist/bundle/chunks/chunk-XMHLSV3I.js +0 -48
- package/dist/bundle/chunks/chunk-YKZGL4MB.js +0 -86
- package/dist/bundle/chunks/dist-VNSMKBZ6.js +0 -7
- package/dist/bundle/chunks/es-N6YFJOD7.js +0 -1901
- package/dist/bundle/chunks/execute-4X6G65NZ.js +0 -536
- package/dist/bundle/chunks/host-4J7H7KDS.js +0 -2
- package/dist/bundle/chunks/runtime-SI76JZNE.js +0 -2
- package/dist/bundle/chunks/virtual-modules-GZY3Y4GX.js +0 -5
|
@@ -23,9 +23,9 @@ concat:from=>{let cloned=cloneTo(constructStack());return cloned.use(from),clone
|
|
|
23
23
|
for(let middleware of getMiddlewareList().map(entry=>entry.middleware).reverse())handler=middleware(handler,context);return identifyOnResolve&&console.log(stack.identify()),handler}};return stack},stepWeights={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},priorityWeights={high:3,normal:2,low:1}}});var require_dist_cjs=__commonJS({"node_modules/@smithy/types/dist-cjs/index.js"(exports){var HttpAuthLocation;(function(HttpAuthLocation2){HttpAuthLocation2.HEADER="header",HttpAuthLocation2.QUERY="query"})(HttpAuthLocation||(HttpAuthLocation={}));var HttpApiKeyAuthLocation2;(function(HttpApiKeyAuthLocation3){HttpApiKeyAuthLocation3.HEADER="header",HttpApiKeyAuthLocation3.QUERY="query"})(HttpApiKeyAuthLocation2||(HttpApiKeyAuthLocation2={}));var EndpointURLScheme2;(function(EndpointURLScheme3){EndpointURLScheme3.
|
|
24
24
|
HTTP="http",EndpointURLScheme3.HTTPS="https"})(EndpointURLScheme2||(EndpointURLScheme2={}));var AlgorithmId2;(function(AlgorithmId3){AlgorithmId3.MD5="md5",AlgorithmId3.CRC32="crc32",AlgorithmId3.CRC32C="crc32c",AlgorithmId3.SHA1="sha1",AlgorithmId3.SHA256="sha256"})(AlgorithmId2||(AlgorithmId2={}));var getChecksumConfiguration2=runtimeConfig=>{let checksumAlgorithms=[];return runtimeConfig.sha256!==void 0&&checksumAlgorithms.push({algorithmId:()=>AlgorithmId2.SHA256,checksumConstructor:()=>runtimeConfig.
|
|
25
25
|
sha256}),runtimeConfig.md5!=null&&checksumAlgorithms.push({algorithmId:()=>AlgorithmId2.MD5,checksumConstructor:()=>runtimeConfig.md5}),{addChecksumAlgorithm(algo){checksumAlgorithms.push(algo)},checksumAlgorithms(){return checksumAlgorithms}}},resolveChecksumRuntimeConfig2=clientConfig=>{let runtimeConfig={};return clientConfig.checksumAlgorithms().forEach(checksumAlgorithm=>{runtimeConfig[checksumAlgorithm.algorithmId()]=checksumAlgorithm.checksumConstructor()}),runtimeConfig},getDefaultClientConfiguration2=runtimeConfig=>getChecksumConfiguration2(
|
|
26
|
-
runtimeConfig),resolveDefaultRuntimeConfig2=config=>resolveChecksumRuntimeConfig2(config),FieldPosition2;(function(FieldPosition3){FieldPosition3[FieldPosition3.HEADER=0]="HEADER",FieldPosition3[FieldPosition3.TRAILER=1]="TRAILER"})(FieldPosition2||(FieldPosition2={}));var
|
|
26
|
+
runtimeConfig),resolveDefaultRuntimeConfig2=config=>resolveChecksumRuntimeConfig2(config),FieldPosition2;(function(FieldPosition3){FieldPosition3[FieldPosition3.HEADER=0]="HEADER",FieldPosition3[FieldPosition3.TRAILER=1]="TRAILER"})(FieldPosition2||(FieldPosition2={}));var SMITHY_CONTEXT_KEY4="__smithy_context",IniSectionType4;(function(IniSectionType5){IniSectionType5.PROFILE="profile",IniSectionType5.SSO_SESSION="sso-session",IniSectionType5.SERVICES="services"})(IniSectionType4||(IniSectionType4=
|
|
27
27
|
{}));var RequestHandlerProtocol;(function(RequestHandlerProtocol2){RequestHandlerProtocol2.HTTP_0_9="http/0.9",RequestHandlerProtocol2.HTTP_1_0="http/1.0",RequestHandlerProtocol2.TDS_8_0="tds/8.0"})(RequestHandlerProtocol||(RequestHandlerProtocol={}));exports.AlgorithmId=AlgorithmId2;exports.EndpointURLScheme=EndpointURLScheme2;exports.FieldPosition=FieldPosition2;exports.HttpApiKeyAuthLocation=HttpApiKeyAuthLocation2;exports.HttpAuthLocation=HttpAuthLocation;exports.IniSectionType=IniSectionType4;
|
|
28
|
-
exports.RequestHandlerProtocol=RequestHandlerProtocol;exports.SMITHY_CONTEXT_KEY=
|
|
28
|
+
exports.RequestHandlerProtocol=RequestHandlerProtocol;exports.SMITHY_CONTEXT_KEY=SMITHY_CONTEXT_KEY4;exports.getDefaultClientConfiguration=getDefaultClientConfiguration2;exports.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig2}});var import_types,getSmithyContext,init_getSmithyContext=__esm({"node_modules/@smithy/core/dist-es/submodules/transport/getSmithyContext.js"(){import_types=__toESM(require_dist_cjs()),getSmithyContext=context=>context[import_types.SMITHY_CONTEXT_KEY]||(context[import_types.SMITHY_CONTEXT_KEY]={})}});function hasOwn(o3,k5){return Object.prototype.hasOwnProperty.call(o3,k5)}var init_hasOwn=__esm({"node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js"(){}});function cloneQuery(query){return Object.keys(query).reduce((carry,paramName)=>{let param=query[paramName];return{...carry,[paramName]:Array.isArray(param)?[...param]:param}},{})}var HttpRequest,init_httpRequest=__esm({"node_modules/@smithy/core/dist-es/submodules/transport/httpRequest.js"(){HttpRequest=class _HttpRequest{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(options){this.method=options.method||"GET",this.hostname=options.hostname||"localho\
|
|
29
29
|
st",this.port=options.port,this.query=options.query||{},this.headers=options.headers||{},this.body=options.body,this.protocol=options.protocol?options.protocol.slice(-1)!==":"?`${options.protocol}:`:options.protocol:"https:",this.path=options.path?options.path.charAt(0)!=="/"?`/${options.path}`:options.path:"/",this.username=options.username,this.password=options.password,this.fragment=options.fragment}static clone(request){let cloned=new _HttpRequest({...request,headers:{...request.headers}});return cloned.
|
|
30
30
|
query&&(cloned.query=cloneQuery(cloned.query)),cloned}static isInstance(request){if(!request)return!1;let req=request;return"method"in req&&"protocol"in req&&"hostname"in req&&"path"in req&&typeof req.query=="object"&&typeof req.headers=="object"}clone(){return _HttpRequest.clone(this)}}}});var HttpResponse,init_httpResponse=__esm({"node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js"(){HttpResponse=class{statusCode;reason;headers;body;constructor(options){this.statusCode=options.statusCode,this.reason=options.reason,this.headers=options.headers||{},this.body=options.body}static isInstance(response){if(!response)return!1;let resp=response;return typeof resp.statusCode=="number"&&typeof resp.headers=="object"}}}});var VALID_HOST_LABEL_REGEX,isValidHostLabel,init_isValidHostLabel=__esm({"node_modules/@smithy/core/dist-es/submodules/transport/isValidHostLabel.js"(){VALID_HOST_LABEL_REGEX=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),isValidHostLabel=(value,allowSubDomains=!1)=>{if(!allowSubDomains)return VALID_HOST_LABEL_REGEX.test(value);let labels=value.split(".");for(let label of labels)if(!isValidHostLabel(label))return!1;return!0}}});function isValidHostname(hostname){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(hostname)}var init_isValidHostname=__esm({"node_modules/@smithy/core/dist-es/submodules/transport/isValidHostname.js"(){}});var normalizeProvider,init_normalizeProvider=__esm({"node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js"(){normalizeProvider=input=>{if(typeof input=="function")return input;let promisified=Promise.resolve(input);return()=>promisified}}});function parseQueryString(querystring){let query={};if(querystring=querystring.replace(/^\?/,""),querystring)for(let pair of querystring.split("&")){let[key,value=null]=pair.split("=");key=decodeURIComponent(key),value&&(value=decodeURIComponent(value)),key in query?Array.isArray(query[key])?query[key].push(value):query[key]=[query[key],value]:query[key]=value}return query}var init_parseQueryString=__esm({"node_modules/@smithy/core/dist-es/submodules/transport/parseQueryString.js"(){}});var parseUrl,init_parseUrl=__esm({"node_modules/@smithy/core/dist-es/submodules/transport/parseUrl.js"(){init_parseQueryString();parseUrl=url=>{if(typeof url=="string")return parseUrl(new URL(url));let{hostname,pathname,port,protocol,search}=url,query;return search&&(query=parseQueryString(search)),{hostname,port:port?parseInt(port):void 0,protocol,path:pathname,query}}}});var toEndpointV1,init_toEndpointV1=__esm({"node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js"(){init_hasOwn();init_parseUrl();toEndpointV1=endpoint=>{if(typeof endpoint=="object"){if("url"in endpoint){let v1Endpoint=parseUrl(endpoint.url);if(endpoint.headers){v1Endpoint.headers={};for(let name in endpoint.headers)hasOwn(endpoint.headers,name)&&(v1Endpoint.headers[name.toLowerCase()]=endpoint.headers[name].join(", "))}return v1Endpoint}return endpoint}return parseUrl(endpoint)}}});var init_transport=__esm({"node_modules/@smithy/core/dist-es/submodules/transport/index.js"(){init_getSmithyContext();init_hasOwn();init_httpRequest();init_httpResponse();init_isValidHostLabel();init_isValidHostname();init_normalizeProvider();init_parseQueryString();init_parseUrl();init_toEndpointV1()}});var invalidFunction,init_invalidFunction=__esm({"node_modules/@smithy/core/dist-es/submodules/client/invalid-dependency/invalidFunction.js"(){invalidFunction=message=>()=>{throw new Error(message)}}});var invalidProvider,init_invalidProvider=__esm({"node_modules/@smithy/core/dist-es/submodules/client/invalid-dependency/invalidProvider.js"(){invalidProvider=message=>()=>Promise.reject(message)}});var getCircularReplacer,init_circularReplacer=__esm({"node_modules/@smithy/core/dist-es/submodules/client/util-waiter/circularReplacer.js"(){getCircularReplacer=()=>{let seen=new WeakSet;return(key,value)=>{if(typeof value=="object"&&value!==null){if(seen.has(value))return"[Circular]";seen.add(value)}return value}}}});var sleep,init_sleep=__esm({"node_modules/@smithy/core/dist-es/submodules/client/util-waiter/utils/sleep.js"(){sleep=seconds=>new Promise(resolve=>setTimeout(resolve,seconds*1e3))}});var waiterServiceDefaults,WaiterState,checkExceptions,init_waiter=__esm({"node_modules/@smithy/core/dist-es/submodules/client/util-waiter/waiter.js"(){init_circularReplacer();waiterServiceDefaults={minDelay:2,maxDelay:120};(function(WaiterState2){WaiterState2.ABORTED="ABORTED",WaiterState2.FAILURE="FAILURE",WaiterState2.SUCCESS="SUCCESS",WaiterState2.RETRY="RETRY",WaiterState2.TIMEOUT="TIMEOUT"})(WaiterState||(WaiterState={}));checkExceptions=result=>{if(result.state===WaiterState.ABORTED){let abortError=new Error(
|
|
31
31
|
`${JSON.stringify({...result,reason:"Request was aborted"},getCircularReplacer())}`);throw abortError.name="AbortError",abortError}else if(result.state===WaiterState.TIMEOUT){let timeoutError=new Error(`${JSON.stringify({...result,reason:"Waiter has timed out"},getCircularReplacer())}`);throw timeoutError.name="TimeoutError",timeoutError}else if(result.state!==WaiterState.SUCCESS)throw new Error(`${JSON.stringify(result,getCircularReplacer())}`);return result}}});var runPolling,checkWarn403,createMessageFromResponse,exponentialBackoffWithJitter,randomInRange,init_poller=__esm({"node_modules/@smithy/core/dist-es/submodules/client/util-waiter/poller.js"(){init_circularReplacer();init_sleep();init_waiter();runPolling=async({minDelay,maxDelay,maxWaitTime,abortController,client,abortSignal},input,acceptorChecks)=>{let observedResponses={},[minDelayMs,maxDelayMs]=[minDelay*1e3,maxDelay*1e3],currentAttempt=0,waitUntil=Date.now()+maxWaitTime*1e3,warn403Time=Date.
|
|
@@ -58,9 +58,9 @@ has no value member.`)}getMemberSchema(memberName){let struct2=this.getSchema();
|
|
|
58
58
|
buffer[k5]=v}catch{}return buffer}getEventStreamMember(){if(this.isStructSchema()){for(let[memberName,memberSchema]of this.structIterator())if(memberSchema.isStreaming()&&memberSchema.isStructSchema())return memberName}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let struct2=this.getSchema(),z=struct2[4].length,it=struct2[anno.it];if(it&&z===it.length){yield*it;return}it=Array(z);for(let i5=0;i5<
|
|
59
59
|
z;++i5){let k5=struct2[4][i5],v=member([struct2[5][i5],0],k5);yield it[i5]=[k5,v]}struct2[anno.it]=it}};isMemberSchema=sc=>Array.isArray(sc)&&sc.length===2,isStaticSchema=sc=>Array.isArray(sc)&&sc.length>=5}});var SimpleSchema,sim,simAdapter,init_SimpleSchema=__esm({"node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js"(){init_Schema();SimpleSchema=class _SimpleSchema extends Schema{static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=_SimpleSchema.symbol},sim=(namespace,name,schemaRef,traits)=>Schema.assign(new SimpleSchema,{name,namespace,traits,schemaRef}),simAdapter=(namespace,name,traits,schemaRef)=>Schema.assign(new SimpleSchema,{name,namespace,traits,schemaRef})}});var SCHEMA,init_sentinels=__esm({"node_modules/@smithy/core/dist-es/submodules/schema/schemas/sentinels.js"(){SCHEMA={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}}});var TypeRegistry,init_TypeRegistry=__esm({"node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js"(){TypeRegistry=class _TypeRegistry{namespace;schemas;exceptions;static registries=new Map;constructor(namespace,schemas=new Map,exceptions=new Map){this.namespace=namespace,this.schemas=schemas,this.exceptions=exceptions,_TypeRegistry.registries.has(namespace)||_TypeRegistry.registries.set(namespace,this)}static for(namespace){return _TypeRegistry.registries.get(namespace)??new _TypeRegistry(
|
|
60
60
|
namespace)}copyFrom(other){let{schemas,exceptions}=this;for(let[k5,v]of other.schemas)schemas.has(k5)||schemas.set(k5,v);for(let[k5,v]of other.exceptions)exceptions.has(k5)||exceptions.set(k5,v)}register(shapeId,schema){let qualifiedName=this.normalizeShapeId(shapeId);for(let r5 of[this,_TypeRegistry.for(qualifiedName.split("#")[0])])r5.schemas.has(qualifiedName)||r5.schemas.set(qualifiedName,schema)}getSchema(shapeId){let id=this.normalizeShapeId(shapeId);if(!this.schemas.has(id)){if(!shapeId.includes(
|
|
61
|
-
"#")){let suffix="#"+shapeId,candidates=[];for(let[shapeId2,schema]of this.schemas.entries())shapeId2.endsWith(suffix)&&candidates.push(schema);if(candidates.length===1)return candidates[0]}throw new Error(`@smithy/core/schema - schema not found for ${id}`)}return this.schemas.get(id)}registerError(es,ctor){let $error=es,ns=$error[1],qualifiedName=ns+"#"+$error[2];for(let r5 of[this,_TypeRegistry.for(ns)])!r5.schemas.has(qualifiedName)
|
|
62
|
-
r5.exceptions.set($error,ctor))}getErrorCtor(es){let $error=es;return this.exceptions.has($error)?this.exceptions.get($error):_TypeRegistry.for($error[1]).exceptions.get($error)}getBaseException(){for(let exceptionKey of this.exceptions.keys())if(Array.isArray(exceptionKey)){let[,ns,name]=exceptionKey,id=ns+"#"+name;if(id.startsWith("smithy.ts.sdk.synthetic.")&&id.endsWith("ServiceException"))return exceptionKey}}find(predicate){for(let schema of this.
|
|
63
|
-
this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(shapeId){return shapeId.includes("#")?shapeId:this.namespace+"#"+shapeId}}}});var schema_exports={};__export(schema_exports,{ErrorSchema:()=>ErrorSchema,ListSchema:()=>ListSchema,MapSchema:()=>MapSchema,NormalizedSchema:()=>NormalizedSchema,OperationSchema:()=>OperationSchema,SCHEMA:()=>SCHEMA,Schema:()=>Schema,SimpleSchema:()=>SimpleSchema,StructureSchema:()=>StructureSchema,TypeRegistry:()=>TypeRegistry,deref:()=>deref,deserializerMiddlewareOption:()=>deserializerMiddlewareOption,error:()=>error,getSchemaSerdePlugin:()=>getSchemaSerdePlugin,isStaticSchema:()=>isStaticSchema,
|
|
61
|
+
"#")){let suffix="#"+shapeId,candidates=[];for(let[shapeId2,schema]of this.schemas.entries())shapeId2.endsWith(suffix)&&candidates.push(schema);if(candidates.length===1)return candidates[0]}throw new Error(`@smithy/core/schema - schema not found for ${id}`)}return this.schemas.get(id)}registerError(es,ctor){let $error=es,ns=$error[1],qualifiedName=ns+"#"+$error[2];ctor.hasOwnProperty?.("shapeId")||(ctor.shapeId=qualifiedName);for(let r5 of[this,_TypeRegistry.for(ns)])!r5.schemas.has(qualifiedName)&&
|
|
62
|
+
!r5.exceptions.has($error)&&(r5.schemas.set(qualifiedName,$error),r5.exceptions.set($error,ctor))}getErrorCtor(es){let $error=es;return this.exceptions.has($error)?this.exceptions.get($error):_TypeRegistry.for($error[1]).exceptions.get($error)}getBaseException(){for(let exceptionKey of this.exceptions.keys())if(Array.isArray(exceptionKey)){let[,ns,name]=exceptionKey,id=ns+"#"+name;if(id.startsWith("smithy.ts.sdk.synthetic.")&&id.endsWith("ServiceException"))return exceptionKey}}find(predicate){for(let schema of this.
|
|
63
|
+
schemas.values())if(predicate(schema))return schema}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(shapeId){return shapeId.includes("#")?shapeId:this.namespace+"#"+shapeId}}}});var schema_exports={};__export(schema_exports,{ErrorSchema:()=>ErrorSchema,ListSchema:()=>ListSchema,MapSchema:()=>MapSchema,NormalizedSchema:()=>NormalizedSchema,OperationSchema:()=>OperationSchema,SCHEMA:()=>SCHEMA,Schema:()=>Schema,SimpleSchema:()=>SimpleSchema,StructureSchema:()=>StructureSchema,TypeRegistry:()=>TypeRegistry,deref:()=>deref,deserializerMiddlewareOption:()=>deserializerMiddlewareOption,error:()=>error,getSchemaSerdePlugin:()=>getSchemaSerdePlugin,isStaticSchema:()=>isStaticSchema,
|
|
64
64
|
list:()=>list,map:()=>map,op:()=>op,operation:()=>operation,serializerMiddlewareOption:()=>serializerMiddlewareOption,sim:()=>sim,simAdapter:()=>simAdapter,simpleSchemaCacheN:()=>simpleSchemaCacheN,simpleSchemaCacheS:()=>simpleSchemaCacheS,struct:()=>struct,traitsCache:()=>traitsCache,translateTraits:()=>translateTraits});var init_schema=__esm({"node_modules/@smithy/core/dist-es/submodules/schema/index.js"(){init_deref();init_getSchemaSerdePlugin();init_ListSchema();init_MapSchema();init_OperationSchema();
|
|
65
65
|
init_operation();init_ErrorSchema();init_NormalizedSchema();init_Schema();init_SimpleSchema();init_StructureSchema();init_sentinels();init_translateTraits();init_TypeRegistry()}});function schemaLogFilter(schema,data){if(data==null)return data;let ns=NormalizedSchema.of(schema);if(ns.getMergedTraits().sensitive)return SENSITIVE_STRING;if(ns.isListSchema()){if(!!ns.getValueSchema().getMergedTraits().sensitive)return SENSITIVE_STRING}else if(ns.isMapSchema()){if(!!ns.getKeySchema().getMergedTraits().sensitive||!!ns.getValueSchema().getMergedTraits().sensitive)return SENSITIVE_STRING}else if(ns.isStructSchema()&&typeof data=="object"){let object=data,newObject={};for(let[member2,
|
|
66
66
|
memberNs]of ns.structIterator())object[member2]!=null&&(newObject[member2]=schemaLogFilter(memberNs,object[member2]));return newObject}return data}var SENSITIVE_STRING,init_schemaLogFilter=__esm({"node_modules/@smithy/core/dist-es/submodules/client/smithy-client/schemaLogFilter.js"(){init_schema();SENSITIVE_STRING="***SensitiveInformation***"}});var import_types2,Command,ClassBuilder,init_command=__esm({"node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js"(){import_types2=__toESM(require_dist_cjs());init_MiddlewareStack();init_schemaLogFilter();Command=class{middlewareStack=constructStack();schema;static classBuilder(){return new ClassBuilder}resolveMiddlewareWithContext(clientStack,configuration,options,{middlewareFn,clientName,commandName,inputFilterSensitiveLog,outputFilterSensitiveLog,smithyContext,additionalContext,
|
|
@@ -71,10 +71,11 @@ return this._inputFilterSensitiveLog=inputFilter,this._outputFilterSensitiveLog=
|
|
|
71
71
|
input=input??{},closure._init(this),this.schema=closure._operationSchema}resolveMiddleware(stack,configuration,options){let op2=closure._operationSchema,input=op2?.[4]??op2?.input,output=op2?.[5]??op2?.output;return this.resolveMiddlewareWithContext(stack,configuration,options,{CommandCtor:CommandRef,middlewareFn:closure._middlewareFn,clientName:closure._clientName,commandName:closure._commandName,inputFilterSensitiveLog:closure._inputFilterSensitiveLog??(op2?schemaLogFilter.bind(null,input):_=>_),
|
|
72
72
|
outputFilterSensitiveLog:closure._outputFilterSensitiveLog??(op2?schemaLogFilter.bind(null,output):_=>_),smithyContext:closure._smithyContext,additionalContext:closure._additionalContext})}serialize=closure._serializer;deserialize=closure._deserializer}}}}});var SENSITIVE_STRING2,init_constants=__esm({"node_modules/@smithy/core/dist-es/submodules/client/smithy-client/constants.js"(){SENSITIVE_STRING2="***SensitiveInformation***"}});var createAggregatedClient,init_create_aggregated_client=__esm({"node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js"(){createAggregatedClient=(commands5,Client2,options)=>{for(let[command5,CommandCtor]of Object.entries(commands5)){let methodImpl=async function(args,optionsOrCb,cb){let command6=new CommandCtor(args);if(typeof optionsOrCb=="function")this.send(command6,optionsOrCb);else if(typeof cb=="function"){if(typeof optionsOrCb!="object")throw new Error(
|
|
73
73
|
`Expected http options but got ${typeof optionsOrCb}`);this.send(command6,optionsOrCb||{},cb)}else return this.send(command6,optionsOrCb)},methodName=(command5[0].toLowerCase()+command5.slice(1)).replace(/Command$/,"");Client2.prototype[methodName]=methodImpl}let{paginators={},waiters={}}=options??{};for(let[paginatorName,paginatorFn]of Object.entries(paginators))Client2.prototype[paginatorName]===void 0&&(Client2.prototype[paginatorName]=function(commandInput={},paginationConfiguration,...rest){
|
|
74
|
-
return paginatorFn({...paginationConfiguration,client:this},commandInput,...rest)});for(let[waiterName,waiterFn]of Object.entries(waiters))Client2.prototype[waiterName]===void 0&&(Client2.prototype[waiterName]=async function(commandInput={},waiterConfiguration,...rest){let config=waiterConfiguration;return typeof waiterConfiguration=="number"&&(config={maxWaitTime:waiterConfiguration}),waiterFn({...config,client:this},commandInput,...rest)})}}});var ServiceException,decorateServiceException,init_exceptions=__esm({"node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js"(){ServiceException=class _ServiceException extends Error{
|
|
75
|
-
return _ServiceException.prototype.isPrototypeOf(candidate)||!!candidate.$fault&&!!candidate.$metadata&&(candidate.$fault==="client"||candidate.$fault==="server")}static[Symbol.hasInstance](instance){if(!instance)return!1;let candidate=instance;if(this===_ServiceException)return _ServiceException.isInstance(instance);if(_ServiceException.isInstance(instance)){if(this.prototype.isPrototypeOf(instance))return!0;
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
return paginatorFn({...paginationConfiguration,client:this},commandInput,...rest)});for(let[waiterName,waiterFn]of Object.entries(waiters))Client2.prototype[waiterName]===void 0&&(Client2.prototype[waiterName]=async function(commandInput={},waiterConfiguration,...rest){let config=waiterConfiguration;return typeof waiterConfiguration=="number"&&(config={maxWaitTime:waiterConfiguration}),waiterFn({...config,client:this},commandInput,...rest)})}}});var ServiceException,decorateServiceException,init_exceptions=__esm({"node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js"(){ServiceException=class _ServiceException extends Error{static shapeId="smithy.ts.sdk.synthetic.nonamespace.client#ServiceException";$fault;$response;$retryable;$metadata;constructor(options){super(options.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=options.name,this.$fault=options.$fault,this.
|
|
75
|
+
$metadata=options.$metadata}static isInstance(value){if(!value)return!1;let candidate=value;return _ServiceException.prototype.isPrototypeOf(candidate)||!!candidate.$fault&&!!candidate.$metadata&&(candidate.$fault==="client"||candidate.$fault==="server")}static[Symbol.hasInstance](instance){if(!instance)return!1;let candidate=instance;if(this===_ServiceException)return _ServiceException.isInstance(instance);if(_ServiceException.isInstance(instance)){if(this.prototype.isPrototypeOf(instance))return!0;
|
|
76
|
+
let targetId=Object.prototype.hasOwnProperty.call(this,"shapeId")?this.shapeId:void 0,candidateHasShapeId=!1;if(targetId){let proto=Object.getPrototypeOf(candidate);for(;proto&&proto!==Object.prototype;){let ctor=proto.constructor,candidateId=ctor!==_ServiceException&&Object.prototype.hasOwnProperty.call(ctor,"shapeId")?ctor?.shapeId:void 0;if(candidateId&&(candidateHasShapeId=!0,candidateId===targetId))return!0;proto=Object.getPrototypeOf(proto)}}if(targetId&&candidateHasShapeId)return!1;let targetName=this.
|
|
77
|
+
name;if(targetName&&targetName.length>=6){if(candidate.name===targetName)return!0;let proto=Object.getPrototypeOf(candidate);for(;proto&&proto!==Object.prototype;){let ctorName=proto.constructor?.name;if(ctorName&&ctorName!=="Error"&&ctorName===targetName)return!0;proto=Object.getPrototypeOf(proto)}}}return!1}},decorateServiceException=(exception,additions={})=>{Object.entries(additions).filter(([,v])=>v!==void 0).forEach(([k5,v])=>{(exception[k5]==null||exception[k5]==="")&&(exception[k5]=v)});
|
|
78
|
+
let message=exception.message||exception.Message||"UnknownError";return exception.message=message,delete exception.Message,exception}}});var throwDefaultError,withBaseException,deserializeMetadata,init_default_error_handler=__esm({"node_modules/@smithy/core/dist-es/submodules/client/smithy-client/default-error-handler.js"(){init_exceptions();throwDefaultError=({output,parsedBody,exceptionCtor,errorCode})=>{let $metadata=deserializeMetadata(output),statusCode=$metadata.httpStatusCode?$metadata.httpStatusCode+"":void 0,response=new exceptionCtor({name:parsedBody?.code||parsedBody?.Code||errorCode||statusCode||"UnknownError",$fault:"\
|
|
78
79
|
client",$metadata});throw decorateServiceException(response,parsedBody)},withBaseException=ExceptionCtor=>({output,parsedBody,errorCode})=>{throwDefaultError({output,parsedBody,exceptionCtor:ExceptionCtor,errorCode})},deserializeMetadata=output=>({httpStatusCode:output.statusCode,requestId:output.headers["x-amzn-requestid"]??output.headers["x-amzn-request-id"]??output.headers["x-amz-request-id"],extendedRequestId:output.headers["x-amz-id-2"],cfId:output.headers["x-amz-cf-id"]})}});var loadConfigsForDefaultMode,init_defaults_mode=__esm({"node_modules/@smithy/core/dist-es/submodules/client/smithy-client/defaults-mode.js"(){loadConfigsForDefaultMode=mode=>{switch(mode){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}}}});var warningEmitted,emitWarningIfUnsupportedVersion2,init_emitWarningIfUnsupportedVersion2=__esm({"node_modules/@smithy/core/dist-es/submodules/client/smithy-client/emitWarningIfUnsupportedVersion.js"(){warningEmitted=!1,emitWarningIfUnsupportedVersion2=version=>{version&&!warningEmitted&&parseInt(version.substring(1,version.indexOf(".")))<16&&(warningEmitted=!0)}}});var import_types3,knownAlgorithms,getChecksumConfiguration,resolveChecksumRuntimeConfig,init_checksum=__esm({"node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js"(){init_transport();import_types3=__toESM(require_dist_cjs()),knownAlgorithms=Object.values(import_types3.AlgorithmId),getChecksumConfiguration=runtimeConfig=>{let checksumAlgorithms=[];for(let id in import_types3.AlgorithmId){if(!hasOwn(import_types3.AlgorithmId,id))continue;let algorithmId=import_types3.AlgorithmId[id];
|
|
79
80
|
runtimeConfig[algorithmId]!==void 0&&checksumAlgorithms.push({algorithmId:()=>algorithmId,checksumConstructor:()=>runtimeConfig[algorithmId]})}for(let[id,ChecksumCtor]of Object.entries(runtimeConfig.checksumAlgorithms??{}))checksumAlgorithms.push({algorithmId:()=>id,checksumConstructor:()=>ChecksumCtor});return{addChecksumAlgorithm(algo){runtimeConfig.checksumAlgorithms=runtimeConfig.checksumAlgorithms??{};let id=algo.algorithmId(),ctor=algo.checksumConstructor();knownAlgorithms.includes(id)?runtimeConfig.
|
|
80
81
|
checksumAlgorithms[id.toUpperCase()]=ctor:runtimeConfig.checksumAlgorithms[id]=ctor,checksumAlgorithms.push(algo)},checksumAlgorithms(){return checksumAlgorithms}}},resolveChecksumRuntimeConfig=clientConfig=>{let runtimeConfig={};return clientConfig.checksumAlgorithms().forEach(checksumAlgorithm=>{let id=checksumAlgorithm.algorithmId();knownAlgorithms.includes(id)&&(runtimeConfig[id]=checksumAlgorithm.checksumConstructor())}),runtimeConfig}}});var getRetryConfiguration,resolveRetryRuntimeConfig,init_retry=__esm({"node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/retry.js"(){getRetryConfiguration=runtimeConfig=>({setRetryStrategy(retryStrategy){runtimeConfig.retryStrategy=retryStrategy},retryStrategy(){return runtimeConfig.retryStrategy}}),resolveRetryRuntimeConfig=retryStrategyConfiguration=>{let runtimeConfig={};return runtimeConfig.retryStrategy=retryStrategyConfiguration.retryStrategy(),runtimeConfig}}});var getDefaultExtensionConfiguration,getDefaultClientConfiguration,resolveDefaultRuntimeConfig,init_defaultExtensionConfiguration=__esm({"node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.js"(){init_checksum();init_retry();getDefaultExtensionConfiguration=runtimeConfig=>Object.assign(getChecksumConfiguration(runtimeConfig),getRetryConfiguration(runtimeConfig)),getDefaultClientConfiguration=getDefaultExtensionConfiguration,resolveDefaultRuntimeConfig=
|
|
@@ -181,7 +182,7 @@ N");let endpoint=await getEndpointFromInstructions2(args.input,{getEndpointParam
|
|
|
181
182
|
Object.assign(httpAuthOption.signingProperties||{},{signing_region:authScheme.signingRegion,signingRegion:authScheme.signingRegion,signing_service:authScheme.signingName,signingName:authScheme.signingName,signingRegionSet:authScheme.signingRegionSet},authScheme.properties))}return next({...args})}}var init_endpointMiddleware=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js"(){init_transport();init_getEndpointFromInstructions()}});function bindGetEndpointPlugin(getEndpointFromConfig2){let endpointMiddleware2=bindEndpointMiddleware(getEndpointFromConfig2);return(config,instructions)=>({applyToStack:clientStack=>{clientStack.addRelativeTo(endpointMiddleware2({config,instructions}),endpointMiddlewareOptions)}})}var serializerMiddlewareOption2,endpointMiddlewareOptions,init_getEndpointPlugin=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/getEndpointPlugin.js"(){init_endpointMiddleware();serializerMiddlewareOption2=
|
|
182
183
|
{name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},endpointMiddlewareOptions={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:serializerMiddlewareOption2.name}}});function bindResolveEndpointConfig(getEndpointFromConfig2){return input=>{let tls3=input.tls??!0,{endpoint,useDualstackEndpoint,useFipsEndpoint}=input,customEndpointProvider=endpoint!=null?async()=>toEndpointV1(await normalizeProvider(endpoint)()):void 0,resolvedConfig=Object.assign(input,{endpoint:customEndpointProvider,tls:tls3,isCustomEndpoint:!!endpoint,useDualstackEndpoint:normalizeProvider(useDualstackEndpoint??!1),useFipsEndpoint:normalizeProvider(useFipsEndpoint??!1),ignoreConfiguredEndpointUrls:!!input.
|
|
183
184
|
ignoreConfiguredEndpointUrls}),configuredEndpointPromise;return resolvedConfig.serviceConfiguredEndpoint=async()=>(input.serviceId&&!configuredEndpointPromise&&(configuredEndpointPromise=getEndpointFromConfig2(input.serviceId)),configuredEndpointPromise),resolvedConfig}}var init_resolveEndpointConfig=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js"(){init_transport();init_toEndpointV12()}});var BinaryDecisionDiagram,init_BinaryDecisionDiagram=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/bdd/BinaryDecisionDiagram.js"(){BinaryDecisionDiagram=class _BinaryDecisionDiagram{nodes;root;conditions;results;constructor(bdd5,root5,conditions,results){this.nodes=bdd5,this.root=root5,this.conditions=conditions,this.results=results}static from(bdd5,root5,conditions,results){return new _BinaryDecisionDiagram(bdd5,root5,conditions,results)}}}});var EndpointCache,init_EndpointCache=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js"(){EndpointCache=class{capacity;data=new Map;parameters=[];constructor({size,params}){this.capacity=size??50,params&&(this.parameters=params)}get(endpointParams,resolver){let key=this.hash(endpointParams);if(key===!1)return resolver();if(!this.data.has(key)){if(this.data.size>this.capacity+10){let keys=this.data.keys(),i5=0;for(;;){let{value,done}=keys.next();
|
|
184
|
-
if(this.data.delete(value),done||++i5>10)break}}this.data.set(key,resolver())}return this.data.get(key)}size(){return this.data.size}hash(endpointParams){let buffer="",{parameters}=this;if(parameters.length===0)return!1;for(let param of parameters){let
|
|
185
|
+
if(this.data.delete(value),done||++i5>10)break}}this.data.set(key,resolver())}return this.data.get(key)}size(){return this.data.size}hash(endpointParams){let buffer="",{parameters}=this;if(parameters.length===0)return!1;for(let param of parameters){let raw=endpointParams[param],val=raw==null?"\0":String(raw);if(val.includes("|;"))return!1;buffer+=val+"|;"}return buffer}}}});var EndpointError,init_EndpointError=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/types/EndpointError.js"(){EndpointError=class extends Error{constructor(message){super(message),this.name="EndpointError"}}}});var init_types2=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/types/index.js"(){init_EndpointError()}});var debugId,init_debugId=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/debug/debugId.js"(){debugId="endpoints"}});function toDebugString(input){return typeof input!="object"||input==null?input:"ref"in input?`$${toDebugString(input.ref)}`:"fn"in input?`${input.fn}(${(input.argv||[]).map(toDebugString).join(", ")})`:JSON.stringify(input,null,2)}var init_toDebugString=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/debug/toDebugString.js"(){}});var init_debug=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/debug/index.js"(){init_debugId();init_toDebugString()}});var customEndpointFunctions,init_customEndpointFunctions=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/customEndpointFunctions.js"(){customEndpointFunctions={}}});var booleanEquals,init_booleanEquals=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/booleanEquals.js"(){booleanEquals=(value1,value2)=>value1===value2}});function coalesce(...args){for(let arg of args)if(arg!=null)return arg}var init_coalesce=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/coalesce.js"(){}});var getAttrPathList,init_getAttrPathList=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/getAttrPathList.js"(){init_types2();getAttrPathList=path=>{let parts=path.split("."),pathList=[];for(let part of parts){let squareBracketIndex=part.indexOf("[");if(squareBracketIndex!==-1){if(part.indexOf("]")!==part.length-1)throw new EndpointError(`Path: '${path}' does not end with ']'`);let arrayIndex=part.slice(squareBracketIndex+1,-1);if(Number.isNaN(parseInt(arrayIndex)))
|
|
185
186
|
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path}'`);squareBracketIndex!==0&&pathList.push(part.slice(0,squareBracketIndex)),pathList.push(arrayIndex)}else pathList.push(part)}return pathList}}});var getAttr,init_getAttr=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/getAttr.js"(){init_types2();init_getAttrPathList();getAttr=(value,path)=>getAttrPathList(path).reduce((acc,index)=>{if(typeof acc!="object")throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);if(Array.isArray(acc)){let i5=parseInt(index);return acc[i5<0?acc.length+i5:i5]}return acc[index]},value)}});var isSet,init_isSet=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/isSet.js"(){isSet=value=>value!=null}});function ite(condition,trueValue,falseValue){return condition?trueValue:falseValue}var init_ite=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/ite.js"(){}});var not,init_not=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/not.js"(){not=value=>!value}});var IP_V4_REGEX,isIpAddress,init_isIpAddress=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/isIpAddress.js"(){IP_V4_REGEX=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),isIpAddress=value=>IP_V4_REGEX.test(value)||value.startsWith("[")&&value.endsWith("]")}});var import_types12,DEFAULT_PORTS,parseURL,init_parseURL=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/parseURL.js"(){import_types12=__toESM(require_dist_cjs());init_isIpAddress();DEFAULT_PORTS={[import_types12.EndpointURLScheme.HTTP]:80,[import_types12.EndpointURLScheme.HTTPS]:443},parseURL=value=>{let whatwgURL=(()=>{try{if(value instanceof URL)return value;if(typeof value=="object"&&"hostname"in value){let{hostname:hostname2,port,protocol:protocol2="",path="",
|
|
186
187
|
query={}}=value,url=new URL(`${protocol2}//${hostname2}${port?`:${port}`:""}${path}`);return url.search=Object.entries(query).map(([k5,v])=>`${k5}=${v}`).join("&"),url}return new URL(value)}catch{return null}})();if(!whatwgURL)return console.error(`Unable to parse ${JSON.stringify(value)} as a whatwg URL.`),null;let urlString=whatwgURL.href,{host,hostname,pathname,protocol,search}=whatwgURL;if(search)return null;let scheme=protocol.slice(0,-1);if(!Object.values(import_types12.EndpointURLScheme).
|
|
187
188
|
includes(scheme))return null;let isIp=isIpAddress(hostname),inputContainsDefaultPort=urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`)||typeof value=="string"&&value.includes(`${host}:${DEFAULT_PORTS[scheme]}`),authority=`${host}${inputContainsDefaultPort?`:${DEFAULT_PORTS[scheme]}`:""}`;return{scheme,authority,path:pathname,normalizedPath:pathname.endsWith("/")?pathname:`${pathname}/`,isIp}}}});function split(value,delimiter,limit){if(limit===1)return[value];if(value==="")return[""];let parts=value.split(delimiter);return limit===0?parts:parts.slice(0,limit-1).concat(parts.slice(1).join(delimiter))}var init_split=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/split.js"(){}});var stringEquals,init_stringEquals=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/stringEquals.js"(){stringEquals=(value1,value2)=>value1===value2}});var substring,init_substring=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/substring.js"(){substring=(input,start,stop,reverse)=>input==null||start>=stop||input.length<stop||/[^\u0000-\u007f]/.test(input)?null:reverse?input.substring(input.length-stop,input.length-start):input.substring(start,stop)}});var uriEncode,init_uriEncode=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/uriEncode.js"(){uriEncode=value=>encodeURIComponent(value).replace(/[!*'()]/g,c5=>`%${c5.charCodeAt(0).toString(16).toUpperCase()}`)}});var init_lib=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/index.js"(){init_booleanEquals();init_coalesce();init_getAttr();init_isSet();init_transport();init_ite();init_not();init_parseURL();init_split();init_stringEquals();init_substring();init_uriEncode()}});var endpointFunctions,init_endpointFunctions=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/endpointFunctions.js"(){init_lib();endpointFunctions={booleanEquals,coalesce,getAttr,isSet,isValidHostLabel,ite,not,parseURL,split,stringEquals,substring,uriEncode}}});var evaluateTemplate,init_evaluateTemplate=__esm({"node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/utils/evaluateTemplate.js"(){init_lib();evaluateTemplate=(template,options)=>{let evaluatedTemplateArr=[],{referenceRecord,endpointParams}=options,currentIndex=0;for(;currentIndex<template.length;){let openingBraceIndex=template.indexOf("{",currentIndex);if(openingBraceIndex===-1){evaluatedTemplateArr.push(template.slice(currentIndex));break}evaluatedTemplateArr.push(template.
|
|
@@ -211,8 +212,8 @@ this.algorithmIdentifier=algorithmIdentifier,this.secret=secret,this.reset()}upd
|
|
|
211
212
|
this.destroy(e5);return}this.push(chunk)||this.source.pause()}};onSourceEnd=async()=>{if(!this.destroyed){try{let digest2=await this.checksum.digest(),received=this.base64Encoder(digest2);if(this.expectedChecksum!==received){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${received}" in response header "${this.checksumSourceLocation}".`));return}}catch(e5){this.destroy(e5);return}this.push(null)}};onSourceError=error2=>{this.destroy(error2)};onSourceClose=()=>{
|
|
212
213
|
!this.destroyed&&!this.source.readableEnded&&this.destroy(new Error("Connection lost or stream closed before all data was received."))};_read(_size){this.source.resume()}_destroy(error2,callback){this.source?.removeListener("data",this.onSourceData),this.source?.removeListener("end",this.onSourceEnd),this.source?.removeListener("error",this.onSourceError),this.source?.removeListener("close",this.onSourceClose),this.source?.destroy(),callback(error2)}}}});var isReadableStream,isBlob,init_stream_type_check=__esm({"node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-type-check.js"(){isReadableStream=stream2=>typeof ReadableStream=="function"&&(stream2?.constructor?.name===ReadableStream.name||stream2 instanceof ReadableStream),isBlob=blob=>typeof Blob=="function"&&(blob?.constructor?.name===Blob.name||blob instanceof Blob)}});var fromUtf82,init_fromUtf8_browser=__esm({"node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/fromUtf8.browser.js"(){fromUtf82=input=>new TextEncoder().encode(input)}});var chars,alphabetByEncoding,alphabetByValue,bitsPerLetter,bitsPerByte,maxLetterValue,init_constants_for_browser=__esm({"node_modules/@smithy/core/dist-es/submodules/serde/util-base64/constants-for-browser.js"(){chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",alphabetByEncoding=Object.entries(chars).reduce((acc,[i5,c5])=>(acc[c5]=Number(i5),acc),{}),alphabetByValue=chars.split(""),bitsPerLetter=6,bitsPerByte=8,maxLetterValue=63}});function toBase642(_input){let input;typeof _input=="string"?input=fromUtf82(_input):input=_input;let isArrayLike=typeof input=="object"&&typeof input.length=="number",isUint8Array=typeof input=="object"&&typeof input.byteOffset=="number"&&typeof input.byteLength=="number";if(!isArrayLike&&!isUint8Array)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let str="";for(let i5=0;i5<input.length;i5+=3){let bits=0,bitLength=0;for(let j5=i5,limit=Math.
|
|
213
214
|
min(i5+3,input.length);j5<limit;j5++)bits|=input[j5]<<(limit-j5-1)*bitsPerByte,bitLength+=bitsPerByte;let bitClusterCount=Math.ceil(bitLength/bitsPerLetter);bits<<=bitClusterCount*bitsPerLetter-bitLength;for(let k5=1;k5<=bitClusterCount;k5++){let offset=(bitClusterCount-k5)*bitsPerLetter;str+=alphabetByValue[(bits&maxLetterValue<<offset)>>offset]}str+="==".slice(0,4-bitClusterCount)}return str}var init_toBase64_browser=__esm({"node_modules/@smithy/core/dist-es/submodules/serde/util-base64/toBase\
|
|
214
|
-
64.browser.js"(){init_fromUtf8_browser();init_constants_for_browser()}});var ReadableStreamRef,ChecksumStream2,init_ChecksumStream_browser=__esm({"node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.browser.js"(){ReadableStreamRef=typeof ReadableStream=="function"?ReadableStream:function(){},ChecksumStream2=class extends ReadableStreamRef{}}});var createChecksumStream,init_createChecksumStream_browser=__esm({"node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/createChecksumStream.browser.js"(){init_toBase64_browser();init_stream_type_check();init_ChecksumStream_browser();createChecksumStream=({expectedChecksum,checksum,source,checksumSourceLocation,base64Encoder})=>{if(!isReadableStream(source))throw new Error(`@smithy/util-stream: unsupported source type ${source?.constructor?.name??source} in ChecksumStream.`);let
|
|
215
|
-
toBase642;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let transform=new TransformStream({start(){},async transform(chunk,controller){checksum.update(chunk),controller.enqueue(chunk)},async flush(controller){let digest2=await checksum.digest(),received=
|
|
215
|
+
64.browser.js"(){init_fromUtf8_browser();init_constants_for_browser()}});var ReadableStreamRef,ChecksumStream2,init_ChecksumStream_browser=__esm({"node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.browser.js"(){ReadableStreamRef=typeof ReadableStream=="function"?ReadableStream:function(){},ChecksumStream2=class extends ReadableStreamRef{}}});var createChecksumStream,init_createChecksumStream_browser=__esm({"node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/createChecksumStream.browser.js"(){init_toBase64_browser();init_stream_type_check();init_ChecksumStream_browser();createChecksumStream=({expectedChecksum,checksum,source,checksumSourceLocation,base64Encoder})=>{if(!isReadableStream(source))throw new Error(`@smithy/util-stream: unsupported source type ${source?.constructor?.name??source} in ChecksumStream.`);let encoder3=base64Encoder??
|
|
216
|
+
toBase642;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let transform=new TransformStream({start(){},async transform(chunk,controller){checksum.update(chunk),controller.enqueue(chunk)},async flush(controller){let digest2=await checksum.digest(),received=encoder3(digest2);if(expectedChecksum!==received){let error2=new Error(`Checksum mismatch: expected "${expectedChecksum}\
|
|
216
217
|
" but received "${received}" in response header "${checksumSourceLocation}".`);controller.error(error2)}else controller.terminate()}});source.pipeThrough(transform);let readable=transform.readable;return Object.setPrototypeOf(readable,ChecksumStream2.prototype),readable}}});function createChecksumStream2(init){return typeof ReadableStream=="function"&&isReadableStream(init.source)?createChecksumStream(init):new ChecksumStream(init)}var init_createChecksumStream=__esm({"node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/createChecksumStream.js"(){init_stream_type_check();init_ChecksumStream();init_createChecksumStream_browser()}});var ByteArrayCollector,init_ByteArrayCollector=__esm({"node_modules/@smithy/core/dist-es/submodules/serde/util-stream/ByteArrayCollector.js"(){ByteArrayCollector=class{allocByteArray;byteLength=0;byteArrays=[];constructor(allocByteArray){this.allocByteArray=allocByteArray}push(byteArray){this.byteArrays.push(byteArray),this.byteLength+=byteArray.byteLength}flush(){if(this.byteArrays.length===1){let bytes=this.byteArrays[0];return this.reset(),bytes}let aggregation=this.allocByteArray(this.byteLength),
|
|
217
218
|
cursor2=0;for(let i5=0;i5<this.byteArrays.length;++i5){let bytes=this.byteArrays[i5];aggregation.set(bytes,cursor2),cursor2+=bytes.byteLength}return this.reset(),aggregation}reset(){this.byteArrays=[],this.byteLength=0}}}});function createBufferedReadableStream(upstream,size,logger2){let reader=upstream.getReader(),streamBufferingLoggedWarning=!1,bytesSeen=0,buffers=["",new ByteArrayCollector(size2=>new Uint8Array(size2))],mode=-1,pull=async controller=>{let{value,done}=await reader.read(),chunk=value;if(done){if(mode!==-1){let remainder=flush(buffers,mode);sizeOf(remainder)>0&&controller.enqueue(remainder)}controller.close()}else{let chunkMode=modeOf(chunk,!1);if(mode!==chunkMode&&(mode>=0&&controller.enqueue(flush(
|
|
218
219
|
buffers,mode)),mode=chunkMode),mode===-1){controller.enqueue(chunk);return}let chunkSize=sizeOf(chunk);bytesSeen+=chunkSize;let bufferSize=sizeOf(buffers[mode]);if(chunkSize>=size&&bufferSize===0)controller.enqueue(chunk);else{let newSize=merge(buffers,mode,chunk);!streamBufferingLoggedWarning&&bytesSeen>size*2&&(streamBufferingLoggedWarning=!0,logger2?.warn(`@smithy/util-stream - stream chunk size ${chunkSize} is below threshold of ${size}, automatically buffering.`)),newSize>=size?controller.enqueue(
|
|
@@ -357,10 +358,77 @@ this.codecSerializer.setSerdeContext(serdeContext),this.stringSerializer.setSerd
|
|
|
357
358
|
kind)}}}});var getHttpHandlerExtensionConfiguration,resolveHttpHandlerRuntimeConfig,init_httpExtensionConfiguration=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js"(){getHttpHandlerExtensionConfiguration=runtimeConfig=>(runtimeConfig.logger&&runtimeConfig.logger.constructor?.name!=="NoOpLogger"&&runtimeConfig.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),runtimeConfig.logger),{setHttpHandler(handler){runtimeConfig.requestHandler=
|
|
358
359
|
handler},httpHandler(){return runtimeConfig.requestHandler},updateHttpClientConfig(key,value){runtimeConfig.requestHandler?.updateHttpClientConfig(key,value)},httpHandlerConfigs(){return runtimeConfig.requestHandler.httpHandlerConfigs()}}),resolveHttpHandlerRuntimeConfig=httpHandlerExtensionConfiguration=>({requestHandler:httpHandlerExtensionConfiguration.httpHandler()})}});function contentLengthMiddleware(bodyLengthChecker){return next=>async args=>{let request=args.request;if(HttpRequest.isInstance(request)){let{body,headers}=request;if(body&&Object.keys(headers).map(str=>str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER)===-1)try{let length=bodyLengthChecker(body);length!=null&&(request.headers={...request.headers,[CONTENT_LENGTH_HEADER]:String(length)})}catch{}}return next({...args,request})}}var CONTENT_LENGTH_HEADER,contentLengthMiddlewareOptions,getContentLengthPlugin,
|
|
359
360
|
init_contentLengthMiddleware=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js"(){init_transport();CONTENT_LENGTH_HEADER="content-length";contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},getContentLengthPlugin=options=>({applyToStack:clientStack=>{clientStack.add(contentLengthMiddleware(options.bodyLengthChecker),contentLengthMiddlewareOptions)}})}});var escapeUri,hexEncode,init_escape_uri=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri.js"(){escapeUri=uri=>encodeURIComponent(uri).replace(/[!'()*]/g,hexEncode),hexEncode=c5=>`%${c5.charCodeAt(0).toString(16).toUpperCase()}`}});var escapeUriPath,init_escape_uri_path=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri-path.js"(){init_escape_uri();escapeUriPath=uri=>uri.split("/").map(escapeUri).join("/")}});function buildQueryString(query){let parts=[];for(let key of Object.keys(query).sort()){let value=query[key];if(key=escapeUri(key),Array.isArray(value))for(let i5=0,iLen=value.length;i5<iLen;i5++)parts.push(`${key}=${escapeUri(value[i5])}`);else{let qsEntry=key;(value||typeof value=="string")&&(qsEntry+=`=${escapeUri(value)}`),parts.push(qsEntry)}}return parts.join("&")}var init_buildQueryString=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/querystring-builder/buildQueryString.j\
|
|
360
|
-
s"(){init_escape_uri()}});var
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
361
|
+
s"(){init_escape_uri()}});var SerdeContextConfig,init_ConfigurableSerdeContext=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js"(){SerdeContextConfig=class{serdeContext;setSerdeContext(serdeContext){this.serdeContext=serdeContext}}}});var UnionSerde,init_UnionSerde=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js"(){UnionSerde=class{from;to;keys;constructor(from,to){this.from=from,this.to=to;let keys=Object.keys(this.from),set=new Set(keys);set.delete("__type"),this.keys=set}mark(key){this.keys.delete(key)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let k5=this.keys.values().next().value,v=this.from[k5];this.to.$unknown=[k5,v]}}}}});function detectBufferParsing(){if(canParseBuffer===void 0)try{if(typeof Buffer!="function")canParseBuffer=!1;else{let result=JSON.parse(Buffer.from([123,125]));canParseBuffer=result!==null&&typeof result=="object"}}catch{canParseBuffer=!1}return canParseBuffer}var canParseBuffer,init_detectBufferParsing=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/json/detectBufferParsing.js"(){}});function jsonReviver(key,value,context){if(context?.source){let numericString=context.source;if(typeof value=="number")return value<=Number.MAX_SAFE_INTEGER&&value>=Number.MIN_SAFE_INTEGER?isRepresentable(numericString,value)?value:new NumericValue(numericString,"bigDecimal"):isFractionalBigNumeric(numericString)?new NumericValue(numericString,"bigDecimal"):/[eE]/.test(numericString)?expandExponentToBigInt(numericString):BigInt(numericString)}return value}function isFractionalBigNumeric(s2){let dotIndex=s2.
|
|
362
|
+
indexOf(".");if(dotIndex===-1)return!1;let eIndex=s2.search(/[eE]/);if(eIndex===-1)return!0;let fracDigits=eIndex-dotIndex-1;return parseInt(s2.slice(eIndex+1),10)<fracDigits}function isRepresentable(numericString,value){if(numericString===String(value)||Object.is(value,-0))return!0;if(/[eE]/.test(numericString))return expandToDecimal(numericString)===expandToDecimal(String(value));let normalized=numericString.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),canonical=String(value);return normalized===
|
|
363
|
+
canonical?!0:/[eE]/.test(canonical)?normalized===expandToDecimal(canonical):!1}function expandToDecimal(s2){let negative=s2.startsWith("-"),abs=negative?s2.slice(1):s2,eIndex=abs.search(/[eE]/),result;if(eIndex===-1)result=abs;else{let exp=parseInt(abs.slice(eIndex+1),10),mantissa=abs.slice(0,eIndex),dotIndex=mantissa.indexOf("."),digits,intLen;dotIndex===-1?(digits=mantissa,intLen=mantissa.length):(digits=mantissa.slice(0,dotIndex)+mantissa.slice(dotIndex+1),intLen=dotIndex),digits=digits.replace(
|
|
364
|
+
/0+$/,"")||"0";let newDotPos=intLen+exp;digits==="0"?result="0":newDotPos<=0?result="0."+"0".repeat(-newDotPos)+digits:newDotPos>=digits.length?result=digits+"0".repeat(newDotPos-digits.length):result=digits.slice(0,newDotPos)+"."+digits.slice(newDotPos)}return result.includes(".")&&(result=result.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(negative?"-":"")+result}function expandExponentToBigInt(s2){let eIndex=s2.search(/[eE]/),exp=parseInt(s2.slice(eIndex+1),10),negative=s2.startsWith("-"),
|
|
365
|
+
mantissa=s2.slice(negative?1:0,eIndex),dotIndex=mantissa.indexOf("."),digits,shift;if(dotIndex===-1)digits=mantissa,shift=exp;else{digits=mantissa.slice(0,dotIndex)+mantissa.slice(dotIndex+1);let fracDigits=mantissa.length-dotIndex-1;shift=exp-fracDigits}digits=digits.replace(/0+$/,"")||"0";let result=BigInt(digits)*10n**BigInt(shift+(mantissa.replace(".","").length-digits.length));return negative?-result:result}var init_jsonReviver=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/\
|
|
366
|
+
json/jsonReviver.js"(){init_serde()}});function needsReviver(schema){let ns=NormalizedSchema.of(schema),raw=ns.getSchema();if(Array.isArray(raw)&&ns.isStructSchema()){if(REVIVER_SYMBOL in raw)return raw[REVIVER_SYMBOL];let result=_check(ns,new Set);return raw[REVIVER_SYMBOL]=result,result}return _check(ns,new Set)}function _check(ns,seen){let raw=ns.getSchema();if(seen.has(raw))return!1;if(seen.add(raw),ns.isBigIntegerSchema()||ns.isBigDecimalSchema())return!0;if(ns.isStructSchema()){for(let[,memberSchema]of ns.structIterator())if(_check(
|
|
367
|
+
memberSchema,seen))return!0}else if(ns.isListSchema()||ns.isMapSchema()){if(_check(ns.getValueSchema(),seen))return!0}else if(ns.isDocumentSchema())return!0;return!1}var REVIVER_SYMBOL,init_needsReviver=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/json/needsReviver.js"(){init_schema();REVIVER_SYMBOL=Symbol.for("@aws-sdk/reviver")}});var collectBodyString,init_common=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/common.js"(){init_collect_stream_body();init_serde();collectBodyString=(streamBody,context)=>collectBody(streamBody,context).then(body=>(context?.utf8Encoder??toUtf8)(body))}});async function parseJsonBody(streamBody,context,schema){let parsingInput;if(detectBufferParsing()&&typeof streamBody?.[Symbol.asyncIterator]=="function"){let buffer=await collectBody(streamBody,context);typeof Buffer=="function"&&(Buffer.isBuffer(buffer)?parsingInput=buffer:parsingInput=Buffer.from(buffer.buffer,buffer.byteOffset,buffer.byteLength))}if(parsingInput||(parsingInput=await collectBodyString(streamBody,context)),parsingInput.length===0)return{};let reviver=schema&&needsReviver(schema)?
|
|
368
|
+
jsonReviver:void 0;try{return JSON.parse(parsingInput,reviver)}catch(e5){throw e5?.name==="SyntaxError"&&Object.defineProperty(e5,"$responseBodyText",{value:typeof parsingInput=="string"?parsingInput:parsingInput.toString("utf8")}),e5}}var parseJsonErrorBody,findKey,sanitizeErrorCode,loadRestJsonErrorCode,loadJsonRpcErrorCode,loadSmithyRpcV2JsonErrorCode,loadErrorCode,init_parseJsonBody=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/json/parseJsonBody.js"(){init_collect_stream_body();
|
|
369
|
+
init_common();init_detectBufferParsing();init_jsonReviver();init_needsReviver();parseJsonErrorBody=async(errorBody,context)=>{let value=await parseJsonBody(errorBody,context);return value.message=value.message??value.Message,value},findKey=(object,key)=>Object.keys(object).find(k5=>k5.toLowerCase()===key.toLowerCase()),sanitizeErrorCode=rawValue=>{let cleanValue=rawValue;return typeof cleanValue=="number"&&(cleanValue=cleanValue.toString()),cleanValue.indexOf(",")>=0&&(cleanValue=cleanValue.split(
|
|
370
|
+
",")[0]),cleanValue.indexOf(":")>=0&&(cleanValue=cleanValue.split(":")[0]),cleanValue.indexOf("#")>=0&&(cleanValue=cleanValue.split("#")[1]),cleanValue},loadRestJsonErrorCode=(output,data)=>loadErrorCode(output,data,["header","code","type"]),loadJsonRpcErrorCode=(output,data,queryCompat=!1)=>loadErrorCode(output,data,queryCompat?["code","header","type"]:["type","code","header"]),loadSmithyRpcV2JsonErrorCode=(output,data)=>{if(data?.__type!==void 0){let cleanValue=data.__type;return typeof cleanValue==
|
|
371
|
+
"number"&&(cleanValue=cleanValue.toString()),cleanValue.indexOf(",")>=0&&(cleanValue=cleanValue.split(",")[0]),cleanValue.indexOf(":")>=0&&(cleanValue=cleanValue.split(":")[0]),cleanValue}},loadErrorCode=({headers},data,order)=>{for(;order.length>0;)switch(order.shift()){case"header":let headerKey=findKey(headers??{},"x-amzn-errortype");if(headerKey!==void 0)return sanitizeErrorCode(headers[headerKey]);break;case"code":let codeKey=findKey(data??{},"code");if(codeKey&&data[codeKey]!==void 0)return sanitizeErrorCode(
|
|
372
|
+
data[codeKey]);break;case"type":if(data?.__type!==void 0)return sanitizeErrorCode(data.__type);break}}}});function writeKey(obj){Object.defineProperty(obj,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var init_writeKey=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/writeKey.js"(){}});var JsonShapeDeserializer2,init_JsonShapeDeserializer2=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js"(){init_determineTimestampFormat();init_schema();init_serde();init_ConfigurableSerdeContext();init_UnionSerde();init_detectBufferParsing();init_jsonReviver();init_needsReviver();init_parseJsonBody();init_writeKey();init_transport();JsonShapeDeserializer2=class extends SerdeContextConfig{settings;constructor(settings){super(),this.settings=settings}async read(schema,data){
|
|
373
|
+
let reviver=needsReviver(schema)?jsonReviver:void 0,parsed;if(typeof data=="string"){if(data.length===0)return{};parsed=JSON.parse(data,reviver)}else if(data instanceof Uint8Array&&detectBufferParsing()){if(data.byteLength===0)return{};let buf2=Buffer.isBuffer(data)?data:Buffer.from(data.buffer,data.byteOffset,data.byteLength);parsed=JSON.parse(buf2,reviver)}else parsed=await parseJsonBody(data,this.serdeContext,schema);return this._read(schema,parsed)}readObject(schema,data){return this._read(schema,
|
|
374
|
+
data)}_read(schema,value){let isObject=value!==null&&typeof value=="object",ns=NormalizedSchema.of(schema);if(isObject){if(ns.isStructSchema())return this._readStruct(ns,value);if(Array.isArray(value)&&ns.isListSchema()){let listMember=ns.getValueSchema();if(this.needsTransform(listMember))for(let i5=0;i5<value.length;++i5)value[i5]=this._read(listMember,value[i5]);return value}if(ns.isMapSchema()){let mapMember=ns.getValueSchema(),map3=value;if(this.needsTransform(mapMember))for(let k5 in map3)
|
|
375
|
+
hasOwn(map3,k5)&&(k5==="__proto__"&&writeKey(map3),map3[k5]=this._read(mapMember,map3[k5]));return map3}}if(ns.isBlobSchema()&&typeof value=="string")return fromBase64(value);let mediaType=ns.getMergedTraits().mediaType;if(ns.isStringSchema()&&typeof value=="string"&&mediaType)return mediaType==="application/json"||mediaType.endsWith("+json")?LazyJsonString.from(value):value;if(ns.isTimestampSchema()&&value!=null)switch(determineTimestampFormat(ns,this.settings)){case 5:return parseRfc3339DateTimeWithOffset(
|
|
376
|
+
value);case 6:return parseRfc7231DateTime(value);case 7:return parseEpochTimestamp(value);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",value),new Date(value)}if(ns.isBigIntegerSchema()&&(typeof value=="number"||typeof value=="string"))return BigInt(value);if(ns.isBigDecimalSchema()&&value!=null){if(value instanceof NumericValue)return value;let untyped=value;return untyped.type==="bigDecimal"&&"string"in untyped?new NumericValue(untyped.string,untyped.
|
|
377
|
+
type):new NumericValue(String(value),"bigDecimal")}if(ns.isNumericSchema()&&typeof value=="string"){switch(value){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return value}if(ns.isDocumentSchema()&&isObject)if(Array.isArray(value))for(let i5=0;i5<value.length;++i5){let v=value[i5];v instanceof NumericValue||(value[i5]=this._read(ns,v))}else{let doc=value;for(let k5 in doc){if(!hasOwn(doc,k5))continue;k5==="__proto__"&&writeKey(doc);let v=doc[k5];v instanceof NumericValue||
|
|
378
|
+
(doc[k5]=this._read(ns,v))}}return value}_readStruct(ns,record){let union=ns.isUnionSchema(),out={},nameMap,hasType=typeof record.__type=="string",{jsonName}=this.settings;jsonName&&hasType&&(nameMap={});let unionSerde;union&&(unionSerde=new UnionSerde(record,out));for(let[memberName,memberSchema]of ns.structIterator()){let fromKey=memberName;jsonName&&(fromKey=memberSchema.getMergedTraits().jsonName??fromKey,hasType&&(nameMap[fromKey]=memberName)),union&&unionSerde.mark(fromKey),record[fromKey]!=
|
|
379
|
+
null&&(out[memberName]=this._read(memberSchema,record[fromKey]))}if(union)unionSerde.writeUnknown();else if(hasType)for(let k5 in record){if(!hasOwn(record,k5))continue;let v=record[k5],t=jsonName?nameMap[k5]??k5:k5;t in out||(out[t]=v)}return out}needsTransform(ns){return!!(ns.isBlobSchema()||ns.isTimestampSchema()||ns.isBigIntegerSchema()||ns.isBigDecimalSchema()||ns.isNumericSchema()||ns.isDocumentSchema()||ns.isStructSchema()||ns.isListSchema()||ns.isMapSchema()||ns.isStringSchema()&&ns.getMergedTraits().
|
|
380
|
+
mediaType)}}}});var JsonBytesStringAdapter,warned,init_JsonBytesStringAdapter=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js"(){init_serde();JsonBytesStringAdapter=class _JsonBytesStringAdapter extends Uint8Array{string=null;static allocUnsafe(bytes){if(typeof Buffer=="function"){let buffer=Buffer.allocUnsafe(bytes);return new _JsonBytesStringAdapter(buffer.buffer,buffer.byteOffset,buffer.byteLength)}return new _JsonBytesStringAdapter(bytes)}toString(){return this.
|
|
381
|
+
s()}valueOf(){return this.s()}includes(searchString,position){return typeof searchString=="string"?this.s().includes(searchString,position):Uint8Array.prototype.includes.call(this,searchString,position)}indexOf(searchString,position){return typeof searchString=="string"?this.s().indexOf(searchString,position):Uint8Array.prototype.indexOf.call(this,searchString,position)}lastIndexOf(searchString,position){if(typeof searchString=="string")return this.s().lastIndexOf(searchString,position);let fn=Uint8Array.
|
|
382
|
+
prototype.lastIndexOf;return position!==void 0?fn.call(this,searchString,position):fn.call(this,searchString)}startsWith(searchString,position){return this.s().startsWith(searchString,position)}endsWith(searchString,endPosition){return this.s().endsWith(searchString,endPosition)}match(regexp){return this.s().match(regexp)}replace(searchValue,replaceValue){return this.s().replace(searchValue,replaceValue)}search(regexp){return this.s().search(regexp)}split(separator,limit){return this.s().split(separator,
|
|
383
|
+
limit)}substring(start,end2){return this.s().substring(start,end2)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(pos2){return this.s().charAt(pos2)}charCodeAt(index){return this.s().charCodeAt(index)}padStart(maxLength,fillString){return this.s().padStart(maxLength,fillString)}padEnd(maxLength,fillString){return this.s().padEnd(maxLength,fillString)}repeat(count){return this.s().repeat(count)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){
|
|
384
|
+
return this.s().toLowerCase()}s(){if(this.string==null){let n3=Date.now();n3>warned+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),warned=n3),this.string=toUtf8(this)}return this.string}},warned=0}});function alloc(size){return JsonBytesStringAdapter.allocUnsafe(size)}var encoder,OPEN_BRACE,CLOSE_BRACE,OPEN_BRACKET,CLOSE_BRACKET,QUOTE,COLON,COMMA,BACKSLASH,TRUE,FALSE,NULL,ESCAPE_TABLE,INITIAL_BUFFER_SIZE,JsonShapeSerializer2,init_JsonShapeSerializer2=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js"(){init_determineTimestampFormat();init_schema();init_serde();init_ConfigurableSerdeContext();init_transport();init_JsonBytesStringAdapter();encoder=
|
|
385
|
+
new TextEncoder,OPEN_BRACE=123,CLOSE_BRACE=125,OPEN_BRACKET=91,CLOSE_BRACKET=93,QUOTE=34,COLON=58,COMMA=44,BACKSLASH=92,TRUE=new Uint8Array([116,114,117,101]),FALSE=new Uint8Array([102,97,108,115,101]),NULL=new Uint8Array([110,117,108,108]),ESCAPE_TABLE=new Array(128).fill(null);ESCAPE_TABLE[8]="b";ESCAPE_TABLE[9]="t";ESCAPE_TABLE[10]="n";ESCAPE_TABLE[12]="f";ESCAPE_TABLE[13]="r";ESCAPE_TABLE[34]='"';ESCAPE_TABLE[92]="\\";for(let i5=0;i5<32;i5++)ESCAPE_TABLE[i5]===null&&(ESCAPE_TABLE[i5]="u00"+i5.
|
|
386
|
+
toString(16).padStart(2,"0"));INITIAL_BUFFER_SIZE=2048;JsonShapeSerializer2=class _JsonShapeSerializer2 extends SerdeContextConfig{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(settings){super(),this.settings=settings,this.json=alloc(INITIAL_BUFFER_SIZE)}write(schema,value){this.i=0,this.rawValue=value,this.rootSchema=NormalizedSchema.of(schema),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,value,
|
|
387
|
+
void 0)}writeDiscriminatedDocument(schema,value){this.i=0,this.rootSchema=NormalizedSchema.of(schema);let ns=this.rootSchema;if(ns.isStructSchema()&&value!=null&&typeof value=="object"){this.writeValue(ns,value,void 0);let prefix=`"__type":"${ns.getName(!0)??"Unknown"}",`,z=prefix.length;this.ensure(z),this.json.copyWithin(1+z,1,this.i),encoder.encodeInto(prefix,this.json.subarray(1)),this.i+=z}else this.writeValue(ns,value,void 0)}flush(){this.rootSchema=void 0;let finalPosition=this.i;this.i=0;
|
|
388
|
+
let raw=this.rawValue;if(this.rawValue=void 0,finalPosition===0)return raw;let result=this.json.subarray(0,finalPosition);return this.json=alloc(INITIAL_BUFFER_SIZE),result}ensure(byteCount){let{i:i5,json}=this;if(i5+byteCount>json.length){let newSize=json.length*2;for(;newSize<i5+byteCount;)newSize*=2;let next=alloc(newSize);next.set(this.json),this.json=next}}writeAscii(s2){let z=s2.length;this.ensure(z);let{i:i5,json}=this;for(let j5=0;j5<z;++j5)json[i5]=s2.charCodeAt(j5),i5+=1;this.i=i5}writeAsciiQuoted(s2){
|
|
389
|
+
let z=s2.length;this.ensure(z+4);let{json,i:i5}=this;json[i5++]=QUOTE;for(let j5=0;j5<z;++j5)json[i5++]=s2.charCodeAt(j5);json[i5++]=QUOTE,this.i=i5}writeJsonString(s2){this.ensure(s2.length*3+2),this.json[this.i++]=QUOTE;let z=s2.length;for(let j5=0;j5<z;++j5){let c5=s2.charCodeAt(j5);if(c5>34&&c5<92)this.json[this.i++]=c5;else if(c5<128){let esc=ESCAPE_TABLE[c5];if(esc!==null){this.ensure(esc.length+1),this.json[this.i++]=BACKSLASH;for(let k5=0;k5<esc.length;k5++)this.json[this.i++]=esc.charCodeAt(
|
|
390
|
+
k5)}else this.json[this.i++]=c5}else if(c5>=55296&&c5<=56319){let next=j5+1<z?s2.charCodeAt(j5+1):0;if(next>=56320&&next<=57343){this.ensure(4);let{written}=encoder.encodeInto(s2.substring(j5,j5+2),this.json.subarray(this.i));this.i+=written,++j5}else this.ensure(6),this.writeUnicodeEscape(c5)}else if(c5>=56320&&c5<=57343)this.ensure(6),this.writeUnicodeEscape(c5);else{let{i:i5,json}=this;c5<2048?(json[i5++]=192|c5>>6,json[i5++]=128|c5&63):(json[i5++]=224|c5>>12,json[i5++]=128|c5>>6&63,json[i5++]=
|
|
391
|
+
128|c5&63),this.i=i5}}this.json[this.i++]=QUOTE}writeUnicodeEscape(code){let{json,i:i5}=this;json[i5++]=BACKSLASH,json[i5++]=117;let hex=code.toString(16).padStart(4,"0");for(let j5=0;j5<4;++j5)json[i5++]=hex.charCodeAt(j5);this.i=i5}static B64=(()=>{let chars2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",table=new Uint8Array(64);for(let i5=0;i5<64;++i5)table[i5]=chars2.charCodeAt(i5);return table})();writeBase64(data){let b64Len=Math.ceil(data.length/3)*4;this.ensure(b64Len+
|
|
392
|
+
2);let json=this.json,B64=_JsonShapeSerializer2.B64,i5=this.i;json[i5++]=QUOTE;let len=data.length,remainder=len%3,mainLen=len-remainder;for(let j5=0;j5<mainLen;j5+=3){let a5=data[j5],b5=data[j5+1],c5=data[j5+2];json[i5++]=B64[a5>>2],json[i5++]=B64[(a5&3)<<4|b5>>4],json[i5++]=B64[(b5&15)<<2|c5>>6],json[i5++]=B64[c5&63]}if(remainder===2){let a5=data[mainLen],b5=data[mainLen+1];json[i5++]=B64[a5>>2],json[i5++]=B64[(a5&3)<<4|b5>>4],json[i5++]=B64[(b5&15)<<2],json[i5++]=61}else if(remainder===1){let a5=data[mainLen];
|
|
393
|
+
json[i5++]=B64[a5>>2],json[i5++]=B64[(a5&3)<<4],json[i5++]=61,json[i5++]=61}json[i5++]=QUOTE,this.i=i5}writeValue(schema,value,container){if(value==null){if(container?.isStructSchema()){if(value===void 0&&NormalizedSchema.of(schema).isIdempotencyToken()){this.writeAsciiQuoted(generateIdempotencyToken());return}return}this.ensure(4),this.json.set(NULL,this.i),this.i+=4;return}let ns=NormalizedSchema.of(schema),isObject=typeof value=="object";if(ns.isStringSchema()){let mediaType=ns.getMergedTraits().
|
|
394
|
+
mediaType;if(mediaType&&(mediaType==="application/json"||mediaType.endsWith("+json"))){this.writeJsonString(LazyJsonString.from(value).toString());return}}if(this.settings.bigNumberAsString&&value!=null&&(ns.isBigIntegerSchema()||ns.isBigDecimalSchema())){let asString=value instanceof NumericValue?value.string:String(value);this.writeAsciiQuoted(asString);return}if(isObject){if(ns.isStructSchema()){this.writeStruct(ns,value);return}if(Array.isArray(value)&&(ns.isListSchema()||ns.isDocumentSchema())){
|
|
395
|
+
this.writeList(ns,value,ns.isDocumentSchema());return}if(ns.isMapSchema()){this.writeMap(ns,value,!1);return}if(value instanceof Uint8Array&&(ns.isBlobSchema()||ns.isDocumentSchema())){this.writeBase64(value);return}if(value instanceof Date&&(ns.isTimestampSchema()||ns.isDocumentSchema())){this.writeTimestamp(ns,value);return}if(value instanceof NumericValue){this.writeAscii(value.string);return}if(ns.isDocumentSchema()){Array.isArray(value)?this.writeList(ns,value,!0):this.writeMap(ns,value,!0);
|
|
396
|
+
return}let json=JSON.stringify(value);this.writeAscii(json);return}if(typeof value=="string"){if(ns.isBlobSchema()){let b64=(this.serdeContext?.base64Encoder??toBase64)(value);this.writeAsciiQuoted(b64);return}this.writeJsonString(value);return}if(typeof value=="number"){if(Math.abs(value)===1/0||Number.isNaN(value)){this.writeAsciiQuoted(String(value));return}let numStr=String(value);this.writeAscii(numStr);return}if(typeof value=="boolean"){this.ensure(5);let{i:i5,json}=this;value?(json.set(TRUE,
|
|
397
|
+
i5),i5+=4):(json.set(FALSE,i5),i5+=5),this.i=i5;return}if(typeof value=="bigint"){this.writeAscii(value.toString());return}this.writeAscii(String(value))}writeStruct(ns,value){this.ensure(2),this.json[this.i++]=OPEN_BRACE;let wroteAny=!1,hasType=typeof value.__type=="string",writtenKeys;hasType&&(writtenKeys=new Set);for(let[memberName,memberSchema]of ns.structIterator()){let item=value[memberName];if(item==null&&!memberSchema.isIdempotencyToken())continue;wroteAny&&(this.ensure(1),this.json[this.
|
|
398
|
+
i++]=COMMA),wroteAny=!0;let targetKey=this.settings.jsonName?memberSchema.getMergedTraits().jsonName??memberName:memberName;writtenKeys&&(writtenKeys.add(memberName),writtenKeys.add(targetKey)),this.writeAsciiQuoted(targetKey),this.json[this.i++]=COLON,this.writeValue(memberSchema,item,ns)}if(!wroteAny&&ns.isUnionSchema()){let{$unknown}=value;if(Array.isArray($unknown)){let[k5,v]=$unknown;this.writeAsciiQuoted(k5),this.ensure(1),this.json[this.i++]=COLON,this.writeValue(15,v,ns)}}else if(hasType)
|
|
399
|
+
for(let k5 in value){if(writtenKeys.has(k5))continue;writtenKeys.add(k5);let v=value[k5];wroteAny&&(this.ensure(1),this.json[this.i++]=COMMA),wroteAny=!0,this.writeAsciiQuoted(k5),this.ensure(1),this.json[this.i++]=COLON,this.writeValue(15,v,void 0)}this.ensure(1),this.json[this.i++]=CLOSE_BRACE}writeList(ns,value,isDocument){let sparse=!!ns.getMergedTraits().sparse,valueSchema=ns.getValueSchema();if(!isDocument&&(valueSchema.isStringSchema()||valueSchema.isNumericSchema()||valueSchema.isBooleanSchema())){
|
|
400
|
+
let hasSpecials=!1;for(let i5=0;i5<value.length;++i5){let v=value[i5];if(Number.isNaN(v)||v===1/0||v===-1/0||v==null&&!sparse){hasSpecials=!0;break}}let json;if(!hasSpecials)json=JSON.stringify(value);else{let out=[];for(let i5=0;i5<value.length;++i5){let v=value[i5];v==null&&!sparse||(Number.isNaN(v)||v===1/0||v===-1/0?out.push(String(v)):out.push(v))}json=JSON.stringify(out)}this.ensure(json.length*3),this.i+=encoder.encodeInto(json,this.json.subarray(this.i)).written;return}this.ensure(2),this.
|
|
401
|
+
json[this.i++]=OPEN_BRACKET;let wroteFirstItem=!1;for(let i5=0;i5<value.length;++i5){let item=value[i5];(isDocument?item===void 0:item==null&&!sparse)||(wroteFirstItem&&(this.ensure(1),this.json[this.i++]=COMMA),this.writeValue(valueSchema,item,void 0),wroteFirstItem=!0)}this.ensure(1),this.json[this.i++]=CLOSE_BRACKET}writeMap(ns,value,isDocument){let sparse=!!ns.getMergedTraits().sparse,valueSchema=ns.getValueSchema();if(!isDocument&&(valueSchema.isStringSchema()||valueSchema.isNumericSchema()||
|
|
402
|
+
valueSchema.isBooleanSchema())){let modifications;for(let k5 in value){if(!hasOwn(value,k5))continue;let v=value[k5];Number.isNaN(v)||v===1/0||v===-1/0?((modifications??={})[k5]=v,value[k5]=String(v)):v===null&&!sparse&&((modifications??={})[k5]=null,value[k5]=void 0)}let json=JSON.stringify(value);modifications&&Object.assign(value,modifications),this.ensure(json.length*3),this.i+=encoder.encodeInto(json,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=OPEN_BRACE;let first=!0;
|
|
403
|
+
for(let k5 in value){if(!hasOwn(value,k5))continue;let v=value[k5];(isDocument?v===void 0:v==null&&!sparse)||(first||(this.ensure(1),this.json[this.i++]=COMMA),first=!1,this.writeJsonString(k5),this.ensure(1),this.json[this.i++]=COLON,this.writeValue(valueSchema,v,void 0))}this.ensure(1),this.json[this.i++]=CLOSE_BRACE}writeTimestamp(ns,value){switch(determineTimestampFormat(ns,this.settings)){case 5:{let iso=value.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(iso);return}case 6:{this.
|
|
404
|
+
writeAsciiQuoted(dateToUtcString(value));return}case 7:{let epochSecs=String(value.getTime()/1e3);this.writeAscii(epochSecs);return}default:{let epochSecs=String(value.getTime()/1e3);this.writeAscii(epochSecs);return}}}}}});var JsonCodec2,init_JsonCodec2=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js"(){init_ConfigurableSerdeContext();init_JsonShapeDeserializer2();init_JsonShapeSerializer2();JsonCodec2=class extends SerdeContextConfig{settings;constructor(settings){super(),this.settings=settings}createSerializer(){let serializer=new JsonShapeSerializer2(this.settings);return serializer.setSerdeContext(this.serdeContext),serializer}createDeserializer(){let deserializer=new JsonShapeDeserializer2(
|
|
405
|
+
this.settings);return deserializer.setSerdeContext(this.serdeContext),deserializer}}}});var SmithyRpcV2JsonProtocol,init_SmithyRpcV2JsonProtocol=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js"(){init_RpcProtocol();init_schema();init_transport();init_JsonCodec2();init_parseJsonBody();SmithyRpcV2JsonProtocol=class extends RpcProtocol{codec=new JsonCodec2({timestampFormat:{useTrait:!1,default:7},jsonName:!1,bigNumberAsString:!0});serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace,
|
|
406
|
+
errorTypeRegistries:errorTypeRegistries5}){super({defaultNamespace,errorTypeRegistries:errorTypeRegistries5})}getShapeId(){return"smithy.protocols#rpcv2Json"}getPayloadCodec(){return this.codec}async serializeRequest(operationSchema,input,context){let request=await super.serializeRequest(operationSchema,input,context);Object.assign(request.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-json",accept:this.getDefaultContentType()}),deref(operationSchema.input)==="uni\
|
|
407
|
+
t"?(delete request.body,delete request.headers["content-type"]):request.body||(request.body="{}");let{service,operation:operation2}=getSmithyContext(context),path=`/service/${service}/operation/${operation2}`;return request.path.endsWith("/")?request.path+=path.slice(1):request.path+=path,request}async deserializeResponse(operationSchema,context,response){return super.deserializeResponse(operationSchema,context,response)}async handleError(operationSchema,context,response,dataObject,metadata){let errorName=loadSmithyRpcV2JsonErrorCode(
|
|
408
|
+
response,dataObject)??"Unknown",errorMetadata={$metadata:metadata,$fault:response.statusCode<=500?"client":"server"},namespace=this.options.defaultNamespace;errorName.includes("#")&&([namespace]=errorName.split("#"));let registry=this.compositeErrorRegistry,nsRegistry=TypeRegistry.for(namespace);registry.copyFrom(nsRegistry);let errorSchema;try{errorSchema=registry.getSchema(errorName)}catch{dataObject.Message&&(dataObject.message=dataObject.Message);let syntheticRegistry=TypeRegistry.for("smith\
|
|
409
|
+
y.ts.sdk.synthetic."+namespace);registry.copyFrom(syntheticRegistry);let baseExceptionSchema=registry.getBaseException();if(baseExceptionSchema){let ErrorCtor2=registry.getErrorCtor(baseExceptionSchema);throw Object.assign(new ErrorCtor2({name:errorName}),errorMetadata,dataObject)}throw Object.assign(new Error(errorName),errorMetadata,dataObject)}let ns=NormalizedSchema.of(errorSchema),ErrorCtor=registry.getErrorCtor(errorSchema),message=dataObject.message??dataObject.Message??"Unknown",exception=new ErrorCtor(
|
|
410
|
+
{}),output={},errorDeserializer=this.codec.createDeserializer();for(let[name,member2]of ns.structIterator())dataObject[name]!=null&&(output[name]=errorDeserializer.readObject(member2,dataObject[name]));throw Object.assign(exception,errorMetadata,{$fault:ns.getMergedTraits().error,message},output)}getDefaultContentType(){return"application/json"}}}});var JsonShapeDeserializer,init_JsonShapeDeserializer=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js"(){init_determineTimestampFormat();init_schema();init_serde();init_serde();init_transport();init_ConfigurableSerdeContext();init_UnionSerde();init_jsonReviver();init_needsReviver();init_parseJsonBody();init_writeKey();JsonShapeDeserializer=class extends SerdeContextConfig{settings;constructor(settings){super(),this.settings=settings}async read(schema,data){
|
|
411
|
+
let reviver=needsReviver(schema)?jsonReviver:void 0;return this._read(schema,typeof data=="string"?JSON.parse(data,reviver):await parseJsonBody(data,this.serdeContext,schema))}readObject(schema,data){return this._read(schema,data)}_read(schema,value){let isObject=value!==null&&typeof value=="object",ns=NormalizedSchema.of(schema);if(isObject){if(ns.isStructSchema()){let record=value,union=ns.isUnionSchema(),out={},nameMap,{jsonName}=this.settings;jsonName&&(nameMap={});let unionSerde;union&&(unionSerde=
|
|
412
|
+
new UnionSerde(record,out));for(let[memberName,memberSchema]of ns.structIterator()){let fromKey=memberName;jsonName&&(fromKey=memberSchema.getMergedTraits().jsonName??fromKey,nameMap[fromKey]=memberName),union&&unionSerde.mark(fromKey),record[fromKey]!=null&&(out[memberName]=this._read(memberSchema,record[fromKey]))}if(union)unionSerde.writeUnknown();else if(typeof record.__type=="string")for(let k5 in record){if(!hasOwn(record,k5))continue;let v=record[k5],t=jsonName?nameMap[k5]??k5:k5;t in out||
|
|
413
|
+
(out[t]=v)}return out}if(Array.isArray(value)&&ns.isListSchema()){let listMember=ns.getValueSchema(),out=[];for(let item of value)out.push(this._read(listMember,item));return out}if(ns.isMapSchema()){let mapMember=ns.getValueSchema(),out={};for(let _k in value)hasOwn(value,_k)&&(_k==="__proto__"&&writeKey(out),out[_k]=this._read(mapMember,value[_k]));return out}}if(ns.isBlobSchema()&&typeof value=="string")return fromBase64(value);let mediaType=ns.getMergedTraits().mediaType;if(ns.isStringSchema()&&
|
|
414
|
+
typeof value=="string"&&mediaType)return mediaType==="application/json"||mediaType.endsWith("+json")?LazyJsonString.from(value):value;if(ns.isTimestampSchema()&&value!=null)switch(determineTimestampFormat(ns,this.settings)){case 5:return parseRfc3339DateTimeWithOffset(value);case 6:return parseRfc7231DateTime(value);case 7:return parseEpochTimestamp(value);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",value),new Date(value)}if(ns.isBigIntegerSchema()&&
|
|
415
|
+
(typeof value=="number"||typeof value=="string"))return BigInt(value);if(ns.isBigDecimalSchema()&&value!=null){if(value instanceof NumericValue)return value;let untyped=value;return untyped.type==="bigDecimal"&&"string"in untyped?new NumericValue(untyped.string,untyped.type):new NumericValue(String(value),"bigDecimal")}if(ns.isNumericSchema()&&typeof value=="string"){switch(value){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return value}if(ns.isDocumentSchema())if(isObject){
|
|
416
|
+
let out=Array.isArray(value)?[]:{};for(let k5 in value){if(!hasOwn(value,k5))continue;k5==="__proto__"&&writeKey(out);let v=value[k5];v instanceof NumericValue?out[k5]=v:out[k5]=this._read(ns,v)}return out}else return structuredClone(value);return value}}}});var NUMERIC_CONTROL_CHAR,JsonReplacer,init_jsonReplacer=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/json/jsonReplacer.js"(){init_serde();NUMERIC_CONTROL_CHAR="\u039D",JsonReplacer=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(key,value)=>{if(value instanceof NumericValue){
|
|
417
|
+
let v=`${NUMERIC_CONTROL_CHAR+"nv"+this.counter++}_`+value.string;return this.values.set(`"${v}"`,value.string),v}if(typeof value=="bigint"){let s2=value.toString(),v=`${NUMERIC_CONTROL_CHAR+"b"+this.counter++}_`+s2;return this.values.set(`"${v}"`,s2),v}return value}}replaceInJson(json){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)
|
|
418
|
+
return json;for(let[key,value]of this.values)json=json.replace(key,value);return json}}}});var JsonShapeSerializer,init_JsonShapeSerializer=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js"(){init_determineTimestampFormat();init_schema();init_serde();init_ConfigurableSerdeContext();init_jsonReplacer();init_writeKey();init_transport();JsonShapeSerializer=class extends SerdeContextConfig{settings;buffer;useReplacer=!1;rootSchema;constructor(settings){super(),this.settings=settings}write(schema,value){this.rootSchema=NormalizedSchema.of(
|
|
419
|
+
schema),this.buffer=this._write(this.rootSchema,value)}flush(){let{rootSchema,useReplacer}=this;if(this.rootSchema=void 0,this.useReplacer=!1,rootSchema?.isStructSchema()||rootSchema?.isDocumentSchema()){if(!useReplacer)return JSON.stringify(this.buffer);let replacer=new JsonReplacer;return replacer.replaceInJson(JSON.stringify(this.buffer,replacer.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(schema,value){this.write(schema,value),typeof this.buffer=="object"&&(this.buffer.
|
|
420
|
+
__type=NormalizedSchema.of(schema).getName(!0))}_write(schema,value,container){let isObject=value!==null&&typeof value=="object",ns=NormalizedSchema.of(schema);if(isObject){if(ns.isStructSchema()){let record=value,out={},{jsonName}=this.settings,nameMap;jsonName&&(nameMap={});let outCount=0;for(let[memberName,memberSchema]of ns.structIterator()){let serializableValue=this._write(memberSchema,record[memberName],ns);if(serializableValue!==void 0){let targetKey=memberName;jsonName&&(targetKey=memberSchema.
|
|
421
|
+
getMergedTraits().jsonName??memberName,nameMap[memberName]=targetKey),out[targetKey]=serializableValue,outCount++}}if(ns.isUnionSchema()&&outCount===0){let{$unknown}=record;if(Array.isArray($unknown)){let[k5,v]=$unknown;k5==="__proto__"&&writeKey(out),out[k5]=this._write(15,v)}}else if(typeof record.__type=="string")for(let k5 in record){if(!hasOwn(record,k5))continue;let v=record[k5],targetKey=jsonName?nameMap[k5]??k5:k5;targetKey in out||(out[targetKey]=this._write(15,v))}return out}if(Array.isArray(
|
|
422
|
+
value)&&ns.isListSchema()){let listMember=ns.getValueSchema(),out=[],sparse=!!ns.getMergedTraits().sparse;for(let item of value)(sparse||item!=null)&&out.push(this._write(listMember,item));return out}if(ns.isMapSchema()){let mapMember=ns.getValueSchema(),out={},sparse=!!ns.getMergedTraits().sparse;for(let _k in value){if(!hasOwn(value,_k))continue;let _v=value[_k];(sparse||_v!=null)&&(_k==="__proto__"&&writeKey(out),out[_k]=this._write(mapMember,_v))}return out}if(value instanceof Uint8Array&&ns.
|
|
423
|
+
isBlobSchema())return ns===this.rootSchema?value:(this.serdeContext?.base64Encoder??toBase64)(value);if(value instanceof Date&&(ns.isTimestampSchema()||ns.isDocumentSchema()))switch(determineTimestampFormat(ns,this.settings)){case 5:return value.toISOString().replace(".000Z","Z");case 6:return dateToUtcString(value);case 7:return value.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",value),value.getTime()/1e3}value instanceof NumericValue&&(this.useReplacer=
|
|
424
|
+
!0)}if(!(value===null&&container?.isStructSchema())){if(ns.isStringSchema()){if(typeof value>"u"&&ns.isIdempotencyToken())return generateIdempotencyToken();let mediaType=ns.getMergedTraits().mediaType;return value!=null&&mediaType&&(mediaType==="application/json"||mediaType.endsWith("+json"))?LazyJsonString.from(value):value}if(typeof value=="number")return Math.abs(value)===1/0||isNaN(value)?String(value):value;if(typeof value=="string"&&ns.isBlobSchema())return ns===this.rootSchema?value:(this.
|
|
425
|
+
serdeContext?.base64Encoder??toBase64)(value);if(typeof value=="bigint"&&(this.useReplacer=!0),ns.isDocumentSchema())if(isObject){if(value instanceof Uint8Array)return(this.serdeContext?.base64Encoder??toBase64)(value);let out=Array.isArray(value)?[]:{};for(let k5 in value){if(!hasOwn(value,k5))continue;let v=value[k5];k5==="__proto__"&&writeKey(out),v instanceof NumericValue?(this.useReplacer=!0,out[k5]=v):out[k5]=this._write(ns,v)}return out}else return structuredClone(value);return value}}}}});var JsonCodec,init_JsonCodec=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js"(){init_ConfigurableSerdeContext();init_JsonShapeDeserializer();init_JsonShapeSerializer();JsonCodec=class extends SerdeContextConfig{settings;constructor(settings){super(),this.settings=settings}createSerializer(){let serializer=new JsonShapeSerializer(this.settings);return serializer.setSerdeContext(this.serdeContext),serializer}createDeserializer(){let deserializer=new JsonShapeDeserializer(
|
|
426
|
+
this.settings);return deserializer.setSerdeContext(this.serdeContext),deserializer}}}});var protocols_exports={};__export(protocols_exports,{Field:()=>Field,Fields:()=>Fields,FromStringShapeDeserializer:()=>FromStringShapeDeserializer,HttpBindingProtocol:()=>HttpBindingProtocol,HttpInterceptingShapeDeserializer:()=>HttpInterceptingShapeDeserializer,HttpInterceptingShapeSerializer:()=>HttpInterceptingShapeSerializer,HttpProtocol:()=>HttpProtocol,HttpRequest:()=>HttpRequest,HttpResponse:()=>HttpResponse,JsonCodec:()=>JsonCodec,JsonCodec2:()=>JsonCodec2,JsonShapeDeserializer:()=>JsonShapeDeserializer,
|
|
427
|
+
JsonShapeDeserializer2:()=>JsonShapeDeserializer2,JsonShapeSerializer:()=>JsonShapeSerializer,JsonShapeSerializer2:()=>JsonShapeSerializer2,RequestBuilder:()=>RequestBuilder,RpcProtocol:()=>RpcProtocol,SerdeContext:()=>SerdeContext,SmithyRpcV2JsonProtocol:()=>SmithyRpcV2JsonProtocol,ToStringShapeSerializer:()=>ToStringShapeSerializer,buildQueryString:()=>buildQueryString,collectBody:()=>collectBody,contentLengthMiddleware:()=>contentLengthMiddleware,contentLengthMiddlewareOptions:()=>contentLengthMiddlewareOptions,
|
|
428
|
+
determineTimestampFormat:()=>determineTimestampFormat,escapeUri:()=>escapeUri,escapeUriPath:()=>escapeUriPath,extendedEncodeURIComponent:()=>extendedEncodeURIComponent,getContentLengthPlugin:()=>getContentLengthPlugin,getHttpHandlerExtensionConfiguration:()=>getHttpHandlerExtensionConfiguration,isValidHostname:()=>isValidHostname,loadJsonRpcErrorCode:()=>loadJsonRpcErrorCode,loadRestJsonErrorCode:()=>loadRestJsonErrorCode,loadSmithyRpcV2JsonErrorCode:()=>loadSmithyRpcV2JsonErrorCode,parseJsonBody:()=>parseJsonBody,
|
|
429
|
+
parseJsonErrorBody:()=>parseJsonErrorBody,parseQueryString:()=>parseQueryString,parseUrl:()=>parseUrl,requestBuilder:()=>requestBuilder,resolveHttpHandlerRuntimeConfig:()=>resolveHttpHandlerRuntimeConfig,resolvedPath:()=>resolvedPath});var init_protocols=__esm({"node_modules/@smithy/core/dist-es/submodules/protocols/index.js"(){init_collect_stream_body();init_extended_encode_uri_component();init_HttpBindingProtocol();init_HttpProtocol();init_RpcProtocol();init_requestBuilder();init_resolve_path();
|
|
430
|
+
init_FromStringShapeDeserializer();init_HttpInterceptingShapeDeserializer();init_HttpInterceptingShapeSerializer();init_ToStringShapeSerializer();init_determineTimestampFormat();init_SerdeContext();init_Field();init_Fields();init_transport();init_transport();init_transport();init_httpExtensionConfiguration();init_contentLengthMiddleware();init_escape_uri();init_escape_uri_path();init_buildQueryString();init_transport();init_transport();init_SmithyRpcV2JsonProtocol();init_parseJsonBody();init_JsonCodec();
|
|
431
|
+
init_JsonShapeSerializer();init_JsonShapeDeserializer();init_JsonCodec2();init_JsonShapeSerializer2();init_JsonShapeDeserializer2()}});var CLOCK_SKEW_ERROR_CODES,THROTTLING_ERROR_CODES,TRANSIENT_ERROR_CODES,TRANSIENT_ERROR_STATUS_CODES,NODEJS_TIMEOUT_ERROR_CODES,NODEJS_NETWORK_ERROR_CODES,init_constants4=__esm({"node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js"(){CLOCK_SKEW_ERROR_CODES=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],THROTTLING_ERROR_CODES=["BandwidthLimitExceeded",
|
|
364
432
|
"EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],TRANSIENT_ERROR_CODES=["TimeoutError","RequestTimeout","RequestTimeoutException"],TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504],NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","ECONNREFUSED","\
|
|
365
433
|
EPIPE","ETIMEDOUT"],NODEJS_NETWORK_ERROR_CODES=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]}});function isNodeJsHttp2TransientError(error2){return error2.code==="ERR_HTTP2_STREAM_ERROR"&&error2.message.includes("NGHTTP2_REFUSED_STREAM")}var isRetryableByTrait,isClockSkewError,isClockSkewCorrectedError,isBrowserNetworkError,isThrottlingError,isTransientError,isServerError,init_service_error_classification=__esm({"node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js"(){init_constants4();isRetryableByTrait=error2=>error2?.$retryable!==
|
|
366
434
|
void 0,isClockSkewError=error2=>CLOCK_SKEW_ERROR_CODES.includes(error2.name),isClockSkewCorrectedError=error2=>error2.$metadata?.clockSkewCorrected,isBrowserNetworkError=error2=>{let errorMessages=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return error2&&error2 instanceof TypeError?errorMessages.has(error2.message):!1},isThrottlingError=error2=>error2.$metadata?.httpStatusCode===
|
|
@@ -570,13 +638,14 @@ isWebSocketRequest(toSign)?{...await this.signer.presign({...toSign,body:""},{..
|
|
|
570
638
|
this.messageSigner=options.messageSigner,this.eventStreamCodec=new EventStreamCodec2(options.utf8Encoder,options.utf8Decoder),this.systemClockOffsetProvider=async()=>options.systemClockOffset??0,this.credentials=options.credentials}async handle(next,args,context={}){let request=args.request,{body:payload2,headers,query}=request;if(!(payload2 instanceof ReadableStream))throw new Error("Eventstream payload must be a ReadableStream.");let placeHolderStream=new TransformStream;request.body=placeHolderStream.
|
|
571
639
|
readable;let priorSignature=((headers?.authorization??"").match(/Signature=(\w+)$/)??[])[1]??(query&&query["X-Amz-Signature"])??"";context.__staticSignature&&(priorSignature="");let signingStream=new EventSigningTransformStream(priorSignature,await this.messageSigner(),this.eventStreamCodec,this.systemClockOffsetProvider,this.credentials);payload2.pipeThrough(signingStream).pipeThrough(placeHolderStream);let result;try{result=await next(args)}catch(e5){let p3=payload2.cancel?.();throw p3 instanceof
|
|
572
640
|
Promise&&p3.catch(()=>{}),e5}return result}},eventStreamPayloadHandlerProvider=options=>new EventStreamPayloadHandler(options);exports.WebSocketFetchHandler=WebSocketFetchHandler;exports.eventStreamPayloadHandlerProvider=eventStreamPayloadHandlerProvider;exports.getWebSocketPlugin=getWebSocketPlugin;exports.resolveWebSocketConfig=resolveWebSocketConfig}});var getDateHeader,getAgeHeader,init_getDateHeader=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js"(){init_protocols();getDateHeader=response=>HttpResponse.isInstance(response)?response.headers?.date??response.headers?.Date:void 0,getAgeHeader=response=>HttpResponse.isInstance(response)?response.headers?.age??response.headers?.Age:void 0}});var getSkewCorrectedDate,init_getSkewCorrectedDate=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js"(){getSkewCorrectedDate=systemClockOffset=>new Date(Date.now()+systemClockOffset)}});var getUpdatedSystemClockOffset,init_getUpdatedSystemClockOffset=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js"(){getUpdatedSystemClockOffset=(clockTime,currentSystemClockOffset,timeRequestSent,ageHeader)=>{if(ageHeader!==void 0)return currentSystemClockOffset;let serverTime=Date.parse(clockTime),timeResponseReceived=Date.now();return timeRequestSent!==void 0&&timeResponseReceived-timeRequestSent>9e5?currentSystemClockOffset:timeRequestSent!==
|
|
573
|
-
void 0?serverTime-(timeRequestSent+timeResponseReceived)/2:serverTime-timeResponseReceived}}});var init_utils3=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js"(){init_getDateHeader();init_getSkewCorrectedDate();init_getUpdatedSystemClockOffset()}});var throwSigningPropertyError,validateSigningProperties,AwsSdkSigV4Signer,AWSSDKSigV4Signer,init_AwsSdkSigV4Signer=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js"(){init_protocols();init_utils3();throwSigningPropertyError=(name,property)=>{if(!property)throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);return property},
|
|
574
|
-
signingProperties.context),config=throwSigningPropertyError("config",signingProperties.config),authScheme=context.endpointV2?.properties?.authSchemes?.[0],signer=await throwSigningPropertyError("signer",config.signer)(authScheme),signingRegion=signingProperties?.signingRegion,signingRegionSet=signingProperties?.
|
|
575
|
-
if(!HttpRequest.isInstance(httpRequest))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let validatedProps=await validateSigningProperties(signingProperties),{config,signer}=validatedProps,{signingRegion,signingName}=validatedProps,handlerExecutionContext=signingProperties.
|
|
576
|
-
signingRegion??signingRegion,signingName=second?.signingName??signingName)}let noSkewCorrection=await config.disableClockSkewCorrection?.()===!0;
|
|
577
|
-
return error2=>{let errorException=error2;if(!signingProperties._disableClockSkewCorrection){let serverTime=errorException.
|
|
578
|
-
|
|
579
|
-
|
|
641
|
+
void 0?serverTime-(timeRequestSent+timeResponseReceived)/2:serverTime-timeResponseReceived}}});var init_utils3=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js"(){init_getDateHeader();init_getSkewCorrectedDate();init_getUpdatedSystemClockOffset()}});var import_types25,throwSigningPropertyError,hasEventStreamOutput,validateSigningProperties,AwsSdkSigV4Signer,AWSSDKSigV4Signer,init_AwsSdkSigV4Signer=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js"(){init_protocols();import_types25=__toESM(require_dist_cjs());init_utils3();throwSigningPropertyError=(name,property)=>{if(!property)throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);return property},hasEventStreamOutput=
|
|
642
|
+
signingProperties=>signingProperties.context?.[import_types25.SMITHY_CONTEXT_KEY]?.eventStream?.output===!0,validateSigningProperties=async signingProperties=>{let context=throwSigningPropertyError("context",signingProperties.context),config=throwSigningPropertyError("config",signingProperties.config),authScheme=context.endpointV2?.properties?.authSchemes?.[0],signer=await throwSigningPropertyError("signer",config.signer)(authScheme),signingRegion=signingProperties?.signingRegion,signingRegionSet=signingProperties?.
|
|
643
|
+
signingRegionSet,signingName=signingProperties?.signingName;return{config,signer,signingRegion,signingRegionSet,signingName}},AwsSdkSigV4Signer=class{async sign(httpRequest,identity,signingProperties){if(!HttpRequest.isInstance(httpRequest))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let validatedProps=await validateSigningProperties(signingProperties),{config,signer}=validatedProps,{signingRegion,signingName}=validatedProps,handlerExecutionContext=signingProperties.
|
|
644
|
+
context;if(handlerExecutionContext?.authSchemes?.length??!1){let[first,second]=handlerExecutionContext.authSchemes;first?.name==="sigv4a"&&second?.name==="sigv4"&&(signingRegion=second?.signingRegion??signingRegion,signingName=second?.signingName??signingName)}let noSkewCorrection=await config.disableClockSkewCorrection?.()===!0;signingProperties._disableClockSkewCorrection=noSkewCorrection;let skipSkewSampling=noSkewCorrection||hasEventStreamOutput(signingProperties);return signingProperties._skipClockSkewSampling=
|
|
645
|
+
skipSkewSampling,skipSkewSampling||(signingProperties._preRequestSystemClockOffset=config.systemClockOffset,signingProperties._requestSentAt=Date.now()),await signer.sign(httpRequest,{signingDate:noSkewCorrection?new Date:getSkewCorrectedDate(config.systemClockOffset),signingRegion,signingService:signingName})}errorHandler(signingProperties){return error2=>{let errorException=error2;if(!signingProperties._skipClockSkewSampling&&!signingProperties._disableClockSkewCorrection){let serverTime=errorException.
|
|
646
|
+
ServerTime??getDateHeader(errorException.$response);if(serverTime){let config=throwSigningPropertyError("config",signingProperties.config),preRequestOffset=signingProperties._preRequestSystemClockOffset,timeRequestSent=signingProperties._requestSentAt,ageHeader=getAgeHeader(errorException.$response),newOffset=getUpdatedSystemClockOffset(serverTime,config.systemClockOffset,timeRequestSent,ageHeader);config.systemClockOffset=newOffset,Math.abs(newOffset)>=24e4&&(newOffset!==preRequestOffset||preRequestOffset!==
|
|
647
|
+
void 0&&preRequestOffset!==newOffset)&&errorException.$metadata&&(errorException.$metadata.clockSkewCorrected=!0)}}throw error2}}successHandler(httpResponse,signingProperties){if(signingProperties._skipClockSkewSampling||signingProperties._disableClockSkewCorrection)return;let dateHeader=getDateHeader(httpResponse);if(dateHeader){let config=throwSigningPropertyError("config",signingProperties.config),timeRequestSent=signingProperties._requestSentAt,ageHeader=getAgeHeader(httpResponse);config.systemClockOffset=
|
|
648
|
+
getUpdatedSystemClockOffset(dateHeader,config.systemClockOffset,timeRequestSent,ageHeader)}}},AWSSDKSigV4Signer=AwsSdkSigV4Signer}});var AwsSdkSigV4ASigner,init_AwsSdkSigV4ASigner=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js"(){init_protocols();init_utils3();init_AwsSdkSigV4Signer();AwsSdkSigV4ASigner=class extends AwsSdkSigV4Signer{async sign(httpRequest,identity,signingProperties){if(!HttpRequest.isInstance(httpRequest))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config,signer,signingRegion,signingRegionSet,signingName}=await validateSigningProperties(
|
|
580
649
|
signingProperties),multiRegionOverride=(await config.sigv4aSigningRegionSet?.()??signingRegionSet??[signingRegion]).join(","),noSkewCorrection=await config.disableClockSkewCorrection?.()===!0;return signingProperties._disableClockSkewCorrection=noSkewCorrection,noSkewCorrection||(signingProperties._preRequestSystemClockOffset=config.systemClockOffset,signingProperties._requestSentAt=Date.now()),await signer.sign(httpRequest,{signingDate:noSkewCorrection?new Date:getSkewCorrectedDate(config.systemClockOffset),
|
|
581
650
|
signingRegion:multiRegionOverride,signingService:signingName})}}}});var getArrayForCommaSeparatedString,init_getArrayForCommaSeparatedString=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js"(){getArrayForCommaSeparatedString=str=>typeof str=="string"&&str.length>0?str.split(",").map(item=>item.trim()):[]}});var getBearerTokenEnvKey,init_getBearerTokenEnvKey=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js"(){getBearerTokenEnvKey=signingName=>`AWS_BEARER_TOKEN_${signingName.replace(/[\s-]/g,"_").toUpperCase()}`}});var NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY,NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,init_NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js"(){init_getArrayForCommaSeparatedString();init_getBearerTokenEnvKey();NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY="AWS_AUTH_SCHEME_PREFERENCE",NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY="auth_scheme_preference",NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=
|
|
582
651
|
{environmentVariableSelector:(env2,options)=>{if(options?.signingName&&getBearerTokenEnvKey(options.signingName)in env2)return["httpBearerAuth"];if(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env2)return getArrayForCommaSeparatedString(env2[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY])},configFileSelector:profile=>{if(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile)return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY])},default:[]}}});var resolveAwsSdkSigV4AConfig,NODE_SIGV4A_CONFIG_OPTIONS,init_resolveAwsSdkSigV4AConfig=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js"(){init_dist_es();init_config2();resolveAwsSdkSigV4AConfig=config=>(config.sigv4aSigningRegionSet=normalizeProvider2(config.sigv4aSigningRegionSet),config),NODE_SIGV4A_CONFIG_OPTIONS={environmentVariableSelector(env2){if(env2.AWS_SIGV4A_SIGNING_REGION_SET)return env2.AWS_SIGV4A_SIGNING_REGION_SET.split("\
|
|
@@ -606,15 +675,15 @@ ${toHex2(hashedRequest)}`}getCanonicalPath({path}){if(this.uriEscapePath){let no
|
|
|
606
675
|
if(typeof credentials!="object"||typeof credentials.accessKeyId!="string"||typeof credentials.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(now){let longDate=iso8601(now).replace(/[-:]/g,"");return{longDate,shortDate:longDate.slice(0,8)}}getCanonicalHeaderList(headers){return Object.keys(headers).sort().join(";")}},signingKeyCache={},cacheQueue=[],createScope=(shortDate,region,service)=>`${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`,getSigningKey=async(sha256Constructor,credentials,shortDate,region,service)=>{
|
|
607
676
|
let credsHash=await hmac(sha256Constructor,credentials.secretAccessKey,credentials.accessKeyId),cacheKey=`${shortDate}:${region}:${service}:${toHex2(credsHash)}:${credentials.sessionToken}`;if(cacheKey in signingKeyCache)return signingKeyCache[cacheKey];for(cacheQueue.push(cacheKey);cacheQueue.length>MAX_CACHE_SIZE;)delete signingKeyCache[cacheQueue.shift()];let key=`AWS4${credentials.secretAccessKey}`;for(let signable of[shortDate,region,service,KEY_TYPE_IDENTIFIER])key=await hmac(sha256Constructor,
|
|
608
677
|
key,signable);return signingKeyCache[cacheKey]=key},clearCredentialCache=()=>{cacheQueue.length=0,Object.keys(signingKeyCache).forEach(cacheKey=>{delete signingKeyCache[cacheKey]})},hmac=(ctor,secret,data)=>{let hash=new ctor(secret);return hash.update(toUint8Array2(data)),hash.digest()},getCanonicalHeaders=({headers},unsignableHeaders,signableHeaders)=>{let canonical={};for(let headerName of Object.keys(headers).sort()){if(headers[headerName]==null)continue;let canonicalHeaderName=headerName.toLowerCase();
|
|
609
|
-
(canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS||unsignableHeaders?.has(canonicalHeaderName)||PROXY_HEADER_PATTERN.test(canonicalHeaderName)||SEC_HEADER_PATTERN.test(canonicalHeaderName))&&(!signableHeaders||signableHeaders&&!signableHeaders.has(canonicalHeaderName))||(canonical[canonicalHeaderName]=headers[headerName].
|
|
610
|
-
SHA256_HEADER)return headers[headerName];if(body==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof body=="string"||ArrayBuffer.isView(body)||isArrayBuffer2(body)){let hashCtor=new hashConstructor;return hashCtor.update(toUint8Array2(body)),toHex2(await hashCtor.digest())}return UNSIGNED_PAYLOAD},hasHeader=(soughtHeader,headers)=>{soughtHeader=soughtHeader.toLowerCase();for(let headerName in headers)if(hasOwn3(
|
|
611
|
-
return!0;return!1},moveHeadersToQuery=(request,options={})=>{let{headers,query={}}=HttpRequest2.clone(request);for(let name in headers){if(!hasOwn3(headers,name))continue;let lname=name.toLowerCase();(lname.slice(0,6)==="x-amz-"&&!options.unhoistableHeaders?.has(lname)||options.hoistableHeaders?.has(lname))&&(query[name]=headers[name],delete headers[name])}return{...request,headers,query}},prepareRequest=request=>{request=HttpRequest2.
|
|
612
|
-
request.headers,headerName)&&GENERATED_HEADERS.indexOf(headerName.toLowerCase())>-1&&delete request.headers[headerName];return request},SignatureV42=class extends SignatureV4Base{headerFormatter=new HeaderFormatter;constructor({applyChecksum,credentials,region,service,sha256,uriEscapePath=!0}){super({applyChecksum,credentials,region,service,sha256,uriEscapePath})}async presign(originalRequest,options={}){let{signingDate=new Date,expiresIn=3600,
|
|
613
|
-
hoistableHeaders,signingRegion,signingService}=options,credentials=await this.credentialProvider();this.validateResolvedCredentials(credentials);let region=signingRegion??await this.regionProvider(),{longDate,shortDate}=this.formatDate(signingDate);if(expiresIn>MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let scope=createScope(shortDate,region,signingService??
|
|
614
|
-
originalRequest),{unhoistableHeaders,hoistableHeaders});credentials.sessionToken&&(request.query[TOKEN_QUERY_PARAM]=credentials.sessionToken),request.query[ALGORITHM_QUERY_PARAM]=ALGORITHM_IDENTIFIER,request.query[CREDENTIAL_QUERY_PARAM]=`${credentials.accessKeyId}/${scope}`,request.query[AMZ_DATE_QUERY_PARAM]=longDate,request.query[EXPIRES_QUERY_PARAM]=expiresIn.toString(10);let canonicalHeaders=getCanonicalHeaders(request,unsignableHeaders,
|
|
615
|
-
this.getCanonicalHeaderList(canonicalHeaders),request.query[SIGNATURE_QUERY_PARAM]=await this.getSignature(longDate,scope,this.getSigningKey(credentials,region,shortDate,signingService),this.createCanonicalRequest(request,canonicalHeaders,await getPayloadHash(originalRequest,this.sha256))),request}async sign(toSign,options){return typeof toSign=="string"?this.signString(toSign,options):toSign.headers&&toSign.payload?this.signEvent(
|
|
616
|
-
signRequest(toSign,options)}async signEvent({headers,payload:payload2},{signingDate=new Date,priorSignature,signingRegion,signingService,eventStreamCredentials}){let region=signingRegion??await this.regionProvider(),{shortDate,longDate}=this.formatDate(signingDate),scope=createScope(shortDate,region,signingService??this.service),hashedPayload=await getPayloadHash({headers:{},body:payload2},this.sha256),hash=new this.sha256;hash.
|
|
617
|
-
EVENT_ALGORITHM_IDENTIFIER,longDate,scope,priorSignature,hashedHeaders,hashedPayload].join(`
|
|
678
|
+
(canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS||unsignableHeaders?.has(canonicalHeaderName)||PROXY_HEADER_PATTERN.test(canonicalHeaderName)||SEC_HEADER_PATTERN.test(canonicalHeaderName))&&(!signableHeaders||signableHeaders&&!signableHeaders.has(canonicalHeaderName))||(canonical[canonicalHeaderName]=headers[headerName].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,""))}return canonical},getPayloadHash=async({headers,body},hashConstructor)=>{for(let headerName in headers)if(hasOwn3(
|
|
679
|
+
headers,headerName)&&headerName.toLowerCase()===SHA256_HEADER)return headers[headerName];if(body==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof body=="string"||ArrayBuffer.isView(body)||isArrayBuffer2(body)){let hashCtor=new hashConstructor;return hashCtor.update(toUint8Array2(body)),toHex2(await hashCtor.digest())}return UNSIGNED_PAYLOAD},hasHeader=(soughtHeader,headers)=>{soughtHeader=soughtHeader.toLowerCase();for(let headerName in headers)if(hasOwn3(
|
|
680
|
+
headers,headerName)&&soughtHeader===headerName.toLowerCase())return!0;return!1},moveHeadersToQuery=(request,options={})=>{let{headers,query={}}=HttpRequest2.clone(request);for(let name in headers){if(!hasOwn3(headers,name))continue;let lname=name.toLowerCase();(lname.slice(0,6)==="x-amz-"&&!options.unhoistableHeaders?.has(lname)||options.hoistableHeaders?.has(lname))&&(query[name]=headers[name],delete headers[name])}return{...request,headers,query}},prepareRequest=request=>{request=HttpRequest2.
|
|
681
|
+
clone(request);for(let headerName in request.headers)hasOwn3(request.headers,headerName)&&GENERATED_HEADERS.indexOf(headerName.toLowerCase())>-1&&delete request.headers[headerName];return request},SignatureV42=class extends SignatureV4Base{headerFormatter=new HeaderFormatter;constructor({applyChecksum,credentials,region,service,sha256,uriEscapePath=!0}){super({applyChecksum,credentials,region,service,sha256,uriEscapePath})}async presign(originalRequest,options={}){let{signingDate=new Date,expiresIn=3600,
|
|
682
|
+
unsignableHeaders,unhoistableHeaders,signableHeaders,hoistableHeaders,signingRegion,signingService}=options,credentials=await this.credentialProvider();this.validateResolvedCredentials(credentials);let region=signingRegion??await this.regionProvider(),{longDate,shortDate}=this.formatDate(signingDate);if(expiresIn>MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let scope=createScope(shortDate,region,signingService??
|
|
683
|
+
this.service),request=moveHeadersToQuery(prepareRequest(originalRequest),{unhoistableHeaders,hoistableHeaders});credentials.sessionToken&&(request.query[TOKEN_QUERY_PARAM]=credentials.sessionToken),request.query[ALGORITHM_QUERY_PARAM]=ALGORITHM_IDENTIFIER,request.query[CREDENTIAL_QUERY_PARAM]=`${credentials.accessKeyId}/${scope}`,request.query[AMZ_DATE_QUERY_PARAM]=longDate,request.query[EXPIRES_QUERY_PARAM]=expiresIn.toString(10);let canonicalHeaders=getCanonicalHeaders(request,unsignableHeaders,
|
|
684
|
+
signableHeaders);return request.query[SIGNED_HEADERS_QUERY_PARAM]=this.getCanonicalHeaderList(canonicalHeaders),request.query[SIGNATURE_QUERY_PARAM]=await this.getSignature(longDate,scope,this.getSigningKey(credentials,region,shortDate,signingService),this.createCanonicalRequest(request,canonicalHeaders,await getPayloadHash(originalRequest,this.sha256))),request}async sign(toSign,options){return typeof toSign=="string"?this.signString(toSign,options):toSign.headers&&toSign.payload?this.signEvent(
|
|
685
|
+
toSign,options):toSign.message?this.signMessage(toSign,options):this.signRequest(toSign,options)}async signEvent({headers,payload:payload2},{signingDate=new Date,priorSignature,signingRegion,signingService,eventStreamCredentials}){let region=signingRegion??await this.regionProvider(),{shortDate,longDate}=this.formatDate(signingDate),scope=createScope(shortDate,region,signingService??this.service),hashedPayload=await getPayloadHash({headers:{},body:payload2},this.sha256),hash=new this.sha256;hash.
|
|
686
|
+
update(headers);let hashedHeaders=toHex2(await hash.digest()),stringToSign=[EVENT_ALGORITHM_IDENTIFIER,longDate,scope,priorSignature,hashedHeaders,hashedPayload].join(`
|
|
618
687
|
`);return this.signString(stringToSign,{signingDate,signingRegion:region,signingService,eventStreamCredentials})}async signMessage(signableMessage,{signingDate=new Date,signingRegion,signingService,eventStreamCredentials}){return this.signEvent({headers:this.headerFormatter.format(signableMessage.message.headers),payload:signableMessage.message.body},{signingDate,signingRegion,signingService,priorSignature:signableMessage.priorSignature,eventStreamCredentials}).then(signature=>({message:signableMessage.
|
|
619
688
|
message,signature}))}async signString(stringToSign,{signingDate=new Date,signingRegion,signingService,eventStreamCredentials}={}){let credentials=eventStreamCredentials??await this.credentialProvider();this.validateResolvedCredentials(credentials);let region=signingRegion??await this.regionProvider(),{shortDate}=this.formatDate(signingDate),hash=new this.sha256(await this.getSigningKey(credentials,region,shortDate,signingService));return hash.update(toUint8Array2(stringToSign)),toHex2(await hash.
|
|
620
689
|
digest())}async signRequest(requestToSign,{signingDate=new Date,signableHeaders,unsignableHeaders,signingRegion,signingService}={}){let credentials=await this.credentialProvider();this.validateResolvedCredentials(credentials);let region=signingRegion??await this.regionProvider(),request=prepareRequest(requestToSign),{longDate,shortDate}=this.formatDate(signingDate),scope=createScope(shortDate,region,signingService??this.service);request.headers[AMZ_DATE_HEADER]=longDate,credentials.sessionToken&&
|
|
@@ -716,14 +785,14 @@ try{let result=await requestHandler.handle(request,{requestTimeout});return getC
|
|
|
716
785
|
`))throw new CredentialsProviderError2("Authorization token contains invalid \\r\\n sequence.");return token};exports.fromHttp=fromHttp}});function createAwsAuthSigv4HttpAuthOption(authParameters){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:authParameters.region},propertiesExtractor:(config,context)=>({signingProperties:{config,context}})}}function createSmithyApiNoAuthHttpAuthOption(authParameters){return{schemeId:"smithy.api#noAuth"}}var defaultSSOOIDCHttpAuthSchemeParametersProvider,defaultSSOOIDCHttpAuthSchemeProvider,resolveHttpAuthSchemeConfig,init_httpAuthSchemeProvider=__esm({"node_modules/@a\
|
|
717
786
|
ws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js"(){init_httpAuthSchemes2();init_client2();defaultSSOOIDCHttpAuthSchemeParametersProvider=async(config,context,input)=>({operation:getSmithyContext(context).operation,region:await normalizeProvider(config.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});defaultSSOOIDCHttpAuthSchemeProvider=authParameters=>{let options=[];return authParameters.operation==="CreateToken"?
|
|
718
787
|
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)):options.push(createAwsAuthSigv4HttpAuthOption(authParameters)),options},resolveHttpAuthSchemeConfig=config=>{let config_0=resolveAwsSdkSigV4Config(config);return Object.assign(config_0,{authSchemePreference:normalizeProvider(config.authSchemePreference??[])})}}});var resolveClientEndpointParameters,commonParams,init_EndpointParameters=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js"(){resolveClientEndpointParameters=options=>Object.assign(options,{useDualstackEndpoint:options.useDualstackEndpoint??!1,useFipsEndpoint:options.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),commonParams={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"\
|
|
719
|
-
builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}});var package_default,init_package=__esm({"node_modules/@aws-sdk/nested-clients/package.json"(){package_default={name:"@aws-sdk/nested-clients",version:"3.997.
|
|
788
|
+
builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}});var package_default,init_package=__esm({"node_modules/@aws-sdk/nested-clients/package.json"(){package_default={name:"@aws-sdk/nested-clients",version:"3.997.48",description:"Nested clients for AWS SDK packages.",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/ne\
|
|
720
789
|
sted-clients"},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/s\
|
|
721
790
|
ubmodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"],"*":["dist-types/ts3.4/submodules/*/index.d.ts"]}},"react-native":{},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dis\
|
|
722
791
|
t-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/subm\
|
|
723
792
|
odules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-\
|
|
724
793
|
identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_pack\
|
|
725
|
-
age_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types",lint:"node ../../scripts/validation/submodules-linter.js",prebuild:"yarn lint",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},dependencies:{"@aws-sdk/core":"^3.978.
|
|
726
|
-
^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2"},engines:{node:">=20.0.0"}}}});var tagSymbol,init_cbor_types=__esm({"node_modules/@smithy/core/dist-es/submodules/cbor/cbor-types.js"(){tagSymbol=Symbol("@smithy/core/cbor::tagSymbol")}});var loadSmithyRpcV2CborErrorCode,init_parseCborBody=__esm({"node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js"(){loadSmithyRpcV2CborErrorCode=(output,data)=>{let
|
|
794
|
+
age_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types",lint:"node ../../scripts/validation/submodules-linter.js",prebuild:"yarn lint",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},dependencies:{"@aws-sdk/core":"^3.978.3","@aws-sdk/signature-v4-multi-region":"^3.996.48","@aws-sdk/types":"^3.974.6","@smithy/core":"^3.35.2","@smithy/fetch-http-handler":"\
|
|
795
|
+
^5.8.0","@smithy/node-http-handler":"^4.12.1","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2"},engines:{node:">=20.0.0"}}}});var tagSymbol,init_cbor_types=__esm({"node_modules/@smithy/core/dist-es/submodules/cbor/cbor-types.js"(){tagSymbol=Symbol("@smithy/core/cbor::tagSymbol")}});var loadSmithyRpcV2CborErrorCode,init_parseCborBody=__esm({"node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js"(){loadSmithyRpcV2CborErrorCode=(output,data)=>{let sanitizeErrorCode3=rawValue=>{let cleanValue=rawValue;return typeof cleanValue=="number"&&(cleanValue=cleanValue.toString()),cleanValue.indexOf(",")>=0&&(cleanValue=cleanValue.split(",")[0]),cleanValue.indexOf(":")>=0&&(cleanValue=cleanValue.split(":")[0]),cleanValue};if(data.__type!==void 0)return sanitizeErrorCode3(data.
|
|
727
796
|
__type)}}});function loadCborStructIterator(ns){let schema=ns.getSchema(),existing=schema[CBOR_STRUCT_CACHE];if(existing)return existing;let memberNames=[],memberSchemas=[];for(let[name,memberSchema]of ns.structIterator())memberNames.push(name),memberSchemas.push(memberSchema);let encodedKeys=new Array(memberNames.length);for(let i5=0;i5<memberNames.length;++i5)encodedKeys[i5]=encodeCborStringKey(memberNames[i5]);let cache5={memberNames,memberSchemas,encodedKeys};return schema[CBOR_STRUCT_CACHE]=cache5,cache5}
|
|
728
797
|
function encodeCborStringKey(s2){let utf8Bytes;USE_BUFFER?utf8Bytes=Buffer.from(s2,"utf-8"):utf8Bytes=new TextEncoder().encode(s2);let byteLen=utf8Bytes.length,headerSize;byteLen<24?headerSize=1:byteLen<256?headerSize=2:headerSize=3;let result=new Uint8Array(headerSize+byteLen);return headerSize===1?result[0]=96|byteLen:headerSize===2?(result[0]=120,result[1]=byteLen):(result[0]=121,result[1]=byteLen>>8,result[2]=byteLen&255),result.set(utf8Bytes,headerSize),result}function allocUnsafe(size){return USE_BUFFER?
|
|
729
798
|
Buffer.allocUnsafe(size):new Uint8Array(size)}function writeValue(ns,value,container,serdeContext){if(value==null){if(value===void 0&&ns.isIdempotencyToken()){writeString(generateIdempotencyToken());return}ensure(1),buf[cursor++]=246;return}if(ns.isUnitSchema()){ensure(1),encodeHeader(5,0);return}if(typeof value=="object"){if(ns.isBlobSchema()&&value instanceof Uint8Array){writeBytes(value);return}if(ns.isTimestampSchema()&&value instanceof Date){writeTimestamp(value);return}if(ns.isStructSchema()){
|
|
@@ -743,9 +812,10 @@ STRING_CACHE_MAX&&stringEncodeCache.set(s2,{epoch:encodeCacheEpoch,bytes});retur
|
|
|
743
812
|
3:byteLen<4294967296?headerSize=5:headerSize=9,headerSize<9&&buf.copyWithin(headerPos+headerSize,headerPos+9,headerPos+9+byteLen),cursor=headerPos,encodeHeader(3,byteLen),cursor+=byteLen}}function writeFloat64(value){ensure(9),buf[cursor++]=251,view.setFloat64(cursor,value),cursor+=8}function writeInteger(value){ensure(9);let nonNegative=value>=0,major=nonNegative?0:1,abs=nonNegative?value:-value-1;encodeHeader(major,abs)}function writeBigInt(value){let nonNegative=value>=0,major=nonNegative?0:1,
|
|
744
813
|
abs=nonNegative?value:-value-BigInt(1);if(abs<BigInt("18446744073709551616"))ensure(9),encodeBigHeader(major,abs);else{let binaryStr=abs.toString(2),byteLen=Math.ceil(binaryStr.length/8),bigIntBytes=new Uint8Array(byteLen),b5=abs;for(let i5=byteLen-1;i5>=0;--i5)bigIntBytes[i5]=Number(b5&BigInt(255)),b5>>=BigInt(8);ensure(byteLen+16),buf[cursor++]=nonNegative?194:195,encodeHeader(2,byteLen),buf.set(bigIntBytes,cursor),cursor+=byteLen}}function writeBytes(data){ensure(data.length+9),encodeHeader(2,
|
|
745
814
|
data.length),buf.set(data,cursor),cursor+=data.length}function writeTag(tagValue,innerValue){ensure(9),typeof tagValue=="bigint"?encodeBigHeader(6,tagValue):encodeHeader(6,tagValue),writeUntypedValue(innerValue)}function writeNumericValue(nv2){let str=nv2.string,expOffset=BigInt(0),eIndex=str.search(/[eE]/);eIndex!==-1&&(expOffset=BigInt(str.slice(eIndex+1)),str=str.slice(0,eIndex));let decimalIndex=str.indexOf("."),fractionDigits=decimalIndex===-1?0:str.length-decimalIndex-1,exponent=expOffset-
|
|
746
|
-
BigInt(fractionDigits),mantissa=BigInt(str.replace(".",""));ensure(9),buf[cursor++]=196,encodeHeader(4,2),ensure(9),exponent>=-0x20000000000000n&&exponent<=0x1fffffffffffffn?writeInteger(Number(exponent)):writeBigInt(exponent),writeBigInt(mantissa)}function writeTimestamp(date2){ensure(18),encodeHeader(6,1);let epochSecs=date2.getTime()/1e3;Number.isInteger(epochSecs)?writeInteger(epochSecs):writeFloat64(epochSecs)}var CborShapeSerializer2,CBOR_STRUCT_CACHE,USE_BUFFER,textEncoder,
|
|
815
|
+
BigInt(fractionDigits),mantissa=BigInt(str.replace(".",""));ensure(9),buf[cursor++]=196,encodeHeader(4,2),ensure(9),exponent>=-0x20000000000000n&&exponent<=0x1fffffffffffffn?writeInteger(Number(exponent)):writeBigInt(exponent),writeBigInt(mantissa)}function writeTimestamp(date2){ensure(18),encodeHeader(6,1);let epochSecs=date2.getTime()/1e3;Number.isInteger(epochSecs)?writeInteger(epochSecs):writeFloat64(epochSecs)}var CborShapeSerializer2,CBOR_STRUCT_CACHE,USE_BUFFER,textEncoder,INITIAL_BUFFER_SIZE2,
|
|
747
816
|
buf,view,cursor,STRING_CACHE_MAX,stringEncodeCache,encodeCacheEpoch,encodeCacheSaturated,init_CborShapeSerializer2=__esm({"node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js"(){init_transport();init_protocols();init_schema();init_serde();init_cbor_types();CborShapeSerializer2=class extends SerdeContext{write(schema,value){cursor=0;let ns=NormalizedSchema.of(schema);writeValue(ns,value,void 0,this.serdeContext)}flush(){let result=buf.subarray(0,cursor);return cursor=
|
|
748
|
-
0,buf=allocUnsafe(
|
|
817
|
+
0,buf=allocUnsafe(INITIAL_BUFFER_SIZE2),view=new DataView(buf.buffer,buf.byteOffset,buf.byteLength),result}},CBOR_STRUCT_CACHE=Symbol.for("@smithy/cbor-struct-cache");USE_BUFFER=typeof Buffer<"u",textEncoder=new TextEncoder,INITIAL_BUFFER_SIZE2=2048,buf=USE_BUFFER?Buffer.allocUnsafe(INITIAL_BUFFER_SIZE2):new Uint8Array(INITIAL_BUFFER_SIZE2),view=new DataView(buf.buffer,buf.byteOffset,buf.byteLength),cursor=0,STRING_CACHE_MAX=2048,stringEncodeCache=new Map,encodeCacheEpoch=0,encodeCacheSaturated=
|
|
818
|
+
!1}});function readValue(ns){if(pos>=end)throw new Error("unexpected end of CBOR payload.");let major=(payload[pos]&224)>>5;if((payload[pos]&31)===31&&major>=2&&major<=5)return readIndefinite(ns,major);switch(major){case 0:return readUnsignedInt();case 1:return readNegativeInt();case 2:return readByteString();case 3:return readUtf8String();case 4:return readList(ns);case 5:return readMap(ns);case 6:return readTag(ns);case 7:return readSpecial();default:throw new Error(`unexpected CBOR major type ${major}\
|
|
749
819
|
.`)}}function readList(ns){let count=decodeCount(),memberSchema=ns.isListSchema()?ns.getValueSchema():ns,list2=Array(count);for(let i5=0;i5<count;++i5)list2[i5]=readValue(memberSchema);return list2}function readMap(ns){let count=decodeCount();if(ns.isStructSchema())return readStruct(ns,count,pos);let valueSchema=ns.isMapSchema()?ns.getValueSchema():ns,map3={};for(let i5=0;i5<count;++i5){let key=readUtf8String();map3[key]=readValue(valueSchema)}return map3}function readStruct(ns,count,startPos){let isUnion=ns.
|
|
750
820
|
isUnionSchema(),cache5=loadCborStructIterator(ns),{memberSchemas,encodedKeys,memberNames}=cache5,z=encodedKeys.length,result={},unknownKey,unknownValue,unknownCount=0,hasType=!1,hint=0;for(let i5=0;i5<count;++i5){let matchIdx=matchStructKey(encodedKeys,z,hint);if(matchIdx>=0){hint=matchIdx+1,hint>=z&&(hint=0);let val=readValue(memberSchemas[matchIdx]);val!=null&&(result[memberNames[matchIdx]]=val)}else{let key=readUtf8String(),val=readValue(NormalizedSchema.of(15));key==="__type"&&typeof val=="s\
|
|
751
821
|
tring"?hasType=!0:(unknownKey=key,unknownValue=val,++unknownCount)}}if(isUnion){let resultEmpty=!0;for(let _ in result)if(hasOwn(result,_)){resultEmpty=!1;break}resultEmpty&&unknownCount===1&&(result.$unknown=[unknownKey,unknownValue])}else if(hasType){pos=startPos;let docSchema=NormalizedSchema.of(15);for(let i5=0;i5<count;++i5){let key=readUtf8String(),val=readValue(docSchema);key in result||(result[key]=val)}}return result}function readTag(ns){let tagNum=decodeArgument(),tagNumber=typeof tagNum==
|
|
@@ -783,102 +853,103 @@ let[Code,Type]=queryErrorHeader.split(";"),keys=Object.keys(output),Error2={Code
|
|
|
783
853
|
Code)}findQueryCompatibleError(registry,errorName){try{return registry.getSchema(errorName)}catch{return registry.find(schema=>NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0]===errorName)}}}}});var AwsSmithyRpcV2CborProtocol,init_AwsSmithyRpcV2CborProtocol=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js"(){init_cbor();init_schema();init_ProtocolLib();AwsSmithyRpcV2CborProtocol=class extends SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace,errorTypeRegistries:errorTypeRegistries5,awsQueryCompatible}){super({defaultNamespace,errorTypeRegistries:errorTypeRegistries5}),this.awsQueryCompatible=!!awsQueryCompatible,
|
|
784
854
|
this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(operationSchema,input,context){let request=await super.serializeRequest(operationSchema,input,context);return this.awsQueryCompatible&&(request.headers["x-amzn-query-mode"]="true"),request}async handleError(operationSchema,context,response,dataObject,metadata){this.awsQueryCompatible&&this.mixin.setQueryCompatError(dataObject,response);let errorName=(()=>{let compatHeader=response.headers["x-amzn-query-error"];return compatHeader&&
|
|
785
855
|
this.awsQueryCompatible?compatHeader.split(";")[0]:loadSmithyRpcV2CborErrorCode(response,dataObject)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,errorName,this.options.defaultNamespace);let{errorSchema,errorMetadata}=await this.mixin.getErrorSchemaOrThrowBaseException(errorName,this.options.defaultNamespace,response,dataObject,metadata,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),ns=NormalizedSchema.of(errorSchema),message=dataObject.message??dataObject.Message??
|
|
786
|
-
"UnknownError",ErrorCtor=this.compositeErrorRegistry.getErrorCtor(errorSchema)??Error,exception=new ErrorCtor({}),output={};for(let[name,member2]of ns.structIterator())dataObject[name]!=null&&(output[name]=this.deserializer.readValue(member2,dataObject[name]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(dataObject,output),this.mixin.decorateServiceException(Object.assign(exception,errorMetadata,{$fault:ns.getMergedTraits().error,message},output),dataObject)}}}});var
|
|
787
|
-
indexOf(".");if(dotIndex===-1)return!1;let eIndex=s2.search(/[eE]/);if(eIndex===-1)return!0;let fracDigits=eIndex-dotIndex-1;return parseInt(s2.slice(eIndex+1),10)<fracDigits}function
|
|
788
|
-
canonical?!0:/[eE]/.test(canonical)?normalized===
|
|
789
|
-
/0+$/,"")||"0";let newDotPos=intLen+exp;digits==="0"?result="0":newDotPos<=0?result="0."+"0".repeat(-newDotPos)+digits:newDotPos>=digits.length?result=digits+"0".repeat(newDotPos-digits.length):result=digits.slice(0,newDotPos)+"."+digits.slice(newDotPos)}return result.includes(".")&&(result=result.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(negative?"-":"")+result}function
|
|
790
|
-
mantissa=s2.slice(negative?1:0,eIndex),dotIndex=mantissa.indexOf("."),digits,shift;if(dotIndex===-1)digits=mantissa,shift=exp;else{digits=mantissa.slice(0,dotIndex)+mantissa.slice(dotIndex+1);let fracDigits=mantissa.length-dotIndex-1;shift=exp-fracDigits}digits=digits.replace(/0+$/,"")||"0";let result=BigInt(digits)*10n**BigInt(shift+(mantissa.replace(".","").length-digits.length));return negative?-result:result}var
|
|
791
|
-
/json/jsonReviver.js"(){init_serde()}});function
|
|
792
|
-
memberSchema,seen))return!0}else if(ns.isListSchema()||ns.isMapSchema()){if(
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
cleanValue.split(":")[0]),cleanValue.indexOf("#")>=0&&(cleanValue=cleanValue.split("#")[1]),cleanValue},
|
|
796
|
-
return
|
|
797
|
-
let reviver=
|
|
798
|
-
data)}_read(schema,value){let isObject=value!==null&&typeof value=="object",ns=NormalizedSchema.of(schema);if(isObject){if(ns.isStructSchema())return this._readStruct(ns,value);if(Array.isArray(value)&&ns.isListSchema()){let listMember=ns.getValueSchema();if(this.needsTransform(listMember))for(let i5=0;i5<value.length;++i5)value[i5]=this._read(listMember,value[i5]);return value}if(ns.isMapSchema()){let mapMember=ns.getValueSchema(),map3=value;if(this.needsTransform(mapMember))for(let k5 in map3)
|
|
799
|
-
k5==="__proto__"&&
|
|
856
|
+
"UnknownError",ErrorCtor=this.compositeErrorRegistry.getErrorCtor(errorSchema)??Error,exception=new ErrorCtor({}),output={};for(let[name,member2]of ns.structIterator())dataObject[name]!=null&&(output[name]=this.deserializer.readValue(member2,dataObject[name]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(dataObject,output),this.mixin.decorateServiceException(Object.assign(exception,errorMetadata,{$fault:ns.getMergedTraits().error,message},output),dataObject)}}}});var SerdeContextConfig2,init_ConfigurableSerdeContext2=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js"(){SerdeContextConfig2=class{serdeContext;setSerdeContext(serdeContext){this.serdeContext=serdeContext}}}});var UnionSerde2,init_UnionSerde2=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js"(){UnionSerde2=class{from;to;keys;constructor(from,to){this.from=from,this.to=to;let keys=Object.keys(this.from),set=new Set(keys);set.delete("__type"),this.keys=set}mark(key){this.keys.delete(key)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let k5=this.keys.values().next().value,v=this.from[k5];this.to.$unknown=[k5,v]}}}}});function detectBufferParsing2(){if(canParseBuffer2===void 0)try{if(typeof Buffer!="function")canParseBuffer2=!1;else{let result=JSON.parse(Buffer.from([123,125]));canParseBuffer2=result!==null&&typeof result=="object"}}catch{canParseBuffer2=!1}return canParseBuffer2}var canParseBuffer2,init_detectBufferParsing2=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js"(){}});function jsonReviver2(key,value,context){if(context?.source){let numericString=context.source;if(typeof value=="number")return value<=Number.MAX_SAFE_INTEGER&&value>=Number.MIN_SAFE_INTEGER?isRepresentable2(numericString,value)?value:new NumericValue(numericString,"bigDecimal"):isFractionalBigNumeric2(numericString)?new NumericValue(numericString,"bigDecimal"):/[eE]/.test(numericString)?expandExponentToBigInt2(numericString):BigInt(numericString)}return value}function isFractionalBigNumeric2(s2){
|
|
857
|
+
let dotIndex=s2.indexOf(".");if(dotIndex===-1)return!1;let eIndex=s2.search(/[eE]/);if(eIndex===-1)return!0;let fracDigits=eIndex-dotIndex-1;return parseInt(s2.slice(eIndex+1),10)<fracDigits}function isRepresentable2(numericString,value){if(numericString===String(value)||Object.is(value,-0))return!0;if(/[eE]/.test(numericString))return expandToDecimal2(numericString)===expandToDecimal2(String(value));let normalized=numericString.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),canonical=String(value);
|
|
858
|
+
return normalized===canonical?!0:/[eE]/.test(canonical)?normalized===expandToDecimal2(canonical):!1}function expandToDecimal2(s2){let negative=s2.startsWith("-"),abs=negative?s2.slice(1):s2,eIndex=abs.search(/[eE]/),result;if(eIndex===-1)result=abs;else{let exp=parseInt(abs.slice(eIndex+1),10),mantissa=abs.slice(0,eIndex),dotIndex=mantissa.indexOf("."),digits,intLen;dotIndex===-1?(digits=mantissa,intLen=mantissa.length):(digits=mantissa.slice(0,dotIndex)+mantissa.slice(dotIndex+1),intLen=dotIndex),
|
|
859
|
+
digits=digits.replace(/0+$/,"")||"0";let newDotPos=intLen+exp;digits==="0"?result="0":newDotPos<=0?result="0."+"0".repeat(-newDotPos)+digits:newDotPos>=digits.length?result=digits+"0".repeat(newDotPos-digits.length):result=digits.slice(0,newDotPos)+"."+digits.slice(newDotPos)}return result.includes(".")&&(result=result.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(negative?"-":"")+result}function expandExponentToBigInt2(s2){let eIndex=s2.search(/[eE]/),exp=parseInt(s2.slice(eIndex+1),10),negative=s2.
|
|
860
|
+
startsWith("-"),mantissa=s2.slice(negative?1:0,eIndex),dotIndex=mantissa.indexOf("."),digits,shift;if(dotIndex===-1)digits=mantissa,shift=exp;else{digits=mantissa.slice(0,dotIndex)+mantissa.slice(dotIndex+1);let fracDigits=mantissa.length-dotIndex-1;shift=exp-fracDigits}digits=digits.replace(/0+$/,"")||"0";let result=BigInt(digits)*10n**BigInt(shift+(mantissa.replace(".","").length-digits.length));return negative?-result:result}var init_jsonReviver2=__esm({"node_modules/@aws-sdk/core/dist-es/sub\
|
|
861
|
+
modules/protocols/json/jsonReviver.js"(){init_serde()}});function needsReviver2(schema){let ns=NormalizedSchema.of(schema),raw=ns.getSchema();if(Array.isArray(raw)&&ns.isStructSchema()){if(REVIVER_SYMBOL2 in raw)return raw[REVIVER_SYMBOL2];let result=_check2(ns,new Set);return raw[REVIVER_SYMBOL2]=result,result}return _check2(ns,new Set)}function _check2(ns,seen){let raw=ns.getSchema();if(seen.has(raw))return!1;if(seen.add(raw),ns.isBigIntegerSchema()||ns.isBigDecimalSchema())return!0;if(ns.isStructSchema()){for(let[,memberSchema]of ns.structIterator())
|
|
862
|
+
if(_check2(memberSchema,seen))return!0}else if(ns.isListSchema()||ns.isMapSchema()){if(_check2(ns.getValueSchema(),seen))return!0}else if(ns.isDocumentSchema())return!0;return!1}var REVIVER_SYMBOL2,init_needsReviver2=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js"(){init_schema();REVIVER_SYMBOL2=Symbol.for("@aws-sdk/reviver")}});var collectBodyString2,init_common2=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js"(){init_protocols();init_serde();collectBodyString2=(streamBody,context)=>collectBody(streamBody,context).then(body=>(context?.utf8Encoder??toUtf8)(body))}});async function parseJsonBody2(streamBody,context,schema){let parsingInput;if(detectBufferParsing2()&&typeof streamBody?.[Symbol.asyncIterator]=="function"){let buffer=await collectBody(streamBody,context);typeof Buffer=="function"&&(Buffer.isBuffer(buffer)?parsingInput=buffer:parsingInput=Buffer.from(buffer.buffer,buffer.byteOffset,buffer.byteLength))}if(parsingInput||(parsingInput=await collectBodyString2(streamBody,context)),parsingInput.length===0)return{};let reviver=schema&&needsReviver2(schema)?
|
|
863
|
+
jsonReviver2:void 0;try{return JSON.parse(parsingInput,reviver)}catch(e5){throw e5?.name==="SyntaxError"&&Object.defineProperty(e5,"$responseBodyText",{value:typeof parsingInput=="string"?parsingInput:parsingInput.toString("utf8")}),e5}}var parseJsonErrorBody2,findKey2,sanitizeErrorCode2,loadRestJsonErrorCode2,loadJsonRpcErrorCode2,loadErrorCode2,init_parseJsonBody2=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js"(){init_protocols();init_common2();init_detectBufferParsing2();
|
|
864
|
+
init_jsonReviver2();init_needsReviver2();parseJsonErrorBody2=async(errorBody,context)=>{let value=await parseJsonBody2(errorBody,context);return value.message=value.message??value.Message,value},findKey2=(object,key)=>Object.keys(object).find(k5=>k5.toLowerCase()===key.toLowerCase()),sanitizeErrorCode2=rawValue=>{let cleanValue=rawValue;return typeof cleanValue=="number"&&(cleanValue=cleanValue.toString()),cleanValue.indexOf(",")>=0&&(cleanValue=cleanValue.split(",")[0]),cleanValue.indexOf(":")>=
|
|
865
|
+
0&&(cleanValue=cleanValue.split(":")[0]),cleanValue.indexOf("#")>=0&&(cleanValue=cleanValue.split("#")[1]),cleanValue},loadRestJsonErrorCode2=(output,data)=>loadErrorCode2(output,data,["header","code","type"]),loadJsonRpcErrorCode2=(output,data,queryCompat=!1)=>loadErrorCode2(output,data,queryCompat?["code","header","type"]:["type","code","header"]),loadErrorCode2=({headers},data,order)=>{for(;order.length>0;)switch(order.shift()){case"header":let headerKey=findKey2(headers??{},"x-amzn-errortype");
|
|
866
|
+
if(headerKey!==void 0)return sanitizeErrorCode2(headers[headerKey]);break;case"code":let codeKey=findKey2(data??{},"code");if(codeKey&&data[codeKey]!==void 0)return sanitizeErrorCode2(data[codeKey]);break;case"type":if(data?.__type!==void 0)return sanitizeErrorCode2(data.__type);break}}}});function writeKey2(obj){Object.defineProperty(obj,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var init_writeKey2=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js"(){}});var JsonShapeDeserializer22,init_JsonShapeDeserializer22=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js"(){init_protocols();init_schema();init_serde();init_ConfigurableSerdeContext2();init_UnionSerde2();init_detectBufferParsing2();init_jsonReviver2();init_needsReviver2();init_parseJsonBody2();init_writeKey2();JsonShapeDeserializer22=class extends SerdeContextConfig2{settings;constructor(settings){super(),this.settings=settings}async read(schema,data){
|
|
867
|
+
let reviver=needsReviver2(schema)?jsonReviver2:void 0,parsed;if(typeof data=="string"){if(data.length===0)return{};parsed=JSON.parse(data,reviver)}else if(data instanceof Uint8Array&&detectBufferParsing2()){if(data.byteLength===0)return{};let buf2=Buffer.isBuffer(data)?data:Buffer.from(data.buffer,data.byteOffset,data.byteLength);parsed=JSON.parse(buf2,reviver)}else parsed=await parseJsonBody2(data,this.serdeContext,schema);return this._read(schema,parsed)}readObject(schema,data){return this._read(
|
|
868
|
+
schema,data)}_read(schema,value){let isObject=value!==null&&typeof value=="object",ns=NormalizedSchema.of(schema);if(isObject){if(ns.isStructSchema())return this._readStruct(ns,value);if(Array.isArray(value)&&ns.isListSchema()){let listMember=ns.getValueSchema();if(this.needsTransform(listMember))for(let i5=0;i5<value.length;++i5)value[i5]=this._read(listMember,value[i5]);return value}if(ns.isMapSchema()){let mapMember=ns.getValueSchema(),map3=value;if(this.needsTransform(mapMember))for(let k5 in map3)
|
|
869
|
+
k5==="__proto__"&&writeKey2(map3),map3[k5]=this._read(mapMember,map3[k5]);return map3}}if(ns.isBlobSchema()&&typeof value=="string")return fromBase64(value);let mediaType=ns.getMergedTraits().mediaType;if(ns.isStringSchema()&&typeof value=="string"&&mediaType)return mediaType==="application/json"||mediaType.endsWith("+json")?LazyJsonString.from(value):value;if(ns.isTimestampSchema()&&value!=null)switch(determineTimestampFormat(ns,this.settings)){case 5:return parseRfc3339DateTimeWithOffset(value);case 6:
|
|
800
870
|
return parseRfc7231DateTime(value);case 7:return parseEpochTimestamp(value);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",value),new Date(value)}if(ns.isBigIntegerSchema()&&(typeof value=="number"||typeof value=="string"))return BigInt(value);if(ns.isBigDecimalSchema()&&value!=null){if(value instanceof NumericValue)return value;let untyped=value;return untyped.type==="bigDecimal"&&"string"in untyped?new NumericValue(untyped.string,untyped.type):new NumericValue(
|
|
801
|
-
String(value),"bigDecimal")}if(ns.isNumericSchema()&&typeof value=="string"){switch(value){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return value}if(ns.isDocumentSchema()&&isObject)if(Array.isArray(value))for(let i5=0;i5<value.length;++i5){let v=value[i5];v instanceof NumericValue||(value[i5]=this._read(ns,v))}else{let doc=value;for(let k5 in doc){k5==="__proto__"&&
|
|
802
|
-
let union=ns.isUnionSchema(),out={},nameMap,hasType=typeof record.__type=="string",{jsonName}=this.settings;jsonName&&hasType&&(nameMap={});let unionSerde;union&&(unionSerde=new
|
|
803
|
-
if(union)unionSerde.writeUnknown();else if(hasType)for(let k5 in record){let v=record[k5],t=jsonName?nameMap[k5]??k5:k5;t in out||(out[t]=v)}return out}needsTransform(ns){return!!(ns.isBlobSchema()||ns.isTimestampSchema()||ns.isBigIntegerSchema()||ns.isBigDecimalSchema()||ns.isDocumentSchema()||ns.isStructSchema()||ns.isListSchema()||ns.isMapSchema()||ns.isStringSchema()&&ns.getMergedTraits().mediaType)}}}});var
|
|
804
|
-
s()}valueOf(){return this.s()}includes(searchString,position){return typeof searchString=="string"?this.s().includes(searchString,position):Uint8Array.prototype.includes.call(this,searchString,position)}indexOf(searchString,position){return typeof searchString=="string"?this.s().indexOf(searchString,position):Uint8Array.prototype.indexOf.call(this,searchString,position)}lastIndexOf(searchString,position){if(typeof searchString=="string")return this.s().lastIndexOf(searchString,position);
|
|
805
|
-
prototype.lastIndexOf;return position!==void 0?fn.call(this,searchString,position):fn.call(this,searchString)}startsWith(searchString,position){return this.s().startsWith(searchString,position)}endsWith(searchString,endPosition){return this.s().endsWith(searchString,endPosition)}match(regexp){return this.s().match(regexp)}replace(searchValue,replaceValue){return this.s().replace(searchValue,replaceValue)}search(regexp){return this.s().search(regexp)}split(separator,limit){return this.
|
|
806
|
-
limit)}substring(start,end2){return this.s().substring(start,end2)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(pos2){return this.s().charAt(pos2)}charCodeAt(index){return this.s().charCodeAt(index)}padStart(maxLength,fillString){return this.s().padStart(maxLength,fillString)}padEnd(maxLength,fillString){return this.s().padEnd(maxLength,fillString)}repeat(count){return this.s().repeat(count)}toUpperCase(){return this.
|
|
807
|
-
return this.s().toLowerCase()}s(){if(this.string==null){let n3=Date.now();n3>
|
|
808
|
-
123,
|
|
809
|
-
0"));
|
|
810
|
-
this.i=0,this.rootSchema=NormalizedSchema.of(schema);let ns=this.rootSchema;if(ns.isStructSchema()&&value!=null&&typeof value=="object"){this.writeValue(ns,value,void 0);let prefix=`"__type":"${ns.getName(!0)??"Unknown"}",`,z=prefix.length;this.ensure(z),this.json.copyWithin(1+z,1,this.i),
|
|
811
|
-
0)return raw;let result=this.json.subarray(0,finalPosition);return this.json=
|
|
812
|
-
json[i5++]=
|
|
813
|
-
c5<=56319){let next=j5+1<z?s2.charCodeAt(j5+1):0;if(next>=56320&&next<=57343){this.ensure(4);let{written}=
|
|
814
|
-
let{json,i:i5}=this;json[i5++]=
|
|
815
|
-
|
|
816
|
-
61,json[i5++]=61}json[i5++]=
|
|
817
|
-
mediaType.endsWith("+json"))){this.writeJsonString(LazyJsonString.from(value).toString());return}}if(isObject){if(ns.isStructSchema()){this.writeStruct(ns,value);return}if(Array.isArray(value)&&(ns.isListSchema()||ns.isDocumentSchema())){this.writeList(ns,value,ns.isDocumentSchema());return}if(ns.isMapSchema()){this.writeMap(ns,value,!1);return}if(value instanceof Uint8Array&&
|
|
818
|
-
ns.isDocumentSchema())){this.writeTimestamp(ns,value);return}if(value instanceof NumericValue){this.writeAscii(value.string);return}if(ns.isDocumentSchema()){Array.isArray(value)?this.writeList(ns,value,!0):this.writeMap(ns,value,!0);return}let json=JSON.stringify(value);this.writeAscii(json);return}if(typeof value=="string"){if(ns.isBlobSchema()){let b64=(this.serdeContext?.
|
|
819
|
-
|
|
820
|
-
"string",writtenKeys;hasType&&(writtenKeys=new Set);for(let[memberName,memberSchema]of ns.structIterator()){let item=value[memberName];if(item==null&&!memberSchema.isIdempotencyToken())continue;wroteAny&&(this.ensure(1),this.json[this.i++]=
|
|
821
|
-
memberSchema,item,ns)}if(!wroteAny&&ns.isUnionSchema()){let{$unknown}=value;if(Array.isArray($unknown)){let[k5,v]=$unknown;this.writeAsciiQuoted(k5),this.ensure(1),this.json[this.i++]=
|
|
822
|
-
json[this.i++]=
|
|
823
|
-
v==null&&!sparse||(Number.isNaN(v)||v===1/0||v===-1/0?out.push(String(v)):out.push(v))}json=JSON.stringify(out)}this.ensure(json.length*3),this.i+=
|
|
824
|
-
|
|
825
|
-
modifications&&Object.assign(value,modifications),this.ensure(json.length*3),this.i+=
|
|
826
|
-
switch(determineTimestampFormat(ns,this.settings)){case 5:{let iso=value.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(iso);return}case 6:{this.writeAsciiQuoted(dateToUtcString(value));return}case 7:{let epochSecs=String(value.getTime()/1e3);this.writeAscii(epochSecs);return}default:{let epochSecs=String(value.
|
|
827
|
-
this.
|
|
828
|
-
this.
|
|
829
|
-
|
|
830
|
-
|
|
871
|
+
String(value),"bigDecimal")}if(ns.isNumericSchema()&&typeof value=="string"){switch(value){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return value}if(ns.isDocumentSchema()&&isObject)if(Array.isArray(value))for(let i5=0;i5<value.length;++i5){let v=value[i5];v instanceof NumericValue||(value[i5]=this._read(ns,v))}else{let doc=value;for(let k5 in doc){k5==="__proto__"&&writeKey2(doc);let v=doc[k5];v instanceof NumericValue||(doc[k5]=this._read(ns,v))}}return value}_readStruct(ns,record){
|
|
872
|
+
let union=ns.isUnionSchema(),out={},nameMap,hasType=typeof record.__type=="string",{jsonName}=this.settings;jsonName&&hasType&&(nameMap={});let unionSerde;union&&(unionSerde=new UnionSerde2(record,out));for(let[memberName,memberSchema]of ns.structIterator()){let fromKey=memberName;jsonName&&(fromKey=memberSchema.getMergedTraits().jsonName??fromKey,hasType&&(nameMap[fromKey]=memberName)),union&&unionSerde.mark(fromKey),record[fromKey]!=null&&(out[memberName]=this._read(memberSchema,record[fromKey]))}
|
|
873
|
+
if(union)unionSerde.writeUnknown();else if(hasType)for(let k5 in record){let v=record[k5],t=jsonName?nameMap[k5]??k5:k5;t in out||(out[t]=v)}return out}needsTransform(ns){return!!(ns.isBlobSchema()||ns.isTimestampSchema()||ns.isBigIntegerSchema()||ns.isBigDecimalSchema()||ns.isDocumentSchema()||ns.isStructSchema()||ns.isListSchema()||ns.isMapSchema()||ns.isStringSchema()&&ns.getMergedTraits().mediaType)}}}});var JsonBytesStringAdapter2,warned2,init_JsonBytesStringAdapter2=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js"(){init_serde();JsonBytesStringAdapter2=class _JsonBytesStringAdapter extends Uint8Array{string=null;static allocUnsafe(bytes){if(typeof Buffer=="function"){let buffer=Buffer.allocUnsafe(bytes);return new _JsonBytesStringAdapter(buffer.buffer,buffer.byteOffset,buffer.byteLength)}return new _JsonBytesStringAdapter(bytes)}toString(){
|
|
874
|
+
return this.s()}valueOf(){return this.s()}includes(searchString,position){return typeof searchString=="string"?this.s().includes(searchString,position):Uint8Array.prototype.includes.call(this,searchString,position)}indexOf(searchString,position){return typeof searchString=="string"?this.s().indexOf(searchString,position):Uint8Array.prototype.indexOf.call(this,searchString,position)}lastIndexOf(searchString,position){if(typeof searchString=="string")return this.s().lastIndexOf(searchString,position);
|
|
875
|
+
let fn=Uint8Array.prototype.lastIndexOf;return position!==void 0?fn.call(this,searchString,position):fn.call(this,searchString)}startsWith(searchString,position){return this.s().startsWith(searchString,position)}endsWith(searchString,endPosition){return this.s().endsWith(searchString,endPosition)}match(regexp){return this.s().match(regexp)}replace(searchValue,replaceValue){return this.s().replace(searchValue,replaceValue)}search(regexp){return this.s().search(regexp)}split(separator,limit){return this.
|
|
876
|
+
s().split(separator,limit)}substring(start,end2){return this.s().substring(start,end2)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(pos2){return this.s().charAt(pos2)}charCodeAt(index){return this.s().charCodeAt(index)}padStart(maxLength,fillString){return this.s().padStart(maxLength,fillString)}padEnd(maxLength,fillString){return this.s().padEnd(maxLength,fillString)}repeat(count){return this.s().repeat(count)}toUpperCase(){return this.
|
|
877
|
+
s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let n3=Date.now();n3>warned2+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),warned2=n3),this.string=toUtf8(this)}return this.string}},warned2=0}});function alloc2(size){return JsonBytesStringAdapter2.allocUnsafe(size)}var encoder2,OPEN_BRACE2,CLOSE_BRACE2,OPEN_BRACKET2,CLOSE_BRACKET2,QUOTE2,COLON2,COMMA2,BACKSLASH2,TRUE2,FALSE2,NULL2,ESCAPE_TABLE2,INITIAL_BUFFER_SIZE3,JsonShapeSerializer22,init_JsonShapeSerializer22=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js"(){init_protocols();init_schema();init_serde();init_ConfigurableSerdeContext2();init_JsonBytesStringAdapter2();encoder2=new TextEncoder,
|
|
878
|
+
OPEN_BRACE2=123,CLOSE_BRACE2=125,OPEN_BRACKET2=91,CLOSE_BRACKET2=93,QUOTE2=34,COLON2=58,COMMA2=44,BACKSLASH2=92,TRUE2=new Uint8Array([116,114,117,101]),FALSE2=new Uint8Array([102,97,108,115,101]),NULL2=new Uint8Array([110,117,108,108]),ESCAPE_TABLE2=new Array(128).fill(null);ESCAPE_TABLE2[8]="b";ESCAPE_TABLE2[9]="t";ESCAPE_TABLE2[10]="n";ESCAPE_TABLE2[12]="f";ESCAPE_TABLE2[13]="r";ESCAPE_TABLE2[34]='"';ESCAPE_TABLE2[92]="\\";for(let i5=0;i5<32;i5++)ESCAPE_TABLE2[i5]===null&&(ESCAPE_TABLE2[i5]="u\
|
|
879
|
+
00"+i5.toString(16).padStart(2,"0"));INITIAL_BUFFER_SIZE3=2048;JsonShapeSerializer22=class _JsonShapeSerializer2 extends SerdeContextConfig2{settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(settings){super(),this.settings=settings,this.json=alloc2(INITIAL_BUFFER_SIZE3)}write(schema,value){this.i=0,this.rawValue=value,this.rootSchema=NormalizedSchema.of(schema),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.
|
|
880
|
+
rootSchema,value,void 0)}writeDiscriminatedDocument(schema,value){this.i=0,this.rootSchema=NormalizedSchema.of(schema);let ns=this.rootSchema;if(ns.isStructSchema()&&value!=null&&typeof value=="object"){this.writeValue(ns,value,void 0);let prefix=`"__type":"${ns.getName(!0)??"Unknown"}",`,z=prefix.length;this.ensure(z),this.json.copyWithin(1+z,1,this.i),encoder2.encodeInto(prefix,this.json.subarray(1)),this.i+=z}else this.writeValue(ns,value,void 0)}flush(){this.rootSchema=void 0;let finalPosition=this.
|
|
881
|
+
i;this.i=0;let raw=this.rawValue;if(this.rawValue=void 0,finalPosition===0)return raw;let result=this.json.subarray(0,finalPosition);return this.json=alloc2(INITIAL_BUFFER_SIZE3),result}ensure(byteCount){let{i:i5,json}=this;if(i5+byteCount>json.length){let newSize=json.length*2;for(;newSize<i5+byteCount;)newSize*=2;let next=alloc2(newSize);next.set(this.json),this.json=next}}writeAscii(s2){let z=s2.length;this.ensure(z);let{i:i5,json}=this;for(let j5=0;j5<z;++j5)json[i5]=s2.charCodeAt(j5),i5+=1;
|
|
882
|
+
this.i=i5}writeAsciiQuoted(s2){let z=s2.length;this.ensure(z+4);let{json,i:i5}=this;json[i5++]=QUOTE2;for(let j5=0;j5<z;++j5)json[i5++]=s2.charCodeAt(j5);json[i5++]=QUOTE2,this.i=i5}writeJsonString(s2){this.ensure(s2.length*3+2),this.json[this.i++]=QUOTE2;let z=s2.length;for(let j5=0;j5<z;++j5){let c5=s2.charCodeAt(j5);if(c5>34&&c5<92)this.json[this.i++]=c5;else if(c5<128){let esc=ESCAPE_TABLE2[c5];if(esc!==null){this.ensure(esc.length+1),this.json[this.i++]=BACKSLASH2;for(let k5=0;k5<esc.length;k5++)
|
|
883
|
+
this.json[this.i++]=esc.charCodeAt(k5)}else this.json[this.i++]=c5}else if(c5>=55296&&c5<=56319){let next=j5+1<z?s2.charCodeAt(j5+1):0;if(next>=56320&&next<=57343){this.ensure(4);let{written}=encoder2.encodeInto(s2.substring(j5,j5+2),this.json.subarray(this.i));this.i+=written,++j5}else this.ensure(6),this.writeUnicodeEscape(c5)}else if(c5>=56320&&c5<=57343)this.ensure(6),this.writeUnicodeEscape(c5);else{let{i:i5,json}=this;c5<2048?(json[i5++]=192|c5>>6,json[i5++]=128|c5&63):(json[i5++]=224|c5>>
|
|
884
|
+
12,json[i5++]=128|c5>>6&63,json[i5++]=128|c5&63),this.i=i5}}this.json[this.i++]=QUOTE2}writeUnicodeEscape(code){let{json,i:i5}=this;json[i5++]=BACKSLASH2,json[i5++]=117;let hex=code.toString(16).padStart(4,"0");for(let j5=0;j5<4;++j5)json[i5++]=hex.charCodeAt(j5);this.i=i5}static B64=(()=>{let chars2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",table=new Uint8Array(64);for(let i5=0;i5<64;++i5)table[i5]=chars2.charCodeAt(i5);return table})();writeBase64(data){let b64Len=Math.
|
|
885
|
+
ceil(data.length/3)*4;this.ensure(b64Len+2);let json=this.json,B64=_JsonShapeSerializer2.B64,i5=this.i;json[i5++]=QUOTE2;let len=data.length,remainder=len%3,mainLen=len-remainder;for(let j5=0;j5<mainLen;j5+=3){let a5=data[j5],b5=data[j5+1],c5=data[j5+2];json[i5++]=B64[a5>>2],json[i5++]=B64[(a5&3)<<4|b5>>4],json[i5++]=B64[(b5&15)<<2|c5>>6],json[i5++]=B64[c5&63]}if(remainder===2){let a5=data[mainLen],b5=data[mainLen+1];json[i5++]=B64[a5>>2],json[i5++]=B64[(a5&3)<<4|b5>>4],json[i5++]=B64[(b5&15)<<2],
|
|
886
|
+
json[i5++]=61}else if(remainder===1){let a5=data[mainLen];json[i5++]=B64[a5>>2],json[i5++]=B64[(a5&3)<<4],json[i5++]=61,json[i5++]=61}json[i5++]=QUOTE2,this.i=i5}writeValue(schema,value,container){if(value==null){if(container?.isStructSchema()){if(value===void 0&&NormalizedSchema.of(schema).isIdempotencyToken()){this.writeAsciiQuoted(generateIdempotencyToken());return}return}this.ensure(4),this.json.set(NULL2,this.i),this.i+=4;return}let ns=NormalizedSchema.of(schema),isObject=typeof value=="obj\
|
|
887
|
+
ect";if(ns.isStringSchema()){let mediaType=ns.getMergedTraits().mediaType;if(mediaType&&(mediaType==="application/json"||mediaType.endsWith("+json"))){this.writeJsonString(LazyJsonString.from(value).toString());return}}if(isObject){if(ns.isStructSchema()){this.writeStruct(ns,value);return}if(Array.isArray(value)&&(ns.isListSchema()||ns.isDocumentSchema())){this.writeList(ns,value,ns.isDocumentSchema());return}if(ns.isMapSchema()){this.writeMap(ns,value,!1);return}if(value instanceof Uint8Array&&
|
|
888
|
+
(ns.isBlobSchema()||ns.isDocumentSchema())){this.writeBase64(value);return}if(value instanceof Date&&(ns.isTimestampSchema()||ns.isDocumentSchema())){this.writeTimestamp(ns,value);return}if(value instanceof NumericValue){this.writeAscii(value.string);return}if(ns.isDocumentSchema()){Array.isArray(value)?this.writeList(ns,value,!0):this.writeMap(ns,value,!0);return}let json=JSON.stringify(value);this.writeAscii(json);return}if(typeof value=="string"){if(ns.isBlobSchema()){let b64=(this.serdeContext?.
|
|
889
|
+
base64Encoder??toBase64)(value);this.writeAsciiQuoted(b64);return}this.writeJsonString(value);return}if(typeof value=="number"){if(Math.abs(value)===1/0||Number.isNaN(value)){this.writeAsciiQuoted(String(value));return}let numStr=String(value);this.writeAscii(numStr);return}if(typeof value=="boolean"){this.ensure(5);let{i:i5,json}=this;value?(json.set(TRUE2,i5),i5+=4):(json.set(FALSE2,i5),i5+=5),this.i=i5;return}if(typeof value=="bigint"){this.writeAscii(value.toString());return}this.writeAscii(
|
|
890
|
+
String(value))}writeStruct(ns,value){this.ensure(2),this.json[this.i++]=OPEN_BRACE2;let wroteAny=!1,hasType=typeof value.__type=="string",writtenKeys;hasType&&(writtenKeys=new Set);for(let[memberName,memberSchema]of ns.structIterator()){let item=value[memberName];if(item==null&&!memberSchema.isIdempotencyToken())continue;wroteAny&&(this.ensure(1),this.json[this.i++]=COMMA2),wroteAny=!0;let targetKey=this.settings.jsonName?memberSchema.getMergedTraits().jsonName??memberName:memberName;writtenKeys&&
|
|
891
|
+
(writtenKeys.add(memberName),writtenKeys.add(targetKey)),this.writeAsciiQuoted(targetKey),this.json[this.i++]=COLON2,this.writeValue(memberSchema,item,ns)}if(!wroteAny&&ns.isUnionSchema()){let{$unknown}=value;if(Array.isArray($unknown)){let[k5,v]=$unknown;this.writeAsciiQuoted(k5),this.ensure(1),this.json[this.i++]=COLON2,this.writeValue(15,v,ns)}}else if(hasType)for(let k5 in value){if(writtenKeys.has(k5))continue;writtenKeys.add(k5);let v=value[k5];wroteAny&&(this.ensure(1),this.json[this.i++]=
|
|
892
|
+
COMMA2),wroteAny=!0,this.writeAsciiQuoted(k5),this.ensure(1),this.json[this.i++]=COLON2,this.writeValue(15,v,void 0)}this.ensure(1),this.json[this.i++]=CLOSE_BRACE2}writeList(ns,value,isDocument){let sparse=!!ns.getMergedTraits().sparse,valueSchema=ns.getValueSchema();if(!isDocument&&(valueSchema.isStringSchema()||valueSchema.isNumericSchema()||valueSchema.isBooleanSchema())){let hasSpecials=!1;for(let i5=0;i5<value.length;++i5){let v=value[i5];if(Number.isNaN(v)||v===1/0||v===-1/0||v==null&&!sparse){
|
|
893
|
+
hasSpecials=!0;break}}let json;if(!hasSpecials)json=JSON.stringify(value);else{let out=[];for(let i5=0;i5<value.length;++i5){let v=value[i5];v==null&&!sparse||(Number.isNaN(v)||v===1/0||v===-1/0?out.push(String(v)):out.push(v))}json=JSON.stringify(out)}this.ensure(json.length*3),this.i+=encoder2.encodeInto(json,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=OPEN_BRACKET2;let wroteFirstItem=!1;for(let i5=0;i5<value.length;++i5){let item=value[i5];(isDocument?item===
|
|
894
|
+
void 0:item==null&&!sparse)||(wroteFirstItem&&(this.ensure(1),this.json[this.i++]=COMMA2),this.writeValue(valueSchema,item,void 0),wroteFirstItem=!0)}this.ensure(1),this.json[this.i++]=CLOSE_BRACKET2}writeMap(ns,value,isDocument){let sparse=!!ns.getMergedTraits().sparse,valueSchema=ns.getValueSchema();if(!isDocument&&(valueSchema.isStringSchema()||valueSchema.isNumericSchema()||valueSchema.isBooleanSchema())){let modifications;for(let k5 in value){let v=value[k5];Number.isNaN(v)||v===1/0||v===-1/0?
|
|
895
|
+
((modifications??={})[k5]=v,value[k5]=String(v)):v===null&&!sparse&&((modifications??={})[k5]=null,value[k5]=void 0)}let json=JSON.stringify(value);modifications&&Object.assign(value,modifications),this.ensure(json.length*3),this.i+=encoder2.encodeInto(json,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=OPEN_BRACE2;let first=!0;for(let k5 in value){let v=value[k5];(isDocument?v===void 0:v==null&&!sparse)||(first||(this.ensure(1),this.json[this.i++]=COMMA2),first=!1,
|
|
896
|
+
this.writeJsonString(k5),this.ensure(1),this.json[this.i++]=COLON2,this.writeValue(valueSchema,v,void 0))}this.ensure(1),this.json[this.i++]=CLOSE_BRACE2}writeTimestamp(ns,value){switch(determineTimestampFormat(ns,this.settings)){case 5:{let iso=value.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(iso);return}case 6:{this.writeAsciiQuoted(dateToUtcString(value));return}case 7:{let epochSecs=String(value.getTime()/1e3);this.writeAscii(epochSecs);return}default:{let epochSecs=String(value.
|
|
897
|
+
getTime()/1e3);this.writeAscii(epochSecs);return}}}}}});var JsonCodec22,init_JsonCodec22=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js"(){init_ConfigurableSerdeContext2();init_JsonShapeDeserializer22();init_JsonShapeSerializer22();JsonCodec22=class extends SerdeContextConfig2{settings;constructor(settings){super(),this.settings=settings}createSerializer(){let serializer=new JsonShapeSerializer22(this.settings);return serializer.setSerdeContext(this.serdeContext),serializer}createDeserializer(){let deserializer=new JsonShapeDeserializer22(
|
|
898
|
+
this.settings);return deserializer.setSerdeContext(this.serdeContext),deserializer}}}});var AwsJsonRpcProtocol,init_AwsJsonRpcProtocol=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js"(){init_protocols();init_schema();init_ProtocolLib();init_JsonCodec22();init_parseJsonBody2();AwsJsonRpcProtocol=class extends RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace,errorTypeRegistries:errorTypeRegistries5,serviceTarget,awsQueryCompatible,jsonCodec}){super({defaultNamespace,errorTypeRegistries:errorTypeRegistries5}),
|
|
899
|
+
this.serviceTarget=serviceTarget,this.codec=jsonCodec??new JsonCodec22({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!awsQueryCompatible,this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(operationSchema,input,context){let request=await super.serializeRequest(operationSchema,input,context);return request.path.endsWith("/")||(request.path+="/"),
|
|
900
|
+
request.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,request.headers["x-amz-target"]=`${this.serviceTarget}.${operationSchema.name}`,this.awsQueryCompatible&&(request.headers["x-amzn-query-mode"]="true"),(deref(operationSchema.input)==="unit"||!request.body)&&(request.body="{}"),request}getPayloadCodec(){return this.codec}async handleError(operationSchema,context,response,dataObject,metadata){let{awsQueryCompatible}=this;awsQueryCompatible&&this.mixin.setQueryCompatError(
|
|
901
|
+
dataObject,response);let errorIdentifier=loadJsonRpcErrorCode2(response,dataObject,awsQueryCompatible)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,errorIdentifier,this.options.defaultNamespace);let{errorSchema,errorMetadata}=await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier,this.options.defaultNamespace,response,dataObject,metadata,awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),ns=NormalizedSchema.of(errorSchema),message=dataObject.message??dataObject.
|
|
831
902
|
Message??"UnknownError",ErrorCtor=this.compositeErrorRegistry.getErrorCtor(errorSchema)??Error,exception=new ErrorCtor({}),output={},errorDeserializer=this.codec.createDeserializer();for(let[name,member2]of ns.structIterator())dataObject[name]!=null&&(output[name]=errorDeserializer.readObject(member2,dataObject[name]));throw awsQueryCompatible&&this.mixin.queryCompatOutput(dataObject,output),this.mixin.decorateServiceException(Object.assign(exception,errorMetadata,{$fault:ns.getMergedTraits().error,
|
|
832
903
|
message},output),dataObject)}}}});var AwsJson1_0Protocol,init_AwsJson1_0Protocol=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js"(){init_AwsJsonRpcProtocol();AwsJson1_0Protocol=class extends AwsJsonRpcProtocol{constructor({defaultNamespace,errorTypeRegistries:errorTypeRegistries5,serviceTarget,awsQueryCompatible,jsonCodec}){super({defaultNamespace,errorTypeRegistries:errorTypeRegistries5,serviceTarget,awsQueryCompatible,jsonCodec})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){
|
|
833
904
|
return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}}});var AwsJson1_1Protocol,init_AwsJson1_1Protocol=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js"(){init_AwsJsonRpcProtocol();AwsJson1_1Protocol=class extends AwsJsonRpcProtocol{constructor({defaultNamespace,errorTypeRegistries:errorTypeRegistries5,serviceTarget,awsQueryCompatible,jsonCodec}){super({defaultNamespace,errorTypeRegistries:errorTypeRegistries5,serviceTarget,awsQueryCompatible,jsonCodec})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){
|
|
834
|
-
return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}}});var AwsRestJsonProtocol,init_AwsRestJsonProtocol=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js"(){init_protocols();init_schema();init_ProtocolLib();
|
|
835
|
-
timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=jsonCodec??new
|
|
905
|
+
return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}}});var AwsRestJsonProtocol,init_AwsRestJsonProtocol=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js"(){init_protocols();init_schema();init_ProtocolLib();init_JsonCodec22();init_parseJsonBody2();AwsRestJsonProtocol=class extends HttpBindingProtocol{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace,errorTypeRegistries:errorTypeRegistries5,jsonCodec}){super({defaultNamespace,errorTypeRegistries:errorTypeRegistries5});let settings={
|
|
906
|
+
timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=jsonCodec??new JsonCodec22(settings),this.serializer=new HttpInterceptingShapeSerializer(this.codec.createSerializer(),settings),this.deserializer=new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),settings)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(serdeContext){this.codec.setSerdeContext(serdeContext),super.setSerdeContext(serdeContext)}async serializeRequest(operationSchema,input,context){
|
|
836
907
|
let request=await super.serializeRequest(operationSchema,input,context),inputSchema=NormalizedSchema.of(operationSchema.input);if(!request.headers["content-type"]){let contentType=this.mixin.resolveRestContentType(this.getDefaultContentType(),inputSchema);contentType&&(request.headers["content-type"]=contentType)}return request.body==null&&request.headers["content-type"]===this.getDefaultContentType()&&(request.body="{}"),request}async deserializeResponse(operationSchema,context,response){let output=await super.
|
|
837
|
-
deserializeResponse(operationSchema,context,response),outputSchema=NormalizedSchema.of(operationSchema.output);for(let[name,member2]of outputSchema.structIterator())member2.getMemberTraits().httpPayload&&!(name in output)&&(output[name]=null);return output}async handleError(operationSchema,context,response,dataObject,metadata){let errorIdentifier=
|
|
908
|
+
deserializeResponse(operationSchema,context,response),outputSchema=NormalizedSchema.of(operationSchema.output);for(let[name,member2]of outputSchema.structIterator())member2.getMemberTraits().httpPayload&&!(name in output)&&(output[name]=null);return output}async handleError(operationSchema,context,response,dataObject,metadata){let errorIdentifier=loadRestJsonErrorCode2(response,dataObject)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,errorIdentifier,this.options.defaultNamespace);let{
|
|
838
909
|
errorSchema,errorMetadata}=await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier,this.options.defaultNamespace,response,dataObject,metadata),ns=NormalizedSchema.of(errorSchema),message=dataObject.message??dataObject.Message??"UnknownError",ErrorCtor=this.compositeErrorRegistry.getErrorCtor(errorSchema)??Error,exception=new ErrorCtor({});await this.deserializeHttpMessage(errorSchema,context,response,dataObject);let output={},errorDeserializer=this.codec.createDeserializer();for(let[
|
|
839
|
-
name,member2]of ns.structIterator()){let target=member2.getMergedTraits().jsonName??name;output[name]=errorDeserializer.readObject(member2,dataObject[target])}throw this.mixin.decorateServiceException(Object.assign(exception,errorMetadata,{$fault:ns.getMergedTraits().error,message},output),dataObject)}getDefaultContentType(){return"application/json"}}}});var
|
|
840
|
-
schema)?
|
|
841
|
-
out));for(let[memberName,memberSchema]of ns.structIterator()){let fromKey=memberName;jsonName&&(fromKey=memberSchema.getMergedTraits().jsonName??fromKey,nameMap[fromKey]=memberName),union&&unionSerde.mark(fromKey),record[fromKey]!=null&&(out[memberName]=this._read(memberSchema,record[fromKey]))}if(union)unionSerde.writeUnknown();else if(typeof record.__type=="string")for(let k5 in record){let v=record[k5],t=jsonName?nameMap[k5]??k5:k5;t in out||(out[t]=v)}return out}if(Array.isArray(value)&&
|
|
842
|
-
let listMember=ns.getValueSchema(),out=[];for(let item of value)out.push(this._read(listMember,item));return out}if(ns.isMapSchema()){let mapMember=ns.getValueSchema(),out={};for(let _k in value)_k==="__proto__"&&
|
|
843
|
-
endsWith("+json")?LazyJsonString.from(value):value;if(ns.isTimestampSchema()&&value!=null)switch(determineTimestampFormat(ns,this.settings)){case 5:return parseRfc3339DateTimeWithOffset(value);case 6:return parseRfc7231DateTime(value);case 7:return parseEpochTimestamp(value);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",value),new Date(value)}if(ns.isBigIntegerSchema()&&(typeof value=="number"||typeof value=="string"))return BigInt(
|
|
844
|
-
value!=null){if(value instanceof NumericValue)return value;let untyped=value;return untyped.type==="bigDecimal"&&"string"in untyped?new NumericValue(untyped.string,untyped.type):new NumericValue(String(value),"bigDecimal")}if(ns.isNumericSchema()&&typeof value=="string"){switch(value){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return value}if(ns.isDocumentSchema())if(isObject){let out=Array.isArray(value)?[]:{};for(let k5 in value){
|
|
845
|
-
v instanceof NumericValue?out[k5]=v:out[k5]=this._read(ns,v)}return out}else return structuredClone(value);return value}}}});var
|
|
846
|
-
let v=`${
|
|
847
|
-
return json;for(let[key,value]of this.values)json=json.replace(key,value);return json}}}});var
|
|
848
|
-
this.rootSchema,value)}flush(){let{rootSchema,useReplacer}=this;if(this.rootSchema=void 0,this.useReplacer=!1,rootSchema?.isStructSchema()||rootSchema?.isDocumentSchema()){if(!useReplacer)return JSON.stringify(this.buffer);let replacer=new
|
|
849
|
-
getName(!0))}_write(schema,value,container){let isObject=value!==null&&typeof value=="object",ns=NormalizedSchema.of(schema);if(isObject){if(ns.isStructSchema()){let record=value,out={},{jsonName}=this.settings,nameMap;jsonName&&(nameMap={});let outCount=0;for(let[memberName,memberSchema]of ns.structIterator()){let serializableValue=this._write(memberSchema,record[memberName],ns);if(serializableValue!==void 0){let targetKey=memberName;jsonName&&(targetKey=memberSchema.getMergedTraits().
|
|
850
|
-
memberName,nameMap[memberName]=targetKey),out[targetKey]=serializableValue,outCount++}}if(ns.isUnionSchema()&&outCount===0){let{$unknown}=record;if(Array.isArray($unknown)){let[k5,v]=$unknown;k5==="__proto__"&&
|
|
851
|
-
out=[],sparse=!!ns.getMergedTraits().sparse;for(let item of value)(sparse||item!=null)&&out.push(this._write(listMember,item));return out}if(ns.isMapSchema()){let mapMember=ns.getValueSchema(),out={},sparse=!!ns.getMergedTraits().sparse;for(let _k in value){let _v=value[_k];(sparse||_v!=null)&&(_k==="__proto__"&&
|
|
852
|
-
value);if(value instanceof Date&&(ns.isTimestampSchema()||ns.isDocumentSchema()))switch(determineTimestampFormat(ns,this.settings)){case 5:return value.toISOString().replace(".000Z","Z");case 6:return dateToUtcString(value);case 7:return value.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",value),value.getTime()/1e3}value instanceof NumericValue&&(this.useReplacer=!0)}if(!(value===null&&container?.isStructSchema())){if(ns.isStringSchema()){if(typeof value>
|
|
910
|
+
name,member2]of ns.structIterator()){let target=member2.getMergedTraits().jsonName??name;output[name]=errorDeserializer.readObject(member2,dataObject[target])}throw this.mixin.decorateServiceException(Object.assign(exception,errorMetadata,{$fault:ns.getMergedTraits().error,message},output),dataObject)}getDefaultContentType(){return"application/json"}}}});var JsonShapeDeserializer3,init_JsonShapeDeserializer3=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js"(){init_protocols();init_schema();init_serde();init_serde();init_ConfigurableSerdeContext2();init_UnionSerde2();init_jsonReviver2();init_needsReviver2();init_parseJsonBody2();init_writeKey2();JsonShapeDeserializer3=class extends SerdeContextConfig2{settings;constructor(settings){super(),this.settings=settings}async read(schema,data){let reviver=needsReviver2(
|
|
911
|
+
schema)?jsonReviver2:void 0;return this._read(schema,typeof data=="string"?JSON.parse(data,reviver):await parseJsonBody2(data,this.serdeContext,schema))}readObject(schema,data){return this._read(schema,data)}_read(schema,value){let isObject=value!==null&&typeof value=="object",ns=NormalizedSchema.of(schema);if(isObject){if(ns.isStructSchema()){let record=value,union=ns.isUnionSchema(),out={},nameMap,{jsonName}=this.settings;jsonName&&(nameMap={});let unionSerde;union&&(unionSerde=new UnionSerde2(
|
|
912
|
+
record,out));for(let[memberName,memberSchema]of ns.structIterator()){let fromKey=memberName;jsonName&&(fromKey=memberSchema.getMergedTraits().jsonName??fromKey,nameMap[fromKey]=memberName),union&&unionSerde.mark(fromKey),record[fromKey]!=null&&(out[memberName]=this._read(memberSchema,record[fromKey]))}if(union)unionSerde.writeUnknown();else if(typeof record.__type=="string")for(let k5 in record){let v=record[k5],t=jsonName?nameMap[k5]??k5:k5;t in out||(out[t]=v)}return out}if(Array.isArray(value)&&
|
|
913
|
+
ns.isListSchema()){let listMember=ns.getValueSchema(),out=[];for(let item of value)out.push(this._read(listMember,item));return out}if(ns.isMapSchema()){let mapMember=ns.getValueSchema(),out={};for(let _k in value)_k==="__proto__"&&writeKey2(out),out[_k]=this._read(mapMember,value[_k]);return out}}if(ns.isBlobSchema()&&typeof value=="string")return fromBase64(value);let mediaType=ns.getMergedTraits().mediaType;if(ns.isStringSchema()&&typeof value=="string"&&mediaType)return mediaType==="applicat\
|
|
914
|
+
ion/json"||mediaType.endsWith("+json")?LazyJsonString.from(value):value;if(ns.isTimestampSchema()&&value!=null)switch(determineTimestampFormat(ns,this.settings)){case 5:return parseRfc3339DateTimeWithOffset(value);case 6:return parseRfc7231DateTime(value);case 7:return parseEpochTimestamp(value);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",value),new Date(value)}if(ns.isBigIntegerSchema()&&(typeof value=="number"||typeof value=="string"))return BigInt(
|
|
915
|
+
value);if(ns.isBigDecimalSchema()&&value!=null){if(value instanceof NumericValue)return value;let untyped=value;return untyped.type==="bigDecimal"&&"string"in untyped?new NumericValue(untyped.string,untyped.type):new NumericValue(String(value),"bigDecimal")}if(ns.isNumericSchema()&&typeof value=="string"){switch(value){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return value}if(ns.isDocumentSchema())if(isObject){let out=Array.isArray(value)?[]:{};for(let k5 in value){
|
|
916
|
+
k5==="__proto__"&&writeKey2(out);let v=value[k5];v instanceof NumericValue?out[k5]=v:out[k5]=this._read(ns,v)}return out}else return structuredClone(value);return value}}}});var NUMERIC_CONTROL_CHAR2,JsonReplacer2,init_jsonReplacer2=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js"(){init_serde();NUMERIC_CONTROL_CHAR2="\u039D",JsonReplacer2=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(key,value)=>{if(value instanceof NumericValue){
|
|
917
|
+
let v=`${NUMERIC_CONTROL_CHAR2+"nv"+this.counter++}_`+value.string;return this.values.set(`"${v}"`,value.string),v}if(typeof value=="bigint"){let s2=value.toString(),v=`${NUMERIC_CONTROL_CHAR2+"b"+this.counter++}_`+s2;return this.values.set(`"${v}"`,s2),v}return value}}replaceInJson(json){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===
|
|
918
|
+
0)return json;for(let[key,value]of this.values)json=json.replace(key,value);return json}}}});var JsonShapeSerializer3,init_JsonShapeSerializer3=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js"(){init_protocols();init_schema();init_serde();init_ConfigurableSerdeContext2();init_jsonReplacer2();init_writeKey2();JsonShapeSerializer3=class extends SerdeContextConfig2{settings;buffer;useReplacer=!1;rootSchema;constructor(settings){super(),this.settings=settings}write(schema,value){this.rootSchema=NormalizedSchema.of(schema),this.buffer=this.
|
|
919
|
+
_write(this.rootSchema,value)}flush(){let{rootSchema,useReplacer}=this;if(this.rootSchema=void 0,this.useReplacer=!1,rootSchema?.isStructSchema()||rootSchema?.isDocumentSchema()){if(!useReplacer)return JSON.stringify(this.buffer);let replacer=new JsonReplacer2;return replacer.replaceInJson(JSON.stringify(this.buffer,replacer.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(schema,value){this.write(schema,value),typeof this.buffer=="object"&&(this.buffer.__type=NormalizedSchema.
|
|
920
|
+
of(schema).getName(!0))}_write(schema,value,container){let isObject=value!==null&&typeof value=="object",ns=NormalizedSchema.of(schema);if(isObject){if(ns.isStructSchema()){let record=value,out={},{jsonName}=this.settings,nameMap;jsonName&&(nameMap={});let outCount=0;for(let[memberName,memberSchema]of ns.structIterator()){let serializableValue=this._write(memberSchema,record[memberName],ns);if(serializableValue!==void 0){let targetKey=memberName;jsonName&&(targetKey=memberSchema.getMergedTraits().
|
|
921
|
+
jsonName??memberName,nameMap[memberName]=targetKey),out[targetKey]=serializableValue,outCount++}}if(ns.isUnionSchema()&&outCount===0){let{$unknown}=record;if(Array.isArray($unknown)){let[k5,v]=$unknown;k5==="__proto__"&&writeKey2(out),out[k5]=this._write(15,v)}}else if(typeof record.__type=="string")for(let k5 in record){let v=record[k5],targetKey=jsonName?nameMap[k5]??k5:k5;targetKey in out||(out[targetKey]=this._write(15,v))}return out}if(Array.isArray(value)&&ns.isListSchema()){let listMember=ns.
|
|
922
|
+
getValueSchema(),out=[],sparse=!!ns.getMergedTraits().sparse;for(let item of value)(sparse||item!=null)&&out.push(this._write(listMember,item));return out}if(ns.isMapSchema()){let mapMember=ns.getValueSchema(),out={},sparse=!!ns.getMergedTraits().sparse;for(let _k in value){let _v=value[_k];(sparse||_v!=null)&&(_k==="__proto__"&&writeKey2(out),out[_k]=this._write(mapMember,_v))}return out}if(value instanceof Uint8Array&&ns.isBlobSchema())return ns===this.rootSchema?value:(this.serdeContext?.base64Encoder??
|
|
923
|
+
toBase64)(value);if(value instanceof Date&&(ns.isTimestampSchema()||ns.isDocumentSchema()))switch(determineTimestampFormat(ns,this.settings)){case 5:return value.toISOString().replace(".000Z","Z");case 6:return dateToUtcString(value);case 7:return value.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",value),value.getTime()/1e3}value instanceof NumericValue&&(this.useReplacer=!0)}if(!(value===null&&container?.isStructSchema())){if(ns.isStringSchema()){if(typeof value>
|
|
853
924
|
"u"&&ns.isIdempotencyToken())return generateIdempotencyToken();let mediaType=ns.getMergedTraits().mediaType;return value!=null&&mediaType&&(mediaType==="application/json"||mediaType.endsWith("+json"))?LazyJsonString.from(value):value}if(typeof value=="number")return Math.abs(value)===1/0||isNaN(value)?String(value):value;if(typeof value=="string"&&ns.isBlobSchema())return ns===this.rootSchema?value:(this.serdeContext?.base64Encoder??toBase64)(value);if(typeof value=="bigint"&&(this.useReplacer=!0),
|
|
854
|
-
ns.isDocumentSchema())if(isObject){if(value instanceof Uint8Array)return(this.serdeContext?.base64Encoder??toBase64)(value);let out=Array.isArray(value)?[]:{};for(let k5 in value){let v=value[k5];k5==="__proto__"&&
|
|
925
|
+
ns.isDocumentSchema())if(isObject){if(value instanceof Uint8Array)return(this.serdeContext?.base64Encoder??toBase64)(value);let out=Array.isArray(value)?[]:{};for(let k5 in value){let v=value[k5];k5==="__proto__"&&writeKey2(out),v instanceof NumericValue?(this.useReplacer=!0,out[k5]=v):out[k5]=this._write(ns,v)}return out}else return structuredClone(value);return value}}}}});var JsonCodec3,init_JsonCodec3=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js"(){init_ConfigurableSerdeContext2();init_JsonShapeDeserializer3();init_JsonShapeSerializer3();JsonCodec3=class extends SerdeContextConfig2{settings;constructor(settings){super(),this.settings=settings}createSerializer(){let serializer=new JsonShapeSerializer3(this.settings);return serializer.setSerdeContext(this.serdeContext),serializer}createDeserializer(){let deserializer=new JsonShapeDeserializer3(
|
|
855
926
|
this.settings);return deserializer.setSerdeContext(this.serdeContext),deserializer}}}});var require_dist_cjs10=__commonJS({"node_modules/@aws-sdk/xml-builder/dist-cjs/index.js"(exports){var ATTR_ESCAPE_RE=/[&<>"]/g,ATTR_ESCAPE_MAP={"&":"&","<":"<",">":">",'"':"""};function escapeAttribute(value){return value.replace(ATTR_ESCAPE_RE,ch=>ATTR_ESCAPE_MAP[ch])}var ELEMENT_ESCAPE_RE=/[&"'<>\r\n\u0085\u2028]/g,ELEMENT_ESCAPE_MAP={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","\x85":"…","\u2028":"
"};function escapeElement(value){
|
|
856
927
|
return value.replace(ELEMENT_ESCAPE_RE,ch=>ELEMENT_ESCAPE_MAP[ch])}var XmlText2=class{value;constructor(value){this.value=value}toString(){return escapeElement(""+this.value)}},XmlNode2=class _XmlNode{name;children;attributes={};static of(name,childText,withName){let node=new _XmlNode(name);return childText!==void 0&&node.addChildNode(new XmlText2(childText)),withName!==void 0&&node.withName(withName),node}constructor(name,children=[]){this.name=name,this.children=children}withName(name){return this.
|
|
857
928
|
name=name,this}addAttribute(name,value){return this.attributes[name]=value,this}addChildNode(child){return this.children.push(child),this}removeAttribute(name){return delete this.attributes[name],this}n(name){return this.name=name,this}c(child){return this.children.push(child),this}a(name,value){return value!=null&&(this.attributes[name]=value),this}cc(input,field,withName=field){if(input[field]!=null){let node=_XmlNode.of(field,input[field]).withName(withName);this.c(node)}}l(input,listName,memberName,valueProvider){
|
|
858
929
|
input[listName]!=null&&valueProvider().map(node=>{node.withName(memberName),this.c(node)})}lc(input,listName,memberName,valueProvider){if(input[listName]!=null){let nodes5=valueProvider(),containerNode=new _XmlNode(memberName);nodes5.map(node=>{containerNode.c(node)}),this.c(containerNode)}}toString(){let hasChildren=!!this.children.length,xmlText=`<${this.name}`,attributes=this.attributes;for(let attributeName of Object.keys(attributes)){let attribute=attributes[attributeName];attribute!=null&&
|
|
859
|
-
(xmlText+=` ${attributeName}="${escapeAttribute(""+attribute)}"`)}return xmlText+=hasChildren?`>${this.children.map(c5=>c5.toString()).join("")}</${this.name}>`:"/>"}};function
|
|
930
|
+
(xmlText+=` ${attributeName}="${escapeAttribute(""+attribute)}"`)}return xmlText+=hasChildren?`>${this.children.map(c5=>c5.toString()).join("")}</${this.name}>`:"/>"}};function writeKey3(obj){Object.defineProperty(obj,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}function parseXML3(xml){return new AwsXmlParser(xml).parse()}var AwsXmlParser=class _AwsXmlParser{x;i=0;z;constructor(x){this.x=x,this.x=x.replace(/\r\n?/g,`
|
|
860
931
|
`),this.z=this.x.length}parse(){let p3=this,{z}=p3;for(;p3.i<z&&(p3.trim(),!(p3.i>=z));)if(p3.isNext("<?"))p3.readTo("?>"),p3.trim();else if(p3.isNext("<!--"))p3.readTo("-->"),p3.trim();else if(p3.isNext("<!DOCTYPE",!1))p3.skipDoctype(),p3.trim();else if(p3.x[p3.i]==="<"){let root5=p3.parseTag();return{[root5.tag]:root5.value}}else throw new Error("@aws-sdk XML parse error: unexpected content.");throw new Error("@aws-sdk XML parse error: no root element.")}isNext(s2,caseSensitive=!0){let p3=this;
|
|
861
932
|
return caseSensitive?p3.x.startsWith(s2,p3.i):p3.x.toLowerCase().startsWith(s2.toLowerCase(),p3.i)}readTo(stop){let p3=this,_i=p3.x.indexOf(stop,p3.i);if(_i===-1)throw new Error(`@aws-sdk XML parse error: expected "${stop}" not found.`);let result=p3.x.slice(p3.i,_i);return p3.i=_i+stop.length,result}trim(){let p3=this;for(;p3.i<p3.z&&` \r
|
|
862
933
|
`.includes(p3.x[p3.i]);)++p3.i}readAttrValue(){let p3=this,quote=p3.x[p3.i];++p3.i;let value="";for(;p3.i<p3.z&&p3.x[p3.i]!==quote;)value+=p3.x[p3.i++];return++p3.i,p3.decodeEntities(value)}parseTag(){let p3=this;++p3.i;let tag="";for(;p3.i<p3.z&&!` \r
|
|
863
934
|
>/`.includes(p3.x[p3.i]);)tag+=p3.x[p3.i++];let hasAttrs=!1,attrs={};for(;p3.i<p3.z&&(p3.trim(),!">/".includes(p3.x[p3.i]));){let name="";for(;p3.i<p3.z&&!`= \r
|
|
864
|
-
>/?`.includes(p3.x[p3.i]);)name+=p3.x[p3.i++];if(p3.trim(),p3.x[p3.i]!=="=")break;++p3.i,p3.trim(),name==="__proto__"&&
|
|
935
|
+
>/?`.includes(p3.x[p3.i]);)name+=p3.x[p3.i++];if(p3.trim(),p3.x[p3.i]!=="=")break;++p3.i,p3.trim(),name==="__proto__"&&writeKey3(attrs),attrs[name]=p3.readAttrValue(),hasAttrs=!0}if(p3.i>=p3.z)throw new Error("@aws-sdk XML parse error: unexpected end of input.");if(p3.x[p3.i]==="/"){if(++p3.i,p3.i>=p3.z||p3.x[p3.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag.");return++p3.i,{tag,value:hasAttrs?attrs:""}}if(p3.x[p3.i]!==">")throw new Error("@aws-sdk \
|
|
865
936
|
XML parse error: expected > at the end of opening tag.");++p3.i;let textParts=[],childTags=[],hasElementChild=!1;for(;p3.i<p3.z&&!p3.isNext("</");)if(p3.x[p3.i]==="<")p3.isNext("<!--")?p3.readTo("-->"):p3.isNext("<![CDATA[")?(p3.i+=9,textParts.push(p3.readTo("]]>"))):p3.isNext("<?")?p3.readTo("?>"):(hasElementChild=!0,childTags.push(p3.parseTag()));else{let text="";for(;p3.i<p3.z&&p3.x[p3.i]!=="<";)text+=p3.x[p3.i++];textParts.push(p3.decodeEntities(text))}if(!p3.isNext("</"))throw new Error(`@a\
|
|
866
937
|
ws-sdk XML parse error: missing closing tag </${tag}>.`);p3.i+=2;let closeTag=p3.readTo(">").trim();if(closeTag!==tag)throw new Error(`@aws-sdk XML parse error: mismatched tags <${tag}> and </${closeTag}>.`);if(!hasAttrs&&textParts.length===0&&!hasElementChild)return{tag,value:""};if(!hasAttrs&&!hasElementChild){let text=textParts.length===1?textParts[0]:textParts.join("");return text.trim()===""&&text.includes(`
|
|
867
938
|
`)?{tag,value:""}:{tag,value:text}}let obj={};for(let text of textParts)text.trim()===""&&text.includes(`
|
|
868
|
-
`)||(obj["#text"]="#text"in obj?obj["#text"]+text:text);for(let child of childTags)child.tag==="__proto__"&&
|
|
869
|
-
x[p3.i];if(c5==="[")++depth;else if(c5==="]")--depth;else if(c5===">"&&depth===0){++p3.i;return}++p3.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(s2){return s2.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(_,hex,dec,named)=>hex?String.fromCharCode(parseInt(hex,16)):dec?String.fromCharCode(parseInt(dec,10)):_AwsXmlParser.ENTITIES[named]??"")}};exports.XmlNode=XmlNode2;exports.XmlText=XmlText2;exports.parseXML=parseXML3}});var import_xml_builder,XmlShapeDeserializer,init_XmlShapeDeserializer=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js"(){import_xml_builder=__toESM(require_dist_cjs10());init_client2();init_protocols();init_schema();init_serde();
|
|
870
|
-
settings)}setSerdeContext(serdeContext){this.serdeContext=serdeContext,this.stringDeserializer.setSerdeContext(serdeContext)}read(schema,bytes,key){let ns=NormalizedSchema.of(schema),memberSchemas=ns.getMemberSchemas();if(ns.isStructSchema()&&ns.isMemberSchema()&&!!Object.values(memberSchemas).find(memberNs=>!!memberNs.getMemberTraits().eventPayload)){let output={},memberName=Object.keys(memberSchemas)[0];return memberSchemas[memberName].isBlobSchema()?output[memberName]=
|
|
871
|
-
this.read(memberSchemas[memberName],bytes),output}let xmlString=(this.serdeContext?.utf8Encoder??toUtf8)(bytes),parsedObject=this.parseXml(xmlString);return this.readSchema(schema,key?parsedObject[key]:parsedObject)}readSchema(_schema,value){let ns=NormalizedSchema.of(_schema);if(ns.isUnitSchema())return;let traits=ns.getMergedTraits();if(ns.isListSchema()&&!Array.isArray(value))return this.readSchema(ns,[value]);if(value==null)return value;if(typeof value=="object"){let flat=!!traits.
|
|
872
|
-
if(ns.isListSchema()){let listValue=ns.getValueSchema(),buffer2=[],sourceKey=listValue.getMergedTraits().xmlName??"member",source=flat?value:(value[0]??value)[sourceKey];if(source==null)return buffer2;let sourceArray=Array.isArray(source)?source:[source];for(let v of sourceArray)buffer2.push(this.readSchema(listValue,v));return buffer2}let buffer={};if(ns.isMapSchema()){let keyNs=ns.getKeySchema(),memberNs=ns.getValueSchema(),entries;flat?entries=Array.isArray(value)?value:[value]:entries=
|
|
873
|
-
isArray(value.entry)?value.entry:[value.entry];let keyProperty=keyNs.getMergedTraits().xmlName??"key",valueProperty=memberNs.getMergedTraits().xmlName??"value";for(let entry of entries){let key=entry[keyProperty],value2=entry[valueProperty];key==="__proto__"&&
|
|
939
|
+
`)||(obj["#text"]="#text"in obj?obj["#text"]+text:text);for(let child of childTags)child.tag==="__proto__"&&writeKey3(obj),child.tag in obj?Array.isArray(obj[child.tag])?obj[child.tag].push(child.value):obj[child.tag]=[obj[child.tag],child.value]:obj[child.tag]=child.value;for(let[k5,v]of Object.entries(attrs))k5==="__proto__"&&writeKey3(obj),obj[k5]=v;return{tag,value:obj}}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};skipDoctype(){let p3=this;p3.i+=9;let depth=0;for(;p3.i<p3.z;){let c5=p3.
|
|
940
|
+
x[p3.i];if(c5==="[")++depth;else if(c5==="]")--depth;else if(c5===">"&&depth===0){++p3.i;return}++p3.i}throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE.")}decodeEntities(s2){return s2.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g,(_,hex,dec,named)=>hex?String.fromCharCode(parseInt(hex,16)):dec?String.fromCharCode(parseInt(dec,10)):_AwsXmlParser.ENTITIES[named]??"")}};exports.XmlNode=XmlNode2;exports.XmlText=XmlText2;exports.parseXML=parseXML3}});var import_xml_builder,XmlShapeDeserializer,init_XmlShapeDeserializer=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js"(){import_xml_builder=__toESM(require_dist_cjs10());init_client2();init_protocols();init_schema();init_serde();init_ConfigurableSerdeContext2();init_UnionSerde2();init_writeKey2();XmlShapeDeserializer=class extends SerdeContextConfig2{settings;stringDeserializer;constructor(settings){super(),this.settings=settings,this.stringDeserializer=
|
|
941
|
+
new FromStringShapeDeserializer(settings)}setSerdeContext(serdeContext){this.serdeContext=serdeContext,this.stringDeserializer.setSerdeContext(serdeContext)}read(schema,bytes,key){let ns=NormalizedSchema.of(schema),memberSchemas=ns.getMemberSchemas();if(ns.isStructSchema()&&ns.isMemberSchema()&&!!Object.values(memberSchemas).find(memberNs=>!!memberNs.getMemberTraits().eventPayload)){let output={},memberName=Object.keys(memberSchemas)[0];return memberSchemas[memberName].isBlobSchema()?output[memberName]=
|
|
942
|
+
bytes:output[memberName]=this.read(memberSchemas[memberName],bytes),output}let xmlString=(this.serdeContext?.utf8Encoder??toUtf8)(bytes),parsedObject=this.parseXml(xmlString);return this.readSchema(schema,key?parsedObject[key]:parsedObject)}readSchema(_schema,value){let ns=NormalizedSchema.of(_schema);if(ns.isUnitSchema())return;let traits=ns.getMergedTraits();if(ns.isListSchema()&&!Array.isArray(value))return this.readSchema(ns,[value]);if(value==null)return value;if(typeof value=="object"){let flat=!!traits.
|
|
943
|
+
xmlFlattened;if(ns.isListSchema()){let listValue=ns.getValueSchema(),buffer2=[],sourceKey=listValue.getMergedTraits().xmlName??"member",source=flat?value:(value[0]??value)[sourceKey];if(source==null)return buffer2;let sourceArray=Array.isArray(source)?source:[source];for(let v of sourceArray)buffer2.push(this.readSchema(listValue,v));return buffer2}let buffer={};if(ns.isMapSchema()){let keyNs=ns.getKeySchema(),memberNs=ns.getValueSchema(),entries;flat?entries=Array.isArray(value)?value:[value]:entries=
|
|
944
|
+
Array.isArray(value.entry)?value.entry:[value.entry];let keyProperty=keyNs.getMergedTraits().xmlName??"key",valueProperty=memberNs.getMergedTraits().xmlName??"value";for(let entry of entries){let key=entry[keyProperty],value2=entry[valueProperty];key==="__proto__"&&writeKey2(buffer),buffer[key]=this.readSchema(memberNs,value2)}return buffer}if(ns.isStructSchema()){let union=ns.isUnionSchema(),unionSerde;union&&(unionSerde=new UnionSerde2(value,buffer));for(let[memberName,memberSchema]of ns.structIterator()){
|
|
874
945
|
let memberTraits=memberSchema.getMergedTraits(),xmlObjectKey=memberTraits.httpPayload?memberTraits.xmlName??memberSchema.getName():memberSchema.getMemberTraits().xmlName??memberName;union&&unionSerde.mark(xmlObjectKey),value[xmlObjectKey]!=null&&(buffer[memberName]=this.readSchema(memberSchema,value[xmlObjectKey]))}return union&&unionSerde.writeUnknown(),buffer}if(ns.isDocumentSchema())return value;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(
|
|
875
946
|
!0)}`)}return ns.isListSchema()?[]:ns.isMapSchema()||ns.isStructSchema()?{}:this.stringDeserializer.read(ns,value)}parseXml(xml){if(xml.length){let parsedObj;try{parsedObj=(0,import_xml_builder.parseXML)(xml)}catch(e5){throw e5&&typeof e5=="object"&&Object.defineProperty(e5,"$responseBodyText",{value:xml}),e5}let textNodeName="#text",key=Object.keys(parsedObj)[0],parsedObjToReturn=parsedObj[key];return parsedObjToReturn[textNodeName]&&(parsedObjToReturn[key]=parsedObjToReturn[textNodeName],delete parsedObjToReturn[textNodeName]),
|
|
876
|
-
getValueFromTextNode(parsedObjToReturn)}return{}}}}});var QueryShapeSerializer,init_QueryShapeSerializer=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js"(){init_protocols();init_schema();init_serde();init_serde();
|
|
877
|
-
"."),ns.isBlobSchema())(typeof value=="string"||value instanceof Uint8Array)&&(this.writeKey(prefix),this.writeValue((this.serdeContext?.base64Encoder??toBase64)(value)));else if(ns.isBooleanSchema()||ns.isNumericSchema()||ns.isStringSchema())value!=null?(this.writeKey(prefix),this.writeValue(String(value))):ns.isIdempotencyToken()&&(this.writeKey(prefix),this.writeValue(generateIdempotencyToken()));else if(ns.isBigIntegerSchema())value!=null&&(this.writeKey(prefix),this.writeValue(String(
|
|
878
|
-
isBigDecimalSchema())value!=null&&(this.writeKey(prefix),this.writeValue(value instanceof NumericValue?value.string:String(value)));else if(ns.isTimestampSchema()){if(value instanceof Date)switch(this.writeKey(prefix),determineTimestampFormat(ns,this.settings)){case 5:this.writeValue(value.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(dateToUtcString(value));break;case 7:this.writeValue(String(value.getTime()/1e3));break}}else if(ns.isDocumentSchema())Array.
|
|
879
|
-
write(79,value,prefix):value instanceof Date?this.write(4,value,prefix):value instanceof Uint8Array?this.write(21,value,prefix):value&&typeof value=="object"?this.write(143,value,prefix):(this.writeKey(prefix),this.writeValue(String(value)));else if(ns.isListSchema()){if(Array.isArray(value))if(value.length===0)this.settings.serializeEmptyLists&&(this.writeKey(prefix),this.writeValue(""));else{let member2=ns.getValueSchema(),flat=this.settings.flattenLists||ns.getMergedTraits().
|
|
880
|
-
for(let item of value){if(item==null)continue;let traits=member2.getMergedTraits(),suffix=this.getKey("member",traits.xmlName,traits.ec2QueryName),key=flat?`${prefix}${i5}`:`${prefix}${suffix}.${i5}`;this.write(member2,item,key),++i5}}}else if(ns.isMapSchema()){if(value&&typeof value=="object"){let keySchema=ns.getKeySchema(),memberSchema=ns.getValueSchema(),flat=ns.getMergedTraits().xmlFlattened,i5=1;for(let k5 in value){let v=value[k5];if(v==null)continue;let keyTraits=keySchema.
|
|
881
|
-
keySuffix=this.getKey("key",keyTraits.xmlName,keyTraits.ec2QueryName),key=flat?`${prefix}${i5}.${keySuffix}`:`${prefix}entry.${i5}.${keySuffix}`,valTraits=memberSchema.getMergedTraits(),valueSuffix=this.getKey("value",valTraits.xmlName,valTraits.ec2QueryName),valueKey=flat?`${prefix}${i5}.${valueSuffix}`:`${prefix}entry.${i5}.${valueSuffix}`;this.write(keySchema,k5,key),this.write(memberSchema,v,valueKey),++i5}}}else if(ns.isStructSchema()){if(value&&typeof value=="object"){let didWriteMember=!1;
|
|
947
|
+
getValueFromTextNode(parsedObjToReturn)}return{}}}}});var QueryShapeSerializer,init_QueryShapeSerializer=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js"(){init_protocols();init_schema();init_serde();init_serde();init_ConfigurableSerdeContext2();QueryShapeSerializer=class extends SerdeContextConfig2{settings;buffer;constructor(settings){super(),this.settings=settings}write(schema,value,prefix=""){this.buffer===void 0&&(this.buffer="");let ns=NormalizedSchema.of(schema);if(prefix&&!prefix.endsWith(".")&&
|
|
948
|
+
(prefix+="."),ns.isBlobSchema())(typeof value=="string"||value instanceof Uint8Array)&&(this.writeKey(prefix),this.writeValue((this.serdeContext?.base64Encoder??toBase64)(value)));else if(ns.isBooleanSchema()||ns.isNumericSchema()||ns.isStringSchema())value!=null?(this.writeKey(prefix),this.writeValue(String(value))):ns.isIdempotencyToken()&&(this.writeKey(prefix),this.writeValue(generateIdempotencyToken()));else if(ns.isBigIntegerSchema())value!=null&&(this.writeKey(prefix),this.writeValue(String(
|
|
949
|
+
value)));else if(ns.isBigDecimalSchema())value!=null&&(this.writeKey(prefix),this.writeValue(value instanceof NumericValue?value.string:String(value)));else if(ns.isTimestampSchema()){if(value instanceof Date)switch(this.writeKey(prefix),determineTimestampFormat(ns,this.settings)){case 5:this.writeValue(value.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(dateToUtcString(value));break;case 7:this.writeValue(String(value.getTime()/1e3));break}}else if(ns.isDocumentSchema())Array.
|
|
950
|
+
isArray(value)?this.write(79,value,prefix):value instanceof Date?this.write(4,value,prefix):value instanceof Uint8Array?this.write(21,value,prefix):value&&typeof value=="object"?this.write(143,value,prefix):(this.writeKey(prefix),this.writeValue(String(value)));else if(ns.isListSchema()){if(Array.isArray(value))if(value.length===0)this.settings.serializeEmptyLists&&(this.writeKey(prefix),this.writeValue(""));else{let member2=ns.getValueSchema(),flat=this.settings.flattenLists||ns.getMergedTraits().
|
|
951
|
+
xmlFlattened,i5=1;for(let item of value){if(item==null)continue;let traits=member2.getMergedTraits(),suffix=this.getKey("member",traits.xmlName,traits.ec2QueryName),key=flat?`${prefix}${i5}`:`${prefix}${suffix}.${i5}`;this.write(member2,item,key),++i5}}}else if(ns.isMapSchema()){if(value&&typeof value=="object"){let keySchema=ns.getKeySchema(),memberSchema=ns.getValueSchema(),flat=ns.getMergedTraits().xmlFlattened,i5=1;for(let k5 in value){let v=value[k5];if(v==null)continue;let keyTraits=keySchema.
|
|
952
|
+
getMergedTraits(),keySuffix=this.getKey("key",keyTraits.xmlName,keyTraits.ec2QueryName),key=flat?`${prefix}${i5}.${keySuffix}`:`${prefix}entry.${i5}.${keySuffix}`,valTraits=memberSchema.getMergedTraits(),valueSuffix=this.getKey("value",valTraits.xmlName,valTraits.ec2QueryName),valueKey=flat?`${prefix}${i5}.${valueSuffix}`:`${prefix}entry.${i5}.${valueSuffix}`;this.write(keySchema,k5,key),this.write(memberSchema,v,valueKey),++i5}}}else if(ns.isStructSchema()){if(value&&typeof value=="object"){let didWriteMember=!1;
|
|
882
953
|
for(let[memberName,member2]of ns.structIterator()){if(value[memberName]==null&&!member2.isIdempotencyToken())continue;let traits=member2.getMergedTraits(),suffix=this.getKey(memberName,traits.xmlName,traits.ec2QueryName,"struct"),key=`${prefix}${suffix}`;this.write(member2,value[memberName],key),didWriteMember=!0}if(!didWriteMember&&ns.isUnionSchema()){let{$unknown}=value;if(Array.isArray($unknown)){let[k5,v]=$unknown,key=`${prefix}${k5}`;this.write(15,v,key)}}}}else if(!ns.isUnitSchema())throw new Error(
|
|
883
954
|
`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let str=this.buffer;return delete this.buffer,str}getKey(memberName,xmlName,ec2QueryName,keySource){let{ec2,capitalizeKeys}=this.settings;if(ec2&&ec2QueryName)return ec2QueryName;let key=xmlName??memberName;return capitalizeKeys&&keySource==="struct"?key[0].toUpperCase()+key.
|
|
884
955
|
slice(1):key}writeKey(key){key.endsWith(".")&&(key=key.slice(0,key.length-1)),this.buffer+=`&${extendedEncodeURIComponent(key)}=`}writeValue(value){this.buffer+=extendedEncodeURIComponent(value)}}}});var AwsQueryProtocol,init_AwsQueryProtocol=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js"(){init_protocols();init_schema();init_ProtocolLib();init_XmlShapeDeserializer();init_QueryShapeSerializer();AwsQueryProtocol=class extends RpcProtocol{options;serializer;deserializer;mixin=new ProtocolLib;constructor(options){super({defaultNamespace:options.defaultNamespace,errorTypeRegistries:options.errorTypeRegistries}),this.options=options;let settings={timestampFormat:{
|
|
@@ -889,10 +960,10 @@ value}let shortName=operationSchema.name.split("#")[1]??operationSchema.name,aws
|
|
|
889
960
|
loadQueryErrorCode(response,dataObject)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,errorIdentifier,this.options.defaultNamespace);let errorData=this.loadQueryError(dataObject)??{},message=this.loadQueryErrorMessage(dataObject);errorData.message=message,errorData.Error={Type:errorData.Type,Code:errorData.Code,Message:message};let{errorSchema,errorMetadata}=await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier,this.options.defaultNamespace,response,errorData,metadata,this.
|
|
890
961
|
mixin.findQueryCompatibleError),ns=NormalizedSchema.of(errorSchema),ErrorCtor=this.compositeErrorRegistry.getErrorCtor(errorSchema)??Error,exception=new ErrorCtor({}),output={Type:errorData.Error.Type,Code:errorData.Error.Code,Error:errorData.Error};for(let[name,member2]of ns.structIterator()){let target=member2.getMergedTraits().xmlName??name,value=errorData[target]??dataObject[target];output[name]=this.deserializer.readSchema(member2,value)}throw this.mixin.decorateServiceException(Object.assign(
|
|
891
962
|
exception,errorMetadata,{$fault:ns.getMergedTraits().error,message},output),dataObject)}loadQueryErrorCode(output,data){let code=(data.Errors?.[0]?.Error??data.Errors?.Error??data.Error)?.Code;if(code!==void 0)return code;if(output.statusCode==404)return"NotFound"}loadQueryError(data){return data.Errors?.[0]?.Error??data.Errors?.Error??data.Error}loadQueryErrorMessage(data){let errorData=this.loadQueryError(data);return errorData?.message??errorData?.Message??data.message??data.Message??"Unknown"}getDefaultContentType(){
|
|
892
|
-
return"application/x-www-form-urlencoded"}}}});var AwsEc2QueryProtocol,init_AwsEc2QueryProtocol=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js"(){init_AwsQueryProtocol();AwsEc2QueryProtocol=class extends AwsQueryProtocol{options;constructor(options){super(options),this.options=options;let ec2Settings={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,ec2Settings)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}}});var import_xml_builder2,parseXmlBody,parseXmlErrorBody,loadRestXmlErrorCode,init_parseXmlBody=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js"(){import_xml_builder2=__toESM(require_dist_cjs10());init_client2();
|
|
963
|
+
return"application/x-www-form-urlencoded"}}}});var AwsEc2QueryProtocol,init_AwsEc2QueryProtocol=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js"(){init_AwsQueryProtocol();AwsEc2QueryProtocol=class extends AwsQueryProtocol{options;constructor(options){super(options),this.options=options;let ec2Settings={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,ec2Settings)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}}});var import_xml_builder2,parseXmlBody,parseXmlErrorBody,loadRestXmlErrorCode,init_parseXmlBody=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js"(){import_xml_builder2=__toESM(require_dist_cjs10());init_client2();init_common2();parseXmlBody=(streamBody,context)=>collectBodyString2(streamBody,context).then(encoded=>{if(encoded.length){let parsedObj;try{parsedObj=(0,import_xml_builder2.parseXML)(encoded)}catch(e5){throw e5&&typeof e5=="object"&&Object.defineProperty(
|
|
893
964
|
e5,"$responseBodyText",{value:encoded}),e5}let textNodeName="#text",key=Object.keys(parsedObj)[0],parsedObjToReturn=parsedObj[key];return parsedObjToReturn[textNodeName]&&(parsedObjToReturn[key]=parsedObjToReturn[textNodeName],delete parsedObjToReturn[textNodeName]),getValueFromTextNode(parsedObjToReturn)}return{}}),parseXmlErrorBody=async(errorBody,context)=>{let value=await parseXmlBody(errorBody,context);return value.Error&&(value.Error.message=value.Error.message??value.Error.Message),value},
|
|
894
|
-
loadRestXmlErrorCode=(output,data)=>{if(data?.Error?.Code!==void 0)return data.Error.Code;if(data?.Code!==void 0)return data.Code;if(output.statusCode==404)return"NotFound"}}});var import_xml_builder3,XmlShapeSerializer,init_XmlShapeSerializer=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js"(){import_xml_builder3=__toESM(require_dist_cjs10());init_protocols();init_schema();init_serde();init_serde();
|
|
895
|
-
isStringSchema()&&typeof value=="string")this.stringBuffer=value;else if(ns.isBlobSchema())this.byteBuffer="byteLength"in value?value:(this.serdeContext?.base64Decoder??fromBase64)(value);else{this.buffer=this.writeStruct(ns,value,void 0);let traits=ns.getMergedTraits();traits.httpPayload&&!traits.xmlName&&this.buffer.withName(ns.getName())}}flush(){if(this.byteBuffer!==void 0){let bytes=this.byteBuffer;return delete this.byteBuffer,bytes}if(this.stringBuffer!==void 0){let str=this.stringBuffer;
|
|
965
|
+
loadRestXmlErrorCode=(output,data)=>{if(data?.Error?.Code!==void 0)return data.Error.Code;if(data?.Code!==void 0)return data.Code;if(output.statusCode==404)return"NotFound"}}});var import_xml_builder3,XmlShapeSerializer,init_XmlShapeSerializer=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js"(){import_xml_builder3=__toESM(require_dist_cjs10());init_protocols();init_schema();init_serde();init_serde();init_ConfigurableSerdeContext2();XmlShapeSerializer=class extends SerdeContextConfig2{settings;stringBuffer;byteBuffer;buffer;constructor(settings){super(),this.settings=settings}write(schema,value){let ns=NormalizedSchema.of(schema);
|
|
966
|
+
if(ns.isStringSchema()&&typeof value=="string")this.stringBuffer=value;else if(ns.isBlobSchema())this.byteBuffer="byteLength"in value?value:(this.serdeContext?.base64Decoder??fromBase64)(value);else{this.buffer=this.writeStruct(ns,value,void 0);let traits=ns.getMergedTraits();traits.httpPayload&&!traits.xmlName&&this.buffer.withName(ns.getName())}}flush(){if(this.byteBuffer!==void 0){let bytes=this.byteBuffer;return delete this.byteBuffer,bytes}if(this.stringBuffer!==void 0){let str=this.stringBuffer;
|
|
896
967
|
return delete this.stringBuffer,str}let buffer=this.buffer;return this.settings.xmlNamespace&&(buffer?.attributes?.xmlns||buffer.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,buffer.toString()}writeStruct(ns,value,parentXmlns){let traits=ns.getMergedTraits(),name=ns.isMemberSchema()&&!traits.httpPayload?ns.getMemberTraits().xmlName??ns.getMemberName():traits.xmlName??ns.getName();if(!name||!ns.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cann\
|
|
897
968
|
ot write struct with empty name or non-struct, schema=${ns.getName(!0)}.`);let structXmlNode=import_xml_builder3.XmlNode.of(name),[xmlnsAttr,xmlns]=this.getXmlnsAttribute(ns,parentXmlns);for(let[memberName,memberSchema]of ns.structIterator()){let val=value[memberName];if(val!=null||memberSchema.isIdempotencyToken()){if(memberSchema.getMergedTraits().xmlAttribute){structXmlNode.addAttribute(memberSchema.getMergedTraits().xmlName??memberName,this.writeSimple(memberSchema,val));continue}if(memberSchema.
|
|
898
969
|
isListSchema())this.writeList(memberSchema,val,structXmlNode,xmlns);else if(memberSchema.isMapSchema())this.writeMap(memberSchema,val,structXmlNode,xmlns);else if(memberSchema.isStructSchema())structXmlNode.addChildNode(this.writeStruct(memberSchema,val,xmlns));else{let memberNode=import_xml_builder3.XmlNode.of(memberSchema.getMergedTraits().xmlName??memberSchema.getMemberName());this.writeSimpleInto(memberSchema,val,memberNode,xmlns),structXmlNode.addChildNode(memberNode)}}}let{$unknown}=value;
|
|
@@ -907,8 +978,8 @@ of(mapTraits.xmlName??mapMember.getMemberName()),xmlns&&mapNode.addAttribute(xml
|
|
|
907
978
|
if(value&&typeof value=="object")if(ns.isBlobSchema())nodeContents=(this.serdeContext?.base64Encoder??toBase64)(value);else if(ns.isTimestampSchema()&&value instanceof Date)switch(determineTimestampFormat(ns,this.settings)){case 5:nodeContents=value.toISOString().replace(".000Z","Z");break;case 6:nodeContents=dateToUtcString(value);break;case 7:nodeContents=String(value.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",value),nodeContents=dateToUtcString(value);
|
|
908
979
|
break}else{if(ns.isBigDecimalSchema()&&value)return value instanceof NumericValue?value.string:String(value);throw ns.isMapSchema()||ns.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${ns.getName(!0)}`)}if((ns.isBooleanSchema()||ns.isNumericSchema()||ns.isBigIntegerSchema()||ns.isBigDecimalSchema())&&
|
|
909
980
|
(nodeContents=String(value)),ns.isStringSchema()&&(value===void 0&&ns.isIdempotencyToken()?nodeContents=generateIdempotencyToken():nodeContents=String(value)),nodeContents===null)throw new Error(`Unhandled schema-value pair ${ns.getName(!0)}=${value}`);return nodeContents}writeSimpleInto(_schema,value,into,parentXmlns){let nodeContents=this.writeSimple(_schema,value),ns=NormalizedSchema.of(_schema),content=new import_xml_builder3.XmlText(nodeContents),[xmlnsAttr,xmlns]=this.getXmlnsAttribute(ns,
|
|
910
|
-
parentXmlns);xmlns&&into.addAttribute(xmlnsAttr,xmlns),into.addChildNode(content)}getXmlnsAttribute(ns,parentXmlns){let traits=ns.getMergedTraits(),[prefix,xmlns]=traits.xmlNamespace??[];return xmlns&&xmlns!==parentXmlns?[prefix?`xmlns:${prefix}`:"xmlns",xmlns]:[void 0,void 0]}}}});var XmlCodec,init_XmlCodec=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js"(){
|
|
911
|
-
settings);return deserializer.setSerdeContext(this.serdeContext),deserializer}}}});var AwsRestXmlProtocol,init_AwsRestXmlProtocol=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js"(){init_protocols();init_schema();init_ProtocolLib();init_parseXmlBody();init_XmlCodec();AwsRestXmlProtocol=class extends HttpBindingProtocol{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(options){super(options);let settings={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:options.xmlNamespace,serviceNamespace:options.defaultNamespace};
|
|
981
|
+
parentXmlns);xmlns&&into.addAttribute(xmlnsAttr,xmlns),into.addChildNode(content)}getXmlnsAttribute(ns,parentXmlns){let traits=ns.getMergedTraits(),[prefix,xmlns]=traits.xmlNamespace??[];return xmlns&&xmlns!==parentXmlns?[prefix?`xmlns:${prefix}`:"xmlns",xmlns]:[void 0,void 0]}}}});var XmlCodec,init_XmlCodec=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js"(){init_ConfigurableSerdeContext2();init_XmlShapeDeserializer();init_XmlShapeSerializer();XmlCodec=class extends SerdeContextConfig2{settings;constructor(settings){super(),this.settings=settings}createSerializer(){let serializer=new XmlShapeSerializer(this.settings);return serializer.setSerdeContext(this.serdeContext),serializer}createDeserializer(){let deserializer=new XmlShapeDeserializer(
|
|
982
|
+
this.settings);return deserializer.setSerdeContext(this.serdeContext),deserializer}}}});var AwsRestXmlProtocol,init_AwsRestXmlProtocol=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js"(){init_protocols();init_schema();init_ProtocolLib();init_parseXmlBody();init_XmlCodec();AwsRestXmlProtocol=class extends HttpBindingProtocol{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(options){super(options);let settings={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:options.xmlNamespace,serviceNamespace:options.defaultNamespace};
|
|
912
983
|
this.codec=new XmlCodec(settings),this.serializer=new HttpInterceptingShapeSerializer(this.codec.createSerializer(),settings),this.deserializer=new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),settings)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(operationSchema,input,context){let request=await super.serializeRequest(operationSchema,input,context),inputSchema=NormalizedSchema.of(operationSchema.input);if(!request.headers["\
|
|
913
984
|
content-type"]){let contentType=this.mixin.resolveRestContentType(this.getDefaultContentType(),inputSchema);contentType&&(request.headers["content-type"]=contentType)}return typeof request.body=="string"&&request.headers["content-type"]===this.getDefaultContentType()&&!request.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(inputSchema)&&(request.body='<?xml version="1.0" encoding="UTF-8"?>'+request.body),request}async deserializeResponse(operationSchema,context,response){return super.
|
|
914
985
|
deserializeResponse(operationSchema,context,response)}async handleError(operationSchema,context,response,dataObject,metadata){let errorIdentifier=loadRestXmlErrorCode(response,dataObject)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,errorIdentifier,this.options.defaultNamespace),dataObject.Error&&typeof dataObject.Error=="object")for(let key of Object.keys(dataObject.Error))dataObject[key]=dataObject.Error[key],key.toLowerCase()==="message"&&(dataObject.message=dataObject.Error[key]);
|
|
@@ -916,21 +987,23 @@ dataObject.RequestId&&!metadata.requestId&&(metadata.requestId=dataObject.Reques
|
|
|
916
987
|
deserializeHttpMessage(errorSchema,context,response,dataObject);let output={},errorDeserializer=this.codec.createDeserializer();for(let[name,member2]of ns.structIterator()){let target=member2.getMergedTraits().xmlName??name,value=dataObject.Error?.[target]??dataObject[target];output[name]=errorDeserializer.readSchema(member2,value)}throw this.mixin.decorateServiceException(Object.assign(exception,errorMetadata,{$fault:ns.getMergedTraits().error,message},output),dataObject)}getDefaultContentType(){
|
|
917
988
|
return"application/xml"}hasUnstructuredPayloadBinding(ns){for(let[,member2]of ns.structIterator())if(member2.getMergedTraits().httpPayload)return!(member2.isStructSchema()||member2.isMapSchema()||member2.isListSchema());return!1}}}});var awsExpectUnion,init_awsExpectUnion=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/awsExpectUnion.js"(){init_serde();awsExpectUnion=value=>{if(value!=null)return typeof value=="object"&&"__type"in value&&delete value.__type,expectUnion(value)}}});var _toStr,_toBool,_toNum,init_coercing_serializers=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/coercing-serializers.js"(){_toStr=val=>{if(val==null)return val;if(typeof val=="number"||typeof val=="bigint"){let warning2=new Error(`Received number ${val} where a string was expected.`);return warning2.name="Warning",console.warn(warning2),String(val)}if(typeof val=="boolean"){let warning2=new Error(`Received boolean ${val} where a string was expected.`);return warning2.name="Wa\
|
|
918
989
|
rning",console.warn(warning2),String(val)}return val},_toBool=val=>{if(val==null)return val;if(typeof val=="string"){let lowercase=val.toLowerCase();if(val!==""&&lowercase!=="false"&&lowercase!=="true"){let warning2=new Error(`Received string "${val}" where a boolean was expected.`);warning2.name="Warning",console.warn(warning2)}return val!==""&&lowercase!=="false"}return val},_toNum=val=>{if(val==null)return val;if(typeof val=="string"){let num=Number(val);if(num.toString()!==val){let warning2=new Error(
|
|
919
|
-
`Received string "${val}" where a number was expected.`);return warning2.name="Warning",console.warn(warning2),val}return num}return val}}});var protocols_exports2={};__export(protocols_exports2,{AwsEc2QueryProtocol:()=>AwsEc2QueryProtocol,AwsJson1_0Protocol:()=>AwsJson1_0Protocol,AwsJson1_1Protocol:()=>AwsJson1_1Protocol,AwsJsonRpcProtocol:()=>AwsJsonRpcProtocol,AwsQueryProtocol:()=>AwsQueryProtocol,AwsRestJsonProtocol:()=>AwsRestJsonProtocol,AwsRestXmlProtocol:()=>AwsRestXmlProtocol,AwsSmithyRpcV2CborProtocol:()=>AwsSmithyRpcV2CborProtocol,JsonCodec:()=>
|
|
920
|
-
JsonShapeDeserializer2:()=>
|
|
921
|
-
parseJsonBody:()=>
|
|
922
|
-
|
|
990
|
+
`Received string "${val}" where a number was expected.`);return warning2.name="Warning",console.warn(warning2),val}return num}return val}}});var protocols_exports2={};__export(protocols_exports2,{AwsEc2QueryProtocol:()=>AwsEc2QueryProtocol,AwsJson1_0Protocol:()=>AwsJson1_0Protocol,AwsJson1_1Protocol:()=>AwsJson1_1Protocol,AwsJsonRpcProtocol:()=>AwsJsonRpcProtocol,AwsQueryProtocol:()=>AwsQueryProtocol,AwsRestJsonProtocol:()=>AwsRestJsonProtocol,AwsRestXmlProtocol:()=>AwsRestXmlProtocol,AwsSmithyRpcV2CborProtocol:()=>AwsSmithyRpcV2CborProtocol,JsonCodec:()=>JsonCodec3,JsonCodec2:()=>JsonCodec22,JsonShapeDeserializer:()=>JsonShapeDeserializer3,
|
|
991
|
+
JsonShapeDeserializer2:()=>JsonShapeDeserializer22,JsonShapeSerializer:()=>JsonShapeSerializer3,JsonShapeSerializer2:()=>JsonShapeSerializer22,QueryShapeSerializer:()=>QueryShapeSerializer,XmlCodec:()=>XmlCodec,XmlShapeDeserializer:()=>XmlShapeDeserializer,XmlShapeSerializer:()=>XmlShapeSerializer,_toBool:()=>_toBool,_toNum:()=>_toNum,_toStr:()=>_toStr,awsExpectUnion:()=>awsExpectUnion,loadJsonRpcErrorCode:()=>loadJsonRpcErrorCode2,loadRestJsonErrorCode:()=>loadRestJsonErrorCode2,loadRestXmlErrorCode:()=>loadRestXmlErrorCode,
|
|
992
|
+
parseJsonBody:()=>parseJsonBody2,parseJsonErrorBody:()=>parseJsonErrorBody2,parseXmlBody:()=>parseXmlBody,parseXmlErrorBody:()=>parseXmlErrorBody});var init_protocols2=__esm({"node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js"(){init_AwsSmithyRpcV2CborProtocol();init_AwsJson1_0Protocol();init_AwsJson1_1Protocol();init_AwsJsonRpcProtocol();init_AwsRestJsonProtocol();init_JsonCodec3();init_JsonShapeDeserializer3();init_JsonShapeSerializer3();init_JsonCodec22();init_JsonShapeDeserializer22();
|
|
993
|
+
init_JsonShapeSerializer22();init_parseJsonBody2();init_AwsEc2QueryProtocol();init_AwsQueryProtocol();init_QueryShapeSerializer();init_AwsRestXmlProtocol();init_XmlCodec();init_XmlShapeDeserializer();init_XmlShapeSerializer();init_parseXmlBody();init_awsExpectUnion();init_coercing_serializers()}});var k,a,b,c,d,e,f,g,h,i,j,_data,root,r,nodes,bdd,init_bdd=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js"(){init_endpoints();k="ref",a=-1,b=!0,c="isSet",d="PartitionResult",e="booleanEquals",f="getAttr",g={[k]:"Endpoint"},h={[k]:d},i={},j=[{[k]:"Region"}],_data={conditions:[[c,[g]],[c,j],["aws.partition",j,d],[e,[{[k]:"UseFIPS"},b]],[e,[{[k]:"UseDualStack"},b]],[e,[{fn:f,argv:[h,"supportsDualStack"]},b]],[e,[{fn:f,argv:[h,"supportsFIPS"]},b]],["stringEqu\
|
|
923
994
|
als",[{fn:f,argv:[h,"name"]},"aws-us-gov"]]],results:[[a],[a,"Invalid Configuration: FIPS and custom endpoint are not supported"],[a,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[g,i],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",i],[a,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",i],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",i],[a,"FIPS is enabled but this\
|
|
924
995
|
partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",i],[a,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",i],[a,"Invalid Configuration: Missing Region"]]},root=2,r=1e8,nodes=new Int32Array([-1,1,-1,0,13,3,1,4,r+12,2,5,r+12,3,8,6,4,7,r+11,5,r+9,r+10,4,11,9,6,10,r+8,7,r+6,r+7,5,12,r+5,6,r+4,r+5,3,r+1,14,4,r+2,r+3]),bdd=BinaryDecisionDiagram.from(nodes,root,_data.conditions,_data.
|
|
925
|
-
results)}});var cache,defaultEndpointResolver,init_endpointResolver=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js"(){init_client3();init_endpoints();init_bdd();cache=new EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),defaultEndpointResolver=(endpointParams,context={})=>cache.get(endpointParams,()=>decideEndpoint(bdd,{endpointParams,logger:context.logger}));customEndpointFunctions.aws=awsEndpointFunctions}});var SSOOIDCServiceException,init_SSOOIDCServiceException=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js"(){init_client2();SSOOIDCServiceException=class _SSOOIDCServiceException extends ServiceException{constructor(options){super(options),Object.setPrototypeOf(this,_SSOOIDCServiceException.prototype)}}}});var AccessDeniedException,AuthorizationPendingException,ExpiredTokenException,InternalServerException,InvalidClientException,InvalidGrantException,InvalidRequestException,InvalidScopeException,SlowDownException,UnauthorizedClientException,UnsupportedGrantTypeException,init_errors=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js"(){init_SSOOIDCServiceException();AccessDeniedException=class _AccessDeniedException extends SSOOIDCServiceException{
|
|
926
|
-
|
|
927
|
-
name:"AuthorizationPendingException",$fault:"client",...opts}),Object.setPrototypeOf(this,_AuthorizationPendingException.prototype),this.error=opts.error,this.error_description=opts.error_description}},ExpiredTokenException=class _ExpiredTokenException extends SSOOIDCServiceException{
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
opts.error_description}},
|
|
932
|
-
|
|
933
|
-
|
|
996
|
+
results)}});var cache,defaultEndpointResolver,init_endpointResolver=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js"(){init_client3();init_endpoints();init_bdd();cache=new EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),defaultEndpointResolver=(endpointParams,context={})=>cache.get(endpointParams,()=>decideEndpoint(bdd,{endpointParams,logger:context.logger}));customEndpointFunctions.aws=awsEndpointFunctions}});var SSOOIDCServiceException,init_SSOOIDCServiceException=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js"(){init_client2();SSOOIDCServiceException=class _SSOOIDCServiceException extends ServiceException{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(options){super(options),Object.setPrototypeOf(this,_SSOOIDCServiceException.prototype)}}}});var AccessDeniedException,AuthorizationPendingException,ExpiredTokenException,InternalServerException,InvalidClientException,InvalidGrantException,InvalidRequestException,InvalidScopeException,SlowDownException,UnauthorizedClientException,UnsupportedGrantTypeException,init_errors=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/errors.js"(){init_SSOOIDCServiceException();AccessDeniedException=class _AccessDeniedException extends SSOOIDCServiceException{static shapeId="\
|
|
997
|
+
com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(opts){super({name:"AccessDeniedException",$fault:"client",...opts}),Object.setPrototypeOf(this,_AccessDeniedException.prototype),this.error=opts.error,this.reason=opts.reason,this.error_description=opts.error_description}},AuthorizationPendingException=class _AuthorizationPendingException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#Authori\
|
|
998
|
+
zationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(opts){super({name:"AuthorizationPendingException",$fault:"client",...opts}),Object.setPrototypeOf(this,_AuthorizationPendingException.prototype),this.error=opts.error,this.error_description=opts.error_description}},ExpiredTokenException=class _ExpiredTokenException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="\
|
|
999
|
+
client";error;error_description;constructor(opts){super({name:"ExpiredTokenException",$fault:"client",...opts}),Object.setPrototypeOf(this,_ExpiredTokenException.prototype),this.error=opts.error,this.error_description=opts.error_description}},InternalServerException=class _InternalServerException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(opts){super({name:"Inter\
|
|
1000
|
+
nalServerException",$fault:"server",...opts}),Object.setPrototypeOf(this,_InternalServerException.prototype),this.error=opts.error,this.error_description=opts.error_description}},InvalidClientException=class _InvalidClientException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(opts){super({name:"InvalidClientException",$fault:"client",...opts}),Object.setPrototypeOf(this,
|
|
1001
|
+
_InvalidClientException.prototype),this.error=opts.error,this.error_description=opts.error_description}},InvalidGrantException=class _InvalidGrantException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(opts){super({name:"InvalidGrantException",$fault:"client",...opts}),Object.setPrototypeOf(this,_InvalidGrantException.prototype),this.error=opts.error,this.error_description=
|
|
1002
|
+
opts.error_description}},InvalidRequestException=class _InvalidRequestException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(opts){super({name:"InvalidRequestException",$fault:"client",...opts}),Object.setPrototypeOf(this,_InvalidRequestException.prototype),this.error=opts.error,this.reason=opts.reason,this.error_description=opts.error_description}},InvalidScopeException=
|
|
1003
|
+
class _InvalidScopeException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(opts){super({name:"InvalidScopeException",$fault:"client",...opts}),Object.setPrototypeOf(this,_InvalidScopeException.prototype),this.error=opts.error,this.error_description=opts.error_description}},SlowDownException=class _SlowDownException extends SSOOIDCServiceException{static shapeId="com.ama\
|
|
1004
|
+
zonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(opts){super({name:"SlowDownException",$fault:"client",...opts}),Object.setPrototypeOf(this,_SlowDownException.prototype),this.error=opts.error,this.error_description=opts.error_description}},UnauthorizedClientException=class _UnauthorizedClientException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="\
|
|
1005
|
+
client";error;error_description;constructor(opts){super({name:"UnauthorizedClientException",$fault:"client",...opts}),Object.setPrototypeOf(this,_UnauthorizedClientException.prototype),this.error=opts.error,this.error_description=opts.error_description}},UnsupportedGrantTypeException=class _UnsupportedGrantTypeException extends SSOOIDCServiceException{static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(opts){
|
|
1006
|
+
super({name:"UnsupportedGrantTypeException",$fault:"client",...opts}),Object.setPrototypeOf(this,_UnsupportedGrantTypeException.prototype),this.error=opts.error,this.error_description=opts.error_description}}}});var _ADE,_APE,_AT,_CS,_CT,_CTR,_CTRr,_CV,_ETE,_ICE,_IGE,_IRE,_ISE,_ISEn,_IT,_RT,_SDE,_UCE,_UGTE,_aT,_c,_cI,_cS,_cV,_co,_dC,_e,_eI,_ed,_gT,_h,_hE,_iT,_r,_rT,_rU,_s,_sc,_se,_tT,n0,_s_registry,SSOOIDCServiceException$,n0_registry,AccessDeniedException$,AuthorizationPendingException$,ExpiredTokenException$,InternalServerException$,InvalidClientException$,InvalidGrantException$,InvalidRequestException$,InvalidScopeException$,SlowDownException$,UnauthorizedClientException$,UnsupportedGrantTypeException$,
|
|
934
1007
|
errorTypeRegistries,AccessToken,ClientSecret,CodeVerifier,IdToken,RefreshToken,CreateTokenRequest$,CreateTokenResponse$,CreateToken$,init_schemas_0=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js"(){init_schema();init_errors();init_SSOOIDCServiceException();_ADE="AccessDeniedException",_APE="AuthorizationPendingException",_AT="AccessToken",_CS="ClientSecret",_CT="CreateToken",_CTR="CreateTokenRequest",_CTRr="CreateTokenResponse",_CV="CodeVerifier",_ETE=
|
|
935
1008
|
"ExpiredTokenException",_ICE="InvalidClientException",_IGE="InvalidGrantException",_IRE="InvalidRequestException",_ISE="InternalServerException",_ISEn="InvalidScopeException",_IT="IdToken",_RT="RefreshToken",_SDE="SlowDownException",_UCE="UnauthorizedClientException",_UGTE="UnsupportedGrantTypeException",_aT="accessToken",_c="client",_cI="clientId",_cS="clientSecret",_cV="codeVerifier",_co="code",_dC="deviceCode",_e="error",_eI="expiresIn",_ed="error_description",_gT="grantType",_h="http",_hE="h\
|
|
936
1009
|
ttpError",_iT="idToken",_r="reason",_rT="refreshToken",_rU="redirectUri",_s="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",_sc="scope",_se="server",_tT="tokenType",n0="com.amazonaws.ssooidc",_s_registry=new TypeRegistry(_s),SSOOIDCServiceException$=[-3,_s,"SSOOIDCServiceException",0,[],[]];_s_registry.registerError(SSOOIDCServiceException$,SSOOIDCServiceException);n0_registry=new TypeRegistry(n0),AccessDeniedException$=[-3,n0,_ADE,{[_e]:_c,[_hE]:400},[_e,_r,_ed],[0,0,0]];n0_registry.registerError(
|
|
@@ -952,10 +1025,10 @@ this.config)),this.middlewareStack.use(getRetryPlugin(this.config)),this.middlew
|
|
|
952
1025
|
{"aws.auth#sigv4":config.credentials})})),this.middlewareStack.use(getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}}});var command,_ep0,_mw0,init_commandBuilder=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commandBuilder.js"(){init_client2();init_endpoints();init_EndpointParameters();command=makeBuilder(commonParams,"AWSSSOOIDCService","SSOOIDCClient",getEndpointPlugin),_ep0={},_mw0=(Command2,cs,config,o3)=>[]}});var CreateTokenCommand,init_CreateTokenCommand=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js"(){init_commandBuilder();init_schemas_0();CreateTokenCommand=class extends command(_ep0,_mw0,"CreateToken",CreateToken$){}}});var commands,SSOOIDC,init_SSOOIDC=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDC.js"(){init_client2();init_CreateTokenCommand();init_SSOOIDCClient();commands={CreateTokenCommand},SSOOIDC=class extends SSOOIDCClient{};createAggregatedClient(commands,SSOOIDC)}});var init_commands=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/index.js"(){init_CreateTokenCommand()}});var AccessDeniedExceptionReason,InvalidRequestExceptionReason,init_enums=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/enums.js"(){AccessDeniedExceptionReason={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},InvalidRequestExceptionReason={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}}});var init_models_0=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js"(){}});var sso_oidc_exports={};__export(sso_oidc_exports,{$Command:()=>Command,AccessDeniedException:()=>AccessDeniedException,AccessDeniedException$:()=>AccessDeniedException$,AccessDeniedExceptionReason:()=>AccessDeniedExceptionReason,AuthorizationPendingException:()=>AuthorizationPendingException,AuthorizationPendingException$:()=>AuthorizationPendingException$,CreateToken$:()=>CreateToken$,CreateTokenCommand:()=>CreateTokenCommand,CreateTokenRequest$:()=>CreateTokenRequest$,CreateTokenResponse$:()=>CreateTokenResponse$,
|
|
953
1026
|
ExpiredTokenException:()=>ExpiredTokenException,ExpiredTokenException$:()=>ExpiredTokenException$,InternalServerException:()=>InternalServerException,InternalServerException$:()=>InternalServerException$,InvalidClientException:()=>InvalidClientException,InvalidClientException$:()=>InvalidClientException$,InvalidGrantException:()=>InvalidGrantException,InvalidGrantException$:()=>InvalidGrantException$,InvalidRequestException:()=>InvalidRequestException,InvalidRequestException$:()=>InvalidRequestException$,
|
|
954
1027
|
InvalidRequestExceptionReason:()=>InvalidRequestExceptionReason,InvalidScopeException:()=>InvalidScopeException,InvalidScopeException$:()=>InvalidScopeException$,SSOOIDC:()=>SSOOIDC,SSOOIDCClient:()=>SSOOIDCClient,SSOOIDCServiceException:()=>SSOOIDCServiceException,SSOOIDCServiceException$:()=>SSOOIDCServiceException$,SlowDownException:()=>SlowDownException,SlowDownException$:()=>SlowDownException$,UnauthorizedClientException:()=>UnauthorizedClientException,UnauthorizedClientException$:()=>UnauthorizedClientException$,
|
|
955
|
-
UnsupportedGrantTypeException:()=>UnsupportedGrantTypeException,UnsupportedGrantTypeException$:()=>UnsupportedGrantTypeException$,__Client:()=>Client,errorTypeRegistries:()=>errorTypeRegistries});var init_sso_oidc=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js"(){init_SSOOIDCClient();init_SSOOIDC();init_commands();init_client2();init_schemas_0();init_enums();init_errors();init_models_0();init_SSOOIDCServiceException()}});var require_dist_cjs11=__commonJS({"node_modules/@aws-sdk/
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
1028
|
+
UnsupportedGrantTypeException:()=>UnsupportedGrantTypeException,UnsupportedGrantTypeException$:()=>UnsupportedGrantTypeException$,__Client:()=>Client,errorTypeRegistries:()=>errorTypeRegistries});var init_sso_oidc=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js"(){init_SSOOIDCClient();init_SSOOIDC();init_commands();init_client2();init_schemas_0();init_enums();init_errors();init_models_0();init_SSOOIDCServiceException()}});var require_dist_cjs11=__commonJS({"node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports){var{setTokenFeature:setTokenFeature2}=(init_client3(),__toCommonJS(client_exports2)),{getBearerTokenEnvKey:getBearerTokenEnvKey2}=(init_httpAuthSchemes2(),__toCommonJS(httpAuthSchemes_exports)),{TokenProviderError:TokenProviderError2,getSSOTokenFilepath:getSSOTokenFilepath2,parseKnownFiles:parseKnownFiles2,getProfileName:getProfileName2,loadSsoSessionData:loadSsoSessionData2,getSSOTokenFromFile:getSSOTokenFromFile2,
|
|
1029
|
+
memoize:memoize2,chain:chain2}=(init_config2(),__toCommonJS(config_exports)),{promises}=__require("node:fs"),fromEnvSigningName=({logger:logger2,signingName}={})=>async()=>{if(logger2?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!signingName)throw new TokenProviderError2("Please pass 'signingName' to compute environment variable key",{logger:logger2});let bearerTokenKey=getBearerTokenEnvKey2(signingName);if(!(bearerTokenKey in process.env))throw new TokenProviderError2(`Token not pr\
|
|
1030
|
+
esent in '${bearerTokenKey}' environment variable`,{logger:logger2});let token={token:process.env[bearerTokenKey]};return setTokenFeature2(token,"BEARER_SERVICE_ENV_VARS","3"),token},EXPIRE_WINDOW_MS=300*1e3,REFRESH_MESSAGE="To refresh this SSO session run 'aws sso login' with the corresponding profile.",getSsoOidcClient=async(ssoRegion,init={},callerClientConfig)=>{let{SSOOIDCClient:SSOOIDCClient2}=(init_sso_oidc(),__toCommonJS(sso_oidc_exports)),coalesce2=prop=>init.clientConfig?.[prop]??init.
|
|
1031
|
+
parentClientConfig?.[prop]??callerClientConfig?.[prop];return new SSOOIDCClient2(Object.assign({},init.clientConfig??{},{region:ssoRegion??init.clientConfig?.region,logger:coalesce2("logger"),userAgentAppId:coalesce2("userAgentAppId")}))},getNewSsoOidcToken=async(ssoToken,ssoRegion,init={},callerClientConfig)=>{let{CreateTokenCommand:CreateTokenCommand2}=(init_sso_oidc(),__toCommonJS(sso_oidc_exports));return(await getSsoOidcClient(ssoRegion,init,callerClientConfig)).send(new CreateTokenCommand2(
|
|
959
1032
|
{clientId:ssoToken.clientId,clientSecret:ssoToken.clientSecret,refreshToken:ssoToken.refreshToken,grantType:"refresh_token"}))},validateTokenExpiry=token=>{if(token.expiration&&token.expiration.getTime()<Date.now())throw new TokenProviderError2(`Token is expired. ${REFRESH_MESSAGE}`,!1)},validateTokenKey=(key,value,forRefresh=!1)=>{if(typeof value>"u")throw new TokenProviderError2(`Value not present for '${key}' in SSO Token${forRefresh?". Cannot refresh":""}. ${REFRESH_MESSAGE}`,!1)},{writeFile}=promises,
|
|
960
1033
|
writeSSOTokenToFile=(id,ssoToken)=>{let tokenFilepath=getSSOTokenFilepath2(id),tokenString=JSON.stringify(ssoToken,null,2);return writeFile(tokenFilepath,tokenString)},lastRefreshAttemptTimes=new Map,fromSso=(init={})=>async({callerClientConfig}={})=>{init.logger?.debug("@aws-sdk/token-providers - fromSso");let profiles=await parseKnownFiles2(init),profileName=getProfileName2({profile:init.profile??callerClientConfig?.profile}),profile=profiles[profileName];if(profile){if(!profile.sso_session)throw new TokenProviderError2(
|
|
961
1034
|
`Profile '${profileName}' is missing required property 'sso_session'.`)}else throw new TokenProviderError2(`Profile '${profileName}' could not be found in shared credentials file.`,!1);let ssoSessionName=profile.sso_session,ssoSession=(await loadSsoSessionData2(init))[ssoSessionName];if(!ssoSession)throw new TokenProviderError2(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`,!1);for(let ssoSessionRequiredKey of["sso_start_url","sso_region"])if(!ssoSession[ssoSessionRequiredKey])
|
|
@@ -969,9 +1042,10 @@ push(createSmithyApiNoAuthHttpAuthOption2(authParameters)):options.push(createAw
|
|
|
969
1042
|
type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}});var k2,a2,b2,c2,d2,e2,f2,g2,h2,i2,j2,_data2,root2,r2,nodes2,bdd2,init_bdd2=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js"(){init_endpoints();k2="ref",a2=-1,b2=!0,c2="isSet",d2="PartitionResult",e2="booleanEquals",f2="getAttr",g2={[k2]:"Endpoint"},h2={[k2]:d2},i2={},j2=[{[k2]:"Region"}],_data2={conditions:[[c2,[g2]],[c2,j2],["aws.partition",j2,d2],[e2,[{[k2]:"UseFIPS"},b2]],[e2,[{[k2]:"UseDualStack"},b2]],[e2,[{fn:f2,argv:[h2,"supportsDualStack"]},b2]],[e2,[{
|
|
970
1043
|
fn:f2,argv:[h2,"supportsFIPS"]},b2]],["stringEquals",[{fn:f2,argv:[h2,"name"]},"aws-us-gov"]]],results:[[a2],[a2,"Invalid Configuration: FIPS and custom endpoint are not supported"],[a2,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[g2,i2],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",i2],[a2,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",i2],["https://portal.ss\
|
|
971
1044
|
o-fips.{Region}.{PartitionResult#dnsSuffix}",i2],[a2,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",i2],[a2,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",i2],[a2,"Invalid Configuration: Missing Region"]]},root2=2,r2=1e8,nodes2=new Int32Array([-1,1,-1,0,13,3,1,4,r2+12,2,5,r2+12,3,8,6,4,7,r2+11,5,r2+9,r2+10,4,11,9,6,10,r2+8,7,r2+6,r2+7,
|
|
972
|
-
5,12,r2+5,6,r2+4,r2+5,3,r2+1,14,4,r2+2,r2+3]),bdd2=BinaryDecisionDiagram.from(nodes2,root2,_data2.conditions,_data2.results)}});var cache2,defaultEndpointResolver2,init_endpointResolver2=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js"(){init_client3();init_endpoints();init_bdd2();cache2=new EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),defaultEndpointResolver2=(endpointParams,context={})=>cache2.get(endpointParams,()=>decideEndpoint(bdd2,{endpointParams,logger:context.logger}));customEndpointFunctions.aws=awsEndpointFunctions}});var SSOServiceException,init_SSOServiceException=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js"(){init_client2();SSOServiceException=class _SSOServiceException extends ServiceException{constructor(options){super(options),Object.setPrototypeOf(this,_SSOServiceException.prototype)}}}});var InvalidRequestException2,ResourceNotFoundException,TooManyRequestsException,UnauthorizedException,init_errors2=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js"(){init_SSOServiceException();InvalidRequestException2=class _InvalidRequestException extends SSOServiceException{name="InvalidRequestException";$fault="client";constructor(opts){super({name:"InvalidRequestException",$fault:"client",...opts}),
|
|
973
|
-
ResourceNotFoundException=class _ResourceNotFoundException extends SSOServiceException{name="ResourceNotFoundException";$fault="client";constructor(opts){super({name:"ResourceNotFoundException",$fault:"client",...opts}),Object.setPrototypeOf(this,_ResourceNotFoundException.prototype)}},TooManyRequestsException=class _TooManyRequestsException extends SSOServiceException{
|
|
974
|
-
Object.setPrototypeOf(this,_TooManyRequestsException.prototype)}},UnauthorizedException=class _UnauthorizedException extends SSOServiceException{name="UnauthorizedException";$fault="client";constructor(opts){super({name:"UnauthorizedException",$fault:"client",...opts}),
|
|
1045
|
+
5,12,r2+5,6,r2+4,r2+5,3,r2+1,14,4,r2+2,r2+3]),bdd2=BinaryDecisionDiagram.from(nodes2,root2,_data2.conditions,_data2.results)}});var cache2,defaultEndpointResolver2,init_endpointResolver2=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js"(){init_client3();init_endpoints();init_bdd2();cache2=new EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),defaultEndpointResolver2=(endpointParams,context={})=>cache2.get(endpointParams,()=>decideEndpoint(bdd2,{endpointParams,logger:context.logger}));customEndpointFunctions.aws=awsEndpointFunctions}});var SSOServiceException,init_SSOServiceException=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/SSOServiceException.js"(){init_client2();SSOServiceException=class _SSOServiceException extends ServiceException{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(options){super(options),Object.setPrototypeOf(this,_SSOServiceException.prototype)}}}});var InvalidRequestException2,ResourceNotFoundException,TooManyRequestsException,UnauthorizedException,init_errors2=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/errors.js"(){init_SSOServiceException();InvalidRequestException2=class _InvalidRequestException extends SSOServiceException{static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(opts){super({name:"InvalidRequestException",$fault:"client",...opts}),
|
|
1046
|
+
Object.setPrototypeOf(this,_InvalidRequestException.prototype)}},ResourceNotFoundException=class _ResourceNotFoundException extends SSOServiceException{static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(opts){super({name:"ResourceNotFoundException",$fault:"client",...opts}),Object.setPrototypeOf(this,_ResourceNotFoundException.prototype)}},TooManyRequestsException=class _TooManyRequestsException extends SSOServiceException{static shapeId="\
|
|
1047
|
+
com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(opts){super({name:"TooManyRequestsException",$fault:"client",...opts}),Object.setPrototypeOf(this,_TooManyRequestsException.prototype)}},UnauthorizedException=class _UnauthorizedException extends SSOServiceException{static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(opts){super({name:"UnauthorizedException",$fault:"client",...opts}),
|
|
1048
|
+
Object.setPrototypeOf(this,_UnauthorizedException.prototype)}}}});var _ATT,_GRC,_GRCR,_GRCRe,_IRE2,_RC,_RNFE,_SAKT,_STT,_TMRE,_UE,_aI,_aKI,_aT2,_ai,_c2,_e2,_ex,_h2,_hE2,_hH,_hQ,_m,_rC,_rN,_rn,_s2,_sAK,_sT,_xasbt,n02,_s_registry2,SSOServiceException$,n0_registry2,InvalidRequestException$2,ResourceNotFoundException$,TooManyRequestsException$,UnauthorizedException$,errorTypeRegistries2,AccessTokenType,SecretAccessKeyType,SessionTokenType,GetRoleCredentialsRequest$,GetRoleCredentialsResponse$,RoleCredentials$,GetRoleCredentials$,init_schemas_02=__esm({"node_module\
|
|
975
1049
|
s/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js"(){init_schema();init_errors2();init_SSOServiceException();_ATT="AccessTokenType",_GRC="GetRoleCredentials",_GRCR="GetRoleCredentialsRequest",_GRCRe="GetRoleCredentialsResponse",_IRE2="InvalidRequestException",_RC="RoleCredentials",_RNFE="ResourceNotFoundException",_SAKT="SecretAccessKeyType",_STT="SessionTokenType",_TMRE="TooManyRequestsException",_UE="UnauthorizedException",_aI="accountId",_aKI="accessKeyId",_aT2="accessToke\
|
|
976
1050
|
n",_ai="account_id",_c2="client",_e2="error",_ex="expiration",_h2="http",_hE2="httpError",_hH="httpHeader",_hQ="httpQuery",_m="message",_rC="roleCredentials",_rN="roleName",_rn="role_name",_s2="smithy.ts.sdk.synthetic.com.amazonaws.sso",_sAK="secretAccessKey",_sT="sessionToken",_xasbt="x-amz-sso_bearer_token",n02="com.amazonaws.sso",_s_registry2=new TypeRegistry(_s2),SSOServiceException$=[-3,_s2,"SSOServiceException",0,[],[]];_s_registry2.registerError(SSOServiceException$,SSOServiceException);n0_registry2=
|
|
977
1051
|
new TypeRegistry(n02),InvalidRequestException$2=[-3,n02,_IRE2,{[_e2]:_c2,[_hE2]:400},[_m],[0]];n0_registry2.registerError(InvalidRequestException$2,InvalidRequestException2);ResourceNotFoundException$=[-3,n02,_RNFE,{[_e2]:_c2,[_hE2]:404},[_m],[0]];n0_registry2.registerError(ResourceNotFoundException$,ResourceNotFoundException);TooManyRequestsException$=[-3,n02,_TMRE,{[_e2]:_c2,[_hE2]:429},[_m],[0]];n0_registry2.registerError(TooManyRequestsException$,TooManyRequestsException);UnauthorizedException$=
|
|
@@ -1025,11 +1099,12 @@ authParameters);let options=[];for(let scheme of authSchemes){let{name:resolvedN
|
|
|
1025
1099
|
sigv4aDependency()==="none"&&sigv4Present)continue}else if(name.startsWith("sigv4"))schemeId="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`);let createOption=createHttpAuthOptionFunctions[schemeId];if(!createOption)throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`);let option=createOption(authParameters);option.schemeId=schemeId,option.signingProperties={...option.signingProperties||{},...rest,...properties},
|
|
1026
1100
|
options.push(option)}return options},_defaultSTSHttpAuthSchemeProvider=authParameters=>{let options=[];return authParameters.operation==="AssumeRoleWithWebIdentity"?(options.push(createSmithyApiNoAuthHttpAuthOption3(authParameters)),options.push(createAwsAuthSigv4aHttpAuthOption(authParameters))):(options.push(createAwsAuthSigv4HttpAuthOption3(authParameters)),options.push(createAwsAuthSigv4aHttpAuthOption(authParameters))),options},defaultSTSHttpAuthSchemeProvider=createEndpointRuleSetHttpAuthSchemeProvider(
|
|
1027
1101
|
defaultEndpointResolver3,_defaultSTSHttpAuthSchemeProvider,{"aws.auth#sigv4":createAwsAuthSigv4HttpAuthOption3,"aws.auth#sigv4a":createAwsAuthSigv4aHttpAuthOption,"smithy.api#noAuth":createSmithyApiNoAuthHttpAuthOption3}),resolveHttpAuthSchemeConfig3=config=>{let config_0=resolveAwsSdkSigV4Config(config),config_1=resolveAwsSdkSigV4AConfig(config_0);return Object.assign(config_1,{authSchemePreference:normalizeProvider(config.authSchemePreference??[])})}}});var resolveClientEndpointParameters3,commonParams3,init_EndpointParameters3=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/EndpointParameters.js"(){resolveClientEndpointParameters3=options=>Object.assign(options,{useDualstackEndpoint:options.useDualstackEndpoint??!1,useFipsEndpoint:options.useFipsEndpoint??!1,useGlobalEndpoint:options.useGlobalEndpoint??!1,defaultSigningName:"sts"}),commonParams3={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{
|
|
1028
|
-
type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}});var STSServiceException,init_STSServiceException=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js"(){init_client2();STSServiceException=class _STSServiceException extends ServiceException{constructor(options){super(options),Object.setPrototypeOf(this,_STSServiceException.prototype)}}}});var ExpiredTokenException2,MalformedPolicyDocumentException,PackedPolicyTooLargeException,RegionDisabledException,IDPRejectedClaimException,InvalidIdentityTokenException,IDPCommunicationErrorException,init_errors3=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js"(){init_STSServiceException();ExpiredTokenException2=class _ExpiredTokenException extends STSServiceException{name="ExpiredTokenException";$fault="
|
|
1029
|
-
|
|
1030
|
-
PackedPolicyTooLargeException";$fault="client";constructor(opts){super({name:"PackedPolicyTooLargeException",$fault:"client",...opts}),Object.setPrototypeOf(this,_PackedPolicyTooLargeException.prototype)}},RegionDisabledException=class _RegionDisabledException extends STSServiceException{
|
|
1031
|
-
|
|
1032
|
-
setPrototypeOf(this,
|
|
1102
|
+
type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}});var STSServiceException,init_STSServiceException=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/STSServiceException.js"(){init_client2();STSServiceException=class _STSServiceException extends ServiceException{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(options){super(options),Object.setPrototypeOf(this,_STSServiceException.prototype)}}}});var ExpiredTokenException2,MalformedPolicyDocumentException,PackedPolicyTooLargeException,RegionDisabledException,IDPRejectedClaimException,InvalidIdentityTokenException,IDPCommunicationErrorException,init_errors3=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js"(){init_STSServiceException();ExpiredTokenException2=class _ExpiredTokenException extends STSServiceException{static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="\
|
|
1103
|
+
client";constructor(opts){super({name:"ExpiredTokenException",$fault:"client",...opts}),Object.setPrototypeOf(this,_ExpiredTokenException.prototype)}},MalformedPolicyDocumentException=class _MalformedPolicyDocumentException extends STSServiceException{static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(opts){super({name:"MalformedPolicyDocumentException",$fault:"client",...opts}),Object.setPrototypeOf(this,_MalformedPolicyDocumentException.
|
|
1104
|
+
prototype)}},PackedPolicyTooLargeException=class _PackedPolicyTooLargeException extends STSServiceException{static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(opts){super({name:"PackedPolicyTooLargeException",$fault:"client",...opts}),Object.setPrototypeOf(this,_PackedPolicyTooLargeException.prototype)}},RegionDisabledException=class _RegionDisabledException extends STSServiceException{static shapeId="com.amazonaws.st\
|
|
1105
|
+
s#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(opts){super({name:"RegionDisabledException",$fault:"client",...opts}),Object.setPrototypeOf(this,_RegionDisabledException.prototype)}},IDPRejectedClaimException=class _IDPRejectedClaimException extends STSServiceException{static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(opts){super({name:"IDPRejectedClaimException",$fault:"client",...opts}),
|
|
1106
|
+
Object.setPrototypeOf(this,_IDPRejectedClaimException.prototype)}},InvalidIdentityTokenException=class _InvalidIdentityTokenException extends STSServiceException{static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(opts){super({name:"InvalidIdentityTokenException",$fault:"client",...opts}),Object.setPrototypeOf(this,_InvalidIdentityTokenException.prototype)}},IDPCommunicationErrorException=class _IDPCommunicationErrorException extends STSServiceException{static shapeId="\
|
|
1107
|
+
com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(opts){super({name:"IDPCommunicationErrorException",$fault:"client",...opts}),Object.setPrototypeOf(this,_IDPCommunicationErrorException.prototype)}}}});var _A,_AKI,_AR,_ARI,_ARR,_ARRs,_ARU,_ARWWI,_ARWWIR,_ARWWIRs,_Au,_C,_CA,_DS,_E,_EI,_ETE2,_IDPCEE,_IDPRCE,_IITE,_K,_MPDE,_MSTS,_P,_PA,_PAr,_PC,_PCLT,_PCr,_PDT,_PI,_PPS,_PPTLE,_Pr,_RA,_RDE,_RSN,_SAK,_SFWIT,_SI,_SN,_ST,_STS,_STU,_T,_TC,_TTK,_Ta,_V,_WIT,_a,_aKST,_aQE,_c3,_cTT,_e3,_hE3,_m2,_pDLT,_s3,_tLT,n03,_s_registry3,STSServiceException$,n0_registry3,ExpiredTokenException$2,IDPCommunicationErrorException$,IDPRejectedClaimException$,InvalidIdentityTokenException$,MalformedPolicyDocumentException$,
|
|
1033
1108
|
PackedPolicyTooLargeException$,RegionDisabledException$,errorTypeRegistries3,accessKeySecretType,clientTokenType,AssumedRoleUser$,AssumeRoleRequest$,AssumeRoleResponse$,AssumeRoleWithWebIdentityRequest$,AssumeRoleWithWebIdentityResponse$,Credentials$,PolicyDescriptorType$,ProvidedContext$,Tag$,policyDescriptorListType,ProvidedContextsListType,tagListType,AssumeRole$,AssumeRoleWithWebIdentity$,init_schemas_03=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js"(){
|
|
1034
1109
|
init_schema();init_errors3();init_STSServiceException();_A="Arn",_AKI="AccessKeyId",_AR="AssumeRole",_ARI="AssumedRoleId",_ARR="AssumeRoleRequest",_ARRs="AssumeRoleResponse",_ARU="AssumedRoleUser",_ARWWI="AssumeRoleWithWebIdentity",_ARWWIR="AssumeRoleWithWebIdentityRequest",_ARWWIRs="AssumeRoleWithWebIdentityResponse",_Au="Audience",_C="Credentials",_CA="ContextAssertion",_DS="DurationSeconds",_E="Expiration",_EI="ExternalId",_ETE2="ExpiredTokenException",_IDPCEE="IDPCommunicationErrorException",
|
|
1035
1110
|
_IDPRCE="IDPRejectedClaimException",_IITE="InvalidIdentityTokenException",_K="Key",_MPDE="MalformedPolicyDocumentException",_MSTS="MinimumSessionTokenSize",_P="Policy",_PA="PolicyArns",_PAr="ProviderArn",_PC="ProvidedContexts",_PCLT="ProvidedContextsListType",_PCr="ProvidedContext",_PDT="PolicyDescriptorType",_PI="ProviderId",_PPS="PackedPolicySize",_PPTLE="PackedPolicyTooLargeException",_Pr="Provider",_RA="RoleArn",_RDE="RegionDisabledException",_RSN="RoleSessionName",_SAK="SecretAccessKey",_SFWIT=
|
|
@@ -1076,9 +1151,10 @@ gnin.c2shome.ic.gov",p2],["https://{Region}.signin.sc2shome.sgov.gov",p2],["http
|
|
|
1076
1151
|
custom endpoint are not supported"],[k4,p2],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",p2],[a4,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",p2],[a4,"FIPS is enabled but this partition does not support FIPS"],[j4,p2],[a4,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",p2],[a4,"Invalid Configuration:\
|
|
1077
1152
|
Missing Region"]]},root4=2,r4=1e8,nodes4=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,r4+27,6,r4+4,r4+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,r4+7,13,10,r4+8,14,12,r4+9,15,13,r4+10,16,14,r4+11,17,15,r4+12,18,16,r4+13,r4+16,6,r4+5,20,7,21,r4+6,17,r4+24,r4+25,6,r4+4,23,7,27,24,9,r4+14,25,10,r4+15,26,11,r4+22,r4+23,11,28,r4+21,17,r4+20,r4+21,2,35,30,3,39,31,4,32,r4+27,6,r4+4,33,7,r4+27,34,9,r4+14,r4+27,3,39,36,4,38,37,7,r4+18,r4+19,6,r4+4,r4+17,5,r4+1,40,8,r4+2,r4+3]),bdd4=BinaryDecisionDiagram.
|
|
1078
1153
|
from(nodes4,root4,_data4.conditions,_data4.results)}});var cache4,defaultEndpointResolver4,init_endpointResolver4=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js"(){init_client3();init_endpoints();init_bdd4();cache4=new EndpointCache({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]}),defaultEndpointResolver4=(endpointParams,context={})=>cache4.get(endpointParams,()=>decideEndpoint(bdd4,{endpointParams,logger:context.logger}));customEndpointFunctions.
|
|
1079
|
-
aws=awsEndpointFunctions}});var SigninServiceException,init_SigninServiceException=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js"(){init_client2();SigninServiceException=class _SigninServiceException extends ServiceException{constructor(options){super(options),Object.setPrototypeOf(this,_SigninServiceException.prototype)}}}});var AccessDeniedException2,InternalServerException2,TooManyRequestsError,ValidationException,init_errors4=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js"(){init_SigninServiceException();AccessDeniedException2=class _AccessDeniedException extends SigninServiceException{name="AccessDeniedException";$fault="client";error;constructor(opts){super({name:"AccessDeniedException",$fault:"client",...opts}),
|
|
1080
|
-
this.error=opts.error}},InternalServerException2=class _InternalServerException extends SigninServiceException{name="InternalServerException";$fault="server";error;constructor(opts){super({name:"InternalServerException",$fault:"server",...opts}),Object.setPrototypeOf(this,_InternalServerException.prototype),this.error=opts.error}},TooManyRequestsError=class _TooManyRequestsError extends SigninServiceException{
|
|
1081
|
-
|
|
1154
|
+
aws=awsEndpointFunctions}});var SigninServiceException,init_SigninServiceException=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/SigninServiceException.js"(){init_client2();SigninServiceException=class _SigninServiceException extends ServiceException{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(options){super(options),Object.setPrototypeOf(this,_SigninServiceException.prototype)}}}});var AccessDeniedException2,InternalServerException2,TooManyRequestsError,ValidationException,init_errors4=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/models/errors.js"(){init_SigninServiceException();AccessDeniedException2=class _AccessDeniedException extends SigninServiceException{static shapeId="com.amazonaws.signin#AccessDeniedException";name="AccessDeniedException";$fault="client";error;constructor(opts){super({name:"AccessDeniedException",$fault:"client",...opts}),
|
|
1155
|
+
Object.setPrototypeOf(this,_AccessDeniedException.prototype),this.error=opts.error}},InternalServerException2=class _InternalServerException extends SigninServiceException{static shapeId="com.amazonaws.signin#InternalServerException";name="InternalServerException";$fault="server";error;constructor(opts){super({name:"InternalServerException",$fault:"server",...opts}),Object.setPrototypeOf(this,_InternalServerException.prototype),this.error=opts.error}},TooManyRequestsError=class _TooManyRequestsError extends SigninServiceException{static shapeId="\
|
|
1156
|
+
com.amazonaws.signin#TooManyRequestsError";name="TooManyRequestsError";$fault="client";error;constructor(opts){super({name:"TooManyRequestsError",$fault:"client",...opts}),Object.setPrototypeOf(this,_TooManyRequestsError.prototype),this.error=opts.error}},ValidationException=class _ValidationException extends SigninServiceException{static shapeId="com.amazonaws.signin#ValidationException";name="ValidationException";$fault="client";error;constructor(opts){super({name:"ValidationException",$fault:"\
|
|
1157
|
+
client",...opts}),Object.setPrototypeOf(this,_ValidationException.prototype),this.error=opts.error}}}});var _ADE2,_AT2,_COAT,_COATR,_COATRB,_COATRBr,_COATRr,_COATWIAM,_COATWIAMR,_COATWIAMRr,_ISE2,_OAAT,_RT2,_TMRE2,_VE,_aKI2,_aT3,_at,_c4,_cI2,_cV2,_co2,_e4,_eI2,_ei,_gT2,_gt,_h3,_hE4,_iT2,_jN,_m3,_r2,_rT2,_rU2,_s4,_sAK2,_sT2,_se2,_tI,_tO,_tT2,_tt,n04,_s_registry4,SigninServiceException$,n0_registry4,AccessDeniedException$2,InternalServerException$2,TooManyRequestsError$,ValidationException$,errorTypeRegistries4,OAuthAccessToken,RefreshToken2,AccessToken$,CreateOAuth2TokenRequest$,CreateOAuth2TokenRequestBody$,
|
|
1082
1158
|
CreateOAuth2TokenResponse$,CreateOAuth2TokenResponseBody$,CreateOAuth2TokenWithIAMRequest$,CreateOAuth2TokenWithIAMResponse$,CreateOAuth2Token$,CreateOAuth2TokenWithIAM$,init_schemas_04=__esm({"node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js"(){init_schema();init_errors4();init_SigninServiceException();_ADE2="AccessDeniedException",_AT2="AccessToken",_COAT="CreateOAuth2Token",_COATR="CreateOAuth2TokenRequest",_COATRB="CreateOAuth2TokenRequestBody",_COATRBr="Cr\
|
|
1083
1159
|
eateOAuth2TokenResponseBody",_COATRr="CreateOAuth2TokenResponse",_COATWIAM="CreateOAuth2TokenWithIAM",_COATWIAMR="CreateOAuth2TokenWithIAMRequest",_COATWIAMRr="CreateOAuth2TokenWithIAMResponse",_ISE2="InternalServerException",_OAAT="OAuthAccessToken",_RT2="RefreshToken",_TMRE2="TooManyRequestsError",_VE="ValidationException",_aKI2="accessKeyId",_aT3="accessToken",_at="access_token",_c4="client",_cI2="clientId",_cV2="codeVerifier",_co2="code",_e4="error",_eI2="expiresIn",_ei="expires_in",_gT2="gr\
|
|
1084
1160
|
antType",_gt="grant_type",_h3="http",_hE4="httpError",_iT2="idToken",_jN="jsonName",_m3="message",_r2="resource",_rT2="refreshToken",_rU2="redirectUri",_s4="smithy.ts.sdk.synthetic.com.amazonaws.signin",_sAK2="secretAccessKey",_sT2="sessionToken",_se2="server",_tI="tokenInput",_tO="tokenOutput",_tT2="tokenType",_tt="token_type",n04="com.amazonaws.signin",_s_registry4=new TypeRegistry(_s4),SigninServiceException$=[-3,_s4,"SigninServiceException",0,[],[]];_s_registry4.registerError(SigninServiceException$,
|
|
@@ -1164,181 +1240,171 @@ headers:dateHeader},priorSignature:this.priorSignature},{signingDate:now,eventSt
|
|
|
1164
1240
|
buf2.buffer,buf2.byteOffset,buf2.byteLength/Uint8Array.BYTES_PER_ELEMENT)}var EventStreamPayloadHandler=class{messageSigner;eventStreamCodec;systemClockOffsetProvider;credentials;constructor(options){this.messageSigner=options.messageSigner,this.eventStreamCodec=new EventStreamCodec2(options.utf8Encoder,options.utf8Decoder),this.systemClockOffsetProvider=async()=>options.systemClockOffset??0,this.credentials=options.credentials}async handle(next,args,context={}){let request=args.request,{body:payload2,
|
|
1165
1241
|
query}=request;if(!(payload2 instanceof Readable7))throw new Error("Eventstream payload must be a Readable stream.");request.body=new PassThrough2({objectMode:!0});let priorSignature=request.headers?.authorization?.match(/Signature=([\w]+)$/)?.[1]??query?.["X-Amz-Signature"]??"";context.__staticSignature&&(priorSignature="");let signingStream=new EventSigningTransformStream({priorSignature,eventStreamCodec:this.eventStreamCodec,messageSigner:await this.messageSigner(),systemClockOffsetProvider:this.
|
|
1166
1242
|
systemClockOffsetProvider,credentials:this.credentials}),resolvePipeline,pipelineError=new Promise((resolve,reject)=>{resolvePipeline=()=>resolve(void 0),pipeline(payload2,signingStream,request.body,err=>{err&&reject(new Error(`Pipeline error in @aws-sdk/eventstream-handler-node: ${err.message}`,{cause:err}))})}),result;try{result=await Promise.race([next(args),pipelineError])}catch(e5){throw request.body.end(),e5}finally{resolvePipeline()}return result}},eventStreamPayloadHandlerProvider=options=>new EventStreamPayloadHandler(
|
|
1167
|
-
options);exports.eventStreamPayloadHandlerProvider=eventStreamPayloadHandlerProvider}});var require_dist_cjs20=__commonJS({"node_modules/@aws-sdk/
|
|
1168
|
-
memoize:memoize2,chain:chain2}=(init_config2(),__toCommonJS(config_exports)),{promises}=__require("node:fs"),fromEnvSigningName=({logger:logger2,signingName}={})=>async()=>{if(logger2?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!signingName)throw new TokenProviderError2("Please pass 'signingName' to compute environment variable key",{logger:logger2});let bearerTokenKey=getBearerTokenEnvKey2(signingName);if(!(bearerTokenKey in process.env))throw new TokenProviderError2(`Token not pr\
|
|
1169
|
-
esent in '${bearerTokenKey}' environment variable`,{logger:logger2});let token={token:process.env[bearerTokenKey]};return setTokenFeature2(token,"BEARER_SERVICE_ENV_VARS","3"),token},EXPIRE_WINDOW_MS=300*1e3,REFRESH_MESSAGE="To refresh this SSO session run 'aws sso login' with the corresponding profile.",getSsoOidcClient=async(ssoRegion,init={},callerClientConfig)=>{let{SSOOIDCClient:SSOOIDCClient2}=(init_sso_oidc(),__toCommonJS(sso_oidc_exports)),coalesce2=prop=>init.clientConfig?.[prop]??init.
|
|
1170
|
-
parentClientConfig?.[prop]??callerClientConfig?.[prop];return new SSOOIDCClient2(Object.assign({},init.clientConfig??{},{region:ssoRegion??init.clientConfig?.region,logger:coalesce2("logger"),userAgentAppId:coalesce2("userAgentAppId")}))},getNewSsoOidcToken=async(ssoToken,ssoRegion,init={},callerClientConfig)=>{let{CreateTokenCommand:CreateTokenCommand2}=(init_sso_oidc(),__toCommonJS(sso_oidc_exports));return(await getSsoOidcClient(ssoRegion,init,callerClientConfig)).send(new CreateTokenCommand2(
|
|
1171
|
-
{clientId:ssoToken.clientId,clientSecret:ssoToken.clientSecret,refreshToken:ssoToken.refreshToken,grantType:"refresh_token"}))},validateTokenExpiry=token=>{if(token.expiration&&token.expiration.getTime()<Date.now())throw new TokenProviderError2(`Token is expired. ${REFRESH_MESSAGE}`,!1)},validateTokenKey=(key,value,forRefresh=!1)=>{if(typeof value>"u")throw new TokenProviderError2(`Value not present for '${key}' in SSO Token${forRefresh?". Cannot refresh":""}. ${REFRESH_MESSAGE}`,!1)},{writeFile}=promises,
|
|
1172
|
-
writeSSOTokenToFile=(id,ssoToken)=>{let tokenFilepath=getSSOTokenFilepath2(id),tokenString=JSON.stringify(ssoToken,null,2);return writeFile(tokenFilepath,tokenString)},lastRefreshAttemptTimes=new Map,fromSso=(init={})=>async({callerClientConfig}={})=>{init.logger?.debug("@aws-sdk/token-providers - fromSso");let profiles=await parseKnownFiles2(init),profileName=getProfileName2({profile:init.profile??callerClientConfig?.profile}),profile=profiles[profileName];if(profile){if(!profile.sso_session)throw new TokenProviderError2(
|
|
1173
|
-
`Profile '${profileName}' is missing required property 'sso_session'.`)}else throw new TokenProviderError2(`Profile '${profileName}' could not be found in shared credentials file.`,!1);let ssoSessionName=profile.sso_session,ssoSession=(await loadSsoSessionData2(init))[ssoSessionName];if(!ssoSession)throw new TokenProviderError2(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`,!1);for(let ssoSessionRequiredKey of["sso_start_url","sso_region"])if(!ssoSession[ssoSessionRequiredKey])
|
|
1174
|
-
throw new TokenProviderError2(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`,!1);ssoSession.sso_start_url;let ssoRegion=ssoSession.sso_region,ssoToken;try{ssoToken=await getSSOTokenFromFile2(ssoSessionName)}catch{throw new TokenProviderError2(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`,!1)}validateTokenKey("accessToken",ssoToken.accessToken),validateTokenKey("expiresAt",ssoToken.expiresAt);
|
|
1175
|
-
let{accessToken,expiresAt}=ssoToken,existingToken={token:accessToken,expiration:new Date(expiresAt)};if(existingToken.expiration.getTime()-Date.now()>EXPIRE_WINDOW_MS)return existingToken;let lastRefreshAttemptTime=lastRefreshAttemptTimes.get(ssoSessionName)??0;if(Date.now()-lastRefreshAttemptTime<30*1e3)return validateTokenExpiry(existingToken),existingToken;validateTokenKey("clientId",ssoToken.clientId,!0),validateTokenKey("clientSecret",ssoToken.clientSecret,!0),validateTokenKey("refreshToken",
|
|
1176
|
-
ssoToken.refreshToken,!0);try{lastRefreshAttemptTimes.set(ssoSessionName,Date.now());let newSsoOidcToken=await getNewSsoOidcToken(ssoToken,ssoRegion,init,callerClientConfig);validateTokenKey("accessToken",newSsoOidcToken.accessToken),validateTokenKey("expiresIn",newSsoOidcToken.expiresIn);let newTokenExpiration=new Date(Date.now()+newSsoOidcToken.expiresIn*1e3);try{await writeSSOTokenToFile(ssoSessionName,{...ssoToken,accessToken:newSsoOidcToken.accessToken,expiresAt:newTokenExpiration.toISOString(),
|
|
1177
|
-
refreshToken:newSsoOidcToken.refreshToken})}catch{}return{token:newSsoOidcToken.accessToken,expiration:newTokenExpiration}}catch{return validateTokenExpiry(existingToken),existingToken}},fromStatic2=({token,logger:logger2})=>async()=>{if(logger2?.debug("@aws-sdk/token-providers - fromStatic"),!token||!token.token)throw new TokenProviderError2("Please pass a valid token to fromStatic",!1);return token},nodeProvider=(init={})=>memoize2(chain2(fromSso(init),async()=>{throw new TokenProviderError2("\
|
|
1178
|
-
Could not load token from any providers",!1)}),token=>token.expiration!==void 0&&token.expiration.getTime()-Date.now()<3e5,token=>token.expiration!==void 0);exports.fromEnvSigningName=fromEnvSigningName;exports.fromSso=fromSso;exports.fromStatic=fromStatic2;exports.nodeProvider=nodeProvider}});var require_dist_cjs21=__commonJS({"node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js"(exports){var{awsEndpointFunctions:awsEndpointFunctions2,emitWarningIfUnsupportedVersion:emitWarningIfUnsupportedVersion$1,createDefaultUserAgentProvider:createDefaultUserAgentProvider2,NODE_APP_ID_CONFIG_OPTIONS:NODE_APP_ID_CONFIG_OPTIONS2,getAwsRegionExtensionConfiguration:getAwsRegionExtensionConfiguration2,resolveAwsRegionExtensionConfiguration:resolveAwsRegionExtensionConfiguration2,resolveUserAgentConfig:resolveUserAgentConfig2,
|
|
1243
|
+
options);exports.eventStreamPayloadHandlerProvider=eventStreamPayloadHandlerProvider}});var require_dist_cjs20=__commonJS({"node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js"(exports){var{awsEndpointFunctions:awsEndpointFunctions2,emitWarningIfUnsupportedVersion:emitWarningIfUnsupportedVersion$1,createDefaultUserAgentProvider:createDefaultUserAgentProvider2,NODE_APP_ID_CONFIG_OPTIONS:NODE_APP_ID_CONFIG_OPTIONS2,getAwsRegionExtensionConfiguration:getAwsRegionExtensionConfiguration2,resolveAwsRegionExtensionConfiguration:resolveAwsRegionExtensionConfiguration2,resolveUserAgentConfig:resolveUserAgentConfig2,
|
|
1179
1244
|
resolveHostHeaderConfig:resolveHostHeaderConfig2,getUserAgentPlugin:getUserAgentPlugin2,getHostHeaderPlugin:getHostHeaderPlugin2,getLoggerPlugin:getLoggerPlugin2,getRecursionDetectionPlugin:getRecursionDetectionPlugin2}=(init_client3(),__toCommonJS(client_exports2)),{resolveEventStreamConfig,getEventStreamPlugin}=require_dist_cjs2(),{resolveWebSocketConfig,getWebSocketPlugin}=require_dist_cjs4(),{memoizeIdentityProvider:memoizeIdentityProvider2,isIdentityExpired:isIdentityExpired2,doesIdentityRequireRefresh:doesIdentityRequireRefresh2,
|
|
1180
1245
|
HttpBearerAuthSigner:HttpBearerAuthSigner2,getHttpAuthSchemeEndpointRuleSetPlugin:getHttpAuthSchemeEndpointRuleSetPlugin2,DefaultIdentityProviderConfig:DefaultIdentityProviderConfig2,getHttpSigningPlugin:getHttpSigningPlugin2,createPaginator:createPaginator2}=(init_dist_es(),__toCommonJS(dist_es_exports)),{normalizeProvider:normalizeProvider3,getSmithyContext:getSmithyContext2,ServiceException:ServiceException2,NoOpLogger:NoOpLogger2,emitWarningIfUnsupportedVersion:emitWarningIfUnsupportedVersion3,
|
|
1181
1246
|
loadConfigsForDefaultMode:loadConfigsForDefaultMode2,getDefaultExtensionConfiguration:getDefaultExtensionConfiguration2,resolveDefaultRuntimeConfig:resolveDefaultRuntimeConfig2,Client:Client2,makeBuilder:makeBuilder2,createAggregatedClient:createAggregatedClient2}=(init_client2(),__toCommonJS(client_exports)),{Command:$Command}=(init_client2(),__toCommonJS(client_exports));exports.$Command=$Command;exports.__Client=Client2;var{resolveDefaultsModeConfig:resolveDefaultsModeConfig2,loadConfig:loadConfig2,
|
|
1182
1247
|
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS2,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS2,NODE_REGION_CONFIG_OPTIONS:NODE_REGION_CONFIG_OPTIONS2,NODE_REGION_CONFIG_FILE_OPTIONS:NODE_REGION_CONFIG_FILE_OPTIONS2,resolveRegionConfig:resolveRegionConfig2}=(init_config2(),__toCommonJS(config_exports)),{BinaryDecisionDiagram:BinaryDecisionDiagram2,EndpointCache:EndpointCache2,decideEndpoint:decideEndpoint2,customEndpointFunctions:customEndpointFunctions2,
|
|
1183
1248
|
resolveEndpointConfig:resolveEndpointConfig2,getEndpointPlugin:getEndpointPlugin2}=(init_endpoints(),__toCommonJS(endpoints_exports)),{eventStreamSerdeProvider:eventStreamSerdeProvider3,resolveEventStreamSerdeConfig:resolveEventStreamSerdeConfig2}=(init_event_streams(),__toCommonJS(event_streams_exports)),{parseUrl:parseUrl2,getHttpHandlerExtensionConfiguration:getHttpHandlerExtensionConfiguration2,resolveHttpHandlerRuntimeConfig:resolveHttpHandlerRuntimeConfig2,getContentLengthPlugin:getContentLengthPlugin2}=(init_protocols(),__toCommonJS(protocols_exports)),
|
|
1184
1249
|
{DEFAULT_RETRY_MODE:DEFAULT_RETRY_MODE2,NODE_RETRY_MODE_CONFIG_OPTIONS:NODE_RETRY_MODE_CONFIG_OPTIONS2,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:NODE_MAX_ATTEMPT_CONFIG_OPTIONS2,resolveRetryConfig:resolveRetryConfig2,getRetryPlugin:getRetryPlugin2}=(init_retry2(),__toCommonJS(retry_exports)),{TypeRegistry:TypeRegistry2,getSchemaSerdePlugin:getSchemaSerdePlugin2}=(init_schema(),__toCommonJS(schema_exports)),{resolveAwsSdkSigV4Config:resolveAwsSdkSigV4Config2,AwsSdkSigV4Signer:AwsSdkSigV4Signer2,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:NODE_AUTH_SCHEME_PREFERENCE_OPTIONS2}=(init_httpAuthSchemes2(),__toCommonJS(httpAuthSchemes_exports)),
|
|
1185
|
-
{defaultProvider}=require_dist_cjs18(),{eventStreamPayloadHandlerProvider}=require_dist_cjs19(),{fromEnvSigningName,nodeProvider}=
|
|
1250
|
+
{defaultProvider}=require_dist_cjs18(),{eventStreamPayloadHandlerProvider}=require_dist_cjs19(),{fromEnvSigningName,nodeProvider}=require_dist_cjs11(),{toUtf8:toUtf83,fromUtf8:fromUtf83,toBase64:toBase643,fromBase64:fromBase642,calculateBodyLength:calculateBodyLength2}=(init_serde(),__toCommonJS(serde_exports)),{streamCollector:streamCollector7,NodeHttp2Handler}=require_dist_cjs8(),{AwsRestJsonProtocol:AwsRestJsonProtocol2}=(init_protocols2(),__toCommonJS(protocols_exports2)),{Sha256}=(init_checksum2(),__toCommonJS(checksum_exports)),
|
|
1186
1251
|
defaultBedrockRuntimeHttpAuthSchemeParametersProvider=async(config,context,input)=>({operation:getSmithyContext2(context).operation,region:await normalizeProvider3(config.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function createAwsAuthSigv4HttpAuthOption5(authParameters){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"bedrock",region:authParameters.region},propertiesExtractor:(config,context)=>({signingProperties:{config,context}})}}
|
|
1187
1252
|
function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters){return{schemeId:"smithy.api#httpBearerAuth",propertiesExtractor:({profile,filepath,configFilepath,ignoreCache},context)=>({identityProperties:{profile,filepath,configFilepath,ignoreCache}})}}var defaultBedrockRuntimeHttpAuthSchemeProvider=authParameters=>{let options=[];switch(authParameters.operation){default:options.push(createAwsAuthSigv4HttpAuthOption5(authParameters)),options.push(createSmithyApiHttpBearerAuthHttpAuthOption())}
|
|
1188
1253
|
return options},resolveHttpAuthSchemeConfig5=config=>{let token=memoizeIdentityProvider2(config.token,isIdentityExpired2,doesIdentityRequireRefresh2),config_0=resolveAwsSdkSigV4Config2(config);return Object.assign(config_0,{authSchemePreference:normalizeProvider3(config.authSchemePreference??[]),token})},resolveClientEndpointParameters5=options=>Object.assign(options,{useDualstackEndpoint:options.useDualstackEndpoint??!1,useFipsEndpoint:options.useFipsEndpoint??!1,defaultSigningName:"bedrock"}),
|
|
1189
|
-
commonParams5={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},version="3.
|
|
1254
|
+
commonParams5={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},version="3.1149.0",packageInfo={version},k5="ref",a5=-1,b5=!0,c5="isSet",d5="PartitionResult",e5="booleanEquals",f5="getAttr",g5={[k5]:"Endpoint"},h5={[k5]:d5},i5={},j5=[{[k5]:"Region"}],_data5={conditions:[[c5,[g5]],[c5,j5],["aws.partition",j5,d5],[e5,[{[k5]:"UseFIPS"},b5]],
|
|
1190
1255
|
[e5,[{[k5]:"UseDualStack"},b5]],[e5,[{fn:f5,argv:[h5,"supportsDualStack"]},b5]],[e5,[{fn:f5,argv:[h5,"supportsFIPS"]},b5]]],results:[[a5],[a5,"Invalid Configuration: FIPS and custom endpoint are not supported"],[a5,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[g5,i5],["https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",i5],[a5,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://bedrock-runtime-fips.{Re\
|
|
1191
1256
|
gion}.{PartitionResult#dnsSuffix}",i5],[a5,"FIPS is enabled but this partition does not support FIPS"],["https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}",i5],[a5,"DualStack is enabled but this partition does not support DualStack"],["https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}",i5],[a5,"Invalid Configuration: Missing Region"]]},root5=2,r5=1e8,nodes5=new Int32Array([-1,1,-1,0,12,3,1,4,r5+11,2,5,r5+11,3,8,6,4,7,r5+10,5,r5+8,r5+9,4,10,9,6,r5+6,r5+7,5,11,r5+5,6,
|
|
1192
|
-
r5+4,r5+5,3,r5+1,13,4,r5+2,r5+3]),bdd5=BinaryDecisionDiagram2.from(nodes5,root5,_data5.conditions,_data5.results),cache5=new EndpointCache2({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),defaultEndpointResolver5=(endpointParams,context={})=>cache5.get(endpointParams,()=>decideEndpoint2(bdd5,{endpointParams,logger:context.logger}));customEndpointFunctions2.aws=awsEndpointFunctions2;var BedrockRuntimeServiceException2=class _BedrockRuntimeServiceException extends ServiceException2{
|
|
1193
|
-
super(options),Object.setPrototypeOf(this,_BedrockRuntimeServiceException.prototype)}},AccessDeniedException3=class _AccessDeniedException extends BedrockRuntimeServiceException2{name="AccessDeniedException";$fault="client";constructor(opts){super({name:"AccessDeniedException",$fault:"client",...opts}),Object.setPrototypeOf(
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
super({name:"
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
[_hE5]:
|
|
1231
|
-
[_m4],[0]];n0_registry5.registerError(
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
[
|
|
1237
|
-
|
|
1238
|
-
()=>ServiceTier$,[()=>OutputConfig$,0]],1],
|
|
1239
|
-
|
|
1240
|
-
0,[
|
|
1241
|
-
|
|
1242
|
-
[
|
|
1243
|
-
|
|
1244
|
-
0]]],
|
|
1245
|
-
0],[()=>
|
|
1246
|
-
[()=>
|
|
1247
|
-
|
|
1248
|
-
0,[_ca
|
|
1249
|
-
3,n05,
|
|
1250
|
-
|
|
1251
|
-
3,n05,
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
3,n05,
|
|
1257
|
-
1],
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
3,n05,
|
|
1262
|
-
1,
|
|
1263
|
-
0,
|
|
1264
|
-
1,n05,
|
|
1265
|
-
1,n05,
|
|
1266
|
-
1,n05,
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
[[
|
|
1272
|
-
[[()=>
|
|
1273
|
-
0],[()=>
|
|
1274
|
-
|
|
1275
|
-
0
|
|
1276
|
-
|
|
1277
|
-
4,n05,
|
|
1278
|
-
()=>
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
"
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
use(
|
|
1295
|
-
|
|
1296
|
-
_ep05,
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
exports.
|
|
1314
|
-
exports.
|
|
1315
|
-
|
|
1316
|
-
exports.
|
|
1317
|
-
exports.
|
|
1318
|
-
exports.
|
|
1319
|
-
|
|
1320
|
-
exports.
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
exports.
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
exports.
|
|
1327
|
-
exports.
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
exports.
|
|
1332
|
-
|
|
1333
|
-
exports.
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
exports.
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
exports.
|
|
1341
|
-
exports.
|
|
1257
|
+
r5+4,r5+5,3,r5+1,13,4,r5+2,r5+3]),bdd5=BinaryDecisionDiagram2.from(nodes5,root5,_data5.conditions,_data5.results),cache5=new EndpointCache2({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),defaultEndpointResolver5=(endpointParams,context={})=>cache5.get(endpointParams,()=>decideEndpoint2(bdd5,{endpointParams,logger:context.logger}));customEndpointFunctions2.aws=awsEndpointFunctions2;var BedrockRuntimeServiceException2=class _BedrockRuntimeServiceException extends ServiceException2{static shapeId="\
|
|
1258
|
+
smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime#BedrockRuntimeServiceException";constructor(options){super(options),Object.setPrototypeOf(this,_BedrockRuntimeServiceException.prototype)}},AccessDeniedException3=class _AccessDeniedException extends BedrockRuntimeServiceException2{static shapeId="com.amazonaws.bedrockruntime#AccessDeniedException";name="AccessDeniedException";$fault="client";constructor(opts){super({name:"AccessDeniedException",$fault:"client",...opts}),Object.setPrototypeOf(
|
|
1259
|
+
this,_AccessDeniedException.prototype)}},InternalServerException3=class _InternalServerException extends BedrockRuntimeServiceException2{static shapeId="com.amazonaws.bedrockruntime#InternalServerException";name="InternalServerException";$fault="server";constructor(opts){super({name:"InternalServerException",$fault:"server",...opts}),Object.setPrototypeOf(this,_InternalServerException.prototype)}},ThrottlingException=class _ThrottlingException extends BedrockRuntimeServiceException2{static shapeId="\
|
|
1260
|
+
com.amazonaws.bedrockruntime#ThrottlingException";name="ThrottlingException";$fault="client";constructor(opts){super({name:"ThrottlingException",$fault:"client",...opts}),Object.setPrototypeOf(this,_ThrottlingException.prototype)}},ValidationException2=class _ValidationException extends BedrockRuntimeServiceException2{static shapeId="com.amazonaws.bedrockruntime#ValidationException";name="ValidationException";$fault="client";constructor(opts){super({name:"ValidationException",$fault:"client",...opts}),
|
|
1261
|
+
Object.setPrototypeOf(this,_ValidationException.prototype)}},ConflictException=class _ConflictException extends BedrockRuntimeServiceException2{static shapeId="com.amazonaws.bedrockruntime#ConflictException";name="ConflictException";$fault="client";constructor(opts){super({name:"ConflictException",$fault:"client",...opts}),Object.setPrototypeOf(this,_ConflictException.prototype)}},ResourceNotFoundException2=class _ResourceNotFoundException extends BedrockRuntimeServiceException2{static shapeId="\
|
|
1262
|
+
com.amazonaws.bedrockruntime#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(opts){super({name:"ResourceNotFoundException",$fault:"client",...opts}),Object.setPrototypeOf(this,_ResourceNotFoundException.prototype)}},ServiceQuotaExceededException=class _ServiceQuotaExceededException extends BedrockRuntimeServiceException2{static shapeId="com.amazonaws.bedrockruntime#ServiceQuotaExceededException";name="ServiceQuotaExceededException";$fault="client";constructor(opts){
|
|
1263
|
+
super({name:"ServiceQuotaExceededException",$fault:"client",...opts}),Object.setPrototypeOf(this,_ServiceQuotaExceededException.prototype)}},ServiceUnavailableException=class _ServiceUnavailableException extends BedrockRuntimeServiceException2{static shapeId="com.amazonaws.bedrockruntime#ServiceUnavailableException";name="ServiceUnavailableException";$fault="server";constructor(opts){super({name:"ServiceUnavailableException",$fault:"server",...opts}),Object.setPrototypeOf(this,_ServiceUnavailableException.
|
|
1264
|
+
prototype)}},ModelErrorException=class _ModelErrorException extends BedrockRuntimeServiceException2{static shapeId="com.amazonaws.bedrockruntime#ModelErrorException";name="ModelErrorException";$fault="client";originalStatusCode;resourceName;constructor(opts){super({name:"ModelErrorException",$fault:"client",...opts}),Object.setPrototypeOf(this,_ModelErrorException.prototype),this.originalStatusCode=opts.originalStatusCode,this.resourceName=opts.resourceName}},ModelNotReadyException=class _ModelNotReadyException extends BedrockRuntimeServiceException2{static shapeId="\
|
|
1265
|
+
com.amazonaws.bedrockruntime#ModelNotReadyException";name="ModelNotReadyException";$fault="client";$retryable={};constructor(opts){super({name:"ModelNotReadyException",$fault:"client",...opts}),Object.setPrototypeOf(this,_ModelNotReadyException.prototype)}},ModelTimeoutException=class _ModelTimeoutException extends BedrockRuntimeServiceException2{static shapeId="com.amazonaws.bedrockruntime#ModelTimeoutException";name="ModelTimeoutException";$fault="client";constructor(opts){super({name:"ModelTi\
|
|
1266
|
+
meoutException",$fault:"client",...opts}),Object.setPrototypeOf(this,_ModelTimeoutException.prototype)}},ModelStreamErrorException=class _ModelStreamErrorException extends BedrockRuntimeServiceException2{static shapeId="com.amazonaws.bedrockruntime#ModelStreamErrorException";name="ModelStreamErrorException";$fault="client";originalStatusCode;originalMessage;constructor(opts){super({name:"ModelStreamErrorException",$fault:"client",...opts}),Object.setPrototypeOf(this,_ModelStreamErrorException.prototype),
|
|
1267
|
+
this.originalStatusCode=opts.originalStatusCode,this.originalMessage=opts.originalMessage}},_A2="Accept",_AB="AudioBlock",_ADE3="AccessDeniedException",_AG="ApplyGuardrail",_AGD="AppliedGuardrailDetails",_AGR="ApplyGuardrailRequest",_AGRp="ApplyGuardrailResponse",_AIM="AsyncInvokeMessage",_AIODC="AsyncInvokeOutputDataConfig",_AIS="AsyncInvokeSummary",_AISODC="AsyncInvokeS3OutputDataConfig",_AISs="AsyncInvokeSummaries",_AS="AudioSource",_ATC="AnyToolChoice",_ATCu="AutoToolChoice",_B="Body",_BIPP="\
|
|
1268
|
+
BidirectionalInputPayloadPart",_BOPP="BidirectionalOutputPayloadPart",_C2="Citation",_CB="ContentBlocks",_CBD="ContentBlockDelta",_CBDE="ContentBlockDeltaEvent",_CBS="ContentBlockStart",_CBSE="ContentBlockStartEvent",_CBSEo="ContentBlockStopEvent",_CBo="ContentBlock",_CC="CitationsConfig",_CCB="CitationsContentBlock",_CD="CacheDetail",_CDL="CacheDetailsList",_CDi="CitationsDelta",_CE="ConflictException",_CGC="CitationGeneratedContent",_CGCL="CitationGeneratedContentList",_CL="CitationLocation",_CM="\
|
|
1269
|
+
ConverseMetrics",_CO="ConverseOutput",_CPB="CachePointBlock",_CR="ConverseRequest",_CRo="ConverseResponse",_CS2="ConverseStream",_CSC="CitationSourceContent",_CSCD="CitationSourceContentDelta",_CSCL="CitationSourceContentList",_CSCLD="CitationSourceContentListDelta",_CSM="ConverseStreamMetrics",_CSME="ConverseStreamMetadataEvent",_CSO="ConverseStreamOutput",_CSR="ConverseStreamRequest",_CSRo="ConverseStreamResponse",_CST="ConverseStreamTrace",_CT2="ConverseTrace",_CTI="CountTokensInput",_CTR2="C\
|
|
1270
|
+
onverseTokensRequest",_CTRo="CountTokensRequest",_CTRou="CountTokensResponse",_CT_="Content-Type",_CTo="CountTokens",_Ci="Citations",_Co="Converse",_DB="DocumentBlock",_DCB="DocumentContentBlocks",_DCBo="DocumentContentBlock",_DCL="DocumentCharLocation",_DCLo="DocumentChunkLocation",_DPL="DocumentPageLocation",_DS2="DocumentSource",_EB="ErrorBlock",_GA="GuardrailAssessment",_GAI="GetAsyncInvoke",_GAIR="GetAsyncInvokeRequest",_GAIRe="GetAsyncInvokeResponse",_GAL="GuardrailAssessmentList",_GALM="G\
|
|
1271
|
+
uardrailAssessmentListMap",_GAM="GuardrailAssessmentMap",_GARDSL="GuardrailAutomatedReasoningDifferenceScenarioList",_GARF="GuardrailAutomatedReasoningFinding",_GARFL="GuardrailAutomatedReasoningFindingList",_GARIF="GuardrailAutomatedReasoningImpossibleFinding",_GARIFu="GuardrailAutomatedReasoningInvalidFinding",_GARITR="GuardrailAutomatedReasoningInputTextReference",_GARITRL="GuardrailAutomatedReasoningInputTextReferenceList",_GARLW="GuardrailAutomatedReasoningLogicWarning",_GARNTF="GuardrailAu\
|
|
1272
|
+
tomatedReasoningNoTranslationsFinding",_GARPA="GuardrailAutomatedReasoningPolicyAssessment",_GARR="GuardrailAutomatedReasoningRule",_GARRL="GuardrailAutomatedReasoningRuleList",_GARS="GuardrailAutomatedReasoningScenario",_GARSF="GuardrailAutomatedReasoningSatisfiableFinding",_GARSL="GuardrailAutomatedReasoningStatementList",_GARSLC="GuardrailAutomatedReasoningStatementLogicContent",_GARSNLC="GuardrailAutomatedReasoningStatementNaturalLanguageContent",_GARSu="GuardrailAutomatedReasoningStatement",
|
|
1273
|
+
_GART="GuardrailAutomatedReasoningTranslation",_GARTAF="GuardrailAutomatedReasoningTranslationAmbiguousFinding",_GARTCF="GuardrailAutomatedReasoningTooComplexFinding",_GARTL="GuardrailAutomatedReasoningTranslationList",_GARTO="GuardrailAutomatedReasoningTranslationOption",_GARTOL="GuardrailAutomatedReasoningTranslationOptionList",_GARVF="GuardrailAutomatedReasoningValidFinding",_GC="GuardrailConfiguration",_GCB="GuardrailContentBlock",_GCBL="GuardrailContentBlockList",_GCC="GuardrailChecksConfig",
|
|
1274
|
+
_GCCB="GuardrailChecksContentBlock",_GCCBL="GuardrailChecksContentBlockList",_GCCBu="GuardrailConverseContentBlock",_GCCFC="GuardrailChecksContentFilterConfig",_GCCFCC="GuardrailChecksContentFilterCategoryConfig",_GCCFCCL="GuardrailChecksContentFilterCategoryConfigList",_GCCFR="GuardrailChecksContentFilterResult",_GCCFRE="GuardrailChecksContentFilterResultEntry",_GCCFRL="GuardrailChecksContentFilterResultList",_GCCFU="GuardrailChecksContentFilterUsage",_GCF="GuardrailContentFilter",_GCFL="Guardr\
|
|
1275
|
+
ailContentFilterList",_GCGF="GuardrailContextualGroundingFilter",_GCGFu="GuardrailContextualGroundingFilters",_GCGPA="GuardrailContextualGroundingPolicyAssessment",_GCIB="GuardrailConverseImageBlock",_GCIS="GuardrailConverseImageSource",_GCM="GuardrailChecksMessage",_GCML="GuardrailChecksMessageList",_GCPA="GuardrailContentPolicyAssessment",_GCPAC="GuardrailChecksPromptAttackConfig",_GCPACC="GuardrailChecksPromptAttackCategoryConfig",_GCPACCL="GuardrailChecksPromptAttackCategoryConfigList",_GCPAR="\
|
|
1276
|
+
GuardrailChecksPromptAttackResult",_GCPARE="GuardrailChecksPromptAttackResultEntry",_GCPARL="GuardrailChecksPromptAttackResultList",_GCPAU="GuardrailChecksPromptAttackUsage",_GCR="GuardrailChecksResults",_GCSIC="GuardrailChecksSensitiveInformationConfig",_GCSIEC="GuardrailChecksSensitiveInformationEntityConfig",_GCSIECL="GuardrailChecksSensitiveInformationEntityConfigList",_GCSIR="GuardrailChecksSensitiveInformationResult",_GCSIRE="GuardrailChecksSensitiveInformationResultEntry",_GCSIRL="Guardra\
|
|
1277
|
+
ilChecksSensitiveInformationResultList",_GCSIU="GuardrailChecksSensitiveInformationUsage",_GCTB="GuardrailConverseTextBlock",_GCTC="GuardrailChecksTextContent",_GCUR="GuardrailChecksUsageResults",_GCW="GuardrailCustomWord",_GCWL="GuardrailCustomWordList",_GCu="GuardrailCoverage",_GIB="GuardrailImageBlock",_GIC="GuardrailImageCoverage",_GIM="GuardrailInvocationMetrics",_GIS="GuardrailImageSource",_GMW="GuardrailManagedWord",_GMWL="GuardrailManagedWordList",_GOC="GuardrailOutputContent",_GOCL="Gua\
|
|
1278
|
+
rdrailOutputContentList",_GPEF="GuardrailPiiEntityFilter",_GPEFL="GuardrailPiiEntityFilterList",_GRF="GuardrailRegexFilter",_GRFL="GuardrailRegexFilterList",_GSC="GuardrailStreamConfiguration",_GSIPA="GuardrailSensitiveInformationPolicyAssessment",_GT="GuardrailTopic",_GTA="GuardrailTraceAssessment",_GTB="GuardrailTextBlock",_GTCC="GuardrailTextCharactersCoverage",_GTL="GuardrailTopicList",_GTPA="GuardrailTopicPolicyAssessment",_GU="GuardrailUsage",_GWPA="GuardrailWordPolicyAssessment",_IB="Imag\
|
|
1279
|
+
eBlock",_IBD="ImageBlockDelta",_IBS="ImageBlockStart",_IC="InferenceConfiguration",_IGC="InvokeGuardrailChecks",_IGCR="InvokeGuardrailChecksRequest",_IGCRn="InvokeGuardrailChecksResponse",_IM="InvokeModel",_IMR="InvokeModelRequest",_IMRn="InvokeModelResponse",_IMTR="InvokeModelTokensRequest",_IMWBS="InvokeModelWithBidirectionalStream",_IMWBSI="InvokeModelWithBidirectionalStreamInput",_IMWBSO="InvokeModelWithBidirectionalStreamOutput",_IMWBSR="InvokeModelWithBidirectionalStreamRequest",_IMWBSRn="\
|
|
1280
|
+
InvokeModelWithBidirectionalStreamResponse",_IMWRS="InvokeModelWithResponseStream",_IMWRSR="InvokeModelWithResponseStreamRequest",_IMWRSRn="InvokeModelWithResponseStreamResponse",_IS="ImageSource",_ISE3="InternalServerException",_JSD="JsonSchemaDefinition",_LAI="ListAsyncInvokes",_LAIR="ListAsyncInvokesRequest",_LAIRi="ListAsyncInvokesResponse",_M="Message",_MEE="ModelErrorException",_MIP="ModelInputPayload",_MNRE="ModelNotReadyException",_MSE="MessageStartEvent",_MSEE="ModelStreamErrorException",
|
|
1281
|
+
_MSEe="MessageStopEvent",_MTE="ModelTimeoutException",_Me="Messages",_OC="OutputConfig",_OF="OutputFormat",_OFS="OutputFormatStructure",_PB="PartBody",_PC2="PerformanceConfiguration",_PP="PayloadPart",_PRT="PromptRouterTrace",_PVM="PromptVariableMap",_PVV="PromptVariableValues",_RCB="ReasoningContentBlock",_RCBD="ReasoningContentBlockDelta",_RM="RequestMetadata",_RMJ="RequestMetadataJson",_RNFE2="ResourceNotFoundException",_RS="ResponseStream",_RTB="ReasoningTextBlock",_SAI="StartAsyncInvoke",_SAIR="\
|
|
1282
|
+
StartAsyncInvokeRequest",_SAIRt="StartAsyncInvokeResponse",_SCB="SystemContentBlocks",_SCBy="SystemContentBlock",_SL="S3Location",_SQEE="ServiceQuotaExceededException",_SRB="SearchResultBlock",_SRCB="SearchResultContentBlock",_SRCBe="SearchResultContentBlocks",_SRL="SearchResultLocation",_ST2="ServiceTier",_STC="SpecificToolChoice",_STy="SystemTool",_SUE="ServiceUnavailableException",_T2="Tag",_TAB="ToolAdditionBlock",_TC2="ToolConfiguration",_TCo="ToolChoice",_TE="ThrottlingException",_TIS="Too\
|
|
1283
|
+
lInputSchema",_TL="TagList",_TR="ToolReference",_TRB="ToolRemovalBlock",_TRBD="ToolResultBlocksDelta",_TRBDo="ToolResultBlockDelta",_TRBS="ToolResultBlockStart",_TRBo="ToolResultBlock",_TRCB="ToolResultContentBlocks",_TRCBo="ToolResultContentBlock",_TS="ToolSpecification",_TU="TokenUsage",_TUB="ToolUseBlock",_TUBD="ToolUseBlockDelta",_TUBS="ToolUseBlockStart",_To="Tools",_Too="Tool",_VB="VideoBlock",_VE2="ValidationException",_VS="VideoSource",_WL="WebLocation",_XABA="X-Amzn-Bedrock-Accept",_XABCT="\
|
|
1284
|
+
X-Amzn-Bedrock-Content-Type",_XABG="X-Amzn-Bedrock-GuardrailIdentifier",_XABG_="X-Amzn-Bedrock-GuardrailVersion",_XABPL="X-Amzn-Bedrock-PerformanceConfig-Latency",_XABRM="X-Amzn-Bedrock-Request-Metadata",_XABST="X-Amzn-Bedrock-Service-Tier",_XABT="X-Amzn-Bedrock-Trace",_a2="action",_aGD="appliedGuardrailDetails",_aIS="asyncInvokeSummaries",_aMRF="additionalModelRequestFields",_aMRFP="additionalModelResponseFieldPaths",_aMRFd="additionalModelResponseFields",_aR="actionReason",_aRP="automatedReaso\
|
|
1285
|
+
ningPolicy",_aRPU="automatedReasoningPolicyUnits",_aRPu="automatedReasoningPolicies",_ac="accept",_an="any",_as="assessments",_au="audio",_aut="auto",_b="bytes",_bO="bucketOwner",_bOe="beginOffset",_bo="body",_c5="client",_cBD="contentBlockDelta",_cBI="contentBlockIndex",_cBS="contentBlockStart",_cBSo="contentBlockStop",_cC="citationsContent",_cD="cacheDetails",_cF="contentFilter",_cFS="claimsFalseScenario",_cGP="contextualGroundingPolicy",_cGPU="contextualGroundingPolicyUnits",_cI3="contentInde\
|
|
1286
|
+
x",_cP="contentPolicy",_cPIU="contentPolicyImageUnits",_cPU="contentPolicyUnits",_cPa="cachePoint",_cR="contradictingRules",_cRIT="cacheReadInputTokens",_cRT="clientRequestToken",_cS2="confidenceScore",_cT="contentType",_cTS="claimsTrueScenario",_cW="customWords",_cWIT="cacheWriteInputTokens",_ca="category",_cat="categories",_ch="checks",_chu="chunk",_ci="citations",_cit="citation",_cl="claims",_co3="content",_con="context",_conf="confidence",_conv="converse",_d="delta",_dC2="documentChar",_dCo="\
|
|
1287
|
+
documentChunk",_dI="documentIndex",_dP="documentPage",_dS="differenceScenarios",_de="detected",_des="description",_do="domain",_doc="document",_e5="error",_eO="endOffset",_eT="endTime",_ef="effort",_en="enabled",_end="end",_ent="entities",_f="format",_fM="failureMessage",_fS="filterStrength",_fi="findings",_fil="filters",_g="guardrail",_gA="guardrailArn",_gC="guardrailCoverage",_gCu="guardrailConfig",_gCua="guardContent",_gI="guardrailId",_gIu="guardrailIdentifier",_gO="guardrailOrigin",_gOu="gu\
|
|
1288
|
+
ardrailOwnership",_gPL="guardrailProcessingLatency",_gV="guardrailVersion",_gu="guarded",_h4="http",_hE5="httpError",_hH2="httpHeader",_hQ2="httpQuery",_i="input",_iA="invocationArn",_iAn="inputAssessment",_iC="inferenceConfig",_iM="invocationMetrics",_iMI="invokedModelId",_iMn="invokeModel",_iS="inputSchema",_iSE="internalServerException",_iT3="inputTokens",_id="identifier",_im="images",_ima="image",_imp="impossible",_in="invalid",_j="json",_jS="jsonSchema",_k="key",_kKI="kmsKeyId",_l="location",
|
|
1289
|
+
_lM="latencyMs",_lMT="lastModifiedTime",_lW="logicWarning",_la="latency",_lo="logic",_m4="message",_mA="modelArn",_mI="modelId",_mIe="messageIndex",_mIo="modelInput",_mO="modelOutput",_mR="maxResults",_mS="messageStart",_mSEE="modelStreamErrorException",_mSe="messageStop",_mT="maxTokens",_mTE="modelTimeoutException",_mWL="managedWordLists",_ma="match",_me="messages",_met="metrics",_meta="metadata",_n="name",_nL="naturalLanguage",_nT="nextToken",_nTo="noTranslations",_o="outputs",_oA="outputAsses\
|
|
1290
|
+
sments",_oC="outputConfig",_oDC="outputDataConfig",_oM="originalMessage",_oS="outputScope",_oSC="originalStatusCode",_oT="outputTokens",_op="options",_ou="output",_p="premises",_pA="promptAttack",_pC="performanceConfig",_pCL="performanceConfigLatency",_pE="piiEntities",_pR="promptRouter",_pV="promptVariables",_pVA="policyVersionArn",_q="qualifiers",_r3="results",_rC2="reasoningContent",_rCe="redactedContent",_rM="requestMetadata",_rN2="resourceName",_rT3="reasoningText",_re="regex",_reg="regexes",
|
|
1291
|
+
_ro="role",_s5="smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime",_sB="sortBy",_sC="sourceContent",_sE="statusEquals",_sI="sensitiveInformation",_sIP="sensitiveInformationPolicy",_sIPFU="sensitiveInformationPolicyFreeUnits",_sIPU="sensitiveInformationPolicyUnits",_sL="s3Location",_sN="serverName",_sO="sortOrder",_sODC="s3OutputDataConfig",_sPM="streamProcessingMode",_sR="stopReason",_sRI="searchResultIndex",_sRL="searchResultLocation",_sRe="searchResult",_sRu="supportingRules",_sS="severityS\
|
|
1292
|
+
core",_sSt="stopSequences",_sT3="submitTime",_sTA="submitTimeAfter",_sTB="submitTimeBefore",_sTe="serviceTier",_sTy="systemTool",_sU="s3Uri",_sUE="serviceUnavailableException",_sa="satisfiable",_sc2="score",_sch="schema",_se3="server",_si="signature",_so="source",_st="status",_sta="start",_stat="statements",_str="stream",_stre="streaming",_stri="strict",_stru="structure",_sy="system",_t="ttl",_tA="toolAddition",_tAr="translationAmbiguous",_tC="toolConfig",_tCe="textCharacters",_tCo="toolChoice",
|
|
1293
|
+
_tCoo="tooComplex",_tE="throttlingException",_tF="textFormat",_tP="topicPolicy",_tPU="topicPolicyUnits",_tPo="topP",_tR="toolResult",_tRo="toolRemoval",_tS="toolSpec",_tT3="totalTokens",_tU="textUnits",_tUI="toolUseId",_tUo="toolUse",_ta="tags",_te="text",_tem="temperature",_th="threshold",_ti="title",_to="total",_too="tool",_tool="tools",_top="topics",_tr="trace",_tra="translation",_tran="translations",_tru="truncated",_ty="type",_u="usage",_uC="untranslatedClaims",_uP="untranslatedPremises",_ur="\
|
|
1294
|
+
uri",_url="url",_v="value",_vE="validationException",_va="valid",_vi="video",_w="web",_wP="wordPolicy",_wPU="wordPolicyUnits",n05="com.amazonaws.bedrockruntime",_s_registry5=new TypeRegistry2(_s5),BedrockRuntimeServiceException$=[-3,_s5,"BedrockRuntimeServiceException",0,[],[]];_s_registry5.registerError(BedrockRuntimeServiceException$,BedrockRuntimeServiceException2);var n0_registry5=new TypeRegistry2(n05),AccessDeniedException$3=[-3,n05,_ADE3,{[_e5]:_c5,[_hE5]:403},[_m4],[0]];n0_registry5.registerError(
|
|
1295
|
+
AccessDeniedException$3,AccessDeniedException3);var ConflictException$=[-3,n05,_CE,{[_e5]:_c5,[_hE5]:400},[_m4],[0]];n0_registry5.registerError(ConflictException$,ConflictException);var InternalServerException$3=[-3,n05,_ISE3,{[_e5]:_se3,[_hE5]:500},[_m4],[0]];n0_registry5.registerError(InternalServerException$3,InternalServerException3);var ModelErrorException$=[-3,n05,_MEE,{[_e5]:_c5,[_hE5]:424},[_m4,_oSC,_rN2],[0,1,0]];n0_registry5.registerError(ModelErrorException$,ModelErrorException);var ModelNotReadyException$=[
|
|
1296
|
+
-3,n05,_MNRE,{[_e5]:_c5,[_hE5]:429},[_m4],[0]];n0_registry5.registerError(ModelNotReadyException$,ModelNotReadyException);var ModelStreamErrorException$=[-3,n05,_MSEE,{[_e5]:_c5,[_hE5]:424},[_m4,_oSC,_oM],[0,1,0]];n0_registry5.registerError(ModelStreamErrorException$,ModelStreamErrorException);var ModelTimeoutException$=[-3,n05,_MTE,{[_e5]:_c5,[_hE5]:408},[_m4],[0]];n0_registry5.registerError(ModelTimeoutException$,ModelTimeoutException);var ResourceNotFoundException$2=[-3,n05,_RNFE2,{[_e5]:_c5,
|
|
1297
|
+
[_hE5]:404},[_m4],[0]];n0_registry5.registerError(ResourceNotFoundException$2,ResourceNotFoundException2);var ServiceQuotaExceededException$=[-3,n05,_SQEE,{[_e5]:_c5,[_hE5]:400},[_m4],[0]];n0_registry5.registerError(ServiceQuotaExceededException$,ServiceQuotaExceededException);var ServiceUnavailableException$=[-3,n05,_SUE,{[_e5]:_se3,[_hE5]:503},[_m4],[0]];n0_registry5.registerError(ServiceUnavailableException$,ServiceUnavailableException);var ThrottlingException$=[-3,n05,_TE,{[_e5]:_c5,[_hE5]:429},
|
|
1298
|
+
[_m4],[0]];n0_registry5.registerError(ThrottlingException$,ThrottlingException);var ValidationException$2=[-3,n05,_VE2,{[_e5]:_c5,[_hE5]:400},[_m4],[0]];n0_registry5.registerError(ValidationException$2,ValidationException2);var errorTypeRegistries5=[_s_registry5,n0_registry5],AsyncInvokeMessage=[0,n05,_AIM,8,0],Body=[0,n05,_B,8,21],GuardrailAutomatedReasoningStatementLogicContent=[0,n05,_GARSLC,8,0],GuardrailAutomatedReasoningStatementNaturalLanguageContent=[0,n05,_GARSNLC,8,0],GuardrailChecksTextContent=[
|
|
1299
|
+
0,n05,_GCTC,8,0],ModelInputPayload=[0,n05,_MIP,8,15],PartBody=[0,n05,_PB,8,21],RequestMetadataJson=[0,n05,_RMJ,8,0],AnyToolChoice$=[3,n05,_ATC,0,[],[]],AppliedGuardrailDetails$=[3,n05,_AGD,0,[_gI,_gV,_gA,_gO,_gOu],[0,0,0,64,0]],ApplyGuardrailRequest$=[3,n05,_AGR,0,[_gIu,_gV,_so,_co3,_oS],[[0,1],[0,1],0,[()=>GuardrailContentBlockList,0],0],4],ApplyGuardrailResponse$=[3,n05,_AGRp,0,[_u,_a2,_o,_as,_aR,_gC],[()=>GuardrailUsage$,0,()=>GuardrailOutputContentList,[()=>GuardrailAssessmentList,0],0,()=>GuardrailCoverage$],
|
|
1300
|
+
4],AsyncInvokeS3OutputDataConfig$=[3,n05,_AISODC,0,[_sU,_kKI,_bO],[0,0,0],1],AsyncInvokeSummary$=[3,n05,_AIS,0,[_iA,_mA,_sT3,_oDC,_cRT,_st,_fM,_lMT,_eT],[0,0,5,()=>AsyncInvokeOutputDataConfig$,0,0,[()=>AsyncInvokeMessage,0],5,5],4],AudioBlock$=[3,n05,_AB,0,[_f,_so,_e5],[0,[()=>AudioSource$,0],[()=>ErrorBlock$,0]],2],AutoToolChoice$=[3,n05,_ATCu,0,[],[]],BidirectionalInputPayloadPart$=[3,n05,_BIPP,8,[_b],[[()=>PartBody,0]]],BidirectionalOutputPayloadPart$=[3,n05,_BOPP,8,[_b],[[()=>PartBody,0]]],CacheDetail$=[
|
|
1301
|
+
3,n05,_CD,0,[_t,_iT3],[0,1],2],CachePointBlock$=[3,n05,_CPB,0,[_ty,_t],[0,0],1],Citation$=[3,n05,_C2,0,[_ti,_so,_sC,_l],[0,0,()=>CitationSourceContentList,()=>CitationLocation$]],CitationsConfig$=[3,n05,_CC,0,[_en],[2],1],CitationsContentBlock$=[3,n05,_CCB,0,[_co3,_ci],[()=>CitationGeneratedContentList,()=>Citations]],CitationsDelta$=[3,n05,_CDi,0,[_ti,_so,_sC,_l],[0,0,()=>CitationSourceContentListDelta,()=>CitationLocation$]],CitationSourceContentDelta$=[3,n05,_CSCD,0,[_te],[0]],ContentBlockDeltaEvent$=[
|
|
1302
|
+
3,n05,_CBDE,0,[_d,_cBI],[[()=>ContentBlockDelta$,0],1],2],ContentBlockStartEvent$=[3,n05,_CBSE,0,[_sta,_cBI],[()=>ContentBlockStart$,1],2],ContentBlockStopEvent$=[3,n05,_CBSEo,0,[_cBI],[1],1],ConverseMetrics$=[3,n05,_CM,0,[_lM],[1],1],ConverseRequest$=[3,n05,_CR,0,[_mI,_me,_sy,_iC,_tC,_gCu,_aMRF,_pV,_aMRFP,_rM,_pC,_sTe,_oC],[[0,1],[()=>Messages,0],[()=>SystemContentBlocks,0],()=>InferenceConfiguration$,()=>ToolConfiguration$,()=>GuardrailConfiguration$,15,[()=>PromptVariableMap,0],64,[()=>RequestMetadata,
|
|
1303
|
+
0],()=>PerformanceConfiguration$,()=>ServiceTier$,[()=>OutputConfig$,0]],1],ConverseResponse$=[3,n05,_CRo,0,[_ou,_sR,_u,_met,_aMRFd,_tr,_pC,_sTe],[[()=>ConverseOutput$,0],0,()=>TokenUsage$,()=>ConverseMetrics$,15,[()=>ConverseTrace$,0],()=>PerformanceConfiguration$,()=>ServiceTier$],4],ConverseStreamMetadataEvent$=[3,n05,_CSME,0,[_u,_met,_tr,_pC,_sTe],[()=>TokenUsage$,()=>ConverseStreamMetrics$,[()=>ConverseStreamTrace$,0],()=>PerformanceConfiguration$,()=>ServiceTier$],2],ConverseStreamMetrics$=[
|
|
1304
|
+
3,n05,_CSM,0,[_lM],[1],1],ConverseStreamRequest$=[3,n05,_CSR,0,[_mI,_me,_sy,_iC,_tC,_gCu,_aMRF,_pV,_aMRFP,_rM,_pC,_sTe,_oC],[[0,1],[()=>Messages,0],[()=>SystemContentBlocks,0],()=>InferenceConfiguration$,()=>ToolConfiguration$,()=>GuardrailStreamConfiguration$,15,[()=>PromptVariableMap,0],64,[()=>RequestMetadata,0],()=>PerformanceConfiguration$,()=>ServiceTier$,[()=>OutputConfig$,0]],1],ConverseStreamResponse$=[3,n05,_CSRo,0,[_str],[[()=>ConverseStreamOutput$,16]]],ConverseStreamTrace$=[3,n05,_CST,
|
|
1305
|
+
0,[_g,_pR],[[()=>GuardrailTraceAssessment$,0],()=>PromptRouterTrace$]],ConverseTokensRequest$=[3,n05,_CTR2,0,[_me,_sy,_tC,_aMRF],[[()=>Messages,0],[()=>SystemContentBlocks,0],()=>ToolConfiguration$,15]],ConverseTrace$=[3,n05,_CT2,0,[_g,_pR],[[()=>GuardrailTraceAssessment$,0],()=>PromptRouterTrace$]],CountTokensRequest$=[3,n05,_CTRo,0,[_mI,_i],[[0,1],[()=>CountTokensInput$,0]],2],CountTokensResponse$=[3,n05,_CTRou,0,[_iT3],[1],1],DocumentBlock$=[3,n05,_DB,0,[_n,_so,_f,_con,_ci],[0,()=>DocumentSource$,
|
|
1306
|
+
0,0,()=>CitationsConfig$],2],DocumentCharLocation$=[3,n05,_DCL,0,[_dI,_sta,_end],[1,1,1]],DocumentChunkLocation$=[3,n05,_DCLo,0,[_dI,_sta,_end],[1,1,1]],DocumentPageLocation$=[3,n05,_DPL,0,[_dI,_sta,_end],[1,1,1]],ErrorBlock$=[3,n05,_EB,8,[_m4],[0]],GetAsyncInvokeRequest$=[3,n05,_GAIR,0,[_iA],[[0,1]],1],GetAsyncInvokeResponse$=[3,n05,_GAIRe,0,[_iA,_mA,_st,_sT3,_oDC,_cRT,_fM,_lMT,_eT],[0,0,0,5,()=>AsyncInvokeOutputDataConfig$,0,[()=>AsyncInvokeMessage,0],5,5],5],GuardrailAssessment$=[3,n05,_GA,0,
|
|
1307
|
+
[_tP,_cP,_wP,_sIP,_cGP,_aRP,_iM,_aGD],[()=>GuardrailTopicPolicyAssessment$,()=>GuardrailContentPolicyAssessment$,()=>GuardrailWordPolicyAssessment$,()=>GuardrailSensitiveInformationPolicyAssessment$,()=>GuardrailContextualGroundingPolicyAssessment$,[()=>GuardrailAutomatedReasoningPolicyAssessment$,0],()=>GuardrailInvocationMetrics$,()=>AppliedGuardrailDetails$]],GuardrailAutomatedReasoningImpossibleFinding$=[3,n05,_GARIF,0,[_tra,_cR,_lW],[[()=>GuardrailAutomatedReasoningTranslation$,0],()=>GuardrailAutomatedReasoningRuleList,
|
|
1308
|
+
[()=>GuardrailAutomatedReasoningLogicWarning$,0]]],GuardrailAutomatedReasoningInputTextReference$=[3,n05,_GARITR,0,[_te],[[()=>GuardrailAutomatedReasoningStatementNaturalLanguageContent,0]]],GuardrailAutomatedReasoningInvalidFinding$=[3,n05,_GARIFu,0,[_tra,_cR,_lW],[[()=>GuardrailAutomatedReasoningTranslation$,0],()=>GuardrailAutomatedReasoningRuleList,[()=>GuardrailAutomatedReasoningLogicWarning$,0]]],GuardrailAutomatedReasoningLogicWarning$=[3,n05,_GARLW,0,[_ty,_p,_cl],[0,[()=>GuardrailAutomatedReasoningStatementList,
|
|
1309
|
+
0],[()=>GuardrailAutomatedReasoningStatementList,0]]],GuardrailAutomatedReasoningNoTranslationsFinding$=[3,n05,_GARNTF,0,[],[]],GuardrailAutomatedReasoningPolicyAssessment$=[3,n05,_GARPA,0,[_fi],[[()=>GuardrailAutomatedReasoningFindingList,0]]],GuardrailAutomatedReasoningRule$=[3,n05,_GARR,0,[_id,_pVA],[0,0]],GuardrailAutomatedReasoningSatisfiableFinding$=[3,n05,_GARSF,0,[_tra,_cTS,_cFS,_lW],[[()=>GuardrailAutomatedReasoningTranslation$,0],[()=>GuardrailAutomatedReasoningScenario$,0],[()=>GuardrailAutomatedReasoningScenario$,
|
|
1310
|
+
0],[()=>GuardrailAutomatedReasoningLogicWarning$,0]]],GuardrailAutomatedReasoningScenario$=[3,n05,_GARS,0,[_stat],[[()=>GuardrailAutomatedReasoningStatementList,0]]],GuardrailAutomatedReasoningStatement$=[3,n05,_GARSu,0,[_lo,_nL],[[()=>GuardrailAutomatedReasoningStatementLogicContent,0],[()=>GuardrailAutomatedReasoningStatementNaturalLanguageContent,0]]],GuardrailAutomatedReasoningTooComplexFinding$=[3,n05,_GARTCF,0,[],[]],GuardrailAutomatedReasoningTranslation$=[3,n05,_GART,0,[_p,_cl,_uP,_uC,_conf],
|
|
1311
|
+
[[()=>GuardrailAutomatedReasoningStatementList,0],[()=>GuardrailAutomatedReasoningStatementList,0],[()=>GuardrailAutomatedReasoningInputTextReferenceList,0],[()=>GuardrailAutomatedReasoningInputTextReferenceList,0],1]],GuardrailAutomatedReasoningTranslationAmbiguousFinding$=[3,n05,_GARTAF,0,[_op,_dS],[[()=>GuardrailAutomatedReasoningTranslationOptionList,0],[()=>GuardrailAutomatedReasoningDifferenceScenarioList,0]]],GuardrailAutomatedReasoningTranslationOption$=[3,n05,_GARTO,0,[_tran],[[()=>GuardrailAutomatedReasoningTranslationList,
|
|
1312
|
+
0]]],GuardrailAutomatedReasoningValidFinding$=[3,n05,_GARVF,0,[_tra,_cTS,_sRu,_lW],[[()=>GuardrailAutomatedReasoningTranslation$,0],[()=>GuardrailAutomatedReasoningScenario$,0],()=>GuardrailAutomatedReasoningRuleList,[()=>GuardrailAutomatedReasoningLogicWarning$,0]]],GuardrailChecksConfig$=[3,n05,_GCC,0,[_cF,_pA,_sI],[()=>GuardrailChecksContentFilterConfig$,()=>GuardrailChecksPromptAttackConfig$,()=>GuardrailChecksSensitiveInformationConfig$]],GuardrailChecksContentFilterCategoryConfig$=[3,n05,_GCCFCC,
|
|
1313
|
+
0,[_ca],[0],1],GuardrailChecksContentFilterConfig$=[3,n05,_GCCFC,0,[_cat],[()=>GuardrailChecksContentFilterCategoryConfigList],1],GuardrailChecksContentFilterResult$=[3,n05,_GCCFR,0,[_r3],[()=>GuardrailChecksContentFilterResultList],1],GuardrailChecksContentFilterResultEntry$=[3,n05,_GCCFRE,0,[_ca,_sS],[0,1],2],GuardrailChecksContentFilterUsage$=[3,n05,_GCCFU,0,[_tU],[1],1],GuardrailChecksMessage$=[3,n05,_GCM,0,[_ro,_co3],[0,[()=>GuardrailChecksContentBlockList,0]],2],GuardrailChecksPromptAttackCategoryConfig$=[
|
|
1314
|
+
3,n05,_GCPACC,0,[_ca],[0],1],GuardrailChecksPromptAttackConfig$=[3,n05,_GCPAC,0,[_cat],[()=>GuardrailChecksPromptAttackCategoryConfigList],1],GuardrailChecksPromptAttackResult$=[3,n05,_GCPAR,0,[_r3],[()=>GuardrailChecksPromptAttackResultList],1],GuardrailChecksPromptAttackResultEntry$=[3,n05,_GCPARE,0,[_ca,_sS],[0,1],2],GuardrailChecksPromptAttackUsage$=[3,n05,_GCPAU,0,[_tU],[1],1],GuardrailChecksResults$=[3,n05,_GCR,0,[_cF,_pA,_sI],[()=>GuardrailChecksContentFilterResult$,()=>GuardrailChecksPromptAttackResult$,
|
|
1315
|
+
()=>GuardrailChecksSensitiveInformationResult$]],GuardrailChecksSensitiveInformationConfig$=[3,n05,_GCSIC,0,[_ent],[()=>GuardrailChecksSensitiveInformationEntityConfigList],1],GuardrailChecksSensitiveInformationEntityConfig$=[3,n05,_GCSIEC,0,[_ty],[0],1],GuardrailChecksSensitiveInformationResult$=[3,n05,_GCSIR,0,[_r3,_tru],[()=>GuardrailChecksSensitiveInformationResultList,2],1],GuardrailChecksSensitiveInformationResultEntry$=[3,n05,_GCSIRE,0,[_ty,_cS2,_bOe,_eO,_mIe,_cI3],[0,1,1,1,1,1],6],GuardrailChecksSensitiveInformationUsage$=[
|
|
1316
|
+
3,n05,_GCSIU,0,[_tU],[1],1],GuardrailChecksUsageResults$=[3,n05,_GCUR,0,[_cF,_pA,_sI],[()=>GuardrailChecksContentFilterUsage$,()=>GuardrailChecksPromptAttackUsage$,()=>GuardrailChecksSensitiveInformationUsage$]],GuardrailConfiguration$=[3,n05,_GC,0,[_gIu,_gV,_tr],[0,0,0]],GuardrailContentFilter$=[3,n05,_GCF,0,[_ty,_conf,_a2,_fS,_de],[0,0,0,0,2],3],GuardrailContentPolicyAssessment$=[3,n05,_GCPA,0,[_fil],[()=>GuardrailContentFilterList],1],GuardrailContextualGroundingFilter$=[3,n05,_GCGF,0,[_ty,_th,
|
|
1317
|
+
_sc2,_a2,_de],[0,1,1,0,2],4],GuardrailContextualGroundingPolicyAssessment$=[3,n05,_GCGPA,0,[_fil],[()=>GuardrailContextualGroundingFilters]],GuardrailConverseImageBlock$=[3,n05,_GCIB,8,[_f,_so],[0,[()=>GuardrailConverseImageSource$,0]],2],GuardrailConverseTextBlock$=[3,n05,_GCTB,0,[_te,_q],[0,64],1],GuardrailCoverage$=[3,n05,_GCu,0,[_tCe,_im],[()=>GuardrailTextCharactersCoverage$,()=>GuardrailImageCoverage$]],GuardrailCustomWord$=[3,n05,_GCW,0,[_ma,_a2,_de],[0,0,2],2],GuardrailImageBlock$=[3,n05,
|
|
1318
|
+
_GIB,8,[_f,_so],[0,[()=>GuardrailImageSource$,0]],2],GuardrailImageCoverage$=[3,n05,_GIC,0,[_gu,_to],[1,1]],GuardrailInvocationMetrics$=[3,n05,_GIM,0,[_gPL,_u,_gC],[1,()=>GuardrailUsage$,()=>GuardrailCoverage$]],GuardrailManagedWord$=[3,n05,_GMW,0,[_ma,_ty,_a2,_de],[0,0,0,2],3],GuardrailOutputContent$=[3,n05,_GOC,0,[_te],[0]],GuardrailPiiEntityFilter$=[3,n05,_GPEF,0,[_ma,_ty,_a2,_de],[0,0,0,2],3],GuardrailRegexFilter$=[3,n05,_GRF,0,[_a2,_n,_ma,_re,_de],[0,0,0,0,2],1],GuardrailSensitiveInformationPolicyAssessment$=[
|
|
1319
|
+
3,n05,_GSIPA,0,[_pE,_reg],[()=>GuardrailPiiEntityFilterList,()=>GuardrailRegexFilterList],2],GuardrailStreamConfiguration$=[3,n05,_GSC,0,[_gIu,_gV,_tr,_sPM],[0,0,0,0]],GuardrailTextBlock$=[3,n05,_GTB,0,[_te,_q],[0,64],1],GuardrailTextCharactersCoverage$=[3,n05,_GTCC,0,[_gu,_to],[1,1]],GuardrailTopic$=[3,n05,_GT,0,[_n,_ty,_a2,_de],[0,0,0,2],3],GuardrailTopicPolicyAssessment$=[3,n05,_GTPA,0,[_top],[()=>GuardrailTopicList],1],GuardrailTraceAssessment$=[3,n05,_GTA,0,[_mO,_iAn,_oA,_aR],[64,[()=>GuardrailAssessmentMap,
|
|
1320
|
+
0],[()=>GuardrailAssessmentListMap,0],0]],GuardrailUsage$=[3,n05,_GU,0,[_tPU,_cPU,_wPU,_sIPU,_sIPFU,_cGPU,_cPIU,_aRPU,_aRPu],[1,1,1,1,1,1,1,1,1],6],GuardrailWordPolicyAssessment$=[3,n05,_GWPA,0,[_cW,_mWL],[()=>GuardrailCustomWordList,()=>GuardrailManagedWordList],2],ImageBlock$=[3,n05,_IB,0,[_f,_so,_e5],[0,[()=>ImageSource$,0],[()=>ErrorBlock$,0]],2],ImageBlockDelta$=[3,n05,_IBD,0,[_so,_e5],[[()=>ImageSource$,0],[()=>ErrorBlock$,0]]],ImageBlockStart$=[3,n05,_IBS,0,[_f],[0],1],InferenceConfiguration$=[
|
|
1321
|
+
3,n05,_IC,0,[_mT,_tem,_tPo,_sSt],[1,1,1,64]],InvokeGuardrailChecksRequest$=[3,n05,_IGCR,0,[_me,_ch],[[()=>GuardrailChecksMessageList,0],()=>GuardrailChecksConfig$],2],InvokeGuardrailChecksResponse$=[3,n05,_IGCRn,0,[_r3,_u],[()=>GuardrailChecksResults$,()=>GuardrailChecksUsageResults$],2],InvokeModelRequest$=[3,n05,_IMR,0,[_mI,_bo,_cT,_ac,_tr,_gIu,_gV,_pCL,_sTe,_rM],[[0,1],[()=>Body,16],[0,{[_hH2]:_CT_}],[0,{[_hH2]:_A2}],[0,{[_hH2]:_XABT}],[0,{[_hH2]:_XABG}],[0,{[_hH2]:_XABG_}],[0,{[_hH2]:_XABPL}],
|
|
1322
|
+
[0,{[_hH2]:_XABST}],[()=>RequestMetadataJson,{[_hH2]:_XABRM}]],1],InvokeModelResponse$=[3,n05,_IMRn,0,[_bo,_cT,_pCL,_sTe],[[()=>Body,16],[0,{[_hH2]:_CT_}],[0,{[_hH2]:_XABPL}],[0,{[_hH2]:_XABST}]],2],InvokeModelTokensRequest$=[3,n05,_IMTR,0,[_bo],[[()=>Body,0]],1],InvokeModelWithBidirectionalStreamRequest$=[3,n05,_IMWBSR,0,[_mI,_bo],[[0,1],[()=>InvokeModelWithBidirectionalStreamInput$,16]],2],InvokeModelWithBidirectionalStreamResponse$=[3,n05,_IMWBSRn,0,[_bo],[[()=>InvokeModelWithBidirectionalStreamOutput$,
|
|
1323
|
+
16]],1],InvokeModelWithResponseStreamRequest$=[3,n05,_IMWRSR,0,[_mI,_bo,_cT,_ac,_tr,_gIu,_gV,_pCL,_sTe,_rM],[[0,1],[()=>Body,16],[0,{[_hH2]:_CT_}],[0,{[_hH2]:_XABA}],[0,{[_hH2]:_XABT}],[0,{[_hH2]:_XABG}],[0,{[_hH2]:_XABG_}],[0,{[_hH2]:_XABPL}],[0,{[_hH2]:_XABST}],[()=>RequestMetadataJson,{[_hH2]:_XABRM}]],1],InvokeModelWithResponseStreamResponse$=[3,n05,_IMWRSRn,0,[_bo,_cT,_pCL,_sTe],[[()=>ResponseStream$,16],[0,{[_hH2]:_XABCT}],[0,{[_hH2]:_XABPL}],[0,{[_hH2]:_XABST}]],2],JsonSchemaDefinition$=[
|
|
1324
|
+
3,n05,_JSD,0,[_sch,_n,_des],[0,0,0],1],ListAsyncInvokesRequest$=[3,n05,_LAIR,0,[_sTA,_sTB,_sE,_mR,_nT,_sB,_sO],[[5,{[_hQ2]:_sTA}],[5,{[_hQ2]:_sTB}],[0,{[_hQ2]:_sE}],[1,{[_hQ2]:_mR}],[0,{[_hQ2]:_nT}],[0,{[_hQ2]:_sB}],[0,{[_hQ2]:_sO}]]],ListAsyncInvokesResponse$=[3,n05,_LAIRi,0,[_nT,_aIS],[0,[()=>AsyncInvokeSummaries,0]]],Message$=[3,n05,_M,0,[_ro,_co3],[0,[()=>ContentBlocks,0]],2],MessageStartEvent$=[3,n05,_MSE,0,[_ro],[0],1],MessageStopEvent$=[3,n05,_MSEe,0,[_sR,_aMRFd],[0,15],1],OutputConfig$=[
|
|
1325
|
+
3,n05,_OC,0,[_tF,_ef],[[()=>OutputFormat$,0],0]],OutputFormat$=[3,n05,_OF,0,[_ty,_stru],[0,[()=>OutputFormatStructure$,0]],2],PayloadPart$=[3,n05,_PP,8,[_b],[[()=>PartBody,0]]],PerformanceConfiguration$=[3,n05,_PC2,0,[_la],[0]],PromptRouterTrace$=[3,n05,_PRT,0,[_iMI],[0]],ReasoningTextBlock$=[3,n05,_RTB,8,[_te,_si],[0,0],1],S3Location$=[3,n05,_SL,0,[_ur,_bO],[0,0],1],SearchResultBlock$=[3,n05,_SRB,0,[_so,_ti,_co3,_ci],[0,0,()=>SearchResultContentBlocks,()=>CitationsConfig$],3],SearchResultContentBlock$=[
|
|
1326
|
+
3,n05,_SRCB,0,[_te],[0],1],SearchResultLocation$=[3,n05,_SRL,0,[_sRI,_sta,_end],[1,1,1]],ServiceTier$=[3,n05,_ST2,0,[_ty],[0],1],SpecificToolChoice$=[3,n05,_STC,0,[_n],[0],1],StartAsyncInvokeRequest$=[3,n05,_SAIR,0,[_mI,_mIo,_oDC,_cRT,_ta],[0,[()=>ModelInputPayload,0],()=>AsyncInvokeOutputDataConfig$,[0,4],()=>TagList],3],StartAsyncInvokeResponse$=[3,n05,_SAIRt,0,[_iA],[0],1],SystemTool$=[3,n05,_STy,0,[_n],[0],1],Tag$2=[3,n05,_T2,0,[_k,_v],[0,0],2],TokenUsage$=[3,n05,_TU,0,[_iT3,_oT,_tT3,_cRIT,_cWIT,
|
|
1327
|
+
_cD],[1,1,1,1,1,()=>CacheDetailsList],3],ToolAdditionBlock$=[3,n05,_TAB,0,[_too],[()=>ToolReference$],1],ToolConfiguration$=[3,n05,_TC2,0,[_tool,_tCo],[()=>Tools,()=>ToolChoice$],1],ToolReference$=[3,n05,_TR,0,[_ty,_n,_sN],[0,0,0]],ToolRemovalBlock$=[3,n05,_TRB,0,[_too],[()=>ToolReference$],1],ToolResultBlock$=[3,n05,_TRBo,0,[_tUI,_co3,_st,_ty],[0,[()=>ToolResultContentBlocks,0],0,0],2],ToolResultBlockStart$=[3,n05,_TRBS,0,[_tUI,_ty,_st],[0,0,0],1],ToolSpecification$=[3,n05,_TS,0,[_n,_iS,_des,_stri],
|
|
1328
|
+
[0,()=>ToolInputSchema$,0,2],2],ToolUseBlock$=[3,n05,_TUB,0,[_tUI,_n,_i,_ty],[0,0,15,0],3],ToolUseBlockDelta$=[3,n05,_TUBD,0,[_i],[0],1],ToolUseBlockStart$=[3,n05,_TUBS,0,[_tUI,_n,_ty],[0,0,0],2],VideoBlock$=[3,n05,_VB,0,[_f,_so],[0,()=>VideoSource$],2],WebLocation$=[3,n05,_WL,0,[_url,_do],[0,0]],AsyncInvokeSummaries=[1,n05,_AISs,0,[()=>AsyncInvokeSummary$,0]],CacheDetailsList=[1,n05,_CDL,0,()=>CacheDetail$],CitationGeneratedContentList=[1,n05,_CGCL,0,()=>CitationGeneratedContent$],Citations=[1,
|
|
1329
|
+
n05,_Ci,0,()=>Citation$],CitationSourceContentList=[1,n05,_CSCL,0,()=>CitationSourceContent$],CitationSourceContentListDelta=[1,n05,_CSCLD,0,()=>CitationSourceContentDelta$],ContentBlocks=[1,n05,_CB,0,[()=>ContentBlock$,0]],DocumentContentBlocks=[1,n05,_DCB,0,()=>DocumentContentBlock$],GuardrailAssessmentList=[1,n05,_GAL,0,[()=>GuardrailAssessment$,0]],GuardrailAutomatedReasoningDifferenceScenarioList=[1,n05,_GARDSL,0,[()=>GuardrailAutomatedReasoningScenario$,0]],GuardrailAutomatedReasoningFindingList=[
|
|
1330
|
+
1,n05,_GARFL,0,[()=>GuardrailAutomatedReasoningFinding$,0]],GuardrailAutomatedReasoningInputTextReferenceList=[1,n05,_GARITRL,0,[()=>GuardrailAutomatedReasoningInputTextReference$,0]],GuardrailAutomatedReasoningRuleList=[1,n05,_GARRL,0,()=>GuardrailAutomatedReasoningRule$],GuardrailAutomatedReasoningStatementList=[1,n05,_GARSL,0,[()=>GuardrailAutomatedReasoningStatement$,0]],GuardrailAutomatedReasoningTranslationList=[1,n05,_GARTL,0,[()=>GuardrailAutomatedReasoningTranslation$,0]],GuardrailAutomatedReasoningTranslationOptionList=[
|
|
1331
|
+
1,n05,_GARTOL,0,[()=>GuardrailAutomatedReasoningTranslationOption$,0]],GuardrailChecksContentBlockList=[1,n05,_GCCBL,0,[()=>GuardrailChecksContentBlock$,0]],GuardrailChecksContentFilterCategoryConfigList=[1,n05,_GCCFCCL,0,()=>GuardrailChecksContentFilterCategoryConfig$],GuardrailChecksContentFilterResultList=[1,n05,_GCCFRL,0,()=>GuardrailChecksContentFilterResultEntry$],GuardrailChecksMessageList=[1,n05,_GCML,0,[()=>GuardrailChecksMessage$,0]],GuardrailChecksPromptAttackCategoryConfigList=[1,n05,
|
|
1332
|
+
_GCPACCL,0,()=>GuardrailChecksPromptAttackCategoryConfig$],GuardrailChecksPromptAttackResultList=[1,n05,_GCPARL,0,()=>GuardrailChecksPromptAttackResultEntry$],GuardrailChecksSensitiveInformationEntityConfigList=[1,n05,_GCSIECL,0,()=>GuardrailChecksSensitiveInformationEntityConfig$],GuardrailChecksSensitiveInformationResultList=[1,n05,_GCSIRL,0,()=>GuardrailChecksSensitiveInformationResultEntry$],GuardrailContentBlockList=[1,n05,_GCBL,0,[()=>GuardrailContentBlock$,0]],GuardrailContentFilterList=[
|
|
1333
|
+
1,n05,_GCFL,0,()=>GuardrailContentFilter$],GuardrailContextualGroundingFilters=[1,n05,_GCGFu,0,()=>GuardrailContextualGroundingFilter$],GuardrailCustomWordList=[1,n05,_GCWL,0,()=>GuardrailCustomWord$],GuardrailManagedWordList=[1,n05,_GMWL,0,()=>GuardrailManagedWord$],GuardrailOutputContentList=[1,n05,_GOCL,0,()=>GuardrailOutputContent$],GuardrailPiiEntityFilterList=[1,n05,_GPEFL,0,()=>GuardrailPiiEntityFilter$],GuardrailRegexFilterList=[1,n05,_GRFL,0,()=>GuardrailRegexFilter$],GuardrailTopicList=[
|
|
1334
|
+
1,n05,_GTL,0,()=>GuardrailTopic$],Messages=[1,n05,_Me,0,[()=>Message$,0]],SearchResultContentBlocks=[1,n05,_SRCBe,0,()=>SearchResultContentBlock$],SystemContentBlocks=[1,n05,_SCB,0,[()=>SystemContentBlock$,0]],TagList=[1,n05,_TL,0,()=>Tag$2],ToolResultBlocksDelta=[1,n05,_TRBD,0,()=>ToolResultBlockDelta$],ToolResultContentBlocks=[1,n05,_TRCB,0,[()=>ToolResultContentBlock$,0]],Tools=[1,n05,_To,0,()=>Tool$],GuardrailAssessmentListMap=[2,n05,_GALM,0,[0,0],[()=>GuardrailAssessmentList,0]],GuardrailAssessmentMap=[
|
|
1335
|
+
2,n05,_GAM,0,[0,0],[()=>GuardrailAssessment$,0]],PromptVariableMap=[2,n05,_PVM,8,0,()=>PromptVariableValues$],RequestMetadata=[2,n05,_RM,8,0,0],AsyncInvokeOutputDataConfig$=[4,n05,_AIODC,0,[_sODC],[()=>AsyncInvokeS3OutputDataConfig$]],AudioSource$=[4,n05,_AS,8,[_b,_sL],[21,()=>S3Location$]],CitationGeneratedContent$=[4,n05,_CGC,0,[_te],[0]],CitationLocation$=[4,n05,_CL,0,[_w,_dC2,_dP,_dCo,_sRL],[()=>WebLocation$,()=>DocumentCharLocation$,()=>DocumentPageLocation$,()=>DocumentChunkLocation$,()=>SearchResultLocation$]],
|
|
1336
|
+
CitationSourceContent$=[4,n05,_CSC,0,[_te],[0]],ContentBlock$=[4,n05,_CBo,0,[_te,_ima,_doc,_vi,_au,_tUo,_tR,_gCua,_cPa,_rC2,_cC,_sRe,_tA,_tRo],[0,[()=>ImageBlock$,0],()=>DocumentBlock$,()=>VideoBlock$,[()=>AudioBlock$,0],()=>ToolUseBlock$,[()=>ToolResultBlock$,0],[()=>GuardrailConverseContentBlock$,0],()=>CachePointBlock$,[()=>ReasoningContentBlock$,0],()=>CitationsContentBlock$,()=>SearchResultBlock$,()=>ToolAdditionBlock$,()=>ToolRemovalBlock$]],ContentBlockDelta$=[4,n05,_CBD,0,[_te,_tUo,_tR,_rC2,
|
|
1337
|
+
_cit,_ima],[0,()=>ToolUseBlockDelta$,()=>ToolResultBlocksDelta,[()=>ReasoningContentBlockDelta$,0],()=>CitationsDelta$,[()=>ImageBlockDelta$,0]]],ContentBlockStart$=[4,n05,_CBS,0,[_tUo,_tR,_ima],[()=>ToolUseBlockStart$,()=>ToolResultBlockStart$,()=>ImageBlockStart$]],ConverseOutput$=[4,n05,_CO,0,[_m4],[[()=>Message$,0]]],ConverseStreamOutput$=[4,n05,_CSO,{[_stre]:1},[_mS,_cBS,_cBD,_cBSo,_mSe,_meta,_iSE,_mSEE,_vE,_tE,_sUE],[()=>MessageStartEvent$,()=>ContentBlockStartEvent$,[()=>ContentBlockDeltaEvent$,
|
|
1338
|
+
0],()=>ContentBlockStopEvent$,()=>MessageStopEvent$,[()=>ConverseStreamMetadataEvent$,0],[()=>InternalServerException$3,0],[()=>ModelStreamErrorException$,0],[()=>ValidationException$2,0],[()=>ThrottlingException$,0],[()=>ServiceUnavailableException$,0]]],CountTokensInput$=[4,n05,_CTI,0,[_iMn,_conv],[[()=>InvokeModelTokensRequest$,0],[()=>ConverseTokensRequest$,0]]],DocumentContentBlock$=[4,n05,_DCBo,0,[_te],[0]],DocumentSource$=[4,n05,_DS2,0,[_b,_sL,_te,_co3],[21,()=>S3Location$,0,()=>DocumentContentBlocks]],
|
|
1339
|
+
GuardrailAutomatedReasoningFinding$=[4,n05,_GARF,0,[_va,_in,_sa,_imp,_tAr,_tCoo,_nTo],[[()=>GuardrailAutomatedReasoningValidFinding$,0],[()=>GuardrailAutomatedReasoningInvalidFinding$,0],[()=>GuardrailAutomatedReasoningSatisfiableFinding$,0],[()=>GuardrailAutomatedReasoningImpossibleFinding$,0],[()=>GuardrailAutomatedReasoningTranslationAmbiguousFinding$,0],()=>GuardrailAutomatedReasoningTooComplexFinding$,()=>GuardrailAutomatedReasoningNoTranslationsFinding$]],GuardrailChecksContentBlock$=[4,n05,
|
|
1340
|
+
_GCCB,0,[_te],[[()=>GuardrailChecksTextContent,0]]],GuardrailContentBlock$=[4,n05,_GCB,0,[_te,_ima],[()=>GuardrailTextBlock$,[()=>GuardrailImageBlock$,0]]],GuardrailConverseContentBlock$=[4,n05,_GCCBu,0,[_te,_ima],[()=>GuardrailConverseTextBlock$,[()=>GuardrailConverseImageBlock$,0]]],GuardrailConverseImageSource$=[4,n05,_GCIS,8,[_b],[21]],GuardrailImageSource$=[4,n05,_GIS,8,[_b],[21]],ImageSource$=[4,n05,_IS,8,[_b,_sL],[21,()=>S3Location$]],InvokeModelWithBidirectionalStreamInput$=[4,n05,_IMWBSI,
|
|
1341
|
+
{[_stre]:1},[_chu],[[()=>BidirectionalInputPayloadPart$,0]]],InvokeModelWithBidirectionalStreamOutput$=[4,n05,_IMWBSO,{[_stre]:1},[_chu,_iSE,_mSEE,_vE,_tE,_mTE,_sUE],[[()=>BidirectionalOutputPayloadPart$,0],[()=>InternalServerException$3,0],[()=>ModelStreamErrorException$,0],[()=>ValidationException$2,0],[()=>ThrottlingException$,0],[()=>ModelTimeoutException$,0],[()=>ServiceUnavailableException$,0]]],OutputFormatStructure$=[4,n05,_OFS,8,[_jS],[()=>JsonSchemaDefinition$]],PromptVariableValues$=[
|
|
1342
|
+
4,n05,_PVV,0,[_te],[0]],ReasoningContentBlock$=[4,n05,_RCB,8,[_rT3,_rCe],[[()=>ReasoningTextBlock$,0],21]],ReasoningContentBlockDelta$=[4,n05,_RCBD,8,[_te,_rCe,_si],[0,21,0]],ResponseStream$=[4,n05,_RS,{[_stre]:1},[_chu,_iSE,_mSEE,_vE,_tE,_mTE,_sUE],[[()=>PayloadPart$,0],[()=>InternalServerException$3,0],[()=>ModelStreamErrorException$,0],[()=>ValidationException$2,0],[()=>ThrottlingException$,0],[()=>ModelTimeoutException$,0],[()=>ServiceUnavailableException$,0]]],SystemContentBlock$=[4,n05,_SCBy,
|
|
1343
|
+
0,[_te,_gCua,_cPa],[0,[()=>GuardrailConverseContentBlock$,0],()=>CachePointBlock$]],Tool$=[4,n05,_Too,0,[_tS,_sTy,_cPa],[()=>ToolSpecification$,()=>SystemTool$,()=>CachePointBlock$]],ToolChoice$=[4,n05,_TCo,0,[_aut,_an,_too],[()=>AutoToolChoice$,()=>AnyToolChoice$,()=>SpecificToolChoice$]],ToolInputSchema$=[4,n05,_TIS,0,[_j],[15]],ToolResultBlockDelta$=[4,n05,_TRBDo,0,[_te,_j],[0,15]],ToolResultContentBlock$=[4,n05,_TRCBo,0,[_j,_te,_ima,_doc,_vi,_sRe],[15,0,[()=>ImageBlock$,0],()=>DocumentBlock$,
|
|
1344
|
+
()=>VideoBlock$,()=>SearchResultBlock$]],VideoSource$=[4,n05,_VS,0,[_b,_sL],[21,()=>S3Location$]],ApplyGuardrail$=[9,n05,_AG,{[_h4]:["POST","/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply",200]},()=>ApplyGuardrailRequest$,()=>ApplyGuardrailResponse$],Converse$=[9,n05,_Co,{[_h4]:["POST","/model/{modelId}/converse",200]},()=>ConverseRequest$,()=>ConverseResponse$],ConverseStream$=[9,n05,_CS2,{[_h4]:["POST","/model/{modelId}/converse-stream",200]},()=>ConverseStreamRequest$,()=>ConverseStreamResponse$],
|
|
1345
|
+
CountTokens$=[9,n05,_CTo,{[_h4]:["POST","/model/{modelId}/count-tokens",200]},()=>CountTokensRequest$,()=>CountTokensResponse$],GetAsyncInvoke$=[9,n05,_GAI,{[_h4]:["GET","/async-invoke/{invocationArn}",200]},()=>GetAsyncInvokeRequest$,()=>GetAsyncInvokeResponse$],InvokeGuardrailChecks$=[9,n05,_IGC,{[_h4]:["POST","/guardrail-checks/invoke",200]},()=>InvokeGuardrailChecksRequest$,()=>InvokeGuardrailChecksResponse$],InvokeModel$=[9,n05,_IM,{[_h4]:["POST","/model/{modelId}/invoke",200]},()=>InvokeModelRequest$,
|
|
1346
|
+
()=>InvokeModelResponse$],InvokeModelWithBidirectionalStream$=[9,n05,_IMWBS,{[_h4]:["POST","/model/{modelId}/invoke-with-bidirectional-stream",200]},()=>InvokeModelWithBidirectionalStreamRequest$,()=>InvokeModelWithBidirectionalStreamResponse$],InvokeModelWithResponseStream$=[9,n05,_IMWRS,{[_h4]:["POST","/model/{modelId}/invoke-with-response-stream",200]},()=>InvokeModelWithResponseStreamRequest$,()=>InvokeModelWithResponseStreamResponse$],ListAsyncInvokes$=[9,n05,_LAI,{[_h4]:["GET","/async-invo\
|
|
1347
|
+
ke",200]},()=>ListAsyncInvokesRequest$,()=>ListAsyncInvokesResponse$],StartAsyncInvoke$=[9,n05,_SAI,{[_h4]:["POST","/async-invoke",200]},()=>StartAsyncInvokeRequest$,()=>StartAsyncInvokeResponse$],getRuntimeConfig$1=config=>({apiVersion:"2023-09-30",base64Decoder:config?.base64Decoder??fromBase642,base64Encoder:config?.base64Encoder??toBase643,disableHostPrefix:config?.disableHostPrefix??!1,endpointProvider:config?.endpointProvider??defaultEndpointResolver5,extensions:config?.extensions??[],httpAuthSchemeProvider:config?.
|
|
1348
|
+
httpAuthSchemeProvider??defaultBedrockRuntimeHttpAuthSchemeProvider,httpAuthSchemes:config?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:ipc=>ipc.getIdentityProvider("aws.auth#sigv4"),signer:new AwsSdkSigV4Signer2},{schemeId:"smithy.api#httpBearerAuth",identityProvider:ipc=>ipc.getIdentityProvider("smithy.api#httpBearerAuth"),signer:new HttpBearerAuthSigner2}],logger:config?.logger??new NoOpLogger2,protocol:config?.protocol??AwsRestJsonProtocol2,protocolSettings:config?.protocolSettings??
|
|
1349
|
+
{defaultNamespace:"com.amazonaws.bedrockruntime",errorTypeRegistries:errorTypeRegistries5,version:"2023-09-30",serviceTarget:"AmazonBedrockFrontendService"},serviceId:config?.serviceId??"Bedrock Runtime",sha256:config?.sha256??Sha256,urlParser:config?.urlParser??parseUrl2,utf8Decoder:config?.utf8Decoder??fromUtf83,utf8Encoder:config?.utf8Encoder??toUtf83}),getRuntimeConfig9=config=>{emitWarningIfUnsupportedVersion3(process.version);let defaultsMode=resolveDefaultsModeConfig2(config),defaultConfigProvider=()=>defaultsMode().
|
|
1350
|
+
then(loadConfigsForDefaultMode2),clientSharedValues=getRuntimeConfig$1(config);emitWarningIfUnsupportedVersion$1(process.version);let loaderConfig={profile:config?.profile,logger:clientSharedValues.logger,signingName:"bedrock"};return{...clientSharedValues,...config,runtime:"node",defaultsMode,authSchemePreference:config?.authSchemePreference??loadConfig2(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS2,loaderConfig),bodyLengthChecker:config?.bodyLengthChecker??calculateBodyLength2,credentialDefaultProvider:config?.
|
|
1351
|
+
credentialDefaultProvider??defaultProvider,defaultUserAgentProvider:config?.defaultUserAgentProvider??createDefaultUserAgentProvider2({serviceId:clientSharedValues.serviceId,clientVersion:packageInfo.version}),eventStreamPayloadHandlerProvider:config?.eventStreamPayloadHandlerProvider??eventStreamPayloadHandlerProvider,eventStreamSerdeProvider:config?.eventStreamSerdeProvider??eventStreamSerdeProvider3,httpAuthSchemes:config?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:ipc=>ipc.
|
|
1352
|
+
getIdentityProvider("aws.auth#sigv4"),signer:new AwsSdkSigV4Signer2},{schemeId:"smithy.api#httpBearerAuth",identityProvider:ipc=>ipc.getIdentityProvider("smithy.api#httpBearerAuth")||(async idProps=>{try{return await fromEnvSigningName({signingName:"bedrock"})()}catch{return await nodeProvider(idProps)(idProps)}}),signer:new HttpBearerAuthSigner2}],maxAttempts:config?.maxAttempts??loadConfig2(NODE_MAX_ATTEMPT_CONFIG_OPTIONS2,config),region:config?.region??loadConfig2(NODE_REGION_CONFIG_OPTIONS2,
|
|
1353
|
+
{...NODE_REGION_CONFIG_FILE_OPTIONS2,...loaderConfig}),requestHandler:NodeHttp2Handler.create(config?.requestHandler??(async()=>({...await defaultConfigProvider(),disableConcurrentStreams:!0}))),retryMode:config?.retryMode??loadConfig2({...NODE_RETRY_MODE_CONFIG_OPTIONS2,default:async()=>(await defaultConfigProvider()).retryMode||DEFAULT_RETRY_MODE2},config),streamCollector:config?.streamCollector??streamCollector7,useDualstackEndpoint:config?.useDualstackEndpoint??loadConfig2(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS2,
|
|
1354
|
+
loaderConfig),useFipsEndpoint:config?.useFipsEndpoint??loadConfig2(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS2,loaderConfig),userAgentAppId:config?.userAgentAppId??loadConfig2(NODE_APP_ID_CONFIG_OPTIONS2,loaderConfig)}},getHttpAuthExtensionConfiguration5=runtimeConfig=>{let _httpAuthSchemes=runtimeConfig.httpAuthSchemes,_httpAuthSchemeProvider=runtimeConfig.httpAuthSchemeProvider,_credentials=runtimeConfig.credentials,_token=runtimeConfig.token;return{setHttpAuthScheme(httpAuthScheme){let index=_httpAuthSchemes.
|
|
1355
|
+
findIndex(scheme=>scheme.schemeId===httpAuthScheme.schemeId);index===-1?_httpAuthSchemes.push(httpAuthScheme):_httpAuthSchemes.splice(index,1,httpAuthScheme)},httpAuthSchemes(){return _httpAuthSchemes},setHttpAuthSchemeProvider(httpAuthSchemeProvider){_httpAuthSchemeProvider=httpAuthSchemeProvider},httpAuthSchemeProvider(){return _httpAuthSchemeProvider},setCredentials(credentials){_credentials=credentials},credentials(){return _credentials},setToken(token){_token=token},token(){return _token}}},
|
|
1356
|
+
resolveHttpAuthRuntimeConfig5=config=>({httpAuthSchemes:config.httpAuthSchemes(),httpAuthSchemeProvider:config.httpAuthSchemeProvider(),credentials:config.credentials(),token:config.token()}),resolveRuntimeExtensions5=(runtimeConfig,extensions)=>{let extensionConfiguration=Object.assign(getAwsRegionExtensionConfiguration2(runtimeConfig),getDefaultExtensionConfiguration2(runtimeConfig),getHttpHandlerExtensionConfiguration2(runtimeConfig),getHttpAuthExtensionConfiguration5(runtimeConfig));return extensions.
|
|
1357
|
+
forEach(extension=>extension.configure(extensionConfiguration)),Object.assign(runtimeConfig,resolveAwsRegionExtensionConfiguration2(extensionConfiguration),resolveDefaultRuntimeConfig2(extensionConfiguration),resolveHttpHandlerRuntimeConfig2(extensionConfiguration),resolveHttpAuthRuntimeConfig5(extensionConfiguration))},BedrockRuntimeClient2=class extends Client2{config;constructor(...[configuration]){let _config_0=getRuntimeConfig9(configuration||{});super(_config_0),this.initConfig=_config_0;let _config_1=resolveClientEndpointParameters5(
|
|
1358
|
+
_config_0),_config_2=resolveUserAgentConfig2(_config_1),_config_3=resolveRetryConfig2(_config_2),_config_4=resolveRegionConfig2(_config_3),_config_5=resolveHostHeaderConfig2(_config_4),_config_6=resolveEndpointConfig2(_config_5),_config_7=resolveEventStreamSerdeConfig2(_config_6),_config_8=resolveHttpAuthSchemeConfig5(_config_7),_config_9=resolveEventStreamConfig(_config_8),_config_10=resolveWebSocketConfig(_config_9),_config_11=resolveRuntimeExtensions5(_config_10,configuration?.extensions||[]);
|
|
1359
|
+
this.config=_config_11,this.middlewareStack.use(getSchemaSerdePlugin2(this.config)),this.middlewareStack.use(getUserAgentPlugin2(this.config)),this.middlewareStack.use(getRetryPlugin2(this.config)),this.middlewareStack.use(getContentLengthPlugin2(this.config)),this.middlewareStack.use(getHostHeaderPlugin2(this.config)),this.middlewareStack.use(getLoggerPlugin2(this.config)),this.middlewareStack.use(getRecursionDetectionPlugin2(this.config)),this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin2(
|
|
1360
|
+
this.config,{httpAuthSchemeParametersProvider:defaultBedrockRuntimeHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async config=>new DefaultIdentityProviderConfig2({"aws.auth#sigv4":config.credentials,"smithy.api#httpBearerAuth":config.token})})),this.middlewareStack.use(getHttpSigningPlugin2(this.config))}destroy(){super.destroy()}},command5=makeBuilder2(commonParams5,"AmazonBedrockFrontendService","BedrockRuntimeClient",getEndpointPlugin2),_ep05={},_mw05=(Command2,cs,config,o3)=>[],
|
|
1361
|
+
_mw1=(Command2,cs,config,o3)=>[getEventStreamPlugin(config),getWebSocketPlugin(config,{headerPrefix:"x-amz-bedrock-"})],ApplyGuardrailCommand=class extends command5(_ep05,_mw05,"ApplyGuardrail",ApplyGuardrail$){},ConverseCommand=class extends command5(_ep05,_mw05,"Converse",Converse$){},ConverseStreamCommand2=class extends command5(_ep05,_mw05,"ConverseStream",ConverseStream$){},CountTokensCommand=class extends command5(_ep05,_mw05,"CountTokens",CountTokens$){},GetAsyncInvokeCommand=class extends command5(
|
|
1362
|
+
_ep05,_mw05,"GetAsyncInvoke",GetAsyncInvoke$){},InvokeGuardrailChecksCommand=class extends command5(_ep05,_mw05,"InvokeGuardrailChecks",InvokeGuardrailChecks$){},InvokeModelCommand=class extends command5(_ep05,_mw05,"InvokeModel",InvokeModel$){},InvokeModelWithBidirectionalStreamCommand=class extends command5(_ep05,_mw1,"InvokeModelWithBidirectionalStream",InvokeModelWithBidirectionalStream$){},InvokeModelWithResponseStreamCommand=class extends command5(_ep05,_mw05,"InvokeModelWithResponseStream",
|
|
1363
|
+
InvokeModelWithResponseStream$){},ListAsyncInvokesCommand=class extends command5(_ep05,_mw05,"ListAsyncInvokes",ListAsyncInvokes$){},StartAsyncInvokeCommand=class extends command5(_ep05,_mw05,"StartAsyncInvoke",StartAsyncInvoke$){},paginateListAsyncInvokes=createPaginator2(BedrockRuntimeClient2,ListAsyncInvokesCommand,"nextToken","nextToken","maxResults"),commands5={ApplyGuardrailCommand,ConverseCommand,ConverseStreamCommand:ConverseStreamCommand2,CountTokensCommand,GetAsyncInvokeCommand,InvokeGuardrailChecksCommand,
|
|
1364
|
+
InvokeModelCommand,InvokeModelWithBidirectionalStreamCommand,InvokeModelWithResponseStreamCommand,ListAsyncInvokesCommand,StartAsyncInvokeCommand},paginators={paginateListAsyncInvokes},BedrockRuntime=class extends BedrockRuntimeClient2{};createAggregatedClient2(commands5,BedrockRuntime,{paginators});var AsyncInvokeStatus={COMPLETED:"Completed",FAILED:"Failed",IN_PROGRESS:"InProgress"},SortAsyncInvocationBy={SUBMISSION_TIME:"SubmissionTime"},SortOrder={ASCENDING:"Ascending",DESCENDING:"Descending"},
|
|
1365
|
+
GuardrailImageFormat={JPEG:"jpeg",PNG:"png"},GuardrailContentQualifier={GROUNDING_SOURCE:"grounding_source",GUARD_CONTENT:"guard_content",QUERY:"query"},GuardrailOutputScope={FULL:"FULL",INTERVENTIONS:"INTERVENTIONS"},GuardrailContentSource={INPUT:"INPUT",OUTPUT:"OUTPUT"},GuardrailAction={GUARDRAIL_INTERVENED:"GUARDRAIL_INTERVENED",NONE:"NONE"},GuardrailOrigin={ACCOUNT_ENFORCED:"ACCOUNT_ENFORCED",ORGANIZATION_ENFORCED:"ORGANIZATION_ENFORCED",REQUEST:"REQUEST"},GuardrailOwnership={CROSS_ACCOUNT:"\
|
|
1366
|
+
CROSS_ACCOUNT",SELF:"SELF"},GuardrailAutomatedReasoningLogicWarningType={ALWAYS_FALSE:"ALWAYS_FALSE",ALWAYS_TRUE:"ALWAYS_TRUE"},GuardrailContentPolicyAction={BLOCKED:"BLOCKED",NONE:"NONE"},GuardrailContentFilterConfidence={HIGH:"HIGH",LOW:"LOW",MEDIUM:"MEDIUM",NONE:"NONE"},GuardrailContentFilterStrength={HIGH:"HIGH",LOW:"LOW",MEDIUM:"MEDIUM",NONE:"NONE"},GuardrailContentFilterType={HATE:"HATE",INSULTS:"INSULTS",MISCONDUCT:"MISCONDUCT",PROMPT_ATTACK:"PROMPT_ATTACK",SEXUAL:"SEXUAL",VIOLENCE:"VIOLE\
|
|
1367
|
+
NCE"},GuardrailContextualGroundingPolicyAction={BLOCKED:"BLOCKED",NONE:"NONE"},GuardrailContextualGroundingFilterType={GROUNDING:"GROUNDING",RELEVANCE:"RELEVANCE"},GuardrailSensitiveInformationPolicyAction={ANONYMIZED:"ANONYMIZED",BLOCKED:"BLOCKED",NONE:"NONE"},GuardrailPiiEntityType={ADDRESS:"ADDRESS",AGE:"AGE",AWS_ACCESS_KEY:"AWS_ACCESS_KEY",AWS_SECRET_KEY:"AWS_SECRET_KEY",CA_HEALTH_NUMBER:"CA_HEALTH_NUMBER",CA_SOCIAL_INSURANCE_NUMBER:"CA_SOCIAL_INSURANCE_NUMBER",CREDIT_DEBIT_CARD_CVV:"CREDIT_\
|
|
1368
|
+
DEBIT_CARD_CVV",CREDIT_DEBIT_CARD_EXPIRY:"CREDIT_DEBIT_CARD_EXPIRY",CREDIT_DEBIT_CARD_NUMBER:"CREDIT_DEBIT_CARD_NUMBER",DRIVER_ID:"DRIVER_ID",EMAIL:"EMAIL",INTERNATIONAL_BANK_ACCOUNT_NUMBER:"INTERNATIONAL_BANK_ACCOUNT_NUMBER",IP_ADDRESS:"IP_ADDRESS",LICENSE_PLATE:"LICENSE_PLATE",MAC_ADDRESS:"MAC_ADDRESS",NAME:"NAME",PASSWORD:"PASSWORD",PHONE:"PHONE",PIN:"PIN",SWIFT_CODE:"SWIFT_CODE",UK_NATIONAL_HEALTH_SERVICE_NUMBER:"UK_NATIONAL_HEALTH_SERVICE_NUMBER",UK_NATIONAL_INSURANCE_NUMBER:"UK_NATIONAL_IN\
|
|
1369
|
+
SURANCE_NUMBER",UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER:"UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",URL:"URL",USERNAME:"USERNAME",US_BANK_ACCOUNT_NUMBER:"US_BANK_ACCOUNT_NUMBER",US_BANK_ROUTING_NUMBER:"US_BANK_ROUTING_NUMBER",US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER:"US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",US_PASSPORT_NUMBER:"US_PASSPORT_NUMBER",US_SOCIAL_SECURITY_NUMBER:"US_SOCIAL_SECURITY_NUMBER",VEHICLE_IDENTIFICATION_NUMBER:"VEHICLE_IDENTIFICATION_NUMBER"},GuardrailTopicPolicyAction={BLOCKED:"BLOCKED",
|
|
1370
|
+
NONE:"NONE"},GuardrailTopicType={DENY:"DENY"},GuardrailWordPolicyAction={BLOCKED:"BLOCKED",NONE:"NONE"},GuardrailManagedWordType={PROFANITY:"PROFANITY"},GuardrailChecksContentFilterCategory={HATE:"HATE",INSULTS:"INSULTS",MISCONDUCT:"MISCONDUCT",SEXUAL:"SEXUAL",VIOLENCE:"VIOLENCE"},GuardrailChecksPromptAttackCategory={JAILBREAK:"JAILBREAK",PROMPT_INJECTION:"PROMPT_INJECTION",PROMPT_LEAKAGE:"PROMPT_LEAKAGE"},GuardrailChecksSensitiveInformationEntityType={ADDRESS:"ADDRESS",AGE:"AGE",AWS_ACCESS_KEY:"\
|
|
1371
|
+
AWS_ACCESS_KEY",AWS_SECRET_KEY:"AWS_SECRET_KEY",CA_HEALTH_NUMBER:"CA_HEALTH_NUMBER",CA_SOCIAL_INSURANCE_NUMBER:"CA_SOCIAL_INSURANCE_NUMBER",CREDIT_DEBIT_CARD_CVV:"CREDIT_DEBIT_CARD_CVV",CREDIT_DEBIT_CARD_EXPIRY:"CREDIT_DEBIT_CARD_EXPIRY",CREDIT_DEBIT_CARD_NUMBER:"CREDIT_DEBIT_CARD_NUMBER",DRIVER_ID:"DRIVER_ID",EMAIL:"EMAIL",INTERNATIONAL_BANK_ACCOUNT_NUMBER:"INTERNATIONAL_BANK_ACCOUNT_NUMBER",IP_ADDRESS:"IP_ADDRESS",LICENSE_PLATE:"LICENSE_PLATE",MAC_ADDRESS:"MAC_ADDRESS",NAME:"NAME",PASSWORD:"PA\
|
|
1372
|
+
SSWORD",PHONE:"PHONE",PIN:"PIN",SWIFT_CODE:"SWIFT_CODE",UK_NATIONAL_HEALTH_SERVICE_NUMBER:"UK_NATIONAL_HEALTH_SERVICE_NUMBER",UK_NATIONAL_INSURANCE_NUMBER:"UK_NATIONAL_INSURANCE_NUMBER",UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER:"UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",URL:"URL",USERNAME:"USERNAME",US_BANK_ACCOUNT_NUMBER:"US_BANK_ACCOUNT_NUMBER",US_BANK_ROUTING_NUMBER:"US_BANK_ROUTING_NUMBER",US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER:"US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",US_PASSPORT_NUMBER:"US_PASSPORT_\
|
|
1373
|
+
NUMBER",US_SOCIAL_SECURITY_NUMBER:"US_SOCIAL_SECURITY_NUMBER",VEHICLE_IDENTIFICATION_NUMBER:"VEHICLE_IDENTIFICATION_NUMBER"},GuardrailChecksRole={ASSISTANT:"assistant",SYSTEM:"system",USER:"user"},GuardrailTrace={DISABLED:"disabled",ENABLED:"enabled",ENABLED_FULL:"enabled_full"},AudioFormat={AAC:"aac",FLAC:"flac",M4A:"m4a",MKA:"mka",MKV:"mkv",MP3:"mp3",MP4:"mp4",MPEG:"mpeg",MPGA:"mpga",OGG:"ogg",OPUS:"opus",PCM:"pcm",WAV:"wav",WEBM:"webm",X_AAC:"x-aac"},CacheTTL2={FIVE_MINUTES:"5m",ONE_HOUR:"1h"},
|
|
1374
|
+
CachePointType2={DEFAULT:"default"},DocumentFormat={CSV:"csv",DOC:"doc",DOCX:"docx",HTML:"html",MD:"md",PDF:"pdf",TXT:"txt",XLS:"xls",XLSX:"xlsx"},GuardrailConverseImageFormat={JPEG:"jpeg",PNG:"png"},GuardrailConverseContentQualifier={GROUNDING_SOURCE:"grounding_source",GUARD_CONTENT:"guard_content",QUERY:"query"},ImageFormat2={GIF:"gif",JPEG:"jpeg",PNG:"png",WEBP:"webp"},VideoFormat={FLV:"flv",MKV:"mkv",MOV:"mov",MP4:"mp4",MPEG:"mpeg",MPG:"mpg",THREE_GP:"three_gp",WEBM:"webm",WMV:"wmv"},ToolResultStatus2={
|
|
1375
|
+
ERROR:"error",SUCCESS:"success"},ToolUseType={SERVER_TOOL_USE:"server_tool_use"},ConversationRole2={ASSISTANT:"assistant",SYSTEM:"system",USER:"user"},OutputFormatType={JSON_SCHEMA:"json_schema"},PerformanceConfigLatency={OPTIMIZED:"optimized",STANDARD:"standard"},ServiceTierType={DEFAULT:"default",FLEX:"flex",PRIORITY:"priority",RESERVED:"reserved"},StopReason={CONTENT_FILTERED:"content_filtered",END_TURN:"end_turn",GUARDRAIL_INTERVENED:"guardrail_intervened",MALFORMED_MODEL_OUTPUT:"malformed_m\
|
|
1376
|
+
odel_output",MALFORMED_TOOL_USE:"malformed_tool_use",MAX_TOKENS:"max_tokens",MODEL_CONTEXT_WINDOW_EXCEEDED:"model_context_window_exceeded",STOP_SEQUENCE:"stop_sequence",TOOL_USE:"tool_use"},GuardrailStreamProcessingMode={ASYNC:"async",SYNC:"sync"},Trace={DISABLED:"DISABLED",ENABLED:"ENABLED",ENABLED_FULL:"ENABLED_FULL"};exports.AccessDeniedException=AccessDeniedException3;exports.AccessDeniedException$=AccessDeniedException$3;exports.AnyToolChoice$=AnyToolChoice$;exports.AppliedGuardrailDetails$=
|
|
1377
|
+
AppliedGuardrailDetails$;exports.ApplyGuardrail$=ApplyGuardrail$;exports.ApplyGuardrailCommand=ApplyGuardrailCommand;exports.ApplyGuardrailRequest$=ApplyGuardrailRequest$;exports.ApplyGuardrailResponse$=ApplyGuardrailResponse$;exports.AsyncInvokeOutputDataConfig$=AsyncInvokeOutputDataConfig$;exports.AsyncInvokeS3OutputDataConfig$=AsyncInvokeS3OutputDataConfig$;exports.AsyncInvokeStatus=AsyncInvokeStatus;exports.AsyncInvokeSummary$=AsyncInvokeSummary$;exports.AudioBlock$=AudioBlock$;exports.AudioFormat=
|
|
1378
|
+
AudioFormat;exports.AudioSource$=AudioSource$;exports.AutoToolChoice$=AutoToolChoice$;exports.BedrockRuntime=BedrockRuntime;exports.BedrockRuntimeClient=BedrockRuntimeClient2;exports.BedrockRuntimeServiceException=BedrockRuntimeServiceException2;exports.BedrockRuntimeServiceException$=BedrockRuntimeServiceException$;exports.BidirectionalInputPayloadPart$=BidirectionalInputPayloadPart$;exports.BidirectionalOutputPayloadPart$=BidirectionalOutputPayloadPart$;exports.CacheDetail$=CacheDetail$;exports.
|
|
1379
|
+
CachePointBlock$=CachePointBlock$;exports.CachePointType=CachePointType2;exports.CacheTTL=CacheTTL2;exports.Citation$=Citation$;exports.CitationGeneratedContent$=CitationGeneratedContent$;exports.CitationLocation$=CitationLocation$;exports.CitationSourceContent$=CitationSourceContent$;exports.CitationSourceContentDelta$=CitationSourceContentDelta$;exports.CitationsConfig$=CitationsConfig$;exports.CitationsContentBlock$=CitationsContentBlock$;exports.CitationsDelta$=CitationsDelta$;exports.ConflictException=
|
|
1380
|
+
ConflictException;exports.ConflictException$=ConflictException$;exports.ContentBlock$=ContentBlock$;exports.ContentBlockDelta$=ContentBlockDelta$;exports.ContentBlockDeltaEvent$=ContentBlockDeltaEvent$;exports.ContentBlockStart$=ContentBlockStart$;exports.ContentBlockStartEvent$=ContentBlockStartEvent$;exports.ContentBlockStopEvent$=ContentBlockStopEvent$;exports.ConversationRole=ConversationRole2;exports.Converse$=Converse$;exports.ConverseCommand=ConverseCommand;exports.ConverseMetrics$=ConverseMetrics$;
|
|
1381
|
+
exports.ConverseOutput$=ConverseOutput$;exports.ConverseRequest$=ConverseRequest$;exports.ConverseResponse$=ConverseResponse$;exports.ConverseStream$=ConverseStream$;exports.ConverseStreamCommand=ConverseStreamCommand2;exports.ConverseStreamMetadataEvent$=ConverseStreamMetadataEvent$;exports.ConverseStreamMetrics$=ConverseStreamMetrics$;exports.ConverseStreamOutput$=ConverseStreamOutput$;exports.ConverseStreamRequest$=ConverseStreamRequest$;exports.ConverseStreamResponse$=ConverseStreamResponse$;
|
|
1382
|
+
exports.ConverseStreamTrace$=ConverseStreamTrace$;exports.ConverseTokensRequest$=ConverseTokensRequest$;exports.ConverseTrace$=ConverseTrace$;exports.CountTokens$=CountTokens$;exports.CountTokensCommand=CountTokensCommand;exports.CountTokensInput$=CountTokensInput$;exports.CountTokensRequest$=CountTokensRequest$;exports.CountTokensResponse$=CountTokensResponse$;exports.DocumentBlock$=DocumentBlock$;exports.DocumentCharLocation$=DocumentCharLocation$;exports.DocumentChunkLocation$=DocumentChunkLocation$;
|
|
1383
|
+
exports.DocumentContentBlock$=DocumentContentBlock$;exports.DocumentFormat=DocumentFormat;exports.DocumentPageLocation$=DocumentPageLocation$;exports.DocumentSource$=DocumentSource$;exports.ErrorBlock$=ErrorBlock$;exports.GetAsyncInvoke$=GetAsyncInvoke$;exports.GetAsyncInvokeCommand=GetAsyncInvokeCommand;exports.GetAsyncInvokeRequest$=GetAsyncInvokeRequest$;exports.GetAsyncInvokeResponse$=GetAsyncInvokeResponse$;exports.GuardrailAction=GuardrailAction;exports.GuardrailAssessment$=GuardrailAssessment$;
|
|
1384
|
+
exports.GuardrailAutomatedReasoningFinding$=GuardrailAutomatedReasoningFinding$;exports.GuardrailAutomatedReasoningImpossibleFinding$=GuardrailAutomatedReasoningImpossibleFinding$;exports.GuardrailAutomatedReasoningInputTextReference$=GuardrailAutomatedReasoningInputTextReference$;exports.GuardrailAutomatedReasoningInvalidFinding$=GuardrailAutomatedReasoningInvalidFinding$;exports.GuardrailAutomatedReasoningLogicWarning$=GuardrailAutomatedReasoningLogicWarning$;exports.GuardrailAutomatedReasoningLogicWarningType=
|
|
1385
|
+
GuardrailAutomatedReasoningLogicWarningType;exports.GuardrailAutomatedReasoningNoTranslationsFinding$=GuardrailAutomatedReasoningNoTranslationsFinding$;exports.GuardrailAutomatedReasoningPolicyAssessment$=GuardrailAutomatedReasoningPolicyAssessment$;exports.GuardrailAutomatedReasoningRule$=GuardrailAutomatedReasoningRule$;exports.GuardrailAutomatedReasoningSatisfiableFinding$=GuardrailAutomatedReasoningSatisfiableFinding$;exports.GuardrailAutomatedReasoningScenario$=GuardrailAutomatedReasoningScenario$;
|
|
1386
|
+
exports.GuardrailAutomatedReasoningStatement$=GuardrailAutomatedReasoningStatement$;exports.GuardrailAutomatedReasoningTooComplexFinding$=GuardrailAutomatedReasoningTooComplexFinding$;exports.GuardrailAutomatedReasoningTranslation$=GuardrailAutomatedReasoningTranslation$;exports.GuardrailAutomatedReasoningTranslationAmbiguousFinding$=GuardrailAutomatedReasoningTranslationAmbiguousFinding$;exports.GuardrailAutomatedReasoningTranslationOption$=GuardrailAutomatedReasoningTranslationOption$;exports.
|
|
1387
|
+
GuardrailAutomatedReasoningValidFinding$=GuardrailAutomatedReasoningValidFinding$;exports.GuardrailChecksConfig$=GuardrailChecksConfig$;exports.GuardrailChecksContentBlock$=GuardrailChecksContentBlock$;exports.GuardrailChecksContentFilterCategory=GuardrailChecksContentFilterCategory;exports.GuardrailChecksContentFilterCategoryConfig$=GuardrailChecksContentFilterCategoryConfig$;exports.GuardrailChecksContentFilterConfig$=GuardrailChecksContentFilterConfig$;exports.GuardrailChecksContentFilterResult$=
|
|
1388
|
+
GuardrailChecksContentFilterResult$;exports.GuardrailChecksContentFilterResultEntry$=GuardrailChecksContentFilterResultEntry$;exports.GuardrailChecksContentFilterUsage$=GuardrailChecksContentFilterUsage$;exports.GuardrailChecksMessage$=GuardrailChecksMessage$;exports.GuardrailChecksPromptAttackCategory=GuardrailChecksPromptAttackCategory;exports.GuardrailChecksPromptAttackCategoryConfig$=GuardrailChecksPromptAttackCategoryConfig$;exports.GuardrailChecksPromptAttackConfig$=GuardrailChecksPromptAttackConfig$;
|
|
1389
|
+
exports.GuardrailChecksPromptAttackResult$=GuardrailChecksPromptAttackResult$;exports.GuardrailChecksPromptAttackResultEntry$=GuardrailChecksPromptAttackResultEntry$;exports.GuardrailChecksPromptAttackUsage$=GuardrailChecksPromptAttackUsage$;exports.GuardrailChecksResults$=GuardrailChecksResults$;exports.GuardrailChecksRole=GuardrailChecksRole;exports.GuardrailChecksSensitiveInformationConfig$=GuardrailChecksSensitiveInformationConfig$;exports.GuardrailChecksSensitiveInformationEntityConfig$=GuardrailChecksSensitiveInformationEntityConfig$;
|
|
1390
|
+
exports.GuardrailChecksSensitiveInformationEntityType=GuardrailChecksSensitiveInformationEntityType;exports.GuardrailChecksSensitiveInformationResult$=GuardrailChecksSensitiveInformationResult$;exports.GuardrailChecksSensitiveInformationResultEntry$=GuardrailChecksSensitiveInformationResultEntry$;exports.GuardrailChecksSensitiveInformationUsage$=GuardrailChecksSensitiveInformationUsage$;exports.GuardrailChecksUsageResults$=GuardrailChecksUsageResults$;exports.GuardrailConfiguration$=GuardrailConfiguration$;
|
|
1391
|
+
exports.GuardrailContentBlock$=GuardrailContentBlock$;exports.GuardrailContentFilter$=GuardrailContentFilter$;exports.GuardrailContentFilterConfidence=GuardrailContentFilterConfidence;exports.GuardrailContentFilterStrength=GuardrailContentFilterStrength;exports.GuardrailContentFilterType=GuardrailContentFilterType;exports.GuardrailContentPolicyAction=GuardrailContentPolicyAction;exports.GuardrailContentPolicyAssessment$=GuardrailContentPolicyAssessment$;exports.GuardrailContentQualifier=GuardrailContentQualifier;
|
|
1392
|
+
exports.GuardrailContentSource=GuardrailContentSource;exports.GuardrailContextualGroundingFilter$=GuardrailContextualGroundingFilter$;exports.GuardrailContextualGroundingFilterType=GuardrailContextualGroundingFilterType;exports.GuardrailContextualGroundingPolicyAction=GuardrailContextualGroundingPolicyAction;exports.GuardrailContextualGroundingPolicyAssessment$=GuardrailContextualGroundingPolicyAssessment$;exports.GuardrailConverseContentBlock$=GuardrailConverseContentBlock$;exports.GuardrailConverseContentQualifier=
|
|
1393
|
+
GuardrailConverseContentQualifier;exports.GuardrailConverseImageBlock$=GuardrailConverseImageBlock$;exports.GuardrailConverseImageFormat=GuardrailConverseImageFormat;exports.GuardrailConverseImageSource$=GuardrailConverseImageSource$;exports.GuardrailConverseTextBlock$=GuardrailConverseTextBlock$;exports.GuardrailCoverage$=GuardrailCoverage$;exports.GuardrailCustomWord$=GuardrailCustomWord$;exports.GuardrailImageBlock$=GuardrailImageBlock$;exports.GuardrailImageCoverage$=GuardrailImageCoverage$;
|
|
1394
|
+
exports.GuardrailImageFormat=GuardrailImageFormat;exports.GuardrailImageSource$=GuardrailImageSource$;exports.GuardrailInvocationMetrics$=GuardrailInvocationMetrics$;exports.GuardrailManagedWord$=GuardrailManagedWord$;exports.GuardrailManagedWordType=GuardrailManagedWordType;exports.GuardrailOrigin=GuardrailOrigin;exports.GuardrailOutputContent$=GuardrailOutputContent$;exports.GuardrailOutputScope=GuardrailOutputScope;exports.GuardrailOwnership=GuardrailOwnership;exports.GuardrailPiiEntityFilter$=
|
|
1395
|
+
GuardrailPiiEntityFilter$;exports.GuardrailPiiEntityType=GuardrailPiiEntityType;exports.GuardrailRegexFilter$=GuardrailRegexFilter$;exports.GuardrailSensitiveInformationPolicyAction=GuardrailSensitiveInformationPolicyAction;exports.GuardrailSensitiveInformationPolicyAssessment$=GuardrailSensitiveInformationPolicyAssessment$;exports.GuardrailStreamConfiguration$=GuardrailStreamConfiguration$;exports.GuardrailStreamProcessingMode=GuardrailStreamProcessingMode;exports.GuardrailTextBlock$=GuardrailTextBlock$;
|
|
1396
|
+
exports.GuardrailTextCharactersCoverage$=GuardrailTextCharactersCoverage$;exports.GuardrailTopic$=GuardrailTopic$;exports.GuardrailTopicPolicyAction=GuardrailTopicPolicyAction;exports.GuardrailTopicPolicyAssessment$=GuardrailTopicPolicyAssessment$;exports.GuardrailTopicType=GuardrailTopicType;exports.GuardrailTrace=GuardrailTrace;exports.GuardrailTraceAssessment$=GuardrailTraceAssessment$;exports.GuardrailUsage$=GuardrailUsage$;exports.GuardrailWordPolicyAction=GuardrailWordPolicyAction;exports.
|
|
1397
|
+
GuardrailWordPolicyAssessment$=GuardrailWordPolicyAssessment$;exports.ImageBlock$=ImageBlock$;exports.ImageBlockDelta$=ImageBlockDelta$;exports.ImageBlockStart$=ImageBlockStart$;exports.ImageFormat=ImageFormat2;exports.ImageSource$=ImageSource$;exports.InferenceConfiguration$=InferenceConfiguration$;exports.InternalServerException=InternalServerException3;exports.InternalServerException$=InternalServerException$3;exports.InvokeGuardrailChecks$=InvokeGuardrailChecks$;exports.InvokeGuardrailChecksCommand=
|
|
1398
|
+
InvokeGuardrailChecksCommand;exports.InvokeGuardrailChecksRequest$=InvokeGuardrailChecksRequest$;exports.InvokeGuardrailChecksResponse$=InvokeGuardrailChecksResponse$;exports.InvokeModel$=InvokeModel$;exports.InvokeModelCommand=InvokeModelCommand;exports.InvokeModelRequest$=InvokeModelRequest$;exports.InvokeModelResponse$=InvokeModelResponse$;exports.InvokeModelTokensRequest$=InvokeModelTokensRequest$;exports.InvokeModelWithBidirectionalStream$=InvokeModelWithBidirectionalStream$;exports.InvokeModelWithBidirectionalStreamCommand=
|
|
1399
|
+
InvokeModelWithBidirectionalStreamCommand;exports.InvokeModelWithBidirectionalStreamInput$=InvokeModelWithBidirectionalStreamInput$;exports.InvokeModelWithBidirectionalStreamOutput$=InvokeModelWithBidirectionalStreamOutput$;exports.InvokeModelWithBidirectionalStreamRequest$=InvokeModelWithBidirectionalStreamRequest$;exports.InvokeModelWithBidirectionalStreamResponse$=InvokeModelWithBidirectionalStreamResponse$;exports.InvokeModelWithResponseStream$=InvokeModelWithResponseStream$;exports.InvokeModelWithResponseStreamCommand=
|
|
1400
|
+
InvokeModelWithResponseStreamCommand;exports.InvokeModelWithResponseStreamRequest$=InvokeModelWithResponseStreamRequest$;exports.InvokeModelWithResponseStreamResponse$=InvokeModelWithResponseStreamResponse$;exports.JsonSchemaDefinition$=JsonSchemaDefinition$;exports.ListAsyncInvokes$=ListAsyncInvokes$;exports.ListAsyncInvokesCommand=ListAsyncInvokesCommand;exports.ListAsyncInvokesRequest$=ListAsyncInvokesRequest$;exports.ListAsyncInvokesResponse$=ListAsyncInvokesResponse$;exports.Message$=Message$;
|
|
1401
|
+
exports.MessageStartEvent$=MessageStartEvent$;exports.MessageStopEvent$=MessageStopEvent$;exports.ModelErrorException=ModelErrorException;exports.ModelErrorException$=ModelErrorException$;exports.ModelNotReadyException=ModelNotReadyException;exports.ModelNotReadyException$=ModelNotReadyException$;exports.ModelStreamErrorException=ModelStreamErrorException;exports.ModelStreamErrorException$=ModelStreamErrorException$;exports.ModelTimeoutException=ModelTimeoutException;exports.ModelTimeoutException$=
|
|
1402
|
+
ModelTimeoutException$;exports.OutputConfig$=OutputConfig$;exports.OutputFormat$=OutputFormat$;exports.OutputFormatStructure$=OutputFormatStructure$;exports.OutputFormatType=OutputFormatType;exports.PayloadPart$=PayloadPart$;exports.PerformanceConfigLatency=PerformanceConfigLatency;exports.PerformanceConfiguration$=PerformanceConfiguration$;exports.PromptRouterTrace$=PromptRouterTrace$;exports.PromptVariableValues$=PromptVariableValues$;exports.ReasoningContentBlock$=ReasoningContentBlock$;exports.
|
|
1403
|
+
ReasoningContentBlockDelta$=ReasoningContentBlockDelta$;exports.ReasoningTextBlock$=ReasoningTextBlock$;exports.ResourceNotFoundException=ResourceNotFoundException2;exports.ResourceNotFoundException$=ResourceNotFoundException$2;exports.ResponseStream$=ResponseStream$;exports.S3Location$=S3Location$;exports.SearchResultBlock$=SearchResultBlock$;exports.SearchResultContentBlock$=SearchResultContentBlock$;exports.SearchResultLocation$=SearchResultLocation$;exports.ServiceQuotaExceededException=ServiceQuotaExceededException;
|
|
1404
|
+
exports.ServiceQuotaExceededException$=ServiceQuotaExceededException$;exports.ServiceTier$=ServiceTier$;exports.ServiceTierType=ServiceTierType;exports.ServiceUnavailableException=ServiceUnavailableException;exports.ServiceUnavailableException$=ServiceUnavailableException$;exports.SortAsyncInvocationBy=SortAsyncInvocationBy;exports.SortOrder=SortOrder;exports.SpecificToolChoice$=SpecificToolChoice$;exports.StartAsyncInvoke$=StartAsyncInvoke$;exports.StartAsyncInvokeCommand=StartAsyncInvokeCommand;
|
|
1405
|
+
exports.StartAsyncInvokeRequest$=StartAsyncInvokeRequest$;exports.StartAsyncInvokeResponse$=StartAsyncInvokeResponse$;exports.StopReason=StopReason;exports.SystemContentBlock$=SystemContentBlock$;exports.SystemTool$=SystemTool$;exports.Tag$=Tag$2;exports.ThrottlingException=ThrottlingException;exports.ThrottlingException$=ThrottlingException$;exports.TokenUsage$=TokenUsage$;exports.Tool$=Tool$;exports.ToolAdditionBlock$=ToolAdditionBlock$;exports.ToolChoice$=ToolChoice$;exports.ToolConfiguration$=
|
|
1406
|
+
ToolConfiguration$;exports.ToolInputSchema$=ToolInputSchema$;exports.ToolReference$=ToolReference$;exports.ToolRemovalBlock$=ToolRemovalBlock$;exports.ToolResultBlock$=ToolResultBlock$;exports.ToolResultBlockDelta$=ToolResultBlockDelta$;exports.ToolResultBlockStart$=ToolResultBlockStart$;exports.ToolResultContentBlock$=ToolResultContentBlock$;exports.ToolResultStatus=ToolResultStatus2;exports.ToolSpecification$=ToolSpecification$;exports.ToolUseBlock$=ToolUseBlock$;exports.ToolUseBlockDelta$=ToolUseBlockDelta$;
|
|
1407
|
+
exports.ToolUseBlockStart$=ToolUseBlockStart$;exports.ToolUseType=ToolUseType;exports.Trace=Trace;exports.ValidationException=ValidationException2;exports.ValidationException$=ValidationException$2;exports.VideoBlock$=VideoBlock$;exports.VideoFormat=VideoFormat;exports.VideoSource$=VideoSource$;exports.WebLocation$=WebLocation$;exports.errorTypeRegistries=errorTypeRegistries5;exports.paginateListAsyncInvokes=paginateListAsyncInvokes}});var require_ms=__commonJS({"node_modules/ms/index.js"(exports,module){var s2=1e3,m3=s2*60,h5=m3*60,d5=h5*24,w=d5*7,y=d5*365.25;module.exports=function(val,options){options=options||{};var type=typeof val;if(type==="string"&&val.length>0)return parse2(val);if(type==="number"&&isFinite(val))return options.long?fmtLong(val):fmtShort(val);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(val))};function parse2(str){if(str=String(str),!(str.length>100)){var match=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.
|
|
1342
1408
|
exec(str);if(match){var n3=parseFloat(match[1]),type=(match[2]||"ms").toLowerCase();switch(type){case"years":case"year":case"yrs":case"yr":case"y":return n3*y;case"weeks":case"week":case"w":return n3*w;case"days":case"day":case"d":return n3*d5;case"hours":case"hour":case"hrs":case"hr":case"h":return n3*h5;case"minutes":case"minute":case"mins":case"min":case"m":return n3*m3;case"seconds":case"second":case"secs":case"sec":case"s":return n3*s2;case"milliseconds":case"millisecond":case"msecs":case"m\
|
|
1343
1409
|
sec":case"ms":return n3;default:return}}}}function fmtShort(ms){var msAbs=Math.abs(ms);return msAbs>=d5?Math.round(ms/d5)+"d":msAbs>=h5?Math.round(ms/h5)+"h":msAbs>=m3?Math.round(ms/m3)+"m":msAbs>=s2?Math.round(ms/s2)+"s":ms+"ms"}function fmtLong(ms){var msAbs=Math.abs(ms);return msAbs>=d5?plural(ms,msAbs,d5,"day"):msAbs>=h5?plural(ms,msAbs,h5,"hour"):msAbs>=m3?plural(ms,msAbs,m3,"minute"):msAbs>=s2?plural(ms,msAbs,s2,"second"):ms+" ms"}function plural(ms,msAbs,n3,name){var isPlural=msAbs>=n3*1.5;
|
|
1344
1410
|
return Math.round(ms/n3)+" "+name+(isPlural?"s":"")}}});var require_common=__commonJS({"node_modules/debug/src/common.js"(exports,module){function setup(env2){createDebug4.debug=createDebug4,createDebug4.default=createDebug4,createDebug4.coerce=coerce,createDebug4.disable=disable,createDebug4.enable=enable,createDebug4.enabled=enabled,createDebug4.humanize=require_ms(),createDebug4.destroy=destroy,Object.keys(env2).forEach(key=>{createDebug4[key]=env2[key]}),createDebug4.names=[],createDebug4.skips=[],createDebug4.formatters={};function selectColor(namespace){
|
|
@@ -1348,7 +1414,7 @@ debug4.color=createDebug4.selectColor(namespace),debug4.extend=extend,debug4.des
|
|
|
1348
1414
|
let newDebug=createDebug4(this.namespace+(typeof delimiter>"u"?":":delimiter)+namespace);return newDebug.log=this.log,newDebug}function enable(namespaces){createDebug4.save(namespaces),createDebug4.namespaces=namespaces,createDebug4.names=[],createDebug4.skips=[];let split2=(typeof namespaces=="string"?namespaces:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let ns of split2)ns[0]==="-"?createDebug4.skips.push(ns.slice(1)):createDebug4.names.push(ns)}function matchesTemplate(search,template){
|
|
1349
1415
|
let searchIndex=0,templateIndex=0,starIndex=-1,matchIndex=0;for(;searchIndex<search.length;)if(templateIndex<template.length&&(template[templateIndex]===search[searchIndex]||template[templateIndex]==="*"))template[templateIndex]==="*"?(starIndex=templateIndex,matchIndex=searchIndex,templateIndex++):(searchIndex++,templateIndex++);else if(starIndex!==-1)templateIndex=starIndex+1,matchIndex++,searchIndex=matchIndex;else return!1;for(;templateIndex<template.length&&template[templateIndex]==="*";)templateIndex++;
|
|
1350
1416
|
return templateIndex===template.length}function disable(){let namespaces=[...createDebug4.names,...createDebug4.skips.map(namespace=>"-"+namespace)].join(",");return createDebug4.enable(""),namespaces}function enabled(name){for(let skip of createDebug4.skips)if(matchesTemplate(name,skip))return!1;for(let ns of createDebug4.names)if(matchesTemplate(name,ns))return!0;return!1}function coerce(val){return val instanceof Error?val.stack||val.message:val}function destroy(){console.warn("Instance metho\
|
|
1351
|
-
d `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return createDebug4.enable(createDebug4.load()),createDebug4}module.exports=setup}});var require_browser=__commonJS({"node_modules/debug/src/browser.js"(exports,module){exports.formatArgs=formatArgs;exports.save=save;exports.load=load;exports.useColors=useColors;exports.storage=localstorage();exports.destroy=(()=>{let
|
|
1417
|
+
d `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return createDebug4.enable(createDebug4.load()),createDebug4}module.exports=setup}});var require_browser=__commonJS({"node_modules/debug/src/browser.js"(exports,module){exports.formatArgs=formatArgs;exports.save=save;exports.load=load;exports.useColors=useColors;exports.storage=localstorage();exports.destroy=(()=>{let warned3=!1;return()=>{warned3||(warned3=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();exports.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC",
|
|
1352
1418
|
"#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900",
|
|
1353
1419
|
"#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let m3;return typeof document<"u"&&document.
|
|
1354
1420
|
documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(m3=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(m3[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(args){if(args[0]=(this.useColors?"%c":
|
|
@@ -1372,7 +1438,7 @@ return JSON.parse(jsonString.substring(start,++index-Number(escape)))}catch(e5){
|
|
|
1372
1438
|
let key=parseStr();skipBlank(),index++;try{let value=parseAny();obj[key]=value}catch(e5){if(options_1.Allow.OBJ&allow)return obj;throw e5}skipBlank(),jsonString[index]===","&&index++}}catch{if(options_1.Allow.OBJ&allow)return obj;markPartialJSON("Expected '}' at end of object")}return index++,obj},parseArr=()=>{index++;let arr=[];try{for(;jsonString[index]!=="]";)arr.push(parseAny()),skipBlank(),jsonString[index]===","&&index++}catch{if(options_1.Allow.ARR&allow)return arr;markPartialJSON("Expec\
|
|
1373
1439
|
ted ']' at end of array")}return index++,arr},parseNum=()=>{if(index===0){jsonString==="-"&&throwMalformedError("Not sure what '-' is");try{return JSON.parse(jsonString)}catch(e5){if(options_1.Allow.NUM&allow)try{return JSON.parse(jsonString.substring(0,jsonString.lastIndexOf("e")))}catch{}throwMalformedError(String(e5))}}let start=index;for(jsonString[index]==="-"&&index++;jsonString[index]&&",]}".indexOf(jsonString[index])===-1;)index++;index==length&&!(options_1.Allow.NUM&allow)&&markPartialJSON(
|
|
1374
1440
|
"Unterminated number literal");try{return JSON.parse(jsonString.substring(start,index))}catch{jsonString.substring(start,index)==="-"&&markPartialJSON("Not sure what '-' is");try{return JSON.parse(jsonString.substring(start,jsonString.lastIndexOf("e")))}catch(e6){throwMalformedError(String(e6))}}},skipBlank=()=>{for(;index<length&&`
|
|
1375
|
-
\r `.includes(jsonString[index]);)index++};return parseAny()},parse2=parseJSON;exports.parse=parse2}});var import_client_bedrock_runtime=__toESM(
|
|
1441
|
+
\r `.includes(jsonString[index]);)index++};return parseAny()},parse2=parseJSON;exports.parse=parse2}});var import_client_bedrock_runtime=__toESM(require_dist_cjs20(),1),import_node_http_handler5=__toESM(require_dist_cjs8(),1);var import_debug5=__toESM(require_src(),1);import*as net2 from"net";import*as tls from"tls";import{once}from"events";import*as net from"net";import*as http from"http";import{Agent as HttpsAgent}from"https";var INTERNAL=Symbol("AgentBaseInternalState"),Agent2=class extends http.Agent{constructor(opts){super(opts),this[INTERNAL]={}}isSecureEndpoint(options){if(options){if(typeof options.secureEndpoint=="boolean")return options.secureEndpoint;if(typeof options.protocol=="string")return options.protocol==="https:"}let{stack}=new Error;return typeof stack!="string"?!1:stack.split(`
|
|
1376
1442
|
`).some(l3=>l3.indexOf("(https.js:")!==-1||l3.indexOf("node:https:")!==-1)}incrementSockets(name){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[name]||(this.sockets[name]=[]);let fakeSocket=new net.Socket({writable:!1});return this.sockets[name].push(fakeSocket),this.totalSocketCount++,fakeSocket}decrementSockets(name,socket){if(!this.sockets[name]||socket===null)return;let sockets=this.sockets[name],index=sockets.indexOf(socket);index!==-1&&(sockets.splice(index,
|
|
1377
1443
|
1),this.totalSocketCount--,sockets.length===0&&delete this.sockets[name])}getName(options){return this.isSecureEndpoint(options)?HttpsAgent.prototype.getName.call(this,options):super.getName(options)}createSocket(req,options,cb){let connectOpts={...options,secureEndpoint:this.isSecureEndpoint(options)},name=this.getName(connectOpts),fakeSocket=this.incrementSockets(name);Promise.resolve().then(()=>this.connect(req,connectOpts)).then(socket=>{if(this.decrementSockets(name,fakeSocket),typeof socket.
|
|
1378
1444
|
addRequest=="function")try{return socket.addRequest(req,connectOpts)}catch(err){return cb(err)}this[INTERNAL].currentSocket=socket,super.createSocket(req,options,cb)},err=>{this.decrementSockets(name,fakeSocket),cb(err)})}createConnection(){let socket=this[INTERNAL].currentSocket;if(this[INTERNAL].currentSocket=void 0,!socket)throw new Error("No socket was returned in the `connect()` function");return socket}get defaultPort(){return this[INTERNAL].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(v){
|
|
@@ -1433,8 +1499,21 @@ function normalizeErrorLabel(text){return stripErrorControls(text).replace(/[\s\
|
|
|
1433
1499
|
search(/(?:https?|wss?|ftp):|[/\\]/i);return start>=0&&/["']/.test(part.slice(start))}))&&/(?:https?|wss?|ftp):|[/\\]/i.test(clean.replace(/\s/g,"")))return"[REDACTED]";if(/\\["/bfnrtu]/i.test(boundaries))return UNPARSEABLE_ERROR_TEXT;let structure=clean.replaceAll("[REDACTED]","").replaceAll("[truncated]","").replace(/\b[a-z_$][\w$]*(?:\[\d+\])+/gi,"");if(/[{}[\]]/.test(structure))return UNPARSEABLE_ERROR_TEXT;if(hasAmbiguousErrorControls(text)||SENSITIVE_KEY.test(normalizeErrorLabel(clean))||/\b(?:B\s*e\s*a\s*r\s*e\s*r|B\s*a\s*s\s*i\s*c)\s/i.
|
|
1434
1500
|
test(boundaries)||/\b(?:B\s*e\s*a\s*r\s*e\s*r|B\s*a\s*s\s*i\s*c)\s/i.test(clean))return"[REDACTED]";let tokenText=clean.replace(/[\t\n\u2028\u2029]/g,"");return tokenText.replace(/[\w-]+(?:\.[\w-]+)*/g,token=>{let segments=token.split(".");return/\b(?:sk-|glpat-|gh[pousr]_|github_pat_|xox[baprs]-)[\w-]+|\b(?:AKIA|ASIA)[A-Z0-9]{16}\b|\bAIza[\w-]{35}/.test(token)||segments.length>=3&&/\beyJ[\w-]+$/.test(segments[0])?"[REDACTED]":token})===tokenText?clean:"[REDACTED]"}function providerHeadersToRecord(...headerSources){let merged=new Map;for(let source of headerSources)for(let[name,value]of Object.entries(source??{})){let normalizedName=name.toLowerCase();merged.delete(normalizedName),value!==null&&merged.set(normalizedName,[name,value])}return merged.size>0?Object.fromEntries(merged.values()):void 0}var import_partial_json=__toESM(require_dist(),1),VALID_JSON_ESCAPES=new Set(['"',"\\","/","b","f","n","r","t","u"]);function escapeControlCharacter(char){switch(char){case"\b":return"\\b";case"\f":return"\\f";case`
|
|
1435
1501
|
`:return"\\n";case"\r":return"\\r";case" ":return"\\t";default:return`\\u${char.codePointAt(0)?.toString(16).padStart(4,"0")??"0000"}`}}function repairJson(json){let repaired="",runStart=0,inString=!1;for(let index=0;index<json.length;index++){let code=json.charCodeAt(index);if(!inString){code===34&&(inString=!0);continue}if(code===34){inString=!1;continue}if(code===92){let nextChar=json[index+1];if(nextChar!==void 0&&VALID_JSON_ESCAPES.has(nextChar)){index+=1;continue}repaired+=`${json.slice(runStart,
|
|
1436
|
-
index)}\\\\`,runStart=index+1;continue}code<=31&&(repaired+=json.slice(runStart,index)+escapeControlCharacter(json[index]),runStart=index+1)}return runStart===0?json:repaired+json.slice(runStart)}function
|
|
1437
|
-
try{return
|
|
1502
|
+
index)}\\\\`,runStart=index+1;continue}code<=31&&(repaired+=json.slice(runStart,index)+escapeControlCharacter(json[index]),runStart=index+1)}return runStart===0?json:repaired+json.slice(runStart)}function mayBeCompleteJson(json){let first=0;for(;first<json.length&&isJsonWhitespace(json.charCodeAt(first));)first++;let open=json.charCodeAt(first);if(open!==123&&open!==91)return!0;let last=json.length-1;for(;last>first&&isJsonWhitespace(json.charCodeAt(last));)last--;return json.charCodeAt(last)===(open===123?125:93)}function isJsonWhitespace(code){return code===32||code===10||code===13||code===9}function parseStreamingJsonWith(partialJson,scan){if(!partialJson||partialJson.trim()==="")return{};
|
|
1503
|
+
try{return JSON.parse(partialJson)}catch{if(mayBeCompleteJson(partialJson)){let repairedJson=repairJson(partialJson);if(repairedJson!==partialJson)try{return JSON.parse(repairedJson)}catch{}}}if(scan){let completed=parsePartialJsonPrefix(scan,partialJson);if(completed!==void 0)return completed}try{return(0,import_partial_json.parse)(partialJson)??{}}catch{try{return(0,import_partial_json.parse)(repairJson(partialJson))??{}}catch{return{}}}}function parseStreamingJson(partialJson){return parseStreamingJsonWith(
|
|
1504
|
+
partialJson,void 0)}var VALUE=0,ARRAY_FIRST=1,OBJECT_FIRST=2,OBJECT_KEY=3,KEY_STRING=4,AFTER_KEY=5,VALUE_STRING=6,NUMBER=7,LITERAL=8,AFTER_VALUE=9,DONE=10,ARRAY_FIRST_SPACED=11,NUMBER_MINUS=0,NUMBER_ZERO=1,NUMBER_INTEGER=2,NUMBER_DOT=3,NUMBER_FRACTION=4,NUMBER_E=5,NUMBER_E_SIGN=6,NUMBER_EXPONENT=7;function createPartialJsonScan(){return{text:"",valid:!0,protoKey:!1,state:VALUE,closers:[],committed:[],stringStart:0,escapeStart:-1,hexLeft:0,keyHasEscape:!1,literal:"",literalIndex:0,numberState:NUMBER_MINUS}}
|
|
1505
|
+
function isHexDigit(code){return code>=48&&code<=57||code>=65&&code<=70||code>=97&&code<=102}function isNumberComplete(numberState){return numberState===NUMBER_ZERO||numberState===NUMBER_INTEGER||numberState===NUMBER_FRACTION||numberState===NUMBER_EXPONENT}function isTrimmedByTrim(code){return code>=9&&code<=13||code===32||code===160||code===5760||code>=8192&&code<=8202||code===8232||code===8233||code===8239||code===8287||code===12288||code===65279}function scanPartialJson(scan,text,start){let i5=start,
|
|
1506
|
+
length=text.length,nextQuote=-2,nextBackslash=-2,endValue=end2=>{scan.closers.length===0?scan.state=DONE:(scan.committed[scan.committed.length-1]=end2,scan.state=AFTER_VALUE)};for(;i5<length;){let state2=scan.state;if(state2===KEY_STRING||state2===VALUE_STRING){if(scan.escapeStart!==-1){let code2=text.charCodeAt(i5);if(scan.hexLeft>0){if(!isHexDigit(code2)){scan.valid=!1;return}scan.hexLeft--,scan.hexLeft===0&&(scan.escapeStart=-1)}else if(code2===117)scan.hexLeft=4;else if(code2===34||code2===92||
|
|
1507
|
+
code2===47||code2===98||code2===102||code2===110||code2===114||code2===116)scan.escapeStart=-1;else{scan.valid=!1;return}i5++;continue}nextQuote!==-1&&nextQuote<i5&&(nextQuote=text.indexOf('"',i5)),nextBackslash!==-1&&nextBackslash<i5&&(nextBackslash=text.indexOf("\\",i5));let quote=nextQuote,backslash=nextBackslash!==-1&&(quote===-1||nextBackslash<quote)?nextBackslash:-1;if(backslash!==-1){scan.escapeStart=backslash,state2===KEY_STRING&&(scan.keyHasEscape=!0),i5=backslash+1;continue}if(quote===
|
|
1508
|
+
-1){i5=length;break}state2===KEY_STRING?((scan.keyHasEscape||quote-scan.stringStart===10&&text.startsWith("__proto__",scan.stringStart+1))&&(scan.protoKey=!0),scan.state=AFTER_KEY):endValue(quote+1),i5=quote+1;continue}let code=text.charCodeAt(i5);if(state2===NUMBER){let numberState=scan.numberState;if(code>=48&&code<=57){if(numberState===NUMBER_MINUS)scan.numberState=code===48?NUMBER_ZERO:NUMBER_INTEGER;else if(numberState===NUMBER_ZERO){scan.valid=!1;return}else numberState===NUMBER_DOT?scan.numberState=
|
|
1509
|
+
NUMBER_FRACTION:(numberState===NUMBER_E||numberState===NUMBER_E_SIGN)&&(scan.numberState=NUMBER_EXPONENT);i5++;continue}if(code===46&&(numberState===NUMBER_ZERO||numberState===NUMBER_INTEGER)){scan.numberState=NUMBER_DOT,i5++;continue}if((code===101||code===69)&&(numberState===NUMBER_ZERO||numberState===NUMBER_INTEGER||numberState===NUMBER_FRACTION)){scan.numberState=NUMBER_E,i5++;continue}if((code===43||code===45)&&numberState===NUMBER_E){scan.numberState=NUMBER_E_SIGN,i5++;continue}if(!isNumberComplete(
|
|
1510
|
+
numberState)){scan.valid=!1;return}endValue(i5);continue}if(state2===LITERAL){if(code!==scan.literal.charCodeAt(scan.literalIndex)){scan.valid=!1;return}scan.literalIndex++,i5++,scan.literalIndex===scan.literal.length&&endValue(i5);continue}if(i5++,isJsonWhitespace(code)){state2===ARRAY_FIRST&&(scan.state=ARRAY_FIRST_SPACED);continue}if(state2===VALUE||state2===ARRAY_FIRST||state2===ARRAY_FIRST_SPACED){if(code===93&&state2===ARRAY_FIRST_SPACED){scan.valid=!1;return}if(code===93&&state2===ARRAY_FIRST)
|
|
1511
|
+
scan.closers.pop(),scan.committed.pop(),endValue(i5);else if(code===123||code===91)scan.closers.push(code===123?125:93),scan.committed.push(i5),scan.state=code===123?OBJECT_FIRST:ARRAY_FIRST;else if(scan.closers.length===0){scan.valid=!1;return}else if(code===34)scan.stringStart=i5-1,scan.state=VALUE_STRING;else if(code===45||code>=48&&code<=57)scan.numberState=code===45?NUMBER_MINUS:code===48?NUMBER_ZERO:NUMBER_INTEGER,scan.state=NUMBER;else if(code===116||code===102||code===110)scan.literal=code===
|
|
1512
|
+
116?"true":code===102?"false":"null",scan.literalIndex=1,scan.state=LITERAL;else{scan.valid=!1;return}}else if(state2===OBJECT_FIRST||state2===OBJECT_KEY)if(code===125&&state2===OBJECT_FIRST)scan.closers.pop(),scan.committed.pop(),endValue(i5);else if(code===34)scan.stringStart=i5-1,scan.keyHasEscape=!1,scan.state=KEY_STRING;else{scan.valid=!1;return}else if(state2===AFTER_KEY){if(code!==58){scan.valid=!1;return}scan.state=VALUE}else if(state2===AFTER_VALUE){let closer=scan.closers[scan.closers.
|
|
1513
|
+
length-1];if(code===44)scan.state=closer===125?OBJECT_KEY:VALUE;else if(code===closer)scan.closers.pop(),scan.committed.pop(),endValue(i5);else{scan.valid=!1;return}}else{scan.valid=!1;return}}}function parsePartialJsonPrefix(scan,text){if(scan.text.length>0&&text.length>=scan.text.length&&text.startsWith(scan.text)?scan.valid&&scanPartialJson(scan,text,scan.text.length):(Object.assign(scan,createPartialJsonScan()),scanPartialJson(scan,text,0)),scan.text=text,!scan.valid||scan.protoKey||scan.closers.
|
|
1514
|
+
length===0)return;let completed,state2=scan.state;if(state2===AFTER_VALUE)completed=text;else if(state2===LITERAL)completed=text+scan.literal.slice(scan.literalIndex);else if(state2===NUMBER){if(!isNumberComplete(scan.numberState))return;completed=text}else if(state2===VALUE_STRING){let end2=text.length;for(;end2>scan.stringStart+1&&isTrimmedByTrim(text.charCodeAt(end2-1));)end2--;end2<text.length?completed=`${text.slice(0,end2)}"`:scan.escapeStart!==-1?completed=`${text.slice(0,scan.escapeStart)}\
|
|
1515
|
+
"`:completed=`${text}"`}else completed=text.slice(0,scan.committed[scan.committed.length-1]);for(let level=scan.closers.length-1;level>=0;level--)completed+=scan.closers[level]===125?"}":"]";try{return JSON.parse(completed)}catch{return}}var lengthsParsedWhileStreaming=new WeakMap,textsParsedWhileStreaming=new WeakMap,scansWhileStreaming=new WeakMap;function parseStreamingJsonWhileStreaming(block,partialJson,current){let length=partialJson?.length??0,parsed=lengthsParsedWhileStreaming.get(block);
|
|
1516
|
+
if(current!==void 0&&parsed!==void 0&&(length>parsed||partialJson===textsParsedWhileStreaming.get(block))&&length-parsed<(parsed<1024?1:parsed>>3))return current;lengthsParsedWhileStreaming.set(block,length),textsParsedWhileStreaming.set(block,partialJson);let scan=scansWhileStreaming.get(block);return scan||(scan=createPartialJsonScan(),scansWhileStreaming.set(block,scan)),parseStreamingJsonWith(partialJson,scan)}var procEnvCache=null;function getBunSandboxEnvValue(name){if(!(typeof process>"u"||!process.versions?.bun||Object.keys(process.env).length>0)){if(procEnvCache===null){procEnvCache=new Map;try{let{readFileSync}=__require("node:fs"),data=readFileSync("/proc/self/environ","utf-8");for(let entry of data.split("\0")){let idx=entry.indexOf("=");idx>0&&procEnvCache.set(entry.slice(0,idx),entry.slice(idx+1))}}catch{}}return procEnvCache.get(name)}}function getProviderEnvValue(name,env2){return env2?.[name]||
|
|
1438
1517
|
(typeof process<"u"?process.env[name]:void 0)||getBunSandboxEnvValue(name)||void 0}var DEFAULT_PROXY_PORTS={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function getProxyEnv(key,env2){let lowercaseKey=key.toLowerCase(),uppercaseKey=key.toUpperCase();return env2?.[lowercaseKey]||env2?.[uppercaseKey]||getProviderEnvValue(lowercaseKey)||getProviderEnvValue(uppercaseKey)||""}function parseProxyTargetUrl(targetUrl){if(targetUrl instanceof URL)return targetUrl;try{return new URL(targetUrl)}catch{return}}function stripBrackets(host){return host.startsWith("[")&&host.endsWith("]")?
|
|
1439
1518
|
host.slice(1,-1):host}function parseNoProxyEntry(entry){let trimmed=entry.trim().toLowerCase();if(!trimmed)return;if(trimmed.startsWith("[")){let closingBracket=trimmed.indexOf("]");if(closingBracket!==-1){let host=trimmed.slice(1,closingBracket),rest=trimmed.slice(closingBracket+1);if(rest.startsWith(":")){let port=Number.parseInt(rest.slice(1),10);return{host,port:Number.isNaN(port)?0:port}}return{host,port:0}}}if(trimmed.includes(":")&&trimmed.split(":").length>2)return{host:trimmed,port:0};let colonIndex=trimmed.
|
|
1440
1519
|
lastIndexOf(":");if(colonIndex!==-1&&colonIndex===trimmed.indexOf(":")){let host=trimmed.slice(0,colonIndex),port=Number.parseInt(trimmed.slice(colonIndex+1),10);if(!Number.isNaN(port))return{host,port}}return{host:trimmed,port:0}}function shouldProxyHostname(hostname,port,env2){let noProxy=getProxyEnv("no_proxy",env2).toLowerCase();if(!noProxy)return!0;if(noProxy==="*")return!1;let normalizedTargetHost=stripBrackets(hostname.toLowerCase());return noProxy.split(/[,\s]/).every(entry=>{let parsed=parseNoProxyEntry(
|