@aws-sdk/client-sso-oidc 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +78 -106
- package/dist-es/protocols/Aws_restJson1.js +88 -107
- package/package.json +4 -4
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.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -83,31 +83,26 @@ const deserializeAws_restJson1CreateTokenCommand = async (output, context) => {
|
|
|
83
83
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
84
84
|
return deserializeAws_restJson1CreateTokenCommandError(output, context);
|
|
85
85
|
}
|
|
86
|
-
const contents = {
|
|
86
|
+
const contents = map({
|
|
87
87
|
$metadata: deserializeMetadata(output),
|
|
88
|
-
|
|
89
|
-
expiresIn: undefined,
|
|
90
|
-
idToken: undefined,
|
|
91
|
-
refreshToken: undefined,
|
|
92
|
-
tokenType: undefined,
|
|
93
|
-
};
|
|
88
|
+
});
|
|
94
89
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
95
|
-
if (data.accessToken
|
|
90
|
+
if (data.accessToken != null) {
|
|
96
91
|
contents.accessToken = (0, smithy_client_1.expectString)(data.accessToken);
|
|
97
92
|
}
|
|
98
|
-
if (data.expiresIn
|
|
93
|
+
if (data.expiresIn != null) {
|
|
99
94
|
contents.expiresIn = (0, smithy_client_1.expectInt32)(data.expiresIn);
|
|
100
95
|
}
|
|
101
|
-
if (data.idToken
|
|
96
|
+
if (data.idToken != null) {
|
|
102
97
|
contents.idToken = (0, smithy_client_1.expectString)(data.idToken);
|
|
103
98
|
}
|
|
104
|
-
if (data.refreshToken
|
|
99
|
+
if (data.refreshToken != null) {
|
|
105
100
|
contents.refreshToken = (0, smithy_client_1.expectString)(data.refreshToken);
|
|
106
101
|
}
|
|
107
|
-
if (data.tokenType
|
|
102
|
+
if (data.tokenType != null) {
|
|
108
103
|
contents.tokenType = (0, smithy_client_1.expectString)(data.tokenType);
|
|
109
104
|
}
|
|
110
|
-
return
|
|
105
|
+
return contents;
|
|
111
106
|
};
|
|
112
107
|
exports.deserializeAws_restJson1CreateTokenCommand = deserializeAws_restJson1CreateTokenCommand;
|
|
113
108
|
const deserializeAws_restJson1CreateTokenCommandError = async (output, context) => {
|
|
@@ -115,7 +110,6 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
|
|
|
115
110
|
...output,
|
|
116
111
|
body: await parseBody(output.body, context),
|
|
117
112
|
};
|
|
118
|
-
let response;
|
|
119
113
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
120
114
|
switch (errorCode) {
|
|
121
115
|
case "AccessDeniedException":
|
|
@@ -153,49 +147,41 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
|
|
|
153
147
|
throw await deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse(parsedOutput, context);
|
|
154
148
|
default:
|
|
155
149
|
const parsedBody = parsedOutput.body;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
$metadata,
|
|
150
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
151
|
+
output,
|
|
152
|
+
parsedBody,
|
|
153
|
+
exceptionCtor: SSOOIDCServiceException_1.SSOOIDCServiceException,
|
|
154
|
+
errorCode,
|
|
162
155
|
});
|
|
163
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
164
156
|
}
|
|
165
157
|
};
|
|
166
158
|
const deserializeAws_restJson1RegisterClientCommand = async (output, context) => {
|
|
167
159
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
168
160
|
return deserializeAws_restJson1RegisterClientCommandError(output, context);
|
|
169
161
|
}
|
|
170
|
-
const contents = {
|
|
162
|
+
const contents = map({
|
|
171
163
|
$metadata: deserializeMetadata(output),
|
|
172
|
-
|
|
173
|
-
clientId: undefined,
|
|
174
|
-
clientIdIssuedAt: undefined,
|
|
175
|
-
clientSecret: undefined,
|
|
176
|
-
clientSecretExpiresAt: undefined,
|
|
177
|
-
tokenEndpoint: undefined,
|
|
178
|
-
};
|
|
164
|
+
});
|
|
179
165
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
180
|
-
if (data.authorizationEndpoint
|
|
166
|
+
if (data.authorizationEndpoint != null) {
|
|
181
167
|
contents.authorizationEndpoint = (0, smithy_client_1.expectString)(data.authorizationEndpoint);
|
|
182
168
|
}
|
|
183
|
-
if (data.clientId
|
|
169
|
+
if (data.clientId != null) {
|
|
184
170
|
contents.clientId = (0, smithy_client_1.expectString)(data.clientId);
|
|
185
171
|
}
|
|
186
|
-
if (data.clientIdIssuedAt
|
|
172
|
+
if (data.clientIdIssuedAt != null) {
|
|
187
173
|
contents.clientIdIssuedAt = (0, smithy_client_1.expectLong)(data.clientIdIssuedAt);
|
|
188
174
|
}
|
|
189
|
-
if (data.clientSecret
|
|
175
|
+
if (data.clientSecret != null) {
|
|
190
176
|
contents.clientSecret = (0, smithy_client_1.expectString)(data.clientSecret);
|
|
191
177
|
}
|
|
192
|
-
if (data.clientSecretExpiresAt
|
|
178
|
+
if (data.clientSecretExpiresAt != null) {
|
|
193
179
|
contents.clientSecretExpiresAt = (0, smithy_client_1.expectLong)(data.clientSecretExpiresAt);
|
|
194
180
|
}
|
|
195
|
-
if (data.tokenEndpoint
|
|
181
|
+
if (data.tokenEndpoint != null) {
|
|
196
182
|
contents.tokenEndpoint = (0, smithy_client_1.expectString)(data.tokenEndpoint);
|
|
197
183
|
}
|
|
198
|
-
return
|
|
184
|
+
return contents;
|
|
199
185
|
};
|
|
200
186
|
exports.deserializeAws_restJson1RegisterClientCommand = deserializeAws_restJson1RegisterClientCommand;
|
|
201
187
|
const deserializeAws_restJson1RegisterClientCommandError = async (output, context) => {
|
|
@@ -203,7 +189,6 @@ const deserializeAws_restJson1RegisterClientCommandError = async (output, contex
|
|
|
203
189
|
...output,
|
|
204
190
|
body: await parseBody(output.body, context),
|
|
205
191
|
};
|
|
206
|
-
let response;
|
|
207
192
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
208
193
|
switch (errorCode) {
|
|
209
194
|
case "InternalServerException":
|
|
@@ -220,49 +205,41 @@ const deserializeAws_restJson1RegisterClientCommandError = async (output, contex
|
|
|
220
205
|
throw await deserializeAws_restJson1InvalidScopeExceptionResponse(parsedOutput, context);
|
|
221
206
|
default:
|
|
222
207
|
const parsedBody = parsedOutput.body;
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
$metadata,
|
|
208
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
209
|
+
output,
|
|
210
|
+
parsedBody,
|
|
211
|
+
exceptionCtor: SSOOIDCServiceException_1.SSOOIDCServiceException,
|
|
212
|
+
errorCode,
|
|
229
213
|
});
|
|
230
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
231
214
|
}
|
|
232
215
|
};
|
|
233
216
|
const deserializeAws_restJson1StartDeviceAuthorizationCommand = async (output, context) => {
|
|
234
217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
235
218
|
return deserializeAws_restJson1StartDeviceAuthorizationCommandError(output, context);
|
|
236
219
|
}
|
|
237
|
-
const contents = {
|
|
220
|
+
const contents = map({
|
|
238
221
|
$metadata: deserializeMetadata(output),
|
|
239
|
-
|
|
240
|
-
expiresIn: undefined,
|
|
241
|
-
interval: undefined,
|
|
242
|
-
userCode: undefined,
|
|
243
|
-
verificationUri: undefined,
|
|
244
|
-
verificationUriComplete: undefined,
|
|
245
|
-
};
|
|
222
|
+
});
|
|
246
223
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
247
|
-
if (data.deviceCode
|
|
224
|
+
if (data.deviceCode != null) {
|
|
248
225
|
contents.deviceCode = (0, smithy_client_1.expectString)(data.deviceCode);
|
|
249
226
|
}
|
|
250
|
-
if (data.expiresIn
|
|
227
|
+
if (data.expiresIn != null) {
|
|
251
228
|
contents.expiresIn = (0, smithy_client_1.expectInt32)(data.expiresIn);
|
|
252
229
|
}
|
|
253
|
-
if (data.interval
|
|
230
|
+
if (data.interval != null) {
|
|
254
231
|
contents.interval = (0, smithy_client_1.expectInt32)(data.interval);
|
|
255
232
|
}
|
|
256
|
-
if (data.userCode
|
|
233
|
+
if (data.userCode != null) {
|
|
257
234
|
contents.userCode = (0, smithy_client_1.expectString)(data.userCode);
|
|
258
235
|
}
|
|
259
|
-
if (data.verificationUri
|
|
236
|
+
if (data.verificationUri != null) {
|
|
260
237
|
contents.verificationUri = (0, smithy_client_1.expectString)(data.verificationUri);
|
|
261
238
|
}
|
|
262
|
-
if (data.verificationUriComplete
|
|
239
|
+
if (data.verificationUriComplete != null) {
|
|
263
240
|
contents.verificationUriComplete = (0, smithy_client_1.expectString)(data.verificationUriComplete);
|
|
264
241
|
}
|
|
265
|
-
return
|
|
242
|
+
return contents;
|
|
266
243
|
};
|
|
267
244
|
exports.deserializeAws_restJson1StartDeviceAuthorizationCommand = deserializeAws_restJson1StartDeviceAuthorizationCommand;
|
|
268
245
|
const deserializeAws_restJson1StartDeviceAuthorizationCommandError = async (output, context) => {
|
|
@@ -270,7 +247,6 @@ const deserializeAws_restJson1StartDeviceAuthorizationCommandError = async (outp
|
|
|
270
247
|
...output,
|
|
271
248
|
body: await parseBody(output.body, context),
|
|
272
249
|
};
|
|
273
|
-
let response;
|
|
274
250
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
275
251
|
switch (errorCode) {
|
|
276
252
|
case "InternalServerException":
|
|
@@ -290,23 +266,22 @@ const deserializeAws_restJson1StartDeviceAuthorizationCommandError = async (outp
|
|
|
290
266
|
throw await deserializeAws_restJson1UnauthorizedClientExceptionResponse(parsedOutput, context);
|
|
291
267
|
default:
|
|
292
268
|
const parsedBody = parsedOutput.body;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
$metadata,
|
|
269
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
270
|
+
output,
|
|
271
|
+
parsedBody,
|
|
272
|
+
exceptionCtor: SSOOIDCServiceException_1.SSOOIDCServiceException,
|
|
273
|
+
errorCode,
|
|
299
274
|
});
|
|
300
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
301
275
|
}
|
|
302
276
|
};
|
|
277
|
+
const map = smithy_client_1.map;
|
|
303
278
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
304
|
-
const contents = {};
|
|
279
|
+
const contents = map({});
|
|
305
280
|
const data = parsedOutput.body;
|
|
306
|
-
if (data.error
|
|
281
|
+
if (data.error != null) {
|
|
307
282
|
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
308
283
|
}
|
|
309
|
-
if (data.error_description
|
|
284
|
+
if (data.error_description != null) {
|
|
310
285
|
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
311
286
|
}
|
|
312
287
|
const exception = new models_0_1.AccessDeniedException({
|
|
@@ -316,12 +291,12 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
316
291
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
317
292
|
};
|
|
318
293
|
const deserializeAws_restJson1AuthorizationPendingExceptionResponse = async (parsedOutput, context) => {
|
|
319
|
-
const contents = {};
|
|
294
|
+
const contents = map({});
|
|
320
295
|
const data = parsedOutput.body;
|
|
321
|
-
if (data.error
|
|
296
|
+
if (data.error != null) {
|
|
322
297
|
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
323
298
|
}
|
|
324
|
-
if (data.error_description
|
|
299
|
+
if (data.error_description != null) {
|
|
325
300
|
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
326
301
|
}
|
|
327
302
|
const exception = new models_0_1.AuthorizationPendingException({
|
|
@@ -331,12 +306,12 @@ const deserializeAws_restJson1AuthorizationPendingExceptionResponse = async (par
|
|
|
331
306
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
332
307
|
};
|
|
333
308
|
const deserializeAws_restJson1ExpiredTokenExceptionResponse = async (parsedOutput, context) => {
|
|
334
|
-
const contents = {};
|
|
309
|
+
const contents = map({});
|
|
335
310
|
const data = parsedOutput.body;
|
|
336
|
-
if (data.error
|
|
311
|
+
if (data.error != null) {
|
|
337
312
|
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
338
313
|
}
|
|
339
|
-
if (data.error_description
|
|
314
|
+
if (data.error_description != null) {
|
|
340
315
|
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
341
316
|
}
|
|
342
317
|
const exception = new models_0_1.ExpiredTokenException({
|
|
@@ -346,12 +321,12 @@ const deserializeAws_restJson1ExpiredTokenExceptionResponse = async (parsedOutpu
|
|
|
346
321
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
347
322
|
};
|
|
348
323
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
349
|
-
const contents = {};
|
|
324
|
+
const contents = map({});
|
|
350
325
|
const data = parsedOutput.body;
|
|
351
|
-
if (data.error
|
|
326
|
+
if (data.error != null) {
|
|
352
327
|
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
353
328
|
}
|
|
354
|
-
if (data.error_description
|
|
329
|
+
if (data.error_description != null) {
|
|
355
330
|
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
356
331
|
}
|
|
357
332
|
const exception = new models_0_1.InternalServerException({
|
|
@@ -361,12 +336,12 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
361
336
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
362
337
|
};
|
|
363
338
|
const deserializeAws_restJson1InvalidClientExceptionResponse = async (parsedOutput, context) => {
|
|
364
|
-
const contents = {};
|
|
339
|
+
const contents = map({});
|
|
365
340
|
const data = parsedOutput.body;
|
|
366
|
-
if (data.error
|
|
341
|
+
if (data.error != null) {
|
|
367
342
|
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
368
343
|
}
|
|
369
|
-
if (data.error_description
|
|
344
|
+
if (data.error_description != null) {
|
|
370
345
|
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
371
346
|
}
|
|
372
347
|
const exception = new models_0_1.InvalidClientException({
|
|
@@ -376,12 +351,12 @@ const deserializeAws_restJson1InvalidClientExceptionResponse = async (parsedOutp
|
|
|
376
351
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
377
352
|
};
|
|
378
353
|
const deserializeAws_restJson1InvalidClientMetadataExceptionResponse = async (parsedOutput, context) => {
|
|
379
|
-
const contents = {};
|
|
354
|
+
const contents = map({});
|
|
380
355
|
const data = parsedOutput.body;
|
|
381
|
-
if (data.error
|
|
356
|
+
if (data.error != null) {
|
|
382
357
|
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
383
358
|
}
|
|
384
|
-
if (data.error_description
|
|
359
|
+
if (data.error_description != null) {
|
|
385
360
|
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
386
361
|
}
|
|
387
362
|
const exception = new models_0_1.InvalidClientMetadataException({
|
|
@@ -391,12 +366,12 @@ const deserializeAws_restJson1InvalidClientMetadataExceptionResponse = async (pa
|
|
|
391
366
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
392
367
|
};
|
|
393
368
|
const deserializeAws_restJson1InvalidGrantExceptionResponse = async (parsedOutput, context) => {
|
|
394
|
-
const contents = {};
|
|
369
|
+
const contents = map({});
|
|
395
370
|
const data = parsedOutput.body;
|
|
396
|
-
if (data.error
|
|
371
|
+
if (data.error != null) {
|
|
397
372
|
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
398
373
|
}
|
|
399
|
-
if (data.error_description
|
|
374
|
+
if (data.error_description != null) {
|
|
400
375
|
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
401
376
|
}
|
|
402
377
|
const exception = new models_0_1.InvalidGrantException({
|
|
@@ -406,12 +381,12 @@ const deserializeAws_restJson1InvalidGrantExceptionResponse = async (parsedOutpu
|
|
|
406
381
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
407
382
|
};
|
|
408
383
|
const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
409
|
-
const contents = {};
|
|
384
|
+
const contents = map({});
|
|
410
385
|
const data = parsedOutput.body;
|
|
411
|
-
if (data.error
|
|
386
|
+
if (data.error != null) {
|
|
412
387
|
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
413
388
|
}
|
|
414
|
-
if (data.error_description
|
|
389
|
+
if (data.error_description != null) {
|
|
415
390
|
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
416
391
|
}
|
|
417
392
|
const exception = new models_0_1.InvalidRequestException({
|
|
@@ -421,12 +396,12 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
421
396
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
422
397
|
};
|
|
423
398
|
const deserializeAws_restJson1InvalidScopeExceptionResponse = async (parsedOutput, context) => {
|
|
424
|
-
const contents = {};
|
|
399
|
+
const contents = map({});
|
|
425
400
|
const data = parsedOutput.body;
|
|
426
|
-
if (data.error
|
|
401
|
+
if (data.error != null) {
|
|
427
402
|
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
428
403
|
}
|
|
429
|
-
if (data.error_description
|
|
404
|
+
if (data.error_description != null) {
|
|
430
405
|
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
431
406
|
}
|
|
432
407
|
const exception = new models_0_1.InvalidScopeException({
|
|
@@ -436,12 +411,12 @@ const deserializeAws_restJson1InvalidScopeExceptionResponse = async (parsedOutpu
|
|
|
436
411
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
437
412
|
};
|
|
438
413
|
const deserializeAws_restJson1SlowDownExceptionResponse = async (parsedOutput, context) => {
|
|
439
|
-
const contents = {};
|
|
414
|
+
const contents = map({});
|
|
440
415
|
const data = parsedOutput.body;
|
|
441
|
-
if (data.error
|
|
416
|
+
if (data.error != null) {
|
|
442
417
|
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
443
418
|
}
|
|
444
|
-
if (data.error_description
|
|
419
|
+
if (data.error_description != null) {
|
|
445
420
|
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
446
421
|
}
|
|
447
422
|
const exception = new models_0_1.SlowDownException({
|
|
@@ -451,12 +426,12 @@ const deserializeAws_restJson1SlowDownExceptionResponse = async (parsedOutput, c
|
|
|
451
426
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
452
427
|
};
|
|
453
428
|
const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parsedOutput, context) => {
|
|
454
|
-
const contents = {};
|
|
429
|
+
const contents = map({});
|
|
455
430
|
const data = parsedOutput.body;
|
|
456
|
-
if (data.error
|
|
431
|
+
if (data.error != null) {
|
|
457
432
|
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
458
433
|
}
|
|
459
|
-
if (data.error_description
|
|
434
|
+
if (data.error_description != null) {
|
|
460
435
|
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
461
436
|
}
|
|
462
437
|
const exception = new models_0_1.UnauthorizedClientException({
|
|
@@ -466,12 +441,12 @@ const deserializeAws_restJson1UnauthorizedClientExceptionResponse = async (parse
|
|
|
466
441
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
467
442
|
};
|
|
468
443
|
const deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse = async (parsedOutput, context) => {
|
|
469
|
-
const contents = {};
|
|
444
|
+
const contents = map({});
|
|
470
445
|
const data = parsedOutput.body;
|
|
471
|
-
if (data.error
|
|
446
|
+
if (data.error != null) {
|
|
472
447
|
contents.error = (0, smithy_client_1.expectString)(data.error);
|
|
473
448
|
}
|
|
474
|
-
if (data.error_description
|
|
449
|
+
if (data.error_description != null) {
|
|
475
450
|
contents.error_description = (0, smithy_client_1.expectString)(data.error_description);
|
|
476
451
|
}
|
|
477
452
|
const exception = new models_0_1.UnsupportedGrantTypeException({
|
|
@@ -484,9 +459,6 @@ const serializeAws_restJson1Scopes = (input, context) => {
|
|
|
484
459
|
return input
|
|
485
460
|
.filter((e) => e != null)
|
|
486
461
|
.map((entry) => {
|
|
487
|
-
if (entry === null) {
|
|
488
|
-
return null;
|
|
489
|
-
}
|
|
490
462
|
return entry;
|
|
491
463
|
});
|
|
492
464
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidClientMetadataException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, } from "../models/models_0";
|
|
5
5
|
import { SSOOIDCServiceException as __BaseException } from "../models/SSOOIDCServiceException";
|
|
6
6
|
export var serializeAws_restJson1CreateTokenCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -83,40 +83,35 @@ export var deserializeAws_restJson1CreateTokenCommand = function (output, contex
|
|
|
83
83
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
84
84
|
return [2, deserializeAws_restJson1CreateTokenCommandError(output, context)];
|
|
85
85
|
}
|
|
86
|
-
contents = {
|
|
86
|
+
contents = map({
|
|
87
87
|
$metadata: deserializeMetadata(output),
|
|
88
|
-
|
|
89
|
-
expiresIn: undefined,
|
|
90
|
-
idToken: undefined,
|
|
91
|
-
refreshToken: undefined,
|
|
92
|
-
tokenType: undefined,
|
|
93
|
-
};
|
|
88
|
+
});
|
|
94
89
|
_a = __expectNonNull;
|
|
95
90
|
_b = __expectObject;
|
|
96
91
|
return [4, parseBody(output.body, context)];
|
|
97
92
|
case 1:
|
|
98
93
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
99
|
-
if (data.accessToken
|
|
94
|
+
if (data.accessToken != null) {
|
|
100
95
|
contents.accessToken = __expectString(data.accessToken);
|
|
101
96
|
}
|
|
102
|
-
if (data.expiresIn
|
|
97
|
+
if (data.expiresIn != null) {
|
|
103
98
|
contents.expiresIn = __expectInt32(data.expiresIn);
|
|
104
99
|
}
|
|
105
|
-
if (data.idToken
|
|
100
|
+
if (data.idToken != null) {
|
|
106
101
|
contents.idToken = __expectString(data.idToken);
|
|
107
102
|
}
|
|
108
|
-
if (data.refreshToken
|
|
103
|
+
if (data.refreshToken != null) {
|
|
109
104
|
contents.refreshToken = __expectString(data.refreshToken);
|
|
110
105
|
}
|
|
111
|
-
if (data.tokenType
|
|
106
|
+
if (data.tokenType != null) {
|
|
112
107
|
contents.tokenType = __expectString(data.tokenType);
|
|
113
108
|
}
|
|
114
|
-
return [2,
|
|
109
|
+
return [2, contents];
|
|
115
110
|
}
|
|
116
111
|
});
|
|
117
112
|
}); };
|
|
118
113
|
var deserializeAws_restJson1CreateTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
119
|
-
var parsedOutput, _a,
|
|
114
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
120
115
|
var _c;
|
|
121
116
|
return __generator(this, function (_d) {
|
|
122
117
|
switch (_d.label) {
|
|
@@ -177,14 +172,14 @@ var deserializeAws_restJson1CreateTokenCommandError = function (output, context)
|
|
|
177
172
|
case 23: throw _d.sent();
|
|
178
173
|
case 24:
|
|
179
174
|
parsedBody = parsedOutput.body;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
$metadata: $metadata,
|
|
175
|
+
throwDefaultError({
|
|
176
|
+
output: output,
|
|
177
|
+
parsedBody: parsedBody,
|
|
178
|
+
exceptionCtor: __BaseException,
|
|
179
|
+
errorCode: errorCode,
|
|
186
180
|
});
|
|
187
|
-
|
|
181
|
+
_d.label = 25;
|
|
182
|
+
case 25: return [2];
|
|
188
183
|
}
|
|
189
184
|
});
|
|
190
185
|
}); };
|
|
@@ -196,44 +191,38 @@ export var deserializeAws_restJson1RegisterClientCommand = function (output, con
|
|
|
196
191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
197
192
|
return [2, deserializeAws_restJson1RegisterClientCommandError(output, context)];
|
|
198
193
|
}
|
|
199
|
-
contents = {
|
|
194
|
+
contents = map({
|
|
200
195
|
$metadata: deserializeMetadata(output),
|
|
201
|
-
|
|
202
|
-
clientId: undefined,
|
|
203
|
-
clientIdIssuedAt: undefined,
|
|
204
|
-
clientSecret: undefined,
|
|
205
|
-
clientSecretExpiresAt: undefined,
|
|
206
|
-
tokenEndpoint: undefined,
|
|
207
|
-
};
|
|
196
|
+
});
|
|
208
197
|
_a = __expectNonNull;
|
|
209
198
|
_b = __expectObject;
|
|
210
199
|
return [4, parseBody(output.body, context)];
|
|
211
200
|
case 1:
|
|
212
201
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
213
|
-
if (data.authorizationEndpoint
|
|
202
|
+
if (data.authorizationEndpoint != null) {
|
|
214
203
|
contents.authorizationEndpoint = __expectString(data.authorizationEndpoint);
|
|
215
204
|
}
|
|
216
|
-
if (data.clientId
|
|
205
|
+
if (data.clientId != null) {
|
|
217
206
|
contents.clientId = __expectString(data.clientId);
|
|
218
207
|
}
|
|
219
|
-
if (data.clientIdIssuedAt
|
|
208
|
+
if (data.clientIdIssuedAt != null) {
|
|
220
209
|
contents.clientIdIssuedAt = __expectLong(data.clientIdIssuedAt);
|
|
221
210
|
}
|
|
222
|
-
if (data.clientSecret
|
|
211
|
+
if (data.clientSecret != null) {
|
|
223
212
|
contents.clientSecret = __expectString(data.clientSecret);
|
|
224
213
|
}
|
|
225
|
-
if (data.clientSecretExpiresAt
|
|
214
|
+
if (data.clientSecretExpiresAt != null) {
|
|
226
215
|
contents.clientSecretExpiresAt = __expectLong(data.clientSecretExpiresAt);
|
|
227
216
|
}
|
|
228
|
-
if (data.tokenEndpoint
|
|
217
|
+
if (data.tokenEndpoint != null) {
|
|
229
218
|
contents.tokenEndpoint = __expectString(data.tokenEndpoint);
|
|
230
219
|
}
|
|
231
|
-
return [2,
|
|
220
|
+
return [2, contents];
|
|
232
221
|
}
|
|
233
222
|
});
|
|
234
223
|
}); };
|
|
235
224
|
var deserializeAws_restJson1RegisterClientCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
236
|
-
var parsedOutput, _a,
|
|
225
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
237
226
|
var _c;
|
|
238
227
|
return __generator(this, function (_d) {
|
|
239
228
|
switch (_d.label) {
|
|
@@ -266,14 +255,14 @@ var deserializeAws_restJson1RegisterClientCommandError = function (output, conte
|
|
|
266
255
|
case 9: throw _d.sent();
|
|
267
256
|
case 10:
|
|
268
257
|
parsedBody = parsedOutput.body;
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
$metadata: $metadata,
|
|
258
|
+
throwDefaultError({
|
|
259
|
+
output: output,
|
|
260
|
+
parsedBody: parsedBody,
|
|
261
|
+
exceptionCtor: __BaseException,
|
|
262
|
+
errorCode: errorCode,
|
|
275
263
|
});
|
|
276
|
-
|
|
264
|
+
_d.label = 11;
|
|
265
|
+
case 11: return [2];
|
|
277
266
|
}
|
|
278
267
|
});
|
|
279
268
|
}); };
|
|
@@ -285,44 +274,38 @@ export var deserializeAws_restJson1StartDeviceAuthorizationCommand = function (o
|
|
|
285
274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
286
275
|
return [2, deserializeAws_restJson1StartDeviceAuthorizationCommandError(output, context)];
|
|
287
276
|
}
|
|
288
|
-
contents = {
|
|
277
|
+
contents = map({
|
|
289
278
|
$metadata: deserializeMetadata(output),
|
|
290
|
-
|
|
291
|
-
expiresIn: undefined,
|
|
292
|
-
interval: undefined,
|
|
293
|
-
userCode: undefined,
|
|
294
|
-
verificationUri: undefined,
|
|
295
|
-
verificationUriComplete: undefined,
|
|
296
|
-
};
|
|
279
|
+
});
|
|
297
280
|
_a = __expectNonNull;
|
|
298
281
|
_b = __expectObject;
|
|
299
282
|
return [4, parseBody(output.body, context)];
|
|
300
283
|
case 1:
|
|
301
284
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
302
|
-
if (data.deviceCode
|
|
285
|
+
if (data.deviceCode != null) {
|
|
303
286
|
contents.deviceCode = __expectString(data.deviceCode);
|
|
304
287
|
}
|
|
305
|
-
if (data.expiresIn
|
|
288
|
+
if (data.expiresIn != null) {
|
|
306
289
|
contents.expiresIn = __expectInt32(data.expiresIn);
|
|
307
290
|
}
|
|
308
|
-
if (data.interval
|
|
291
|
+
if (data.interval != null) {
|
|
309
292
|
contents.interval = __expectInt32(data.interval);
|
|
310
293
|
}
|
|
311
|
-
if (data.userCode
|
|
294
|
+
if (data.userCode != null) {
|
|
312
295
|
contents.userCode = __expectString(data.userCode);
|
|
313
296
|
}
|
|
314
|
-
if (data.verificationUri
|
|
297
|
+
if (data.verificationUri != null) {
|
|
315
298
|
contents.verificationUri = __expectString(data.verificationUri);
|
|
316
299
|
}
|
|
317
|
-
if (data.verificationUriComplete
|
|
300
|
+
if (data.verificationUriComplete != null) {
|
|
318
301
|
contents.verificationUriComplete = __expectString(data.verificationUriComplete);
|
|
319
302
|
}
|
|
320
|
-
return [2,
|
|
303
|
+
return [2, contents];
|
|
321
304
|
}
|
|
322
305
|
});
|
|
323
306
|
}); };
|
|
324
307
|
var deserializeAws_restJson1StartDeviceAuthorizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
325
|
-
var parsedOutput, _a,
|
|
308
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
326
309
|
var _c;
|
|
327
310
|
return __generator(this, function (_d) {
|
|
328
311
|
switch (_d.label) {
|
|
@@ -359,26 +342,27 @@ var deserializeAws_restJson1StartDeviceAuthorizationCommandError = function (out
|
|
|
359
342
|
case 11: throw _d.sent();
|
|
360
343
|
case 12:
|
|
361
344
|
parsedBody = parsedOutput.body;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
$metadata: $metadata,
|
|
345
|
+
throwDefaultError({
|
|
346
|
+
output: output,
|
|
347
|
+
parsedBody: parsedBody,
|
|
348
|
+
exceptionCtor: __BaseException,
|
|
349
|
+
errorCode: errorCode,
|
|
368
350
|
});
|
|
369
|
-
|
|
351
|
+
_d.label = 13;
|
|
352
|
+
case 13: return [2];
|
|
370
353
|
}
|
|
371
354
|
});
|
|
372
355
|
}); };
|
|
356
|
+
var map = __map;
|
|
373
357
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
374
358
|
var contents, data, exception;
|
|
375
359
|
return __generator(this, function (_a) {
|
|
376
|
-
contents = {};
|
|
360
|
+
contents = map({});
|
|
377
361
|
data = parsedOutput.body;
|
|
378
|
-
if (data.error
|
|
362
|
+
if (data.error != null) {
|
|
379
363
|
contents.error = __expectString(data.error);
|
|
380
364
|
}
|
|
381
|
-
if (data.error_description
|
|
365
|
+
if (data.error_description != null) {
|
|
382
366
|
contents.error_description = __expectString(data.error_description);
|
|
383
367
|
}
|
|
384
368
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -388,12 +372,12 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
388
372
|
var deserializeAws_restJson1AuthorizationPendingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
389
373
|
var contents, data, exception;
|
|
390
374
|
return __generator(this, function (_a) {
|
|
391
|
-
contents = {};
|
|
375
|
+
contents = map({});
|
|
392
376
|
data = parsedOutput.body;
|
|
393
|
-
if (data.error
|
|
377
|
+
if (data.error != null) {
|
|
394
378
|
contents.error = __expectString(data.error);
|
|
395
379
|
}
|
|
396
|
-
if (data.error_description
|
|
380
|
+
if (data.error_description != null) {
|
|
397
381
|
contents.error_description = __expectString(data.error_description);
|
|
398
382
|
}
|
|
399
383
|
exception = new AuthorizationPendingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -403,12 +387,12 @@ var deserializeAws_restJson1AuthorizationPendingExceptionResponse = function (pa
|
|
|
403
387
|
var deserializeAws_restJson1ExpiredTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
404
388
|
var contents, data, exception;
|
|
405
389
|
return __generator(this, function (_a) {
|
|
406
|
-
contents = {};
|
|
390
|
+
contents = map({});
|
|
407
391
|
data = parsedOutput.body;
|
|
408
|
-
if (data.error
|
|
392
|
+
if (data.error != null) {
|
|
409
393
|
contents.error = __expectString(data.error);
|
|
410
394
|
}
|
|
411
|
-
if (data.error_description
|
|
395
|
+
if (data.error_description != null) {
|
|
412
396
|
contents.error_description = __expectString(data.error_description);
|
|
413
397
|
}
|
|
414
398
|
exception = new ExpiredTokenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -418,12 +402,12 @@ var deserializeAws_restJson1ExpiredTokenExceptionResponse = function (parsedOutp
|
|
|
418
402
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
419
403
|
var contents, data, exception;
|
|
420
404
|
return __generator(this, function (_a) {
|
|
421
|
-
contents = {};
|
|
405
|
+
contents = map({});
|
|
422
406
|
data = parsedOutput.body;
|
|
423
|
-
if (data.error
|
|
407
|
+
if (data.error != null) {
|
|
424
408
|
contents.error = __expectString(data.error);
|
|
425
409
|
}
|
|
426
|
-
if (data.error_description
|
|
410
|
+
if (data.error_description != null) {
|
|
427
411
|
contents.error_description = __expectString(data.error_description);
|
|
428
412
|
}
|
|
429
413
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -433,12 +417,12 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
433
417
|
var deserializeAws_restJson1InvalidClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
434
418
|
var contents, data, exception;
|
|
435
419
|
return __generator(this, function (_a) {
|
|
436
|
-
contents = {};
|
|
420
|
+
contents = map({});
|
|
437
421
|
data = parsedOutput.body;
|
|
438
|
-
if (data.error
|
|
422
|
+
if (data.error != null) {
|
|
439
423
|
contents.error = __expectString(data.error);
|
|
440
424
|
}
|
|
441
|
-
if (data.error_description
|
|
425
|
+
if (data.error_description != null) {
|
|
442
426
|
contents.error_description = __expectString(data.error_description);
|
|
443
427
|
}
|
|
444
428
|
exception = new InvalidClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -448,12 +432,12 @@ var deserializeAws_restJson1InvalidClientExceptionResponse = function (parsedOut
|
|
|
448
432
|
var deserializeAws_restJson1InvalidClientMetadataExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
449
433
|
var contents, data, exception;
|
|
450
434
|
return __generator(this, function (_a) {
|
|
451
|
-
contents = {};
|
|
435
|
+
contents = map({});
|
|
452
436
|
data = parsedOutput.body;
|
|
453
|
-
if (data.error
|
|
437
|
+
if (data.error != null) {
|
|
454
438
|
contents.error = __expectString(data.error);
|
|
455
439
|
}
|
|
456
|
-
if (data.error_description
|
|
440
|
+
if (data.error_description != null) {
|
|
457
441
|
contents.error_description = __expectString(data.error_description);
|
|
458
442
|
}
|
|
459
443
|
exception = new InvalidClientMetadataException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -463,12 +447,12 @@ var deserializeAws_restJson1InvalidClientMetadataExceptionResponse = function (p
|
|
|
463
447
|
var deserializeAws_restJson1InvalidGrantExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
464
448
|
var contents, data, exception;
|
|
465
449
|
return __generator(this, function (_a) {
|
|
466
|
-
contents = {};
|
|
450
|
+
contents = map({});
|
|
467
451
|
data = parsedOutput.body;
|
|
468
|
-
if (data.error
|
|
452
|
+
if (data.error != null) {
|
|
469
453
|
contents.error = __expectString(data.error);
|
|
470
454
|
}
|
|
471
|
-
if (data.error_description
|
|
455
|
+
if (data.error_description != null) {
|
|
472
456
|
contents.error_description = __expectString(data.error_description);
|
|
473
457
|
}
|
|
474
458
|
exception = new InvalidGrantException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -478,12 +462,12 @@ var deserializeAws_restJson1InvalidGrantExceptionResponse = function (parsedOutp
|
|
|
478
462
|
var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
479
463
|
var contents, data, exception;
|
|
480
464
|
return __generator(this, function (_a) {
|
|
481
|
-
contents = {};
|
|
465
|
+
contents = map({});
|
|
482
466
|
data = parsedOutput.body;
|
|
483
|
-
if (data.error
|
|
467
|
+
if (data.error != null) {
|
|
484
468
|
contents.error = __expectString(data.error);
|
|
485
469
|
}
|
|
486
|
-
if (data.error_description
|
|
470
|
+
if (data.error_description != null) {
|
|
487
471
|
contents.error_description = __expectString(data.error_description);
|
|
488
472
|
}
|
|
489
473
|
exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -493,12 +477,12 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
|
|
|
493
477
|
var deserializeAws_restJson1InvalidScopeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
494
478
|
var contents, data, exception;
|
|
495
479
|
return __generator(this, function (_a) {
|
|
496
|
-
contents = {};
|
|
480
|
+
contents = map({});
|
|
497
481
|
data = parsedOutput.body;
|
|
498
|
-
if (data.error
|
|
482
|
+
if (data.error != null) {
|
|
499
483
|
contents.error = __expectString(data.error);
|
|
500
484
|
}
|
|
501
|
-
if (data.error_description
|
|
485
|
+
if (data.error_description != null) {
|
|
502
486
|
contents.error_description = __expectString(data.error_description);
|
|
503
487
|
}
|
|
504
488
|
exception = new InvalidScopeException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -508,12 +492,12 @@ var deserializeAws_restJson1InvalidScopeExceptionResponse = function (parsedOutp
|
|
|
508
492
|
var deserializeAws_restJson1SlowDownExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
509
493
|
var contents, data, exception;
|
|
510
494
|
return __generator(this, function (_a) {
|
|
511
|
-
contents = {};
|
|
495
|
+
contents = map({});
|
|
512
496
|
data = parsedOutput.body;
|
|
513
|
-
if (data.error
|
|
497
|
+
if (data.error != null) {
|
|
514
498
|
contents.error = __expectString(data.error);
|
|
515
499
|
}
|
|
516
|
-
if (data.error_description
|
|
500
|
+
if (data.error_description != null) {
|
|
517
501
|
contents.error_description = __expectString(data.error_description);
|
|
518
502
|
}
|
|
519
503
|
exception = new SlowDownException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -523,12 +507,12 @@ var deserializeAws_restJson1SlowDownExceptionResponse = function (parsedOutput,
|
|
|
523
507
|
var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
524
508
|
var contents, data, exception;
|
|
525
509
|
return __generator(this, function (_a) {
|
|
526
|
-
contents = {};
|
|
510
|
+
contents = map({});
|
|
527
511
|
data = parsedOutput.body;
|
|
528
|
-
if (data.error
|
|
512
|
+
if (data.error != null) {
|
|
529
513
|
contents.error = __expectString(data.error);
|
|
530
514
|
}
|
|
531
|
-
if (data.error_description
|
|
515
|
+
if (data.error_description != null) {
|
|
532
516
|
contents.error_description = __expectString(data.error_description);
|
|
533
517
|
}
|
|
534
518
|
exception = new UnauthorizedClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -538,12 +522,12 @@ var deserializeAws_restJson1UnauthorizedClientExceptionResponse = function (pars
|
|
|
538
522
|
var deserializeAws_restJson1UnsupportedGrantTypeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
539
523
|
var contents, data, exception;
|
|
540
524
|
return __generator(this, function (_a) {
|
|
541
|
-
contents = {};
|
|
525
|
+
contents = map({});
|
|
542
526
|
data = parsedOutput.body;
|
|
543
|
-
if (data.error
|
|
527
|
+
if (data.error != null) {
|
|
544
528
|
contents.error = __expectString(data.error);
|
|
545
529
|
}
|
|
546
|
-
if (data.error_description
|
|
530
|
+
if (data.error_description != null) {
|
|
547
531
|
contents.error_description = __expectString(data.error_description);
|
|
548
532
|
}
|
|
549
533
|
exception = new UnsupportedGrantTypeException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -554,9 +538,6 @@ var serializeAws_restJson1Scopes = function (input, context) {
|
|
|
554
538
|
return input
|
|
555
539
|
.filter(function (e) { return e != null; })
|
|
556
540
|
.map(function (entry) {
|
|
557
|
-
if (entry === null) {
|
|
558
|
-
return null;
|
|
559
|
-
}
|
|
560
541
|
return entry;
|
|
561
542
|
});
|
|
562
543
|
};
|
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.142.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",
|
|
@@ -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.142.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.142.0",
|
|
44
|
+
"@aws-sdk/util-defaults-mode-node": "3.142.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",
|