agent-relay 4.0.32 → 4.0.34
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/bin/agent-relay-broker-darwin-arm64 +0 -0
- package/bin/agent-relay-broker-darwin-x64 +0 -0
- package/bin/agent-relay-broker-linux-arm64 +0 -0
- package/bin/agent-relay-broker-linux-x64 +0 -0
- package/dist/index.cjs +1 -3
- package/dist/src/cli/commands/on/start.d.ts.map +1 -1
- package/dist/src/cli/commands/on/start.js +149 -111
- package/dist/src/cli/commands/on/start.js.map +1 -1
- package/dist/src/cli/commands/setup.js +2 -2
- package/dist/src/cli/commands/setup.js.map +1 -1
- package/node_modules/@agent-relay/cloud/package.json +2 -2
- package/node_modules/@agent-relay/config/package.json +1 -1
- package/node_modules/@agent-relay/hooks/package.json +4 -4
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.js +7 -5
- package/node_modules/@agent-relay/sdk/dist/workflows/runner.js.map +1 -1
- package/node_modules/@agent-relay/sdk/package.json +2 -2
- package/node_modules/@agent-relay/telemetry/dist/config.d.ts +1 -1
- package/node_modules/@agent-relay/telemetry/dist/config.d.ts.map +1 -1
- package/node_modules/@agent-relay/telemetry/dist/config.js +6 -3
- package/node_modules/@agent-relay/telemetry/dist/config.js.map +1 -1
- package/node_modules/@agent-relay/telemetry/package.json +1 -1
- package/node_modules/@agent-relay/trajectory/package.json +2 -2
- package/node_modules/@agent-relay/user-directory/package.json +2 -2
- package/node_modules/@agent-relay/utils/package.json +2 -2
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +18 -10
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +18 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +6 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +6 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -2
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +100 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/bdd.js +90 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/bdd.js +80 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +80 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +87 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/bdd.js +150 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +97 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +87 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +77 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +77 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +88 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +147 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +8 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +15 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +10 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +3 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +20 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +11 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +35 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +11 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +8 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +5 -4
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@relayfile/local-mount/README.md +215 -0
- package/node_modules/@relayfile/local-mount/dist/auto-sync.d.ts +31 -0
- package/node_modules/@relayfile/local-mount/dist/auto-sync.js +466 -0
- package/node_modules/@relayfile/local-mount/dist/dotfiles.d.ts +18 -0
- package/node_modules/@relayfile/local-mount/dist/dotfiles.js +43 -0
- package/node_modules/@relayfile/local-mount/dist/index.d.ts +4 -0
- package/node_modules/@relayfile/local-mount/dist/index.js +3 -0
- package/node_modules/@relayfile/local-mount/dist/launch.d.ts +50 -0
- package/node_modules/@relayfile/local-mount/dist/launch.js +129 -0
- package/node_modules/@relayfile/local-mount/dist/symlink-mount.d.ts +23 -0
- package/{dist/src/cli/commands/on → node_modules/@relayfile/local-mount/dist}/symlink-mount.js +88 -20
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/LICENSE +21 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/README.md +305 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/handler.d.ts +90 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/handler.js +629 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/index.d.ts +215 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/index.js +798 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/esm/package.json +1 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/handler.d.ts +90 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/handler.js +635 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/index.d.ts +215 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/index.js +804 -0
- package/node_modules/@relayfile/local-mount/node_modules/chokidar/package.json +69 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/LICENSE +21 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/README.md +120 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/esm/index.d.ts +108 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/esm/index.js +257 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/esm/package.json +1 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/index.d.ts +108 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/index.js +263 -0
- package/node_modules/@relayfile/local-mount/node_modules/readdirp/package.json +70 -0
- package/node_modules/@relayfile/local-mount/package.json +47 -0
- package/node_modules/@smithy/config-resolver/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/index.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -14
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +16 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +17 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +6 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +6 -3
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +23 -11
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +9 -3
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +16 -8
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +8 -6
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +6 -3
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
- package/node_modules/@smithy/middleware-retry/package.json +5 -5
- package/node_modules/@smithy/middleware-serde/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +188 -93
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +45 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +71 -35
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +32 -18
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +41 -40
- package/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +42 -0
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +34 -14
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +32 -8
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +0 -5
- package/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +5 -0
- package/node_modules/@smithy/service-error-classification/dist-es/index.js +4 -0
- package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +6 -0
- package/node_modules/@smithy/service-error-classification/package.json +1 -1
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +3 -3
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +65 -53
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js +9 -7
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js +12 -8
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js +14 -13
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js +7 -4
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +10 -8
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +4 -4
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js +5 -5
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +4 -4
- package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +3 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +2 -15
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts +6 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts +3 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/package.json +1 -1
- package/node_modules/@smithy/util-retry/package.json +2 -2
- package/node_modules/@smithy/util-stream/package.json +2 -2
- package/package.json +25 -11
- package/packages/cloud/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/hooks/package.json +4 -4
- package/packages/sdk/dist/workflows/runner.d.ts.map +1 -1
- package/packages/sdk/dist/workflows/runner.js +7 -5
- package/packages/sdk/dist/workflows/runner.js.map +1 -1
- package/packages/sdk/package.json +2 -2
- package/packages/telemetry/dist/config.d.ts +1 -1
- package/packages/telemetry/dist/config.d.ts.map +1 -1
- package/packages/telemetry/dist/config.js +6 -3
- package/packages/telemetry/dist/config.js.map +1 -1
- package/packages/telemetry/package.json +1 -1
- package/packages/trajectory/package.json +2 -2
- package/packages/user-directory/package.json +2 -2
- package/packages/utils/package.json +2 -2
- package/dist/src/cli/commands/on/symlink-mount.d.ts +0 -12
- package/dist/src/cli/commands/on/symlink-mount.d.ts.map +0 -1
- package/dist/src/cli/commands/on/symlink-mount.js.map +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +0 -146
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +0 -133
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +0 -106
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +0 -106
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +0 -145
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/ruleset.js +0 -143
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +0 -130
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js +0 -103
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +0 -103
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +0 -142
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/ruleset.d.ts +0 -2
package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
import { resolveAwsSdkSigV4Config } from "@aws-sdk/core/httpAuthSchemes";
|
|
1
|
+
import { resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
|
|
3
|
+
import { resolveParams } from "@smithy/middleware-endpoint";
|
|
2
4
|
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
5
|
+
import { defaultEndpointResolver } from "../endpoint/endpointResolver";
|
|
3
6
|
import { STSClient } from "../STSClient";
|
|
4
|
-
|
|
7
|
+
const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
8
|
+
if (!input) {
|
|
9
|
+
throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
|
|
10
|
+
}
|
|
11
|
+
const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
|
|
12
|
+
const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor
|
|
13
|
+
?.getEndpointParameterInstructions;
|
|
14
|
+
if (!instructionsFn) {
|
|
15
|
+
throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
|
|
16
|
+
}
|
|
17
|
+
const endpointParameters = await resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config);
|
|
18
|
+
return Object.assign(defaultParameters, endpointParameters);
|
|
19
|
+
};
|
|
20
|
+
const _defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
5
21
|
return {
|
|
6
22
|
operation: getSmithyContext(context).operation,
|
|
7
23
|
region: (await normalizeProvider(config.region)()) ||
|
|
@@ -10,6 +26,7 @@ export const defaultSTSHttpAuthSchemeParametersProvider = async (config, context
|
|
|
10
26
|
})(),
|
|
11
27
|
};
|
|
12
28
|
};
|
|
29
|
+
export const defaultSTSHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);
|
|
13
30
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
14
31
|
return {
|
|
15
32
|
schemeId: "aws.auth#sigv4",
|
|
@@ -25,31 +42,98 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
25
42
|
}),
|
|
26
43
|
};
|
|
27
44
|
}
|
|
45
|
+
function createAwsAuthSigv4aHttpAuthOption(authParameters) {
|
|
46
|
+
return {
|
|
47
|
+
schemeId: "aws.auth#sigv4a",
|
|
48
|
+
signingProperties: {
|
|
49
|
+
name: "sts",
|
|
50
|
+
region: authParameters.region,
|
|
51
|
+
},
|
|
52
|
+
propertiesExtractor: (config, context) => ({
|
|
53
|
+
signingProperties: {
|
|
54
|
+
config,
|
|
55
|
+
context,
|
|
56
|
+
},
|
|
57
|
+
}),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
28
60
|
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
29
61
|
return {
|
|
30
62
|
schemeId: "smithy.api#noAuth",
|
|
31
63
|
};
|
|
32
64
|
}
|
|
33
|
-
|
|
65
|
+
const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
|
|
66
|
+
const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
|
|
67
|
+
const endpoint = defaultEndpointResolver(authParameters);
|
|
68
|
+
const authSchemes = endpoint.properties?.authSchemes;
|
|
69
|
+
if (!authSchemes) {
|
|
70
|
+
return defaultHttpAuthSchemeResolver(authParameters);
|
|
71
|
+
}
|
|
72
|
+
const options = [];
|
|
73
|
+
for (const scheme of authSchemes) {
|
|
74
|
+
const { name: resolvedName, properties = {}, ...rest } = scheme;
|
|
75
|
+
const name = resolvedName.toLowerCase();
|
|
76
|
+
if (resolvedName !== name) {
|
|
77
|
+
console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name}'`);
|
|
78
|
+
}
|
|
79
|
+
let schemeId;
|
|
80
|
+
if (name === "sigv4a") {
|
|
81
|
+
schemeId = "aws.auth#sigv4a";
|
|
82
|
+
const sigv4Present = authSchemes.find((s) => {
|
|
83
|
+
const name = s.name.toLowerCase();
|
|
84
|
+
return name !== "sigv4a" && name.startsWith("sigv4");
|
|
85
|
+
});
|
|
86
|
+
if (SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
else if (name.startsWith("sigv4")) {
|
|
91
|
+
schemeId = "aws.auth#sigv4";
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`);
|
|
95
|
+
}
|
|
96
|
+
const createOption = createHttpAuthOptionFunctions[schemeId];
|
|
97
|
+
if (!createOption) {
|
|
98
|
+
throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`);
|
|
99
|
+
}
|
|
100
|
+
const option = createOption(authParameters);
|
|
101
|
+
option.schemeId = schemeId;
|
|
102
|
+
option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties };
|
|
103
|
+
options.push(option);
|
|
104
|
+
}
|
|
105
|
+
return options;
|
|
106
|
+
};
|
|
107
|
+
return endpointRuleSetHttpAuthSchemeProvider;
|
|
108
|
+
};
|
|
109
|
+
const _defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
|
34
110
|
const options = [];
|
|
35
111
|
switch (authParameters.operation) {
|
|
36
112
|
case "AssumeRoleWithWebIdentity": {
|
|
37
113
|
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
114
|
+
options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
|
|
38
115
|
break;
|
|
39
116
|
}
|
|
40
117
|
default: {
|
|
41
118
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
119
|
+
options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
|
|
42
120
|
}
|
|
43
121
|
}
|
|
44
122
|
return options;
|
|
45
123
|
};
|
|
124
|
+
export const defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver, _defaultSTSHttpAuthSchemeProvider, {
|
|
125
|
+
"aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
|
|
126
|
+
"aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
|
|
127
|
+
"smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption,
|
|
128
|
+
});
|
|
46
129
|
export const resolveStsAuthConfig = (input) => Object.assign(input, {
|
|
47
130
|
stsClientCtor: STSClient,
|
|
48
131
|
});
|
|
49
132
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
50
133
|
const config_0 = resolveStsAuthConfig(config);
|
|
51
134
|
const config_1 = resolveAwsSdkSigV4Config(config_0);
|
|
52
|
-
|
|
135
|
+
const config_2 = resolveAwsSdkSigV4AConfig(config_1);
|
|
136
|
+
return Object.assign(config_2, {
|
|
53
137
|
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
54
138
|
});
|
|
55
139
|
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
|
|
2
|
+
const q = "ref";
|
|
3
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "us-east-1", i = "sigv4", j = "sts", k = "https://sts.{Region}.{PartitionResult#dnsSuffix}", l = { [q]: "Endpoint" }, m = { [q]: "Region" }, n = { [q]: d }, o = {}, p = [m];
|
|
4
|
+
const _data = {
|
|
5
|
+
conditions: [
|
|
6
|
+
[c, [l]],
|
|
7
|
+
[c, p],
|
|
8
|
+
["aws.partition", p, d],
|
|
9
|
+
[e, [{ [q]: "UseFIPS" }, b]],
|
|
10
|
+
[e, [{ [q]: "UseDualStack" }, b]],
|
|
11
|
+
[f, [m, "aws-global"]],
|
|
12
|
+
[e, [{ [q]: "UseGlobalEndpoint" }, b]],
|
|
13
|
+
[f, [m, "eu-central-1"]],
|
|
14
|
+
[e, [{ fn: g, argv: [n, "supportsDualStack"] }, b]],
|
|
15
|
+
[e, [{ fn: g, argv: [n, "supportsFIPS"] }, b]],
|
|
16
|
+
[f, [m, "ap-south-1"]],
|
|
17
|
+
[f, [m, "eu-north-1"]],
|
|
18
|
+
[f, [m, "eu-west-1"]],
|
|
19
|
+
[f, [m, "eu-west-2"]],
|
|
20
|
+
[f, [m, "eu-west-3"]],
|
|
21
|
+
[f, [m, "sa-east-1"]],
|
|
22
|
+
[f, [m, h]],
|
|
23
|
+
[f, [m, "us-east-2"]],
|
|
24
|
+
[f, [m, "us-west-2"]],
|
|
25
|
+
[f, [m, "us-west-1"]],
|
|
26
|
+
[f, [m, "ca-central-1"]],
|
|
27
|
+
[f, [m, "ap-southeast-1"]],
|
|
28
|
+
[f, [m, "ap-northeast-1"]],
|
|
29
|
+
[f, [m, "ap-southeast-2"]],
|
|
30
|
+
[f, [{ fn: g, argv: [n, "name"] }, "aws-us-gov"]],
|
|
31
|
+
],
|
|
32
|
+
results: [
|
|
33
|
+
[a],
|
|
34
|
+
["https://sts.amazonaws.com", { authSchemes: [{ name: i, signingName: j, signingRegion: h }] }],
|
|
35
|
+
[k, { authSchemes: [{ name: i, signingName: j, signingRegion: "{Region}" }] }],
|
|
36
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
37
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
38
|
+
[l, o],
|
|
39
|
+
["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
|
|
40
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
41
|
+
["https://sts.{Region}.amazonaws.com", o],
|
|
42
|
+
["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o],
|
|
43
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
44
|
+
["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
|
|
45
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
46
|
+
[k, o],
|
|
47
|
+
[a, "Invalid Configuration: Missing Region"],
|
|
48
|
+
],
|
|
49
|
+
};
|
|
50
|
+
const root = 2;
|
|
51
|
+
const r = 100_000_000;
|
|
52
|
+
const nodes = new Int32Array([
|
|
53
|
+
-1,
|
|
54
|
+
1,
|
|
55
|
+
-1,
|
|
56
|
+
0,
|
|
57
|
+
30,
|
|
58
|
+
3,
|
|
59
|
+
1,
|
|
60
|
+
4,
|
|
61
|
+
r + 14,
|
|
62
|
+
2,
|
|
63
|
+
5,
|
|
64
|
+
r + 14,
|
|
65
|
+
3,
|
|
66
|
+
25,
|
|
67
|
+
6,
|
|
68
|
+
4,
|
|
69
|
+
24,
|
|
70
|
+
7,
|
|
71
|
+
5,
|
|
72
|
+
r + 1,
|
|
73
|
+
8,
|
|
74
|
+
6,
|
|
75
|
+
9,
|
|
76
|
+
r + 13,
|
|
77
|
+
7,
|
|
78
|
+
r + 1,
|
|
79
|
+
10,
|
|
80
|
+
10,
|
|
81
|
+
r + 1,
|
|
82
|
+
11,
|
|
83
|
+
11,
|
|
84
|
+
r + 1,
|
|
85
|
+
12,
|
|
86
|
+
12,
|
|
87
|
+
r + 1,
|
|
88
|
+
13,
|
|
89
|
+
13,
|
|
90
|
+
r + 1,
|
|
91
|
+
14,
|
|
92
|
+
14,
|
|
93
|
+
r + 1,
|
|
94
|
+
15,
|
|
95
|
+
15,
|
|
96
|
+
r + 1,
|
|
97
|
+
16,
|
|
98
|
+
16,
|
|
99
|
+
r + 1,
|
|
100
|
+
17,
|
|
101
|
+
17,
|
|
102
|
+
r + 1,
|
|
103
|
+
18,
|
|
104
|
+
18,
|
|
105
|
+
r + 1,
|
|
106
|
+
19,
|
|
107
|
+
19,
|
|
108
|
+
r + 1,
|
|
109
|
+
20,
|
|
110
|
+
20,
|
|
111
|
+
r + 1,
|
|
112
|
+
21,
|
|
113
|
+
21,
|
|
114
|
+
r + 1,
|
|
115
|
+
22,
|
|
116
|
+
22,
|
|
117
|
+
r + 1,
|
|
118
|
+
23,
|
|
119
|
+
23,
|
|
120
|
+
r + 1,
|
|
121
|
+
r + 2,
|
|
122
|
+
8,
|
|
123
|
+
r + 11,
|
|
124
|
+
r + 12,
|
|
125
|
+
4,
|
|
126
|
+
28,
|
|
127
|
+
26,
|
|
128
|
+
9,
|
|
129
|
+
27,
|
|
130
|
+
r + 10,
|
|
131
|
+
24,
|
|
132
|
+
r + 8,
|
|
133
|
+
r + 9,
|
|
134
|
+
8,
|
|
135
|
+
29,
|
|
136
|
+
r + 7,
|
|
137
|
+
9,
|
|
138
|
+
r + 6,
|
|
139
|
+
r + 7,
|
|
140
|
+
3,
|
|
141
|
+
r + 3,
|
|
142
|
+
31,
|
|
143
|
+
4,
|
|
144
|
+
r + 4,
|
|
145
|
+
r + 5,
|
|
146
|
+
]);
|
|
147
|
+
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
-
import { customEndpointFunctions,
|
|
3
|
-
import {
|
|
2
|
+
import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/util-endpoints";
|
|
3
|
+
import { bdd } from "./bdd";
|
|
4
4
|
const cache = new EndpointCache({
|
|
5
5
|
size: 50,
|
|
6
6
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"],
|
|
7
7
|
});
|
|
8
8
|
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
-
return cache.get(endpointParams, () =>
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
10
|
endpointParams: endpointParams,
|
|
11
11
|
logger: context.logger,
|
|
12
12
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../../../package.json";
|
|
2
2
|
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core/client";
|
|
3
|
-
import { AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
|
|
3
|
+
import { AwsSdkSigV4ASigner, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS, } from "@aws-sdk/core/httpAuthSchemes";
|
|
4
4
|
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
|
|
5
5
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
6
|
import { NoAuthSigner } from "@smithy/core";
|
|
@@ -39,6 +39,11 @@ export const getRuntimeConfig = (config) => {
|
|
|
39
39
|
(async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()),
|
|
40
40
|
signer: new AwsSdkSigV4Signer(),
|
|
41
41
|
},
|
|
42
|
+
{
|
|
43
|
+
schemeId: "aws.auth#sigv4a",
|
|
44
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
|
|
45
|
+
signer: new AwsSdkSigV4ASigner(),
|
|
46
|
+
},
|
|
42
47
|
{
|
|
43
48
|
schemeId: "smithy.api#noAuth",
|
|
44
49
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
@@ -55,6 +60,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
55
60
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
56
61
|
}, config),
|
|
57
62
|
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
63
|
+
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
|
|
58
64
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
59
65
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
60
66
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
1
|
+
import { AwsSdkSigV4ASigner, AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsQueryProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
|
|
3
4
|
import { NoAuthSigner } from "@smithy/core";
|
|
4
5
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
5
6
|
import { parseUrl } from "@smithy/url-parser";
|
|
@@ -23,6 +24,11 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
24
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
24
25
|
signer: new AwsSdkSigV4Signer(),
|
|
25
26
|
},
|
|
27
|
+
{
|
|
28
|
+
schemeId: "aws.auth#sigv4a",
|
|
29
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
|
|
30
|
+
signer: new AwsSdkSigV4ASigner(),
|
|
31
|
+
},
|
|
26
32
|
{
|
|
27
33
|
schemeId: "smithy.api#noAuth",
|
|
28
34
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
@@ -39,6 +45,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
39
45
|
serviceTarget: "AWSSecurityTokenServiceV20110615",
|
|
40
46
|
},
|
|
41
47
|
serviceId: config?.serviceId ?? "STS",
|
|
48
|
+
signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
|
|
42
49
|
urlParser: config?.urlParser ?? parseUrl,
|
|
43
50
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
44
51
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import type { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
1
|
+
import type { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import type { Client, HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
-
import {
|
|
3
|
+
import type { EndpointParameters } from "../endpoint/EndpointParameters";
|
|
4
|
+
import type { STSClientResolvedConfig } from "../STSClient";
|
|
4
5
|
/**
|
|
5
6
|
* @internal
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
interface _STSHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
9
|
+
region?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export interface STSHttpAuthSchemeParameters extends _STSHttpAuthSchemeParameters, EndpointParameters {
|
|
8
15
|
region?: string;
|
|
9
16
|
}
|
|
10
17
|
/**
|
|
@@ -15,7 +22,7 @@ export interface STSHttpAuthSchemeParametersProvider extends HttpAuthSchemeParam
|
|
|
15
22
|
/**
|
|
16
23
|
* @internal
|
|
17
24
|
*/
|
|
18
|
-
export declare const defaultSTSHttpAuthSchemeParametersProvider:
|
|
25
|
+
export declare const defaultSTSHttpAuthSchemeParametersProvider: STSHttpAuthSchemeParametersProvider;
|
|
19
26
|
/**
|
|
20
27
|
* @internal
|
|
21
28
|
*/
|
|
@@ -38,7 +45,7 @@ export declare const resolveStsAuthConfig: <T>(input: T & StsAuthInputConfig) =>
|
|
|
38
45
|
/**
|
|
39
46
|
* @public
|
|
40
47
|
*/
|
|
41
|
-
export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AwsSdkSigV4AuthInputConfig {
|
|
48
|
+
export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AAuthInputConfig {
|
|
42
49
|
/**
|
|
43
50
|
* A comma-separated list of case-sensitive auth scheme names.
|
|
44
51
|
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
@@ -60,7 +67,7 @@ export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AwsSdkSig
|
|
|
60
67
|
/**
|
|
61
68
|
* @internal
|
|
62
69
|
*/
|
|
63
|
-
export interface HttpAuthSchemeResolvedConfig extends StsAuthResolvedConfig, AwsSdkSigV4AuthResolvedConfig {
|
|
70
|
+
export interface HttpAuthSchemeResolvedConfig extends StsAuthResolvedConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4AAuthResolvedConfig {
|
|
64
71
|
/**
|
|
65
72
|
* A comma-separated list of case-sensitive auth scheme names.
|
|
66
73
|
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
@@ -82,4 +89,5 @@ export interface HttpAuthSchemeResolvedConfig extends StsAuthResolvedConfig, Aws
|
|
|
82
89
|
/**
|
|
83
90
|
* @internal
|
|
84
91
|
*/
|
|
85
|
-
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
92
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved & AwsSdkSigV4APreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
93
|
+
export {};
|
package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
38
38
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
39
39
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
40
40
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
41
|
-
endpointProvider: (
|
|
41
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
42
42
|
logger?: import("@smithy/types").Logger;
|
|
43
43
|
}) => import("@smithy/types").EndpointV2;
|
|
44
44
|
tls?: boolean;
|
|
@@ -59,6 +59,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
59
59
|
signingEscapePath?: boolean;
|
|
60
60
|
systemClockOffset?: number;
|
|
61
61
|
signingRegion?: string;
|
|
62
|
-
signerConstructor
|
|
62
|
+
signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
|
|
63
|
+
sigv4aSigningRegionSet?: string[] | undefined | import("@smithy/types").Provider<string[] | undefined>;
|
|
63
64
|
useGlobalEndpoint?: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
|
|
64
65
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AwsSdkSigV4ASigner } from "@aws-sdk/core/httpAuthSchemes";
|
|
1
2
|
import { NoAuthSigner } from "@smithy/core";
|
|
2
3
|
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
3
4
|
import type { IdentityProviderConfig } from "@smithy/types";
|
|
@@ -11,16 +12,21 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
11
12
|
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
12
13
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
13
14
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
14
|
-
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | {
|
|
15
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
16
|
+
schemeId: string;
|
|
17
|
+
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
18
|
+
signer: AwsSdkSigV4ASigner;
|
|
19
|
+
} | {
|
|
15
20
|
schemeId: string;
|
|
16
21
|
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
|
17
22
|
signer: NoAuthSigner;
|
|
18
|
-
}[];
|
|
23
|
+
})[];
|
|
19
24
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
20
25
|
region: string | import("@smithy/types").Provider<string>;
|
|
21
26
|
requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
|
|
22
27
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
23
28
|
sha256: import("@smithy/types").HashConstructor;
|
|
29
|
+
sigv4aSigningRegionSet: string[] | import("@smithy/types").Provider<string[] | undefined>;
|
|
24
30
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
25
31
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
26
32
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
@@ -46,7 +52,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
46
52
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
47
53
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
48
54
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
49
|
-
endpointProvider: (
|
|
55
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
50
56
|
logger?: import("@smithy/types").Logger;
|
|
51
57
|
}) => import("@smithy/types").EndpointV2;
|
|
52
58
|
tls?: boolean;
|
|
@@ -57,6 +63,6 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
57
63
|
signingEscapePath?: boolean;
|
|
58
64
|
systemClockOffset?: number;
|
|
59
65
|
signingRegion?: string;
|
|
60
|
-
signerConstructor
|
|
66
|
+
signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
|
|
61
67
|
useGlobalEndpoint?: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
|
|
62
68
|
};
|
package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
37
37
|
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
38
38
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
39
39
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
40
|
-
endpointProvider: (
|
|
40
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
41
41
|
logger?: import("@smithy/types").Logger;
|
|
42
42
|
}) => import("@smithy/types").EndpointV2;
|
|
43
43
|
tls?: boolean;
|
|
@@ -58,6 +58,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
58
58
|
signingEscapePath?: boolean;
|
|
59
59
|
systemClockOffset?: number;
|
|
60
60
|
signingRegion?: string;
|
|
61
|
-
signerConstructor
|
|
61
|
+
signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
|
|
62
|
+
sigv4aSigningRegionSet?: string[] | undefined | import("@smithy/types").Provider<string[] | undefined>;
|
|
62
63
|
useGlobalEndpoint?: boolean | undefined | import("@smithy/types").Provider<boolean | undefined>;
|
|
63
64
|
};
|
package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsQueryProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
|
|
3
4
|
import { NoAuthSigner } from "@smithy/core";
|
|
4
5
|
import type { IdentityProviderConfig } from "@smithy/types";
|
|
5
6
|
import type { STSClientConfig } from "./STSClient";
|
|
@@ -11,7 +12,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
11
12
|
base64Decoder: import("@smithy/types").Decoder;
|
|
12
13
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
13
14
|
disableHostPrefix: boolean;
|
|
14
|
-
endpointProvider: (
|
|
15
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
15
16
|
logger?: import("@smithy/types").Logger;
|
|
16
17
|
}) => import("@smithy/types").EndpointV2;
|
|
17
18
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
@@ -32,6 +33,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
32
33
|
defaultNamespace?: string;
|
|
33
34
|
};
|
|
34
35
|
serviceId: string;
|
|
36
|
+
signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof SignatureV4MultiRegion;
|
|
35
37
|
urlParser: import("@smithy/types").UrlParser;
|
|
36
38
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
37
39
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AwsSdkSigV4AAuthInputConfig,
|
|
3
|
+
AwsSdkSigV4AAuthResolvedConfig,
|
|
4
|
+
AwsSdkSigV4APreviouslyResolved,
|
|
2
5
|
AwsSdkSigV4AuthInputConfig,
|
|
3
6
|
AwsSdkSigV4AuthResolvedConfig,
|
|
4
7
|
AwsSdkSigV4PreviouslyResolved,
|
|
@@ -12,8 +15,14 @@ import {
|
|
|
12
15
|
HttpAuthSchemeProvider,
|
|
13
16
|
Provider,
|
|
14
17
|
} from "@smithy/types";
|
|
18
|
+
import { EndpointParameters } from "../endpoint/EndpointParameters";
|
|
15
19
|
import { STSClientResolvedConfig } from "../STSClient";
|
|
16
|
-
|
|
20
|
+
interface _STSHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
21
|
+
region?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface STSHttpAuthSchemeParameters
|
|
24
|
+
extends _STSHttpAuthSchemeParameters,
|
|
25
|
+
EndpointParameters {
|
|
17
26
|
region?: string;
|
|
18
27
|
}
|
|
19
28
|
export interface STSHttpAuthSchemeParametersProvider
|
|
@@ -23,11 +32,7 @@ export interface STSHttpAuthSchemeParametersProvider
|
|
|
23
32
|
STSHttpAuthSchemeParameters,
|
|
24
33
|
object
|
|
25
34
|
> {}
|
|
26
|
-
export declare const defaultSTSHttpAuthSchemeParametersProvider:
|
|
27
|
-
config: STSClientResolvedConfig,
|
|
28
|
-
context: HandlerExecutionContext,
|
|
29
|
-
input: object
|
|
30
|
-
) => Promise<STSHttpAuthSchemeParameters>;
|
|
35
|
+
export declare const defaultSTSHttpAuthSchemeParametersProvider: STSHttpAuthSchemeParametersProvider;
|
|
31
36
|
export interface STSHttpAuthSchemeProvider
|
|
32
37
|
extends HttpAuthSchemeProvider<STSHttpAuthSchemeParameters> {}
|
|
33
38
|
export declare const defaultSTSHttpAuthSchemeProvider: STSHttpAuthSchemeProvider;
|
|
@@ -40,18 +45,24 @@ export declare const resolveStsAuthConfig: <T>(
|
|
|
40
45
|
) => T & StsAuthResolvedConfig;
|
|
41
46
|
export interface HttpAuthSchemeInputConfig
|
|
42
47
|
extends StsAuthInputConfig,
|
|
43
|
-
AwsSdkSigV4AuthInputConfig
|
|
48
|
+
AwsSdkSigV4AuthInputConfig,
|
|
49
|
+
AwsSdkSigV4AAuthInputConfig {
|
|
44
50
|
authSchemePreference?: string[] | Provider<string[]>;
|
|
45
51
|
httpAuthSchemes?: HttpAuthScheme[];
|
|
46
52
|
httpAuthSchemeProvider?: STSHttpAuthSchemeProvider;
|
|
47
53
|
}
|
|
48
54
|
export interface HttpAuthSchemeResolvedConfig
|
|
49
55
|
extends StsAuthResolvedConfig,
|
|
50
|
-
AwsSdkSigV4AuthResolvedConfig
|
|
56
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
57
|
+
AwsSdkSigV4AAuthResolvedConfig {
|
|
51
58
|
readonly authSchemePreference: Provider<string[]>;
|
|
52
59
|
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
53
60
|
readonly httpAuthSchemeProvider: STSHttpAuthSchemeProvider;
|
|
54
61
|
}
|
|
55
62
|
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
56
|
-
config: T &
|
|
63
|
+
config: T &
|
|
64
|
+
HttpAuthSchemeInputConfig &
|
|
65
|
+
AwsSdkSigV4PreviouslyResolved &
|
|
66
|
+
AwsSdkSigV4APreviouslyResolved
|
|
57
67
|
) => T & HttpAuthSchemeResolvedConfig;
|
|
68
|
+
export {};
|