@aws-sdk/client-sso 3.502.0 → 3.507.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/dist-cjs/index.js +9 -90
- package/dist-es/protocols/Aws_restJson1.js +8 -89
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -305,7 +305,7 @@ var se_LogoutCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
305
305
|
}, "se_LogoutCommand");
|
|
306
306
|
var de_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
307
307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
308
|
-
return
|
|
308
|
+
return de_CommandError(output, context);
|
|
309
309
|
}
|
|
310
310
|
const contents = (0, import_smithy_client.map)({
|
|
311
311
|
$metadata: deserializeMetadata(output)
|
|
@@ -317,37 +317,9 @@ var de_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
317
317
|
Object.assign(contents, doc);
|
|
318
318
|
return contents;
|
|
319
319
|
}, "de_GetRoleCredentialsCommand");
|
|
320
|
-
var de_GetRoleCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
321
|
-
const parsedOutput = {
|
|
322
|
-
...output,
|
|
323
|
-
body: await parseErrorBody(output.body, context)
|
|
324
|
-
};
|
|
325
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
326
|
-
switch (errorCode) {
|
|
327
|
-
case "InvalidRequestException":
|
|
328
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
|
329
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
330
|
-
case "ResourceNotFoundException":
|
|
331
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
332
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
333
|
-
case "TooManyRequestsException":
|
|
334
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
|
335
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
336
|
-
case "UnauthorizedException":
|
|
337
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
|
338
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
339
|
-
default:
|
|
340
|
-
const parsedBody = parsedOutput.body;
|
|
341
|
-
return throwDefaultError({
|
|
342
|
-
output,
|
|
343
|
-
parsedBody,
|
|
344
|
-
errorCode
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
}, "de_GetRoleCredentialsCommandError");
|
|
348
320
|
var de_ListAccountRolesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
349
321
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
350
|
-
return
|
|
322
|
+
return de_CommandError(output, context);
|
|
351
323
|
}
|
|
352
324
|
const contents = (0, import_smithy_client.map)({
|
|
353
325
|
$metadata: deserializeMetadata(output)
|
|
@@ -360,37 +332,9 @@ var de_ListAccountRolesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
360
332
|
Object.assign(contents, doc);
|
|
361
333
|
return contents;
|
|
362
334
|
}, "de_ListAccountRolesCommand");
|
|
363
|
-
var de_ListAccountRolesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
364
|
-
const parsedOutput = {
|
|
365
|
-
...output,
|
|
366
|
-
body: await parseErrorBody(output.body, context)
|
|
367
|
-
};
|
|
368
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
369
|
-
switch (errorCode) {
|
|
370
|
-
case "InvalidRequestException":
|
|
371
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
|
372
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
373
|
-
case "ResourceNotFoundException":
|
|
374
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
375
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
376
|
-
case "TooManyRequestsException":
|
|
377
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
|
378
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
379
|
-
case "UnauthorizedException":
|
|
380
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
|
381
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
382
|
-
default:
|
|
383
|
-
const parsedBody = parsedOutput.body;
|
|
384
|
-
return throwDefaultError({
|
|
385
|
-
output,
|
|
386
|
-
parsedBody,
|
|
387
|
-
errorCode
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
}, "de_ListAccountRolesCommandError");
|
|
391
335
|
var de_ListAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
392
336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
393
|
-
return
|
|
337
|
+
return de_CommandError(output, context);
|
|
394
338
|
}
|
|
395
339
|
const contents = (0, import_smithy_client.map)({
|
|
396
340
|
$metadata: deserializeMetadata(output)
|
|
@@ -403,37 +347,9 @@ var de_ListAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
403
347
|
Object.assign(contents, doc);
|
|
404
348
|
return contents;
|
|
405
349
|
}, "de_ListAccountsCommand");
|
|
406
|
-
var de_ListAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
407
|
-
const parsedOutput = {
|
|
408
|
-
...output,
|
|
409
|
-
body: await parseErrorBody(output.body, context)
|
|
410
|
-
};
|
|
411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
412
|
-
switch (errorCode) {
|
|
413
|
-
case "InvalidRequestException":
|
|
414
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
|
415
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
416
|
-
case "ResourceNotFoundException":
|
|
417
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
418
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
419
|
-
case "TooManyRequestsException":
|
|
420
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
|
421
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
422
|
-
case "UnauthorizedException":
|
|
423
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
|
424
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
425
|
-
default:
|
|
426
|
-
const parsedBody = parsedOutput.body;
|
|
427
|
-
return throwDefaultError({
|
|
428
|
-
output,
|
|
429
|
-
parsedBody,
|
|
430
|
-
errorCode
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
}, "de_ListAccountsCommandError");
|
|
434
350
|
var de_LogoutCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
435
351
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
436
|
-
return
|
|
352
|
+
return de_CommandError(output, context);
|
|
437
353
|
}
|
|
438
354
|
const contents = (0, import_smithy_client.map)({
|
|
439
355
|
$metadata: deserializeMetadata(output)
|
|
@@ -441,7 +357,7 @@ var de_LogoutCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
441
357
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
442
358
|
return contents;
|
|
443
359
|
}, "de_LogoutCommand");
|
|
444
|
-
var
|
|
360
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
445
361
|
const parsedOutput = {
|
|
446
362
|
...output,
|
|
447
363
|
body: await parseErrorBody(output.body, context)
|
|
@@ -451,6 +367,9 @@ var de_LogoutCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
451
367
|
case "InvalidRequestException":
|
|
452
368
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
453
369
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
370
|
+
case "ResourceNotFoundException":
|
|
371
|
+
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
372
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
454
373
|
case "TooManyRequestsException":
|
|
455
374
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
456
375
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
@@ -465,7 +384,7 @@ var de_LogoutCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
465
384
|
errorCode
|
|
466
385
|
});
|
|
467
386
|
}
|
|
468
|
-
}, "
|
|
387
|
+
}, "de_CommandError");
|
|
469
388
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SSOServiceException);
|
|
470
389
|
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
471
390
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -57,7 +57,7 @@ export const se_LogoutCommand = async (input, context) => {
|
|
|
57
57
|
};
|
|
58
58
|
export const de_GetRoleCredentialsCommand = async (output, context) => {
|
|
59
59
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
60
|
-
return
|
|
60
|
+
return de_CommandError(output, context);
|
|
61
61
|
}
|
|
62
62
|
const contents = map({
|
|
63
63
|
$metadata: deserializeMetadata(output),
|
|
@@ -69,37 +69,9 @@ export const de_GetRoleCredentialsCommand = async (output, context) => {
|
|
|
69
69
|
Object.assign(contents, doc);
|
|
70
70
|
return contents;
|
|
71
71
|
};
|
|
72
|
-
const de_GetRoleCredentialsCommandError = async (output, context) => {
|
|
73
|
-
const parsedOutput = {
|
|
74
|
-
...output,
|
|
75
|
-
body: await parseErrorBody(output.body, context),
|
|
76
|
-
};
|
|
77
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
78
|
-
switch (errorCode) {
|
|
79
|
-
case "InvalidRequestException":
|
|
80
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
|
81
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
82
|
-
case "ResourceNotFoundException":
|
|
83
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
84
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
85
|
-
case "TooManyRequestsException":
|
|
86
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
|
87
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
88
|
-
case "UnauthorizedException":
|
|
89
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
|
90
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
91
|
-
default:
|
|
92
|
-
const parsedBody = parsedOutput.body;
|
|
93
|
-
return throwDefaultError({
|
|
94
|
-
output,
|
|
95
|
-
parsedBody,
|
|
96
|
-
errorCode,
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
72
|
export const de_ListAccountRolesCommand = async (output, context) => {
|
|
101
73
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
102
|
-
return
|
|
74
|
+
return de_CommandError(output, context);
|
|
103
75
|
}
|
|
104
76
|
const contents = map({
|
|
105
77
|
$metadata: deserializeMetadata(output),
|
|
@@ -112,37 +84,9 @@ export const de_ListAccountRolesCommand = async (output, context) => {
|
|
|
112
84
|
Object.assign(contents, doc);
|
|
113
85
|
return contents;
|
|
114
86
|
};
|
|
115
|
-
const de_ListAccountRolesCommandError = async (output, context) => {
|
|
116
|
-
const parsedOutput = {
|
|
117
|
-
...output,
|
|
118
|
-
body: await parseErrorBody(output.body, context),
|
|
119
|
-
};
|
|
120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
121
|
-
switch (errorCode) {
|
|
122
|
-
case "InvalidRequestException":
|
|
123
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
|
124
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
125
|
-
case "ResourceNotFoundException":
|
|
126
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
127
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
128
|
-
case "TooManyRequestsException":
|
|
129
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
|
130
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
131
|
-
case "UnauthorizedException":
|
|
132
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
|
133
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
134
|
-
default:
|
|
135
|
-
const parsedBody = parsedOutput.body;
|
|
136
|
-
return throwDefaultError({
|
|
137
|
-
output,
|
|
138
|
-
parsedBody,
|
|
139
|
-
errorCode,
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
87
|
export const de_ListAccountsCommand = async (output, context) => {
|
|
144
88
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
145
|
-
return
|
|
89
|
+
return de_CommandError(output, context);
|
|
146
90
|
}
|
|
147
91
|
const contents = map({
|
|
148
92
|
$metadata: deserializeMetadata(output),
|
|
@@ -155,37 +99,9 @@ export const de_ListAccountsCommand = async (output, context) => {
|
|
|
155
99
|
Object.assign(contents, doc);
|
|
156
100
|
return contents;
|
|
157
101
|
};
|
|
158
|
-
const de_ListAccountsCommandError = async (output, context) => {
|
|
159
|
-
const parsedOutput = {
|
|
160
|
-
...output,
|
|
161
|
-
body: await parseErrorBody(output.body, context),
|
|
162
|
-
};
|
|
163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
164
|
-
switch (errorCode) {
|
|
165
|
-
case "InvalidRequestException":
|
|
166
|
-
case "com.amazonaws.sso#InvalidRequestException":
|
|
167
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
168
|
-
case "ResourceNotFoundException":
|
|
169
|
-
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
170
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
171
|
-
case "TooManyRequestsException":
|
|
172
|
-
case "com.amazonaws.sso#TooManyRequestsException":
|
|
173
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
174
|
-
case "UnauthorizedException":
|
|
175
|
-
case "com.amazonaws.sso#UnauthorizedException":
|
|
176
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
177
|
-
default:
|
|
178
|
-
const parsedBody = parsedOutput.body;
|
|
179
|
-
return throwDefaultError({
|
|
180
|
-
output,
|
|
181
|
-
parsedBody,
|
|
182
|
-
errorCode,
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
102
|
export const de_LogoutCommand = async (output, context) => {
|
|
187
103
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
188
|
-
return
|
|
104
|
+
return de_CommandError(output, context);
|
|
189
105
|
}
|
|
190
106
|
const contents = map({
|
|
191
107
|
$metadata: deserializeMetadata(output),
|
|
@@ -193,7 +109,7 @@ export const de_LogoutCommand = async (output, context) => {
|
|
|
193
109
|
await collectBody(output.body, context);
|
|
194
110
|
return contents;
|
|
195
111
|
};
|
|
196
|
-
const
|
|
112
|
+
const de_CommandError = async (output, context) => {
|
|
197
113
|
const parsedOutput = {
|
|
198
114
|
...output,
|
|
199
115
|
body: await parseErrorBody(output.body, context),
|
|
@@ -203,6 +119,9 @@ const de_LogoutCommandError = async (output, context) => {
|
|
|
203
119
|
case "InvalidRequestException":
|
|
204
120
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
205
121
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
122
|
+
case "ResourceNotFoundException":
|
|
123
|
+
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
124
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
206
125
|
case "TooManyRequestsException":
|
|
207
126
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
208
127
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
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.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|