@aws-sdk/client-sso-oidc 3.504.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 +30 -135
- package/dist-es/protocols/Aws_restJson1.js +29 -134
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -531,7 +531,7 @@ var se_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
531
531
|
}, "se_StartDeviceAuthorizationCommand");
|
|
532
532
|
var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
533
533
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
534
|
-
return
|
|
534
|
+
return de_CommandError(output, context);
|
|
535
535
|
}
|
|
536
536
|
const contents = (0, import_smithy_client.map)({
|
|
537
537
|
$metadata: deserializeMetadata(output)
|
|
@@ -547,58 +547,9 @@ var de_CreateTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
547
547
|
Object.assign(contents, doc);
|
|
548
548
|
return contents;
|
|
549
549
|
}, "de_CreateTokenCommand");
|
|
550
|
-
var de_CreateTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
551
|
-
const parsedOutput = {
|
|
552
|
-
...output,
|
|
553
|
-
body: await parseErrorBody(output.body, context)
|
|
554
|
-
};
|
|
555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
|
-
switch (errorCode) {
|
|
557
|
-
case "AccessDeniedException":
|
|
558
|
-
case "com.amazonaws.ssooidc#AccessDeniedException":
|
|
559
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
560
|
-
case "AuthorizationPendingException":
|
|
561
|
-
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
|
562
|
-
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
|
563
|
-
case "ExpiredTokenException":
|
|
564
|
-
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
|
565
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
566
|
-
case "InternalServerException":
|
|
567
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
|
568
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
569
|
-
case "InvalidClientException":
|
|
570
|
-
case "com.amazonaws.ssooidc#InvalidClientException":
|
|
571
|
-
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
572
|
-
case "InvalidGrantException":
|
|
573
|
-
case "com.amazonaws.ssooidc#InvalidGrantException":
|
|
574
|
-
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
|
575
|
-
case "InvalidRequestException":
|
|
576
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
577
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
578
|
-
case "InvalidScopeException":
|
|
579
|
-
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
580
|
-
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
581
|
-
case "SlowDownException":
|
|
582
|
-
case "com.amazonaws.ssooidc#SlowDownException":
|
|
583
|
-
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
|
584
|
-
case "UnauthorizedClientException":
|
|
585
|
-
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
|
586
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
587
|
-
case "UnsupportedGrantTypeException":
|
|
588
|
-
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
|
589
|
-
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
|
590
|
-
default:
|
|
591
|
-
const parsedBody = parsedOutput.body;
|
|
592
|
-
return throwDefaultError({
|
|
593
|
-
output,
|
|
594
|
-
parsedBody,
|
|
595
|
-
errorCode
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
}, "de_CreateTokenCommandError");
|
|
599
550
|
var de_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
600
551
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
601
|
-
return
|
|
552
|
+
return de_CommandError(output, context);
|
|
602
553
|
}
|
|
603
554
|
const contents = (0, import_smithy_client.map)({
|
|
604
555
|
$metadata: deserializeMetadata(output)
|
|
@@ -616,61 +567,9 @@ var de_CreateTokenWithIAMCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
616
567
|
Object.assign(contents, doc);
|
|
617
568
|
return contents;
|
|
618
569
|
}, "de_CreateTokenWithIAMCommand");
|
|
619
|
-
var de_CreateTokenWithIAMCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
620
|
-
const parsedOutput = {
|
|
621
|
-
...output,
|
|
622
|
-
body: await parseErrorBody(output.body, context)
|
|
623
|
-
};
|
|
624
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
|
-
switch (errorCode) {
|
|
626
|
-
case "AccessDeniedException":
|
|
627
|
-
case "com.amazonaws.ssooidc#AccessDeniedException":
|
|
628
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
629
|
-
case "AuthorizationPendingException":
|
|
630
|
-
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
|
631
|
-
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
|
632
|
-
case "ExpiredTokenException":
|
|
633
|
-
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
|
634
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
635
|
-
case "InternalServerException":
|
|
636
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
|
637
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
638
|
-
case "InvalidClientException":
|
|
639
|
-
case "com.amazonaws.ssooidc#InvalidClientException":
|
|
640
|
-
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
641
|
-
case "InvalidGrantException":
|
|
642
|
-
case "com.amazonaws.ssooidc#InvalidGrantException":
|
|
643
|
-
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
|
644
|
-
case "InvalidRequestException":
|
|
645
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
646
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
647
|
-
case "InvalidRequestRegionException":
|
|
648
|
-
case "com.amazonaws.ssooidc#InvalidRequestRegionException":
|
|
649
|
-
throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context);
|
|
650
|
-
case "InvalidScopeException":
|
|
651
|
-
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
652
|
-
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
653
|
-
case "SlowDownException":
|
|
654
|
-
case "com.amazonaws.ssooidc#SlowDownException":
|
|
655
|
-
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
|
656
|
-
case "UnauthorizedClientException":
|
|
657
|
-
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
|
658
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
659
|
-
case "UnsupportedGrantTypeException":
|
|
660
|
-
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
|
661
|
-
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
|
662
|
-
default:
|
|
663
|
-
const parsedBody = parsedOutput.body;
|
|
664
|
-
return throwDefaultError({
|
|
665
|
-
output,
|
|
666
|
-
parsedBody,
|
|
667
|
-
errorCode
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
}, "de_CreateTokenWithIAMCommandError");
|
|
671
570
|
var de_RegisterClientCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
672
571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
673
|
-
return
|
|
572
|
+
return de_CommandError(output, context);
|
|
674
573
|
}
|
|
675
574
|
const contents = (0, import_smithy_client.map)({
|
|
676
575
|
$metadata: deserializeMetadata(output)
|
|
@@ -687,37 +586,9 @@ var de_RegisterClientCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
687
586
|
Object.assign(contents, doc);
|
|
688
587
|
return contents;
|
|
689
588
|
}, "de_RegisterClientCommand");
|
|
690
|
-
var de_RegisterClientCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
691
|
-
const parsedOutput = {
|
|
692
|
-
...output,
|
|
693
|
-
body: await parseErrorBody(output.body, context)
|
|
694
|
-
};
|
|
695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
|
-
switch (errorCode) {
|
|
697
|
-
case "InternalServerException":
|
|
698
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
|
699
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
700
|
-
case "InvalidClientMetadataException":
|
|
701
|
-
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
|
702
|
-
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
|
703
|
-
case "InvalidRequestException":
|
|
704
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
705
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
706
|
-
case "InvalidScopeException":
|
|
707
|
-
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
708
|
-
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
709
|
-
default:
|
|
710
|
-
const parsedBody = parsedOutput.body;
|
|
711
|
-
return throwDefaultError({
|
|
712
|
-
output,
|
|
713
|
-
parsedBody,
|
|
714
|
-
errorCode
|
|
715
|
-
});
|
|
716
|
-
}
|
|
717
|
-
}, "de_RegisterClientCommandError");
|
|
718
589
|
var de_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
719
590
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
720
|
-
return
|
|
591
|
+
return de_CommandError(output, context);
|
|
721
592
|
}
|
|
722
593
|
const contents = (0, import_smithy_client.map)({
|
|
723
594
|
$metadata: deserializeMetadata(output)
|
|
@@ -734,28 +605,52 @@ var de_StartDeviceAuthorizationCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
734
605
|
Object.assign(contents, doc);
|
|
735
606
|
return contents;
|
|
736
607
|
}, "de_StartDeviceAuthorizationCommand");
|
|
737
|
-
var
|
|
608
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
738
609
|
const parsedOutput = {
|
|
739
610
|
...output,
|
|
740
611
|
body: await parseErrorBody(output.body, context)
|
|
741
612
|
};
|
|
742
613
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
614
|
switch (errorCode) {
|
|
615
|
+
case "AccessDeniedException":
|
|
616
|
+
case "com.amazonaws.ssooidc#AccessDeniedException":
|
|
617
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
618
|
+
case "AuthorizationPendingException":
|
|
619
|
+
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
|
620
|
+
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
|
621
|
+
case "ExpiredTokenException":
|
|
622
|
+
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
|
623
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
744
624
|
case "InternalServerException":
|
|
745
625
|
case "com.amazonaws.ssooidc#InternalServerException":
|
|
746
626
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
747
627
|
case "InvalidClientException":
|
|
748
628
|
case "com.amazonaws.ssooidc#InvalidClientException":
|
|
749
629
|
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
630
|
+
case "InvalidGrantException":
|
|
631
|
+
case "com.amazonaws.ssooidc#InvalidGrantException":
|
|
632
|
+
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
|
750
633
|
case "InvalidRequestException":
|
|
751
634
|
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
752
635
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
636
|
+
case "InvalidScopeException":
|
|
637
|
+
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
638
|
+
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
753
639
|
case "SlowDownException":
|
|
754
640
|
case "com.amazonaws.ssooidc#SlowDownException":
|
|
755
641
|
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
|
756
642
|
case "UnauthorizedClientException":
|
|
757
643
|
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
|
758
644
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
645
|
+
case "UnsupportedGrantTypeException":
|
|
646
|
+
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
|
647
|
+
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
|
648
|
+
case "InvalidRequestRegionException":
|
|
649
|
+
case "com.amazonaws.ssooidc#InvalidRequestRegionException":
|
|
650
|
+
throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context);
|
|
651
|
+
case "InvalidClientMetadataException":
|
|
652
|
+
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
|
653
|
+
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
|
759
654
|
default:
|
|
760
655
|
const parsedBody = parsedOutput.body;
|
|
761
656
|
return throwDefaultError({
|
|
@@ -764,7 +659,7 @@ var de_StartDeviceAuthorizationCommandError = /* @__PURE__ */ __name(async (outp
|
|
|
764
659
|
errorCode
|
|
765
660
|
});
|
|
766
661
|
}
|
|
767
|
-
}, "
|
|
662
|
+
}, "de_CommandError");
|
|
768
663
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SSOOIDCServiceException);
|
|
769
664
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
770
665
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -79,7 +79,7 @@ export const se_StartDeviceAuthorizationCommand = async (input, context) => {
|
|
|
79
79
|
};
|
|
80
80
|
export const de_CreateTokenCommand = async (output, context) => {
|
|
81
81
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
82
|
-
return
|
|
82
|
+
return de_CommandError(output, context);
|
|
83
83
|
}
|
|
84
84
|
const contents = map({
|
|
85
85
|
$metadata: deserializeMetadata(output),
|
|
@@ -95,58 +95,9 @@ export const de_CreateTokenCommand = async (output, context) => {
|
|
|
95
95
|
Object.assign(contents, doc);
|
|
96
96
|
return contents;
|
|
97
97
|
};
|
|
98
|
-
const de_CreateTokenCommandError = async (output, context) => {
|
|
99
|
-
const parsedOutput = {
|
|
100
|
-
...output,
|
|
101
|
-
body: await parseErrorBody(output.body, context),
|
|
102
|
-
};
|
|
103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
104
|
-
switch (errorCode) {
|
|
105
|
-
case "AccessDeniedException":
|
|
106
|
-
case "com.amazonaws.ssooidc#AccessDeniedException":
|
|
107
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
108
|
-
case "AuthorizationPendingException":
|
|
109
|
-
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
|
110
|
-
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
|
111
|
-
case "ExpiredTokenException":
|
|
112
|
-
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
|
113
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
114
|
-
case "InternalServerException":
|
|
115
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
|
116
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
117
|
-
case "InvalidClientException":
|
|
118
|
-
case "com.amazonaws.ssooidc#InvalidClientException":
|
|
119
|
-
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
120
|
-
case "InvalidGrantException":
|
|
121
|
-
case "com.amazonaws.ssooidc#InvalidGrantException":
|
|
122
|
-
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
|
123
|
-
case "InvalidRequestException":
|
|
124
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
125
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
126
|
-
case "InvalidScopeException":
|
|
127
|
-
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
128
|
-
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
129
|
-
case "SlowDownException":
|
|
130
|
-
case "com.amazonaws.ssooidc#SlowDownException":
|
|
131
|
-
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
|
132
|
-
case "UnauthorizedClientException":
|
|
133
|
-
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
|
134
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
135
|
-
case "UnsupportedGrantTypeException":
|
|
136
|
-
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
|
137
|
-
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
|
138
|
-
default:
|
|
139
|
-
const parsedBody = parsedOutput.body;
|
|
140
|
-
return throwDefaultError({
|
|
141
|
-
output,
|
|
142
|
-
parsedBody,
|
|
143
|
-
errorCode,
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
98
|
export const de_CreateTokenWithIAMCommand = async (output, context) => {
|
|
148
99
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
149
|
-
return
|
|
100
|
+
return de_CommandError(output, context);
|
|
150
101
|
}
|
|
151
102
|
const contents = map({
|
|
152
103
|
$metadata: deserializeMetadata(output),
|
|
@@ -164,61 +115,9 @@ export const de_CreateTokenWithIAMCommand = async (output, context) => {
|
|
|
164
115
|
Object.assign(contents, doc);
|
|
165
116
|
return contents;
|
|
166
117
|
};
|
|
167
|
-
const de_CreateTokenWithIAMCommandError = async (output, context) => {
|
|
168
|
-
const parsedOutput = {
|
|
169
|
-
...output,
|
|
170
|
-
body: await parseErrorBody(output.body, context),
|
|
171
|
-
};
|
|
172
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
173
|
-
switch (errorCode) {
|
|
174
|
-
case "AccessDeniedException":
|
|
175
|
-
case "com.amazonaws.ssooidc#AccessDeniedException":
|
|
176
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
177
|
-
case "AuthorizationPendingException":
|
|
178
|
-
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
|
179
|
-
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
|
180
|
-
case "ExpiredTokenException":
|
|
181
|
-
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
|
182
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
183
|
-
case "InternalServerException":
|
|
184
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
|
185
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
186
|
-
case "InvalidClientException":
|
|
187
|
-
case "com.amazonaws.ssooidc#InvalidClientException":
|
|
188
|
-
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
189
|
-
case "InvalidGrantException":
|
|
190
|
-
case "com.amazonaws.ssooidc#InvalidGrantException":
|
|
191
|
-
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
|
192
|
-
case "InvalidRequestException":
|
|
193
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
194
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
195
|
-
case "InvalidRequestRegionException":
|
|
196
|
-
case "com.amazonaws.ssooidc#InvalidRequestRegionException":
|
|
197
|
-
throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context);
|
|
198
|
-
case "InvalidScopeException":
|
|
199
|
-
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
200
|
-
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
201
|
-
case "SlowDownException":
|
|
202
|
-
case "com.amazonaws.ssooidc#SlowDownException":
|
|
203
|
-
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
|
204
|
-
case "UnauthorizedClientException":
|
|
205
|
-
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
|
206
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
207
|
-
case "UnsupportedGrantTypeException":
|
|
208
|
-
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
|
209
|
-
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
|
210
|
-
default:
|
|
211
|
-
const parsedBody = parsedOutput.body;
|
|
212
|
-
return throwDefaultError({
|
|
213
|
-
output,
|
|
214
|
-
parsedBody,
|
|
215
|
-
errorCode,
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
118
|
export const de_RegisterClientCommand = async (output, context) => {
|
|
220
119
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
221
|
-
return
|
|
120
|
+
return de_CommandError(output, context);
|
|
222
121
|
}
|
|
223
122
|
const contents = map({
|
|
224
123
|
$metadata: deserializeMetadata(output),
|
|
@@ -235,37 +134,9 @@ export const de_RegisterClientCommand = async (output, context) => {
|
|
|
235
134
|
Object.assign(contents, doc);
|
|
236
135
|
return contents;
|
|
237
136
|
};
|
|
238
|
-
const de_RegisterClientCommandError = async (output, context) => {
|
|
239
|
-
const parsedOutput = {
|
|
240
|
-
...output,
|
|
241
|
-
body: await parseErrorBody(output.body, context),
|
|
242
|
-
};
|
|
243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
244
|
-
switch (errorCode) {
|
|
245
|
-
case "InternalServerException":
|
|
246
|
-
case "com.amazonaws.ssooidc#InternalServerException":
|
|
247
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
248
|
-
case "InvalidClientMetadataException":
|
|
249
|
-
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
|
250
|
-
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
|
251
|
-
case "InvalidRequestException":
|
|
252
|
-
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
253
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
254
|
-
case "InvalidScopeException":
|
|
255
|
-
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
256
|
-
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
257
|
-
default:
|
|
258
|
-
const parsedBody = parsedOutput.body;
|
|
259
|
-
return throwDefaultError({
|
|
260
|
-
output,
|
|
261
|
-
parsedBody,
|
|
262
|
-
errorCode,
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
};
|
|
266
137
|
export const de_StartDeviceAuthorizationCommand = async (output, context) => {
|
|
267
138
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
268
|
-
return
|
|
139
|
+
return de_CommandError(output, context);
|
|
269
140
|
}
|
|
270
141
|
const contents = map({
|
|
271
142
|
$metadata: deserializeMetadata(output),
|
|
@@ -282,28 +153,52 @@ export const de_StartDeviceAuthorizationCommand = async (output, context) => {
|
|
|
282
153
|
Object.assign(contents, doc);
|
|
283
154
|
return contents;
|
|
284
155
|
};
|
|
285
|
-
const
|
|
156
|
+
const de_CommandError = async (output, context) => {
|
|
286
157
|
const parsedOutput = {
|
|
287
158
|
...output,
|
|
288
159
|
body: await parseErrorBody(output.body, context),
|
|
289
160
|
};
|
|
290
161
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
291
162
|
switch (errorCode) {
|
|
163
|
+
case "AccessDeniedException":
|
|
164
|
+
case "com.amazonaws.ssooidc#AccessDeniedException":
|
|
165
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
166
|
+
case "AuthorizationPendingException":
|
|
167
|
+
case "com.amazonaws.ssooidc#AuthorizationPendingException":
|
|
168
|
+
throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
|
|
169
|
+
case "ExpiredTokenException":
|
|
170
|
+
case "com.amazonaws.ssooidc#ExpiredTokenException":
|
|
171
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
292
172
|
case "InternalServerException":
|
|
293
173
|
case "com.amazonaws.ssooidc#InternalServerException":
|
|
294
174
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
295
175
|
case "InvalidClientException":
|
|
296
176
|
case "com.amazonaws.ssooidc#InvalidClientException":
|
|
297
177
|
throw await de_InvalidClientExceptionRes(parsedOutput, context);
|
|
178
|
+
case "InvalidGrantException":
|
|
179
|
+
case "com.amazonaws.ssooidc#InvalidGrantException":
|
|
180
|
+
throw await de_InvalidGrantExceptionRes(parsedOutput, context);
|
|
298
181
|
case "InvalidRequestException":
|
|
299
182
|
case "com.amazonaws.ssooidc#InvalidRequestException":
|
|
300
183
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
184
|
+
case "InvalidScopeException":
|
|
185
|
+
case "com.amazonaws.ssooidc#InvalidScopeException":
|
|
186
|
+
throw await de_InvalidScopeExceptionRes(parsedOutput, context);
|
|
301
187
|
case "SlowDownException":
|
|
302
188
|
case "com.amazonaws.ssooidc#SlowDownException":
|
|
303
189
|
throw await de_SlowDownExceptionRes(parsedOutput, context);
|
|
304
190
|
case "UnauthorizedClientException":
|
|
305
191
|
case "com.amazonaws.ssooidc#UnauthorizedClientException":
|
|
306
192
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
193
|
+
case "UnsupportedGrantTypeException":
|
|
194
|
+
case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
|
|
195
|
+
throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
|
|
196
|
+
case "InvalidRequestRegionException":
|
|
197
|
+
case "com.amazonaws.ssooidc#InvalidRequestRegionException":
|
|
198
|
+
throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context);
|
|
199
|
+
case "InvalidClientMetadataException":
|
|
200
|
+
case "com.amazonaws.ssooidc#InvalidClientMetadataException":
|
|
201
|
+
throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
|
|
307
202
|
default:
|
|
308
203
|
const parsedBody = parsedOutput.body;
|
|
309
204
|
return throwDefaultError({
|
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.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-oidc",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"license": "Apache-2.0",
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@aws-sdk/credential-provider-node": "^3.
|
|
89
|
+
"@aws-sdk/credential-provider-node": "^3.507.0"
|
|
90
90
|
},
|
|
91
91
|
"browser": {
|
|
92
92
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|