@aws-sdk/client-sso 3.36.0 → 3.36.1

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.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
18
 
8
19
 
package/dist-cjs/SSO.js CHANGED
@@ -6,24 +6,6 @@ const ListAccountRolesCommand_1 = require("./commands/ListAccountRolesCommand");
6
6
  const ListAccountsCommand_1 = require("./commands/ListAccountsCommand");
7
7
  const LogoutCommand_1 = require("./commands/LogoutCommand");
8
8
  const SSOClient_1 = require("./SSOClient");
9
- /**
10
- * <p>AWS Single Sign-On Portal is a web service that makes it easy for you to assign user
11
- * access to AWS SSO resources such as the user portal. Users can get AWS account applications
12
- * and roles assigned to them and get federated into the application.</p>
13
- *
14
- * <p>For general information about AWS SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is AWS
15
- * Single Sign-On?</a> in the <i>AWS SSO User Guide</i>.</p>
16
- *
17
- * <p>This API reference guide describes the AWS SSO Portal operations that you can call
18
- * programatically and includes detailed information on data types and errors.</p>
19
- *
20
- * <note>
21
- * <p>AWS provides SDKs that consist of libraries and sample code for various programming
22
- * languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a
23
- * convenient way to create programmatic access to AWS SSO and other AWS services. For more
24
- * information about the AWS SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
25
- * </note>
26
- */
27
9
  class SSO extends SSOClient_1.SSOClient {
28
10
  getRoleCredentials(args, optionsOrCb, cb) {
29
11
  const command = new GetRoleCredentialsCommand_1.GetRoleCredentialsCommand(args);
@@ -9,24 +9,6 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
9
9
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
10
10
  const smithy_client_1 = require("@aws-sdk/smithy-client");
11
11
  const runtimeConfig_1 = require("./runtimeConfig");
12
- /**
13
- * <p>AWS Single Sign-On Portal is a web service that makes it easy for you to assign user
14
- * access to AWS SSO resources such as the user portal. Users can get AWS account applications
15
- * and roles assigned to them and get federated into the application.</p>
16
- *
17
- * <p>For general information about AWS SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is AWS
18
- * Single Sign-On?</a> in the <i>AWS SSO User Guide</i>.</p>
19
- *
20
- * <p>This API reference guide describes the AWS SSO Portal operations that you can call
21
- * programatically and includes detailed information on data types and errors.</p>
22
- *
23
- * <note>
24
- * <p>AWS provides SDKs that consist of libraries and sample code for various programming
25
- * languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a
26
- * convenient way to create programmatic access to AWS SSO and other AWS services. For more
27
- * information about the AWS SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
28
- * </note>
29
- */
30
12
  class SSOClient extends smithy_client_1.Client {
31
13
  constructor(configuration) {
32
14
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -43,11 +25,6 @@ class SSOClient extends smithy_client_1.Client {
43
25
  this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
44
26
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
45
27
  }
46
- /**
47
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
48
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
49
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
50
- */
51
28
  destroy() {
52
29
  super.destroy();
53
30
  }
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Returns the STS short-term credentials for a given role name that is assigned to the
10
- * user.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { SSOClient, GetRoleCredentialsCommand } from "@aws-sdk/client-sso"; // ES Modules import
15
- * // const { SSOClient, GetRoleCredentialsCommand } = require("@aws-sdk/client-sso"); // CommonJS import
16
- * const client = new SSOClient(config);
17
- * const command = new GetRoleCredentialsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link GetRoleCredentialsCommandInput} for command's `input` shape.
22
- * @see {@link GetRoleCredentialsCommandOutput} for command's `response` shape.
23
- * @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class GetRoleCredentialsCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Lists all roles that are assigned to the user for a given AWS account.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SSOClient, ListAccountRolesCommand } from "@aws-sdk/client-sso"; // ES Modules import
14
- * // const { SSOClient, ListAccountRolesCommand } = require("@aws-sdk/client-sso"); // CommonJS import
15
- * const client = new SSOClient(config);
16
- * const command = new ListAccountRolesCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListAccountRolesCommandInput} for command's `input` shape.
21
- * @see {@link ListAccountRolesCommandOutput} for command's `response` shape.
22
- * @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListAccountRolesCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the
10
- * administrator of the account. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/useraccess.html#assignusers">Assign User Access</a> in the <i>AWS SSO User Guide</i>. This operation
11
- * returns a paginated response.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { SSOClient, ListAccountsCommand } from "@aws-sdk/client-sso"; // ES Modules import
16
- * // const { SSOClient, ListAccountsCommand } = require("@aws-sdk/client-sso"); // CommonJS import
17
- * const client = new SSOClient(config);
18
- * const command = new ListAccountsCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link ListAccountsCommandInput} for command's `input` shape.
23
- * @see {@link ListAccountsCommandOutput} for command's `response` shape.
24
- * @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class ListAccountsCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
- /**
9
- * <p>Removes the client- and server-side session that is associated with the user.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SSOClient, LogoutCommand } from "@aws-sdk/client-sso"; // ES Modules import
14
- * // const { SSOClient, LogoutCommand } = require("@aws-sdk/client-sso"); // CommonJS import
15
- * const client = new SSOClient(config);
16
- * const command = new LogoutCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link LogoutCommandInput} for command's `input` shape.
21
- * @see {@link LogoutCommandOutput} for command's `response` shape.
22
- * @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class LogoutCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -4,18 +4,12 @@ exports.LogoutRequest = exports.ListAccountsResponse = exports.ListAccountsReque
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  var AccountInfo;
6
6
  (function (AccountInfo) {
7
- /**
8
- * @internal
9
- */
10
7
  AccountInfo.filterSensitiveLog = (obj) => ({
11
8
  ...obj,
12
9
  });
