@aws-sdk/client-cognito-identity-provider 3.693.0 → 3.699.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.
Files changed (117) hide show
  1. package/README.md +80 -0
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +20 -0
  3. package/dist-cjs/index.js +983 -71
  4. package/dist-es/CognitoIdentityProvider.js +20 -0
  5. package/dist-es/auth/httpAuthSchemeProvider.js +20 -0
  6. package/dist-es/commands/CompleteWebAuthnRegistrationCommand.js +23 -0
  7. package/dist-es/commands/ConfirmSignUpCommand.js +2 -2
  8. package/dist-es/commands/CreateManagedLoginBrandingCommand.js +23 -0
  9. package/dist-es/commands/DeleteManagedLoginBrandingCommand.js +22 -0
  10. package/dist-es/commands/DeleteWebAuthnCredentialCommand.js +23 -0
  11. package/dist-es/commands/DescribeManagedLoginBrandingByClientCommand.js +23 -0
  12. package/dist-es/commands/DescribeManagedLoginBrandingCommand.js +22 -0
  13. package/dist-es/commands/GetUserAuthFactorsCommand.js +23 -0
  14. package/dist-es/commands/GlobalSignOutCommand.js +1 -1
  15. package/dist-es/commands/InitiateAuthCommand.js +1 -1
  16. package/dist-es/commands/ListDevicesCommand.js +1 -1
  17. package/dist-es/commands/ListUserPoolClientsCommand.js +1 -1
  18. package/dist-es/commands/ListUsersCommand.js +1 -1
  19. package/dist-es/commands/ListUsersInGroupCommand.js +1 -1
  20. package/dist-es/commands/ListWebAuthnCredentialsCommand.js +23 -0
  21. package/dist-es/commands/ResendConfirmationCodeCommand.js +1 -1
  22. package/dist-es/commands/RespondToAuthChallengeCommand.js +1 -2
  23. package/dist-es/commands/SignUpCommand.js +2 -2
  24. package/dist-es/commands/StartWebAuthnRegistrationCommand.js +23 -0
  25. package/dist-es/commands/UpdateManagedLoginBrandingCommand.js +22 -0
  26. package/dist-es/commands/index.js +10 -0
  27. package/dist-es/models/models_0.js +184 -50
  28. package/dist-es/models/models_1.js +82 -1
  29. package/dist-es/protocols/Aws_json1_1.js +433 -2
  30. package/dist-types/CognitoIdentityProvider.d.ts +71 -0
  31. package/dist-types/CognitoIdentityProviderClient.d.ts +12 -2
  32. package/dist-types/commands/AdminCreateUserCommand.d.ts +9 -4
  33. package/dist-types/commands/AdminGetUserCommand.d.ts +2 -1
  34. package/dist-types/commands/AdminInitiateAuthCommand.d.ts +5 -4
  35. package/dist-types/commands/AdminListDevicesCommand.d.ts +1 -1
  36. package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +2 -2
  37. package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +4 -4
  38. package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +2 -2
  39. package/dist-types/commands/ChangePasswordCommand.d.ts +1 -1
  40. package/dist-types/commands/CompleteWebAuthnRegistrationCommand.d.ts +119 -0
  41. package/dist-types/commands/ConfirmSignUpCommand.d.ts +5 -2
  42. package/dist-types/commands/CreateManagedLoginBrandingCommand.d.ts +162 -0
  43. package/dist-types/commands/CreateUserPoolClientCommand.d.ts +2 -2
  44. package/dist-types/commands/CreateUserPoolCommand.d.ts +22 -2
  45. package/dist-types/commands/CreateUserPoolDomainCommand.d.ts +8 -1
  46. package/dist-types/commands/DeleteManagedLoginBrandingCommand.d.ts +113 -0
  47. package/dist-types/commands/DeleteWebAuthnCredentialCommand.d.ts +90 -0
  48. package/dist-types/commands/DescribeManagedLoginBrandingByClientCommand.d.ts +108 -0
  49. package/dist-types/commands/DescribeManagedLoginBrandingCommand.d.ts +108 -0
  50. package/dist-types/commands/DescribeUserPoolClientCommand.d.ts +1 -1
  51. package/dist-types/commands/DescribeUserPoolCommand.d.ts +6 -0
  52. package/dist-types/commands/DescribeUserPoolDomainCommand.d.ts +1 -0
  53. package/dist-types/commands/ForgotPasswordCommand.d.ts +2 -2
  54. package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +2 -2
  55. package/dist-types/commands/GetUserAuthFactorsCommand.d.ts +120 -0
  56. package/dist-types/commands/GetUserPoolMfaConfigCommand.d.ts +6 -1
  57. package/dist-types/commands/GlobalSignOutCommand.d.ts +1 -1
  58. package/dist-types/commands/InitiateAuthCommand.d.ts +9 -5
  59. package/dist-types/commands/ListDevicesCommand.d.ts +1 -1
  60. package/dist-types/commands/ListGroupsCommand.d.ts +1 -1
  61. package/dist-types/commands/ListIdentityProvidersCommand.d.ts +1 -1
  62. package/dist-types/commands/ListResourceServersCommand.d.ts +1 -1
  63. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  64. package/dist-types/commands/ListUserImportJobsCommand.d.ts +1 -1
  65. package/dist-types/commands/ListUserPoolClientsCommand.d.ts +1 -1
  66. package/dist-types/commands/ListUserPoolsCommand.d.ts +1 -1
  67. package/dist-types/commands/ListUsersCommand.d.ts +1 -1
  68. package/dist-types/commands/ListUsersInGroupCommand.d.ts +1 -1
  69. package/dist-types/commands/ListWebAuthnCredentialsCommand.d.ts +100 -0
  70. package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +3 -3
  71. package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +5 -6
  72. package/dist-types/commands/SetLogDeliveryConfigurationCommand.d.ts +4 -0
  73. package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +15 -3
  74. package/dist-types/commands/SignUpCommand.d.ts +11 -3
  75. package/dist-types/commands/StartWebAuthnRegistrationCommand.d.ts +107 -0
  76. package/dist-types/commands/UpdateManagedLoginBrandingCommand.d.ts +150 -0
  77. package/dist-types/commands/UpdateUserAttributesCommand.d.ts +2 -2
  78. package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +2 -2
  79. package/dist-types/commands/UpdateUserPoolCommand.d.ts +17 -2
  80. package/dist-types/commands/UpdateUserPoolDomainCommand.d.ts +6 -0
  81. package/dist-types/commands/index.d.ts +10 -0
  82. package/dist-types/models/models_0.d.ts +1609 -1660
  83. package/dist-types/models/models_1.d.ts +1711 -7
  84. package/dist-types/protocols/Aws_json1_1.d.ts +90 -0
  85. package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +177 -0
  86. package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +60 -0
  87. package/dist-types/ts3.4/commands/CompleteWebAuthnRegistrationCommand.d.ts +51 -0
  88. package/dist-types/ts3.4/commands/ConfirmSignUpCommand.d.ts +1 -1
  89. package/dist-types/ts3.4/commands/CreateManagedLoginBrandingCommand.d.ts +51 -0
  90. package/dist-types/ts3.4/commands/DeleteManagedLoginBrandingCommand.d.ts +47 -0
  91. package/dist-types/ts3.4/commands/DeleteWebAuthnCredentialCommand.d.ts +51 -0
  92. package/dist-types/ts3.4/commands/DescribeManagedLoginBrandingByClientCommand.d.ts +51 -0
  93. package/dist-types/ts3.4/commands/DescribeManagedLoginBrandingCommand.d.ts +51 -0
  94. package/dist-types/ts3.4/commands/GetUserAuthFactorsCommand.d.ts +51 -0
  95. package/dist-types/ts3.4/commands/GetUserPoolMfaConfigCommand.d.ts +2 -4
  96. package/dist-types/ts3.4/commands/GlobalSignOutCommand.d.ts +1 -1
  97. package/dist-types/ts3.4/commands/InitiateAuthCommand.d.ts +1 -1
  98. package/dist-types/ts3.4/commands/ListDevicesCommand.d.ts +1 -1
  99. package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +1 -1
  100. package/dist-types/ts3.4/commands/ListIdentityProvidersCommand.d.ts +1 -1
  101. package/dist-types/ts3.4/commands/ListResourceServersCommand.d.ts +1 -1
  102. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  103. package/dist-types/ts3.4/commands/ListUserImportJobsCommand.d.ts +1 -1
  104. package/dist-types/ts3.4/commands/ListUserPoolClientsCommand.d.ts +1 -1
  105. package/dist-types/ts3.4/commands/ListUserPoolsCommand.d.ts +1 -1
  106. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/ListUsersInGroupCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/ListWebAuthnCredentialsCommand.d.ts +51 -0
  109. package/dist-types/ts3.4/commands/ResendConfirmationCodeCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/RespondToAuthChallengeCommand.d.ts +4 -2
  111. package/dist-types/ts3.4/commands/StartWebAuthnRegistrationCommand.d.ts +51 -0
  112. package/dist-types/ts3.4/commands/UpdateManagedLoginBrandingCommand.d.ts +51 -0
  113. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  114. package/dist-types/ts3.4/models/models_0.d.ts +248 -185
  115. package/dist-types/ts3.4/models/models_1.d.ts +262 -1
  116. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +120 -0
  117. package/package.json +35 -35
