@aws-sdk/client-cognito-identity-provider 3.98.0 → 3.102.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.102.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.101.0...v3.102.0) (2022-05-31)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-cognito-identity-provider:** Amazon Cognito now supports IP Address propagation for all unauthenticated APIs (e.g. SignUp, ForgotPassword). ([d285512](https://github.com/aws/aws-sdk-js-v3/commit/d28551296728adfae6dfbf6d0ea8d6c903f4a059))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-cognito-identity-provider
20
+
21
+
22
+
23
+
24
+
25
+ # [3.99.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.98.0...v3.99.0) (2022-05-25)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-cognito-identity-provider
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.98.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.97.0...v3.98.0) (2022-05-24)
7
34
 
8
35
 
@@ -7641,6 +7641,10 @@ const serializeAws_json1_1CreateUserPoolClientRequest = (input, context) => {
7641
7641
  ...(input.ClientName !== undefined && input.ClientName !== null && { ClientName: input.ClientName }),
7642
7642
  ...(input.DefaultRedirectURI !== undefined &&
7643
7643
  input.DefaultRedirectURI !== null && { DefaultRedirectURI: input.DefaultRedirectURI }),
7644
+ ...(input.EnablePropagateAdditionalUserContextData !== undefined &&
7645
+ input.EnablePropagateAdditionalUserContextData !== null && {
7646
+ EnablePropagateAdditionalUserContextData: input.EnablePropagateAdditionalUserContextData,
7647
+ }),
7644
7648
  ...(input.EnableTokenRevocation !== undefined &&
7645
7649
  input.EnableTokenRevocation !== null && { EnableTokenRevocation: input.EnableTokenRevocation }),
7646
7650
  ...(input.ExplicitAuthFlows !== undefined &&
@@ -8706,6 +8710,10 @@ const serializeAws_json1_1UpdateUserPoolClientRequest = (input, context) => {
8706
8710
  ...(input.ClientName !== undefined && input.ClientName !== null && { ClientName: input.ClientName }),
8707
8711
  ...(input.DefaultRedirectURI !== undefined &&
8708
8712
  input.DefaultRedirectURI !== null && { DefaultRedirectURI: input.DefaultRedirectURI }),
8713
+ ...(input.EnablePropagateAdditionalUserContextData !== undefined &&
8714
+ input.EnablePropagateAdditionalUserContextData !== null && {
8715
+ EnablePropagateAdditionalUserContextData: input.EnablePropagateAdditionalUserContextData,
8716
+ }),
8709
8717
  ...(input.EnableTokenRevocation !== undefined &&
8710
8718
  input.EnableTokenRevocation !== null && { EnableTokenRevocation: input.EnableTokenRevocation }),
8711
8719
  ...(input.ExplicitAuthFlows !== undefined &&
@@ -8821,6 +8829,7 @@ const serializeAws_json1_1UserAttributeUpdateSettingsType = (input, context) =>
8821
8829
  const serializeAws_json1_1UserContextDataType = (input, context) => {
8822
8830
  return {
8823
8831
  ...(input.EncodedData !== undefined && input.EncodedData !== null && { EncodedData: input.EncodedData }),
8832
+ ...(input.IpAddress !== undefined && input.IpAddress !== null && { IpAddress: input.IpAddress }),
8824
8833
  };
8825
8834
  };
8826
8835
  const serializeAws_json1_1UsernameAttributesListType = (input, context) => {
@@ -10551,6 +10560,7 @@ const deserializeAws_json1_1UserPoolClientType = (output, context) => {
10551
10560
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
10552
10561
  : undefined,
10553
10562
  DefaultRedirectURI: (0, smithy_client_1.expectString)(output.DefaultRedirectURI),
10563
+ EnablePropagateAdditionalUserContextData: (0, smithy_client_1.expectBoolean)(output.EnablePropagateAdditionalUserContextData),
10554
10564
  EnableTokenRevocation: (0, smithy_client_1.expectBoolean)(output.EnableTokenRevocation),
10555
10565
  ExplicitAuthFlows: output.ExplicitAuthFlows !== undefined && output.ExplicitAuthFlows !== null
10556
10566
  ? deserializeAws_json1_1ExplicitAuthFlowsListType(output.ExplicitAuthFlows, context)
@@ -17,8 +17,10 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
+ const smithy_client_2 = require("@aws-sdk/smithy-client");
20
21
  const getRuntimeConfig = (config) => {
21
22
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
23
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
22
24
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
25
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
26
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -9615,7 +9615,7 @@ var serializeAws_json1_1CreateUserImportJobRequest = function (input, context) {
9615
9615
  input.CloudWatchLogsRoleArn !== null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn })), (input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9616
9616
  };
9617
9617
  var serializeAws_json1_1CreateUserPoolClientRequest = function (input, context) {
9618
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessTokenValidity !== undefined &&
9618
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessTokenValidity !== undefined &&
9619
9619
  input.AccessTokenValidity !== null && { AccessTokenValidity: input.AccessTokenValidity })), (input.AllowedOAuthFlows !== undefined &&
9620
9620
  input.AllowedOAuthFlows !== null && {
9621
9621
  AllowedOAuthFlows: serializeAws_json1_1OAuthFlowsType(input.AllowedOAuthFlows, context),
@@ -9632,7 +9632,10 @@ var serializeAws_json1_1CreateUserPoolClientRequest = function (input, context)
9632
9632
  input.CallbackURLs !== null && {
9633
9633
  CallbackURLs: serializeAws_json1_1CallbackURLsListType(input.CallbackURLs, context),
9634
9634
  })), (input.ClientName !== undefined && input.ClientName !== null && { ClientName: input.ClientName })), (input.DefaultRedirectURI !== undefined &&
9635
- input.DefaultRedirectURI !== null && { DefaultRedirectURI: input.DefaultRedirectURI })), (input.EnableTokenRevocation !== undefined &&
9635
+ input.DefaultRedirectURI !== null && { DefaultRedirectURI: input.DefaultRedirectURI })), (input.EnablePropagateAdditionalUserContextData !== undefined &&
9636
+ input.EnablePropagateAdditionalUserContextData !== null && {
9637
+ EnablePropagateAdditionalUserContextData: input.EnablePropagateAdditionalUserContextData,
9638
+ })), (input.EnableTokenRevocation !== undefined &&
9636
9639
  input.EnableTokenRevocation !== null && { EnableTokenRevocation: input.EnableTokenRevocation })), (input.ExplicitAuthFlows !== undefined &&
9637
9640
  input.ExplicitAuthFlows !== null && {
9638
9641
  ExplicitAuthFlows: serializeAws_json1_1ExplicitAuthFlowsListType(input.ExplicitAuthFlows, context),
@@ -10303,7 +10306,7 @@ var serializeAws_json1_1UpdateUserAttributesRequest = function (input, context)
10303
10306
  }));
