@aws-sdk/client-sso-oidc 3.120.0 → 3.128.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/endpoints.js +18 -0
- package/dist-cjs/protocols/Aws_restJson1.js +29 -29
- package/dist-es/endpoints.js +18 -0
- package/dist-es/protocols/Aws_restJson1.js +18 -18
- package/package.json +23 -23
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.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-sso-oidc
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** update client endpoints as of 2022-07-11 ([65a0485](https://github.com/aws/aws-sdk-js-v3/commit/65a0485cef3786eda9bc4d3186fd68c2dc84c809))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.120.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.119.0...v3.120.0) (2022-06-29)
|
|
7
37
|
|
|
8
38
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -3,6 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultRegionInfoProvider = void 0;
|
|
4
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
5
|
const regionHash = {
|
|
6
|
+
"ap-east-1": {
|
|
7
|
+
variants: [
|
|
8
|
+
{
|
|
9
|
+
hostname: "oidc.ap-east-1.amazonaws.com",
|
|
10
|
+
tags: [],
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
signingRegion: "ap-east-1",
|
|
14
|
+
},
|
|
6
15
|
"ap-northeast-1": {
|
|
7
16
|
variants: [
|
|
8
17
|
{
|
|
@@ -120,6 +129,15 @@ const regionHash = {
|
|
|
120
129
|
],
|
|
121
130
|
signingRegion: "eu-west-3",
|
|
122
131
|
},
|
|
132
|
+
"me-south-1": {
|
|
133
|
+
variants: [
|
|
134
|
+
{
|
|
135
|
+
hostname: "oidc.me-south-1.amazonaws.com",
|
|
136
|
+
tags: [],
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
signingRegion: "me-south-1",
|
|
140
|
+
},
|
|
123
141
|
"sa-east-1": {
|
|
124
142
|
variants: [
|
|
125
143
|
{
|
|
@@ -13,15 +13,14 @@ const serializeAws_restJson1CreateTokenCommand = async (input, context) => {
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/token";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.clientId
|
|
17
|
-
...(input.clientSecret
|
|
18
|
-
...(input.code
|
|
19
|
-
...(input.deviceCode
|
|
20
|
-
...(input.grantType
|
|
21
|
-
...(input.redirectUri
|
|
22
|
-
...(input.refreshToken
|
|
23
|
-
...(input.scope
|
|
24
|
-
input.scope !== null && { scope: serializeAws_restJson1Scopes(input.scope, context) }),
|
|
16
|
+
...(input.clientId != null && { clientId: input.clientId }),
|
|
17
|
+
...(input.clientSecret != null && { clientSecret: input.clientSecret }),
|
|
18
|
+
...(input.code != null && { code: input.code }),
|
|
19
|
+
...(input.deviceCode != null && { deviceCode: input.deviceCode }),
|
|
20
|
+
...(input.grantType != null && { grantType: input.grantType }),
|
|
21
|
+
...(input.redirectUri != null && { redirectUri: input.redirectUri }),
|
|
22
|
+
...(input.refreshToken != null && { refreshToken: input.refreshToken }),
|
|
23
|
+
...(input.scope != null && { scope: serializeAws_restJson1Scopes(input.scope, context) }),
|
|
25
24
|
});
|
|
26
25
|
return new protocol_http_1.HttpRequest({
|
|
27
26
|
protocol,
|
|
@@ -42,10 +41,9 @@ const serializeAws_restJson1RegisterClientCommand = async (input, context) => {
|
|
|
42
41
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/client/register";
|
|
43
42
|
let body;
|
|
44
43
|
body = JSON.stringify({
|
|
45
|
-
...(input.clientName
|
|
46
|
-
...(input.clientType
|
|
47
|
-
...(input.scopes
|
|
48
|
-
input.scopes !== null && { scopes: serializeAws_restJson1Scopes(input.scopes, context) }),
|
|
44
|
+
...(input.clientName != null && { clientName: input.clientName }),
|
|
45
|
+
...(input.clientType != null && { clientType: input.clientType }),
|
|
46
|
+
...(input.scopes != null && { scopes: serializeAws_restJson1Scopes(input.scopes, context) }),
|
|
49
47
|
});
|
|
50
48
|
return new protocol_http_1.HttpRequest({
|
|
51
49
|
protocol,
|
|
@@ -66,9 +64,9 @@ const serializeAws_restJson1StartDeviceAuthorizationCommand = async (input, cont
|
|
|
66
64
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/device_authorization";
|
|
67
65
|
let body;
|
|
68
66
|
body = JSON.stringify({
|
|
69
|
-
...(input.clientId
|
|
70
|
-
...(input.clientSecret
|
|
71
|
-
...(input.startUrl
|
|
67
|
+
...(input.clientId != null && { clientId: input.clientId }),
|
|
68
|
+
...(input.clientSecret != null && { clientSecret: input.clientSecret }),
|
|
69
|
+
...(input.startUrl != null && { startUrl: input.startUrl }),
|
|
72
70
|
});
|
|
73
71
|
return new protocol_http_1.HttpRequest({
|
|
74
72
|
protocol,
|
|
@@ -118,8 +116,7 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
|
|
|
118
116
|
body: await parseBody(output.body, context),
|
|
119
117
|
};
|
|
120
118
|
let response;
|
|
121
|
-
|
|
122
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
119
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
123
120
|
switch (errorCode) {
|
|
124
121
|
case "AccessDeniedException":
|
|
125
122
|
case "com.amazonaws.ssooidc#AccessDeniedException":
|
|
@@ -156,10 +153,12 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
|
|
|
156
153
|
throw await deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse(parsedOutput, context);
|
|
157
154
|
default:
|
|
158
155
|
const parsedBody = parsedOutput.body;
|
|
156
|
+
const $metadata = deserializeMetadata(output);
|
|
157
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
159
158
|
response = new SSOOIDCServiceException_1.SSOOIDCServiceException({
|
|
160
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
159
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
161
160
|
$fault: "client",
|
|
162
|
-
$metadata
|
|
161
|
+
$metadata,
|
|
163
162
|
});
|
|
164
163
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
165
164
|
}
|
|
@@ -205,8 +204,7 @@ const deserializeAws_restJson1RegisterClientCommandError = async (output, contex
|
|
|
205
204
|
body: await parseBody(output.body, context),
|
|
206
205
|
};
|
|
207
206
|
let response;
|
|
208
|
-
|
|
209
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
207
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
210
208
|
switch (errorCode) {
|
|
211
209
|
case "InternalServerException":
|
|
212
210
|
case "com.amazonaws.ssooidc#InternalServerException":
|
|
@@ -222,10 +220,12 @@ const deserializeAws_restJson1RegisterClientCommandError = async (output, contex
|
|
|
222
220
|
throw await deserializeAws_restJson1InvalidScopeExceptionResponse(parsedOutput, context);
|
|
223
221
|
default:
|
|
224
222
|
const parsedBody = parsedOutput.body;
|
|
223
|
+
const $metadata = deserializeMetadata(output);
|
|
224
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
225
225
|
response = new SSOOIDCServiceException_1.SSOOIDCServiceException({
|
|
226
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
226
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
227
227
|
$fault: "client",
|
|
228
|
-
$metadata
|
|
228
|
+
$metadata,
|
|
229
229
|
});
|
|
230
230
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
231
231
|
}
|
|
@@ -271,8 +271,7 @@ const deserializeAws_restJson1StartDeviceAuthorizationCommandError = async (outp
|
|
|
271
271
|
body: await parseBody(output.body, context),
|
|
272
272
|
};
|
|
273
273
|
let response;
|
|
274
|
-
|
|
275
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
274
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
276
275
|
switch (errorCode) {
|
|
277
276
|
case "InternalServerException":
|
|
278
277
|
case "com.amazonaws.ssooidc#InternalServerException":
|
|
@@ -291,10 +290,12 @@ const deserializeAws_restJson1StartDeviceAuthorizationCommandError = async (outp
|
|
|
291
290
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
292
291
|
default:
|
|
293
292
|
const parsedBody = parsedOutput.body;
|
|
293
|
+
const $metadata = deserializeMetadata(output);
|
|
294
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
294
295
|
response = new SSOOIDCServiceException_1.SSOOIDCServiceException({
|
|
295
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
296
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
296
297
|
$fault: "client",
|
|
297
|
-
$metadata
|
|
298
|
+
$metadata,
|
|
298
299
|
});
|
|
299
300
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
300
301
|
}
|
|
@@ -538,5 +539,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
538
539
|
if (data["__type"] !== undefined) {
|
|
539
540
|
return sanitizeErrorCode(data["__type"]);
|
|
540
541
|
}
|
|
541
|
-
return "";
|
|
542
542
|
};
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
3
|
var regionHash = {
|
|
4
|
+
"ap-east-1": {
|
|
5
|
+
variants: [
|
|
6
|
+
{
|
|
7
|
+
hostname: "oidc.ap-east-1.amazonaws.com",
|
|
8
|
+
tags: [],
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
signingRegion: "ap-east-1",
|
|
12
|
+
},
|
|
4
13
|
"ap-northeast-1": {
|
|
5
14
|
variants: [
|
|
6
15
|
{
|
|
@@ -118,6 +127,15 @@ var regionHash = {
|
|
|
118
127
|
],
|
|
119
128
|
signingRegion: "eu-west-3",
|
|
120
129
|
},
|
|
130
|
+
"me-south-1": {
|
|
131
|
+
variants: [
|
|
132
|
+
{
|
|
133
|
+
hostname: "oidc.me-south-1.amazonaws.com",
|
|
134
|
+
tags: [],
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
signingRegion: "me-south-1",
|
|
138
|
+
},
|
|
121
139
|
"sa-east-1": {
|
|
122
140
|
variants: [
|
|
123
141
|
{
|
|
@@ -14,8 +14,7 @@ export var serializeAws_restJson1CreateTokenCommand = function (input, context)
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/token";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.clientId
|
|
18
|
-
input.scope !== null && { scope: serializeAws_restJson1Scopes(input.scope, context) })));
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.clientId != null && { clientId: input.clientId })), (input.clientSecret != null && { clientSecret: input.clientSecret })), (input.code != null && { code: input.code })), (input.deviceCode != null && { deviceCode: input.deviceCode })), (input.grantType != null && { grantType: input.grantType })), (input.redirectUri != null && { redirectUri: input.redirectUri })), (input.refreshToken != null && { refreshToken: input.refreshToken })), (input.scope != null && { scope: serializeAws_restJson1Scopes(input.scope, context) })));
|
|
19
18
|
return [2, new __HttpRequest({
|
|
20
19
|
protocol: protocol,
|
|
21
20
|
hostname: hostname,
|
|
@@ -39,8 +38,7 @@ export var serializeAws_restJson1RegisterClientCommand = function (input, contex
|
|
|
39
38
|
"content-type": "application/json",
|
|
40
39
|
};
|
|
41
40
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/client/register";
|
|
42
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.clientName
|
|
43
|
-
input.scopes !== null && { scopes: serializeAws_restJson1Scopes(input.scopes, context) })));
|
|
41
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.clientName != null && { clientName: input.clientName })), (input.clientType != null && { clientType: input.clientType })), (input.scopes != null && { scopes: serializeAws_restJson1Scopes(input.scopes, context) })));
|
|
44
42
|
return [2, new __HttpRequest({
|
|
45
43
|
protocol: protocol,
|
|
46
44
|
hostname: hostname,
|
|
@@ -64,7 +62,7 @@ export var serializeAws_restJson1StartDeviceAuthorizationCommand = function (inp
|
|
|
64
62
|
"content-type": "application/json",
|
|
65
63
|
};
|
|
66
64
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/device_authorization";
|
|
67
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.clientId
|
|
65
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.clientId != null && { clientId: input.clientId })), (input.clientSecret != null && { clientSecret: input.clientSecret })), (input.startUrl != null && { startUrl: input.startUrl })));
|
|
68
66
|
return [2, new __HttpRequest({
|
|
69
67
|
protocol: protocol,
|
|
70
68
|
hostname: hostname,
|
|
@@ -118,7 +116,7 @@ export var deserializeAws_restJson1CreateTokenCommand = function (output, contex
|
|
|
118
116
|
});
|
|
119
117
|
}); };
|
|
120
118
|
var deserializeAws_restJson1CreateTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
121
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
119
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
122
120
|
var _c;
|
|
123
121
|
return __generator(this, function (_d) {
|
|
124
122
|
switch (_d.label) {
|
|
@@ -128,7 +126,6 @@ var deserializeAws_restJson1CreateTokenCommandError = function (output, context)
|
|
|
128
126
|
return [4, parseBody(output.body, context)];
|
|
129
127
|
case 1:
|
|
130
128
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
131
|
-
errorCode = "UnknownError";
|
|
132
129
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
133
130
|
_b = errorCode;
|
|
134
131
|
switch (_b) {
|
|
@@ -180,10 +177,12 @@ var deserializeAws_restJson1CreateTokenCommandError = function (output, context)
|
|
|
180
177
|
case 23: throw _d.sent();
|
|
181
178
|
case 24:
|
|
182
179
|
parsedBody = parsedOutput.body;
|
|
180
|
+
$metadata = deserializeMetadata(output);
|
|
181
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
183
182
|
response = new __BaseException({
|
|
184
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
183
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
185
184
|
$fault: "client",
|
|
186
|
-
$metadata:
|
|
185
|
+
$metadata: $metadata,
|
|
187
186
|
});
|
|
188
187
|
throw __decorateServiceException(response, parsedBody);
|
|
189
188
|
}
|
|
@@ -234,7 +233,7 @@ export var deserializeAws_restJson1RegisterClientCommand = function (output, con
|
|
|
234
233
|
});
|
|
235
234
|
}); };
|
|
236
235
|
var deserializeAws_restJson1RegisterClientCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
237
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
236
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
238
237
|
var _c;
|
|
239
238
|
return __generator(this, function (_d) {
|
|
240
239
|
switch (_d.label) {
|
|
@@ -244,7 +243,6 @@ var deserializeAws_restJson1RegisterClientCommandError = function (output, conte
|
|
|
244
243
|
return [4, parseBody(output.body, context)];
|
|
245
244
|
case 1:
|
|
246
245
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
247
|
-
errorCode = "UnknownError";
|
|
248
246
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
249
247
|
_b = errorCode;
|
|
250
248
|
switch (_b) {
|
|
@@ -268,10 +266,12 @@ var deserializeAws_restJson1RegisterClientCommandError = function (output, conte
|
|
|
268
266
|
case 9: throw _d.sent();
|
|
269
267
|
case 10:
|
|
270
268
|
parsedBody = parsedOutput.body;
|
|
269
|
+
$metadata = deserializeMetadata(output);
|
|
270
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
271
271
|
response = new __BaseException({
|
|
272
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
272
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
273
273
|
$fault: "client",
|
|
274
|
-
$metadata:
|
|
274
|
+
$metadata: $metadata,
|
|
275
275
|
});
|
|
276
276
|
throw __decorateServiceException(response, parsedBody);
|
|
277
277
|
}
|
|
@@ -322,7 +322,7 @@ export var deserializeAws_restJson1StartDeviceAuthorizationCommand = function (o
|
|
|
322
322
|
});
|
|
323
323
|
}); };
|
|
324
324
|
var deserializeAws_restJson1StartDeviceAuthorizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
325
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
325
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
326
326
|
var _c;
|
|
327
327
|
return __generator(this, function (_d) {
|
|
328
328
|
switch (_d.label) {
|
|
@@ -332,7 +332,6 @@ var deserializeAws_restJson1StartDeviceAuthorizationCommandError = function (out
|
|
|
332
332
|
return [4, parseBody(output.body, context)];
|
|
333
333
|
case 1:
|
|
334
334
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
335
|
-
errorCode = "UnknownError";
|
|
336
335
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
337
336
|
_b = errorCode;
|
|
338
337
|
switch (_b) {
|
|
@@ -360,10 +359,12 @@ var deserializeAws_restJson1StartDeviceAuthorizationCommandError = function (out
|
|
|
360
359
|
case 11: throw _d.sent();
|
|
361
360
|
case 12:
|
|
362
361
|
parsedBody = parsedOutput.body;
|
|
362
|
+
$metadata = deserializeMetadata(output);
|
|
363
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
363
364
|
response = new __BaseException({
|
|
364
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
365
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
365
366
|
$fault: "client",
|
|
366
|
-
$metadata:
|
|
367
|
+
$metadata: $metadata,
|
|
367
368
|
});
|
|
368
369
|
throw __decorateServiceException(response, parsedBody);
|
|
369
370
|
}
|
|
@@ -615,5 +616,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
615
616
|
if (data["__type"] !== undefined) {
|
|
616
617
|
return sanitizeErrorCode(data["__type"]);
|
|
617
618
|
}
|
|
618
|
-
return "";
|
|
619
619
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso-oidc",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.128.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,32 +18,32 @@
|
|
|
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.
|
|
23
|
-
"@aws-sdk/hash-node": "3.
|
|
24
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
25
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-retry": "3.
|
|
30
|
-
"@aws-sdk/middleware-serde": "3.
|
|
31
|
-
"@aws-sdk/middleware-stack": "3.
|
|
32
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
33
|
-
"@aws-sdk/node-config-provider": "3.
|
|
34
|
-
"@aws-sdk/node-http-handler": "3.
|
|
35
|
-
"@aws-sdk/protocol-http": "3.
|
|
36
|
-
"@aws-sdk/smithy-client": "3.
|
|
37
|
-
"@aws-sdk/types": "3.
|
|
38
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/config-resolver": "3.128.0",
|
|
22
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
23
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
25
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
33
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
34
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
35
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
36
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
37
|
+
"@aws-sdk/types": "3.127.0",
|
|
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.
|
|
45
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
46
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
43
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
44
|
+
"@aws-sdk/util-defaults-mode-node": "3.128.0",
|
|
45
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
46
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
47
47
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
48
48
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
49
49
|
"tslib": "^2.3.1"
|