@aws-sdk/client-sts 3.1018.0 → 3.1020.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = void 0;
4
- const core_1 = require("@aws-sdk/core");
4
+ const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
5
  const util_middleware_1 = require("@smithy/util-middleware");
6
6
  const STSClient_1 = require("../STSClient");
7
7
  const defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
@@ -61,7 +61,7 @@ const resolveStsAuthConfig = (input) => Object.assign(input, {
61
61
  exports.resolveStsAuthConfig = resolveStsAuthConfig;
62
62
  const resolveHttpAuthSchemeConfig = (config) => {
63
63
  const config_0 = (0, exports.resolveStsAuthConfig)(config);
64
- const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0);
64
+ const config_1 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config_0);
65
65
  return Object.assign(config_1, {
66
66
  authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
67
67
  });
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const core_1 = require("@aws-sdk/core");
6
+ const client_1 = require("@aws-sdk/core/client");
7
+ const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
7
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
8
9
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
9
10
  const config_resolver_1 = require("@smithy/config-resolver");
10
- const core_2 = require("@smithy/core");
11
+ const core_1 = require("@smithy/core");
11
12
  const hash_node_1 = require("@smithy/hash-node");
12
13
  const middleware_retry_1 = require("@smithy/middleware-retry");
13
14
  const node_config_provider_1 = require("@smithy/node-config-provider");
@@ -22,7 +23,7 @@ const getRuntimeConfig = (config) => {
22
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
25
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
- (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
26
+ (0, client_1.emitWarningIfUnsupportedVersion)(process.version);
26
27
  const loaderConfig = {
27
28
  profile: config?.profile,
28
29
  logger: clientSharedValues.logger,
@@ -32,7 +33,7 @@ const getRuntimeConfig = (config) => {
32
33
  ...config,
33
34
  runtime: "node",
34
35
  defaultsMode,
35
- authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
36
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
36
37
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
37
38
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
38
39
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
@@ -40,12 +41,12 @@ const getRuntimeConfig = (config) => {
40
41
  {
41
42
  schemeId: "aws.auth#sigv4",
42
43
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await (0, credential_provider_node_1.defaultProvider)(idProps?.__config || {})()),
43
- signer: new core_1.AwsSdkSigV4Signer(),
44
+ signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
44
45
  },
45
46
  {
46
47
  schemeId: "smithy.api#noAuth",
47
48
  identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
48
- signer: new core_2.NoAuthSigner(),
49
+ signer: new core_1.NoAuthSigner(),
49
50
  },
50
51
  ],
51
52
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
- const core_1 = require("@aws-sdk/core");
4
+ const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
5
  const protocols_1 = require("@aws-sdk/core/protocols");
6
- const core_2 = require("@smithy/core");
6
+ const core_1 = require("@smithy/core");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const url_parser_1 = require("@smithy/url-parser");
9
9
  const util_base64_1 = require("@smithy/util-base64");
@@ -24,12 +24,12 @@ const getRuntimeConfig = (config) => {
24
24
  {
25
25
  schemeId: "aws.auth#sigv4",
26
26
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
27
- signer: new core_1.AwsSdkSigV4Signer(),
27
+ signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
28
28
  },
29
29
  {
30
30
  schemeId: "smithy.api#noAuth",
31
31
  identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
32
- signer: new core_2.NoAuthSigner(),
32
+ signer: new core_1.NoAuthSigner(),
33
33
  },
34
34
  ],
35
35
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
package/dist-es/STS.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
- import { AssumeRoleCommand } from "./commands/AssumeRoleCommand";
2
+ import { AssumeRoleCommand, } from "./commands/AssumeRoleCommand";
3
3
  import { AssumeRoleWithSAMLCommand, } from "./commands/AssumeRoleWithSAMLCommand";
4
4
  import { AssumeRoleWithWebIdentityCommand, } from "./commands/AssumeRoleWithWebIdentityCommand";
5
- import { AssumeRootCommand } from "./commands/AssumeRootCommand";
5
+ import { AssumeRootCommand, } from "./commands/AssumeRootCommand";
6
6
  import { DecodeAuthorizationMessageCommand, } from "./commands/DecodeAuthorizationMessageCommand";
7
7
  import { GetAccessKeyInfoCommand, } from "./commands/GetAccessKeyInfoCommand";
8
8
  import { GetCallerIdentityCommand, } from "./commands/GetCallerIdentityCommand";
@@ -1,4 +1,4 @@
1
- import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
3
  import { STSClient } from "../STSClient";
4
4
  export const defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
@@ -1,5 +1,6 @@
1
1
  import packageInfo from "../package.json";
2
- import { AwsSdkSigV4Signer, emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, } from "@aws-sdk/core";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core/client";
3
+ import { AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
3
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
5
  import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
5
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";
@@ -1,4 +1,4 @@
1
- import { AwsSdkSigV4Signer } from "@aws-sdk/core";
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsQueryProtocol } from "@aws-sdk/core/protocols";
3
3
  import { NoAuthSigner } from "@smithy/core";
4
4
  import { NoOpLogger } from "@smithy/smithy-client";
@@ -1,15 +1,15 @@
1
1
  import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
- import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
3
- import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand";
4
- import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "./commands/AssumeRoleWithWebIdentityCommand";
5
- import { AssumeRootCommandInput, AssumeRootCommandOutput } from "./commands/AssumeRootCommand";
6
- import { DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput } from "./commands/DecodeAuthorizationMessageCommand";
7
- import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "./commands/GetAccessKeyInfoCommand";
8
- import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand";
9
- import { GetDelegatedAccessTokenCommandInput, GetDelegatedAccessTokenCommandOutput } from "./commands/GetDelegatedAccessTokenCommand";
10
- import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
11
- import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
12
- import { GetWebIdentityTokenCommandInput, GetWebIdentityTokenCommandOutput } from "./commands/GetWebIdentityTokenCommand";
2
+ import { type AssumeRoleCommandInput, type AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
3
+ import { type AssumeRoleWithSAMLCommandInput, type AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand";
4
+ import { type AssumeRoleWithWebIdentityCommandInput, type AssumeRoleWithWebIdentityCommandOutput } from "./commands/AssumeRoleWithWebIdentityCommand";
5
+ import { type AssumeRootCommandInput, type AssumeRootCommandOutput } from "./commands/AssumeRootCommand";
6
+ import { type DecodeAuthorizationMessageCommandInput, type DecodeAuthorizationMessageCommandOutput } from "./commands/DecodeAuthorizationMessageCommand";
7
+ import { type GetAccessKeyInfoCommandInput, type GetAccessKeyInfoCommandOutput } from "./commands/GetAccessKeyInfoCommand";
8
+ import { type GetCallerIdentityCommandInput, type GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand";
9
+ import { type GetDelegatedAccessTokenCommandInput, type GetDelegatedAccessTokenCommandOutput } from "./commands/GetDelegatedAccessTokenCommand";
10
+ import { type GetFederationTokenCommandInput, type GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
11
+ import { type GetSessionTokenCommandInput, type GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
12
+ import { type GetWebIdentityTokenCommandInput, type GetWebIdentityTokenCommandOutput } from "./commands/GetWebIdentityTokenCommand";
13
13
  import { STSClient } from "./STSClient";
14
14
  export interface STS {
15
15
  /**
@@ -5,20 +5,20 @@ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/m
5
5
  import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
6
6
  import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
8
- import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
8
+ import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
- import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
11
- import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand";
12
- import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "./commands/AssumeRoleWithWebIdentityCommand";
13
- import { AssumeRootCommandInput, AssumeRootCommandOutput } from "./commands/AssumeRootCommand";
14
- import { DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput } from "./commands/DecodeAuthorizationMessageCommand";
15
- import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "./commands/GetAccessKeyInfoCommand";
16
- import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand";
17
- import { GetDelegatedAccessTokenCommandInput, GetDelegatedAccessTokenCommandOutput } from "./commands/GetDelegatedAccessTokenCommand";
18
- import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
19
- import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
20
- import { GetWebIdentityTokenCommandInput, GetWebIdentityTokenCommandOutput } from "./commands/GetWebIdentityTokenCommand";
21
- import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
10
+ import type { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
11
+ import type { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand";
12
+ import type { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "./commands/AssumeRoleWithWebIdentityCommand";
13
+ import type { AssumeRootCommandInput, AssumeRootCommandOutput } from "./commands/AssumeRootCommand";
14
+ import type { DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput } from "./commands/DecodeAuthorizationMessageCommand";
15
+ import type { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "./commands/GetAccessKeyInfoCommand";
16
+ import type { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand";
17
+ import type { GetDelegatedAccessTokenCommandInput, GetDelegatedAccessTokenCommandOutput } from "./commands/GetDelegatedAccessTokenCommand";
18
+ import type { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
19
+ import type { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
20
+ import type { GetWebIdentityTokenCommandInput, GetWebIdentityTokenCommandOutput } from "./commands/GetWebIdentityTokenCommand";
21
+ import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
22
22
  import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
23
23
  export { __Client };
24
24
  /**
@@ -127,7 +127,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
127
127
  * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
128
128
  * @internal
129
129
  */
130
- defaultUserAgentProvider?: Provider<__UserAgent>;
130
+ defaultUserAgentProvider?: __Provider<__UserAgent>;
131
131
  /**
132
132
  * Default credentials provider; Not available in browser runtime.
133
133
  * @deprecated
@@ -1,4 +1,4 @@
1
- import { type HttpAuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
1
+ import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
2
  import type { STSHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
3
  /**
4
4
  * @internal
@@ -1,5 +1,5 @@
1
- import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
- import { type HandlerExecutionContext, type HttpAuthScheme, type HttpAuthSchemeParameters, type HttpAuthSchemeParametersProvider, type HttpAuthSchemeProvider, type Provider, Client } from "@smithy/types";
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
2
+ import type { Client, HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
3
  import { type STSClientResolvedConfig } from "../STSClient";
4
4
  /**
5
5
  * @internal
@@ -8,7 +8,7 @@
8
8
  */
9
9
  export * from "./STSClient";
10
10
  export * from "./STS";
11
- export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
11
+ export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
12
12
  export type { RuntimeExtension } from "./runtimeExtensions";
13
13
  export type { STSExtensionConfiguration } from "./extensionConfiguration";
14
14
  export * from "./commands";
@@ -18,7 +18,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
18
18
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
19
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
20
  cacheMiddleware?: boolean | undefined;
21
- protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsQueryProtocol;
21
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsQueryProtocol;
22
22
  protocolSettings: {
23
23
  defaultNamespace?: string;
24
24
  [setting: string]: unknown;
@@ -47,7 +47,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
47
47
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
48
48
  schemeId: string;
49
49
  identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
50
- signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
50
+ signer: import("@aws-sdk/core/httpAuthSchemes").AwsSdkSigV4Signer;
51
51
  } | {
52
52
  schemeId: string;
53
53
  identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
@@ -27,7 +27,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
27
27
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
28
28
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
29
29
  cacheMiddleware?: boolean | undefined;
30
- protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsQueryProtocol;
30
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsQueryProtocol;
31
31
  protocolSettings: {
32
32
  defaultNamespace?: string;
33
33
  [setting: string]: unknown;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
9
  cacheMiddleware?: boolean;
10
- protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsQueryProtocol;
10
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsQueryProtocol;
11
11
  protocolSettings: {
12
12
  defaultNamespace?: string;
13
13
  [setting: string]: unknown;
@@ -46,7 +46,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
46
46
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
47
47
  schemeId: string;
48
48
  identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
49
- signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
49
+ signer: import("@aws-sdk/core/httpAuthSchemes").AwsSdkSigV4Signer;
50
50
  } | {
51
51
  schemeId: string;
52
52
  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/httpAuthSchemes";
2
2
  import { AwsQueryProtocol } from "@aws-sdk/core/protocols";
3
3
  import { NoAuthSigner } from "@smithy/core";
4
4
  import type { IdentityProviderConfig } from "@smithy/types";
@@ -26,6 +26,7 @@ import {
26
26
  Client as __Client,
27
27
  } from "@smithy/smithy-client";
28
28
  import {
29
+ AwsCredentialIdentityProvider,
29
30
  BodyLengthCalculator as __BodyLengthCalculator,
30
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
31
32
  ChecksumConstructor as __ChecksumConstructor,
@@ -37,8 +38,6 @@ import {
37
38
  Provider as __Provider,
38
39
  StreamCollector as __StreamCollector,
39
40
  UrlParser as __UrlParser,
40
- AwsCredentialIdentityProvider,
41
- Provider,
42
41
  UserAgent as __UserAgent,
43
42
  } from "@smithy/types";
44
43
  import {
@@ -138,7 +137,7 @@ export interface ClientDefaults
138
137
  useFipsEndpoint?: boolean | __Provider<boolean>;
139
138
  region?: string | __Provider<string>;
140
139
  profile?: string;
141
- defaultUserAgentProvider?: Provider<__UserAgent>;
140
+ defaultUserAgentProvider?: __Provider<__UserAgent>;
142
141
  credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
143
142
  maxAttempts?: number | __Provider<number>;
144
143
  retryMode?: string | __Provider<string>;
@@ -1,7 +1,7 @@
1
1
  import {
2
- HttpAuthScheme,
3
2
  AwsCredentialIdentity,
4
3
  AwsCredentialIdentityProvider,
4
+ HttpAuthScheme,
5
5
  } from "@smithy/types";
6
6
  import { STSHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
7
  export interface HttpAuthExtensionConfiguration {
@@ -2,15 +2,15 @@ import {
2
2
  AwsSdkSigV4AuthInputConfig,
3
3
  AwsSdkSigV4AuthResolvedConfig,
4
4
  AwsSdkSigV4PreviouslyResolved,
5
- } from "@aws-sdk/core";
5
+ } from "@aws-sdk/core/httpAuthSchemes";
6
6
  import {
7
+ Client,
7
8
  HandlerExecutionContext,
8
9
  HttpAuthScheme,
9
10
  HttpAuthSchemeParameters,
10
11
  HttpAuthSchemeParametersProvider,
11
12
  HttpAuthSchemeProvider,
12
13
  Provider,
13
- Client,
14
14
  } from "@smithy/types";
15
15
  import { STSClientResolvedConfig } from "../STSClient";
16
16
  export interface STSHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
@@ -30,7 +30,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
30
30
  protocol:
31
31
  | import("@smithy/types").ClientProtocol<any, any>
32
32
  | import("@smithy/types").ClientProtocolCtor<any, any>
33
- | typeof import("@aws-sdk/core").AwsQueryProtocol;
33
+ | typeof import("@aws-sdk/core/protocols").AwsQueryProtocol;
34
34
  protocolSettings: {
35
35
  defaultNamespace?: string;
36
36
  [setting: string]: unknown;
@@ -92,7 +92,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
92
92
  import("@smithy/types").Identity
93
93
  >
94
94
  | undefined;
95
- signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
95
+ signer: import("@aws-sdk/core/httpAuthSchemes").AwsSdkSigV4Signer;
96
96
  }
97
97
  | {
98
98
  schemeId: string;
@@ -45,7 +45,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
45
45
  protocol:
46
46
  | import("@smithy/types").ClientProtocol<any, any>
47
47
  | import("@smithy/types").ClientProtocolCtor<any, any>
48
- | typeof import("@aws-sdk/core").AwsQueryProtocol;
48
+ | typeof import("@aws-sdk/core/protocols").AwsQueryProtocol;
49
49
  protocolSettings: {
50
50
  defaultNamespace?: string;
51
51
  [setting: string]: unknown;
@@ -12,7 +12,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
12
12
  protocol:
13
13
  | import("@smithy/types").ClientProtocol<any, any>
14
14
  | import("@smithy/types").ClientProtocolCtor<any, any>
15
- | typeof import("@aws-sdk/core").AwsQueryProtocol;
15
+ | typeof import("@aws-sdk/core/protocols").AwsQueryProtocol;
16
16
  protocolSettings: {
17
17
  defaultNamespace?: string;
18
18
  [setting: string]: unknown;
@@ -96,7 +96,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
96
96
  import("@smithy/types").Identity
97
97
  >
98
98
  | undefined;
99
- signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
99
+ signer: import("@aws-sdk/core/httpAuthSchemes").AwsSdkSigV4Signer;
100
100
  }
101
101
  | {
102
102
  schemeId: string;
@@ -1,4 +1,4 @@
1
- import { AwsSdkSigV4Signer } from "@aws-sdk/core";
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsQueryProtocol } from "@aws-sdk/core/protocols";
3
3
  import { NoAuthSigner } from "@smithy/core";
4
4
  import { IdentityProviderConfig } from "@smithy/types";
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.1018.0",
4
+ "version": "3.1020.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sts",
@@ -27,38 +27,38 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "5.2.0",
29
29
  "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "^3.973.25",
31
- "@aws-sdk/credential-provider-node": "^3.972.26",
30
+ "@aws-sdk/core": "^3.973.26",
31
+ "@aws-sdk/credential-provider-node": "^3.972.28",
32
32
  "@aws-sdk/middleware-host-header": "^3.972.8",
33
33
  "@aws-sdk/middleware-logger": "^3.972.8",
34
34
  "@aws-sdk/middleware-recursion-detection": "^3.972.9",
35
- "@aws-sdk/middleware-user-agent": "^3.972.26",
35
+ "@aws-sdk/middleware-user-agent": "^3.972.27",
36
36
  "@aws-sdk/region-config-resolver": "^3.972.10",
37
37
  "@aws-sdk/types": "^3.973.6",
38
38
  "@aws-sdk/util-endpoints": "^3.996.5",
39
39
  "@aws-sdk/util-user-agent-browser": "^3.972.8",
40
- "@aws-sdk/util-user-agent-node": "^3.973.12",
40
+ "@aws-sdk/util-user-agent-node": "^3.973.13",
41
41
  "@smithy/config-resolver": "^4.4.13",
42
- "@smithy/core": "^3.23.12",
42
+ "@smithy/core": "^3.23.13",
43
43
  "@smithy/fetch-http-handler": "^5.3.15",
44
44
  "@smithy/hash-node": "^4.2.12",
45
45
  "@smithy/invalid-dependency": "^4.2.12",
46
46
  "@smithy/middleware-content-length": "^4.2.12",
47
- "@smithy/middleware-endpoint": "^4.4.27",
48
- "@smithy/middleware-retry": "^4.4.44",
49
- "@smithy/middleware-serde": "^4.2.15",
47
+ "@smithy/middleware-endpoint": "^4.4.28",
48
+ "@smithy/middleware-retry": "^4.4.45",
49
+ "@smithy/middleware-serde": "^4.2.16",
50
50
  "@smithy/middleware-stack": "^4.2.12",
51
51
  "@smithy/node-config-provider": "^4.3.12",
52
- "@smithy/node-http-handler": "^4.5.0",
52
+ "@smithy/node-http-handler": "^4.5.1",
53
53
  "@smithy/protocol-http": "^5.3.12",
54
- "@smithy/smithy-client": "^4.12.7",
54
+ "@smithy/smithy-client": "^4.12.8",
55
55
  "@smithy/types": "^4.13.1",
56
56
  "@smithy/url-parser": "^4.2.12",
57
57
  "@smithy/util-base64": "^4.3.2",
58
58
  "@smithy/util-body-length-browser": "^4.2.2",
59
59
  "@smithy/util-body-length-node": "^4.2.3",
60
- "@smithy/util-defaults-mode-browser": "^4.3.43",
61
- "@smithy/util-defaults-mode-node": "^4.2.47",
60
+ "@smithy/util-defaults-mode-browser": "^4.3.44",
61
+ "@smithy/util-defaults-mode-node": "^4.2.48",
62
62
  "@smithy/util-endpoints": "^3.3.3",
63
63
  "@smithy/util-middleware": "^4.2.12",
64
64
  "@smithy/util-retry": "^4.2.12",
@@ -66,7 +66,7 @@
66
66
  "tslib": "^2.6.2"
67
67
  },
68
68
  "devDependencies": {
69
- "@smithy/snapshot-testing": "^2.0.3",
69
+ "@smithy/snapshot-testing": "^2.0.4",
70
70
  "@tsconfig/node20": "20.1.8",
71
71
  "@types/node": "^20.14.8",
72
72
  "concurrently": "7.0.0",