10304
10307
  };
10305
10308
  var serializeAws_json1_1UpdateUserPoolClientRequest = function (input, context) {
10306
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessTokenValidity !== undefined &&
10309
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessTokenValidity !== undefined &&
10307
10310
  input.AccessTokenValidity !== null && { AccessTokenValidity: input.AccessTokenValidity })), (input.AllowedOAuthFlows !== undefined &&
10308
10311
  input.AllowedOAuthFlows !== null && {
10309
10312
  AllowedOAuthFlows: serializeAws_json1_1OAuthFlowsType(input.AllowedOAuthFlows, context),
@@ -10320,7 +10323,10 @@ var serializeAws_json1_1UpdateUserPoolClientRequest = function (input, context)
10320
10323
  input.CallbackURLs !== null && {
10321
10324
  CallbackURLs: serializeAws_json1_1CallbackURLsListType(input.CallbackURLs, context),
10322
10325
  })), (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.ClientName !== undefined && input.ClientName !== null && { ClientName: input.ClientName })), (input.DefaultRedirectURI !== undefined &&
10323
- input.DefaultRedirectURI !== null && { DefaultRedirectURI: input.DefaultRedirectURI })), (input.EnableTokenRevocation !== undefined &&
10326
+ input.DefaultRedirectURI !== null && { DefaultRedirectURI: input.DefaultRedirectURI })), (input.EnablePropagateAdditionalUserContextData !== undefined &&
10327
+ input.EnablePropagateAdditionalUserContextData !== null && {
10328
+ EnablePropagateAdditionalUserContextData: input.EnablePropagateAdditionalUserContextData,
10329
+ })), (input.EnableTokenRevocation !== undefined &&
10324
10330
  input.EnableTokenRevocation !== null && { EnableTokenRevocation: input.EnableTokenRevocation })), (input.ExplicitAuthFlows !== undefined &&
10325
10331
  input.ExplicitAuthFlows !== null && {
10326
10332
  ExplicitAuthFlows: serializeAws_json1_1ExplicitAuthFlowsListType(input.ExplicitAuthFlows, context),
@@ -10397,7 +10403,7 @@ var serializeAws_json1_1UserAttributeUpdateSettingsType = function (input, conte
10397
10403
  }));
