@aws-sdk/client-sso-oidc 3.46.0 → 3.47.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
18
 
8
19
 
@@ -1,18 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartDeviceAuthorizationResponse = exports.StartDeviceAuthorizationRequest = exports.RegisterClientResponse = exports.RegisterClientRequest = exports.InvalidClientMetadataException = exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.CreateTokenResponse = exports.CreateTokenRequest = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0;
4
- var AccessDeniedException;
5
- (function (AccessDeniedException) {
6
- AccessDeniedException.filterSensitiveLog = (obj) => ({
7
- ...obj,
8
- });
9
- })(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
10
- var AuthorizationPendingException;
11
- (function (AuthorizationPendingException) {
12
- AuthorizationPendingException.filterSensitiveLog = (obj) => ({
13
- ...obj,
14
- });
15
- })(AuthorizationPendingException = exports.AuthorizationPendingException || (exports.AuthorizationPendingException = {}));
3
+ exports.StartDeviceAuthorizationResponse = exports.StartDeviceAuthorizationRequest = exports.RegisterClientResponse = exports.RegisterClientRequest = exports.CreateTokenResponse = exports.CreateTokenRequest = void 0;
16
4
  var CreateTokenRequest;
17
5
  (function (CreateTokenRequest) {
18
6
  CreateTokenRequest.filterSensitiveLog = (obj) => ({
@@ -25,66 +13,6 @@ var CreateTokenResponse;
25
13
  ...obj,
26
14
  });
27
15
  })(CreateTokenResponse = exports.CreateTokenResponse || (exports.CreateTokenResponse = {}));
28
- var ExpiredTokenException;
29
- (function (ExpiredTokenException) {
30
- ExpiredTokenException.filterSensitiveLog = (obj) => ({
31
- ...obj,
32
- });
33
- })(ExpiredTokenException = exports.ExpiredTokenException || (exports.ExpiredTokenException = {}));
34
- var InternalServerException;
35
- (function (InternalServerException) {
36
- InternalServerException.filterSensitiveLog = (obj) => ({
37
- ...obj,
38
- });
39
- })(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
40
- var InvalidClientException;
41
- (function (InvalidClientException) {
42
- InvalidClientException.filterSensitiveLog = (obj) => ({
43
- ...obj,
44
- });
45
- })(InvalidClientException = exports.InvalidClientException || (exports.InvalidClientException = {}));
46
- var InvalidGrantException;
47
- (function (InvalidGrantException) {
48
- InvalidGrantException.filterSensitiveLog = (obj) => ({
49
- ...obj,
50
- });
51
- })(InvalidGrantException = exports.InvalidGrantException || (exports.InvalidGrantException = {}));
52
- var InvalidRequestException;
53
- (function (InvalidRequestException) {
54
- InvalidRequestException.filterSensitiveLog = (obj) => ({
55
- ...obj,
56
- });
57
- })(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
58
- var InvalidScopeException;
59
- (function (InvalidScopeException) {
60
- InvalidScopeException.filterSensitiveLog = (obj) => ({
61
- ...obj,
62
- });
63
- })(InvalidScopeException = exports.InvalidScopeException || (exports.InvalidScopeException = {}));
64
- var SlowDownException;
65
- (function (SlowDownException) {
66
- SlowDownException.filterSensitiveLog = (obj) => ({
67
- ...obj,
68
- });
69
- })(SlowDownException = exports.SlowDownException || (exports.SlowDownException = {}));
70
- var UnauthorizedClientException;
71
- (function (UnauthorizedClientException) {
72
- UnauthorizedClientException.filterSensitiveLog = (obj) => ({
73
- ...obj,
74
- });
75
- })(UnauthorizedClientException = exports.UnauthorizedClientException || (exports.UnauthorizedClientException = {}));
76
- var UnsupportedGrantTypeException;
77
- (function (UnsupportedGrantTypeException) {
78
- UnsupportedGrantTypeException.filterSensitiveLog = (obj) => ({
79
- ...obj,
80
- });
81
- })(UnsupportedGrantTypeException = exports.UnsupportedGrantTypeException || (exports.UnsupportedGrantTypeException = {}));
82
- var InvalidClientMetadataException;
83
- (function (InvalidClientMetadataException) {
84
- InvalidClientMetadataException.filterSensitiveLog = (obj) => ({
85
- ...obj,
86
- });
87
- })(InvalidClientMetadataException = exports.InvalidClientMetadataException || (exports.InvalidClientMetadataException = {}));
88
16
  var RegisterClientRequest;
89
17
  (function (RegisterClientRequest) {
90
18
  RegisterClientRequest.filterSensitiveLog = (obj) => ({
@@ -13,21 +13,26 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
26
31
  defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
27
32
  maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
28
33
  region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : invalid_dependency_1.invalidProvider("Region is missing"),
29
- requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new fetch_http_handler_1.FetchHttpHandler(),
30
- retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
34
+ requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
35
+ retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
31
36
  sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : sha256_browser_1.Sha256,
32
37
  streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : fetch_http_handler_1.streamCollector,
33
38
  useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -13,21 +13,29 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
13
13
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
14
14
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
20
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "node",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
26
31
  defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
27
32
  maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
28
33
  region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
29
- requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new node_http_handler_1.NodeHttpHandler(),
30
- retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
34
+ requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
35
+ retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : node_config_provider_1.loadConfig({
36
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
37
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
38
+ }),
31
39
  sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : hash_node_1.Hash.bind(null, "sha256"),
32
40
  streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : node_http_handler_1.streamCollector,
33
41
  useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -1,12 +1,4 @@
1
1
  import { __assign } from "tslib";
2
- export var AccessDeniedException;
3
- (function (AccessDeniedException) {
4
- AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
- })(AccessDeniedException || (AccessDeniedException = {}));
6
- export var AuthorizationPendingException;
7
- (function (AuthorizationPendingException) {
8
- AuthorizationPendingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
9
- })(AuthorizationPendingException || (AuthorizationPendingException = {}));
10
2
  export var CreateTokenRequest;
11
3
  (function (CreateTokenRequest) {
12
4
  CreateTokenRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -15,46 +7,6 @@ export var CreateTokenResponse;
15
7
  (function (CreateTokenResponse) {
16
8
  CreateTokenResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
9
  })(CreateTokenResponse || (CreateTokenResponse = {}));
18
- export var ExpiredTokenException;
19
- (function (ExpiredTokenException) {
20
- ExpiredTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
21
- })(ExpiredTokenException || (ExpiredTokenException = {}));
22
- export var InternalServerException;
23
- (function (InternalServerException) {
24
- InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
25
- })(InternalServerException || (InternalServerException = {}));
26
- export var InvalidClientException;
27
- (function (InvalidClientException) {
28
- InvalidClientException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
- })(InvalidClientException || (InvalidClientException = {}));
30
- export var InvalidGrantException;
31
- (function (InvalidGrantException) {
32
- InvalidGrantException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
33
- })(InvalidGrantException || (InvalidGrantException = {}));
34
- export var InvalidRequestException;
35
- (function (InvalidRequestException) {
36
- InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
37
- })(InvalidRequestException || (InvalidRequestException = {}));
38
- export var InvalidScopeException;
39
- (function (InvalidScopeException) {
40
- InvalidScopeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
41
- })(InvalidScopeException || (InvalidScopeException = {}));
42
- export var SlowDownException;
43
- (function (SlowDownException) {
44
- SlowDownException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
45
- })(SlowDownException || (SlowDownException = {}));
46
- export var UnauthorizedClientException;
47
- (function (UnauthorizedClientException) {
48
- UnauthorizedClientException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
49
- })(UnauthorizedClientException || (UnauthorizedClientException = {}));
50
- export var UnsupportedGrantTypeException;
51
- (function (UnsupportedGrantTypeException) {
52
- UnsupportedGrantTypeException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
53
- })(UnsupportedGrantTypeException || (UnsupportedGrantTypeException = {}));
54
- export var InvalidClientMetadataException;
55
- (function (InvalidClientMetadataException) {
56
- InvalidClientMetadataException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
57
- })(InvalidClientMetadataException || (InvalidClientMetadataException = {}));
58
10
  export var RegisterClientRequest;
59
11
  (function (RegisterClientRequest) {
60
12
  RegisterClientRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : DEFAULT_MAX_ATTEMPTS, region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : invalidProvider("Region is missing"), requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new FetchHttpHandler(), retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : Sha256, streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : streamCollector, useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : fromUtf8, utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : DEFAULT_MAX_ATTEMPTS, region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : invalidProvider("Region is missing"), requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new RequestHandler(defaultConfigProvider), retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : Sha256, streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : streamCollector, useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : fromUtf8, utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : toUtf8 });
17
26
  };
@@ -1,17 +1,26 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
4
4
  import { Hash } from "@aws-sdk/hash-node";
5
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
5
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
6
6
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
7
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
7
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
9
9
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new NodeHttpHandler(), retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : Hash.bind(null, "sha256"), streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : streamCollector, useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : fromUtf8, utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new RequestHandler(defaultConfigProvider), retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); } })), sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : Hash.bind(null, "sha256"), streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : streamCollector, useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : fromUtf8, utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : toUtf8 });
17
26
  };
