@aws-sdk/client-cognito-identity-provider 3.473.0 → 3.476.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 (32) hide show
  1. package/README.md +28 -12
  2. package/dist-cjs/commands/SetRiskConfigurationCommand.js +1 -2
  3. package/dist-cjs/models/models_0.js +7 -8
  4. package/dist-cjs/models/models_1.js +6 -1
  5. package/dist-es/commands/SetRiskConfigurationCommand.js +1 -2
  6. package/dist-es/models/models_0.js +4 -4
  7. package/dist-es/models/models_1.js +4 -0
  8. package/dist-types/CognitoIdentityProvider.d.ts +28 -12
  9. package/dist-types/CognitoIdentityProviderClient.d.ts +28 -12
  10. package/dist-types/commands/AdminAddUserToGroupCommand.d.ts +3 -1
  11. package/dist-types/commands/AdminConfirmSignUpCommand.d.ts +9 -2
  12. package/dist-types/commands/AdminListGroupsForUserCommand.d.ts +1 -1
  13. package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +7 -1
  14. package/dist-types/commands/AdminUserGlobalSignOutCommand.d.ts +24 -8
  15. package/dist-types/commands/ConfirmSignUpCommand.d.ts +12 -1
  16. package/dist-types/commands/CreateUserPoolCommand.d.ts +8 -0
  17. package/dist-types/commands/DescribeUserPoolCommand.d.ts +4 -0
  18. package/dist-types/commands/GlobalSignOutCommand.d.ts +24 -8
  19. package/dist-types/commands/ListUserPoolsCommand.d.ts +4 -0
  20. package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +7 -1
  21. package/dist-types/commands/SetLogDeliveryConfigurationCommand.d.ts +2 -1
  22. package/dist-types/commands/SetRiskConfigurationCommand.d.ts +1 -2
  23. package/dist-types/commands/UpdateUserAttributesCommand.d.ts +5 -1
  24. package/dist-types/commands/UpdateUserPoolCommand.d.ts +4 -0
  25. package/dist-types/index.d.ts +28 -12
  26. package/dist-types/models/models_0.d.ts +421 -230
  27. package/dist-types/models/models_1.d.ts +96 -6
  28. package/dist-types/ts3.4/commands/SetLogDeliveryConfigurationCommand.d.ts +2 -4
  29. package/dist-types/ts3.4/commands/SetRiskConfigurationCommand.d.ts +4 -2
  30. package/dist-types/ts3.4/models/models_0.d.ts +11 -13
  31. package/dist-types/ts3.4/models/models_1.d.ts +17 -0
  32. package/package.json +4 -4
@@ -1,6 +1,52 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
3
- import { AccountRecoverySettingType, AdminCreateUserConfigType, AnalyticsConfigurationType, AnalyticsMetadataType, AttributeType, CodeDeliveryDetailsType, CustomDomainConfigType, DeletionProtectionType, DeviceConfigurationType, DeviceRememberedStatusType, EmailConfigurationType, ExplicitAuthFlowsType, FeedbackValueType, GroupType, IdentityProviderType, LambdaConfigType, MFAOptionType, OAuthFlowType, PreventUserExistenceErrorTypes, ResourceServerScopeType, ResourceServerType, RiskConfigurationType, SmsConfigurationType, SmsMfaConfigType, SMSMfaSettingsType, SoftwareTokenMfaConfigType, SoftwareTokenMfaSettingsType, TokenValidityUnitsType, UICustomizationType, UserAttributeUpdateSettingsType, UserContextDataType, UserImportJobType, UserPoolAddOnsType, UserPoolClientType, UserPoolMfaType, UserPoolPolicyType, VerificationMessageTemplateType, VerifiedAttributeType } from "./models_0";
3
+ import { AccountRecoverySettingType, AccountTakeoverRiskConfigurationType, AdminCreateUserConfigType, AnalyticsConfigurationType, AnalyticsMetadataType, AttributeType, CodeDeliveryDetailsType, CompromisedCredentialsRiskConfigurationType, CustomDomainConfigType, DeletionProtectionType, DeviceConfigurationType, DeviceRememberedStatusType, EmailConfigurationType, ExplicitAuthFlowsType, FeedbackValueType, GroupType, IdentityProviderType, LambdaConfigType, LogDeliveryConfigurationType, MFAOptionType, OAuthFlowType, PreventUserExistenceErrorTypes, ResourceServerScopeType, ResourceServerType, RiskConfigurationType, RiskExceptionConfigurationType, SmsConfigurationType, SmsMfaConfigType, SMSMfaSettingsType, SoftwareTokenMfaConfigType, SoftwareTokenMfaSettingsType, TokenValidityUnitsType, UICustomizationType, UserAttributeUpdateSettingsType, UserContextDataType, UserImportJobType, UserPoolAddOnsType, UserPoolClientType, UserPoolMfaType, UserPoolPolicyType, VerificationMessageTemplateType, VerifiedAttributeType } from "./models_0";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface SetLogDeliveryConfigurationResponse {
8
+ /**
9
+ * @public
10
+ * <p>The detailed activity logging configuration that you applied to the requested user
11
+ * pool.</p>
12
+ */
13
+ LogDeliveryConfiguration?: LogDeliveryConfigurationType;
14
+ }
15
+ /**
16
+ * @public
17
+ */
18
+ export interface SetRiskConfigurationRequest {
19
+ /**
20
+ * @public
21
+ * <p>The user pool ID. </p>
22
+ */
23
+ UserPoolId: string | undefined;
24
+ /**
25
+ * @public
26
+ * <p>The app client ID. If <code>ClientId</code> is null, then the risk configuration is
27
+ * mapped to <code>userPoolId</code>. When the client ID is null, the same risk
28
+ * configuration is applied to all the clients in the userPool.</p>
29
+ * <p>Otherwise, <code>ClientId</code> is mapped to the client. When the client ID isn't
30
+ * null, the user pool configuration is overridden and the risk configuration for the
31
+ * client is used instead.</p>
32
+ */
33
+ ClientId?: string;
34
+ /**
35
+ * @public
36
+ * <p>The compromised credentials risk configuration.</p>
37
+ */
38
+ CompromisedCredentialsRiskConfiguration?: CompromisedCredentialsRiskConfigurationType;
39
+ /**
40
+ * @public
41
+ * <p>The account takeover risk configuration.</p>
42
+ */
43
+ AccountTakeoverRiskConfiguration?: AccountTakeoverRiskConfigurationType;
44
+ /**
45
+ * @public
46
+ * <p>The configuration to override the risk decision.</p>
47
+ */
48
+ RiskExceptionConfiguration?: RiskExceptionConfigurationType;
49
+ }
4
50
  /**
5
51
  * @public
6
52
  */
