@aws-sdk/client-sso 3.40.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 +50 -0
- package/dist-cjs/endpoints.js +9 -0
- package/dist-cjs/models/models_0.js +1 -25
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +9 -0
- package/dist-es/models/models_0.js +0 -16
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/SSOClient.d.ts +5 -1
- package/dist-types/commands/GetRoleCredentialsCommand.d.ts +1 -1
- package/dist-types/commands/ListAccountRolesCommand.d.ts +1 -1
- package/dist-types/commands/ListAccountsCommand.d.ts +1 -1
- package/dist-types/commands/LogoutCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +0 -24
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +3 -2
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/SSOClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -16
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +35 -42
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,56 @@
|
|
|
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
|
+
|
|
17
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
28
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
* **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
6
56
|
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
7
57
|
|
|
8
58
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -159,6 +159,7 @@ const partitionHash = {
|
|
|
159
159
|
"ap-south-1",
|
|
160
160
|
"ap-southeast-1",
|
|
161
161
|
"ap-southeast-2",
|
|
162
|
+
"ap-southeast-3",
|
|
162
163
|
"ca-central-1",
|
|
163
164
|
"eu-central-1",
|
|
164
165
|
"eu-north-1",
|
|
@@ -223,6 +224,10 @@ const partitionHash = {
|
|
|
223
224
|
hostname: "portal.sso.{region}.c2s.ic.gov",
|
|
224
225
|
tags: [],
|
|
225
226
|
},
|
|
227
|
+
{
|
|
228
|
+
hostname: "portal.sso-fips.{region}.c2s.ic.gov",
|
|
229
|
+
tags: ["fips"],
|
|
230
|
+
},
|
|
226
231
|
],
|
|
227
232
|
},
|
|
228
233
|
"aws-iso-b": {
|
|
@@ -233,6 +238,10 @@ const partitionHash = {
|
|
|
233
238
|
hostname: "portal.sso.{region}.sc2s.sgov.gov",
|
|
234
239
|
tags: [],
|
|
235
240
|
},
|
|
241
|
+
{
|
|
242
|
+
hostname: "portal.sso-fips.{region}.sc2s.sgov.gov",
|
|
243
|
+
tags: ["fips"],
|
|
244
|
+
},
|
|
236
245
|
],
|
|
237
246
|
},
|
|
238
247
|
"aws-us-gov": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogoutRequest = exports.ListAccountsResponse = exports.ListAccountsRequest = exports.ListAccountRolesResponse = exports.RoleInfo = exports.ListAccountRolesRequest = exports.
|
|
3
|
+
exports.LogoutRequest = exports.ListAccountsResponse = exports.ListAccountsRequest = exports.ListAccountRolesResponse = exports.RoleInfo = exports.ListAccountRolesRequest = exports.GetRoleCredentialsResponse = exports.RoleCredentials = exports.GetRoleCredentialsRequest = exports.AccountInfo = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
var AccountInfo;
|
|
6
6
|
(function (AccountInfo) {
|
|
@@ -30,30 +30,6 @@ var GetRoleCredentialsResponse;
|
|
|
30
30
|
...(obj.roleCredentials && { roleCredentials: RoleCredentials.filterSensitiveLog(obj.roleCredentials) }),
|
|
31
31
|
});
|
|
32
32
|
})(GetRoleCredentialsResponse = exports.GetRoleCredentialsResponse || (exports.GetRoleCredentialsResponse = {}));
|
|
33
|
-
var InvalidRequestException;
|
|
34
|
-
(function (InvalidRequestException) {
|
|
35
|
-
InvalidRequestException.filterSensitiveLog = (obj) => ({
|
|
36
|
-
...obj,
|
|
37
|
-
});
|
|
38
|
-
})(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
|
|
39
|
-
var ResourceNotFoundException;
|
|
40
|
-
(function (ResourceNotFoundException) {
|
|
41
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
42
|
-
...obj,
|
|
43
|
-
});
|
|
44
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
45
|
-
var TooManyRequestsException;
|
|
46
|
-
(function (TooManyRequestsException) {
|
|
47
|
-
TooManyRequestsException.filterSensitiveLog = (obj) => ({
|
|
48
|
-
...obj,
|
|
49
|
-
});
|
|
50
|
-
})(TooManyRequestsException = exports.TooManyRequestsException || (exports.TooManyRequestsException = {}));
|
|
51
|
-
var UnauthorizedException;
|
|
52
|
-
(function (UnauthorizedException) {
|
|
53
|
-
UnauthorizedException.filterSensitiveLog = (obj) => ({
|
|
54
|
-
...obj,
|
|
55
|
-
});
|
|
56
|
-
})(UnauthorizedException = exports.UnauthorizedException || (exports.UnauthorizedException = {}));
|
|
57
33
|
var ListAccountRolesRequest;
|
|
58
34
|
(function (ListAccountRolesRequest) {
|
|
59
35
|
ListAccountRolesRequest.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 : (() =>
|
|
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)),
|
|
@@ -14,22 +14,28 @@ 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
16
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
17
18
|
const getRuntimeConfig = (config) => {
|
|
18
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
19
|
-
|
|
20
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
23
|
return {
|
|
22
24
|
...clientSharedValues,
|
|
23
25
|
...config,
|
|
24
26
|
runtime: "node",
|
|
27
|
+
defaultsMode,
|
|
25
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
28
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 }),
|
|
29
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),
|
|
30
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),
|
|
31
|
-
requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new node_http_handler_1.NodeHttpHandler(),
|
|
32
|
-
retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : node_config_provider_1.loadConfig(
|
|
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
|
+
}),
|
|
33
39
|
sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : hash_node_1.Hash.bind(null, "sha256"),
|
|
34
40
|
streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : node_http_handler_1.streamCollector,
|
|
35
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),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -157,6 +157,7 @@ var partitionHash = {
|
|
|
157
157
|
"ap-south-1",
|
|
158
158
|
"ap-southeast-1",
|
|
159
159
|
"ap-southeast-2",
|
|
160
|
+
"ap-southeast-3",
|
|
160
161
|
"ca-central-1",
|
|
161
162
|
"eu-central-1",
|
|
162
163
|
"eu-north-1",
|
|
@@ -221,6 +222,10 @@ var partitionHash = {
|
|
|
221
222
|
hostname: "portal.sso.{region}.c2s.ic.gov",
|
|
222
223
|
tags: [],
|
|
223
224
|
},
|
|
225
|
+
{
|
|
226
|
+
hostname: "portal.sso-fips.{region}.c2s.ic.gov",
|
|
227
|
+
tags: ["fips"],
|
|
228
|
+
},
|
|
224
229
|
],
|
|
225
230
|
},
|
|
226
231
|
"aws-iso-b": {
|
|
@@ -231,6 +236,10 @@ var partitionHash = {
|
|
|
231
236
|
hostname: "portal.sso.{region}.sc2s.sgov.gov",
|
|
232
237
|
tags: [],
|
|
233
238
|
},
|
|
239
|
+
{
|
|
240
|
+
hostname: "portal.sso-fips.{region}.sc2s.sgov.gov",
|
|
241
|
+
tags: ["fips"],
|
|
242
|
+
},
|
|
234
243
|
],
|
|
235
244
|
},
|
|
236
245
|
"aws-us-gov": {
|
|
@@ -16,22 +16,6 @@ export var GetRoleCredentialsResponse;
|
|
|
16
16
|
(function (GetRoleCredentialsResponse) {
|
|
17
17
|
GetRoleCredentialsResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.roleCredentials && { roleCredentials: RoleCredentials.filterSensitiveLog(obj.roleCredentials) }))); };
|
|
18
18
|
})(GetRoleCredentialsResponse || (GetRoleCredentialsResponse = {}));
|
|
19
|
-
export var InvalidRequestException;
|
|
20
|
-
(function (InvalidRequestException) {
|
|
21
|
-
InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
22
|
-
})(InvalidRequestException || (InvalidRequestException = {}));
|
|
23
|
-
export var ResourceNotFoundException;
|
|
24
|
-
(function (ResourceNotFoundException) {
|
|
25
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
26
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
27
|
-
export var TooManyRequestsException;
|
|
28
|
-
(function (TooManyRequestsException) {
|
|
29
|
-
TooManyRequestsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
30
|
-
})(TooManyRequestsException || (TooManyRequestsException = {}));
|
|
31
|
-
export var UnauthorizedException;
|
|
32
|
-
(function (UnauthorizedException) {
|
|
33
|
-
UnauthorizedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
34
|
-
})(UnauthorizedException || (UnauthorizedException = {}));
|
|
35
19
|
export var ListAccountRolesRequest;
|
|
36
20
|
(function (ListAccountRolesRequest) {
|
|
37
21
|
ListAccountRolesRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
@@ -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
|
|
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
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,19 +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 {
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
14
15
|
export var getRuntimeConfig = function (config) {
|
|
15
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
16
|
-
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
17
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
-
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
|
|
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 });
|
|
19
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 { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
|
|
9
9
|
import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./commands/ListAccountRolesCommand";
|
|
@@ -106,6 +106,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
106
106
|
* @internal
|
|
107
107
|
*/
|
|
108
108
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
109
|
+
/**
|
|
110
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
111
|
+
*/
|
|
112
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
109
113
|
}
|
|
110
114
|
declare type SSOClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig;
|
|
111
115
|
/**
|
|
@@ -21,7 +21,7 @@ export interface GetRoleCredentialsCommandOutput extends GetRoleCredentialsRespo
|
|
|
21
21
|
*
|
|
22
22
|
* @see {@link GetRoleCredentialsCommandInput} for command's `input` shape.
|
|
23
23
|
* @see {@link GetRoleCredentialsCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link SSOClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link SSOClientResolvedConfig | config} for SSOClient's `config` shape.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
export declare class GetRoleCredentialsCommand extends $Command<GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput, SSOClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface ListAccountRolesCommandOutput extends ListAccountRolesResponse,
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link ListAccountRolesCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link ListAccountRolesCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link SSOClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link SSOClientResolvedConfig | config} for SSOClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class ListAccountRolesCommand extends $Command<ListAccountRolesCommandInput, ListAccountRolesCommandOutput, SSOClientResolvedConfig> {
|
|
@@ -22,7 +22,7 @@ export interface ListAccountsCommandOutput extends ListAccountsResponse, __Metad
|
|
|
22
22
|
*
|
|
23
23
|
* @see {@link ListAccountsCommandInput} for command's `input` shape.
|
|
24
24
|
* @see {@link ListAccountsCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link SSOClientResolvedConfig | config} for
|
|
25
|
+
* @see {@link SSOClientResolvedConfig | config} for SSOClient's `config` shape.
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export declare class ListAccountsCommand extends $Command<ListAccountsCommandInput, ListAccountsCommandOutput, SSOClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface LogoutCommandOutput extends __MetadataBearer {
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link LogoutCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link LogoutCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link SSOClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link SSOClientResolvedConfig | config} for SSOClient's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class LogoutCommand extends $Command<LogoutCommandInput, LogoutCommandOutput, SSOClientResolvedConfig> {
|
|
@@ -95,12 +95,6 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
|
|
|
95
95
|
$fault: "client";
|
|
96
96
|
message?: string;
|
|
97
97
|
}
|
|
98
|
-
export declare namespace InvalidRequestException {
|
|
99
|
-
/**
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
102
|
-
const filterSensitiveLog: (obj: InvalidRequestException) => any;
|
|
103
|
-
}
|
|
104
98
|
/**
|
|
105
99
|
* <p>The specified resource doesn't exist.</p>
|
|
106
100
|
*/
|
|
@@ -109,12 +103,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
109
103
|
$fault: "client";
|
|
110
104
|
message?: string;
|
|
111
105
|
}
|
|
112
|
-
export declare namespace ResourceNotFoundException {
|
|
113
|
-
/**
|
|
114
|
-
* @internal
|
|
115
|
-
*/
|
|
116
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
117
|
-
}
|
|
118
106
|
/**
|
|
119
107
|
* <p>Indicates that the request is being made too frequently and is more than what the server can handle.</p>
|
|
120
108
|
*/
|
|
@@ -123,12 +111,6 @@ export interface TooManyRequestsException extends __SmithyException, $MetadataBe
|
|
|
123
111
|
$fault: "client";
|
|
124
112
|
message?: string;
|
|
125
113
|
}
|
|
126
|
-
export declare namespace TooManyRequestsException {
|
|
127
|
-
/**
|
|
128
|
-
* @internal
|
|
129
|
-
*/
|
|
130
|
-
const filterSensitiveLog: (obj: TooManyRequestsException) => any;
|
|
131
|
-
}
|
|
132
114
|
/**
|
|
133
115
|
* <p>Indicates that the request is not authorized. This can happen due to an invalid access token in the request.</p>
|
|
134
116
|
*/
|
|
@@ -137,12 +119,6 @@ export interface UnauthorizedException extends __SmithyException, $MetadataBeare
|
|
|
137
119
|
$fault: "client";
|
|
138
120
|
message?: string;
|
|
139
121
|
}
|
|
140
|
-
export declare namespace UnauthorizedException {
|
|
141
|
-
/**
|
|
142
|
-
* @internal
|
|
143
|
-
*/
|
|
144
|
-
const filterSensitiveLog: (obj: UnauthorizedException) => any;
|
|
145
|
-
}
|
|
146
122
|
export interface ListAccountRolesRequest {
|
|
147
123
|
/**
|
|
148
124
|
* <p>The page token from the previous response output when you request subsequent pages.</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 { SSOClientConfig } from "./SSOClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
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) |
|
|
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 { SSOClientConfig } from "./SSOClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
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:
|
|
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: SSOClientConfig) => {
|
|
|
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 { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
|
|
9
9
|
import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./commands/ListAccountRolesCommand";
|
|
@@ -52,6 +52,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
52
52
|
regionInfoProvider?: RegionInfoProvider;
|
|
53
53
|
|
|
54
54
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
55
|
+
|
|
56
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
55
57
|
}
|
|
56
58
|
declare type SSOClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig;
|
|
57
59
|
|
|
@@ -53,40 +53,24 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
|
|
|
53
53
|
$fault: "client";
|
|
54
54
|
message?: string;
|
|
55
55
|
}
|
|
56
|
-
export declare namespace InvalidRequestException {
|
|
57
|
-
|
|
58
|
-
const filterSensitiveLog: (obj: InvalidRequestException) => any;
|
|
59
|
-
}
|
|
60
56
|
|
|
61
57
|
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
|
|
62
58
|
name: "ResourceNotFoundException";
|
|
63
59
|
$fault: "client";
|
|
64
60
|
message?: string;
|
|
65
61
|
}
|
|
66
|
-
export declare namespace ResourceNotFoundException {
|
|
67
|
-
|
|
68
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
69
|
-
}
|
|
70
62
|
|
|
71
63
|
export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
|
|
72
64
|
name: "TooManyRequestsException";
|
|
73
65
|
$fault: "client";
|
|
74
66
|
message?: string;
|
|
75
67
|
}
|
|
76
|
-
export declare namespace TooManyRequestsException {
|
|
77
|
-
|
|
78
|
-
const filterSensitiveLog: (obj: TooManyRequestsException) => any;
|
|
79
|
-
}
|
|
80
68
|
|
|
81
69
|
export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
|
|
82
70
|
name: "UnauthorizedException";
|
|
83
71
|
$fault: "client";
|
|
84
72
|
message?: string;
|
|
85
73
|
}
|
|
86
|
-
export declare namespace UnauthorizedException {
|
|
87
|
-
|
|
88
|
-
const filterSensitiveLog: (obj: UnauthorizedException) => any;
|
|
89
|
-
}
|
|
90
74
|
export interface ListAccountRolesRequest {
|
|
91
75
|
|
|
92
76
|
nextToken?: string;
|
|
@@ -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 { SSOClientConfig } from "./SSOClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
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) |
|
|
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 { SSOClientConfig } from "./SSOClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: SSOClientConfig) => {
|
|
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:
|
|
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: SSOClientConfig) => {
|
|
|
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,18 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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",
|
|
8
|
-
"build:docs": "
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
|
+
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
-
"
|
|
12
|
-
"clean
|
|
13
|
-
"clean:docs": "rimraf ./docs",
|
|
14
|
-
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
-
"test": "exit 0"
|
|
11
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
+
"clean": "rimraf ./dist-*"
|
|
16
13
|
},
|
|
17
14
|
"main": "./dist-cjs/index.js",
|
|
18
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -21,45 +18,41 @@
|
|
|
21
18
|
"dependencies": {
|
|
22
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
30
|
-
"@aws-sdk/middleware-logger": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-
|
|
46
|
-
"@aws-sdk/util-
|
|
47
|
-
"@aws-sdk/util-
|
|
48
|
-
"@aws-sdk/util-
|
|
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",
|
|
49
48
|
"tslib": "^2.3.0"
|
|
50
49
|
},
|
|
51
50
|
"devDependencies": {
|
|
52
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
53
|
-
"@types/node": "^12.7.5"
|
|
54
|
-
"downlevel-dts": "0.7.0",
|
|
55
|
-
"jest": "^26.1.0",
|
|
56
|
-
"rimraf": "^3.0.0",
|
|
57
|
-
"ts-jest": "^26.4.1",
|
|
58
|
-
"typedoc": "^0.19.2",
|
|
59
|
-
"typescript": "~4.3.5"
|
|
51
|
+
"@aws-sdk/service-client-documentation-generator": "3.47.0",
|
|
52
|
+
"@types/node": "^12.7.5"
|
|
60
53
|
},
|
|
61
54
|
"engines": {
|
|
62
|
-
"node": ">=
|
|
55
|
+
"node": ">=12.0.0"
|
|
63
56
|
},
|
|
64
57
|
"typesVersions": {
|
|
65
58
|
"<4.0": {
|