@@ -3,7 +3,7 @@ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middle
3
3
  import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
4
4
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
5
5
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
6
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
6
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
7
  import { Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
8
  import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
9
9
  import { RegisterClientCommandInput, RegisterClientCommandOutput } from "./commands/RegisterClientCommand";
@@ -105,6 +105,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
105
105
  * @internal
106
106
  */
107
107
  defaultUserAgentProvider?: Provider<__UserAgent>;
108
+ /**
109
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
110
+ */
111
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
108
112
  }
109
113
  declare type SSOOIDCClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig;
110
114
  /**
@@ -8,12 +8,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
8
8
  error?: string;
9
9
  error_description?: string;
10
10
  }
11
- export declare namespace AccessDeniedException {
12
- /**
13
- * @internal
14
- */
15
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
16
- }
17
11
  /**
18
12
  * <p>Indicates that a request to authorize a client with an access user session token is pending.</p>
19
13
  */
@@ -23,12 +17,6 @@ export interface AuthorizationPendingException extends __SmithyException, $Metad
23
17
  error?: string;
24
18
  error_description?: string;
25
19
  }
26
- export declare namespace AuthorizationPendingException {
27
- /**
28
- * @internal
29
- */
30
- const filterSensitiveLog: (obj: AuthorizationPendingException) => any;
31
- }
32
20
  export interface CreateTokenRequest {
33
21
  /**
34
22
  * <p>The unique identifier string for each client. This value should come from the persisted result of the <a>RegisterClient</a> API.</p>
@@ -112,12 +100,6 @@ export interface ExpiredTokenException extends __SmithyException, $MetadataBeare
112
100
  error?: string;
113
101
  error_description?: string;
114
102
  }
115
- export declare namespace ExpiredTokenException {
116
- /**
117
- * @internal
118
- */
119
- const filterSensitiveLog: (obj: ExpiredTokenException) => any;
120
- }
121
103
  /**
122
104
  * <p>Indicates that an error from the service occurred while trying to process a request.</p>
123
105
  */