13
10
  })(AccountInfo = exports.AccountInfo || (exports.AccountInfo = {}));
14
11
  var GetRoleCredentialsRequest;
15
12
  (function (GetRoleCredentialsRequest) {
16
- /**
17
- * @internal
18
- */
19
13
  GetRoleCredentialsRequest.filterSensitiveLog = (obj) => ({
20
14
  ...obj,
21
15
  ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
@@ -23,9 +17,6 @@ var GetRoleCredentialsRequest;
23
17
  })(GetRoleCredentialsRequest = exports.GetRoleCredentialsRequest || (exports.GetRoleCredentialsRequest = {}));
24
18
  var RoleCredentials;
25
19
  (function (RoleCredentials) {
26
- /**
27
- * @internal
28
- */
29
20
  RoleCredentials.filterSensitiveLog = (obj) => ({
30
21
  ...obj,
31
22
  ...(obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }),
@@ -34,9 +25,6 @@ var RoleCredentials;
34
25
  })(RoleCredentials = exports.RoleCredentials || (exports.RoleCredentials = {}));
35
26
  var GetRoleCredentialsResponse;
36
27
  (function (GetRoleCredentialsResponse) {
37
- /**
38
- * @internal
39
- */
40
28
  GetRoleCredentialsResponse.filterSensitiveLog = (obj) => ({
41
29
  ...obj,
42
30
  ...(obj.roleCredentials && { roleCredentials: RoleCredentials.filterSensitiveLog(obj.roleCredentials) }),
@@ -44,45 +32,30 @@ var GetRoleCredentialsResponse;
44
32
  })(GetRoleCredentialsResponse = exports.GetRoleCredentialsResponse || (exports.GetRoleCredentialsResponse = {}));
45
33
  var InvalidRequestException;
46
34
  (function (InvalidRequestException) {
47
- /**
48
- * @internal
49
- */
50
35
  InvalidRequestException.filterSensitiveLog = (obj) => ({
51
36
  ...obj,
52
37
  });
53
38
  })(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
54
39
  var ResourceNotFoundException;
55
40
  (function (ResourceNotFoundException) {
56
- /**
57
- * @internal
58
- */
59
41
  ResourceNotFoundException.filterSensitiveLog = (obj) => ({
60
42
  ...obj,
61
43
  });
62
44
  })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
63
45
  var TooManyRequestsException;
64
46
  (function (TooManyRequestsException) {
65
- /**
66
- * @internal
67
- */
68
47
  TooManyRequestsException.filterSensitiveLog = (obj) => ({
69
48
  ...obj,
70
49
  });
71
50
  })(TooManyRequestsException = exports.TooManyRequestsException || (exports.TooManyRequestsException = {}));
72
51
  var UnauthorizedException;
73
52
  (function (UnauthorizedException) {
74
- /**
75
- * @internal
76
- */
77
53
  UnauthorizedException.filterSensitiveLog = (obj) => ({
78
54
  ...obj,
79
55
  });
80
56
  })(UnauthorizedException = exports.UnauthorizedException || (exports.UnauthorizedException = {}));
81
57
  var ListAccountRolesRequest;
82
58
  (function (ListAccountRolesRequest) {
83
- /**
84
- * @internal
85
- */
86
59
  ListAccountRolesRequest.filterSensitiveLog = (obj) => ({
87
60
  ...obj,
88
61
  ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
@@ -90,27 +63,18 @@ var ListAccountRolesRequest;
90
63
  })(ListAccountRolesRequest = exports.ListAccountRolesRequest || (exports.ListAccountRolesRequest = {}));
91
64
  var RoleInfo;
92
65
  (function (RoleInfo) {
93
- /**
94
- * @internal
95
- */
96
66
  RoleInfo.filterSensitiveLog = (obj) => ({
97
67
  ...obj,
98
68
  });
99
69
  })(RoleInfo = exports.RoleInfo || (exports.RoleInfo = {}));
100
70
  var ListAccountRolesResponse;
101
71
  (function (ListAccountRolesResponse) {
102
- /**
103
- * @internal
104
- */
105
72
  ListAccountRolesResponse.filterSensitiveLog = (obj) => ({
106
73
  ...obj,
107
74
  });
108
75
  })(ListAccountRolesResponse = exports.ListAccountRolesResponse || (exports.ListAccountRolesResponse = {}));
109
76
  var ListAccountsRequest;
110
77
  (function (ListAccountsRequest) {
111
- /**
112
- * @internal
113
- */
114
78
  ListAccountsRequest.filterSensitiveLog = (obj) => ({
115
79
  ...obj,
116
80
  ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
@@ -118,18 +82,12 @@ var ListAccountsRequest;
118
82
  })(ListAccountsRequest = exports.ListAccountsRequest || (exports.ListAccountsRequest = {}));
119
83
  var ListAccountsResponse;
120
84
  (function (ListAccountsResponse) {
121
- /**
122
- * @internal
123
- */
124
85
  ListAccountsResponse.filterSensitiveLog = (obj) => ({
125
86
  ...obj,
126
87
  });
127
88
  })(ListAccountsResponse = exports.ListAccountsResponse || (exports.ListAccountsResponse = {}));
128
89
  var LogoutRequest;
129
90
  (function (LogoutRequest) {
130
- /**
131
- * @internal
132
- */
133
91
  LogoutRequest.filterSensitiveLog = (obj) => ({
134
92
  ...obj,
135
93
  ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
@@ -4,22 +4,13 @@ exports.paginateListAccountRoles = void 0;
4
4
  const ListAccountRolesCommand_1 = require("../commands/ListAccountRolesCommand");
5
5
  const SSO_1 = require("../SSO");
6
6
  const SSOClient_1 = require("../SSOClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listAccountRoles(input, ...args);
20
12
  };
21
13
  async function* paginateListAccountRoles(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListAccountRoles(config, input, ...additionalArguments)
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListAccountRoles = paginateListAccountRoles;
@@ -4,22 +4,13 @@ exports.paginateListAccounts = void 0;
4
4
  const ListAccountsCommand_1 = require("../commands/ListAccountsCommand");
5
5
  const SSO_1 = require("../SSO");
6
6
  const SSOClient_1 = require("../SSOClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listAccounts(input, ...args);
20
12
  };
21
13
  async function* paginateListAccounts(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListAccounts(config, input, ...additionalArguments) {
39
30
  token = page.nextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListAccounts = paginateListAccounts;
@@ -477,14 +477,12 @@ const deserializeMetadata = (output) => {
477
477
  cfId: output.headers["x-amz-cf-id"],
478
478
  });
479
479
  };
480
- // Collect low-level response body stream to Uint8Array.
481
480
  const collectBody = (streamBody = new Uint8Array(), context) => {
482
481
  if (streamBody instanceof Uint8Array) {
483
482
  return Promise.resolve(streamBody);
484
483
  }
485
484
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
486
485
  };
487
- // Encode Uint8Array data into string with utf-8.
488
486
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
489
487
  const isSerializableHeaderValue = (value) => value !== undefined &&
490
488
  value !== null &&
@@ -497,9 +495,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
497
495
  }
498
496
  return {};
499
497
  });
500
- /**
501
- * Load an error code for the aws.rest-json-1.1 protocol.
502
- */
503
498
  const loadRestJsonErrorCode = (output, data) => {
504
499
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
505
500
  const sanitizeErrorCode = (rawValue) => {
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
8
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- /**
17
- * @internal
18
- */
19
15
  const getRuntimeConfig = (config) => {
20
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
21
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const config_resolver_1 = require("@aws-sdk/config-resolver");
8
7
  const hash_node_1 = require("@aws-sdk/hash-node");
9
8
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -15,9 +14,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
15
14
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
16
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
16
  const smithy_client_1 = require("@aws-sdk/smithy-client");
18
- /**
19
- * @internal
20
- */
21
17
  const getRuntimeConfig = (config) => {
22
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
23
19
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -4,49 +4,21 @@ import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./c
4
4
  import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand";
5
5
  import { LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutCommand";
6
6
  import { SSOClient } from "./SSOClient";
7
- /**
8
- * <p>AWS Single Sign-On Portal is a web service that makes it easy for you to assign user
9
- * access to AWS SSO resources such as the user portal. Users can get AWS account applications
10
- * and roles assigned to them and get federated into the application.</p>
11
- *
12
- * <p>For general information about AWS SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is AWS
13
- * Single Sign-On?</a> in the <i>AWS SSO User Guide</i>.</p>
14
- *
15
- * <p>This API reference guide describes the AWS SSO Portal operations that you can call
16
- * programatically and includes detailed information on data types and errors.</p>
17
- *
18
- * <note>
19
- * <p>AWS provides SDKs that consist of libraries and sample code for various programming
20
- * languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a
21
- * convenient way to create programmatic access to AWS SSO and other AWS services. For more
22
- * information about the AWS SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
23
- * </note>
24
- */
7
+
25
8
  export declare class SSO extends SSOClient {
26
- /**
27
- * <p>Returns the STS short-term credentials for a given role name that is assigned to the
28
- * user.</p>
29
- */
9
+
30
10
  getRoleCredentials(args: GetRoleCredentialsCommandInput, options?: __HttpHandlerOptions): Promise<GetRoleCredentialsCommandOutput>;
31
11
  getRoleCredentials(args: GetRoleCredentialsCommandInput, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
32
12
  getRoleCredentials(args: GetRoleCredentialsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
33
- /**
34
- * <p>Lists all roles that are assigned to the user for a given AWS account.</p>
35
- */
13
+
36
14
  listAccountRoles(args: ListAccountRolesCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountRolesCommandOutput>;
37
15
  listAccountRoles(args: ListAccountRolesCommandInput, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void;
38
16
  listAccountRoles(args: ListAccountRolesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void;
39
- /**
40
- * <p>Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the
41
- * administrator of the account. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/useraccess.html#assignusers">Assign User Access</a> in the <i>AWS SSO User Guide</i>. This operation
42
- * returns a paginated response.</p>
43
- */
17
+
44
18
  listAccounts(args: ListAccountsCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountsCommandOutput>;
45
19
  listAccounts(args: ListAccountsCommandInput, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
46
20
  listAccounts(args: ListAccountsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
47
- /**
48
- * <p>Removes the client- and server-side session that is associated with the user.</p>
49
- */
21
+
50
22
  logout(args: LogoutCommandInput, options?: __HttpHandlerOptions): Promise<LogoutCommandOutput>;
51
23
  logout(args: LogoutCommandInput, cb: (err: any, data?: LogoutCommandOutput) => void): void;
52
24
  logout(args: LogoutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LogoutCommandOutput) => void): void;
@@ -12,134 +12,57 @@ import { LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutComman
12
12
  export declare type ServiceInputTypes = GetRoleCredentialsCommandInput | ListAccountRolesCommandInput | ListAccountsCommandInput | LogoutCommandInput;
13
13
  export declare type ServiceOutputTypes = GetRoleCredentialsCommandOutput | ListAccountRolesCommandOutput | ListAccountsCommandOutput | LogoutCommandOutput;
14
14
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
15
- /**
16
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
17
- */
15
+
18
16
  requestHandler?: __HttpHandler;
19
- /**
20
- * A constructor for a class implementing the {@link __Hash} interface
21
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
22
- * @internal
23
- */
17
+
24
18
  sha256?: __HashConstructor;
25
- /**
26
- * The function that will be used to convert strings into HTTP endpoints.
27
- * @internal
28
- */
19
+
29
20
  urlParser?: __UrlParser;
30
- /**
31
- * A function that can calculate the length of a request body.
32
- * @internal
33
- */
21
+
34
22
  bodyLengthChecker?: (body: any) => number | undefined;
35
- /**
36
- * A function that converts a stream into an array of bytes.
37
- * @internal
38
- */
23
+
39
24
  streamCollector?: __StreamCollector;
40
- /**
41
- * The function that will be used to convert a base64-encoded string to a byte array.
42
- * @internal
43
- */
25
+
44
26
  base64Decoder?: __Decoder;
45
- /**
46
- * The function that will be used to convert binary data to a base64-encoded string.
47
- * @internal
48
- */
27
+
49
28
  base64Encoder?: __Encoder;
50
- /**
51
- * The function that will be used to convert a UTF8-encoded string to a byte array.
52
- * @internal
53
- */
29
+
54
30
  utf8Decoder?: __Decoder;
55
- /**
56
- * The function that will be used to convert binary data to a UTF-8 encoded string.
57
- * @internal
58
- */
31
+
59
32
  utf8Encoder?: __Encoder;
60
- /**
61
- * The runtime environment.
62
- * @internal
63
- */
33
+
64
34
  runtime?: string;
65
- /**
66
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
67
- * trait of an operation.
68
- */
35
+
69
36
  disableHostPrefix?: boolean;
70
- /**
71
- * Value for how many times a request will be made at most in case of retry.
72
- */
37
+
73
38
  maxAttempts?: number | __Provider<number>;
74
- /**
75
- * Specifies which retry algorithm to use.
76
- */
39
+
77
40
  retryMode?: string | __Provider<string>;
78
- /**
79
- * Optional logger for logging debug/info/warn/error.
80
- */
41
+
81
42
  logger?: __Logger;
82
- /**
83
- * Unique service identifier.
84
- * @internal
85
- */
43
+
86
44
  serviceId?: string;
87
- /**
88
- * The AWS region to which this client will send requests
89
- */
45
+
90
46
  region?: string | __Provider<string>;
91
- /**
92
- * Fetch related hostname, signing name or signing region with given region.
93
- * @internal
94
- */
47
+
95
48
  regionInfoProvider?: RegionInfoProvider;
96
- /**
97
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
98
- * @internal
99
- */
49
+
100
50
  defaultUserAgentProvider?: Provider<__UserAgent>;
101
51
  }
102
52
  declare type SSOClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig;
103
- /**
104
- * The configuration interface of SSOClient class constructor that set the region, credentials and other options.
105
- */
53
+
106
54
  export interface SSOClientConfig extends SSOClientConfigType {
107
55
  }
108
56
  declare type SSOClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig;
109
- /**
110
- * The resolved configuration interface of SSOClient class. This is resolved and normalized from the {@link SSOClientConfig | constructor configuration interface}.
111
- */
57
+
112
58
  export interface SSOClientResolvedConfig extends SSOClientResolvedConfigType {
113
59
  }
114
- /**
115
- * <p>AWS Single Sign-On Portal is a web service that makes it easy for you to assign user
116
- * access to AWS SSO resources such as the user portal. Users can get AWS account applications
117
- * and roles assigned to them and get federated into the application.</p>
118
- *
119
- * <p>For general information about AWS SSO, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is AWS
120
- * Single Sign-On?</a> in the <i>AWS SSO User Guide</i>.</p>
121
- *
122
- * <p>This API reference guide describes the AWS SSO Portal operations that you can call
123
- * programatically and includes detailed information on data types and errors.</p>
124
- *
125
- * <note>
126
- * <p>AWS provides SDKs that consist of libraries and sample code for various programming
127
- * languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a
128
- * convenient way to create programmatic access to AWS SSO and other AWS services. For more
129
- * information about the AWS SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
130
- * </note>
131
- */
60
+
132
61
  export declare class SSOClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig> {
133
- /**
134
- * The resolved configuration of SSOClient class. This is resolved and normalized from the {@link SSOClientConfig | constructor configuration interface}.
135
- */
62
+
136
63
  readonly config: SSOClientResolvedConfig;
137
64
  constructor(configuration: SSOClientConfig);
138
- /**
139
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
140
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
141
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
142
- */
65
+
143
66
  destroy(): void;
144
67
  }
145
68
  export {};
@@ -6,30 +6,11 @@ export interface GetRoleCredentialsCommandInput extends GetRoleCredentialsReques
6
6
  }
7
7
  export interface GetRoleCredentialsCommandOutput extends GetRoleCredentialsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Returns the STS short-term credentials for a given role name that is assigned to the
11
- * user.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { SSOClient, GetRoleCredentialsCommand } from "@aws-sdk/client-sso"; // ES Modules import
16
- * // const { SSOClient, GetRoleCredentialsCommand } = require("@aws-sdk/client-sso"); // CommonJS import
17
- * const client = new SSOClient(config);
18
- * const command = new GetRoleCredentialsCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link GetRoleCredentialsCommandInput} for command's `input` shape.
23
- * @see {@link GetRoleCredentialsCommandOutput} for command's `response` shape.
24
- * @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
9
+
27
10
  export declare class GetRoleCredentialsCommand extends $Command<GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput, SSOClientResolvedConfig> {
28
11
  readonly input: GetRoleCredentialsCommandInput;
29
12
  constructor(input: GetRoleCredentialsCommandInput);
30
- /**
31
- * @internal
32
- */
13
+
33
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput>;
34
15
  private serialize;
35
16
  private deserialize;
@@ -6,29 +6,11 @@ export interface ListAccountRolesCommandInput extends ListAccountRolesRequest {
6
6
  }
7
7
  export interface ListAccountRolesCommandOutput extends ListAccountRolesResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Lists all roles that are assigned to the user for a given AWS account.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { SSOClient, ListAccountRolesCommand } from "@aws-sdk/client-sso"; // ES Modules import
15
- * // const { SSOClient, ListAccountRolesCommand } = require("@aws-sdk/client-sso"); // CommonJS import
16
- * const client = new SSOClient(config);
17
- * const command = new ListAccountRolesCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ListAccountRolesCommandInput} for command's `input` shape.
22
- * @see {@link ListAccountRolesCommandOutput} for command's `response` shape.
23
- * @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class ListAccountRolesCommand extends $Command<ListAccountRolesCommandInput, ListAccountRolesCommandOutput, SSOClientResolvedConfig> {
27
11
  readonly input: ListAccountRolesCommandInput;
28
12
  constructor(input: ListAccountRolesCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAccountRolesCommandInput, ListAccountRolesCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;
@@ -6,31 +6,11 @@ export interface ListAccountsCommandInput extends ListAccountsRequest {
6
6
  }
7
7
  export interface ListAccountsCommandOutput extends ListAccountsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the
11
- * administrator of the account. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/useraccess.html#assignusers">Assign User Access</a> in the <i>AWS SSO User Guide</i>. This operation
12
- * returns a paginated response.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { SSOClient, ListAccountsCommand } from "@aws-sdk/client-sso"; // ES Modules import
17
- * // const { SSOClient, ListAccountsCommand } = require("@aws-sdk/client-sso"); // CommonJS import
18
- * const client = new SSOClient(config);
19
- * const command = new ListAccountsCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link ListAccountsCommandInput} for command's `input` shape.
24
- * @see {@link ListAccountsCommandOutput} for command's `response` shape.
25
- * @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
9
+
28
10
  export declare class ListAccountsCommand extends $Command<ListAccountsCommandInput, ListAccountsCommandOutput, SSOClientResolvedConfig> {
29
11
  readonly input: ListAccountsCommandInput;
30
12
  constructor(input: ListAccountsCommandInput);
31
- /**
32
- * @internal
33
- */
13
+
34
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAccountsCommandInput, ListAccountsCommandOutput>;
35
15
  private serialize;
36
16
  private deserialize;
@@ -6,29 +6,11 @@ export interface LogoutCommandInput extends LogoutRequest {
6
6
  }
7
7
  export interface LogoutCommandOutput extends __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Removes the client- and server-side session that is associated with the user.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { SSOClient, LogoutCommand } from "@aws-sdk/client-sso"; // ES Modules import
15
- * // const { SSOClient, LogoutCommand } = require("@aws-sdk/client-sso"); // CommonJS import
16
- * const client = new SSOClient(config);
17
- * const command = new LogoutCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link LogoutCommandInput} for command's `input` shape.
22
- * @see {@link LogoutCommandOutput} for command's `response` shape.
23
- * @see {@link SSOClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class LogoutCommand extends $Command<LogoutCommandInput, LogoutCommandOutput, SSOClientResolvedConfig> {
27
11
  readonly input: LogoutCommandInput;
28
12
  constructor(input: LogoutCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler<LogoutCommandInput, LogoutCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;
@@ -1,255 +1,154 @@
1
1
  import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
- /**
3
- * <p>Provides information about your AWS account.</p>
4
- */
2
+
5
3
  export interface AccountInfo {
6
- /**
7
- * <p>The identifier of the AWS account that is assigned to the user.</p>
8
- */
4
+
9
5
  accountId?: string;
10
- /**
11
- * <p>The display name of the AWS account that is assigned to the user.</p>
12
- */
6
+
13
7
  accountName?: string;
14
- /**
15
- * <p>The email address of the AWS account that is assigned to the user.</p>
16
- */
8
+
17
9
  emailAddress?: string;
18
10
  }
19
11
  export declare namespace AccountInfo {
20
- /**
21
- * @internal
22
- */
12
+
23
13
  const filterSensitiveLog: (obj: AccountInfo) => any;
24
14
  }
25
15
  export interface GetRoleCredentialsRequest {
26
- /**
27
- * <p>The friendly name of the role that is assigned to the user.</p>
28
- */
16
+
29
17
  roleName: string | undefined;
30
- /**
31
- * <p>The identifier for the AWS account that is assigned to the user.</p>
32
- */
18
+
33
19
  accountId: string | undefined;
34
- /**
35
- * <p>The token issued by the <code>CreateToken</code> API call. For more information, see
36
- * <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>AWS SSO OIDC API Reference Guide</i>.</p>
37
- */
20
+
38
21
  accessToken: string | undefined;
39
22
  }
40
23
  export declare namespace GetRoleCredentialsRequest {
41
- /**
42
- * @internal
43
- */
24
+
44
25
  const filterSensitiveLog: (obj: GetRoleCredentialsRequest) => any;
45
26
  }
46
- /**
47
- * <p>Provides information about the role credentials that are assigned to the user.</p>
48
- */
27
+
49
28
  export interface RoleCredentials {
50
- /**
51
- * <p>The identifier used for the temporary security credentials. For more information, see
52
- * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the
53
- * <i>AWS IAM User Guide</i>.</p>
54
- */
29
+
55
30
  accessKeyId?: string;
56
- /**
57
- * <p>The key that is used to sign the request. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the
58
- * <i>AWS IAM User Guide</i>.</p>
59
- */
31
+
60
32
  secretAccessKey?: string;
61
- /**
62
- * <p>The token used for temporary credentials. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the
63
- * <i>AWS IAM User Guide</i>.</p>
64
- */
33
+
65
34
  sessionToken?: string;
66
- /**
67
- * <p>The date on which temporary security credentials expire.</p>
68
- */
35
+
69
36
  expiration?: number;
70
37
  }
71
38
  export declare namespace RoleCredentials {
72
- /**
73
- * @internal
74
- */
39
+
75
40
  const filterSensitiveLog: (obj: RoleCredentials) => any;
76
41
  }
77
42
  export interface GetRoleCredentialsResponse {
78
- /**
79
- * <p>The credentials for the role that is assigned to the user.</p>
80
- */
43
+
81
44
  roleCredentials?: RoleCredentials;
82
45
  }
83
46
  export declare namespace GetRoleCredentialsResponse {
84
- /**
85
- * @internal
86
- */
47
+
87
48
  const filterSensitiveLog: (obj: GetRoleCredentialsResponse) => any;
88
49
  }
89
- /**
90
- * <p>Indicates that a problem occurred with the input to the request. For example, a required
91
- * parameter might be missing or out of range.</p>
92
- */
50
+
93
51
  export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
94
52
  name: "InvalidRequestException";
95
53
  $fault: "client";
96
54
  message?: string;
97
55
  }
98
56
  export declare namespace InvalidRequestException {
99
- /**
100
- * @internal
101
- */
57
+
102
58
  const filterSensitiveLog: (obj: InvalidRequestException) => any;
103
59
  }
104
- /**
105
- * <p>The specified resource doesn't exist.</p>
106
- */
60
+
107
61
  export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
108
62
  name: "ResourceNotFoundException";
109
63
  $fault: "client";
110
64
  message?: string;
111
65
  }
112
66
  export declare namespace ResourceNotFoundException {
113
- /**
114
- * @internal
115
- */
67
+
116
68
  const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
117
69
  }
118
- /**
119
- * <p>Indicates that the request is being made too frequently and is more than what the server can handle.</p>
120
- */
70
+
121
71
  export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
122
72
  name: "TooManyRequestsException";
123
73
  $fault: "client";
124
74
  message?: string;
125
75
  }
126
76
  export declare namespace TooManyRequestsException {
127
- /**
128
- * @internal
129
- */
77
+
130
78
  const filterSensitiveLog: (obj: TooManyRequestsException) => any;
131
79
  }
132
- /**
133
- * <p>Indicates that the request is not authorized. This can happen due to an invalid access token in the request.</p>
134
- */
80
+
135
81
  export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
136
82
  name: "UnauthorizedException";
137
83
  $fault: "client";
138
84
  message?: string;
139
85
  }
140
86
  export declare namespace UnauthorizedException {
141
- /**
142
- * @internal
143
- */
87
+
144
88
  const filterSensitiveLog: (obj: UnauthorizedException) => any;
145
89
  }
146
90
  export interface ListAccountRolesRequest {
147
- /**
148
- * <p>The page token from the previous response output when you request subsequent pages.</p>
149
- */
91
+
150
92
  nextToken?: string;
151
- /**
152
- * <p>The number of items that clients can request per page.</p>
153
- */
93
+
154
94
  maxResults?: number;
155
- /**
156
- * <p>The token issued by the <code>CreateToken</code> API call. For more information, see
157
- * <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>AWS SSO OIDC API Reference Guide</i>.</p>
158
- */
95
+
159
96
  accessToken: string | undefined;
160
- /**
161
- * <p>The identifier for the AWS account that is assigned to the user.</p>
162
- */
97
+
163
98
  accountId: string | undefined;
164
99
  }
165
100
  export declare namespace ListAccountRolesRequest {
166
- /**
167
- * @internal
168
- */
101
+
169
102
  const filterSensitiveLog: (obj: ListAccountRolesRequest) => any;
170
103
  }
171
- /**
172
- * <p>Provides information about the role that is assigned to the user.</p>
173
- */
104
+
174
105
  export interface RoleInfo {
175
- /**
176
- * <p>The friendly name of the role that is assigned to the user.</p>
177
- */
106
+
178
107
  roleName?: string;
179
- /**
180
- * <p>The identifier of the AWS account assigned to the user.</p>
181
- */
108
+
182
109
  accountId?: string;
183
110
  }
184
111
  export declare namespace RoleInfo {
185
- /**
186
- * @internal
187
- */
112
+
188
113
  const filterSensitiveLog: (obj: RoleInfo) => any;
189
114
  }
190
115
  export interface ListAccountRolesResponse {
191
- /**
192
- * <p>The page token client that is used to retrieve the list of accounts.</p>
193
- */
116
+
194
117
  nextToken?: string;
195
- /**
196
- * <p>A paginated response with the list of roles and the next token if more results are available.</p>
197
- */
118
+
198
119
  roleList?: RoleInfo[];
199
120
  }
200
121
  export declare namespace ListAccountRolesResponse {
201
- /**
202
- * @internal
203
- */
122
+
204
123
  const filterSensitiveLog: (obj: ListAccountRolesResponse) => any;
205
124
  }
206
125
  export interface ListAccountsRequest {
207
- /**
208
- * <p>(Optional) When requesting subsequent pages, this is the page token from the previous response output.</p>
209
- */
126
+
210
127
  nextToken?: string;
211
- /**
212
- * <p>This is the number of items clients can request per page.</p>
213
- */
128
+
214
129
  maxResults?: number;
215
- /**
216
- * <p>The token issued by the <code>CreateToken</code> API call. For more information, see
217
- * <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>AWS SSO OIDC API Reference Guide</i>.</p>
218
- */
130
+
219
131
  accessToken: string | undefined;
220
132
  }
221
133
  export declare namespace ListAccountsRequest {
222
- /**
223
- * @internal
224
- */
134
+
225
135
  const filterSensitiveLog: (obj: ListAccountsRequest) => any;
226
136
  }
227
137
  export interface ListAccountsResponse {
228
- /**
229
- * <p>The page token client that is used to retrieve the list of accounts.</p>
230
- */
138
+
231
139
  nextToken?: string;
232
- /**
233
- * <p>A paginated response with the list of account information and the next token if more results are available.</p>
234
- */
140
+
235
141
  accountList?: AccountInfo[];
236
142
  }
237
143
  export declare namespace ListAccountsResponse {
238
- /**
239
- * @internal
240
- */
144
+
241
145
  const filterSensitiveLog: (obj: ListAccountsResponse) => any;
242
146
  }
243
147
  export interface LogoutRequest {
244
- /**
245
- * <p>The token issued by the <code>CreateToken</code> API call. For more information, see
246
- * <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>AWS SSO OIDC API Reference Guide</i>.</p>
247
- */
148
+
248
149
  accessToken: string | undefined;
249
150
  }
250
151
  export declare namespace LogoutRequest {
251
- /**
252
- * @internal
253
- */
152
+
254
153
  const filterSensitiveLog: (obj: LogoutRequest) => any;
255
154
  }
@@ -1,8 +1,6 @@
1
1
  import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { SSOClientConfig } from "./SSOClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: SSOClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
@@ -1,8 +1,6 @@
1
1
  import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
2
2
  import { SSOClientConfig } from "./SSOClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: SSOClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
@@ -1,7 +1,5 @@
1
1
  import { SSOClientConfig } from "./SSOClient";
2
- /**
3
- * @internal
4
- */
2
+
5
3
  export declare const getRuntimeConfig: (config: SSOClientConfig) => {
6
4
  runtime: string;
7
5
  sha256: import("@aws-sdk/types").HashConstructor;
@@ -1,8 +1,6 @@
1
1
  import { Logger as __Logger } from "@aws-sdk/types";
2
2
  import { SSOClientConfig } from "./SSOClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: SSOClientConfig) => {
7
5
  apiVersion: string;
8
6
  disableHostPrefix: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.36.0",
4
+ "version": "3.36.1",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",