@aws-sdk/client-sts 3.489.0 → 3.495.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist-cjs/STS.js +1 -27
  2. package/dist-cjs/STSClient.js +8 -8
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -1
  4. package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +1 -29
  5. package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +1 -28
  6. package/dist-cjs/commands/GetAccessKeyInfoCommand.js +1 -28
  7. package/dist-cjs/commands/GetCallerIdentityCommand.js +1 -28
  8. package/dist-cjs/commands/GetFederationTokenCommand.js +1 -29
  9. package/dist-cjs/commands/GetSessionTokenCommand.js +1 -29
  10. package/dist-cjs/commands/index.js +1 -11
  11. package/dist-cjs/defaultRoleAssumers.js +1 -28
  12. package/dist-cjs/extensionConfiguration.js +1 -2
  13. package/dist-cjs/index.js +254 -11
  14. package/dist-cjs/models/index.js +1 -4
  15. package/dist-cjs/runtimeConfig.js +1 -1
  16. package/dist-cjs/runtimeConfig.shared.js +1 -1
  17. package/dist-es/STSClient.js +8 -8
  18. package/dist-es/auth/httpAuthSchemeProvider.js +2 -2
  19. package/dist-es/runtimeConfig.js +2 -2
  20. package/dist-es/runtimeConfig.shared.js +2 -2
  21. package/dist-types/STSClient.d.ts +2 -2
  22. package/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
  23. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  24. package/dist-types/runtimeConfig.native.d.ts +1 -1
  25. package/dist-types/runtimeConfig.shared.d.ts +2 -2
  26. package/dist-types/ts3.4/STSClient.d.ts +2 -2
  27. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +6 -6
  28. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  29. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  30. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
  31. package/package.json +39 -39
package/dist-cjs/STS.js CHANGED
@@ -1,27 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.STS = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- const AssumeRoleCommand_1 = require("./commands/AssumeRoleCommand");
6
- const AssumeRoleWithSAMLCommand_1 = require("./commands/AssumeRoleWithSAMLCommand");
7
- const AssumeRoleWithWebIdentityCommand_1 = require("./commands/AssumeRoleWithWebIdentityCommand");
8
- const DecodeAuthorizationMessageCommand_1 = require("./commands/DecodeAuthorizationMessageCommand");
9
- const GetAccessKeyInfoCommand_1 = require("./commands/GetAccessKeyInfoCommand");
10
- const GetCallerIdentityCommand_1 = require("./commands/GetCallerIdentityCommand");
11
- const GetFederationTokenCommand_1 = require("./commands/GetFederationTokenCommand");
12
- const GetSessionTokenCommand_1 = require("./commands/GetSessionTokenCommand");
13
- const STSClient_1 = require("./STSClient");
14
- const commands = {
15
- AssumeRoleCommand: AssumeRoleCommand_1.AssumeRoleCommand,
16
- AssumeRoleWithSAMLCommand: AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand,
17
- AssumeRoleWithWebIdentityCommand: AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand,
18
- DecodeAuthorizationMessageCommand: DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand,
19
- GetAccessKeyInfoCommand: GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand,
20
- GetCallerIdentityCommand: GetCallerIdentityCommand_1.GetCallerIdentityCommand,
21
- GetFederationTokenCommand: GetFederationTokenCommand_1.GetFederationTokenCommand,
22
- GetSessionTokenCommand: GetSessionTokenCommand_1.GetSessionTokenCommand,
23
- };
24
- class STS extends STSClient_1.STSClient {
25
- }
26
- exports.STS = STS;
27
- (0, smithy_client_1.createAggregatedClient)(commands, STS);
1
+ module.exports = require("./index.js");
@@ -17,14 +17,6 @@ const EndpointParameters_1 = require("./endpoint/EndpointParameters");
17
17
  const runtimeConfig_1 = require("./runtimeConfig");
18
18
  const runtimeExtensions_1 = require("./runtimeExtensions");
