@aws-sdk/client-sso 3.128.0 → 3.137.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 +30 -0
- package/dist-cjs/commands/GetRoleCredentialsCommand.js +2 -2
- package/dist-cjs/commands/ListAccountRolesCommand.js +2 -2
- package/dist-cjs/commands/ListAccountsCommand.js +2 -2
- package/dist-cjs/commands/LogoutCommand.js +1 -1
- package/dist-cjs/models/models_0.js +48 -68
- package/dist-cjs/protocols/Aws_restJson1.js +3 -0
- package/dist-es/commands/GetRoleCredentialsCommand.js +3 -3
- package/dist-es/commands/ListAccountRolesCommand.js +3 -3
- package/dist-es/commands/ListAccountsCommand.js +3 -3
- package/dist-es/commands/LogoutCommand.js +2 -2
- package/dist-es/models/models_0.js +10 -40
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/models/models_0.d.ts +40 -60
- package/dist-types/ts3.4/models/models_0.d.ts +20 -40
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **namespaces:** remove namespaces with only a log filter ([#3823](https://github.com/aws/aws-sdk-js-v3/issues/3823)) ([33e6822](https://github.com/aws/aws-sdk-js-v3/commit/33e68228fb64c53dd8f89e6be76dd5f46edc3cfd))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.131.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.130.0...v3.131.0) (2022-07-15)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-sso
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @aws-sdk/client-sso
|
|
@@ -20,8 +20,8 @@ class GetRoleCredentialsCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog: models_0_1.
|
|
24
|
-
outputFilterSensitiveLog: models_0_1.
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -20,8 +20,8 @@ class ListAccountRolesCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog: models_0_1.
|
|
24
|
-
outputFilterSensitiveLog: models_0_1.
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListAccountRolesResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -20,8 +20,8 @@ class ListAccountsCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog: models_0_1.
|
|
24
|
-
outputFilterSensitiveLog: models_0_1.
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListAccountsResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -20,7 +20,7 @@ class LogoutCommand extends smithy_client_1.Command {
|
|
|
20
20
|
logger,
|
|
21
21
|
clientName,
|
|
22
22
|
commandName,
|
|
23
|
-
inputFilterSensitiveLog: models_0_1.
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog,
|
|
24
24
|
outputFilterSensitiveLog: (output) => output,
|
|
25
25
|
};
|
|
26
26
|
const { requestHandler } = configuration;
|
|
@@ -1,36 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.LogoutRequestFilterSensitiveLog = exports.ListAccountsResponseFilterSensitiveLog = exports.ListAccountsRequestFilterSensitiveLog = exports.ListAccountRolesResponseFilterSensitiveLog = exports.RoleInfoFilterSensitiveLog = exports.ListAccountRolesRequestFilterSensitiveLog = exports.GetRoleCredentialsResponseFilterSensitiveLog = exports.RoleCredentialsFilterSensitiveLog = exports.GetRoleCredentialsRequestFilterSensitiveLog = exports.AccountInfoFilterSensitiveLog = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const SSOServiceException_1 = require("./SSOServiceException");
|
|
6
|
-
var AccountInfo;
|
|
7
|
-
(function (AccountInfo) {
|
|
8
|
-
AccountInfo.filterSensitiveLog = (obj) => ({
|
|
9
|
-
...obj,
|
|
10
|
-
});
|
|
11
|
-
})(AccountInfo = exports.AccountInfo || (exports.AccountInfo = {}));
|
|
12
|
-
var GetRoleCredentialsRequest;
|
|
13
|
-
(function (GetRoleCredentialsRequest) {
|
|
14
|
-
GetRoleCredentialsRequest.filterSensitiveLog = (obj) => ({
|
|
15
|
-
...obj,
|
|
16
|
-
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
17
|
-
});
|
|
18
|
-
})(GetRoleCredentialsRequest = exports.GetRoleCredentialsRequest || (exports.GetRoleCredentialsRequest = {}));
|
|
19
|
-
var RoleCredentials;
|
|
20
|
-
(function (RoleCredentials) {
|
|
21
|
-
RoleCredentials.filterSensitiveLog = (obj) => ({
|
|
22
|
-
...obj,
|
|
23
|
-
...(obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }),
|
|
24
|
-
...(obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING }),
|
|
25
|
-
});
|
|
26
|
-
})(RoleCredentials = exports.RoleCredentials || (exports.RoleCredentials = {}));
|
|
27
|
-
var GetRoleCredentialsResponse;
|
|
28
|
-
(function (GetRoleCredentialsResponse) {
|
|
29
|
-
GetRoleCredentialsResponse.filterSensitiveLog = (obj) => ({
|
|
30
|
-
...obj,
|
|
31
|
-
...(obj.roleCredentials && { roleCredentials: RoleCredentials.filterSensitiveLog(obj.roleCredentials) }),
|
|
32
|
-
});
|
|
33
|
-
})(GetRoleCredentialsResponse = exports.GetRoleCredentialsResponse || (exports.GetRoleCredentialsResponse = {}));
|
|
34
6
|
class InvalidRequestException extends SSOServiceException_1.SSOServiceException {
|
|
35
7
|
constructor(opts) {
|
|
36
8
|
super({
|
|
@@ -83,42 +55,50 @@ class UnauthorizedException extends SSOServiceException_1.SSOServiceException {
|
|
|
83
55
|
}
|
|
84
56
|
}
|
|
85
57
|
exports.UnauthorizedException = UnauthorizedException;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
})
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
})
|
|
104
|
-
})
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
})
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
58
|
+
const AccountInfoFilterSensitiveLog = (obj) => ({
|
|
59
|
+
...obj,
|
|
60
|
+
});
|
|
61
|
+
exports.AccountInfoFilterSensitiveLog = AccountInfoFilterSensitiveLog;
|
|
62
|
+
const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({
|
|
63
|
+
...obj,
|
|
64
|
+
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
65
|
+
});
|
|
66
|
+
exports.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog;
|
|
67
|
+
const RoleCredentialsFilterSensitiveLog = (obj) => ({
|
|
68
|
+
...obj,
|
|
69
|
+
...(obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }),
|
|
70
|
+
...(obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING }),
|
|
71
|
+
});
|
|
72
|
+
exports.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog;
|
|
73
|
+
const GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({
|
|
74
|
+
...obj,
|
|
75
|
+
...(obj.roleCredentials && { roleCredentials: (0, exports.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) }),
|
|
76
|
+
});
|
|
77
|
+
exports.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog;
|
|
78
|
+
const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({
|
|
79
|
+
...obj,
|
|
80
|
+
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
81
|
+
});
|
|
82
|
+
exports.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog;
|
|
83
|
+
const RoleInfoFilterSensitiveLog = (obj) => ({
|
|
84
|
+
...obj,
|
|
85
|
+
});
|
|
86
|
+
exports.RoleInfoFilterSensitiveLog = RoleInfoFilterSensitiveLog;
|
|
87
|
+
const ListAccountRolesResponseFilterSensitiveLog = (obj) => ({
|
|
88
|
+
...obj,
|
|
89
|
+
});
|
|
90
|
+
exports.ListAccountRolesResponseFilterSensitiveLog = ListAccountRolesResponseFilterSensitiveLog;
|
|
91
|
+
const ListAccountsRequestFilterSensitiveLog = (obj) => ({
|
|
92
|
+
...obj,
|
|
93
|
+
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
94
|
+
});
|
|
95
|
+
exports.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog;
|
|
96
|
+
const ListAccountsResponseFilterSensitiveLog = (obj) => ({
|
|
97
|
+
...obj,
|
|
98
|
+
});
|
|
99
|
+
exports.ListAccountsResponseFilterSensitiveLog = ListAccountsResponseFilterSensitiveLog;
|
|
100
|
+
const LogoutRequestFilterSensitiveLog = (obj) => ({
|
|
101
|
+
...obj,
|
|
102
|
+
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
103
|
+
});
|
|
104
|
+
exports.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog;
|
|
@@ -404,6 +404,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
404
404
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
405
405
|
const sanitizeErrorCode = (rawValue) => {
|
|
406
406
|
let cleanValue = rawValue;
|
|
407
|
+
if (typeof cleanValue === "number") {
|
|
408
|
+
cleanValue = cleanValue.toString();
|
|
409
|
+
}
|
|
407
410
|
if (cleanValue.indexOf(":") >= 0) {
|
|
408
411
|
cleanValue = cleanValue.split(":")[0];
|
|
409
412
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1GetRoleCredentialsCommand, serializeAws_restJson1GetRoleCredentialsCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var GetRoleCredentialsCommand = (function (_super) {
|
|
7
7
|
__extends(GetRoleCredentialsCommand, _super);
|
|
@@ -20,8 +20,8 @@ var GetRoleCredentialsCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: GetRoleCredentialsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetRoleCredentialsResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { ListAccountRolesRequestFilterSensitiveLog, ListAccountRolesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1ListAccountRolesCommand, serializeAws_restJson1ListAccountRolesCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var ListAccountRolesCommand = (function (_super) {
|
|
7
7
|
__extends(ListAccountRolesCommand, _super);
|
|
@@ -20,8 +20,8 @@ var ListAccountRolesCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: ListAccountRolesRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListAccountRolesResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { ListAccountsRequestFilterSensitiveLog, ListAccountsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1ListAccountsCommand, serializeAws_restJson1ListAccountsCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var ListAccountsCommand = (function (_super) {
|
|
7
7
|
__extends(ListAccountsCommand, _super);
|
|
@@ -20,8 +20,8 @@ var ListAccountsCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: ListAccountsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListAccountsResponseFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { LogoutRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1LogoutCommand, serializeAws_restJson1LogoutCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
var LogoutCommand = (function (_super) {
|
|
7
7
|
__extends(LogoutCommand, _super);
|
|
@@ -20,7 +20,7 @@ var LogoutCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: LogoutRequestFilterSensitiveLog,
|
|
24
24
|
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { SSOServiceException as __BaseException } from "./SSOServiceException";
|
|
4
|
-
export var AccountInfo;
|
|
5
|
-
(function (AccountInfo) {
|
|
6
|
-
AccountInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
7
|
-
})(AccountInfo || (AccountInfo = {}));
|
|
8
|
-
export var GetRoleCredentialsRequest;
|
|
9
|
-
(function (GetRoleCredentialsRequest) {
|
|
10
|
-
GetRoleCredentialsRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
11
|
-
})(GetRoleCredentialsRequest || (GetRoleCredentialsRequest = {}));
|
|
12
|
-
export var RoleCredentials;
|
|
13
|
-
(function (RoleCredentials) {
|
|
14
|
-
RoleCredentials.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING })), (obj.sessionToken && { sessionToken: SENSITIVE_STRING }))); };
|
|
15
|
-
})(RoleCredentials || (RoleCredentials = {}));
|
|
16
|
-
export var GetRoleCredentialsResponse;
|
|
17
|
-
(function (GetRoleCredentialsResponse) {
|
|
18
|
-
GetRoleCredentialsResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.roleCredentials && { roleCredentials: RoleCredentials.filterSensitiveLog(obj.roleCredentials) }))); };
|
|
19
|
-
})(GetRoleCredentialsResponse || (GetRoleCredentialsResponse = {}));
|
|
20
4
|
var InvalidRequestException = (function (_super) {
|
|
21
5
|
__extends(InvalidRequestException, _super);
|
|
22
6
|
function InvalidRequestException(opts) {
|
|
@@ -65,27 +49,13 @@ var UnauthorizedException = (function (_super) {
|
|
|
65
49
|
return UnauthorizedException;
|
|
66
50
|
}(__BaseException));
|
|
67
51
|
export { UnauthorizedException };
|
|
68
|
-
export var
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
export var
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
export var
|
|
77
|
-
|
|
78
|
-
ListAccountRolesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
79
|
-
})(ListAccountRolesResponse || (ListAccountRolesResponse = {}));
|
|
80
|
-
export var ListAccountsRequest;
|
|
81
|
-
(function (ListAccountsRequest) {
|
|
82
|
-
ListAccountsRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
83
|
-
})(ListAccountsRequest || (ListAccountsRequest = {}));
|
|
84
|
-
export var ListAccountsResponse;
|
|
85
|
-
(function (ListAccountsResponse) {
|
|
86
|
-
ListAccountsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
87
|
-
})(ListAccountsResponse || (ListAccountsResponse = {}));
|
|
88
|
-
export var LogoutRequest;
|
|
89
|
-
(function (LogoutRequest) {
|
|
90
|
-
LogoutRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
91
|
-
})(LogoutRequest || (LogoutRequest = {}));
|
|
52
|
+
export var AccountInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
53
|
+
export var GetRoleCredentialsRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
54
|
+
export var RoleCredentialsFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING })), (obj.sessionToken && { sessionToken: SENSITIVE_STRING }))); };
|
|
55
|
+
export var GetRoleCredentialsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }))); };
|
|
56
|
+
export var ListAccountRolesRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
57
|
+
export var RoleInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
58
|
+
export var ListAccountRolesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
59
|
+
export var ListAccountsRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
60
|
+
export var ListAccountsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
61
|
+
export var LogoutRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
@@ -496,6 +496,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
496
496
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
497
497
|
var sanitizeErrorCode = function (rawValue) {
|
|
498
498
|
var cleanValue = rawValue;
|
|
499
|
+
if (typeof cleanValue === "number") {
|
|
500
|
+
cleanValue = cleanValue.toString();
|
|
501
|
+
}
|
|
499
502
|
if (cleanValue.indexOf(":") >= 0) {
|
|
500
503
|
cleanValue = cleanValue.split(":")[0];
|
|
501
504
|
}
|
|
@@ -17,12 +17,6 @@ export interface AccountInfo {
|
|
|
17
17
|
*/
|
|
18
18
|
emailAddress?: string;
|
|
19
19
|
}
|
|
20
|
-
export declare namespace AccountInfo {
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
24
|
-
const filterSensitiveLog: (obj: AccountInfo) => any;
|
|
25
|
-
}
|
|
26
20
|
export interface GetRoleCredentialsRequest {
|
|
27
21
|
/**
|
|
28
22
|
* <p>The friendly name of the role that is assigned to the user.</p>
|
|
@@ -38,12 +32,6 @@ export interface GetRoleCredentialsRequest {
|
|
|
38
32
|
*/
|
|
39
33
|
accessToken: string | undefined;
|
|
40
34
|
}
|
|
41
|
-
export declare namespace GetRoleCredentialsRequest {
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
|
-
const filterSensitiveLog: (obj: GetRoleCredentialsRequest) => any;
|
|
46
|
-
}
|
|
47
35
|
/**
|
|
48
36
|
* <p>Provides information about the role credentials that are assigned to the user.</p>
|
|
49
37
|
*/
|
|
@@ -69,24 +57,12 @@ export interface RoleCredentials {
|
|
|
69
57
|
*/
|
|
70
58
|
expiration?: number;
|
|
71
59
|
}
|
|
72
|
-
export declare namespace RoleCredentials {
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
const filterSensitiveLog: (obj: RoleCredentials) => any;
|
|
77
|
-
}
|
|
78
60
|
export interface GetRoleCredentialsResponse {
|
|
79
61
|
/**
|
|
80
62
|
* <p>The credentials for the role that is assigned to the user.</p>
|
|
81
63
|
*/
|
|
82
64
|
roleCredentials?: RoleCredentials;
|
|
83
65
|
}
|
|
84
|
-
export declare namespace GetRoleCredentialsResponse {
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
const filterSensitiveLog: (obj: GetRoleCredentialsResponse) => any;
|
|
89
|
-
}
|
|
90
66
|
/**
|
|
91
67
|
* <p>Indicates that a problem occurred with the input to the request. For example, a required
|
|
92
68
|
* parameter might be missing or out of range.</p>
|
|
@@ -151,12 +127,6 @@ export interface ListAccountRolesRequest {
|
|
|
151
127
|
*/
|
|
152
128
|
accountId: string | undefined;
|
|
153
129
|
}
|
|
154
|
-
export declare namespace ListAccountRolesRequest {
|
|
155
|
-
/**
|
|
156
|
-
* @internal
|
|
157
|
-
*/
|
|
158
|
-
const filterSensitiveLog: (obj: ListAccountRolesRequest) => any;
|
|
159
|
-
}
|
|
160
130
|
/**
|
|
161
131
|
* <p>Provides information about the role that is assigned to the user.</p>
|
|
162
132
|
*/
|
|
@@ -170,12 +140,6 @@ export interface RoleInfo {
|
|
|
170
140
|
*/
|
|
171
141
|
accountId?: string;
|
|
172
142
|
}
|
|
173
|
-
export declare namespace RoleInfo {
|
|
174
|
-
/**
|
|
175
|
-
* @internal
|
|
176
|
-
*/
|
|
177
|
-
const filterSensitiveLog: (obj: RoleInfo) => any;
|
|
178
|
-
}
|
|
179
143
|
export interface ListAccountRolesResponse {
|
|
180
144
|
/**
|
|
181
145
|
* <p>The page token client that is used to retrieve the list of accounts.</p>
|
|
@@ -186,12 +150,6 @@ export interface ListAccountRolesResponse {
|
|
|
186
150
|
*/
|
|
187
151
|
roleList?: RoleInfo[];
|
|
188
152
|
}
|
|
189
|
-
export declare namespace ListAccountRolesResponse {
|
|
190
|
-
/**
|
|
191
|
-
* @internal
|
|
192
|
-
*/
|
|
193
|
-
const filterSensitiveLog: (obj: ListAccountRolesResponse) => any;
|
|
194
|
-
}
|
|
195
153
|
export interface ListAccountsRequest {
|
|
196
154
|
/**
|
|
197
155
|
* <p>(Optional) When requesting subsequent pages, this is the page token from the previous response output.</p>
|
|
@@ -207,12 +165,6 @@ export interface ListAccountsRequest {
|
|
|
207
165
|
*/
|
|
208
166
|
accessToken: string | undefined;
|
|
209
167
|
}
|
|
210
|
-
export declare namespace ListAccountsRequest {
|
|
211
|
-
/**
|
|
212
|
-
* @internal
|
|
213
|
-
*/
|
|
214
|
-
const filterSensitiveLog: (obj: ListAccountsRequest) => any;
|
|
215
|
-
}
|
|
216
168
|
export interface ListAccountsResponse {
|
|
217
169
|
/**
|
|
218
170
|
* <p>The page token client that is used to retrieve the list of accounts.</p>
|
|
@@ -223,12 +175,6 @@ export interface ListAccountsResponse {
|
|
|
223
175
|
*/
|
|
224
176
|
accountList?: AccountInfo[];
|
|
225
177
|
}
|
|
226
|
-
export declare namespace ListAccountsResponse {
|
|
227
|
-
/**
|
|
228
|
-
* @internal
|
|
229
|
-
*/
|
|
230
|
-
const filterSensitiveLog: (obj: ListAccountsResponse) => any;
|
|
231
|
-
}
|
|
232
178
|
export interface LogoutRequest {
|
|
233
179
|
/**
|
|
234
180
|
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
|
|
@@ -236,9 +182,43 @@ export interface LogoutRequest {
|
|
|
236
182
|
*/
|
|
237
183
|
accessToken: string | undefined;
|
|
238
184
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
185
|
+
/**
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
export declare const AccountInfoFilterSensitiveLog: (obj: AccountInfo) => any;
|
|
189
|
+
/**
|
|
190
|
+
* @internal
|
|
191
|
+
*/
|
|
192
|
+
export declare const GetRoleCredentialsRequestFilterSensitiveLog: (obj: GetRoleCredentialsRequest) => any;
|
|
193
|
+
/**
|
|
194
|
+
* @internal
|
|
195
|
+
*/
|
|
196
|
+
export declare const RoleCredentialsFilterSensitiveLog: (obj: RoleCredentials) => any;
|
|
197
|
+
/**
|
|
198
|
+
* @internal
|
|
199
|
+
*/
|
|
200
|
+
export declare const GetRoleCredentialsResponseFilterSensitiveLog: (obj: GetRoleCredentialsResponse) => any;
|
|
201
|
+
/**
|
|
202
|
+
* @internal
|
|
203
|
+
*/
|
|
204
|
+
export declare const ListAccountRolesRequestFilterSensitiveLog: (obj: ListAccountRolesRequest) => any;
|
|
205
|
+
/**
|
|
206
|
+
* @internal
|
|
207
|
+
*/
|
|
208
|
+
export declare const RoleInfoFilterSensitiveLog: (obj: RoleInfo) => any;
|
|
209
|
+
/**
|
|
210
|
+
* @internal
|
|
211
|
+
*/
|
|
212
|
+
export declare const ListAccountRolesResponseFilterSensitiveLog: (obj: ListAccountRolesResponse) => any;
|
|
213
|
+
/**
|
|
214
|
+
* @internal
|
|
215
|
+
*/
|
|
216
|
+
export declare const ListAccountsRequestFilterSensitiveLog: (obj: ListAccountsRequest) => any;
|
|
217
|
+
/**
|
|
218
|
+
* @internal
|
|
219
|
+
*/
|
|
220
|
+
export declare const ListAccountsResponseFilterSensitiveLog: (obj: ListAccountsResponse) => any;
|
|
221
|
+
/**
|
|
222
|
+
* @internal
|
|
223
|
+
*/
|
|
224
|
+
export declare const LogoutRequestFilterSensitiveLog: (obj: LogoutRequest) => any;
|
|
@@ -9,10 +9,6 @@ export interface AccountInfo {
|
|
|
9
9
|
|
|
10
10
|
emailAddress?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare namespace AccountInfo {
|
|
13
|
-
|
|
14
|
-
const filterSensitiveLog: (obj: AccountInfo) => any;
|
|
15
|
-
}
|
|
16
12
|
export interface GetRoleCredentialsRequest {
|
|
17
13
|
|
|
18
14
|
roleName: string | undefined;
|
|
@@ -21,10 +17,6 @@ export interface GetRoleCredentialsRequest {
|
|
|
21
17
|
|
|
22
18
|
accessToken: string | undefined;
|
|
23
19
|
}
|
|
24
|
-
export declare namespace GetRoleCredentialsRequest {
|
|
25
|
-
|
|
26
|
-
const filterSensitiveLog: (obj: GetRoleCredentialsRequest) => any;
|
|
27
|
-
}
|
|
28
20
|
|
|
29
21
|
export interface RoleCredentials {
|
|
30
22
|
|
|
@@ -36,18 +28,10 @@ export interface RoleCredentials {
|
|
|
36
28
|
|
|
37
29
|
expiration?: number;
|
|
38
30
|
}
|
|
39
|
-
export declare namespace RoleCredentials {
|
|
40
|
-
|
|
41
|
-
const filterSensitiveLog: (obj: RoleCredentials) => any;
|
|
42
|
-
}
|
|
43
31
|
export interface GetRoleCredentialsResponse {
|
|
44
32
|
|
|
45
33
|
roleCredentials?: RoleCredentials;
|
|
46
34
|
}
|
|
47
|
-
export declare namespace GetRoleCredentialsResponse {
|
|
48
|
-
|
|
49
|
-
const filterSensitiveLog: (obj: GetRoleCredentialsResponse) => any;
|
|
50
|
-
}
|
|
51
35
|
|
|
52
36
|
export declare class InvalidRequestException extends __BaseException {
|
|
53
37
|
readonly name: "InvalidRequestException";
|
|
@@ -86,10 +70,6 @@ export interface ListAccountRolesRequest {
|
|
|
86
70
|
|
|
87
71
|
accountId: string | undefined;
|
|
88
72
|
}
|
|
89
|
-
export declare namespace ListAccountRolesRequest {
|
|
90
|
-
|
|
91
|
-
const filterSensitiveLog: (obj: ListAccountRolesRequest) => any;
|
|
92
|
-
}
|
|
93
73
|
|
|
94
74
|
export interface RoleInfo {
|
|
95
75
|
|
|
@@ -97,20 +77,12 @@ export interface RoleInfo {
|
|
|
97
77
|
|
|
98
78
|
accountId?: string;
|
|
99
79
|
}
|
|
100
|
-
export declare namespace RoleInfo {
|
|
101
|
-
|
|
102
|
-
const filterSensitiveLog: (obj: RoleInfo) => any;
|
|
103
|
-
}
|
|
104
80
|
export interface ListAccountRolesResponse {
|
|
105
81
|
|
|
106
82
|
nextToken?: string;
|
|
107
83
|
|
|
108
84
|
roleList?: RoleInfo[];
|
|
109
85
|
}
|
|
110
|
-
export declare namespace ListAccountRolesResponse {
|
|
111
|
-
|
|
112
|
-
const filterSensitiveLog: (obj: ListAccountRolesResponse) => any;
|
|
113
|
-
}
|
|
114
86
|
export interface ListAccountsRequest {
|
|
115
87
|
|
|
116
88
|
nextToken?: string;
|
|
@@ -119,25 +91,33 @@ export interface ListAccountsRequest {
|
|
|
119
91
|
|
|
120
92
|
accessToken: string | undefined;
|
|
121
93
|
}
|
|
122
|
-
export declare namespace ListAccountsRequest {
|
|
123
|
-
|
|
124
|
-
const filterSensitiveLog: (obj: ListAccountsRequest) => any;
|
|
125
|
-
}
|
|
126
94
|
export interface ListAccountsResponse {
|
|
127
95
|
|
|
128
96
|
nextToken?: string;
|
|
129
97
|
|
|
130
98
|
accountList?: AccountInfo[];
|
|
131
99
|
}
|
|
132
|
-
export declare namespace ListAccountsResponse {
|
|
133
|
-
|
|
134
|
-
const filterSensitiveLog: (obj: ListAccountsResponse) => any;
|
|
135
|
-
}
|
|
136
100
|
export interface LogoutRequest {
|
|
137
101
|
|
|
138
102
|
accessToken: string | undefined;
|
|
139
103
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
104
|
+
|
|
105
|
+
export declare const AccountInfoFilterSensitiveLog: (obj: AccountInfo) => any;
|
|
106
|
+
|
|
107
|
+
export declare const GetRoleCredentialsRequestFilterSensitiveLog: (obj: GetRoleCredentialsRequest) => any;
|
|
108
|
+
|
|
109
|
+
export declare const RoleCredentialsFilterSensitiveLog: (obj: RoleCredentials) => any;
|
|
110
|
+
|
|
111
|
+
export declare const GetRoleCredentialsResponseFilterSensitiveLog: (obj: GetRoleCredentialsResponse) => any;
|
|
112
|
+
|
|
113
|
+
export declare const ListAccountRolesRequestFilterSensitiveLog: (obj: ListAccountRolesRequest) => any;
|
|
114
|
+
|
|
115
|
+
export declare const RoleInfoFilterSensitiveLog: (obj: RoleInfo) => any;
|
|
116
|
+
|
|
117
|
+
export declare const ListAccountRolesResponseFilterSensitiveLog: (obj: ListAccountRolesResponse) => any;
|
|
118
|
+
|
|
119
|
+
export declare const ListAccountsRequestFilterSensitiveLog: (obj: ListAccountsRequest) => any;
|
|
120
|
+
|
|
121
|
+
export declare const ListAccountsResponseFilterSensitiveLog: (obj: ListAccountsResponse) => any;
|
|
122
|
+
|
|
123
|
+
export declare const LogoutRequestFilterSensitiveLog: (obj: LogoutRequest) => any;
|
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.
|
|
4
|
+
"version": "3.137.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/config-resolver": "3.
|
|
22
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
21
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
22
|
+
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
23
23
|
"@aws-sdk/hash-node": "3.127.0",
|
|
24
24
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
25
25
|
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
34
34
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
35
35
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
36
|
-
"@aws-sdk/smithy-client": "3.
|
|
36
|
+
"@aws-sdk/smithy-client": "3.137.0",
|
|
37
37
|
"@aws-sdk/types": "3.127.0",
|
|
38
38
|
"@aws-sdk/url-parser": "3.127.0",
|
|
39
39
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
40
40
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
41
41
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
42
42
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
43
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
44
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
43
|
+
"@aws-sdk/util-defaults-mode-browser": "3.137.0",
|
|
44
|
+
"@aws-sdk/util-defaults-mode-node": "3.137.0",
|
|
45
45
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
46
46
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
47
47
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|