@aws-sdk/client-sso-oidc 3.933.0 → 3.935.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.
@@ -1,69 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
3
- /**
4
- * @public
5
- * @enum
6
- */
7
- export declare const AccessDeniedExceptionReason: {
8
- readonly KMS_ACCESS_DENIED: "KMS_AccessDeniedException";
9
- };
10
- /**
11
- * @public
12
- */
13
- export type AccessDeniedExceptionReason = (typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason];
14
- /**
15
- * <p>You do not have sufficient access to perform this action.</p>
16
- * @public
17
- */
18
- export declare class AccessDeniedException extends __BaseException {
19
- readonly name: "AccessDeniedException";
20
- readonly $fault: "client";
21
- /**
22
- * <p>Single error code. For this exception the value will be <code>access_denied</code>.</p>
23
- * @public
24
- */
25
- error?: string | undefined;
26
- /**
27
- * <p>A string that uniquely identifies a reason for the error.</p>
28
- * @public
29
- */
30
- reason?: AccessDeniedExceptionReason | undefined;
31
- /**
32
- * <p>Human-readable text providing additional information, used to assist the client developer
33
- * in understanding the error that occurred.</p>
34
- * @public
35
- */
36
- error_description?: string | undefined;
37
- /**
38
- * @internal
39
- */
40
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
41
- }
42
- /**
43
- * <p>Indicates that a request to authorize a client with an access user session token is
44
- * pending.</p>
45
- * @public
46
- */
47
- export declare class AuthorizationPendingException extends __BaseException {
48
- readonly name: "AuthorizationPendingException";
49
- readonly $fault: "client";
50
- /**
51
- * <p>Single error code. For this exception the value will be
52
- * <code>authorization_pending</code>.</p>
53
- * @public
54
- */
55
- error?: string | undefined;
56
- /**
57
- * <p>Human-readable text providing additional information, used to assist the client developer
58
- * in understanding the error that occurred.</p>
59
- * @public
60
- */
61
- error_description?: string | undefined;
62
- /**
63
- * @internal
64
- */
65
- constructor(opts: __ExceptionOptionType<AuthorizationPendingException, __BaseException>);
66
- }
67
1
  /**
68
2
  * <p>This structure contains Amazon Web Services-specific parameter extensions and the <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/trustedidentitypropagation-overview.html">identity context</a>.</p>
69
3
  * @public
@@ -188,243 +122,6 @@ export interface CreateTokenResponse {
188
122
  */
189
123
  idToken?: string | undefined;
190
124
  }