19
19
  class STSClient extends smithy_client_1.Client {
20
- getDefaultHttpAuthSchemeParametersProvider() {
21
- return httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider;
22
- }
23
- getIdentityProviderConfigProvider() {
24
- return async (config) => new core_1.DefaultIdentityProviderConfig({
25
- "aws.auth#sigv4": config.credentials,
26
- });
27
- }
28
20
  constructor(...[configuration]) {
29
21
  const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
30
22
  const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
@@ -52,5 +44,13 @@ class STSClient extends smithy_client_1.Client {
52
44
  destroy() {
53
45
  super.destroy();
54
46
  }
47
+ getDefaultHttpAuthSchemeParametersProvider() {
48
+ return httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider;
49
+ }
50
+ getIdentityProviderConfigProvider() {
51
+ return async (config) => new core_1.DefaultIdentityProviderConfig({
52
+ "aws.auth#sigv4": config.credentials,
53
+ });
54
+ }
55
55
  }
56
56
  exports.STSClient = STSClient;
@@ -59,7 +59,7 @@ const resolveStsAuthConfig = (input) => ({
59
59
  exports.resolveStsAuthConfig = resolveStsAuthConfig;
60
60
  const resolveHttpAuthSchemeConfig = (config) => {
61
61
  const config_0 = (0, exports.resolveStsAuthConfig)(config);
62
- const config_1 = (0, core_1.resolveAWSSDKSigV4Config)(config_0);
62
+ const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);
63
63
  return {
64
64
  ...config_1,
65
65
  };
@@ -1,29 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AssumeRoleWithSAMLCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const models_0_1 = require("../models/models_0");
10
- const Aws_query_1 = require("../protocols/Aws_query");
11
- class AssumeRoleWithSAMLCommand extends smithy_client_1.Command
12
- .classBuilder()
13
- .ep({
14
- ...EndpointParameters_1.commonParams,
15
- })
16
- .m(function (Command, cs, config, o) {
17
- return [
18
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
- (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
- ];
21
- })
22
- .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {})
23
- .n("STSClient", "AssumeRoleWithSAMLCommand")
24
- .f(models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog, models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog)
25
- .ser(Aws_query_1.se_AssumeRoleWithSAMLCommand)
26
- .de(Aws_query_1.de_AssumeRoleWithSAMLCommand)
27
- .build() {
28
- }
29
- exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand;
1
+ module.exports = require("../index.js");
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DecodeAuthorizationMessageCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const Aws_query_1 = require("../protocols/Aws_query");
10
- class DecodeAuthorizationMessageCommand extends smithy_client_1.Command
11
- .classBuilder()
12
- .ep({
13
- ...EndpointParameters_1.commonParams,
14
- })
15
- .m(function (Command, cs, config, o) {
16
- return [
17
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
- (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
- ];
20
- })
21
- .s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {})
22
- .n("STSClient", "DecodeAuthorizationMessageCommand")
23
- .f(void 0, void 0)
24
- .ser(Aws_query_1.se_DecodeAuthorizationMessageCommand)
25
- .de(Aws_query_1.de_DecodeAuthorizationMessageCommand)
26
- .build() {
27
- }
28
- exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand;
1
+ module.exports = require("../index.js");
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetAccessKeyInfoCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const Aws_query_1 = require("../protocols/Aws_query");
10
- class GetAccessKeyInfoCommand extends smithy_client_1.Command
11
- .classBuilder()
12
- .ep({
13
- ...EndpointParameters_1.commonParams,
14
- })
15
- .m(function (Command, cs, config, o) {
16
- return [
17
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
- (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
- ];
20
- })
21
- .s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {})
22
- .n("STSClient", "GetAccessKeyInfoCommand")
23
- .f(void 0, void 0)
24
- .ser(Aws_query_1.se_GetAccessKeyInfoCommand)
25
- .de(Aws_query_1.de_GetAccessKeyInfoCommand)
26
- .build() {
27
- }
28
- exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand;
1
+ module.exports = require("../index.js");
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetCallerIdentityCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const Aws_query_1 = require("../protocols/Aws_query");
10
- class GetCallerIdentityCommand extends smithy_client_1.Command
11
- .classBuilder()
12
- .ep({
13
- ...EndpointParameters_1.commonParams,
14
- })
15
- .m(function (Command, cs, config, o) {
16
- return [
17
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
- (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
- ];
20
- })
21
- .s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {})
22
- .n("STSClient", "GetCallerIdentityCommand")
23
- .f(void 0, void 0)
24
- .ser(Aws_query_1.se_GetCallerIdentityCommand)
25
- .de(Aws_query_1.de_GetCallerIdentityCommand)
26
- .build() {
27
- }
28
- exports.GetCallerIdentityCommand = GetCallerIdentityCommand;
1
+ module.exports = require("../index.js");
@@ -1,29 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetFederationTokenCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const models_0_1 = require("../models/models_0");
10
- const Aws_query_1 = require("../protocols/Aws_query");
11
- class GetFederationTokenCommand extends smithy_client_1.Command
12
- .classBuilder()
13
- .ep({
14
- ...EndpointParameters_1.commonParams,
15
- })
16
- .m(function (Command, cs, config, o) {
17
- return [
18
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
- (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
- ];
21
- })
22
- .s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {})
23
- .n("STSClient", "GetFederationTokenCommand")
24
- .f(void 0, models_0_1.GetFederationTokenResponseFilterSensitiveLog)
25
- .ser(Aws_query_1.se_GetFederationTokenCommand)
26
- .de(Aws_query_1.de_GetFederationTokenCommand)
27
- .build() {
28
- }
29
- exports.GetFederationTokenCommand = GetFederationTokenCommand;
1
+ module.exports = require("../index.js");
@@ -1,29 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetSessionTokenCommand = exports.$Command = void 0;
4
- const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
- const models_0_1 = require("../models/models_0");
10
- const Aws_query_1 = require("../protocols/Aws_query");
11
- class GetSessionTokenCommand extends smithy_client_1.Command
12
- .classBuilder()
13
- .ep({
14
- ...EndpointParameters_1.commonParams,
15
- })
16
- .m(function (Command, cs, config, o) {
17
- return [
18
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
- (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
- ];
21
- })
22
- .s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {})
23
- .n("STSClient", "GetSessionTokenCommand")
24
- .f(void 0, models_0_1.GetSessionTokenResponseFilterSensitiveLog)
25
- .ser(Aws_query_1.se_GetSessionTokenCommand)
26
- .de(Aws_query_1.de_GetSessionTokenCommand)
27
- .build() {
28
- }
29
- exports.GetSessionTokenCommand = GetSessionTokenCommand;
1
+ module.exports = require("../index.js");
@@ -1,11 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./AssumeRoleCommand"), exports);
5
- tslib_1.__exportStar(require("./AssumeRoleWithSAMLCommand"), exports);
6
- tslib_1.__exportStar(require("./AssumeRoleWithWebIdentityCommand"), exports);
7
- tslib_1.__exportStar(require("./DecodeAuthorizationMessageCommand"), exports);
8
- tslib_1.__exportStar(require("./GetAccessKeyInfoCommand"), exports);
9
- tslib_1.__exportStar(require("./GetCallerIdentityCommand"), exports);
10
- tslib_1.__exportStar(require("./GetFederationTokenCommand"), exports);
11
- tslib_1.__exportStar(require("./GetSessionTokenCommand"), exports);
1
+ module.exports = require("../index.js");
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0;
4
- const defaultStsRoleAssumers_1 = require("./defaultStsRoleAssumers");
5
- const STSClient_1 = require("./STSClient");
6
- const getCustomizableStsClientCtor = (baseCtor, customizations) => {
7
- if (!customizations)
8
- return baseCtor;
9
- else
10
- return class CustomizableSTSClient extends baseCtor {
11
- constructor(config) {
12
- super(config);
13
- for (const customization of customizations) {
14
- this.middlewareStack.use(customization);
15
- }
16
- }
17
- };
18
- };
19
- const getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins));
20
- exports.getDefaultRoleAssumer = getDefaultRoleAssumer;
21
- const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins));
22
- exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
23
- const decorateDefaultCredentialProvider = (provider) => (input) => provider({
24
- roleAssumer: (0, exports.getDefaultRoleAssumer)(input),
25
- roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input),
26
- ...input,
27
- });
28
- exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
1
+ module.exports = require("./index.js");
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ module.exports = require("./index.js");
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,255 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.STSServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./STSClient"), exports);
6
- tslib_1.__exportStar(require("./STS"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./models"), exports);
9
- require("@aws-sdk/util-endpoints");
10
- tslib_1.__exportStar(require("./defaultRoleAssumers"), exports);
11
- var STSServiceException_1 = require("./models/STSServiceException");
12
- Object.defineProperty(exports, "STSServiceException", { enumerable: true, get: function () { return STSServiceException_1.STSServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+
22
+ // src/index.ts
23
+ var src_exports = {};
24
+ __export(src_exports, {
25
+ AssumeRoleWithSAMLCommand: () => AssumeRoleWithSAMLCommand,
26
+ ClientInputEndpointParameters: () => import_EndpointParameters7.ClientInputEndpointParameters,
27
+ DecodeAuthorizationMessageCommand: () => DecodeAuthorizationMessageCommand,
28
+ GetAccessKeyInfoCommand: () => GetAccessKeyInfoCommand,
29
+ GetCallerIdentityCommand: () => GetCallerIdentityCommand,
30
+ GetFederationTokenCommand: () => GetFederationTokenCommand,
31
+ GetSessionTokenCommand: () => GetSessionTokenCommand,
32
+ RuntimeExtension: () => import_runtimeExtensions.RuntimeExtension,
33
+ STS: () => STS,
34
+ STSServiceException: () => import_STSServiceException.STSServiceException,
35
+ decorateDefaultCredentialProvider: () => decorateDefaultCredentialProvider,
36
+ getDefaultRoleAssumer: () => getDefaultRoleAssumer,
37
+ getDefaultRoleAssumerWithWebIdentity: () => getDefaultRoleAssumerWithWebIdentity
38
+ });
39
+ module.exports = __toCommonJS(src_exports);
40
+ __reExport(src_exports, require("././STSClient"), module.exports);
41
+
42
+ // src/STS.ts
43
+
44
+ var import_AssumeRoleCommand = require("./commands/AssumeRoleCommand");
45
+
46
+ // src/commands/AssumeRoleWithSAMLCommand.ts
47
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
48
+ var import_middleware_serde = require("@smithy/middleware-serde");
49
+ var import_smithy_client = require("@smithy/smithy-client");
50
+ var import_types = require("@smithy/types");
51
+ var import_EndpointParameters = require("./endpoint/EndpointParameters");
52
+ var import_models_0 = require("./models/models_0");
53
+ var import_Aws_query = require("./protocols/Aws_query");
54
+ var _AssumeRoleWithSAMLCommand = class _AssumeRoleWithSAMLCommand extends import_smithy_client.Command.classBuilder().ep({
55
+ ...import_EndpointParameters.commonParams
56
+ }).m(function(Command, cs, config, o) {
57
+ return [
58
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
59
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
60
+ ];
61
+ }).s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {}).n("STSClient", "AssumeRoleWithSAMLCommand").f(import_models_0.AssumeRoleWithSAMLRequestFilterSensitiveLog, import_models_0.AssumeRoleWithSAMLResponseFilterSensitiveLog).ser(import_Aws_query.se_AssumeRoleWithSAMLCommand).de(import_Aws_query.de_AssumeRoleWithSAMLCommand).build() {
62
+ };
63
+ __name(_AssumeRoleWithSAMLCommand, "AssumeRoleWithSAMLCommand");
64
+ var AssumeRoleWithSAMLCommand = _AssumeRoleWithSAMLCommand;
65
+
66
+ // src/STS.ts
67
+ var import_AssumeRoleWithWebIdentityCommand = require("./commands/AssumeRoleWithWebIdentityCommand");
68
+
69
+ // src/commands/DecodeAuthorizationMessageCommand.ts
70
+
71
+
72
+
73
+
74
+ var import_EndpointParameters2 = require("./endpoint/EndpointParameters");
75
+ var import_Aws_query2 = require("./protocols/Aws_query");
76
+ var _DecodeAuthorizationMessageCommand = class _DecodeAuthorizationMessageCommand extends import_smithy_client.Command.classBuilder().ep({
77
+ ...import_EndpointParameters2.commonParams
78
+ }).m(function(Command, cs, config, o) {
79
+ return [
80
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
81
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
82
+ ];
83
+ }).s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {}).n("STSClient", "DecodeAuthorizationMessageCommand").f(void 0, void 0).ser(import_Aws_query2.se_DecodeAuthorizationMessageCommand).de(import_Aws_query2.de_DecodeAuthorizationMessageCommand).build() {
84
+ };
85
+ __name(_DecodeAuthorizationMessageCommand, "DecodeAuthorizationMessageCommand");
86
+ var DecodeAuthorizationMessageCommand = _DecodeAuthorizationMessageCommand;
87
+
88
+ // src/commands/GetAccessKeyInfoCommand.ts
89
+
90
+
91
+
92
+
93
+ var import_EndpointParameters3 = require("./endpoint/EndpointParameters");
94
+ var import_Aws_query3 = require("./protocols/Aws_query");
95
+ var _GetAccessKeyInfoCommand = class _GetAccessKeyInfoCommand extends import_smithy_client.Command.classBuilder().ep({
96
+ ...import_EndpointParameters3.commonParams
97
+ }).m(function(Command, cs, config, o) {
98
+ return [
99
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
100
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
101
+ ];
102
+ }).s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {}).n("STSClient", "GetAccessKeyInfoCommand").f(void 0, void 0).ser(import_Aws_query3.se_GetAccessKeyInfoCommand).de(import_Aws_query3.de_GetAccessKeyInfoCommand).build() {
103
+ };
104
+ __name(_GetAccessKeyInfoCommand, "GetAccessKeyInfoCommand");
105
+ var GetAccessKeyInfoCommand = _GetAccessKeyInfoCommand;
106
+
107
+ // src/commands/GetCallerIdentityCommand.ts
108
+
109
+
110
+
111
+
112
+ var import_EndpointParameters4 = require("./endpoint/EndpointParameters");
113
+ var import_Aws_query4 = require("./protocols/Aws_query");
114
+ var _GetCallerIdentityCommand = class _GetCallerIdentityCommand extends import_smithy_client.Command.classBuilder().ep({
115
+ ...import_EndpointParameters4.commonParams
116
+ }).m(function(Command, cs, config, o) {
117
+ return [
118
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
119
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
120
+ ];
121
+ }).s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {}).n("STSClient", "GetCallerIdentityCommand").f(void 0, void 0).ser(import_Aws_query4.se_GetCallerIdentityCommand).de(import_Aws_query4.de_GetCallerIdentityCommand).build() {
122
+ };
123
+ __name(_GetCallerIdentityCommand, "GetCallerIdentityCommand");
124
+ var GetCallerIdentityCommand = _GetCallerIdentityCommand;
125
+
126
+ // src/commands/GetFederationTokenCommand.ts
127
+
128
+
129
+
130
+
131
+ var import_EndpointParameters5 = require("./endpoint/EndpointParameters");
132
+ var import_models_02 = require("./models/models_0");
133
+ var import_Aws_query5 = require("./protocols/Aws_query");
134
+ var _GetFederationTokenCommand = class _GetFederationTokenCommand extends import_smithy_client.Command.classBuilder().ep({
135
+ ...import_EndpointParameters5.commonParams
136
+ }).m(function(Command, cs, config, o) {
137
+ return [
138
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
139
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
140
+ ];
141
+ }).s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {}).n("STSClient", "GetFederationTokenCommand").f(void 0, import_models_02.GetFederationTokenResponseFilterSensitiveLog).ser(import_Aws_query5.se_GetFederationTokenCommand).de(import_Aws_query5.de_GetFederationTokenCommand).build() {
142
+ };
143
+ __name(_GetFederationTokenCommand, "GetFederationTokenCommand");
144
+ var GetFederationTokenCommand = _GetFederationTokenCommand;
145
+
146
+ // src/commands/GetSessionTokenCommand.ts
147
+
148
+
149
+
150
+
151
+ var import_EndpointParameters6 = require("./endpoint/EndpointParameters");
152
+ var import_models_03 = require("./models/models_0");
153
+ var import_Aws_query6 = require("./protocols/Aws_query");
154
+ var _GetSessionTokenCommand = class _GetSessionTokenCommand extends import_smithy_client.Command.classBuilder().ep({
155
+ ...import_EndpointParameters6.commonParams
156
+ }).m(function(Command, cs, config, o) {
157
+ return [
158
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
159
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
160
+ ];
161
+ }).s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {}).n("STSClient", "GetSessionTokenCommand").f(void 0, import_models_03.GetSessionTokenResponseFilterSensitiveLog).ser(import_Aws_query6.se_GetSessionTokenCommand).de(import_Aws_query6.de_GetSessionTokenCommand).build() {
162
+ };
163
+ __name(_GetSessionTokenCommand, "GetSessionTokenCommand");
164
+ var GetSessionTokenCommand = _GetSessionTokenCommand;
165
+
166
+ // src/STS.ts
167
+ var import_STSClient = require("././STSClient");
168
+ var commands = {
169
+ AssumeRoleCommand: import_AssumeRoleCommand.AssumeRoleCommand,
170
+ AssumeRoleWithSAMLCommand,
171
+ AssumeRoleWithWebIdentityCommand: import_AssumeRoleWithWebIdentityCommand.AssumeRoleWithWebIdentityCommand,
172
+ DecodeAuthorizationMessageCommand,
173
+ GetAccessKeyInfoCommand,
174
+ GetCallerIdentityCommand,
175
+ GetFederationTokenCommand,
176
+ GetSessionTokenCommand
177
+ };
178
+ var _STS = class _STS extends import_STSClient.STSClient {
179
+ };
180
+ __name(_STS, "STS");
181
+ var STS = _STS;
182
+ (0, import_smithy_client.createAggregatedClient)(commands, STS);
183
+
184
+ // src/index.ts
185
+ var import_EndpointParameters7 = require("./endpoint/EndpointParameters");
186
+ var import_runtimeExtensions = require("././runtimeExtensions");
187
+
188
+ // src/commands/index.ts
189
+ var commands_exports = {};
190
+ __export(commands_exports, {
191
+ AssumeRoleWithSAMLCommand: () => AssumeRoleWithSAMLCommand,
192
+ DecodeAuthorizationMessageCommand: () => DecodeAuthorizationMessageCommand,
193
+ GetAccessKeyInfoCommand: () => GetAccessKeyInfoCommand,
194
+ GetCallerIdentityCommand: () => GetCallerIdentityCommand,
195
+ GetFederationTokenCommand: () => GetFederationTokenCommand,
196
+ GetSessionTokenCommand: () => GetSessionTokenCommand
197
+ });
198
+ __reExport(commands_exports, require("./commands/AssumeRoleCommand"));
199
+ __reExport(commands_exports, require("./commands/AssumeRoleWithWebIdentityCommand"));
200
+
201
+ // src/index.ts
202
+ __reExport(src_exports, commands_exports, module.exports);
203
+
204
+ // src/models/index.ts
205
+ var models_exports = {};
206
+ __reExport(models_exports, require("./models/models_0"));
207
+
208
+ // src/index.ts
209
+ __reExport(src_exports, models_exports, module.exports);
210
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
211
+
212
+ // src/defaultRoleAssumers.ts
213
+ var import_defaultStsRoleAssumers = require("././defaultStsRoleAssumers");
214
+ var import_STSClient2 = require("././STSClient");
215
+ var getCustomizableStsClientCtor = /* @__PURE__ */ __name((baseCtor, customizations) => {
216
+ var _a;
217
+ if (!customizations)
218
+ return baseCtor;
219
+ else
220
+ return _a = class extends baseCtor {
221
+ constructor(config) {
222
+ super(config);
223
+ for (const customization of customizations) {
224
+ this.middlewareStack.use(customization);
225
+ }
226
+ }
227
+ }, __name(_a, "CustomizableSTSClient"), _a;
228
+ }, "getCustomizableStsClientCtor");
229
+ var getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => (0, import_defaultStsRoleAssumers.getDefaultRoleAssumer)(stsOptions, getCustomizableStsClientCtor(import_STSClient2.STSClient, stsPlugins)), "getDefaultRoleAssumer");
230
+ var getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ __name((stsOptions = {}, stsPlugins) => (0, import_defaultStsRoleAssumers.getDefaultRoleAssumerWithWebIdentity)(stsOptions, getCustomizableStsClientCtor(import_STSClient2.STSClient, stsPlugins)), "getDefaultRoleAssumerWithWebIdentity");
231
+ var decorateDefaultCredentialProvider = /* @__PURE__ */ __name((provider) => (input) => provider({
232
+ roleAssumer: getDefaultRoleAssumer(input),
233
+ roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input),
234
+ ...input
235
+ }), "decorateDefaultCredentialProvider");
236
+
237
+ // src/index.ts
238
+ var import_STSServiceException = require("./models/STSServiceException");
239
+ // Annotate the CommonJS export names for ESM import in node:
240
+ 0 && (module.exports = {
241
+ AssumeRoleWithSAMLCommand,
242
+ ClientInputEndpointParameters,
243
+ DecodeAuthorizationMessageCommand,
244
+ GetAccessKeyInfoCommand,
245
+ GetCallerIdentityCommand,
246
+ GetFederationTokenCommand,
247
+ GetSessionTokenCommand,
248
+ RuntimeExtension,
249
+ STS,
250
+ STSServiceException,
251
+ decorateDefaultCredentialProvider,
252
+ getDefaultRoleAssumer,
253
+ getDefaultRoleAssumerWithWebIdentity,
254
+ ...require("././STSClient")
255
+ });
@@ -1,4 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./models_0"), exports);
1
+ module.exports = require("../index.js");
@@ -39,7 +39,7 @@ const getRuntimeConfig = (config) => {
39
39
  schemeId: "aws.auth#sigv4",
40
40
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
41
41
  (async (idProps) => await (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider)(idProps?.__config || {})()),
42
- signer: new core_1.AWSSDKSigV4Signer(),
42
+ signer: new core_1.AwsSdkSigV4Signer(),
43
43
  },