@@ -127,12 +109,6 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
127
109
  error?: string;
128
110
  error_description?: string;
129
111
  }
130
- export declare namespace InternalServerException {
131
- /**
132
- * @internal
133
- */
134
- const filterSensitiveLog: (obj: InternalServerException) => any;
135
- }
136
112
  /**
137
113
  * <p>Indicates that the <code>clientId</code> or <code>clientSecret</code> in the request is
138
114
  * invalid. For example, this can occur when a client sends an incorrect <code>clientId</code> or
@@ -144,12 +120,6 @@ export interface InvalidClientException extends __SmithyException, $MetadataBear
144
120
  error?: string;
145
121
  error_description?: string;
146
122
  }
147
- export declare namespace InvalidClientException {
148
- /**
149
- * @internal
150
- */
151
- const filterSensitiveLog: (obj: InvalidClientException) => any;
152
- }
153
123
  /**
154
124
  * <p>Indicates that a request contains an invalid grant. This can occur if a client makes a <a>CreateToken</a> request with an invalid grant type.</p>
155
125
  */
@@ -159,12 +129,6 @@ export interface InvalidGrantException extends __SmithyException, $MetadataBeare
159
129
  error?: string;
160
130
  error_description?: string;
161
131
  }
162
- export declare namespace InvalidGrantException {
163
- /**
164
- * @internal
165
- */
166
- const filterSensitiveLog: (obj: InvalidGrantException) => any;
167
- }
168
132
  /**
169
133
  * <p>Indicates that something is wrong with the input to the request. For example, a required
170
134
  * parameter might be missing or out of range.</p>
@@ -175,12 +139,6 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
175
139
  error?: string;
176
140
  error_description?: string;
177
141
  }
178
- export declare namespace InvalidRequestException {
179
- /**
180
- * @internal
181
- */
182
- const filterSensitiveLog: (obj: InvalidRequestException) => any;
183
- }
184
142
  /**
185
143
  * <p>Indicates that the scope provided in the request is invalid.</p>
186
144
  */