191
- /**
192
- * <p>Indicates that the token issued by the service is expired and is no longer valid.</p>
193
- * @public
194
- */
195
- export declare class ExpiredTokenException extends __BaseException {
196
- readonly name: "ExpiredTokenException";
197
- readonly $fault: "client";
198
- /**
199
- * <p>Single error code. For this exception the value will be <code>expired_token</code>.</p>
200
- * @public
201
- */
202
- error?: string | undefined;
203
- /**
204
- * <p>Human-readable text providing additional information, used to assist the client developer
205
- * in understanding the error that occurred.</p>
206
- * @public
207
- */
208
- error_description?: string | undefined;
209
- /**
210
- * @internal
211
- */
212
- constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
213
- }
214
- /**
215
- * <p>Indicates that an error from the service occurred while trying to process a
216
- * request.</p>
217
- * @public
218
- */
219
- export declare class InternalServerException extends __BaseException {
220
- readonly name: "InternalServerException";
221
- readonly $fault: "server";
222
- /**
223
- * <p>Single error code. For this exception the value will be <code>server_error</code>.</p>
224
- * @public
225
- */
226
- error?: string | undefined;
227
- /**
228
- * <p>Human-readable text providing additional information, used to assist the client developer
229
- * in understanding the error that occurred.</p>
230
- * @public
231
- */
232
- error_description?: string | undefined;
233
- /**
234
- * @internal
235
- */
236
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
237
- }
238
- /**
239
- * <p>Indicates that the <code>clientId</code> or <code>clientSecret</code> in the request is
240
- * invalid. For example, this can occur when a client sends an incorrect <code>clientId</code> or
241
- * an expired <code>clientSecret</code>.</p>
242
- * @public
243
- */
244
- export declare class InvalidClientException extends __BaseException {
245
- readonly name: "InvalidClientException";
246
- readonly $fault: "client";
247
- /**
248
- * <p>Single error code. For this exception the value will be
249
- * <code>invalid_client</code>.</p>
250
- * @public
251
- */
252
- error?: string | undefined;
253
- /**
254
- * <p>Human-readable text providing additional information, used to assist the client developer
255
- * in understanding the error that occurred.</p>
256
- * @public
257
- */
258
- error_description?: string | undefined;
259
- /**
260
- * @internal
261
- */
262
- constructor(opts: __ExceptionOptionType<InvalidClientException, __BaseException>);
263
- }
264
- /**
265
- * <p>Indicates that a request contains an invalid grant. This can occur if a client makes a
266
- * <a>CreateToken</a> request with an invalid grant type.</p>
267
- * @public
268
- */
269
- export declare class InvalidGrantException extends __BaseException {
270
- readonly name: "InvalidGrantException";
271
- readonly $fault: "client";
272
- /**
273
- * <p>Single error code. For this exception the value will be <code>invalid_grant</code>.</p>
274
- * @public
275
- */
276
- error?: string | undefined;
277
- /**
278
- * <p>Human-readable text providing additional information, used to assist the client developer
279
- * in understanding the error that occurred.</p>
280
- * @public
281
- */
282
- error_description?: string | undefined;
283
- /**
284
- * @internal
285
- */
286
- constructor(opts: __ExceptionOptionType<InvalidGrantException, __BaseException>);
287
- }
288
- /**
289
- * @public
290
- * @enum
291
- */
292
- export declare const InvalidRequestExceptionReason: {
293
- readonly KMS_DISABLED_KEY: "KMS_DisabledException";
294
- readonly KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException";
295
- readonly KMS_INVALID_STATE: "KMS_InvalidStateException";
296
- readonly KMS_KEY_NOT_FOUND: "KMS_NotFoundException";
297
- };
298
- /**
299
- * @public
300
- */
301
- export type InvalidRequestExceptionReason = (typeof InvalidRequestExceptionReason)[keyof typeof InvalidRequestExceptionReason];
302
- /**
303
- * <p>Indicates that something is wrong with the input to the request. For example, a required
304
- * parameter might be missing or out of range.</p>
305
- * @public
306
- */
307
- export declare class InvalidRequestException extends __BaseException {
308
- readonly name: "InvalidRequestException";
309
- readonly $fault: "client";
310
- /**
311
- * <p>Single error code. For this exception the value will be
312
- * <code>invalid_request</code>.</p>
313
- * @public
314
- */
315
- error?: string | undefined;
316
- /**
317
- * <p>A string that uniquely identifies a reason for the error.</p>
318
- * @public
319
- */
320
- reason?: InvalidRequestExceptionReason | undefined;
321
- /**
322
- * <p>Human-readable text providing additional information, used to assist the client developer
323
- * in understanding the error that occurred.</p>
324
- * @public
325
- */
326
- error_description?: string | undefined;
327
- /**
328
- * @internal
329
- */
330
- constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
331
- }
332
- /**
333
- * <p>Indicates that the scope provided in the request is invalid.</p>
334
- * @public
335
- */
336
- export declare class InvalidScopeException extends __BaseException {
337
- readonly name: "InvalidScopeException";
338
- readonly $fault: "client";
339
- /**
340
- * <p>Single error code. For this exception the value will be <code>invalid_scope</code>.</p>
341
- * @public
342
- */
343
- error?: string | undefined;
344
- /**
345
- * <p>Human-readable text providing additional information, used to assist the client developer
346
- * in understanding the error that occurred.</p>
347
- * @public
348
- */
349
- error_description?: string | undefined;
350
- /**
351
- * @internal
352
- */
353
- constructor(opts: __ExceptionOptionType<InvalidScopeException, __BaseException>);
354
- }
355
- /**
356
- * <p>Indicates that the client is making the request too frequently and is more than the
357
- * service can handle. </p>
358
- * @public
359
- */
360
- export declare class SlowDownException extends __BaseException {
361
- readonly name: "SlowDownException";
362
- readonly $fault: "client";
363
- /**
364
- * <p>Single error code. For this exception the value will be <code>slow_down</code>.</p>
365
- * @public
366
- */
367
- error?: string | undefined;
368
- /**
369
- * <p>Human-readable text providing additional information, used to assist the client developer
370
- * in understanding the error that occurred.</p>
371
- * @public
372
- */
373
- error_description?: string | undefined;
374
- /**
375
- * @internal
376
- */
377
- constructor(opts: __ExceptionOptionType<SlowDownException, __BaseException>);
378
- }
379
- /**
380
- * <p>Indicates that the client is not currently authorized to make the request. This can happen
381
- * when a <code>clientId</code> is not issued for a public client.</p>
382
- * @public
383
- */
384
- export declare class UnauthorizedClientException extends __BaseException {
385
- readonly name: "UnauthorizedClientException";
386
- readonly $fault: "client";
387
- /**
388
- * <p>Single error code. For this exception the value will be
389
- * <code>unauthorized_client</code>.</p>
390
- * @public
391
- */
392
- error?: string | undefined;
393
- /**
394
- * <p>Human-readable text providing additional information, used to assist the client developer
395
- * in understanding the error that occurred.</p>
396
- * @public
397
- */
398
- error_description?: string | undefined;
399
- /**
400
- * @internal
401
- */
402
- constructor(opts: __ExceptionOptionType<UnauthorizedClientException, __BaseException>);
403
- }
404
- /**
405
- * <p>Indicates that the grant type in the request is not supported by the service.</p>
406
- * @public
407
- */
408
- export declare class UnsupportedGrantTypeException extends __BaseException {
409
- readonly name: "UnsupportedGrantTypeException";
410
- readonly $fault: "client";
411
- /**
412
- * <p>Single error code. For this exception the value will be
413
- * <code>unsupported_grant_type</code>.</p>
414
- * @public
415
- */
416
- error?: string | undefined;
417
- /**
418
- * <p>Human-readable text providing additional information, used to assist the client developer
419
- * in understanding the error that occurred.</p>
420
- * @public
421
- */
422
- error_description?: string | undefined;
423
- /**
424
- * @internal
425
- */
426
- constructor(opts: __ExceptionOptionType<UnsupportedGrantTypeException, __BaseException>);
427
- }
428
125
  /**
429
126
  * @public
430
127
  */
