@vardario/cognito-client 1.0.0 → 2.0.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/lib/error.d.ts CHANGED
@@ -1,116 +1,357 @@
1
- /**
2
- * Possible Cognito exceptions
3
- */
4
- export declare enum CognitoException {
5
- /**
6
- * You do not have sufficient access to perform this action.
7
- */
8
- AccessDeniedException = "AccessDeniedException",
9
- /**
10
- * The request signature does not conform to AWS standards.
11
- */
12
- IncompleteSignature = "IncompleteSignature",
13
- /**
14
- * The request processing has failed because of an unknown error, exception or failure.
15
- */
16
- InternalFailure = "InternalFailure",
17
- /**
18
- * The action or operation requested is invalid. Verify that the action is typed correctly.
19
- */
20
- InvalidAction = "InvalidAction",
21
- /**
22
- * The X.509 certificate or AWS access key ID provided does not exist in our records.
23
- */
24
- InvalidClientTokenId = "InvalidClientTokenId",
25
- /**
26
- * You do not have permission to perform this action.
27
- */
28
- NotAuthorized = "NotAuthorized",
29
- /**
30
- * The AWS access key ID needs a subscription for the service.
31
- */
32
- OptInRequired = "OptInRequired",
33
- /**
34
- * The request reached the service more than 15 minutes after the date stamp on the request or more than 15 minutes after the request expiration date (such as for pre-signed URLs), or the date stamp on the request is more than 15 minutes in the future.
35
- */
36
- RequestExpired = "RequestExpired",
37
- /**
38
- * The request has failed due to a temporary failure of the server.
39
- */
40
- ServiceUnavailable = "ServiceUnavailable",
41
- /**
42
- * The request was denied due to request throttling.
43
- */
44
- ThrottlingException = "ThrottlingException",
45
- /**
46
- * The input fails to satisfy the constraints specified by an AWS service.
47
- */
48
- ValidationError = "ValidationError",
49
- /**
50
- * This exception is thrown when AWS WAF doesn't allow your request based on a web ACL that's associated with your user pool.
51
- */
52
- ForbiddenException = "ForbiddenException",
53
- /**
54
- * This exception is thrown when Amazon Cognito encounters an internal error.
55
- */
56
- InternalErrorException = "InternalErrorException",
57
- /**
58
- * This exception is thrown when Amazon Cognito encounters an invalid AWS Lambda response.
59
- */
1
+ export declare enum CognitoCommonException {
2
+ Unknown = "Unknown"
3
+ }
4
+ export declare enum AssociateSoftwareTokenException {
5
+ ConcurrentModificationException = "ConcurrentModificationException",
6
+ ForbiddenException = "ForbiddenException",
7
+ InternalErrorException = "InternalErrorException",
8
+ InvalidParameterException = "InvalidParameterException",
9
+ NotAuthorizedException = "NotAuthorizedException",
10
+ ResourceNotFoundException = "ResourceNotFoundException",
11
+ SoftwareTokenMFANotFoundException = "SoftwareTokenMFANotFoundException"
12
+ }
13
+ export declare enum ChangePasswordException {
14
+ ForbiddenException = "ForbiddenException",
15
+ InternalErrorException = "InternalErrorException",
16
+ InvalidParameterException = "InvalidParameterException",
17
+ InvalidPasswordException = "InvalidPasswordException",
18
+ LimitExceededException = "LimitExceededException",
19
+ NotAuthorizedException = "NotAuthorizedException",
20
+ PasswordResetRequiredException = "PasswordResetRequiredException",
21
+ ResourceNotFoundException = "ResourceNotFoundException",
22
+ TooManyRequestsException = "TooManyRequestsException",
23
+ UserNotConfirmedException = "UserNotConfirmedException",
24
+ UserNotFoundException = "UserNotFoundException"
25
+ }
26
+ export declare enum ConfirmDeviceException {
27
+ ForbiddenException = "ForbiddenException",
28
+ InternalErrorException = "InternalErrorException",
29
+ InvalidLambdaResponseException = "InvalidLambdaResponseException",
30
+ InvalidParameterException = "InvalidParameterException",
31
+ InvalidPasswordException = "InvalidPasswordException",
32
+ InvalidUserPoolConfigurationException = "InvalidUserPoolConfigurationException",
33
+ NotAuthorizedException = "NotAuthorizedException",
34
+ PasswordResetRequiredException = "PasswordResetRequiredException",
35
+ ResourceNotFoundException = "ResourceNotFoundException",
36
+ TooManyRequestsException = "TooManyRequestsException",
37
+ UsernameExistsException = "UsernameExistsException",
38
+ UserNotConfirmedException = "UserNotConfirmedException",
39
+ UserNotFoundException = "UserNotFoundException"
40
+ }
41
+ export declare enum ConfirmForgotPasswordException {
42
+ CodeMismatchException = "CodeMismatchException",
43
+ ExpiredCodeException = "ExpiredCodeException",
44
+ ForbiddenException = "ForbiddenException",
45
+ InternalErrorException = "InternalErrorException",
46
+ InvalidLambdaResponseException = "InvalidLambdaResponseException",
47
+ InvalidParameterException = "InvalidParameterException",
48
+ InvalidPasswordException = "InvalidPasswordException",
49
+ LimitExceededException = "LimitExceededException",
50
+ NotAuthorizedException = "NotAuthorizedException",
51
+ ResourceNotFoundException = "ResourceNotFoundException",
52
+ TooManyFailedAttemptsException = "TooManyFailedAttemptsException",
53
+ TooManyRequestsException = "TooManyRequestsException",
54
+ UnexpectedLambdaException = "UnexpectedLambdaException",
55
+ UserLambdaValidationException = "UserLambdaValidationException",
56
+ UserNotConfirmedException = "UserNotConfirmedException",
57
+ UserNotFoundException = "UserNotFoundException"
58
+ }
59
+ export declare enum ConfirmSignUpException {
60
+ AliasExistsException = "AliasExistsException",
61
+ CodeMismatchException = "CodeMismatchException",
62
+ ExpiredCodeException = "ExpiredCodeException",
63
+ ForbiddenException = "ForbiddenException",
64
+ InternalErrorException = "InternalErrorException",
65
+ InvalidLambdaResponseException = "InvalidLambdaResponseException",
66
+ InvalidParameterException = "InvalidParameterException",
67
+ LimitExceededException = "LimitExceededException",
68
+ NotAuthorizedException = "NotAuthorizedException",
69
+ ResourceNotFoundException = "ResourceNotFoundException",
70
+ TooManyFailedAttemptsException = "TooManyFailedAttemptsException",
71
+ TooManyRequestsException = "TooManyRequestsException",
72
+ UnexpectedLambdaException = "UnexpectedLambdaException",
73
+ UserLambdaValidationException = "UserLambdaValidationException",
74
+ UserNotFoundException = "UserNotFoundException"
75
+ }
76
+ export declare enum DeleteUserAttributesException {
77
+ ForbiddenException = "ForbiddenException",
78
+ InternalErrorException = "InternalErrorException",
79
+ InvalidParameterException = "InvalidParameterException",
80
+ NotAuthorizedException = "NotAuthorizedException",
81
+ PasswordResetRequiredException = "PasswordResetRequiredException",
82
+ ResourceNotFoundException = "ResourceNotFoundException",
83
+ TooManyRequestsException = "TooManyRequestsException",
84
+ UserNotConfirmedException = "UserNotConfirmedException",
85
+ UserNotFoundException = "UserNotFoundException"
86
+ }
87
+ export declare enum DeleteUserException {
88
+ ForbiddenException = "ForbiddenException",
89
+ InternalErrorException = "InternalErrorException",
90
+ InvalidParameterException = "InvalidParameterException",
91
+ NotAuthorizedException = "NotAuthorizedException",
92
+ PasswordResetRequiredException = "PasswordResetRequiredException",
93
+ ResourceNotFoundException = "ResourceNotFoundException",
94
+ TooManyRequestsException = "TooManyRequestsException",
95
+ UserNotConfirmedException = "UserNotConfirmedException",
96
+ UserNotFoundException = "UserNotFoundException"
97
+ }
98
+ export declare enum ForgetDeviceException {
99
+ ForbiddenException = "ForbiddenException",
100
+ InternalErrorException = "InternalErrorException",
101
+ InvalidParameterException = "InvalidParameterException",
102
+ InvalidUserPoolConfigurationException = "InvalidUserPoolConfigurationException",
103
+ NotAuthorizedException = "NotAuthorizedException",
104
+ PasswordResetRequiredException = "PasswordResetRequiredException",
105
+ ResourceNotFoundException = "ResourceNotFoundException",
106
+ TooManyRequestsException = "TooManyRequestsException",
107
+ UserNotConfirmedException = "UserNotConfirmedException",
108
+ UserNotFoundException = "UserNotFoundException"
109
+ }
110
+ export declare enum ForgotPasswordException {
111
+ CodeDeliveryFailureException = "CodeDeliveryFailureException",
112
+ ForbiddenException = "ForbiddenException",
113
+ InternalErrorException = "InternalErrorException",
114
+ InvalidEmailRoleAccessPolicyException = "InvalidEmailRoleAccessPolicyException",
115
+ InvalidLambdaResponseException = "InvalidLambdaResponseException",
116
+ InvalidParameterException = "InvalidParameterException",
117
+ InvalidSmsRoleAccessPolicyException = "InvalidSmsRoleAccessPolicyException",
118
+ InvalidSmsRoleTrustRelationshipException = "InvalidSmsRoleTrustRelationshipException",
119
+ LimitExceededException = "LimitExceededException",
120
+ NotAuthorizedException = "NotAuthorizedException",
121
+ ResourceNotFoundException = "ResourceNotFoundException",
122
+ TooManyRequestsException = "TooManyRequestsException",
123
+ UnexpectedLambdaException = "UnexpectedLambdaException",
124
+ UserLambdaValidationException = "UserLambdaValidationException",
125
+ UserNotFoundException = "UserNotFoundException"
126
+ }
127
+ export declare enum GetUserException {
128
+ ForbiddenException = "ForbiddenException",
129
+ InternalErrorException = "InternalErrorException",
130
+ InvalidParameterException = "InvalidParameterException",
131
+ NotAuthorizedException = "NotAuthorizedException",
132
+ PasswordResetRequiredException = "PasswordResetRequiredException",
133
+ ResourceNotFoundException = "ResourceNotFoundException",
134
+ TooManyRequestsException = "TooManyRequestsException",
135
+ UserNotConfirmedException = "UserNotConfirmedException",
136
+ UserNotFoundException = "UserNotFoundException"
137
+ }
138
+ export declare enum GetIdException {
139
+ ExternalServiceException = "ExternalServiceException",
140
+ InternalErrorException = "InternalErrorException",
141
+ InvalidParameterException = "InvalidParameterException",
142
+ LimitExceededException = "LimitExceededException",
143
+ NotAuthorizedException = "NotAuthorizedException",
144
+ ResourceConflictException = "ResourceConflictException",
145
+ ResourceNotFoundException = "ResourceNotFoundException",
146
+ TooManyRequestsException = "TooManyRequestsException"
147
+ }
148
+ export declare enum GetCredentialsForIdentityException {
149
+ ExternalServiceException = "ExternalServiceException",
150
+ InternalErrorException = "InternalErrorException",
151
+ InvalidIdentityPoolConfigurationException = "InvalidIdentityPoolConfigurationException",
152
+ InvalidParameterException = "InvalidParameterException",
153
+ NotAuthorizedException = "NotAuthorizedException",
154
+ ResourceConflictException = "ResourceConflictException",
155
+ ResourceNotFoundException = "ResourceNotFoundException",
156
+ TooManyRequestsException = "TooManyRequestsException"
157
+ }
158
+ export declare enum GetUserAttributeVerificationException {
159
+ CodeDeliveryFailureException = "CodeDeliveryFailureException",
160
+ ForbiddenException = "ForbiddenException",
161
+ InternalErrorException = "InternalErrorException",
162
+ InvalidEmailRoleAccessPolicyException = "InvalidEmailRoleAccessPolicyException",
163
+ InvalidLambdaResponseException = "InvalidLambdaResponseException",
164
+ InvalidParameterException = "InvalidParameterException",
165
+ InvalidSmsRoleAccessPolicyException = "InvalidSmsRoleAccessPolicyException",
166
+ InvalidSmsRoleTrustRelationshipException = "InvalidSmsRoleTrustRelationshipException",
167
+ LimitExceededException = "LimitExceededException",
168
+ NotAuthorizedException = "NotAuthorizedException",
169
+ PasswordResetRequiredException = "PasswordResetRequiredException",
170
+ ResourceNotFoundException = "ResourceNotFoundException",
171
+ TooManyRequestsException = "TooManyRequestsException",
172
+ UnexpectedLambdaException = "UnexpectedLambdaException",
173
+ UserLambdaValidationException = "UserLambdaValidationException",
174
+ UserNotConfirmedException = "UserNotConfirmedException",
175
+ UserNotFoundException = "UserNotFoundException"
176
+ }
177
+ export declare enum GlobalSignOutException {
178
+ ForbiddenException = "ForbiddenException",
179
+ InternalErrorException = "InternalErrorException",
180
+ InvalidParameterException = "InvalidParameterException",
181
+ NotAuthorizedException = "NotAuthorizedException",
182
+ PasswordResetRequiredException = "PasswordResetRequiredException",
183
+ ResourceNotFoundException = "ResourceNotFoundException",
184
+ TooManyRequestsException = "TooManyRequestsException",
185
+ UserNotConfirmedException = "UserNotConfirmedException"
186
+ }
187
+ export declare enum InitiateAuthException {
188
+ PasswordResetRequiredException = "PasswordResetRequiredException",
189
+ ForbiddenException = "ForbiddenException",
190
+ InternalErrorException = "InternalErrorException",
60
191
  InvalidLambdaResponseException = "InvalidLambdaResponseException",
61
- /**
62
- * This exception is thrown when the Amazon Cognito service encounters an invalid parameter.
63
- */
64
192
  InvalidParameterException = "InvalidParameterException",
65
- /**
66
- * This exception is returned when the role provided for SMS configuration doesn't have permission to publish using Amazon SNS.
67
- */
68
193
  InvalidSmsRoleAccessPolicyException = "InvalidSmsRoleAccessPolicyException",
69
- /**
70
- * This exception is thrown when the trust relationship is not valid for the role provided for SMS configuration. This can happen if you don't trust cognito-idp.amazonaws.com or the external ID provided in the role does not match what is provided in the SMS configuration for the user pool.
71
- */
72
194
  InvalidSmsRoleTrustRelationshipException = "InvalidSmsRoleTrustRelationshipException",
73
- /**
74
- * This exception is thrown when the user pool configuration is not valid.
75
- */
76
195
  InvalidUserPoolConfigurationException = "InvalidUserPoolConfigurationException",
77
- /**
78
- * This exception is thrown when a user isn't authorized.
79
- */
80
196
  NotAuthorizedException = "NotAuthorizedException",
81
- /**
82
- * This exception is thrown when a password reset is required.
83
- */
197
+ ResourceNotFoundException = "ResourceNotFoundException",
198
+ TooManyRequestsException = "TooManyRequestsException",
199
+ UnexpectedLambdaException = "UnexpectedLambdaException",
200
+ UserLambdaValidationException = "UserLambdaValidationException",
201
+ UserNotConfirmedException = "UserNotConfirmedException",
202
+ UserNotFoundException = "UserNotFoundException"
203
+ }
204
+ export declare enum ResendConfirmationException {
205
+ CodeDeliveryFailureException = "CodeDeliveryFailureException",
206
+ ForbiddenException = "ForbiddenException",
207
+ InternalErrorException = "InternalErrorException",
208
+ InvalidEmailRoleAccessPolicyException = "InvalidEmailRoleAccessPolicyException",
209
+ InvalidLambdaResponseException = "InvalidLambdaResponseException",
210
+ InvalidParameterException = "InvalidParameterException",
211
+ InvalidSmsRoleAccessPolicyException = "InvalidSmsRoleAccessPolicyException",
212
+ InvalidSmsRoleTrustRelationshipException = "InvalidSmsRoleTrustRelationshipException",
213
+ LimitExceededException = "LimitExceededException",
214
+ NotAuthorizedException = "NotAuthorizedException",
215
+ ResourceNotFoundException = "ResourceNotFoundException",
216
+ TooManyRequestsException = "TooManyRequestsException",
217
+ UnexpectedLambdaException = "UnexpectedLambdaException",
218
+ UserLambdaValidationException = "UserLambdaValidationException",
219
+ UserNotFoundException = "UserNotFoundException"
220
+ }
221
+ export declare enum RespondToAuthChallengeException {
222
+ AliasExistsException = "AliasExistsException",
223
+ CodeMismatchException = "CodeMismatchException",
224
+ ExpiredCodeException = "ExpiredCodeException",
225
+ ForbiddenException = "ForbiddenException",
226
+ InternalErrorException = "InternalErrorException",
227
+ InvalidLambdaResponseException = "InvalidLambdaResponseException",
228
+ InvalidParameterException = "InvalidParameterException",
229
+ InvalidPasswordException = "InvalidPasswordException",
230
+ InvalidSmsRoleAccessPolicyException = "InvalidSmsRoleAccessPolicyException",
231
+ InvalidSmsRoleTrustRelationshipException = "InvalidSmsRoleTrustRelationshipException",
232
+ InvalidUserPoolConfigurationException = "InvalidUserPoolConfigurationException",
233
+ MFAMethodNotFoundException = "MFAMethodNotFoundException",
234
+ NotAuthorizedException = "NotAuthorizedException",
235
+ PasswordResetRequiredException = "PasswordResetRequiredException",
236
+ ResourceNotFoundException = "ResourceNotFoundException",
237
+ SoftwareTokenMFANotFoundException = "SoftwareTokenMFANotFoundException",
238
+ TooManyRequestsException = "TooManyRequestsException",
239
+ UnexpectedLambdaException = "UnexpectedLambdaException",
240
+ UserLambdaValidationException = "UserLambdaValidationException",
241
+ UserNotConfirmedException = "UserNotConfirmedException",
242
+ UserNotFoundException = "UserNotFoundException"
243
+ }
244
+ export declare enum SetUserMFAPreferenceException {
245
+ ForbiddenException = "ForbiddenException",
246
+ InternalErrorException = "InternalErrorException",
247
+ InvalidParameterException = "InvalidParameterException",
248
+ NotAuthorizedException = "NotAuthorizedException",
249
+ PasswordResetRequiredException = "PasswordResetRequiredException",
250
+ ResourceNotFoundException = "ResourceNotFoundException",
251
+ UserNotConfirmedException = "UserNotConfirmedException",
252
+ UserNotFoundException = "UserNotFoundException"
253
+ }
254
+ export declare enum SignUpException {
255
+ CodeDeliveryFailureException = "CodeDeliveryFailureException",
256
+ InternalErrorException = "InternalErrorException",
257
+ InvalidEmailRoleAccessPolicyException = "InvalidEmailRoleAccessPolicyException",
258
+ InvalidLambdaResponseException = "InvalidLambdaResponseException",
259
+ InvalidParameterException = "InvalidParameterException",
260
+ InvalidPasswordException = "InvalidPasswordException",
261
+ InvalidSmsRoleAccessPolicyException = "InvalidSmsRoleAccessPolicyException",
262
+ InvalidSmsRoleTrustRelationshipException = "InvalidSmsRoleTrustRelationshipException",
263
+ NotAuthorizedException = "NotAuthorizedException",
264
+ ResourceNotFoundException = "ResourceNotFoundException",
265
+ TooManyRequestsException = "TooManyRequestsException",
266
+ UnexpectedLambdaException = "UnexpectedLambdaException",
267
+ UserLambdaValidationException = "UserLambdaValidationException",
268
+ UsernameExistsException = "UsernameExistsException"
269
+ }
270
+ export declare enum UpdateUserAttributesException {
271
+ AliasExistsException = "AliasExistsException",
272
+ CodeDeliveryFailureException = "CodeDeliveryFailureException",
273
+ CodeMismatchException = "CodeMismatchException",
274
+ ExpiredCodeException = "ExpiredCodeException",
275
+ ForbiddenException = "ForbiddenException",
276
+ InternalErrorException = "InternalErrorException",
277
+ InvalidEmailRoleAccessPolicyException = "InvalidEmailRoleAccessPolicyException",
278
+ InvalidLambdaResponseException = "InvalidLambdaResponseException",
279
+ InvalidParameterException = "InvalidParameterException",
280
+ InvalidSmsRoleAccessPolicyException = "InvalidSmsRoleAccessPolicyException",
281
+ InvalidSmsRoleTrustRelationshipException = "InvalidSmsRoleTrustRelationshipException",
282
+ NotAuthorizedException = "NotAuthorizedException",
84
283
  PasswordResetRequiredException = "PasswordResetRequiredException",
85
- /**
86
- * This exception is thrown when the Amazon Cognito service can't find the requested resource.
87
- */
88
284
  ResourceNotFoundException = "ResourceNotFoundException",
89
- /**
90
- * This exception is thrown when the user has made too many requests for a given operation.
91
- */
92
285
  TooManyRequestsException = "TooManyRequestsException",
93
- /**
94
- * This exception is thrown when Amazon Cognito encounters an unexpected exception with AWS Lambda.
95
- */
96
286
  UnexpectedLambdaException = "UnexpectedLambdaException",
97
- /**
98
- * This exception is thrown when the Amazon Cognito service encounters a user validation exception with the AWS Lambda service.
99
- */
100
287
  UserLambdaValidationException = "UserLambdaValidationException",
101
- /**
102
- * This exception is thrown when a user isn't confirmed successfully.
103
- */
104
- UserNotConfirmedException = "UserNotConfirmedException",
105
- /**
106
- * This exception is thrown when a user isn't found.
107
- */
108
- UserNotFoundException = "UserNotFoundException",
109
- /**
110
- * Unknown auth error happened.
111
- */
112
- Unknown = "unknown"
288
+ UserNotConfirmedException = "UserNotConfirmedException",
289
+ UserNotFoundException = "UserNotFoundException"
290
+ }
291
+ export declare enum VerifySoftwareTokenException {
292
+ CodeMismatchException = "CodeMismatchException",
293
+ EnableSoftwareTokenMFAException = "EnableSoftwareTokenMFAException",
294
+ ForbiddenException = "ForbiddenException",
295
+ InternalErrorException = "InternalErrorException",
296
+ InvalidParameterException = "InvalidParameterException",
297
+ InvalidUserPoolConfigurationException = "InvalidUserPoolConfigurationException",
298
+ NotAuthorizedException = "NotAuthorizedException",
299
+ PasswordResetRequiredException = "PasswordResetRequiredException",
300
+ ResourceNotFoundException = "ResourceNotFoundException",
301
+ SoftwareTokenMFANotFoundException = "SoftwareTokenMFANotFoundException",
302
+ TooManyRequestsException = "TooManyRequestsException",
303
+ UserNotConfirmedException = "UserNotConfirmedException",
304
+ UserNotFoundException = "UserNotFoundException"
305
+ }
306
+ export declare enum VerifyUserAttributeException {
307
+ AliasExistsException = "AliasExistsException",
308
+ CodeMismatchException = "CodeMismatchException",
309
+ ExpiredCodeException = "ExpiredCodeException",
310
+ ForbiddenException = "ForbiddenException",
311
+ InternalErrorException = "InternalErrorException",
312
+ InvalidParameterException = "InvalidParameterException",
313
+ LimitExceededException = "LimitExceededException",
314
+ NotAuthorizedException = "NotAuthorizedException",
315
+ PasswordResetRequiredException = "PasswordResetRequiredException",
316
+ ResourceNotFoundException = "ResourceNotFoundException",
317
+ TooManyRequestsException = "TooManyRequestsException",
318
+ UserNotConfirmedException = "UserNotConfirmedException",
319
+ UserNotFoundException = "UserNotFoundException"
320
+ }
321
+ export declare enum UpdateDeviceStatusException {
322
+ ForbiddenException = "ForbiddenException",
323
+ InternalErrorException = "InternalErrorException",
324
+ InvalidParameterException = "InvalidParameterException",
325
+ InvalidUserPoolConfigurationException = "InvalidUserPoolConfigurationException",
326
+ NotAuthorizedException = "NotAuthorizedException",
327
+ PasswordResetRequiredException = "PasswordResetRequiredException",
328
+ ResourceNotFoundException = "ResourceNotFoundException",
329
+ TooManyRequestsException = "TooManyRequestsException",
330
+ UserNotConfirmedException = "UserNotConfirmedException",
331
+ UserNotFoundException = "UserNotFoundException"
332
+ }
333
+ export declare enum ListDevicesException {
334
+ ForbiddenException = "ForbiddenException",
335
+ InternalErrorException = "InternalErrorException",
336
+ InvalidParameterException = "InvalidParameterException",
337
+ InvalidUserPoolConfigurationException = "InvalidUserPoolConfigurationException",
338
+ NotAuthorizedException = "NotAuthorizedException",
339
+ PasswordResetRequiredException = "PasswordResetRequiredException",
340
+ ResourceNotFoundException = "ResourceNotFoundException",
341
+ TooManyRequestsException = "TooManyRequestsException",
342
+ UserNotConfirmedException = "UserNotConfirmedException",
343
+ UserNotFoundException = "UserNotFoundException"
344
+ }
345
+ export declare enum RevokeTokenException {
346
+ ForbiddenException = "ForbiddenException",
347
+ InternalErrorException = "InternalErrorException",
348
+ InvalidParameterException = "InvalidParameterException",
349
+ TooManyRequestsException = "TooManyRequestsException",
350
+ UnauthorizedException = "UnauthorizedException",
351
+ UnsupportedOperationException = "UnsupportedOperationException",
352
+ UnsupportedTokenTypeException = "UnsupportedTokenTypeException"
113
353
  }
354
+ export type CognitoException = AssociateSoftwareTokenException | ChangePasswordException | ConfirmDeviceException | ConfirmForgotPasswordException | ConfirmSignUpException | DeleteUserAttributesException | DeleteUserException | ForgetDeviceException | ForgotPasswordException | GetUserException | GetIdException | GetCredentialsForIdentityException | GetUserAttributeVerificationException | GlobalSignOutException | InitiateAuthException | ResendConfirmationException | RespondToAuthChallengeException | SetUserMFAPreferenceException | SignUpException | UpdateUserAttributesException | VerifySoftwareTokenException | VerifyUserAttributeException | UpdateDeviceStatusException | ListDevicesException | CognitoCommonException | RevokeTokenException;
114
355
  export declare class CognitoError extends Error {
115
356
  readonly cognitoException: CognitoException;
116
357
  constructor(message: string, cognitoException: CognitoException);