@@ -190,12 +148,6 @@ export interface InvalidScopeException extends __SmithyException, $MetadataBeare
190
148
  error?: string;
191
149
  error_description?: string;
192
150
  }
193
- export declare namespace InvalidScopeException {
194
- /**
195
- * @internal
196
- */
197
- const filterSensitiveLog: (obj: InvalidScopeException) => any;
198
- }
199
151
  /**
200
152
  * <p>Indicates that the client is making the request too frequently and is more than the service can handle. </p>
201
153
  */
@@ -205,12 +157,6 @@ export interface SlowDownException extends __SmithyException, $MetadataBearer {
205
157
  error?: string;
206
158
  error_description?: string;
207
159
  }
208
- export declare namespace SlowDownException {
209
- /**
210
- * @internal
211
- */
212
- const filterSensitiveLog: (obj: SlowDownException) => any;
213
- }
214
160
  /**
215
161
  * <p>Indicates that the client is not currently authorized to make the request. This can happen
216
162
  * when a <code>clientId</code> is not issued for a public client.</p>
@@ -221,12 +167,6 @@ export interface UnauthorizedClientException extends __SmithyException, $Metadat
221
167
  error?: string;
222
168
  error_description?: string;
223
169
  }
224
- export declare namespace UnauthorizedClientException {
225
- /**
226
- * @internal
227
- */
228
- const filterSensitiveLog: (obj: UnauthorizedClientException) => any;
229
- }
230
170
  /**
231
171
  * <p>Indicates that the grant type in the request is not supported by the service.</p>
232
172
  */
@@ -236,12 +176,6 @@ export interface UnsupportedGrantTypeException extends __SmithyException, $Metad
236
176
  error?: string;
237
177
  error_description?: string;
238
178
  }
239
- export declare namespace UnsupportedGrantTypeException {
240
- /**
241
- * @internal
242
- */
243
- const filterSensitiveLog: (obj: UnsupportedGrantTypeException) => any;
244
- }
245
179
  /**
246
180
  * <p>Indicates that the client information sent in the request during registration is invalid.</p>
247
181
  */
@@ -251,12 +185,6 @@ export interface InvalidClientMetadataException extends __SmithyException, $Meta
251
185
  error?: string;
252
186
  error_description?: string;
253
187
  }