@@ -581,91 +278,6 @@ export interface CreateTokenWithIAMResponse {
581
278
  */
582
279
  awsAdditionalDetails?: AwsAdditionalDetails | undefined;
583
280
  }
584
- /**
585
- * <p>Indicates that a token provided as input to the request was issued by and is only usable
586
- * by calling IAM Identity Center endpoints in another region.</p>
587
- * @public
588
- */
589
- export declare class InvalidRequestRegionException extends __BaseException {
590
- readonly name: "InvalidRequestRegionException";
591
- readonly $fault: "client";
592
- /**
593
- * <p>Single error code. For this exception the value will be
594
- * <code>invalid_request</code>.</p>
595
- * @public
596
- */
597
- error?: string | undefined;
598
- /**
599
- * <p>Human-readable text providing additional information, used to assist the client developer
600
- * in understanding the error that occurred.</p>
601
- * @public
602
- */
603
- error_description?: string | undefined;
604
- /**
605
- * <p>Indicates the IAM Identity Center endpoint which the requester may call with this token.</p>
606
- * @public
607
- */
608
- endpoint?: string | undefined;
609
- /**
610
- * <p>Indicates the region which the requester may call with this token.</p>
611
- * @public
612
- */
613
- region?: string | undefined;
614
- /**
615
- * @internal
616
- */
617
- constructor(opts: __ExceptionOptionType<InvalidRequestRegionException, __BaseException>);
618
- }
619
- /**
620
- * <p>Indicates that the client information sent in the request during registration is
621
- * invalid.</p>
622
- * @public
623
- */
624
- export declare class InvalidClientMetadataException extends __BaseException {
625
- readonly name: "InvalidClientMetadataException";
626
- readonly $fault: "client";
627
- /**
628
- * <p>Single error code. For this exception the value will be
629
- * <code>invalid_client_metadata</code>.</p>
630
- * @public
631
- */
632
- error?: string | undefined;
633
- /**
634
- * <p>Human-readable text providing additional information, used to assist the client developer
635
- * in understanding the error that occurred.</p>
636
- * @public
637
- */
638
- error_description?: string | undefined;
639
- /**
640
- * @internal
641
- */
642
- constructor(opts: __ExceptionOptionType<InvalidClientMetadataException, __BaseException>);
643
- }
644
- /**
645
- * <p>Indicates that one or more redirect URI in the request is not supported for this
646
- * operation.</p>
647
- * @public
648
- */
649
- export declare class InvalidRedirectUriException extends __BaseException {
650
- readonly name: "InvalidRedirectUriException";
651
- readonly $fault: "client";
652
- /**
653
- * <p>Single error code. For this exception the value will be
654
- * <code>invalid_redirect_uri</code>.</p>
655
- * @public
656
- */
657
- error?: string | undefined;
658
- /**
659
- * <p>Human-readable text providing additional information, used to assist the client developer
660
- * in understanding the error that occurred.</p>
661
- * @public
662
- */
663
- error_description?: string | undefined;
664
- /**
665
- * @internal
666
- */
667
- constructor(opts: __ExceptionOptionType<InvalidRedirectUriException, __BaseException>);
668
- }
669
281
  /**
670
282
  * @public
671
283
  */