@@ -191,7 +237,8 @@ export interface SignUpRequest {
191
237
  SecretHash?: string;
192
238
  /**
193
239
  * @public
194
- * <p>The user name of the user you want to register.</p>
240
+ * <p>The username of the user that you want to sign up. The value of this parameter is
241
+ * typically a username, but can be any alias attribute in your user pool.</p>
195
242
  */
196
243
  Username: string | undefined;
197
244
  /**
@@ -208,7 +255,15 @@ export interface SignUpRequest {
208
255
  UserAttributes?: AttributeType[];
209
256
  /**
210
257
  * @public
211
- * <p>The validation data in the request to register a user.</p>
258
+ * <p>Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda
259
+ * trigger. This set of key-value pairs are for custom validation of information that you
260
+ * collect from your users but don't need to retain.</p>
261
+ * <p>Your Lambda function can analyze this additional data and act on it. Your function
262
+ * might perform external API operations like logging user attributes and validation data
263
+ * to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns
264
+ * to Amazon Cognito, like automatically confirming the user if they sign up from within your
265
+ * network.</p>
266
+ * <p>For more information about the pre sign-up Lambda trigger, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html">Pre sign-up Lambda trigger</a>.</p>
212
267
  */
213
268
  ValidationData?: AttributeType[];
214
269
  /**
@@ -392,7 +447,9 @@ export interface UpdateAuthEventFeedbackRequest {
392
447
  UserPoolId: string | undefined;
393
448
  /**
394
449
  * @public
395
- * <p>The user pool username.</p>
450
+ * <p>The username of the user that you want to query or modify. The value of this parameter is typically your user's
451
+ * username, but it can be any of their alias attributes. If <code>username</code> isn't an alias attribute in
452
+ * your user pool, you can also use their <code>sub</code> in this request.</p>
396
453
  */
397
454
  Username: string | undefined;
398
455
  /**
@@ -874,12 +931,41 @@ export interface UpdateUserPoolClientRequest {
874
931
  TokenValidityUnits?: TokenValidityUnitsType;
875
932
  /**
876
933
  * @public
877
- * <p>The read-only attributes of the user pool.</p>
934
+ * <p>The list of user attributes that you want your app client to have read-only access to.
935
+ * After your user authenticates in your app, their access token authorizes them to read
936
+ * their own attribute value for any attribute in this list. An example of this kind of
937
+ * activity is when your user selects a link to view their profile information. Your app
938
+ * makes a <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetUser.html">GetUser</a> API request to retrieve and display your user's profile
939
+ * data.</p>
940
+ * <p>When you don't specify the <code>ReadAttributes</code> for your app client, your
941
+ * app can read the values of <code>email_verified</code>,
942
+ * <code>phone_number_verified</code>, and the Standard attributes of your user pool.
943
+ * When your user pool has read access to these default attributes,
944
+ * <code>ReadAttributes</code> doesn't return any information. Amazon Cognito only
945
+ * populates <code>ReadAttributes</code> in the API response if you have specified your own
946
+ * custom set of read attributes.</p>
878
947
  */
879
948
  ReadAttributes?: string[];
880
949
  /**
881
950
  * @public
882
- * <p>The writeable attributes of the user pool.</p>
951
+ * <p>The list of user attributes that you want your app client to have write access to.
952
+ * After your user authenticates in your app, their access token authorizes them to set or
953
+ * modify their own attribute value for any attribute in this list. An example of this kind
954
+ * of activity is when you present your user with a form to update their profile
955
+ * information and they change their last name. Your app then makes an <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserAttributes.html">UpdateUserAttributes</a> API request and sets <code>family_name</code> to the
956
+ * new value. </p>
957
+ * <p>When you don't specify the <code>WriteAttributes</code> for your app client, your
958
+ * app can write the values of the Standard attributes of your user pool. When your user
959
+ * pool has write access to these default attributes, <code>WriteAttributes</code>
960
+ * doesn't return any information. Amazon Cognito only populates
961
+ * <code>WriteAttributes</code> in the API response if you have specified your own
962
+ * custom set of write attributes.</p>
963
+ * <p>If your app client allows users to sign in through an IdP, this array must include all
964
+ * attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when
965
+ * users sign in to your application through an IdP. If your app client does not have write
966
+ * access to a mapped attribute, Amazon Cognito throws an error when it tries to update the
967
+ * attribute. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html">Specifying IdP Attribute Mappings for Your user
968
+ * pool</a>.</p>
883
969
  */
884
970
  WriteAttributes?: string[];
885
971
  /**
@@ -1253,6 +1339,10 @@ export interface VerifyUserAttributeRequest {
1253
1339
  */
1254
1340
  export interface VerifyUserAttributeResponse {
1255
1341
  }
1342
+ /**
1343
+ * @internal
1344
+ */
1345
+ export declare const SetRiskConfigurationRequestFilterSensitiveLog: (obj: SetRiskConfigurationRequest) => any;
1256
1346
  /**
1257
1347
  * @internal
1258
1348
  */
@@ -11,10 +11,8 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../CognitoIdentityProviderClient";
14
- import {
15
- SetLogDeliveryConfigurationRequest,
16
- SetLogDeliveryConfigurationResponse,
17
- } from "../models/models_0";
14
+ import { SetLogDeliveryConfigurationRequest } from "../models/models_0";
15
+ import { SetLogDeliveryConfigurationResponse } from "../models/models_1";
18
16
  export { __MetadataBearer, $Command };
19
17
  export interface SetLogDeliveryConfigurationCommandInput
20
18
  extends SetLogDeliveryConfigurationRequest {}
@@ -11,8 +11,10 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../CognitoIdentityProviderClient";
14
- import { SetRiskConfigurationRequest } from "../models/models_0";
15
- import { SetRiskConfigurationResponse } from "../models/models_1";
14
+ import {
15
+ SetRiskConfigurationRequest,
16
+ SetRiskConfigurationResponse,
17
+ } from "../models/models_1";
16
18
  export { __MetadataBearer, $Command };
17
19
  export interface SetRiskConfigurationCommandInput
18
20
  extends SetRiskConfigurationRequest {}
@@ -957,6 +957,16 @@ export interface CustomSMSLambdaVersionConfigType {
957
957
  LambdaVersion: CustomSMSSenderLambdaVersionType | undefined;
958
958
  LambdaArn: string | undefined;
959
959
  }
960
+ export declare const PreTokenGenerationLambdaVersionType: {
961
+ readonly V1_0: "V1_0";
962
+ readonly V2_0: "V2_0";
963
+ };
964
+ export type PreTokenGenerationLambdaVersionType =
965
+ (typeof PreTokenGenerationLambdaVersionType)[keyof typeof PreTokenGenerationLambdaVersionType];
966
+ export interface PreTokenGenerationVersionConfigType {
967
+ LambdaVersion: PreTokenGenerationLambdaVersionType | undefined;
968
+ LambdaArn: string | undefined;
969
+ }
960
970
  export interface LambdaConfigType {
961
971
  PreSignUp?: string;
962
972
  CustomMessage?: string;
@@ -967,6 +977,7 @@ export interface LambdaConfigType {
967
977
  CreateAuthChallenge?: string;
968
978
  VerifyAuthChallengeResponse?: string;
969
979
  PreTokenGeneration?: string;
980
+ PreTokenGenerationConfig?: PreTokenGenerationVersionConfigType;
970
981
  UserMigration?: string;
971
982
  CustomSMSSender?: CustomSMSLambdaVersionConfigType;
972
983
  CustomEmailSender?: CustomEmailLambdaVersionConfigType;
@@ -1667,16 +1678,6 @@ export interface SetLogDeliveryConfigurationRequest {
1667
1678
  UserPoolId: string | undefined;
1668
1679
  LogConfigurations: LogConfigurationType[] | undefined;
1669
1680
  }
1670
- export interface SetLogDeliveryConfigurationResponse {
1671
- LogDeliveryConfiguration?: LogDeliveryConfigurationType;
1672
- }
1673
- export interface SetRiskConfigurationRequest {
1674
- UserPoolId: string | undefined;
1675
- ClientId?: string;
1676
- CompromisedCredentialsRiskConfiguration?: CompromisedCredentialsRiskConfigurationType;
1677
- AccountTakeoverRiskConfiguration?: AccountTakeoverRiskConfigurationType;
1678
- RiskExceptionConfiguration?: RiskExceptionConfigurationType;
1679
- }
1680
1681
  export declare const AdminAddUserToGroupRequestFilterSensitiveLog: (
1681
1682
  obj: AdminAddUserToGroupRequest
1682
1683
  ) => any;
@@ -1895,6 +1896,3 @@ export declare const RespondToAuthChallengeResponseFilterSensitiveLog: (
1895
1896
  export declare const RevokeTokenRequestFilterSensitiveLog: (
1896
1897
  obj: RevokeTokenRequest
1897
1898
  ) => any;
1898
- export declare const SetRiskConfigurationRequestFilterSensitiveLog: (
1899
- obj: SetRiskConfigurationRequest
1900
- ) => any;
@@ -2,11 +2,13 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-cli
2
2
  import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
3
3
  import {
4
4
  AccountRecoverySettingType,
5
+ AccountTakeoverRiskConfigurationType,
5
6
  AdminCreateUserConfigType,
6
7
  AnalyticsConfigurationType,
7
8
  AnalyticsMetadataType,
8
9
  AttributeType,
9
10
  CodeDeliveryDetailsType,
11
+ CompromisedCredentialsRiskConfigurationType,
10
12
  CustomDomainConfigType,
11
13
  DeletionProtectionType,
12
14
  DeviceConfigurationType,
@@ -17,12 +19,14 @@ import {
17
19
  GroupType,
18
20
  IdentityProviderType,
19
21
  LambdaConfigType,
22
+ LogDeliveryConfigurationType,
20
23
  MFAOptionType,
21
24
  OAuthFlowType,
22
25
  PreventUserExistenceErrorTypes,
23
26
  ResourceServerScopeType,
24
27
  ResourceServerType,
25
28
  RiskConfigurationType,
29
+ RiskExceptionConfigurationType,
26
30
  SmsConfigurationType,
27
31
  SmsMfaConfigType,
28
32
  SMSMfaSettingsType,
@@ -40,6 +44,16 @@ import {
40
44
  VerificationMessageTemplateType,
41
45
  VerifiedAttributeType,
42
46
  } from "./models_0";
47
+ export interface SetLogDeliveryConfigurationResponse {
48
+ LogDeliveryConfiguration?: LogDeliveryConfigurationType;
49
+ }
50
+ export interface SetRiskConfigurationRequest {
51
+ UserPoolId: string | undefined;
52
+ ClientId?: string;
53
+ CompromisedCredentialsRiskConfiguration?: CompromisedCredentialsRiskConfigurationType;
54
+ AccountTakeoverRiskConfiguration?: AccountTakeoverRiskConfigurationType;
55
+ RiskExceptionConfiguration?: RiskExceptionConfigurationType;
56
+ }
43
57
  export interface SetRiskConfigurationResponse {
44
58
  RiskConfiguration: RiskConfigurationType | undefined;
45
59
  }
@@ -254,6 +268,9 @@ export interface VerifyUserAttributeRequest {
254
268
  Code: string | undefined;
255
269
  }
256
270
  export interface VerifyUserAttributeResponse {}
271
+ export declare const SetRiskConfigurationRequestFilterSensitiveLog: (
272
+ obj: SetRiskConfigurationRequest
273
+ ) => any;
257
274
  export declare const SetRiskConfigurationResponseFilterSensitiveLog: (
258
275
  obj: SetRiskConfigurationResponse
259
276
  ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cognito-identity-provider",
3
3
  "description": "AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",
4
- "version": "3.473.0",
4
+ "version": "3.476.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,9 +20,9 @@
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.473.0",
24
- "@aws-sdk/core": "3.468.0",
25
- "@aws-sdk/credential-provider-node": "3.470.0",
23
+ "@aws-sdk/client-sts": "3.476.0",
24
+ "@aws-sdk/core": "3.476.0",
25
+ "@aws-sdk/credential-provider-node": "3.476.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",