@psnext/slingcli 2.5.20260629-1 → 2.5.20260705-1
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/node_modules/@aws/lambda-invoke-store/README.md +25 -1
- package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +12 -0
- package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +12 -0
- package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +6 -0
- package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
- package/node_modules/@aws-sdk/core/account-id-endpoint.d.ts +1 -3
- package/node_modules/@aws-sdk/core/client.d.ts +1 -3
- package/node_modules/@aws-sdk/core/httpAuthSchemes.d.ts +1 -3
- package/node_modules/@aws-sdk/core/package.json +10 -17
- package/node_modules/@aws-sdk/core/protocols.d.ts +1 -3
- package/node_modules/@aws-sdk/core/util.d.ts +1 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +172 -1
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +3 -51
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +58 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -8
- package/node_modules/@aws-sdk/eventstream-handler-node/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-websocket/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/cognito-identity.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +13 -25
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +13 -17
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +12 -15
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +12 -15
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +13 -25
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commandBuilder.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js +8 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +2 -17
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commandBuilder.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commandBuilder.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commandBuilder.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +2 -14
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commandBuilder.d.ts +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commandBuilder.d.ts +46 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +42 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commandBuilder.d.ts +42 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commandBuilder.d.ts +42 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +3 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commandBuilder.d.ts +46 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +7 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +8 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +3 -51
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +4 -4
- package/node_modules/@aws-sdk/nested-clients/package.json +8 -10
- package/node_modules/@aws-sdk/nested-clients/signin.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sso-oidc.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sso.d.ts +1 -3
- package/node_modules/@aws-sdk/nested-clients/sts.d.ts +1 -3
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +236 -3
- package/node_modules/@aws-sdk/xml-builder/package.json +3 -4
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.js +10 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/compaction/compaction.js +4 -6
- package/node_modules/@earendil-works/pi-agent-core/dist/harness/env/nodejs.js +20 -2
- package/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +2 -14
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +16 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +54 -19
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +8 -3
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +2 -14
- package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +15 -45
- package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js +124 -4
- package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js +18 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js +18 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js +18 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js +4 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js +57 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js +4 -4
- package/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js +4 -4
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js +5 -5
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js +75 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js +105 -88
- package/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js +41 -4
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js +12 -12
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js +12 -12
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js +12 -12
- package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js +15 -15
- package/node_modules/@earendil-works/pi-ai/dist/utils/error-body.js +109 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/device-code.js +15 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth/github-copilot.js +3 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +3 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +1 -0
- package/node_modules/@earendil-works/pi-ai/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/agent-session.js +35 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/auth-storage.js +13 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/compaction/compaction.js +5 -8
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/loader.js +6 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/extensions/runner.js +33 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/http-dispatcher.js +28 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/model-resolver.js +14 -17
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/project-trust.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/provider-attribution.js +0 -10
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/session-manager.js +87 -68
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/settings-manager.js +8 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +20 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/index.js +2 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/main.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/assistant-message.js +15 -7
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/custom-entry.js +52 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/settings-selector.js +13 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/status-indicator.js +60 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/components/user-message.js +18 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/interactive/interactive-mode.js +143 -130
- package/node_modules/@earendil-works/pi-coding-agent/dist/package-manager-cli.js +7 -0
- package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +12 -12
- package/node_modules/@earendil-works/pi-coding-agent/package.json +4 -4
- package/node_modules/@earendil-works/pi-orchestrator/package.json +2 -2
- package/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +358 -145
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +462 -142
- package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +358 -145
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +18 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +108 -63
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +11 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +30 -36
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +85 -137
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +30 -36
- package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Js.js +30 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/crc32/Crc32Node.js +24 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.browser.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/checksum/index.native.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5/Md5Js.js +92 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5/Md5Node.js +29 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256Js.js +179 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256Node.js +59 -0
- package/node_modules/@smithy/core/dist-es/submodules/checksum/sha256/Sha256WebCrypto.js +71 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/client-command-builder.js +17 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.js +92 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js +3 -56
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/EventStreamCodec.js +5 -3
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/splitMessage.js +7 -6
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/concatBytes.js +15 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +2 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.js +35 -27
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/headStream.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.browser.js +12 -38
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.js +18 -33
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.browser.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-utf8/toUint8Array.js +3 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Js.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/crc32/Crc32Node.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/index.browser.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/checksum/index.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/checksum/index.native.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5/Md5Js.d.ts +19 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5/Md5Node.d.ts +17 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256Js.d.ts +28 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256Node.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/submodules/checksum/sha256/Sha256WebCrypto.d.ts +22 -0
- package/node_modules/@smithy/core/dist-types/submodules/client/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/client-command-builder.d.ts +22 -0
- package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/command.d.ts +5 -6
- package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/submodules/config/defaults-mode/constants.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.browser.d.ts +4 -5
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +4 -5
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromInstructions.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/endpointMiddleware.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/getEndpointPlugin.d.ts +1 -2
- package/node_modules/@smithy/core/dist-types/submodules/serde/concatBytes.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.browser.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.native.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/checksum/ChecksumStream.d.ts +29 -12
- package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/stream-collector.browser.d.ts +8 -2
- package/node_modules/@smithy/core/dist-types/submodules/serde/util-stream/stream-collector.d.ts +4 -1
- package/node_modules/@smithy/core/package.json +5 -5
- package/node_modules/@smithy/credential-provider-imds/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +2 -55
- package/node_modules/@smithy/fetch-http-handler/dist-es/index.js +2 -2
- package/node_modules/@smithy/fetch-http-handler/dist-types/index.d.ts +2 -2
- package/node_modules/@smithy/fetch-http-handler/package.json +4 -4
- package/node_modules/@smithy/signature-v4/package.json +3 -4
- package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/buffer.d.ts +64 -25
- package/node_modules/@types/node/crypto.d.ts +18 -5
- package/node_modules/@types/node/diagnostics_channel.d.ts +237 -3
- package/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/node/ffi.d.ts +486 -0
- package/node_modules/@types/node/fs/promises.d.ts +3 -0
- package/node_modules/@types/node/fs.d.ts +21 -6
- package/node_modules/@types/node/http.d.ts +25 -0
- package/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/process.d.ts +14 -1
- package/node_modules/@types/node/quic.d.ts +92 -11
- package/node_modules/@types/node/sqlite.d.ts +55 -0
- package/node_modules/@types/node/stream/iter.d.ts +150 -0
- package/node_modules/@types/node/stream.d.ts +32 -0
- package/node_modules/@types/node/test.d.ts +112 -2
- package/node_modules/@types/node/ts5.6/index.d.ts +1 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +1 -0
- package/node_modules/@types/node/util.d.ts +19 -2
- package/node_modules/@types/node/v8.d.ts +84 -2
- package/node_modules/@types/node/worker_threads.d.ts +8 -7
- package/node_modules/protobufjs/dist/light/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/protobuf.js +5 -2
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/package.json +1 -1
- package/node_modules/protobufjs/src/parse.js +3 -0
- package/package.json +7 -7
- package/slingshot/index.js +261 -261
- package/node_modules/@aws-crypto/crc32/CHANGELOG.md +0 -100
- package/node_modules/@aws-crypto/crc32/LICENSE +0 -201
- package/node_modules/@aws-crypto/crc32/README.md +0 -16
- package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.js +0 -31
- package/node_modules/@aws-crypto/crc32/build/main/aws_crc32.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/build/main/index.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/main/index.js +0 -108
- package/node_modules/@aws-crypto/crc32/build/main/index.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.js +0 -28
- package/node_modules/@aws-crypto/crc32/build/module/aws_crc32.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/build/module/index.d.ts +0 -7
- package/node_modules/@aws-crypto/crc32/build/module/index.js +0 -103
- package/node_modules/@aws-crypto/crc32/build/module/index.js.map +0 -1
- package/node_modules/@aws-crypto/crc32/package.json +0 -32
- package/node_modules/@aws-crypto/crc32/src/aws_crc32.ts +0 -24
- package/node_modules/@aws-crypto/crc32/src/index.ts +0 -92
- package/node_modules/@aws-crypto/crc32/tsconfig.json +0 -9
- package/node_modules/@aws-crypto/crc32/tsconfig.module.json +0 -7
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.browser.js +0 -869
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.native.js +0 -862
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +0 -42
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +0 -27
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +0 -71
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +0 -49
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +0 -13
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +0 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +0 -8
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -41
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -5
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +0 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +0 -29
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +0 -25
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +0 -8
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -41
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -5
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +0 -7
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +0 -57
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +0 -234
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/constants.js +0 -3
- package/node_modules/@smithy/core/dist-es/submodules/checksum/md5-js/md5.js +0 -168
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5-js/constants.d.ts +0 -12
- package/node_modules/@smithy/core/dist-types/submodules/checksum/md5-js/md5.d.ts +0 -16
- package/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +0 -53
- package/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +0 -2
- /package/node_modules/@smithy/{core/dist-es/submodules/endpoints/middleware-endpoint/types.js → types/dist-es/endpoints/EndpointParameterInstructions.js} +0 -0
- /package/node_modules/@smithy/{core/dist-types/submodules/endpoints/middleware-endpoint/types.d.ts → types/dist-types/endpoints/EndpointParameterInstructions.d.ts} +0 -0
|
@@ -21,6 +21,7 @@ export { calculateBodyLength } from "./util-body-length/calculateBodyLength.brow
|
|
|
21
21
|
export { fromUtf8 } from "./util-utf8/fromUtf8.browser";
|
|
22
22
|
export { toUint8Array } from "./util-utf8/toUint8Array.browser";
|
|
23
23
|
export { toUtf8 } from "./util-utf8/toUtf8.browser";
|
|
24
|
+
export { concatBytes } from "./concatBytes";
|
|
24
25
|
export const fromArrayBuffer = no;
|
|
25
26
|
export const fromString = no;
|
|
26
27
|
export { isArrayBuffer } from "./is-array-buffer/is-array-buffer";
|
|
@@ -38,6 +39,7 @@ export { headStream } from "./util-stream/headStream.browser";
|
|
|
38
39
|
export { sdkStreamMixin } from "./util-stream/sdk-stream-mixin.browser";
|
|
39
40
|
export { splitStream } from "./util-stream/splitStream.browser";
|
|
40
41
|
export { isReadableStream, isBlob } from "./util-stream/stream-type-check";
|
|
42
|
+
export { streamCollector } from "./util-stream/stream-collector.browser";
|
|
41
43
|
const _getRandomValues = (array) => crypto.getRandomValues(array);
|
|
42
44
|
export const v4 = bindV4(_getRandomValues);
|
|
43
45
|
export const generateIdempotencyToken = v4;
|
package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/checksum/ChecksumStream.js
CHANGED
|
@@ -1,60 +1,68 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Readable } from "node:stream";
|
|
2
2
|
import { toBase64 } from "../../util-base64/toBase64";
|
|
3
|
-
export class ChecksumStream extends
|
|
3
|
+
export class ChecksumStream extends Readable {
|
|
4
4
|
expectedChecksum;
|
|
5
5
|
checksumSourceLocation;
|
|
6
6
|
checksum;
|
|
7
7
|
source;
|
|
8
8
|
base64Encoder;
|
|
9
|
-
pendingCallback = null;
|
|
10
9
|
constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }) {
|
|
11
10
|
super();
|
|
12
|
-
if (typeof source.pipe
|
|
13
|
-
this.source = source;
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
11
|
+
if (typeof source.pipe !== "function") {
|
|
16
12
|
throw new Error(`@smithy/util-stream: unsupported source type ${source?.constructor?.name ?? source} in ChecksumStream.`);
|
|
17
13
|
}
|
|
14
|
+
this.source = source;
|
|
18
15
|
this.base64Encoder = base64Encoder ?? toBase64;
|
|
19
16
|
this.expectedChecksum = expectedChecksum;
|
|
20
17
|
this.checksum = checksum;
|
|
21
18
|
this.checksumSourceLocation = checksumSourceLocation;
|
|
22
|
-
this.source.
|
|
19
|
+
this.source.on("data", this.onSourceData);
|
|
20
|
+
this.source.on("end", this.onSourceEnd);
|
|
21
|
+
this.source.on("error", this.onSourceError);
|
|
22
|
+
this.source.pause();
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
if (this.
|
|
26
|
-
|
|
27
|
-
this.pendingCallback = null;
|
|
28
|
-
callback();
|
|
24
|
+
onSourceData = (chunk) => {
|
|
25
|
+
if (this.destroyed) {
|
|
26
|
+
return;
|
|
29
27
|
}
|
|
30
|
-
}
|
|
31
|
-
_write(chunk, encoding, callback) {
|
|
32
28
|
try {
|
|
33
29
|
this.checksum.update(chunk);
|
|
34
|
-
const canPushMore = this.push(chunk);
|
|
35
|
-
if (!canPushMore) {
|
|
36
|
-
this.pendingCallback = callback;
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
30
|
}
|
|
40
31
|
catch (e) {
|
|
41
|
-
|
|
32
|
+
this.destroy(e);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (!this.push(chunk)) {
|
|
36
|
+
this.source.pause();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
onSourceEnd = async () => {
|
|
40
|
+
if (this.destroyed) {
|
|
41
|
+
return;
|
|
42
42
|
}
|
|
43
|
-
return callback();
|
|
44
|
-
}
|
|
45
|
-
async _final(callback) {
|
|
46
43
|
try {
|
|
47
44
|
const digest = await this.checksum.digest();
|
|
48
45
|
const received = this.base64Encoder(digest);
|
|
49
46
|
if (this.expectedChecksum !== received) {
|
|
50
|
-
|
|
47
|
+
this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${received}"` +
|
|
51
48
|
` in response header "${this.checksumSourceLocation}".`));
|
|
49
|
+
return;
|
|
52
50
|
}
|
|
53
51
|
}
|
|
54
52
|
catch (e) {
|
|
55
|
-
|
|
53
|
+
this.destroy(e);
|
|
54
|
+
return;
|
|
56
55
|
}
|
|
57
56
|
this.push(null);
|
|
58
|
-
|
|
57
|
+
};
|
|
58
|
+
onSourceError = (error) => {
|
|
59
|
+
this.destroy(error);
|
|
60
|
+
};
|
|
61
|
+
_read(size) {
|
|
62
|
+
this.source.resume();
|
|
63
|
+
}
|
|
64
|
+
_destroy(error, callback) {
|
|
65
|
+
this.source?.destroy();
|
|
66
|
+
callback(error);
|
|
59
67
|
}
|
|
60
68
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Writable } from "node:stream";
|
|
2
|
+
import { concatBytes } from "../concatBytes";
|
|
2
3
|
import { headStream as headWebStream } from "./headStream.browser";
|
|
3
4
|
import { isReadableStream } from "./stream-type-check";
|
|
4
5
|
export const headStream = (stream, bytes) => {
|
|
@@ -15,7 +16,7 @@ export const headStream = (stream, bytes) => {
|
|
|
15
16
|
});
|
|
16
17
|
collector.on("error", reject);
|
|
17
18
|
collector.on("finish", function () {
|
|
18
|
-
const bytes =
|
|
19
|
+
const bytes = concatBytes(this.buffers);
|
|
19
20
|
resolve(bytes);
|
|
20
21
|
});
|
|
21
22
|
});
|
package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/stream-collector.browser.js
CHANGED
|
@@ -1,53 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { concatBytes } from "../concatBytes";
|
|
2
|
+
import { isBlob } from "./stream-type-check";
|
|
2
3
|
export const streamCollector = async (stream) => {
|
|
3
|
-
if ((
|
|
4
|
-
if (Blob.prototype.arrayBuffer !== undefined) {
|
|
5
|
-
return new Uint8Array(await stream.arrayBuffer());
|
|
6
|
-
}
|
|
4
|
+
if (isBlob(stream)) {
|
|
7
5
|
return collectBlob(stream);
|
|
8
6
|
}
|
|
9
|
-
return
|
|
7
|
+
return collectReadableStream(stream);
|
|
10
8
|
};
|
|
11
|
-
async function collectBlob(blob) {
|
|
12
|
-
|
|
13
|
-
const arrayBuffer = fromBase64(base64);
|
|
14
|
-
return new Uint8Array(arrayBuffer);
|
|
9
|
+
export async function collectBlob(blob) {
|
|
10
|
+
return blob.arrayBuffer().then((ab) => new Uint8Array(ab));
|
|
15
11
|
}
|
|
16
|
-
async function
|
|
12
|
+
export async function collectReadableStream(stream) {
|
|
17
13
|
const chunks = [];
|
|
18
14
|
const reader = stream.getReader();
|
|
19
|
-
let isDone = false;
|
|
20
15
|
let length = 0;
|
|
21
|
-
while (
|
|
16
|
+
while (true) {
|
|
22
17
|
const { done, value } = await reader.read();
|
|
23
18
|
if (value) {
|
|
24
19
|
chunks.push(value);
|
|
25
20
|
length += value.length;
|
|
26
21
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
let offset = 0;
|
|
31
|
-
for (const chunk of chunks) {
|
|
32
|
-
collected.set(chunk, offset);
|
|
33
|
-
offset += chunk.length;
|
|
22
|
+
if (done) {
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
34
25
|
}
|
|
35
|
-
return
|
|
36
|
-
}
|
|
37
|
-
function readToBase64(blob) {
|
|
38
|
-
return new Promise((resolve, reject) => {
|
|
39
|
-
const reader = new FileReader();
|
|
40
|
-
reader.onloadend = () => {
|
|
41
|
-
if (reader.readyState !== 2) {
|
|
42
|
-
return reject(new Error("Reader aborted too early"));
|
|
43
|
-
}
|
|
44
|
-
const result = (reader.result ?? "");
|
|
45
|
-
const commaIndex = result.indexOf(",");
|
|
46
|
-
const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
|
|
47
|
-
resolve(result.substring(dataOffset));
|
|
48
|
-
};
|
|
49
|
-
reader.onabort = () => reject(new Error("Read aborted"));
|
|
50
|
-
reader.onerror = () => reject(reader.error);
|
|
51
|
-
reader.readAsDataURL(blob);
|
|
52
|
-
});
|
|
26
|
+
return concatBytes(chunks, length);
|
|
53
27
|
}
|
|
@@ -1,48 +1,33 @@
|
|
|
1
1
|
import { Writable } from "node:stream";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
this.bufferedBytes.push(chunk);
|
|
6
|
-
callback();
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
const isReadableStreamInstance = (stream) => typeof ReadableStream === "function" && stream instanceof ReadableStream;
|
|
10
|
-
async function collectReadableStream(stream) {
|
|
11
|
-
const chunks = [];
|
|
12
|
-
const reader = stream.getReader();
|
|
13
|
-
let isDone = false;
|
|
14
|
-
let length = 0;
|
|
15
|
-
while (!isDone) {
|
|
16
|
-
const { done, value } = await reader.read();
|
|
17
|
-
if (value) {
|
|
18
|
-
chunks.push(value);
|
|
19
|
-
length += value.length;
|
|
20
|
-
}
|
|
21
|
-
isDone = done;
|
|
22
|
-
}
|
|
23
|
-
const collected = new Uint8Array(length);
|
|
24
|
-
let offset = 0;
|
|
25
|
-
for (const chunk of chunks) {
|
|
26
|
-
collected.set(chunk, offset);
|
|
27
|
-
offset += chunk.length;
|
|
28
|
-
}
|
|
29
|
-
return collected;
|
|
30
|
-
}
|
|
2
|
+
import { concatBytes } from "../concatBytes";
|
|
3
|
+
import { collectBlob, collectReadableStream } from "./stream-collector.browser";
|
|
4
|
+
import { isBlob, isReadableStream } from "./stream-type-check";
|
|
31
5
|
export const streamCollector = (stream) => {
|
|
32
|
-
if (
|
|
6
|
+
if (isBlob(stream)) {
|
|
7
|
+
return collectBlob(stream);
|
|
8
|
+
}
|
|
9
|
+
if (isReadableStream(stream)) {
|
|
33
10
|
return collectReadableStream(stream);
|
|
34
11
|
}
|
|
35
12
|
return new Promise((resolve, reject) => {
|
|
36
13
|
const collector = new Collector();
|
|
37
|
-
stream
|
|
38
|
-
|
|
14
|
+
const nodeStream = stream;
|
|
15
|
+
nodeStream.pipe(collector);
|
|
16
|
+
nodeStream.on("error", (err) => {
|
|
39
17
|
collector.end();
|
|
40
18
|
reject(err);
|
|
41
19
|
});
|
|
42
20
|
collector.on("error", reject);
|
|
43
21
|
collector.on("finish", function () {
|
|
44
|
-
const bytes =
|
|
22
|
+
const bytes = concatBytes(this.bufferedBytes);
|
|
45
23
|
resolve(bytes);
|
|
46
24
|
});
|
|
47
25
|
});
|
|
48
26
|
};
|
|
27
|
+
class Collector extends Writable {
|
|
28
|
+
bufferedBytes = [];
|
|
29
|
+
_write(chunk, encoding, callback) {
|
|
30
|
+
this.bufferedBytes.push(chunk);
|
|
31
|
+
callback();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Checksum } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* Pure JS CRC-32 implementation using the IEEE 802.3 polynomial.
|
|
4
|
+
* @see https://www.w3.org/TR/png/#D-CRCAppendix
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class Crc32Js implements Checksum {
|
|
8
|
+
readonly digestLength = 4;
|
|
9
|
+
private checksum;
|
|
10
|
+
update(data: Uint8Array): void;
|
|
11
|
+
/**
|
|
12
|
+
* Used by EventStreamCodec.
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
digestSync(): number;
|
|
16
|
+
digest(): Promise<Uint8Array>;
|
|
17
|
+
reset(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Checksum } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* CRC-32 using Node.js zlib native implementation when available,
|
|
4
|
+
* falling back to the pure JS implementation.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface Crc32Node extends Checksum {
|
|
8
|
+
readonly digestLength: 4;
|
|
9
|
+
/**
|
|
10
|
+
* Used by EventStreamCodec.
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
digestSync(): number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export declare const Crc32Node: new () => Crc32Node;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export { blobHasher } from "./hash-blob-browser/blobHasher";
|
|
2
2
|
export declare const fileStreamHasher: symbol;
|
|
3
3
|
export declare const readableStreamHasher: symbol;
|
|
4
|
-
export { Md5 } from "./md5
|
|
4
|
+
export { Md5Js, Md5Js as Md5 } from "./md5/Md5Js";
|
|
5
|
+
export declare const Md5Node: symbol;
|
|
6
|
+
export { Crc32Js, Crc32Js as Crc32 } from "./crc32/Crc32Js";
|
|
7
|
+
export declare const Crc32Node: symbol;
|
|
8
|
+
export { Sha256Js } from "./sha256/Sha256Js";
|
|
9
|
+
export { Sha256WebCrypto, Sha256WebCrypto as Sha256 } from "./sha256/Sha256WebCrypto";
|
|
10
|
+
export declare const Sha256Node: symbol;
|
|
5
11
|
export { blobReader } from "./chunked-blob-reader/chunked-blob-reader";
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export { blobHasher } from "./hash-blob-browser/blobHasher";
|
|
2
2
|
export { fileStreamHasher } from "./hash-stream-node/fileStreamHasher";
|
|
3
3
|
export { readableStreamHasher } from "./hash-stream-node/readableStreamHasher";
|
|
4
|
-
export {
|
|
4
|
+
export { Md5Js } from "./md5/Md5Js";
|
|
5
|
+
export { Md5Node, Md5Node as Md5 } from "./md5/Md5Node";
|
|
6
|
+
export { Crc32Js } from "./crc32/Crc32Js";
|
|
7
|
+
export { Crc32Node, Crc32Node as Crc32 } from "./crc32/Crc32Node";
|
|
8
|
+
export { Sha256Js } from "./sha256/Sha256Js";
|
|
9
|
+
export { Sha256Node, Sha256Node as Sha256 } from "./sha256/Sha256Node";
|
|
10
|
+
export { Sha256WebCrypto } from "./sha256/Sha256WebCrypto";
|
|
5
11
|
export { blobReader } from "./chunked-blob-reader/chunked-blob-reader";
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export { blobHasher } from "./hash-blob-browser/blobHasher";
|
|
2
2
|
export declare const fileStreamHasher: symbol;
|
|
3
3
|
export declare const readableStreamHasher: symbol;
|
|
4
|
-
export { Md5 } from "./md5
|
|
4
|
+
export { Md5Js, Md5Js as Md5 } from "./md5/Md5Js";
|
|
5
|
+
export declare const Md5Node: symbol;
|
|
6
|
+
export { Crc32Js, Crc32Js as Crc32 } from "./crc32/Crc32Js";
|
|
7
|
+
export declare const Crc32Node: symbol;
|
|
8
|
+
export { Sha256Js } from "./sha256/Sha256Js";
|
|
9
|
+
export { Sha256WebCrypto, Sha256WebCrypto as Sha256 } from "./sha256/Sha256WebCrypto";
|
|
10
|
+
export declare const Sha256Node: symbol;
|
|
5
11
|
export { blobReader } from "./chunked-blob-reader/chunked-blob-reader.native";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Checksum, SourceData } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* Pure-JS MD5 implementation. Used as fallback where node:crypto is unavailable.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class Md5Js implements Checksum {
|
|
8
|
+
readonly digestLength = 16;
|
|
9
|
+
private state;
|
|
10
|
+
private writeBuffer;
|
|
11
|
+
private bufferLength;
|
|
12
|
+
private bytesHashed;
|
|
13
|
+
update(sourceData: SourceData): void;
|
|
14
|
+
/**
|
|
15
|
+
* Non-destructive: works on copies so update() may continue after digest().
|
|
16
|
+
*/
|
|
17
|
+
digest(): Promise<Uint8Array>;
|
|
18
|
+
reset(): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Checksum, SourceData } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* MD5 using Node.js crypto native implementation when available,
|
|
4
|
+
* falling back to the pure JS implementation.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface Md5Node extends Checksum {
|
|
8
|
+
readonly digestLength: 16;
|
|
9
|
+
/**
|
|
10
|
+
* @override
|
|
11
|
+
*/
|
|
12
|
+
update(data: SourceData): void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export declare const Md5Node: new () => Md5Node;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Checksum, SourceData } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* Pure JS SHA-256 implementation with HMAC support.
|
|
4
|
+
* @see https://csrc.nist.gov/pubs/fips/180-4/upd1/final
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class Sha256Js implements Checksum {
|
|
8
|
+
readonly digestLength = 32;
|
|
9
|
+
/** Eight 32-bit words representing the current hash state. */
|
|
10
|
+
private state;
|
|
11
|
+
/** Reused message schedule array (W), allocated on first use of hashBuffer. */
|
|
12
|
+
private w?;
|
|
13
|
+
/** Accumulates input bytes until a full 64-byte block is ready. */
|
|
14
|
+
private buffer;
|
|
15
|
+
private bufferLength;
|
|
16
|
+
private bytesHashed;
|
|
17
|
+
private finished;
|
|
18
|
+
private readonly inner?;
|
|
19
|
+
private readonly outer?;
|
|
20
|
+
constructor(secret?: SourceData);
|
|
21
|
+
update(data: SourceData): void;
|
|
22
|
+
digest(): Promise<Uint8Array>;
|
|
23
|
+
reset(): void;
|
|
24
|
+
private digestSync;
|
|
25
|
+
private static normalizeKey;
|
|
26
|
+
private hashBuffer;
|
|
27
|
+
private hashBufferWith;
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Checksum, SourceData } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* SHA-256 using Node.js crypto native implementation when available,
|
|
4
|
+
* falling back to the pure JS implementation.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface Sha256Node extends Checksum {
|
|
8
|
+
readonly digestLength: 32;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export declare const Sha256Node: new (secret?: SourceData) => Sha256Node;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Checksum, SourceData } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* SHA-256 using the Web Crypto API (crypto.subtle) when available,
|
|
4
|
+
* falling back to the pure JS implementation.
|
|
5
|
+
*
|
|
6
|
+
* Caution: this implementation is forced to buffer the data entirely.
|
|
7
|
+
* Use the pure-JS or Sha256Node implementations for large streaming data.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
export declare class Sha256WebCrypto implements Checksum {
|
|
11
|
+
readonly digestLength: 32;
|
|
12
|
+
private readonly secret?;
|
|
13
|
+
private pending;
|
|
14
|
+
private pendingBytes;
|
|
15
|
+
private fallback?;
|
|
16
|
+
private finished;
|
|
17
|
+
constructor(secret?: SourceData);
|
|
18
|
+
update(data: Uint8Array): void;
|
|
19
|
+
digest(): Promise<Uint8Array>;
|
|
20
|
+
reset(): void;
|
|
21
|
+
private switchToFallback;
|
|
22
|
+
}
|
|
@@ -24,3 +24,4 @@ export { map, convertMap, take, type ObjectMappingInstructions, type SourceMappi
|
|
|
24
24
|
export { schemaLogFilter } from "./smithy-client/schemaLogFilter";
|
|
25
25
|
export { serializeFloat, serializeDateTime } from "./smithy-client/ser-utils";
|
|
26
26
|
export { _json } from "./smithy-client/serde-json";
|
|
27
|
+
export { makeBuilder } from "./smithy-client/client-command-builder";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { EndpointParameterInstructions, Logger, MetadataBearer, OptionalParameter, Pluggable, RequestHandler, StaticOperationSchema } from "@smithy/types";
|
|
2
|
+
import { type CommandImpl } from "./command";
|
|
3
|
+
/**
|
|
4
|
+
* Higher order factory for Command builders specific to a client.
|
|
5
|
+
* Produces a command factory that creates Command classes with
|
|
6
|
+
* pre-configured endpoint params, middleware, and schema.
|
|
7
|
+
*
|
|
8
|
+
* @param common - common endpoint params.
|
|
9
|
+
* @param service - service shape name.
|
|
10
|
+
* @param name - SDK Client Name.
|
|
11
|
+
* @param ep - endpoint plugin provider.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare function makeBuilder<C extends {
|
|
16
|
+
logger?: Logger;
|
|
17
|
+
requestHandler: RequestHandler<any, any, any>;
|
|
18
|
+
}, SI extends object, SO extends MetadataBearer>(common: EndpointParameterInstructions, service: string, name: string, ep: (config: any, instructions: any) => Pluggable<any, any>): <I extends SI, O extends SO>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => Pluggable<any, any>[], op: string, $: StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
|
|
19
|
+
new (input: I): CommandImpl<I, O, C, SI, SO>;
|
|
20
|
+
new (...[input]: OptionalParameter<I>): CommandImpl<I, O, C, SI, SO>;
|
|
21
|
+
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
22
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type Handler, type HandlerExecutionContext, type Command as ICommand, type HttpRequest as IHttpRequest, type HttpResponse as IHttpResponse, type MiddlewareStack as IMiddlewareStack, type Logger, type MetadataBearer, type OperationSchema, type OptionalParameter, type Pluggable, type RequestHandler, type SerdeContext, type StaticOperationSchema } from "@smithy/types";
|
|
2
|
-
type EndpointParameterInstructions = Record<string, unknown>;
|
|
1
|
+
import { type EndpointParameterInstructions, type Handler, type HandlerExecutionContext, type Command as ICommand, type HttpRequest as IHttpRequest, type HttpResponse as IHttpResponse, type MiddlewareStack as IMiddlewareStack, type Logger, type MetadataBearer, type OperationSchema, type OptionalParameter, type Pluggable, type RequestHandler, type SerdeContext, type StaticOperationSchema } from "@smithy/types";
|
|
3
2
|
/**
|
|
4
3
|
* @public
|
|
5
4
|
*/
|
|
@@ -12,7 +11,7 @@ export declare abstract class Command<Input extends ClientInput, Output extends
|
|
|
12
11
|
* @internal
|
|
13
12
|
*/
|
|
14
13
|
static classBuilder<I extends SI, O extends SO, C extends {
|
|
15
|
-
logger
|
|
14
|
+
logger?: Logger;
|
|
16
15
|
requestHandler: RequestHandler<any, any, any>;
|
|
17
16
|
}, SI extends object = any, SO extends MetadataBearer = any>(): ClassBuilder<I, O, C, SI, SO>;
|
|
18
17
|
abstract resolveMiddleware(stack: IMiddlewareStack<ClientInput, ClientOutput>, configuration: ResolvedClientConfiguration, options: any): Handler<Input, Output>;
|
|
@@ -20,7 +19,7 @@ export declare abstract class Command<Input extends ClientInput, Output extends
|
|
|
20
19
|
* @internal
|
|
21
20
|
*/
|
|
22
21
|
resolveMiddlewareWithContext(clientStack: IMiddlewareStack<any, any>, configuration: {
|
|
23
|
-
logger
|
|
22
|
+
logger?: Logger;
|
|
24
23
|
requestHandler: RequestHandler<any, any, any>;
|
|
25
24
|
}, options: any, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor, }: ResolveMiddlewareContextArgs): import("@smithy/types").InitializeHandler<any, Output>;
|
|
26
25
|
}
|
|
@@ -41,7 +40,7 @@ type ResolveMiddlewareContextArgs = {
|
|
|
41
40
|
* @internal
|
|
42
41
|
*/
|
|
43
42
|
declare class ClassBuilder<I extends SI, O extends SO, C extends {
|
|
44
|
-
logger
|
|
43
|
+
logger?: Logger;
|
|
45
44
|
requestHandler: RequestHandler<any, any, any>;
|
|
46
45
|
}, SI extends object = any, SO extends MetadataBearer = any> {
|
|
47
46
|
private _init;
|
|
@@ -110,7 +109,7 @@ declare class ClassBuilder<I extends SI, O extends SO, C extends {
|
|
|
110
109
|
* @public
|
|
111
110
|
*/
|
|
112
111
|
export interface CommandImpl<I extends SI, O extends SO, C extends {
|
|
113
|
-
logger
|
|
112
|
+
logger?: Logger;
|
|
114
113
|
requestHandler: RequestHandler<any, any, any>;
|
|
115
114
|
}, SI extends object = any, SO extends MetadataBearer = any> extends Command<I, O, C, SI, SO> {
|
|
116
115
|
readonly input: I;
|
|
@@ -22,3 +22,15 @@ export declare const DEFAULTS_MODE_OPTIONS: string[];
|
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
24
|
export declare const IMDS_REGION_PATH = "/latest/meta-data/placement/region";
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export declare const IMDS_TOKEN_PATH = "/latest/api/token";
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
export declare const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
export declare const X_AWS_EC2_METADATA_TOKEN_TTL = "x-aws-ec2-metadata-token-ttl-seconds";
|
|
@@ -7,18 +7,17 @@ export { isValidHostLabel } from "@smithy/core/transport";
|
|
|
7
7
|
export { customEndpointFunctions } from "./util-endpoints/utils/customEndpointFunctions";
|
|
8
8
|
export { resolveEndpoint } from "./util-endpoints/resolveEndpoint";
|
|
9
9
|
export * from "./util-endpoints/types";
|
|
10
|
-
export declare const getEndpointFromInstructions: <T extends import("@smithy/types").EndpointParameters, CommandInput extends
|
|
10
|
+
export declare const getEndpointFromInstructions: <T extends import("@smithy/types").EndpointParameters, CommandInput extends object, Config extends object>(commandInput: CommandInput, instructionsSupplier: import("./middleware-endpoint/adaptors/getEndpointFromInstructions").EndpointParameterInstructionsSupplier, clientConfig: Partial<import("./middleware-endpoint/resolveEndpointConfig").EndpointResolvedConfig<T>> & Config, context?: import("@smithy/types").HandlerExecutionContext) => Promise<import("@smithy/types").EndpointV2>;
|
|
11
11
|
export declare const resolveEndpointConfig: <T, P extends import("@smithy/types").EndpointParameters = import("@smithy/types").EndpointParameters>(input: T & import("./middleware-endpoint/resolveEndpointConfig").EndpointInputConfig<P> & import("./middleware-endpoint/resolveEndpointConfig").PreviouslyResolved<P>) => T & import("./middleware-endpoint/resolveEndpointConfig").EndpointResolvedConfig<P>;
|
|
12
12
|
export declare const endpointMiddleware: <T extends import("@smithy/types").EndpointParameters>({ config, instructions, }: {
|
|
13
13
|
config: import("./middleware-endpoint/resolveEndpointConfig").EndpointResolvedConfig<T>;
|
|
14
|
-
instructions: import("
|
|
14
|
+
instructions: import("@smithy/types").EndpointParameterInstructions;
|
|
15
15
|
}) => import("@smithy/types").SerializeMiddleware<any, any>;
|
|
16
|
-
export declare const getEndpointPlugin: <T extends import("@smithy/types").EndpointParameters>(config: import("./middleware-endpoint/resolveEndpointConfig").EndpointResolvedConfig<T>, instructions: import("
|
|
16
|
+
export declare const getEndpointPlugin: <T extends import("@smithy/types").EndpointParameters>(config: import("./middleware-endpoint/resolveEndpointConfig").EndpointResolvedConfig<T>, instructions: import("@smithy/types").EndpointParameterInstructions) => import("@smithy/types").Pluggable<any, any>;
|
|
17
17
|
export { resolveParams, type EndpointParameterInstructionsSupplier, } from "./middleware-endpoint/adaptors/getEndpointFromInstructions";
|
|
18
18
|
export { toEndpointV1 as middlewareEndpointToEndpointV1 } from "./middleware-endpoint/adaptors/toEndpointV1";
|
|
19
19
|
export { endpointMiddlewareOptions } from "./middleware-endpoint/getEndpointPlugin";
|
|
20
20
|
export type { EndpointInputConfig, EndpointResolvedConfig } from "./middleware-endpoint/resolveEndpointConfig";
|
|
21
21
|
export { resolveEndpointRequiredConfig } from "./middleware-endpoint/resolveEndpointRequiredConfig";
|
|
22
22
|
export type { EndpointRequiredInputConfig, EndpointRequiredResolvedConfig, } from "./middleware-endpoint/resolveEndpointRequiredConfig";
|
|
23
|
-
export type { EndpointParameterInstructions } from "
|
|
24
|
-
export type { BuiltInParamInstruction, ClientContextParamInstruction, ContextParamInstruction, OperationContextParamInstruction, StaticContextParamInstruction, } from "./middleware-endpoint/types";
|
|
23
|
+
export type { EndpointParameterInstructions, BuiltInParamInstruction, ClientContextParamInstruction, ContextParamInstruction, OperationContextParamInstruction, StaticContextParamInstruction, } from "@smithy/types";
|
|
@@ -7,18 +7,17 @@ export { isValidHostLabel } from "@smithy/core/transport";
|
|
|
7
7
|
export { customEndpointFunctions } from "./util-endpoints/utils/customEndpointFunctions";
|
|
8
8
|
export { resolveEndpoint } from "./util-endpoints/resolveEndpoint";
|
|
9
9
|
export * from "./util-endpoints/types";
|
|
10
|
-
export declare const getEndpointFromInstructions: <T extends import("@smithy/types").EndpointParameters, CommandInput extends
|
|
10
|
+
export declare const getEndpointFromInstructions: <T extends import("@smithy/types").EndpointParameters, CommandInput extends object, Config extends object>(commandInput: CommandInput, instructionsSupplier: import("./middleware-endpoint/adaptors/getEndpointFromInstructions").EndpointParameterInstructionsSupplier, clientConfig: Partial<import("./middleware-endpoint/resolveEndpointConfig").EndpointResolvedConfig<T>> & Config, context?: import("@smithy/types").HandlerExecutionContext) => Promise<import("@smithy/types").EndpointV2>;
|
|
11
11
|
export declare const resolveEndpointConfig: <T, P extends import("@smithy/types").EndpointParameters = import("@smithy/types").EndpointParameters>(input: T & import("./middleware-endpoint/resolveEndpointConfig").EndpointInputConfig<P> & import("./middleware-endpoint/resolveEndpointConfig").PreviouslyResolved<P>) => T & import("./middleware-endpoint/resolveEndpointConfig").EndpointResolvedConfig<P>;
|
|
12
12
|
export declare const endpointMiddleware: <T extends import("@smithy/types").EndpointParameters>({ config, instructions, }: {
|
|
13
13
|
config: import("./middleware-endpoint/resolveEndpointConfig").EndpointResolvedConfig<T>;
|
|
14
|
-
instructions: import("
|
|
14
|
+
instructions: import("@smithy/types").EndpointParameterInstructions;
|
|
15
15
|
}) => import("@smithy/types").SerializeMiddleware<any, any>;
|
|
16
|
-
export declare const getEndpointPlugin: <T extends import("@smithy/types").EndpointParameters>(config: import("./middleware-endpoint/resolveEndpointConfig").EndpointResolvedConfig<T>, instructions: import("
|
|
16
|
+
export declare const getEndpointPlugin: <T extends import("@smithy/types").EndpointParameters>(config: import("./middleware-endpoint/resolveEndpointConfig").EndpointResolvedConfig<T>, instructions: import("@smithy/types").EndpointParameterInstructions) => import("@smithy/types").Pluggable<any, any>;
|
|
17
17
|
export { resolveParams, type EndpointParameterInstructionsSupplier, } from "./middleware-endpoint/adaptors/getEndpointFromInstructions";
|
|
18
18
|
export { toEndpointV1 as middlewareEndpointToEndpointV1 } from "./middleware-endpoint/adaptors/toEndpointV1";
|
|
19
19
|
export { endpointMiddlewareOptions } from "./middleware-endpoint/getEndpointPlugin";
|
|
20
20
|
export type { EndpointInputConfig, EndpointResolvedConfig } from "./middleware-endpoint/resolveEndpointConfig";
|
|
21
21
|
export { resolveEndpointRequiredConfig } from "./middleware-endpoint/resolveEndpointRequiredConfig";
|
|
22
22
|
export type { EndpointRequiredInputConfig, EndpointRequiredResolvedConfig, } from "./middleware-endpoint/resolveEndpointRequiredConfig";
|
|
23
|
-
export type { EndpointParameterInstructions } from "
|
|
24
|
-
export type { BuiltInParamInstruction, ClientContextParamInstruction, ContextParamInstruction, OperationContextParamInstruction, StaticContextParamInstruction, } from "./middleware-endpoint/types";
|
|
23
|
+
export type { EndpointParameterInstructions, BuiltInParamInstruction, ClientContextParamInstruction, ContextParamInstruction, OperationContextParamInstruction, StaticContextParamInstruction, } from "@smithy/types";
|