@@ -4,5 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { SSOOIDCExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
- export * from "./models";
7
+ export * from "./models/enums";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
8
10
  export { SSOOIDCServiceException } from "./models/SSOOIDCServiceException";
@@ -0,0 +1,13 @@
1
+ export declare const AccessDeniedExceptionReason: {
2
+ readonly KMS_ACCESS_DENIED: "KMS_AccessDeniedException";
3
+ };
4
+ export type AccessDeniedExceptionReason =
5
+ (typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason];
6
+ export declare const InvalidRequestExceptionReason: {
7
+ readonly KMS_DISABLED_KEY: "KMS_DisabledException";
8
+ readonly KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException";
9
+ readonly KMS_INVALID_STATE: "KMS_InvalidStateException";
10
+ readonly KMS_KEY_NOT_FOUND: "KMS_NotFoundException";
11
+ };
12
+ export type InvalidRequestExceptionReason =
13
+ (typeof InvalidRequestExceptionReason)[keyof typeof InvalidRequestExceptionReason];
@@ -0,0 +1,134 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import {
3
+ AccessDeniedExceptionReason,
4
+ InvalidRequestExceptionReason,
5
+ } from "./enums";
6
+ import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
10
+ error?: string | undefined;
11
+ reason?: AccessDeniedExceptionReason | undefined;
12
+ error_description?: string | undefined;
13
+ constructor(
14
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
15
+ );
16
+ }
17
+ export declare class AuthorizationPendingException extends __BaseException {
18
+ readonly name: "AuthorizationPendingException";
19
+ readonly $fault: "client";
20
+ error?: string | undefined;
21
+ error_description?: string | undefined;
22
+ constructor(
23
+ opts: __ExceptionOptionType<AuthorizationPendingException, __BaseException>
24
+ );
25
+ }
26
+ export declare class ExpiredTokenException extends __BaseException {
27
+ readonly name: "ExpiredTokenException";
28
+ readonly $fault: "client";
29
+ error?: string | undefined;
30
+ error_description?: string | undefined;
31
+ constructor(
32
+ opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>
33
+ );
34
+ }
35
+ export declare class InternalServerException extends __BaseException {
36
+ readonly name: "InternalServerException";
37
+ readonly $fault: "server";
38
+ error?: string | undefined;
39
+ error_description?: string | undefined;
40
+ constructor(
41
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
42
+ );
43
+ }
44
+ export declare class InvalidClientException extends __BaseException {
45
+ readonly name: "InvalidClientException";
46
+ readonly $fault: "client";
47
+ error?: string | undefined;
48
+ error_description?: string | undefined;
49
+ constructor(
50
+ opts: __ExceptionOptionType<InvalidClientException, __BaseException>
51
+ );
52
+ }
53
+ export declare class InvalidGrantException extends __BaseException {
54
+ readonly name: "InvalidGrantException";
55
+ readonly $fault: "client";
56
+ error?: string | undefined;
57
+ error_description?: string | undefined;
58
+ constructor(
59
+ opts: __ExceptionOptionType<InvalidGrantException, __BaseException>
60
+ );
61
+ }
62
+ export declare class InvalidRequestException extends __BaseException {
63
+ readonly name: "InvalidRequestException";
64
+ readonly $fault: "client";
65
+ error?: string | undefined;
66
+ reason?: InvalidRequestExceptionReason | undefined;
67
+ error_description?: string | undefined;
68
+ constructor(
69
+ opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
70
+ );
71
+ }
72
+ export declare class InvalidScopeException extends __BaseException {
73
+ readonly name: "InvalidScopeException";
74
+ readonly $fault: "client";
75
+ error?: string | undefined;
76
+ error_description?: string | undefined;
77
+ constructor(
78
+ opts: __ExceptionOptionType<InvalidScopeException, __BaseException>
79
+ );
80
+ }
81
+ export declare class SlowDownException extends __BaseException {
82
+ readonly name: "SlowDownException";
83
+ readonly $fault: "client";
84
+ error?: string | undefined;
85
+ error_description?: string | undefined;
86
+ constructor(opts: __ExceptionOptionType<SlowDownException, __BaseException>);
87
+ }
88
+ export declare class UnauthorizedClientException extends __BaseException {
89
+ readonly name: "UnauthorizedClientException";
90
+ readonly $fault: "client";
91
+ error?: string | undefined;
92
+ error_description?: string | undefined;
93
+ constructor(
94
+ opts: __ExceptionOptionType<UnauthorizedClientException, __BaseException>
95
+ );
96
+ }
97
+ export declare class UnsupportedGrantTypeException extends __BaseException {
98
+ readonly name: "UnsupportedGrantTypeException";
99
+ readonly $fault: "client";
100
+ error?: string | undefined;
101
+ error_description?: string | undefined;
102
+ constructor(
103
+ opts: __ExceptionOptionType<UnsupportedGrantTypeException, __BaseException>
104
+ );
105
+ }
106
+ export declare class InvalidRequestRegionException extends __BaseException {
107
+ readonly name: "InvalidRequestRegionException";
108
+ readonly $fault: "client";
109
+ error?: string | undefined;
110
+ error_description?: string | undefined;
111
+ endpoint?: string | undefined;
112
+ region?: string | undefined;
113
+ constructor(
114
+ opts: __ExceptionOptionType<InvalidRequestRegionException, __BaseException>
115
+ );
116
+ }
117
+ export declare class InvalidClientMetadataException extends __BaseException {
118
+ readonly name: "InvalidClientMetadataException";
119
+ readonly $fault: "client";
120
+ error?: string | undefined;
121
+ error_description?: string | undefined;
122
+ constructor(
123
+ opts: __ExceptionOptionType<InvalidClientMetadataException, __BaseException>
124
+ );
125
+ }
126
+ export declare class InvalidRedirectUriException extends __BaseException {
127
+ readonly name: "InvalidRedirectUriException";
128
+ readonly $fault: "client";
129
+ error?: string | undefined;
130
+ error_description?: string | undefined;
131
+ constructor(
132
+ opts: __ExceptionOptionType<InvalidRedirectUriException, __BaseException>
133
+ );
134
+ }