44
44
  {
45
45
  schemeId: "smithy.api#noAuth",
@@ -22,7 +22,7 @@ const getRuntimeConfig = (config) => {
22
22
  {
23
23
  schemeId: "aws.auth#sigv4",
24
24
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
25
- signer: new core_1.AWSSDKSigV4Signer(),
25
+ signer: new core_1.AwsSdkSigV4Signer(),
26
26
  },
27
27
  {
28
28
  schemeId: "smithy.api#noAuth",
@@ -14,14 +14,6 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class STSClient extends __Client {
17
- getDefaultHttpAuthSchemeParametersProvider() {
18
- return defaultSTSHttpAuthSchemeParametersProvider;
19
- }
20
- getIdentityProviderConfigProvider() {
21
- return async (config) => new DefaultIdentityProviderConfig({
22
- "aws.auth#sigv4": config.credentials,
23
- });
24
- }
25
17
  constructor(...[configuration]) {
26
18
  const _config_0 = __getRuntimeConfig(configuration || {});
27
19
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -49,4 +41,12 @@ export class STSClient extends __Client {
49
41
  destroy() {
50
42
  super.destroy();
51
43
  }
44
+ getDefaultHttpAuthSchemeParametersProvider() {
45
+ return defaultSTSHttpAuthSchemeParametersProvider;
46
+ }
47
+ getIdentityProviderConfigProvider() {
48
+ return async (config) => new DefaultIdentityProviderConfig({
49
+ "aws.auth#sigv4": config.credentials,
50
+ });
51
+ }
52
52
  }
@@ -1,4 +1,4 @@
1
- import { resolveAWSSDKSigV4Config, } from "@aws-sdk/core";
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
2
2
  import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
3
  import { STSClient } from "../STSClient";
4
4
  export const defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
@@ -53,7 +53,7 @@ export const resolveStsAuthConfig = (input) => ({
53
53
  });
54
54
  export const resolveHttpAuthSchemeConfig = (config) => {
55
55
  const config_0 = resolveStsAuthConfig(config);
56
- const config_1 = resolveAWSSDKSigV4Config(config_0);
56
+ const config_1 = resolveAwsSdkSigV4Config(config_0);
57
57
  return {
58
58
  ...config_1,
59
59
  };
@@ -1,6 +1,6 @@
1
1
  import packageInfo from "../package.json";
2
2
  import { decorateDefaultCredentialProvider } from "./defaultStsRoleAssumers";
3
- import { AWSSDKSigV4Signer, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
3
+ import { AwsSdkSigV4Signer, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
4
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
5
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
6
6
  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";
@@ -35,7 +35,7 @@ export const getRuntimeConfig = (config) => {
35
35
  schemeId: "aws.auth#sigv4",
36
36
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
37
37
  (async (idProps) => await decorateDefaultCredentialProvider(credentialDefaultProvider)(idProps?.__config || {})()),
38
- signer: new AWSSDKSigV4Signer(),
38
+ signer: new AwsSdkSigV4Signer(),
39
39
  },
40
40
  {
41
41
  schemeId: "smithy.api#noAuth",
@@ -1,4 +1,4 @@
1
- import { AWSSDKSigV4Signer } from "@aws-sdk/core";
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
2
  import { NoAuthSigner } from "@smithy/core";
3
3
  import { NoOpLogger } from "@smithy/smithy-client";
4
4
  import { parseUrl } from "@smithy/url-parser";
@@ -19,7 +19,7 @@ export const getRuntimeConfig = (config) => {
19
19
  {
20
20
  schemeId: "aws.auth#sigv4",
21
21
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
22
- signer: new AWSSDKSigV4Signer(),
22
+ signer: new AwsSdkSigV4Signer(),
23
23
  },
24
24
  {
25
25
  schemeId: "smithy.api#noAuth",
@@ -170,8 +170,6 @@ export declare class STSClient extends __Client<__HttpHandlerOptions, ServiceInp
170
170
  * The resolved configuration of STSClient class. This is resolved and normalized from the {@link STSClientConfig | constructor configuration interface}.
171
171
  */
172
172
  readonly config: STSClientResolvedConfig;
173
- private getDefaultHttpAuthSchemeParametersProvider;
174
- private getIdentityProviderConfigProvider;
175
173
  constructor(...[configuration]: __CheckOptionalClientConfig<STSClientConfig>);
176
174
  /**
177
175
  * Destroy underlying resources, like sockets. It's usually not necessary to do this.
@@ -179,4 +177,6 @@ export declare class STSClient extends __Client<__HttpHandlerOptions, ServiceInp
179
177
  * Otherwise, sockets might stay open for quite a long time before the server terminates them.
180
178
  */
181
179
  destroy(): void;
180
+ private getDefaultHttpAuthSchemeParametersProvider;
181
+ private getIdentityProviderConfigProvider;
182
182
  }
@@ -1,4 +1,4 @@
1
- import { AWSSDKSigV4AuthInputConfig, AWSSDKSigV4AuthResolvedConfig, AWSSDKSigV4PreviouslyResolved } from "@aws-sdk/core";
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
2
  import { Client, HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
3
3
  import { STSClientResolvedConfig } from "../STSClient";
4
4
  /**
@@ -38,7 +38,7 @@ export declare const resolveStsAuthConfig: <T>(input: T & StsAuthInputConfig) =>
38
38
  /**
39
39
  * @internal
40
40
  */
41
- export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AWSSDKSigV4AuthInputConfig {
41
+ export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AwsSdkSigV4AuthInputConfig {
42
42
  /**
43
43
  * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
44
44
  * @internal
@@ -53,7 +53,7 @@ export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AWSSDKSig
53
53
  /**
54
54
  * @internal
55
55
  */
56
- export interface HttpAuthSchemeResolvedConfig extends StsAuthResolvedConfig, AWSSDKSigV4AuthResolvedConfig {
56
+ export interface HttpAuthSchemeResolvedConfig extends StsAuthResolvedConfig, AwsSdkSigV4AuthResolvedConfig {
57
57
  /**
58
58
  * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
59
59
  * @internal
@@ -68,4 +68,4 @@ export interface HttpAuthSchemeResolvedConfig extends StsAuthResolvedConfig, AWS
68
68
  /**
69
69
  * @internal
70
70
  */
71
- export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AWSSDKSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
71
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -40,7 +40,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
40
40
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
41
41
  schemeId: string;
42
42
  identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
43
- signer: import("@aws-sdk/core").AWSSDKSigV4Signer;
43
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
44
44
  } | {
45
45
  schemeId: string;
46
46
  identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
@@ -39,7 +39,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
39
39
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
40
40
  schemeId: string;
41
41
  identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
42
- signer: import("@aws-sdk/core").AWSSDKSigV4Signer;
42
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
43
43
  } | {
44
44
  schemeId: string;
45
45
  identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
@@ -1,4 +1,4 @@
1
- import { AWSSDKSigV4Signer } from "@aws-sdk/core";
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
2
  import { NoAuthSigner } from "@smithy/core";
3
3
  import { IdentityProviderConfig } from "@smithy/types";
4
4
  import { STSClientConfig } from "./STSClient";
@@ -18,7 +18,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
18
18
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
19
19
  schemeId: string;
20
20
  identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
21
- signer: AWSSDKSigV4Signer;
21
+ signer: AwsSdkSigV4Signer;
22
22
  } | {
23
23
  schemeId: string;
24
24
  identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
@@ -158,8 +158,8 @@ export declare class STSClient extends __Client<
158
158
  STSClientResolvedConfig
159
159
  > {
160
160
  readonly config: STSClientResolvedConfig;
161
- private getDefaultHttpAuthSchemeParametersProvider;
162
- private getIdentityProviderConfigProvider;
163
161
  constructor(...[configuration]: __CheckOptionalClientConfig<STSClientConfig>);
164
162
  destroy(): void;
163
+ private getDefaultHttpAuthSchemeParametersProvider;
164
+ private getIdentityProviderConfigProvider;
165
165
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
- AWSSDKSigV4AuthInputConfig,
3
- AWSSDKSigV4AuthResolvedConfig,
4
- AWSSDKSigV4PreviouslyResolved,
2
+ AwsSdkSigV4AuthInputConfig,
3
+ AwsSdkSigV4AuthResolvedConfig,
4
+ AwsSdkSigV4PreviouslyResolved,
5
5
  } from "@aws-sdk/core";
6
6
  import {
7
7
  Client,
@@ -39,16 +39,16 @@ export declare const resolveStsAuthConfig: <T>(
39
39
  ) => T & StsAuthResolvedConfig;
40
40
  export interface HttpAuthSchemeInputConfig
41
41
  extends StsAuthInputConfig,
42
- AWSSDKSigV4AuthInputConfig {
42
+ AwsSdkSigV4AuthInputConfig {
43
43
  httpAuthSchemes?: HttpAuthScheme[];
44
44
  httpAuthSchemeProvider?: STSHttpAuthSchemeProvider;
45
45
  }
46
46
  export interface HttpAuthSchemeResolvedConfig
47
47
  extends StsAuthResolvedConfig,
48
- AWSSDKSigV4AuthResolvedConfig {
48
+ AwsSdkSigV4AuthResolvedConfig {
49
49
  readonly httpAuthSchemes: HttpAuthScheme[];
50
50
  readonly httpAuthSchemeProvider: STSHttpAuthSchemeProvider;
51
51
  }
52
52
  export declare const resolveHttpAuthSchemeConfig: <T>(
53
- config: T & HttpAuthSchemeInputConfig & AWSSDKSigV4PreviouslyResolved
53
+ config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
54
54
  ) => T & HttpAuthSchemeResolvedConfig;
@@ -87,7 +87,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
87
87
  import("@smithy/types").Identity
88
88
  >
89
89
  | undefined;
90
- signer: import("@aws-sdk/core").AWSSDKSigV4Signer;
90
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
91
91
  }
92
92
  | {
93
93
  schemeId: string;
@@ -78,7 +78,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
78
78
  import("@smithy/types").Identity
79
79
  >
80
80
  | undefined;
81
- signer: import("@aws-sdk/core").AWSSDKSigV4Signer;
81
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
82
82
  }
83
83
  | {
84
84
  schemeId: string;
@@ -1,4 +1,4 @@
1
- import { AWSSDKSigV4Signer } from "@aws-sdk/core";
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
2
  import { NoAuthSigner } from "@smithy/core";
3
3
  import { IdentityProviderConfig } from "@smithy/types";
4
4
  import { STSClientConfig } from "./STSClient";
@@ -29,7 +29,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
29
29
  import("@smithy/types").Identity
30
30
  >
31
31
  | undefined;
32
- signer: AWSSDKSigV4Signer;
32
+ signer: AwsSdkSigV4Signer;
33
33
  }
34
34
  | {
35
35
  schemeId: string;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sts",
3
3
  "description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
4
- "version": "3.489.0",
4
+ "version": "3.495.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
- "build:cjs": "tsc -p tsconfig.cjs.json",
7
+ "build:cjs": "node ../../scripts/compilation/inline client-sts",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
10
10
  "build:types": "tsc -p tsconfig.types.json",
@@ -22,47 +22,47 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "3.0.0",
24
24
  "@aws-crypto/sha256-js": "3.0.0",
25
- "@aws-sdk/core": "3.485.0",
26
- "@aws-sdk/credential-provider-node": "3.489.0",
27
- "@aws-sdk/middleware-host-header": "3.489.0",
28
- "@aws-sdk/middleware-logger": "3.489.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.489.0",
30
- "@aws-sdk/middleware-user-agent": "3.489.0",
31
- "@aws-sdk/region-config-resolver": "3.489.0",
32
- "@aws-sdk/types": "3.489.0",
33
- "@aws-sdk/util-endpoints": "3.489.0",
34
- "@aws-sdk/util-user-agent-browser": "3.489.0",
35
- "@aws-sdk/util-user-agent-node": "3.489.0",
36
- "@smithy/config-resolver": "^2.0.23",
37
- "@smithy/core": "^1.2.2",
38
- "@smithy/fetch-http-handler": "^2.3.2",
39
- "@smithy/hash-node": "^2.0.18",
40
- "@smithy/invalid-dependency": "^2.0.16",
41
- "@smithy/middleware-content-length": "^2.0.18",
42
- "@smithy/middleware-endpoint": "^2.3.0",
43
- "@smithy/middleware-retry": "^2.0.26",
44
- "@smithy/middleware-serde": "^2.0.16",
45
- "@smithy/middleware-stack": "^2.0.10",
46
- "@smithy/node-config-provider": "^2.1.9",
47
- "@smithy/node-http-handler": "^2.2.2",
48
- "@smithy/protocol-http": "^3.0.12",
49
- "@smithy/smithy-client": "^2.2.1",
50
- "@smithy/types": "^2.8.0",
51
- "@smithy/url-parser": "^2.0.16",
52
- "@smithy/util-base64": "^2.0.1",
53
- "@smithy/util-body-length-browser": "^2.0.1",
54
- "@smithy/util-body-length-node": "^2.1.0",
55
- "@smithy/util-defaults-mode-browser": "^2.0.24",
56
- "@smithy/util-defaults-mode-node": "^2.0.32",
57
- "@smithy/util-endpoints": "^1.0.8",
58
- "@smithy/util-middleware": "^2.0.9",
59
- "@smithy/util-retry": "^2.0.9",
60
- "@smithy/util-utf8": "^2.0.2",
25
+ "@aws-sdk/core": "3.495.0",
26
+ "@aws-sdk/credential-provider-node": "3.495.0",
27
+ "@aws-sdk/middleware-host-header": "3.495.0",
28
+ "@aws-sdk/middleware-logger": "3.495.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.495.0",
30
+ "@aws-sdk/middleware-user-agent": "3.495.0",
31
+ "@aws-sdk/region-config-resolver": "3.495.0",
32
+ "@aws-sdk/types": "3.495.0",
33
+ "@aws-sdk/util-endpoints": "3.495.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.495.0",
35
+ "@aws-sdk/util-user-agent-node": "3.495.0",
36
+ "@smithy/config-resolver": "^2.1.0",
37
+ "@smithy/core": "^1.3.0",
38
+ "@smithy/fetch-http-handler": "^2.4.0",
39
+ "@smithy/hash-node": "^2.1.0",
40
+ "@smithy/invalid-dependency": "^2.1.0",
41
+ "@smithy/middleware-content-length": "^2.1.0",
42
+ "@smithy/middleware-endpoint": "^2.4.0",
43
+ "@smithy/middleware-retry": "^2.1.0",
44
+ "@smithy/middleware-serde": "^2.1.0",
45
+ "@smithy/middleware-stack": "^2.1.0",
46
+ "@smithy/node-config-provider": "^2.2.0",
47
+ "@smithy/node-http-handler": "^2.3.0",
48
+ "@smithy/protocol-http": "^3.1.0",
49
+ "@smithy/smithy-client": "^2.3.0",
50
+ "@smithy/types": "^2.9.0",
51
+ "@smithy/url-parser": "^2.1.0",
52
+ "@smithy/util-base64": "^2.1.0",
53
+ "@smithy/util-body-length-browser": "^2.1.0",
54
+ "@smithy/util-body-length-node": "^2.2.0",
55
+ "@smithy/util-defaults-mode-browser": "^2.1.0",
56
+ "@smithy/util-defaults-mode-node": "^2.1.0",
57
+ "@smithy/util-endpoints": "^1.1.0",
58
+ "@smithy/util-middleware": "^2.1.0",
59
+ "@smithy/util-retry": "^2.1.0",
60
+ "@smithy/util-utf8": "^2.1.0",
61
61
  "fast-xml-parser": "4.2.5",
62
62
  "tslib": "^2.5.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@smithy/service-client-documentation-generator": "^2.0.0",
65
+ "@smithy/service-client-documentation-generator": "^2.1.0",
66
66
  "@tsconfig/node14": "1.0.3",
67
67
  "@types/node": "^14.14.31",
68
68
  "concurrently": "7.0.0",