@@ -39,6 +39,7 @@ export class InvalidParameterException extends __BaseException {
39
39
  this.name = "InvalidParameterException";
40
40
  this.$fault = "client";
41
41
  Object.setPrototypeOf(this, InvalidParameterException.prototype);
42
+ this.reasonCode = opts.reasonCode;
42
43
  }
43
44
  }
44
45
  export class NotAuthorizedException extends __BaseException {
@@ -293,6 +294,7 @@ export const AuthFlowType = {
293
294
  CUSTOM_AUTH: "CUSTOM_AUTH",
294
295
  REFRESH_TOKEN: "REFRESH_TOKEN",
295
296
  REFRESH_TOKEN_AUTH: "REFRESH_TOKEN_AUTH",
297
+ USER_AUTH: "USER_AUTH",
296
298
  USER_PASSWORD_AUTH: "USER_PASSWORD_AUTH",
297
299
  USER_SRP_AUTH: "USER_SRP_AUTH",
298
300
  };
@@ -304,10 +306,15 @@ export const ChallengeNameType = {
304
306
  EMAIL_OTP: "EMAIL_OTP",
305
307
  MFA_SETUP: "MFA_SETUP",
306
308
  NEW_PASSWORD_REQUIRED: "NEW_PASSWORD_REQUIRED",
309
+ PASSWORD: "PASSWORD",
310
+ PASSWORD_SRP: "PASSWORD_SRP",
307
311
  PASSWORD_VERIFIER: "PASSWORD_VERIFIER",
312
+ SELECT_CHALLENGE: "SELECT_CHALLENGE",
308
313
  SELECT_MFA_TYPE: "SELECT_MFA_TYPE",
309
314
  SMS_MFA: "SMS_MFA",
315
+ SMS_OTP: "SMS_OTP",
310
316
  SOFTWARE_TOKEN_MFA: "SOFTWARE_TOKEN_MFA",
317
+ WEB_AUTHN: "WEB_AUTHN",
311
318
  };
312
319
  export class InvalidEmailRoleAccessPolicyException extends __BaseException {
313
320
  constructor(opts) {
@@ -469,6 +476,41 @@ export const AliasAttributeType = {
469
476
  PHONE_NUMBER: "phone_number",
470
477
  PREFERRED_USERNAME: "preferred_username",
471
478
  };
479
+ export const AuthFactorType = {
480
+ EMAIL_OTP: "EMAIL_OTP",
481
+ PASSWORD: "PASSWORD",
482
+ SMS_OTP: "SMS_OTP",
483
+ WEB_AUTHN: "WEB_AUTHN",
484
+ };
485
+ export const AssetCategoryType = {
486
+ AUTH_APP_GRAPHIC: "AUTH_APP_GRAPHIC",
487
+ EMAIL_GRAPHIC: "EMAIL_GRAPHIC",
488
+ FAVICON_ICO: "FAVICON_ICO",
489
+ FAVICON_SVG: "FAVICON_SVG",
490
+ FORM_BACKGROUND: "FORM_BACKGROUND",
491
+ FORM_LOGO: "FORM_LOGO",
492
+ IDP_BUTTON_ICON: "IDP_BUTTON_ICON",
493
+ PAGE_BACKGROUND: "PAGE_BACKGROUND",
494
+ PAGE_FOOTER_BACKGROUND: "PAGE_FOOTER_BACKGROUND",
495
+ PAGE_FOOTER_LOGO: "PAGE_FOOTER_LOGO",
496
+ PAGE_HEADER_BACKGROUND: "PAGE_HEADER_BACKGROUND",
497
+ PAGE_HEADER_LOGO: "PAGE_HEADER_LOGO",
498
+ PASSKEY_GRAPHIC: "PASSKEY_GRAPHIC",
499
+ PASSWORD_GRAPHIC: "PASSWORD_GRAPHIC",
500
+ SMS_GRAPHIC: "SMS_GRAPHIC",
501
+ };
502
+ export const AssetExtensionType = {
503
+ ICO: "ICO",
504
+ JPEG: "JPEG",
505
+ PNG: "PNG",
506
+ SVG: "SVG",
507
+ WEBP: "WEBP",
508
+ };
509
+ export const ColorSchemeModeType = {
510
+ DARK: "DARK",
511
+ DYNAMIC: "DYNAMIC",
512
+ LIGHT: "LIGHT",
513
+ };
472
514
  export class ConcurrentModificationException extends __BaseException {
473
515
  constructor(opts) {
474
516
  super({
@@ -497,6 +539,78 @@ export const VerifiedAttributeType = {
497
539
  EMAIL: "email",
498
540
  PHONE_NUMBER: "phone_number",
499
541
  };
542
+ export class WebAuthnChallengeNotFoundException extends __BaseException {
543
+ constructor(opts) {
544
+ super({
545
+ name: "WebAuthnChallengeNotFoundException",
546
+ $fault: "client",
547
+ ...opts,
548
+ });
549
+ this.name = "WebAuthnChallengeNotFoundException";
550
+ this.$fault = "client";
551
+ Object.setPrototypeOf(this, WebAuthnChallengeNotFoundException.prototype);
552
+ }
553
+ }
554
+ export class WebAuthnClientMismatchException extends __BaseException {
555
+ constructor(opts) {
556
+ super({
557
+ name: "WebAuthnClientMismatchException",
558
+ $fault: "client",
559
+ ...opts,
560
+ });
561
+ this.name = "WebAuthnClientMismatchException";
562
+ this.$fault = "client";
563
+ Object.setPrototypeOf(this, WebAuthnClientMismatchException.prototype);
564
+ }
565
+ }
566
+ export class WebAuthnCredentialNotSupportedException extends __BaseException {
567
+ constructor(opts) {
568
+ super({
569
+ name: "WebAuthnCredentialNotSupportedException",
570
+ $fault: "client",
571
+ ...opts,
572
+ });
573
+ this.name = "WebAuthnCredentialNotSupportedException";
574
+ this.$fault = "client";
575
+ Object.setPrototypeOf(this, WebAuthnCredentialNotSupportedException.prototype);
576
+ }
577
+ }
578
+ export class WebAuthnNotEnabledException extends __BaseException {
579
+ constructor(opts) {
580
+ super({
581
+ name: "WebAuthnNotEnabledException",
582
+ $fault: "client",
583
+ ...opts,
584
+ });
585
+ this.name = "WebAuthnNotEnabledException";
586
+ this.$fault = "client";
587
+ Object.setPrototypeOf(this, WebAuthnNotEnabledException.prototype);
588
+ }
589
+ }
590
+ export class WebAuthnOriginNotAllowedException extends __BaseException {
591
+ constructor(opts) {
592
+ super({
593
+ name: "WebAuthnOriginNotAllowedException",
594
+ $fault: "client",
595
+ ...opts,
596
+ });
597
+ this.name = "WebAuthnOriginNotAllowedException";
598
+ this.$fault = "client";
599
+ Object.setPrototypeOf(this, WebAuthnOriginNotAllowedException.prototype);
600
+ }
601
+ }
602
+ export class WebAuthnRelyingPartyMismatchException extends __BaseException {
603
+ constructor(opts) {
604
+ super({
605
+ name: "WebAuthnRelyingPartyMismatchException",
606
+ $fault: "client",
607
+ ...opts,
608
+ });
609
+ this.name = "WebAuthnRelyingPartyMismatchException";
610
+ this.$fault = "client";
611
+ Object.setPrototypeOf(this, WebAuthnRelyingPartyMismatchException.prototype);
612
+ }
613
+ }
500
614
  export class GroupExistsException extends __BaseException {
501
615
  constructor(opts) {
502
616
  super({
@@ -529,6 +643,18 @@ export class DuplicateProviderException extends __BaseException {
529
643
  Object.setPrototypeOf(this, DuplicateProviderException.prototype);
530
644
  }
531
645
  }
646
+ export class ManagedLoginBrandingExistsException extends __BaseException {
647
+ constructor(opts) {
648
+ super({
649
+ name: "ManagedLoginBrandingExistsException",
650
+ $fault: "client",
651
+ ...opts,
652
+ });
653
+ this.name = "ManagedLoginBrandingExistsException";
654
+ this.$fault = "client";
655
+ Object.setPrototypeOf(this, ManagedLoginBrandingExistsException.prototype);
656
+ }
657
+ }
532
658
  export const UserImportJobStatusType = {
533
659
  Created: "Created",
534
660
  Expired: "Expired",
@@ -566,6 +692,11 @@ export const UsernameAttributeType = {
566
692
  EMAIL: "email",
567
693
  PHONE_NUMBER: "phone_number",
568
694
  };
695
+ export const UserPoolTierType = {
696
+ ESSENTIALS: "ESSENTIALS",
697
+ LITE: "LITE",
698
+ PLUS: "PLUS",
699
+ };
569
700
  export const DefaultEmailOptionType = {
570
701
  CONFIRM_WITH_CODE: "CONFIRM_WITH_CODE",
571
702
  CONFIRM_WITH_LINK: "CONFIRM_WITH_LINK",
@@ -574,6 +705,30 @@ export const StatusType = {
574
705
  Disabled: "Disabled",
575
706
  Enabled: "Enabled",
576
707
  };
708
+ export class FeatureUnavailableInTierException extends __BaseException {
709
+ constructor(opts) {
710
+ super({
711
+ name: "FeatureUnavailableInTierException",
712
+ $fault: "client",
713
+ ...opts,
714
+ });
715
+ this.name = "FeatureUnavailableInTierException";
716
+ this.$fault = "client";
717
+ Object.setPrototypeOf(this, FeatureUnavailableInTierException.prototype);
718
+ }
719
+ }
720
+ export class TierChangeNotAllowedException extends __BaseException {
721
+ constructor(opts) {
722
+ super({
723
+ name: "TierChangeNotAllowedException",
724
+ $fault: "client",
725
+ ...opts,
726
+ });
727
+ this.name = "TierChangeNotAllowedException";
728
+ this.$fault = "client";
729
+ Object.setPrototypeOf(this, TierChangeNotAllowedException.prototype);
730
+ }
731
+ }
577
732
  export class UserPoolTaggingException extends __BaseException {
578
733
  constructor(opts) {
579
734
  super({
@@ -596,6 +751,7 @@ export const ExplicitAuthFlowsType = {
596
751
  ALLOW_ADMIN_USER_PASSWORD_AUTH: "ALLOW_ADMIN_USER_PASSWORD_AUTH",
597
752
  ALLOW_CUSTOM_AUTH: "ALLOW_CUSTOM_AUTH",
598
753
  ALLOW_REFRESH_TOKEN_AUTH: "ALLOW_REFRESH_TOKEN_AUTH",
754
+ ALLOW_USER_AUTH: "ALLOW_USER_AUTH",
599
755
  ALLOW_USER_PASSWORD_AUTH: "ALLOW_USER_PASSWORD_AUTH",
600
756
  ALLOW_USER_SRP_AUTH: "ALLOW_USER_SRP_AUTH",
601
757
  CUSTOM_AUTH_FLOW_ONLY: "CUSTOM_AUTH_FLOW_ONLY",
@@ -671,6 +827,10 @@ export const LogLevel = {
671
827
  ERROR: "ERROR",
672
828
  INFO: "INFO",
673
829
  };
830
+ export const UserVerificationType = {
831
+ PREFERRED: "preferred",
832
+ REQUIRED: "required",
833
+ };
674
834
  export const AdminAddUserToGroupRequestFilterSensitiveLog = (obj) => ({
675
835
  ...obj,
676
836
  ...(obj.Username && { Username: SENSITIVE_STRING }),
@@ -752,6 +912,7 @@ export const AdminInitiateAuthRequestFilterSensitiveLog = (obj) => ({
752
912
  ...obj,
753
913
  ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
754
914
  ...(obj.AuthParameters && { AuthParameters: SENSITIVE_STRING }),
915
+ ...(obj.Session && { Session: SENSITIVE_STRING }),
755
916
  });
756
917
  export const AuthenticationResultTypeFilterSensitiveLog = (obj) => ({
757
918
  ...obj,
@@ -850,6 +1011,10 @@ export const ChangePasswordRequestFilterSensitiveLog = (obj) => ({
850
1011
  ...(obj.ProposedPassword && { ProposedPassword: SENSITIVE_STRING }),
851
1012
  ...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
852
1013
  });
1014
+ export const CompleteWebAuthnRegistrationRequestFilterSensitiveLog = (obj) => ({
1015
+ ...obj,
1016
+ ...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
1017
+ });
853
1018
  export const ConfirmDeviceRequestFilterSensitiveLog = (obj) => ({
854
1019
  ...obj,
855
1020
  ...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
@@ -871,6 +1036,15 @@ export const ConfirmSignUpRequestFilterSensitiveLog = (obj) => ({
871
1036
  ...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }),
872
1037
  ...(obj.Username && { Username: SENSITIVE_STRING }),
873
1038
  ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
1039
+ ...(obj.Session && { Session: SENSITIVE_STRING }),
1040
+ });
1041
+ export const ConfirmSignUpResponseFilterSensitiveLog = (obj) => ({
1042
+ ...obj,
1043
+ ...(obj.Session && { Session: SENSITIVE_STRING }),
1044
+ });
1045
+ export const CreateManagedLoginBrandingRequestFilterSensitiveLog = (obj) => ({
1046
+ ...obj,
1047
+ ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
874
1048
  });
875
1049
  export const UserPoolClientTypeFilterSensitiveLog = (obj) => ({
876
1050
  ...obj,
@@ -893,6 +1067,14 @@ export const DeleteUserPoolClientRequestFilterSensitiveLog = (obj) => ({
893
1067
  ...obj,
894
1068
  ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
895
1069
  });
1070
+ export const DeleteWebAuthnCredentialRequestFilterSensitiveLog = (obj) => ({
1071
+ ...obj,
1072
+ ...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
1073
+ });
1074
+ export const DescribeManagedLoginBrandingByClientRequestFilterSensitiveLog = (obj) => ({
1075
+ ...obj,
1076
+ ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
1077
+ });
896
1078
  export const DescribeRiskConfigurationRequestFilterSensitiveLog = (obj) => ({
897
1079
  ...obj,
898
1080
  ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
@@ -959,59 +1141,11 @@ export const GetUserAttributeVerificationCodeRequestFilterSensitiveLog = (obj) =
959
1141
  ...obj,
960
1142
  ...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
961
1143
  });
962
- export const GlobalSignOutRequestFilterSensitiveLog = (obj) => ({
1144
+ export const GetUserAuthFactorsRequestFilterSensitiveLog = (obj) => ({
963
1145
  ...obj,
964
1146
  ...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
965
1147
  });
966
- export const InitiateAuthRequestFilterSensitiveLog = (obj) => ({
1148
+ export const GetUserAuthFactorsResponseFilterSensitiveLog = (obj) => ({
967
1149
  ...obj,
968
- ...(obj.AuthParameters && { AuthParameters: SENSITIVE_STRING }),
969
- ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
970
- ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
971
- });
972
- export const InitiateAuthResponseFilterSensitiveLog = (obj) => ({
973
- ...obj,
974
- ...(obj.Session && { Session: SENSITIVE_STRING }),
975
- ...(obj.AuthenticationResult && {
976
- AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
977
- }),
978
- });
979
- export const ListDevicesRequestFilterSensitiveLog = (obj) => ({
980
- ...obj,
981
- ...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
982
- });
983
- export const ListDevicesResponseFilterSensitiveLog = (obj) => ({
984
- ...obj,
985
- });
986
- export const UserPoolClientDescriptionFilterSensitiveLog = (obj) => ({
987
- ...obj,
988
- ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
989
- });
990
- export const ListUserPoolClientsResponseFilterSensitiveLog = (obj) => ({
991
- ...obj,
992
- ...(obj.UserPoolClients && {
993
- UserPoolClients: obj.UserPoolClients.map((item) => UserPoolClientDescriptionFilterSensitiveLog(item)),
994
- }),
995
- });
996
- export const ListUsersResponseFilterSensitiveLog = (obj) => ({
997
- ...obj,
998
- ...(obj.Users && { Users: obj.Users.map((item) => UserTypeFilterSensitiveLog(item)) }),
999
- });
1000
- export const ListUsersInGroupResponseFilterSensitiveLog = (obj) => ({
1001
- ...obj,
1002
- ...(obj.Users && { Users: obj.Users.map((item) => UserTypeFilterSensitiveLog(item)) }),
1003
- });
1004
- export const ResendConfirmationCodeRequestFilterSensitiveLog = (obj) => ({
1005
- ...obj,
1006
- ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
1007
- ...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }),
1008
- ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
1009
1150
  ...(obj.Username && { Username: SENSITIVE_STRING }),
1010
1151
  });
1011
- export const RespondToAuthChallengeRequestFilterSensitiveLog = (obj) => ({
1012
- ...obj,
1013
- ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
1014
- ...(obj.Session && { Session: SENSITIVE_STRING }),
1015
- ...(obj.ChallengeResponses && { ChallengeResponses: SENSITIVE_STRING }),
1016
- ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
1017
- });
@@ -1,6 +1,6 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
3
- import { AttributeTypeFilterSensitiveLog, AuthenticationResultTypeFilterSensitiveLog, RiskConfigurationTypeFilterSensitiveLog, UICustomizationTypeFilterSensitiveLog, UserPoolClientTypeFilterSensitiveLog, } from "./models_0";
3
+ import { AttributeTypeFilterSensitiveLog, AuthenticationResultTypeFilterSensitiveLog, RiskConfigurationTypeFilterSensitiveLog, UICustomizationTypeFilterSensitiveLog, UserPoolClientTypeFilterSensitiveLog, UserTypeFilterSensitiveLog, } from "./models_0";
4
4
  export class UnauthorizedException extends __BaseException {
5
5
  constructor(opts) {
6
6
  super({
@@ -37,6 +37,18 @@ export class UnsupportedTokenTypeException extends __BaseException {
37
37
  Object.setPrototypeOf(this, UnsupportedTokenTypeException.prototype);
38
38
  }
39
39
  }
40
+ export class WebAuthnConfigurationMissingException extends __BaseException {
41
+ constructor(opts) {
42
+ super({
43
+ name: "WebAuthnConfigurationMissingException",
44
+ $fault: "client",
45
+ ...opts,
46
+ });
47
+ this.name = "WebAuthnConfigurationMissingException";
48
+ this.$fault = "client";
49
+ Object.setPrototypeOf(this, WebAuthnConfigurationMissingException.prototype);
50
+ }
51
+ }
40
52
  export class EnableSoftwareTokenMFAException extends __BaseException {
41
53
  constructor(opts) {
42
54
  super({
@@ -53,6 +65,67 @@ export const VerifySoftwareTokenResponseType = {
53
65
  ERROR: "ERROR",
54
66
  SUCCESS: "SUCCESS",
55
67
  };
68
+ export const GlobalSignOutRequestFilterSensitiveLog = (obj) => ({
69
+ ...obj,
70
+ ...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
71
+ });
72
+ export const InitiateAuthRequestFilterSensitiveLog = (obj) => ({
73
+ ...obj,
74
+ ...(obj.AuthParameters && { AuthParameters: SENSITIVE_STRING }),
75
+ ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
76
+ ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
77
+ ...(obj.Session && { Session: SENSITIVE_STRING }),
78
+ });
79
+ export const InitiateAuthResponseFilterSensitiveLog = (obj) => ({
80
+ ...obj,
81
+ ...(obj.Session && { Session: SENSITIVE_STRING }),
82
+ ...(obj.AuthenticationResult && {
83
+ AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
84
+ }),
85
+ });
86
+ export const ListDevicesRequestFilterSensitiveLog = (obj) => ({
87
+ ...obj,
88
+ ...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
89
+ });
90
+ export const ListDevicesResponseFilterSensitiveLog = (obj) => ({
91
+ ...obj,
92
+ });
93
+ export const UserPoolClientDescriptionFilterSensitiveLog = (obj) => ({
94
+ ...obj,
95
+ ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
96
+ });
97
+ export const ListUserPoolClientsResponseFilterSensitiveLog = (obj) => ({
98
+ ...obj,
99
+ ...(obj.UserPoolClients && {
100
+ UserPoolClients: obj.UserPoolClients.map((item) => UserPoolClientDescriptionFilterSensitiveLog(item)),
101
+ }),
102
+ });
103
+ export const ListUsersResponseFilterSensitiveLog = (obj) => ({
104
+ ...obj,
105
+ ...(obj.Users && { Users: obj.Users.map((item) => UserTypeFilterSensitiveLog(item)) }),
106
+ });
107
+ export const ListUsersInGroupResponseFilterSensitiveLog = (obj) => ({
108
+ ...obj,
109
+ ...(obj.Users && { Users: obj.Users.map((item) => UserTypeFilterSensitiveLog(item)) }),
110
+ });
111
+ export const ListWebAuthnCredentialsRequestFilterSensitiveLog = (obj) => ({
112
+ ...obj,
113
+ ...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
114
+ });
115
+ export const ResendConfirmationCodeRequestFilterSensitiveLog = (obj) => ({
116
+ ...obj,
117
+ ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
118
+ ...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }),
119
+ ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
120
+ ...(obj.Username && { Username: SENSITIVE_STRING }),
121
+ });
122
+ export const RespondToAuthChallengeRequestFilterSensitiveLog = (obj) => ({
123
+ ...obj,
124
+ ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
125
+ ...(obj.Session && { Session: SENSITIVE_STRING }),
126
+ ...(obj.ChallengeResponses && { ChallengeResponses: SENSITIVE_STRING }),
127
+ ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
128
+ });
56
129
  export const RespondToAuthChallengeResponseFilterSensitiveLog = (obj) => ({
57
130
  ...obj,
58
131
  ...(obj.Session && { Session: SENSITIVE_STRING }),
@@ -104,6 +177,14 @@ export const SignUpRequestFilterSensitiveLog = (obj) => ({
104
177
  }),
105
178
  ...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
106
179
  });
180
+ export const SignUpResponseFilterSensitiveLog = (obj) => ({
181
+ ...obj,
182
+ ...(obj.Session && { Session: SENSITIVE_STRING }),
183
+ });
184
+ export const StartWebAuthnRegistrationRequestFilterSensitiveLog = (obj) => ({
185
+ ...obj,
186
+ ...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
187
+ });
107
188
  export const UpdateAuthEventFeedbackRequestFilterSensitiveLog = (obj) => ({
108
189
  ...obj,
109
190
  ...(obj.Username && { Username: SENSITIVE_STRING }),