10398
10404
  };
10399
10405
  var serializeAws_json1_1UserContextDataType = function (input, context) {
10400
- return __assign({}, (input.EncodedData !== undefined && input.EncodedData !== null && { EncodedData: input.EncodedData }));
10406
+ return __assign(__assign({}, (input.EncodedData !== undefined && input.EncodedData !== null && { EncodedData: input.EncodedData })), (input.IpAddress !== undefined && input.IpAddress !== null && { IpAddress: input.IpAddress }));
10401
10407
  };
10402
10408
  var serializeAws_json1_1UsernameAttributesListType = function (input, context) {
10403
10409
  return input
@@ -12101,6 +12107,7 @@ var deserializeAws_json1_1UserPoolClientType = function (output, context) {
12101
12107
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
12102
12108
  : undefined,
12103
12109
  DefaultRedirectURI: __expectString(output.DefaultRedirectURI),
12110
+ EnablePropagateAdditionalUserContextData: __expectBoolean(output.EnablePropagateAdditionalUserContextData),
12104
12111
  EnableTokenRevocation: __expectBoolean(output.EnableTokenRevocation),
12105
12112
  ExplicitAuthFlows: output.ExplicitAuthFlows !== undefined && output.ExplicitAuthFlows !== null
12106
12113
  ? deserializeAws_json1_1ExplicitAuthFlowsListType(output.ExplicitAuthFlows, context)
@@ -14,8 +14,10 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
16
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
18
  export var getRuntimeConfig = function (config) {
18
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ emitWarningIfUnsupportedVersion(process.version);
19
21
  var defaultsMode = resolveDefaultsModeConfig(config);
20
22
  var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
21
23
  var clientSharedValues = getSharedRuntimeConfig(config);
@@ -483,15 +483,22 @@ export declare class CognitoIdentityProvider extends CognitoIdentityProviderClie
483
483
  adminUserGlobalSignOut(args: AdminUserGlobalSignOutCommandInput, cb: (err: any, data?: AdminUserGlobalSignOutCommandOutput) => void): void;
484
484
  adminUserGlobalSignOut(args: AdminUserGlobalSignOutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AdminUserGlobalSignOutCommandOutput) => void): void;
485
485
  /**
486
- * <p>Returns a unique generated shared secret key code for the user account. The request
487
- * takes an access token or a session string, but not both.</p>
486
+ * <p>Begins setup of time-based one-time password multi-factor authentication (TOTP MFA)
487
+ * for a user, with a unique private key that Amazon Cognito generates and returns in the API
488
+ * response. You can authorize an <code>AssociateSoftwareToken</code> request with either
489
+ * the user's access token, or a session string from a challenge response that you received
490
+ * from Amazon Cognito.</p>
488
491
  * <note>
489
- * <p>Calling AssociateSoftwareToken immediately disassociates the existing software
490
- * token from the user account. If the user doesn't subsequently verify the software
491
- * token, their account is set up to authenticate without MFA. If MFA config is set to
492
- * Optional at the user pool level, the user can then log in without MFA. However, if
493
- * MFA is set to Required for the user pool, the user is asked to set up a new software
494
- * token MFA during sign-in.</p>
492
+ * <p>Amazon Cognito disassociates an existing software token when you verify the new token in a
493
+ * <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerifySoftwareToken.html"> VerifySoftwareToken</a> API request. If you don't verify the software
494
+ * token and your user pool doesn't require MFA, the user can then authenticate with
495
+ * user name and password credentials alone. If your user pool requires TOTP MFA, Amazon Cognito
496
+ * generates an <code>MFA_SETUP</code> or <code>SOFTWARE_TOKEN_SETUP</code> challenge
497
+ * each time your user signs. Complete setup with <code>AssociateSoftwareToken</code>
498
+ * and <code>VerifySoftwareToken</code>.</p>
499
+ * <p>After you set up software token MFA for your user, Amazon Cognito generates a
500
+ * <code>SOFTWARE_TOKEN_MFA</code> challenge when they authenticate. Respond to
501
+ * this challenge with your user's TOTP.</p>
495
502
  * </note>
496
503
  */
497
504
  associateSoftwareToken(args: AssociateSoftwareTokenCommandInput, options?: __HttpHandlerOptions): Promise<AssociateSoftwareTokenCommandOutput>;
@@ -7,15 +7,22 @@ export interface AssociateSoftwareTokenCommandInput extends AssociateSoftwareTok
7
7
  export interface AssociateSoftwareTokenCommandOutput extends AssociateSoftwareTokenResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Returns a unique generated shared secret key code for the user account. The request
11
- * takes an access token or a session string, but not both.</p>
10
+ * <p>Begins setup of time-based one-time password multi-factor authentication (TOTP MFA)
11
+ * for a user, with a unique private key that Amazon Cognito generates and returns in the API
12
+ * response. You can authorize an <code>AssociateSoftwareToken</code> request with either
13
+ * the user's access token, or a session string from a challenge response that you received
14
+ * from Amazon Cognito.</p>
12
15
  * <note>
13
- * <p>Calling AssociateSoftwareToken immediately disassociates the existing software
14
- * token from the user account. If the user doesn't subsequently verify the software
15
- * token, their account is set up to authenticate without MFA. If MFA config is set to
16
- * Optional at the user pool level, the user can then log in without MFA. However, if
17
- * MFA is set to Required for the user pool, the user is asked to set up a new software
18
- * token MFA during sign-in.</p>
16
+ * <p>Amazon Cognito disassociates an existing software token when you verify the new token in a
17
+ * <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerifySoftwareToken.html"> VerifySoftwareToken</a> API request. If you don't verify the software
18
+ * token and your user pool doesn't require MFA, the user can then authenticate with
19
+ * user name and password credentials alone. If your user pool requires TOTP MFA, Amazon Cognito
20
+ * generates an <code>MFA_SETUP</code> or <code>SOFTWARE_TOKEN_SETUP</code> challenge
21
+ * each time your user signs. Complete setup with <code>AssociateSoftwareToken</code>
22
+ * and <code>VerifySoftwareToken</code>.</p>
23
+ * <p>After you set up software token MFA for your user, Amazon Cognito generates a
24
+ * <code>SOFTWARE_TOKEN_MFA</code> challenge when they authenticate. Respond to
25
+ * this challenge with your user's TOTP.</p>
19
26
  * </note>
20
27
  * @example
21
28
  * Use a bare-bones client and the command you need to make an API call.
@@ -1081,8 +1081,8 @@ export declare namespace AdminDisableProviderForUserResponse {
1081
1081
  }
1082
1082
  /**
1083
1083
  * <p>This exception is thrown when a user tries to confirm the account with an email
1084
- * address or phone number that has already been supplied as an alias from a different
1085
- * account. This exception indicates that an account with this email address or phone
1084
+ * address or phone number that has already been supplied as an alias for a different
1085
+ * user profile. This exception indicates that an account with this email address or phone
1086
1086
  * already exists in a user pool that you've configured to use email address or phone
1087
1087
  * number as a sign-in alias.</p>
1088
1088
  */
@@ -1408,7 +1408,7 @@ export declare namespace HttpHeader {
1408
1408
  */
1409
1409
  export interface ContextDataType {
1410
1410
  /**
1411
- * <p>Source IP address of your user.</p>
1411
+ * <p>The source IP address of your user's device.</p>
1412
1412
  */
1413
1413
  IpAddress: string | undefined;
1414
1414
  /**
@@ -1424,8 +1424,8 @@ export interface ContextDataType {
1424
1424
  */
1425
1425
  HttpHeaders: HttpHeader[] | undefined;
1426
1426
  /**
1427
- * <p>Encoded data containing device fingerprinting details collected using the Amazon Cognito
1428
- * context data collection library.</p>
1427
+ * <p>Encoded device-fingerprint details that your app collected with the Amazon Cognito
1428
+ * context data collection library. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint">Adding user device and session data to API requests</a>.</p>
1429
1429
  */
1430
1430
  EncodedData?: string;
1431
1431
  }
@@ -1612,8 +1612,9 @@ export interface AdminInitiateAuthRequest {
1612
1612
  */
1613
1613
  AnalyticsMetadata?: AnalyticsMetadataType;
1614
1614
  /**
1615
- * <p>Contextual data such as the user's device fingerprint, IP address, or location used
1616
- * for evaluating the risk of an unexpected event by Amazon Cognito advanced security.</p>
1615
+ * <p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced
1616
+ * security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito
1617
+ * when it makes API requests.</p>
1617
1618
  */
1618
1619
  ContextData?: ContextDataType;
1619
1620
  }
@@ -2111,7 +2112,7 @@ export declare namespace ChallengeResponseType {
2111
2112
  */
2112
2113
  export interface EventContextDataType {
2113
2114
  /**
2114
- * <p>The user's IP address.</p>
2115
+ * <p>The source IP address of your user's device.</p>
2115
2116
  */
2116
2117
  IpAddress?: string;
2117
2118
  /**
@@ -2474,8 +2475,9 @@ export interface AdminRespondToAuthChallengeRequest {
2474
2475
  */
2475
2476
  AnalyticsMetadata?: AnalyticsMetadataType;
2476
2477
  /**
2477
- * <p>Contextual data such as the user's device fingerprint, IP address, or location used
2478
- * for evaluating the risk of an unexpected event by Amazon Cognito advanced security.</p>
2478
+ * <p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced
2479
+ * security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito
2480
+ * when it makes API requests.</p>
2479
2481
  */
2480
2482
  ContextData?: ContextDataType;
2481
2483
  /**
@@ -3164,14 +3166,18 @@ export declare namespace ConfirmDeviceResponse {
3164
3166
  const filterSensitiveLog: (obj: ConfirmDeviceResponse) => any;
3165
3167
  }
3166
3168
  /**
3167
- * <p>Information that your app generates about a user's <code>AdminInitiateAuth</code> or
3168
- * <code>AdminRespondToAuthChallenge</code> session. Amazon Cognito advanced security features
3169
- * calculate risk levels for user sessions based on this context data.</p>
3169
+ * <p>Contextual data, such as the user's device fingerprint, IP address, or location, used
3170
+ * for evaluating the risk of an unexpected event by Amazon Cognito advanced
3171
+ * security.</p>
3170
3172
  */
3171
3173
  export interface UserContextDataType {
3172
3174
  /**
3173
- * <p>Contextual data, such as the user's device fingerprint, IP address, or location, used
3174
- * for evaluating the risk of an unexpected event by Amazon Cognito advanced security.</p>
3175
+ * <p>The source IP address of your user's device.</p>
3176
+ */
3177
+ IpAddress?: string;
3178
+ /**
3179
+ * <p>Encoded device-fingerprint details that your app collected with the Amazon Cognito
3180
+ * context data collection library. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint">Adding user device and session data to API requests</a>.</p>
3175
3181
  */
3176
3182
  EncodedData?: string;
3177
3183
  }
@@ -3214,8 +3220,9 @@ export interface ConfirmForgotPasswordRequest {
3214
3220
  */
3215
3221
  AnalyticsMetadata?: AnalyticsMetadataType;
3216
3222
  /**
3217
- * <p>Contextual data such as the user's device fingerprint, IP address, or location used
3218
- * for evaluating the risk of an unexpected event by Amazon Cognito advanced security.</p>
3223
+ * <p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced
3224
+ * security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito
3225
+ * when it makes API requests.</p>
3219
3226
  */
3220
3227
  UserContextData?: UserContextDataType;
3221
3228
  /**
@@ -3311,8 +3318,9 @@ export interface ConfirmSignUpRequest {
3311
3318
  */
3312
3319
  AnalyticsMetadata?: AnalyticsMetadataType;
3313
3320
  /**
3314
- * <p>Contextual data such as the user's device fingerprint, IP address, or location used
3315
- * for evaluating the risk of an unexpected event by Amazon Cognito advanced security.</p>
3321
+ * <p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced
3322
+ * security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito
3323
+ * when it makes API requests.</p>
3316
3324
  */
3317
3325
  UserContextData?: UserContextDataType;
3318
3326
  /**
@@ -4394,7 +4402,10 @@ export declare namespace SmsConfigurationType {
4394
4402
  const filterSensitiveLog: (obj: SmsConfigurationType) => any;
4395
4403
  }
4396
4404
  /**
4397
- * <p>The settings for updates to user attributes.</p>
4405
+ * <p>The settings for updates to user attributes. These settings include the property <code>AttributesRequireVerificationBeforeUpdate</code>,
4406
+ * a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users' email address and phone number attributes. For
4407
+ * more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html#user-pool-settings-verifications-verify-attribute-updates">
4408
+ * Verifying updates to to email addresses and phone numbers</a>.</p>
4398
4409
  */
4399
4410
  export interface UserAttributeUpdateSettingsType {
4400
4411
  /**
@@ -4587,7 +4598,10 @@ export interface CreateUserPoolRequest {
4587
4598
  */
4588
4599
  MfaConfiguration?: UserPoolMfaType | string;
4589
4600
  /**
4590
- * <p></p>
4601
+ * <p>The settings for updates to user attributes. These settings include the property <code>AttributesRequireVerificationBeforeUpdate</code>,
4602
+ * a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users' email address and phone number attributes. For
4603
+ * more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html#user-pool-settings-verifications-verify-attribute-updates">
4604
+ * Verifying updates to to email addresses and phone numbers</a>.</p>
4591
4605
  */
4592
4606
  UserAttributeUpdateSettings?: UserAttributeUpdateSettingsType;
4593
4607
  /**
@@ -4726,7 +4740,10 @@ export interface UserPoolType {
4726
4740
  */
4727
4741
  SmsAuthenticationMessage?: string;
4728
4742
  /**
4729
- * <p></p>
4743
+ * <p>The settings for updates to user attributes. These settings include the property <code>AttributesRequireVerificationBeforeUpdate</code>,
4744
+ * a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users' email address and phone number attributes. For
4745
+ * more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html#user-pool-settings-verifications-verify-attribute-updates">
4746
+ * Verifying updates to to email addresses and phone numbers</a>.</p>
4730
4747
  */
4731
4748
  UserAttributeUpdateSettings?: UserAttributeUpdateSettingsType;
4732
4749
  /**
@@ -4910,18 +4927,22 @@ export declare enum TimeUnitsType {
4910
4927
  */
4911
4928
  export interface TokenValidityUnitsType {
4912
4929
  /**
4913
- * <p> A time unit in seconds”, minutes”, hours”, or “days” for the value in
4914
- * AccessTokenValidity, defaulting to hours.</p>
4930
+ * <p> A time unit of <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or
4931
+ * <code>days</code> for the value that you set in the <code>AccessTokenValidity</code>
4932
+ * parameter. The default <code>AccessTokenValidity</code> time unit is hours.</p>
4915
4933
  */
4916
4934
  AccessToken?: TimeUnitsType | string;
4917
4935
  /**
4918
- * <p>A time unit in seconds”, minutes”, hours”, or “days” for the value in
4919
- * IdTokenValidity, defaulting to hours.</p>
4936
+ * <p>A time unit of <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or
4937
+ * <code>days</code> for the value that you set in the <code>IdTokenValidity</code>
4938
+ * parameter. The default <code>IdTokenValidity</code> time unit is hours.</p>
4920
4939
  */
4921
4940
  IdToken?: TimeUnitsType | string;
4922
4941
  /**
4923
- * <p>A time unit in seconds”, minutes”, hours”, or “days” for the value in
4924
- * RefreshTokenValidity, defaulting to days.</p>
4942
+ * <p>A time unit of <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or
4943
+ * <code>days</code> for the value that you set in the
4944
+ * <code>RefreshTokenValidity</code> parameter. The default
4945
+ * <code>RefreshTokenValidity</code> time unit is days.</p>
4925
4946
  */
4926
4947
  RefreshToken?: TimeUnitsType | string;
4927
4948
  }
@@ -5177,6 +5198,15 @@ export interface CreateUserPoolClientRequest {
5177
5198
  * the new user pool client.</p>
5178
5199
  */
5179
5200
  EnableTokenRevocation?: boolean;
5201
+ /**
5202
+ * <p>Activates the propagation of additional user context data. For more information about
5203
+ * propagation of user context data, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html"> Adding advanced security to a user pool</a>. If you don’t include this
5204
+ * parameter, you can't send device fingerprint information, including source IP address,
5205
+ * to Amazon Cognito advanced security. You can only activate
5206
+ * <code>EnablePropagateAdditionalUserContextData</code> in an app client that has a
5207
+ * client secret.</p>
5208
+ */
5209
+ EnablePropagateAdditionalUserContextData?: boolean;
5180
5210
  }
5181
5211
  export declare namespace CreateUserPoolClientRequest {
5182
5212
  /**
@@ -5427,6 +5457,24 @@ export interface UserPoolClientType {
5427
5457
  * information about revoking tokens, see <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html">RevokeToken</a>.</p>
5428
5458
  */
5429
5459
  EnableTokenRevocation?: boolean;
5460
+ /**
5461
+ * <p>When <code>EnablePropagateAdditionalUserContextData</code> is true, Amazon Cognito accepts an
5462
+ * <code>IpAddress</code> value that you send in the <code>UserContextData</code>
5463
+ * parameter. The <code>UserContextData</code> parameter sends information to Amazon Cognito
5464
+ * advanced security for risk analysis. You can send <code>UserContextData</code> when you
5465
+ * sign in Amazon Cognito native users with the <code>InitiateAuth</code> and
5466
+ * <code>RespondToAuthChallenge</code> API operations.</p>
5467
+ * <p>When <code>EnablePropagateAdditionalUserContextData</code> is false, you can't send
5468
+ * your user's source IP address to Amazon Cognito advanced security with unauthenticated API
5469
+ * operations. <code>EnablePropagateAdditionalUserContextData</code> doesn't affect whether
5470
+ * you can send a source IP address in a <code>ContextData</code> parameter with the
5471
+ * authenticated API operations <code>AdminInitiateAuth</code> and
5472
+ * <code>AdminRespondToAuthChallenge</code>.</p>
5473
+ * <p>You can only activate <code>EnablePropagateAdditionalUserContextData</code> in an app
5474
+ * client that has a client secret. For more information about propagation of user context
5475
+ * data, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint">Adding user device and session data to API requests</a>.</p>
5476
+ */
5477
+ EnablePropagateAdditionalUserContextData?: boolean;
5430
5478
  }
5431
5479
  export declare namespace UserPoolClientType {
5432
5480
  /**
@@ -6097,8 +6145,9 @@ export interface ForgotPasswordRequest {
6097
6145
  */
6098
6146
  SecretHash?: string;
6099
6147
  /**
6100
- * <p>Contextual data such as the user's device fingerprint, IP address, or location used
6101
- * for evaluating the risk of an unexpected event by Amazon Cognito advanced security.</p>
6148
+ * <p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced
6149
+ * security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito
6150
+ * when it makes API requests.</p>
6102
6151
  */
6103
6152
  UserContextData?: UserContextDataType;
6104
6153
  /**
@@ -6183,8 +6232,7 @@ export declare namespace CodeDeliveryDetailsType {
6183
6232
  const filterSensitiveLog: (obj: CodeDeliveryDetailsType) => any;
6184
6233
  }
6185
6234
  /**
6186
- * <p>Represents the response from the server regarding the request to reset a
6187
- * password.</p>
6235
+ * <p>The response from Amazon Cognito to a request to reset a password.</p>
6188
6236
  */
6189
6237
  export interface ForgotPasswordResponse {
6190
6238
  /**
@@ -6831,8 +6879,9 @@ export interface InitiateAuthRequest {
6831
6879
  */
6832
6880
  AnalyticsMetadata?: AnalyticsMetadataType;
6833
6881
  /**
6834
- * <p>Contextual data such as the user's device fingerprint, IP address, or location used
6835
- * for evaluating the risk of an unexpected event by Amazon Cognito advanced security.</p>
6882
+ * <p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced
6883
+ * security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito
6884
+ * when it makes API requests.</p>
6836
6885
  */
6837
6886
  UserContextData?: UserContextDataType;
6838
6887
  }
@@ -7546,8 +7595,9 @@ export interface ResendConfirmationCodeRequest {
7546
7595
  */
7547
7596
  SecretHash?: string;
7548
7597
  /**
7549
- * <p>Contextual data such as the user's device fingerprint, IP address, or location used
7550
- * for evaluating the risk of an unexpected event by Amazon Cognito advanced security.</p>
7598
+ * <p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced
7599
+ * security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito
7600
+ * when it makes API requests.</p>
7551
7601
  */
7552
7602
  UserContextData?: UserContextDataType;
7553
7603
  /**
@@ -7720,8 +7770,9 @@ export interface RespondToAuthChallengeRequest {
7720
7770
  */
7721
7771
  AnalyticsMetadata?: AnalyticsMetadataType;
7722
7772
  /**
7723
- * <p>Contextual data such as the user's device fingerprint, IP address, or location used
7724
- * for evaluating the risk of an unexpected event by Amazon Cognito advanced security.</p>
7773
+ * <p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced
7774
+ * security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito
7775
+ * when it makes API requests.</p>
7725
7776
  */
7726
7777
  UserContextData?: UserContextDataType;
7727
7778
  /**
@@ -8125,8 +8176,9 @@ export interface SignUpRequest {
8125
8176
  */
8126
8177
  AnalyticsMetadata?: AnalyticsMetadataType;
8127
8178
  /**
8128
- * <p>Contextual data such as the user's device fingerprint, IP address, or location used
8129
- * for evaluating the risk of an unexpected event by Amazon Cognito advanced security.</p>
8179
+ * <p>Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced
8180
+ * security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito
8181
+ * when it makes API requests.</p>
8130
8182
  */
8131
8183
  UserContextData?: UserContextDataType;
8132
8184
  /**
@@ -440,7 +440,10 @@ export interface UpdateUserPoolRequest {
440
440
  */
441
441
  SmsAuthenticationMessage?: string;
442
442
  /**
443
- * <p></p>
443
+ * <p>The settings for updates to user attributes. These settings include the property <code>AttributesRequireVerificationBeforeUpdate</code>,
444
+ * a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users' email address and phone number attributes. For
445
+ * more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html#user-pool-settings-verifications-verify-attribute-updates">
446
+ * Verifying updates to to email addresses and phone numbers</a>.</p>
444
447
  */
445
448
  UserAttributeUpdateSettings?: UserAttributeUpdateSettingsType;
446
449
  /**
@@ -759,6 +762,15 @@ export interface UpdateUserPoolClientRequest {
759
762
  * see <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html">RevokeToken</a>.</p>
760
763
  */
761
764
  EnableTokenRevocation?: boolean;
765
+ /**
766
+ * <p>Activates the propagation of additional user context data. For more information about
767
+ * propagation of user context data, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html"> Adding advanced security to a user pool</a>. If you don’t include this
768
+ * parameter, you can't send device fingerprint information, including source IP address,
769
+ * to Amazon Cognito advanced security. You can only activate
770
+ * <code>EnablePropagateAdditionalUserContextData</code> in an app client that has a
771
+ * client secret.</p>
772
+ */
773
+ EnablePropagateAdditionalUserContextData?: boolean;
762
774
  }
763
775
  export declare namespace UpdateUserPoolClientRequest {
764
776
  /**
@@ -1423,6 +1423,8 @@ export declare namespace ConfirmDeviceResponse {
1423
1423
 
1424
1424
  export interface UserContextDataType {
1425
1425
 
1426
+ IpAddress?: string;
1427
+
1426
1428
  EncodedData?: string;
1427
1429
  }
1428
1430
  export declare namespace UserContextDataType {
@@ -2128,6 +2130,8 @@ export interface CreateUserPoolClientRequest {
2128
2130
  PreventUserExistenceErrors?: PreventUserExistenceErrorTypes | string;
2129
2131
 
2130
2132
  EnableTokenRevocation?: boolean;
2133
+
2134
+ EnablePropagateAdditionalUserContextData?: boolean;
2131
2135
  }
2132
2136
  export declare namespace CreateUserPoolClientRequest {
2133
2137
 
@@ -2181,6 +2185,8 @@ export interface UserPoolClientType {
2181
2185
  PreventUserExistenceErrors?: PreventUserExistenceErrorTypes | string;
2182
2186
 
2183
2187
  EnableTokenRevocation?: boolean;
2188
+
2189
+ EnablePropagateAdditionalUserContextData?: boolean;
2184
2190
  }
2185
2191
  export declare namespace UserPoolClientType {
2186
2192
 
@@ -309,6 +309,8 @@ export interface UpdateUserPoolClientRequest {
309
309
  PreventUserExistenceErrors?: PreventUserExistenceErrorTypes | string;
310
310
 
311
311
  EnableTokenRevocation?: boolean;
312
+
313
+ EnablePropagateAdditionalUserContextData?: boolean;
312
314
  }
313
315
  export declare namespace UpdateUserPoolClientRequest {
314
316
 
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.98.0",
4
+ "version": "3.102.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",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.95.0",
21
+ "@aws-sdk/client-sts": "3.100.0",
22
22
  "@aws-sdk/config-resolver": "3.80.0",
23
- "@aws-sdk/credential-provider-node": "3.95.0",
23
+ "@aws-sdk/credential-provider-node": "3.100.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.78.0",
25
25
  "@aws-sdk/hash-node": "3.78.0",
26
26
  "@aws-sdk/invalid-dependency": "3.78.0",
@@ -35,15 +35,15 @@
35
35
  "@aws-sdk/node-config-provider": "3.80.0",
36
36
  "@aws-sdk/node-http-handler": "3.94.0",
37
37
  "@aws-sdk/protocol-http": "3.78.0",
38
- "@aws-sdk/smithy-client": "3.85.0",
38
+ "@aws-sdk/smithy-client": "3.99.0",
39
39
  "@aws-sdk/types": "3.78.0",
40
40
  "@aws-sdk/url-parser": "3.78.0",
41
41
  "@aws-sdk/util-base64-browser": "3.58.0",
42
42
  "@aws-sdk/util-base64-node": "3.55.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
44
  "@aws-sdk/util-body-length-node": "3.55.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.85.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.85.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.99.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.99.0",
47
47
  "@aws-sdk/util-user-agent-browser": "3.78.0",
48
48
  "@aws-sdk/util-user-agent-node": "3.80.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.55.0",