254
- export declare namespace InvalidClientMetadataException {
255
- /**
256
- * @internal
257
- */
258
- const filterSensitiveLog: (obj: InvalidClientMetadataException) => any;
259
- }
260
188
  export interface RegisterClientRequest {
261
189
  /**
262
190
  * <p>The friendly name of the client.</p>
@@ -1,17 +1,18 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { SSOOIDCClientConfig } from "./SSOOIDCClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
12
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
13
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
13
14
  region: string | import("@aws-sdk/types").Provider<any>;
14
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
15
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
15
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
16
17
  sha256: import("@aws-sdk/types").HashConstructor;
17
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,17 +1,18 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { SSOOIDCClientConfig } from "./SSOOIDCClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
12
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
13
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
13
14
  region: string | import("@aws-sdk/types").Provider<string>;
14
- requestHandler: NodeHttpHandler | (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler);
15
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
15
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
16
17
  sha256: import("@aws-sdk/types").HashConstructor;
17
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -24,6 +24,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
24
24
  region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
25
25
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
26
26
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
27
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
27
28
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
29
  tls?: boolean | undefined;
29
30
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -3,7 +3,7 @@ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middle
3
3
  import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
4
4
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
5
5
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
6
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
6
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
7
  import { Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
8
  import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
9
9
  import { RegisterClientCommandInput, RegisterClientCommandOutput } from "./commands/RegisterClientCommand";
@@ -51,6 +51,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
51
51
  regionInfoProvider?: RegionInfoProvider;
52
52
 
53
53
  defaultUserAgentProvider?: Provider<__UserAgent>;
54
+
55
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
54
56
  }
55
57
  declare type SSOOIDCClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig;
56
58
 
@@ -6,10 +6,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
6
6
  error?: string;
7
7
  error_description?: string;
8
8
  }
9
- export declare namespace AccessDeniedException {
10
-
11
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
12
- }
13
9
 
14
10
  export interface AuthorizationPendingException extends __SmithyException, $MetadataBearer {
15
11
  name: "AuthorizationPendingException";
@@ -17,10 +13,6 @@ export interface AuthorizationPendingException extends __SmithyException, $Metad
17
13
  error?: string;
18
14
  error_description?: string;
19
15
  }
20
- export declare namespace AuthorizationPendingException {
21
-
22
- const filterSensitiveLog: (obj: AuthorizationPendingException) => any;
23
- }
24
16
  export interface CreateTokenRequest {
25
17
 
26
18
  clientId: string | undefined;
@@ -66,10 +58,6 @@ export interface ExpiredTokenException extends __SmithyException, $MetadataBeare
66
58
  error?: string;
67
59
  error_description?: string;
68
60
  }
69
- export declare namespace ExpiredTokenException {
70
-
71
- const filterSensitiveLog: (obj: ExpiredTokenException) => any;
72
- }
73
61
 
74
62
  export interface InternalServerException extends __SmithyException, $MetadataBearer {
75
63
  name: "InternalServerException";
@@ -77,10 +65,6 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
77
65
  error?: string;
78
66
  error_description?: string;
79
67
  }
80
- export declare namespace InternalServerException {
81
-
82
- const filterSensitiveLog: (obj: InternalServerException) => any;
83
- }
84
68
 
85
69
  export interface InvalidClientException extends __SmithyException, $MetadataBearer {
86
70
  name: "InvalidClientException";
@@ -88,10 +72,6 @@ export interface InvalidClientException extends __SmithyException, $MetadataBear
88
72
  error?: string;
89
73
  error_description?: string;
90
74
  }
91
- export declare namespace InvalidClientException {
92
-
93
- const filterSensitiveLog: (obj: InvalidClientException) => any;
94
- }
95
75
 
96
76
  export interface InvalidGrantException extends __SmithyException, $MetadataBearer {
97
77
  name: "InvalidGrantException";
@@ -99,10 +79,6 @@ export interface InvalidGrantException extends __SmithyException, $MetadataBeare
99
79
  error?: string;
100
80
  error_description?: string;
101
81
  }
102
- export declare namespace InvalidGrantException {
103
-
104
- const filterSensitiveLog: (obj: InvalidGrantException) => any;
105
- }
106
82
 
107
83
  export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
108
84
  name: "InvalidRequestException";
@@ -110,10 +86,6 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
110
86
  error?: string;
111
87
  error_description?: string;
112
88
  }
113
- export declare namespace InvalidRequestException {
114
-
115
- const filterSensitiveLog: (obj: InvalidRequestException) => any;
116
- }
117
89
 
118
90
  export interface InvalidScopeException extends __SmithyException, $MetadataBearer {
119
91
  name: "InvalidScopeException";
@@ -121,10 +93,6 @@ export interface InvalidScopeException extends __SmithyException, $MetadataBeare
121
93
  error?: string;
122
94
  error_description?: string;
123
95
  }
124
- export declare namespace InvalidScopeException {
125
-
126
- const filterSensitiveLog: (obj: InvalidScopeException) => any;
127
- }
128
96
 
129
97
  export interface SlowDownException extends __SmithyException, $MetadataBearer {
130
98
  name: "SlowDownException";
@@ -132,10 +100,6 @@ export interface SlowDownException extends __SmithyException, $MetadataBearer {
132
100
  error?: string;
133
101
  error_description?: string;
134
102
  }
135
- export declare namespace SlowDownException {
136
-
137
- const filterSensitiveLog: (obj: SlowDownException) => any;
138
- }
139
103
 
140
104
  export interface UnauthorizedClientException extends __SmithyException, $MetadataBearer {
141
105
  name: "UnauthorizedClientException";
@@ -143,10 +107,6 @@ export interface UnauthorizedClientException extends __SmithyException, $Metadat
143
107
  error?: string;
144
108
  error_description?: string;
145
109
  }
146
- export declare namespace UnauthorizedClientException {
147
-
148
- const filterSensitiveLog: (obj: UnauthorizedClientException) => any;
149
- }
150
110
 
151
111
  export interface UnsupportedGrantTypeException extends __SmithyException, $MetadataBearer {
152
112
  name: "UnsupportedGrantTypeException";
@@ -154,10 +114,6 @@ export interface UnsupportedGrantTypeException extends __SmithyException, $Metad
154
114
  error?: string;
155
115
  error_description?: string;
156
116
  }
157
- export declare namespace UnsupportedGrantTypeException {
158
-
159
- const filterSensitiveLog: (obj: UnsupportedGrantTypeException) => any;
160
- }
161
117
 
162
118
  export interface InvalidClientMetadataException extends __SmithyException, $MetadataBearer {
163
119
  name: "InvalidClientMetadataException";
@@ -165,10 +121,6 @@ export interface InvalidClientMetadataException extends __SmithyException, $Meta
165
121
  error?: string;
166
122
  error_description?: string;
167
123
  }
168
- export declare namespace InvalidClientMetadataException {
169
-
170
- const filterSensitiveLog: (obj: InvalidClientMetadataException) => any;
171
- }
172
124
  export interface RegisterClientRequest {
173
125
 
174
126
  clientName: string | undefined;
@@ -1,15 +1,16 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { SSOOIDCClientConfig } from "./SSOOIDCClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
10
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
10
11
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
11
12
  region: string | import("@aws-sdk/types").Provider<any>;
12
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
13
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
13
14
  retryMode: string | import("@aws-sdk/types").Provider<string>;
14
15
  sha256: import("@aws-sdk/types").HashConstructor;
15
16
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,15 +1,16 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { SSOOIDCClientConfig } from "./SSOOIDCClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
10
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
10
11
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
11
12
  region: string | import("@aws-sdk/types").Provider<string>;
12
- requestHandler: NodeHttpHandler | (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler);
13
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
13
14
  retryMode: string | import("@aws-sdk/types").Provider<string>;
14
15
  sha256: import("@aws-sdk/types").HashConstructor;
15
16
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -22,6 +22,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
22
22
  region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
23
23
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
24
24
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
25
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
25
26
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
26
27
  tls?: boolean | undefined;
27
28
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso-oidc",
3
3
  "description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
4
- "version": "3.46.0",
4
+ "version": "3.47.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
- "build:cjs": "tsc -p tsconfig.json",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
8
  "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "yarn clean:dist && yarn clean:docs",
13
- "clean:dist": "rimraf ./dist-*",
14
- "clean:docs": "rimraf ./docs"
12
+ "clean": "rimraf ./dist-*"
15
13
  },
16
14
  "main": "./dist-cjs/index.js",
17
15
  "types": "./dist-types/index.d.ts",
@@ -20,35 +18,37 @@
20
18
  "dependencies": {
21
19
  "@aws-crypto/sha256-browser": "2.0.0",
22
20
  "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/config-resolver": "3.46.0",
24
- "@aws-sdk/fetch-http-handler": "3.46.0",
25
- "@aws-sdk/hash-node": "3.46.0",
26
- "@aws-sdk/invalid-dependency": "3.46.0",
27
- "@aws-sdk/middleware-content-length": "3.46.0",
28
- "@aws-sdk/middleware-host-header": "3.46.0",
29
- "@aws-sdk/middleware-logger": "3.46.0",
30
- "@aws-sdk/middleware-retry": "3.46.0",
31
- "@aws-sdk/middleware-serde": "3.46.0",
32
- "@aws-sdk/middleware-stack": "3.46.0",
33
- "@aws-sdk/middleware-user-agent": "3.46.0",
34
- "@aws-sdk/node-config-provider": "3.46.0",
35
- "@aws-sdk/node-http-handler": "3.46.0",
36
- "@aws-sdk/protocol-http": "3.46.0",
37
- "@aws-sdk/smithy-client": "3.46.0",
38
- "@aws-sdk/types": "3.46.0",
39
- "@aws-sdk/url-parser": "3.46.0",
40
- "@aws-sdk/util-base64-browser": "3.46.0",
41
- "@aws-sdk/util-base64-node": "3.46.0",
42
- "@aws-sdk/util-body-length-browser": "3.46.0",
43
- "@aws-sdk/util-body-length-node": "3.46.0",
44
- "@aws-sdk/util-user-agent-browser": "3.46.0",
45
- "@aws-sdk/util-user-agent-node": "3.46.0",
46
- "@aws-sdk/util-utf8-browser": "3.46.0",
47
- "@aws-sdk/util-utf8-node": "3.46.0",
21
+ "@aws-sdk/config-resolver": "3.47.0",
22
+ "@aws-sdk/fetch-http-handler": "3.47.0",
23
+ "@aws-sdk/hash-node": "3.47.0",
24
+ "@aws-sdk/invalid-dependency": "3.47.0",
25
+ "@aws-sdk/middleware-content-length": "3.47.0",
26
+ "@aws-sdk/middleware-host-header": "3.47.0",
27
+ "@aws-sdk/middleware-logger": "3.47.0",
28
+ "@aws-sdk/middleware-retry": "3.47.0",
29
+ "@aws-sdk/middleware-serde": "3.47.0",
30
+ "@aws-sdk/middleware-stack": "3.47.0",
31
+ "@aws-sdk/middleware-user-agent": "3.47.0",
32
+ "@aws-sdk/node-config-provider": "3.47.0",
33
+ "@aws-sdk/node-http-handler": "3.47.0",
34
+ "@aws-sdk/protocol-http": "3.47.0",
35
+ "@aws-sdk/smithy-client": "3.47.0",
36
+ "@aws-sdk/types": "3.47.0",
37
+ "@aws-sdk/url-parser": "3.47.0",
38
+ "@aws-sdk/util-base64-browser": "3.47.0",
39
+ "@aws-sdk/util-base64-node": "3.47.0",
40
+ "@aws-sdk/util-body-length-browser": "3.47.0",
41
+ "@aws-sdk/util-body-length-node": "3.47.0",
42
+ "@aws-sdk/util-defaults-mode-browser": "3.47.0",
43
+ "@aws-sdk/util-defaults-mode-node": "3.47.0",
44
+ "@aws-sdk/util-user-agent-browser": "3.47.0",
45
+ "@aws-sdk/util-user-agent-node": "3.47.0",
46
+ "@aws-sdk/util-utf8-browser": "3.47.0",
47
+ "@aws-sdk/util-utf8-node": "3.47.0",
48
48
  "tslib": "^2.3.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@aws-sdk/service-client-documentation-generator": "3.46.0",
51
+ "@aws-sdk/service-client-documentation-generator": "3.47.0",
52
52
  "@types/node": "^12.7.5"
53
53
  },
54
54
  "engines": {