@aws-sdk/client-cognito-identity-provider 3.864.0 → 3.872.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/README.md +40 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +4 -0
- package/dist-cjs/index.js +361 -58
- package/dist-es/CognitoIdentityProvider.js +10 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +4 -0
- package/dist-es/commands/CreateTermsCommand.js +23 -0
- package/dist-es/commands/DeleteTermsCommand.js +22 -0
- package/dist-es/commands/DescribeTermsCommand.js +23 -0
- package/dist-es/commands/GetTokensFromRefreshTokenCommand.js +2 -1
- package/dist-es/commands/GetUICustomizationCommand.js +1 -1
- package/dist-es/commands/GetUserAttributeVerificationCodeCommand.js +1 -1
- package/dist-es/commands/GetUserCommand.js +1 -1
- package/dist-es/commands/ListTermsCommand.js +22 -0
- package/dist-es/commands/UpdateTermsCommand.js +23 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +34 -45
- package/dist-es/models/models_1.js +50 -1
- package/dist-es/protocols/Aws_json1_1.js +157 -2
- package/dist-types/CognitoIdentityProvider.d.ts +35 -0
- package/dist-types/CognitoIdentityProviderClient.d.ts +7 -2
- package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +6 -2
- package/dist-types/commands/CreateManagedLoginBrandingCommand.d.ts +1 -1
- package/dist-types/commands/CreateTermsCommand.d.ts +151 -0
- package/dist-types/commands/DeleteTermsCommand.d.ts +113 -0
- package/dist-types/commands/DescribeTermsCommand.d.ts +123 -0
- package/dist-types/commands/ForgotPasswordCommand.d.ts +6 -3
- package/dist-types/commands/GetTokensFromRefreshTokenCommand.d.ts +2 -1
- package/dist-types/commands/GetUICustomizationCommand.d.ts +1 -1
- package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
- package/dist-types/commands/GetUserCommand.d.ts +1 -1
- package/dist-types/commands/ListTermsCommand.d.ts +121 -0
- package/dist-types/commands/UpdateAuthEventFeedbackCommand.d.ts +1 -1
- package/dist-types/commands/UpdateManagedLoginBrandingCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTermsCommand.d.ts +147 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +485 -366
- package/dist-types/models/models_1.d.ts +600 -119
- package/dist-types/protocols/Aws_json1_1.d.ts +45 -0
- package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +85 -0
- package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateTermsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteTermsCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/DescribeTermsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetTokensFromRefreshTokenCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetUICustomizationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetUserCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTermsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateTermsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +60 -65
- package/dist-types/ts3.4/models/models_1.d.ts +98 -1
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
- package/package.json +2 -2
|
@@ -1,7 +1,222 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
3
3
|
import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
|
|
4
|
-
import { AccountRecoverySettingType, AccountTakeoverRiskConfigurationType, AdminCreateUserConfigType, AnalyticsConfigurationType, AnalyticsMetadataType, AssetType, AttributeType, AuthenticationResultType, AuthFactorType, AuthFlowType, ChallengeNameType, CodeDeliveryDetailsType, CompromisedCredentialsRiskConfigurationType, CustomDomainConfigType, DeletionProtectionType, DeviceConfigurationType, DeviceRememberedStatusType, DeviceType, EmailConfigurationType, EmailMfaSettingsType, ExplicitAuthFlowsType, FeedbackValueType, GroupType, IdentityProviderType, IdentityProviderTypeType, LambdaConfigType, LogConfigurationType, LogDeliveryConfigurationType, ManagedLoginBrandingType, MFAOptionType, OAuthFlowType, PreventUserExistenceErrorTypes, RefreshTokenRotationType, ResourceServerScopeType, ResourceServerType, RiskConfigurationType, RiskExceptionConfigurationType, SmsConfigurationType, SMSMfaSettingsType, SoftwareTokenMfaSettingsType, StatusType,
|
|
4
|
+
import { AccountRecoverySettingType, AccountTakeoverRiskConfigurationType, AdminCreateUserConfigType, AnalyticsConfigurationType, AnalyticsMetadataType, AssetType, AttributeType, AuthenticationResultType, AuthFactorType, AuthFlowType, ChallengeNameType, CodeDeliveryDetailsType, CompromisedCredentialsRiskConfigurationType, CustomDomainConfigType, DeletionProtectionType, DeviceConfigurationType, DeviceRememberedStatusType, DeviceType, EmailConfigurationType, EmailMfaSettingsType, ExplicitAuthFlowsType, FeedbackValueType, GroupType, IdentityProviderType, IdentityProviderTypeType, LambdaConfigType, LogConfigurationType, LogDeliveryConfigurationType, ManagedLoginBrandingType, MFAOptionType, OAuthFlowType, PreventUserExistenceErrorTypes, RefreshTokenRotationType, ResourceServerScopeType, ResourceServerType, RiskConfigurationType, RiskExceptionConfigurationType, SmsConfigurationType, SMSMfaSettingsType, SoftwareTokenMfaSettingsType, StatusType, TermsEnforcementType, TermsSourceType, TermsType, TokenValidityUnitsType, UserAttributeUpdateSettingsType, UserContextDataType, UserImportJobType, UserPoolAddOnsType, UserPoolClientType, UserPoolMfaType, UserPoolPolicyType, UserPoolTierType, UserType, VerificationMessageTemplateType, VerifiedAttributeType } from "./models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface GetTokensFromRefreshTokenResponse {
|
|
9
|
+
/**
|
|
10
|
+
* <p>The object that your application receives after authentication. Contains tokens and
|
|
11
|
+
* information for device authentication.</p>
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
AuthenticationResult?: AuthenticationResultType | undefined;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* <p>This exception is throw when your application requests token refresh with a refresh
|
|
18
|
+
* token that has been invalidated by refresh-token rotation.</p>
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export declare class RefreshTokenReuseException extends __BaseException {
|
|
22
|
+
readonly name: "RefreshTokenReuseException";
|
|
23
|
+
readonly $fault: "client";
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
constructor(opts: __ExceptionOptionType<RefreshTokenReuseException, __BaseException>);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export interface GetUICustomizationRequest {
|
|
33
|
+
/**
|
|
34
|
+
* <p>The ID of the user pool that you want to query for branding settings.</p>
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
UserPoolId: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* <p>The ID of the app client that you want to query for branding settings.</p>
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
ClientId?: string | undefined;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* <p>A container for the UI customization information for the hosted UI in a user
|
|
46
|
+
* pool.</p>
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
export interface UICustomizationType {
|
|
50
|
+
/**
|
|
51
|
+
* <p>The ID of the user pool with hosted UI customizations.</p>
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
UserPoolId?: string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* <p>The app client ID for your UI customization. When this value isn't present, the
|
|
57
|
+
* customization applies to all user pool app clients that don't have client-level
|
|
58
|
+
* settings..</p>
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
ClientId?: string | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* <p>A URL path to the hosted logo image of your UI customization.</p>
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
ImageUrl?: string | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* <p>The CSS values in the UI customization.</p>
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
CSS?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* <p>The CSS version number.</p>
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
CSSVersion?: string | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* <p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
|
|
79
|
+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
LastModifiedDate?: Date | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* <p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
|
|
85
|
+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
CreationDate?: Date | undefined;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export interface GetUICustomizationResponse {
|
|
94
|
+
/**
|
|
95
|
+
* <p>Information about the classic hosted UI custom CSS and logo-image branding that you
|
|
96
|
+
* applied to the user pool or app client.</p>
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
UICustomization: UICustomizationType | undefined;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* <p>Represents the request to get information about the user.</p>
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
export interface GetUserRequest {
|
|
106
|
+
/**
|
|
107
|
+
* <p>A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for
|
|
108
|
+
* <code>aws.cognito.signin.user.admin</code>.</p>
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
AccessToken: string | undefined;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* <p>Represents the response from the server from the request to get information about the
|
|
115
|
+
* user.</p>
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
export interface GetUserResponse {
|
|
119
|
+
/**
|
|
120
|
+
* <p>The name of the user that you requested.</p>
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
Username: string | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* <p>An array of name-value pairs representing user attributes.</p>
|
|
126
|
+
* <p>Custom attributes are prepended with the <code>custom:</code> prefix.</p>
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
UserAttributes: AttributeType[] | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* <p>
|
|
132
|
+
* <i>This response parameter is no longer supported.</i> It provides
|
|
133
|
+
* information only about SMS MFA configurations. It doesn't provide information about
|
|
134
|
+
* time-based one-time password (TOTP) software token MFA configurations. To look up
|
|
135
|
+
* information about either type of MFA configuration, use UserMFASettingList
|
|
136
|
+
* instead.</p>
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
MFAOptions?: MFAOptionType[] | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* <p>The user's preferred MFA. Users can prefer SMS message, email message, or TOTP
|
|
142
|
+
* MFA.</p>
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
145
|
+
PreferredMfaSetting?: string | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* <p>The MFA options that are activated for the user. The possible values in this list are
|
|
148
|
+
* <code>SMS_MFA</code>, <code>EMAIL_OTP</code>, and
|
|
149
|
+
* <code>SOFTWARE_TOKEN_MFA</code>.</p>
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
UserMFASettingList?: string[] | undefined;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* <p>Represents the request to get user attribute verification.</p>
|
|
156
|
+
* @public
|
|
157
|
+
*/
|
|
158
|
+
export interface GetUserAttributeVerificationCodeRequest {
|
|
159
|
+
/**
|
|
160
|
+
* <p>A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for
|
|
161
|
+
* <code>aws.cognito.signin.user.admin</code>.</p>
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
164
|
+
AccessToken: string | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* <p>The name of the attribute that the user wants to verify, for example
|
|
167
|
+
* <code>email</code>.</p>
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
170
|
+
AttributeName: string | undefined;
|
|
171
|
+
/**
|
|
172
|
+
* <p>A map of custom key-value pairs that you can provide as input for any custom workflows
|
|
173
|
+
* that this action triggers.</p>
|
|
174
|
+
* <p>You create custom workflows by assigning Lambda functions to user pool
|
|
175
|
+
* triggers. When you use the GetUserAttributeVerificationCode API action, Amazon Cognito invokes
|
|
176
|
+
* the function that is assigned to the <i>custom message</i> trigger. When
|
|
177
|
+
* Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as
|
|
178
|
+
* input. This payload contains a <code>clientMetadata</code> attribute, which provides the
|
|
179
|
+
* data that you assigned to the ClientMetadata parameter in your
|
|
180
|
+
* GetUserAttributeVerificationCode request. In your function code in Lambda, you can process the <code>clientMetadata</code> value to enhance your workflow for
|
|
181
|
+
* your specific needs.</p>
|
|
182
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html">
|
|
183
|
+
* Using Lambda triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p>
|
|
184
|
+
* <note>
|
|
185
|
+
* <p>When you use the <code>ClientMetadata</code> parameter, note that Amazon Cognito won't do the
|
|
186
|
+
* following:</p>
|
|
187
|
+
* <ul>
|
|
188
|
+
* <li>
|
|
189
|
+
* <p>Store the <code>ClientMetadata</code> value. This data is available only
|
|
190
|
+
* to Lambda triggers that are assigned to a user pool to support custom
|
|
191
|
+
* workflows. If your user pool configuration doesn't include triggers, the
|
|
192
|
+
* <code>ClientMetadata</code> parameter serves no purpose.</p>
|
|
193
|
+
* </li>
|
|
194
|
+
* <li>
|
|
195
|
+
* <p>Validate the <code>ClientMetadata</code> value.</p>
|
|
196
|
+
* </li>
|
|
197
|
+
* <li>
|
|
198
|
+
* <p>Encrypt the <code>ClientMetadata</code> value. Don't send sensitive
|
|
199
|
+
* information in this parameter.</p>
|
|
200
|
+
* </li>
|
|
201
|
+
* </ul>
|
|
202
|
+
* </note>
|
|
203
|
+
* @public
|
|
204
|
+
*/
|
|
205
|
+
ClientMetadata?: Record<string, string> | undefined;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* <p>The verification code response returned by the server response to get the user
|
|
209
|
+
* attribute verification code.</p>
|
|
210
|
+
* @public
|
|
211
|
+
*/
|
|
212
|
+
export interface GetUserAttributeVerificationCodeResponse {
|
|
213
|
+
/**
|
|
214
|
+
* <p>Information about the delivery destination of the user attribute verification
|
|
215
|
+
* code.</p>
|
|
216
|
+
* @public
|
|
217
|
+
*/
|
|
218
|
+
CodeDeliveryDetails?: CodeDeliveryDetailsType | undefined;
|
|
219
|
+
}
|
|
5
220
|
/**
|
|
6
221
|
* @public
|
|
7
222
|
*/
|
|
@@ -293,42 +508,82 @@ export interface InitiateAuthRequest {
|
|
|
293
508
|
/**
|
|
294
509
|
* <p>The authentication parameters. These are inputs corresponding to the
|
|
295
510
|
* <code>AuthFlow</code> that you're invoking.</p>
|
|
296
|
-
* <p>The required values are specific to the <a>InitiateAuthRequest$AuthFlow</a>.</p>
|
|
297
511
|
* <p>The following are some authentication flows and their parameters. Add a
|
|
298
|
-
* <code>SECRET_HASH</code> parameter if your app client has a client secret
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
* <code>
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
* </
|
|
318
|
-
* <
|
|
319
|
-
*
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
* <
|
|
326
|
-
*
|
|
327
|
-
* <code>
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
* </
|
|
331
|
-
*
|
|
512
|
+
* <code>SECRET_HASH</code> parameter if your app client has a client secret. Add
|
|
513
|
+
* <code>DEVICE_KEY</code> if you want to bypass multi-factor authentication with a
|
|
514
|
+
* remembered device. </p>
|
|
515
|
+
* <dl>
|
|
516
|
+
* <dt>USER_AUTH</dt>
|
|
517
|
+
* <dd>
|
|
518
|
+
* <ul>
|
|
519
|
+
* <li>
|
|
520
|
+
* <p>
|
|
521
|
+
* <code>USERNAME</code> (required)</p>
|
|
522
|
+
* </li>
|
|
523
|
+
* <li>
|
|
524
|
+
* <p>
|
|
525
|
+
* <code>PREFERRED_CHALLENGE</code>. If you don't provide a
|
|
526
|
+
* value for <code>PREFERRED_CHALLENGE</code>, Amazon Cognito responds with the
|
|
527
|
+
* <code>AvailableChallenges</code> parameter that specifies the
|
|
528
|
+
* available sign-in methods.</p>
|
|
529
|
+
* </li>
|
|
530
|
+
* </ul>
|
|
531
|
+
* </dd>
|
|
532
|
+
* <dt>USER_SRP_AUTH</dt>
|
|
533
|
+
* <dd>
|
|
534
|
+
* <ul>
|
|
535
|
+
* <li>
|
|
536
|
+
* <p>
|
|
537
|
+
* <code>USERNAME</code> (required)</p>
|
|
538
|
+
* </li>
|
|
539
|
+
* <li>
|
|
540
|
+
* <p>
|
|
541
|
+
* <code>SRP_A</code> (required)</p>
|
|
542
|
+
* </li>
|
|
543
|
+
* </ul>
|
|
544
|
+
* </dd>
|
|
545
|
+
* <dt>USER_PASSWORD_AUTH</dt>
|
|
546
|
+
* <dd>
|
|
547
|
+
* <ul>
|
|
548
|
+
* <li>
|
|
549
|
+
* <p>
|
|
550
|
+
* <code>USERNAME</code> (required)</p>
|
|
551
|
+
* </li>
|
|
552
|
+
* <li>
|
|
553
|
+
* <p>
|
|
554
|
+
* <code>PASSWORD</code> (required)</p>
|
|
555
|
+
* </li>
|
|
556
|
+
* </ul>
|
|
557
|
+
* </dd>
|
|
558
|
+
* <dt>REFRESH_TOKEN_AUTH/REFRESH_TOKEN</dt>
|
|
559
|
+
* <dd>
|
|
560
|
+
* <ul>
|
|
561
|
+
* <li>
|
|
562
|
+
* <p>
|
|
563
|
+
* <code>REFRESH_TOKEN</code>(required)</p>
|
|
564
|
+
* </li>
|
|
565
|
+
* </ul>
|
|
566
|
+
* </dd>
|
|
567
|
+
* <dt>CUSTOM_AUTH</dt>
|
|
568
|
+
* <dd>
|
|
569
|
+
* <ul>
|
|
570
|
+
* <li>
|
|
571
|
+
* <p>
|
|
572
|
+
* <code>USERNAME</code> (required)</p>
|
|
573
|
+
* </li>
|
|
574
|
+
* <li>
|
|
575
|
+
* <p>
|
|
576
|
+
* <code>ChallengeName: SRP_A</code> (when doing SRP authentication
|
|
577
|
+
* before custom challenges)</p>
|
|
578
|
+
* </li>
|
|
579
|
+
* <li>
|
|
580
|
+
* <p>
|
|
581
|
+
* <code>SRP_A: (An SRP_A value)</code> (when doing SRP
|
|
582
|
+
* authentication before custom challenges)</p>
|
|
583
|
+
* </li>
|
|
584
|
+
* </ul>
|
|
585
|
+
* </dd>
|
|
586
|
+
* </dl>
|
|
332
587
|
* <p>For more information about <code>SECRET_HASH</code>, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#cognito-user-pools-computing-secret-hash">Computing secret hash values</a>. For information about
|
|
333
588
|
* <code>DEVICE_KEY</code>, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html">Working with user devices in your user pool</a>.</p>
|
|
334
589
|
* @public
|
|
@@ -452,59 +707,66 @@ export interface InitiateAuthResponse {
|
|
|
452
707
|
* <p>Possible challenges include the following:</p>
|
|
453
708
|
* <note>
|
|
454
709
|
* <p>All of the following challenges require <code>USERNAME</code> and, when the app
|
|
455
|
-
* client has a client secret, <code>SECRET_HASH</code> in the parameters
|
|
710
|
+
* client has a client secret, <code>SECRET_HASH</code> in the parameters. Include a
|
|
711
|
+
* <code>DEVICE_KEY</code> for device authentication.</p>
|
|
456
712
|
* </note>
|
|
457
713
|
* <ul>
|
|
458
714
|
* <li>
|
|
459
715
|
* <p>
|
|
460
716
|
* <code>WEB_AUTHN</code>: Respond to the challenge with the results of a
|
|
461
|
-
* successful authentication with a WebAuthn authenticator, or passkey
|
|
462
|
-
* of WebAuthn authenticators include
|
|
717
|
+
* successful authentication with a WebAuthn authenticator, or passkey, as
|
|
718
|
+
* <code>CREDENTIAL</code>. Examples of WebAuthn authenticators include
|
|
719
|
+
* biometric devices and security keys.</p>
|
|
720
|
+
* </li>
|
|
721
|
+
* <li>
|
|
722
|
+
* <p>
|
|
723
|
+
* <code>PASSWORD</code>: Respond with the user's password as <code>PASSWORD</code>.</p>
|
|
463
724
|
* </li>
|
|
464
725
|
* <li>
|
|
465
726
|
* <p>
|
|
466
|
-
* <code>
|
|
467
|
-
* parameters: <code>USERNAME</code> (required), <code>PASSWORD</code> (required),
|
|
468
|
-
* <code>SECRET_HASH</code> (required if the app client is configured with a
|
|
469
|
-
* client secret), <code>DEVICE_KEY</code>.</p>
|
|
727
|
+
* <code>PASSWORD_SRP</code>: Respond with the initial SRP secret as <code>SRP_A</code>.</p>
|
|
470
728
|
* </li>
|
|
471
729
|
* <li>
|
|
472
730
|
* <p>
|
|
473
|
-
* <code>
|
|
474
|
-
*
|
|
475
|
-
*
|
|
476
|
-
*
|
|
731
|
+
* <code>SELECT_CHALLENGE</code>: Respond with a challenge selection as <code>ANSWER</code>.
|
|
732
|
+
* It must be one of the challenge types in the <code>AvailableChallenges</code> response
|
|
733
|
+
* parameter. Add the parameters of the selected challenge, for example <code>USERNAME</code>
|
|
734
|
+
* and <code>SMS_OTP</code>.</p>
|
|
477
735
|
* </li>
|
|
478
736
|
* <li>
|
|
479
737
|
* <p>
|
|
480
|
-
* <code>
|
|
481
|
-
*
|
|
482
|
-
*
|
|
483
|
-
* parameter.</p>
|
|
738
|
+
* <code>SMS_MFA</code>: Respond with the code that your user pool delivered in an SMS
|
|
739
|
+
* message, as <code>SMS_MFA_CODE</code>
|
|
740
|
+
* </p>
|
|
484
741
|
* </li>
|
|
485
742
|
* <li>
|
|
486
743
|
* <p>
|
|
487
|
-
* <code>
|
|
488
|
-
* <code>
|
|
744
|
+
* <code>EMAIL_MFA</code>: Respond with the code that your user pool delivered in an email
|
|
745
|
+
* message, as <code>EMAIL_MFA_CODE</code>
|
|
746
|
+
* </p>
|
|
489
747
|
* </li>
|
|
490
748
|
* <li>
|
|
491
749
|
* <p>
|
|
492
|
-
* <code>EMAIL_OTP</code>: Respond with an
|
|
493
|
-
*
|
|
494
|
-
* message.</p>
|
|
750
|
+
* <code>EMAIL_OTP</code>: Respond with the code that your user pool delivered in an email
|
|
751
|
+
* message, as <code>EMAIL_OTP_CODE</code> .</p>
|
|
495
752
|
* </li>
|
|
496
753
|
* <li>
|
|
497
754
|
* <p>
|
|
498
|
-
* <code>
|
|
499
|
-
*
|
|
500
|
-
*
|
|
501
|
-
*
|
|
755
|
+
* <code>SMS_OTP</code>: Respond with the code that your user pool delivered in an SMS
|
|
756
|
+
* message, as <code>SMS_OTP_CODE</code>.</p>
|
|
757
|
+
* </li>
|
|
758
|
+
* <li>
|
|
759
|
+
* <p>
|
|
760
|
+
* <code>PASSWORD_VERIFIER</code>: Respond with the second stage of SRP secrets as
|
|
761
|
+
* <code>PASSWORD_CLAIM_SIGNATURE</code>, <code>PASSWORD_CLAIM_SECRET_BLOCK</code>,
|
|
762
|
+
* and <code>TIMESTAMP</code>.</p>
|
|
502
763
|
* </li>
|
|
503
764
|
* <li>
|
|
504
765
|
* <p>
|
|
505
766
|
* <code>CUSTOM_CHALLENGE</code>: This is returned if your custom authentication
|
|
506
767
|
* flow determines that the user should pass another challenge before tokens are
|
|
507
|
-
* issued. The parameters of the challenge are determined by your Lambda function
|
|
768
|
+
* issued. The parameters of the challenge are determined by your Lambda function
|
|
769
|
+
* and issued in the <code>ChallengeParameters</code> of a challenge response.</p>
|
|
508
770
|
* </li>
|
|
509
771
|
* <li>
|
|
510
772
|
* <p>
|
|
@@ -811,6 +1073,84 @@ export interface ListTagsForResourceResponse {
|
|
|
811
1073
|
*/
|
|
812
1074
|
Tags?: Record<string, string> | undefined;
|
|
813
1075
|
}
|
|
1076
|
+
/**
|
|
1077
|
+
* @public
|
|
1078
|
+
*/
|
|
1079
|
+
export interface ListTermsRequest {
|
|
1080
|
+
/**
|
|
1081
|
+
* <p>The ID of the user pool where you want to list terms documents.</p>
|
|
1082
|
+
* @public
|
|
1083
|
+
*/
|
|
1084
|
+
UserPoolId: string | undefined;
|
|
1085
|
+
/**
|
|
1086
|
+
* <p>The maximum number of terms documents that you want Amazon Cognito to return in the
|
|
1087
|
+
* response.</p>
|
|
1088
|
+
* @public
|
|
1089
|
+
*/
|
|
1090
|
+
MaxResults?: number | undefined;
|
|
1091
|
+
/**
|
|
1092
|
+
* <p>This API operation returns a limited number of results. The pagination token is
|
|
1093
|
+
* an identifier that you can present in an additional API request with the same parameters. When
|
|
1094
|
+
* you include the pagination token, Amazon Cognito returns the next set of items after the current list.
|
|
1095
|
+
* Subsequent requests return a new pagination token. By use of this token, you can paginate
|
|
1096
|
+
* through the full list of items.</p>
|
|
1097
|
+
* @public
|
|
1098
|
+
*/
|
|
1099
|
+
NextToken?: string | undefined;
|
|
1100
|
+
}
|
|
1101
|
+
/**
|
|
1102
|
+
* <p>The details of a set of terms documents. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managed-login.html#managed-login-terms-documents">Terms documents</a>.</p>
|
|
1103
|
+
* @public
|
|
1104
|
+
*/
|
|
1105
|
+
export interface TermsDescriptionType {
|
|
1106
|
+
/**
|
|
1107
|
+
* <p>The ID of the requested terms documents.</p>
|
|
1108
|
+
* @public
|
|
1109
|
+
*/
|
|
1110
|
+
TermsId: string | undefined;
|
|
1111
|
+
/**
|
|
1112
|
+
* <p>The type and friendly name of the requested terms documents.</p>
|
|
1113
|
+
* @public
|
|
1114
|
+
*/
|
|
1115
|
+
TermsName: string | undefined;
|
|
1116
|
+
/**
|
|
1117
|
+
* <p>This parameter is reserved for future use and currently accepts one value.</p>
|
|
1118
|
+
* @public
|
|
1119
|
+
*/
|
|
1120
|
+
Enforcement: TermsEnforcementType | undefined;
|
|
1121
|
+
/**
|
|
1122
|
+
* <p>The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
|
|
1123
|
+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
|
|
1124
|
+
* @public
|
|
1125
|
+
*/
|
|
1126
|
+
CreationDate: Date | undefined;
|
|
1127
|
+
/**
|
|
1128
|
+
* <p>The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a
|
|
1129
|
+
* human-readable format like ISO 8601 or a Java <code>Date</code> object.</p>
|
|
1130
|
+
* @public
|
|
1131
|
+
*/
|
|
1132
|
+
LastModifiedDate: Date | undefined;
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* @public
|
|
1136
|
+
*/
|
|
1137
|
+
export interface ListTermsResponse {
|
|
1138
|
+
/**
|
|
1139
|
+
* <p>A summary of the requested terms documents. Includes unique identifiers for later
|
|
1140
|
+
* changes to the terms documents.</p>
|
|
1141
|
+
* @public
|
|
1142
|
+
*/
|
|
1143
|
+
Terms: TermsDescriptionType[] | undefined;
|
|
1144
|
+
/**
|
|
1145
|
+
* <p>This API operation returns a limited number of results. The pagination token is
|
|
1146
|
+
* an identifier that you can present in an additional API request with the same parameters. When
|
|
1147
|
+
* you include the pagination token, Amazon Cognito returns the next set of items after the current list.
|
|
1148
|
+
* Subsequent requests return a new pagination token. By use of this token, you can paginate
|
|
1149
|
+
* through the full list of items.</p>
|
|
1150
|
+
* @public
|
|
1151
|
+
*/
|
|
1152
|
+
NextToken?: string | undefined;
|
|
1153
|
+
}
|
|
814
1154
|
/**
|
|
815
1155
|
* <p>Represents the request to list the user import jobs.</p>
|
|
816
1156
|
* @public
|
|
@@ -1394,59 +1734,66 @@ export interface RespondToAuthChallengeRequest {
|
|
|
1394
1734
|
* <p>Possible challenges include the following:</p>
|
|
1395
1735
|
* <note>
|
|
1396
1736
|
* <p>All of the following challenges require <code>USERNAME</code> and, when the app
|
|
1397
|
-
* client has a client secret, <code>SECRET_HASH</code> in the parameters
|
|
1737
|
+
* client has a client secret, <code>SECRET_HASH</code> in the parameters. Include a
|
|
1738
|
+
* <code>DEVICE_KEY</code> for device authentication.</p>
|
|
1398
1739
|
* </note>
|
|
1399
1740
|
* <ul>
|
|
1400
1741
|
* <li>
|
|
1401
1742
|
* <p>
|
|
1402
1743
|
* <code>WEB_AUTHN</code>: Respond to the challenge with the results of a
|
|
1403
|
-
* successful authentication with a WebAuthn authenticator, or passkey
|
|
1404
|
-
* of WebAuthn authenticators include
|
|
1744
|
+
* successful authentication with a WebAuthn authenticator, or passkey, as
|
|
1745
|
+
* <code>CREDENTIAL</code>. Examples of WebAuthn authenticators include
|
|
1746
|
+
* biometric devices and security keys.</p>
|
|
1405
1747
|
* </li>
|
|
1406
1748
|
* <li>
|
|
1407
1749
|
* <p>
|
|
1408
|
-
* <code>PASSWORD</code>: Respond with <code>
|
|
1409
|
-
* parameters: <code>USERNAME</code> (required), <code>PASSWORD</code> (required),
|
|
1410
|
-
* <code>SECRET_HASH</code> (required if the app client is configured with a
|
|
1411
|
-
* client secret), <code>DEVICE_KEY</code>.</p>
|
|
1750
|
+
* <code>PASSWORD</code>: Respond with the user's password as <code>PASSWORD</code>.</p>
|
|
1412
1751
|
* </li>
|
|
1413
1752
|
* <li>
|
|
1414
1753
|
* <p>
|
|
1415
|
-
* <code>PASSWORD_SRP</code>: Respond with <code>
|
|
1416
|
-
* <code>USERNAME</code> (required), <code>SRP_A</code> (required),
|
|
1417
|
-
* <code>SECRET_HASH</code> (required if the app client is configured with a
|
|
1418
|
-
* client secret), <code>DEVICE_KEY</code>.</p>
|
|
1754
|
+
* <code>PASSWORD_SRP</code>: Respond with the initial SRP secret as <code>SRP_A</code>.</p>
|
|
1419
1755
|
* </li>
|
|
1420
1756
|
* <li>
|
|
1421
1757
|
* <p>
|
|
1422
|
-
* <code>SELECT_CHALLENGE</code>: Respond
|
|
1423
|
-
*
|
|
1424
|
-
*
|
|
1425
|
-
*
|
|
1758
|
+
* <code>SELECT_CHALLENGE</code>: Respond with a challenge selection as <code>ANSWER</code>.
|
|
1759
|
+
* It must be one of the challenge types in the <code>AvailableChallenges</code> response
|
|
1760
|
+
* parameter. Add the parameters of the selected challenge, for example <code>USERNAME</code>
|
|
1761
|
+
* and <code>SMS_OTP</code>.</p>
|
|
1426
1762
|
* </li>
|
|
1427
1763
|
* <li>
|
|
1428
1764
|
* <p>
|
|
1429
|
-
* <code>SMS_MFA</code>: Respond with an
|
|
1430
|
-
* <code>SMS_MFA_CODE</code>
|
|
1765
|
+
* <code>SMS_MFA</code>: Respond with the code that your user pool delivered in an SMS
|
|
1766
|
+
* message, as <code>SMS_MFA_CODE</code>
|
|
1767
|
+
* </p>
|
|
1431
1768
|
* </li>
|
|
1432
1769
|
* <li>
|
|
1433
1770
|
* <p>
|
|
1434
|
-
* <code>
|
|
1435
|
-
*
|
|
1436
|
-
*
|
|
1771
|
+
* <code>EMAIL_MFA</code>: Respond with the code that your user pool delivered in an email
|
|
1772
|
+
* message, as <code>EMAIL_MFA_CODE</code>
|
|
1773
|
+
* </p>
|
|
1437
1774
|
* </li>
|
|
1438
1775
|
* <li>
|
|
1439
1776
|
* <p>
|
|
1440
|
-
* <code>
|
|
1441
|
-
*
|
|
1442
|
-
*
|
|
1443
|
-
*
|
|
1777
|
+
* <code>EMAIL_OTP</code>: Respond with the code that your user pool delivered in an email
|
|
1778
|
+
* message, as <code>EMAIL_OTP_CODE</code> .</p>
|
|
1779
|
+
* </li>
|
|
1780
|
+
* <li>
|
|
1781
|
+
* <p>
|
|
1782
|
+
* <code>SMS_OTP</code>: Respond with the code that your user pool delivered in an SMS
|
|
1783
|
+
* message, as <code>SMS_OTP_CODE</code>.</p>
|
|
1784
|
+
* </li>
|
|
1785
|
+
* <li>
|
|
1786
|
+
* <p>
|
|
1787
|
+
* <code>PASSWORD_VERIFIER</code>: Respond with the second stage of SRP secrets as
|
|
1788
|
+
* <code>PASSWORD_CLAIM_SIGNATURE</code>, <code>PASSWORD_CLAIM_SECRET_BLOCK</code>,
|
|
1789
|
+
* and <code>TIMESTAMP</code>.</p>
|
|
1444
1790
|
* </li>
|
|
1445
1791
|
* <li>
|
|
1446
1792
|
* <p>
|
|
1447
1793
|
* <code>CUSTOM_CHALLENGE</code>: This is returned if your custom authentication
|
|
1448
1794
|
* flow determines that the user should pass another challenge before tokens are
|
|
1449
|
-
* issued. The parameters of the challenge are determined by your Lambda function
|
|
1795
|
+
* issued. The parameters of the challenge are determined by your Lambda function
|
|
1796
|
+
* and issued in the <code>ChallengeParameters</code> of a challenge response.</p>
|
|
1450
1797
|
* </li>
|
|
1451
1798
|
* <li>
|
|
1452
1799
|
* <p>
|
|
@@ -1578,6 +1925,32 @@ export interface RespondToAuthChallengeRequest {
|
|
|
1578
1925
|
* </li>
|
|
1579
1926
|
* </ul>
|
|
1580
1927
|
* </dd>
|
|
1928
|
+
* <dt>WEB_AUTHN</dt>
|
|
1929
|
+
* <dd>
|
|
1930
|
+
* <p>
|
|
1931
|
+
* <code>"ChallengeName": "WEB_AUTHN", "ChallengeResponses": \{
|
|
1932
|
+
* "USERNAME": "[username]",
|
|
1933
|
+
* "CREDENTIAL": "[AuthenticationResponseJSON]"\}</code>
|
|
1934
|
+
* </p>
|
|
1935
|
+
* <p>See <a href="https://www.w3.org/TR/WebAuthn-3/#dictdef-authenticationresponsejson">
|
|
1936
|
+
* AuthenticationResponseJSON</a>.</p>
|
|
1937
|
+
* </dd>
|
|
1938
|
+
* <dt>PASSWORD</dt>
|
|
1939
|
+
* <dd>
|
|
1940
|
+
* <p>
|
|
1941
|
+
* <code>"ChallengeName": "PASSWORD", "ChallengeResponses": \{
|
|
1942
|
+
* "USERNAME": "[username]",
|
|
1943
|
+
* "PASSWORD": "[password]"\}</code>
|
|
1944
|
+
* </p>
|
|
1945
|
+
* </dd>
|
|
1946
|
+
* <dt>PASSWORD_SRP</dt>
|
|
1947
|
+
* <dd>
|
|
1948
|
+
* <p>
|
|
1949
|
+
* <code>"ChallengeName": "PASSWORD_SRP", "ChallengeResponses": \{
|
|
1950
|
+
* "USERNAME": "[username]",
|
|
1951
|
+
* "SRP_A": "[SRP_A]"\}</code>
|
|
1952
|
+
* </p>
|
|
1953
|
+
* </dd>
|
|
1581
1954
|
* <dt>SMS_OTP</dt>
|
|
1582
1955
|
* <dd>
|
|
1583
1956
|
* <p>
|
|
@@ -1611,8 +1984,6 @@ export interface RespondToAuthChallengeRequest {
|
|
|
1611
1984
|
* "PASSWORD_CLAIM_SECRET_BLOCK": "[secret_block]", "TIMESTAMP":
|
|
1612
1985
|
* [timestamp], "USERNAME": "[username]"\}</code>
|
|
1613
1986
|
* </p>
|
|
1614
|
-
* <p>Add <code>"DEVICE_KEY"</code> when you sign in with a remembered
|
|
1615
|
-
* device.</p>
|
|
1616
1987
|
* </dd>
|
|
1617
1988
|
* <dt>CUSTOM_CHALLENGE</dt>
|
|
1618
1989
|
* <dd>
|
|
@@ -1620,8 +1991,6 @@ export interface RespondToAuthChallengeRequest {
|
|
|
1620
1991
|
* <code>"ChallengeName": "CUSTOM_CHALLENGE", "ChallengeResponses":
|
|
1621
1992
|
* \{"USERNAME": "[username]", "ANSWER": "[challenge_answer]"\}</code>
|
|
1622
1993
|
* </p>
|
|
1623
|
-
* <p>Add <code>"DEVICE_KEY"</code> when you sign in with a remembered
|
|
1624
|
-
* device.</p>
|
|
1625
1994
|
* </dd>
|
|
1626
1995
|
* <dt>NEW_PASSWORD_REQUIRED</dt>
|
|
1627
1996
|
* <dd>
|
|
@@ -1679,7 +2048,7 @@ export interface RespondToAuthChallengeRequest {
|
|
|
1679
2048
|
* <dd>
|
|
1680
2049
|
* <p>
|
|
1681
2050
|
* <code>"ChallengeName": "SELECT_MFA_TYPE", "ChallengeResponses": \{"USERNAME":
|
|
1682
|
-
* "[username]", "ANSWER": "[SMS_MFA
|
|
2051
|
+
* "[username]", "ANSWER": "[SMS_MFA|EMAIL_MFA|SOFTWARE_TOKEN_MFA]"\}</code>
|
|
1683
2052
|
* </p>
|
|
1684
2053
|
* </dd>
|
|
1685
2054
|
* </dl>
|
|
@@ -1754,59 +2123,66 @@ export interface RespondToAuthChallengeResponse {
|
|
|
1754
2123
|
* <p>Possible challenges include the following:</p>
|
|
1755
2124
|
* <note>
|
|
1756
2125
|
* <p>All of the following challenges require <code>USERNAME</code> and, when the app
|
|
1757
|
-
* client has a client secret, <code>SECRET_HASH</code> in the parameters
|
|
2126
|
+
* client has a client secret, <code>SECRET_HASH</code> in the parameters. Include a
|
|
2127
|
+
* <code>DEVICE_KEY</code> for device authentication.</p>
|
|
1758
2128
|
* </note>
|
|
1759
2129
|
* <ul>
|
|
1760
2130
|
* <li>
|
|
1761
2131
|
* <p>
|
|
1762
2132
|
* <code>WEB_AUTHN</code>: Respond to the challenge with the results of a
|
|
1763
|
-
* successful authentication with a WebAuthn authenticator, or passkey
|
|
1764
|
-
* of WebAuthn authenticators include
|
|
2133
|
+
* successful authentication with a WebAuthn authenticator, or passkey, as
|
|
2134
|
+
* <code>CREDENTIAL</code>. Examples of WebAuthn authenticators include
|
|
2135
|
+
* biometric devices and security keys.</p>
|
|
1765
2136
|
* </li>
|
|
1766
2137
|
* <li>
|
|
1767
2138
|
* <p>
|
|
1768
|
-
* <code>PASSWORD</code>: Respond with <code>
|
|
1769
|
-
* parameters: <code>USERNAME</code> (required), <code>PASSWORD</code> (required),
|
|
1770
|
-
* <code>SECRET_HASH</code> (required if the app client is configured with a
|
|
1771
|
-
* client secret), <code>DEVICE_KEY</code>.</p>
|
|
2139
|
+
* <code>PASSWORD</code>: Respond with the user's password as <code>PASSWORD</code>.</p>
|
|
1772
2140
|
* </li>
|
|
1773
2141
|
* <li>
|
|
1774
2142
|
* <p>
|
|
1775
|
-
* <code>PASSWORD_SRP</code>: Respond with <code>
|
|
1776
|
-
* <code>USERNAME</code> (required), <code>SRP_A</code> (required),
|
|
1777
|
-
* <code>SECRET_HASH</code> (required if the app client is configured with a
|
|
1778
|
-
* client secret), <code>DEVICE_KEY</code>.</p>
|
|
2143
|
+
* <code>PASSWORD_SRP</code>: Respond with the initial SRP secret as <code>SRP_A</code>.</p>
|
|
1779
2144
|
* </li>
|
|
1780
2145
|
* <li>
|
|
1781
2146
|
* <p>
|
|
1782
|
-
* <code>SELECT_CHALLENGE</code>: Respond
|
|
1783
|
-
*
|
|
1784
|
-
*
|
|
1785
|
-
*
|
|
2147
|
+
* <code>SELECT_CHALLENGE</code>: Respond with a challenge selection as <code>ANSWER</code>.
|
|
2148
|
+
* It must be one of the challenge types in the <code>AvailableChallenges</code> response
|
|
2149
|
+
* parameter. Add the parameters of the selected challenge, for example <code>USERNAME</code>
|
|
2150
|
+
* and <code>SMS_OTP</code>.</p>
|
|
1786
2151
|
* </li>
|
|
1787
2152
|
* <li>
|
|
1788
2153
|
* <p>
|
|
1789
|
-
* <code>SMS_MFA</code>: Respond with an
|
|
1790
|
-
* <code>SMS_MFA_CODE</code>
|
|
2154
|
+
* <code>SMS_MFA</code>: Respond with the code that your user pool delivered in an SMS
|
|
2155
|
+
* message, as <code>SMS_MFA_CODE</code>
|
|
2156
|
+
* </p>
|
|
1791
2157
|
* </li>
|
|
1792
2158
|
* <li>
|
|
1793
2159
|
* <p>
|
|
1794
|
-
* <code>
|
|
1795
|
-
*
|
|
1796
|
-
*
|
|
2160
|
+
* <code>EMAIL_MFA</code>: Respond with the code that your user pool delivered in an email
|
|
2161
|
+
* message, as <code>EMAIL_MFA_CODE</code>
|
|
2162
|
+
* </p>
|
|
1797
2163
|
* </li>
|
|
1798
2164
|
* <li>
|
|
1799
2165
|
* <p>
|
|
1800
|
-
* <code>
|
|
1801
|
-
*
|
|
1802
|
-
*
|
|
1803
|
-
*
|
|
2166
|
+
* <code>EMAIL_OTP</code>: Respond with the code that your user pool delivered in an email
|
|
2167
|
+
* message, as <code>EMAIL_OTP_CODE</code> .</p>
|
|
2168
|
+
* </li>
|
|
2169
|
+
* <li>
|
|
2170
|
+
* <p>
|
|
2171
|
+
* <code>SMS_OTP</code>: Respond with the code that your user pool delivered in an SMS
|
|
2172
|
+
* message, as <code>SMS_OTP_CODE</code>.</p>
|
|
2173
|
+
* </li>
|
|
2174
|
+
* <li>
|
|
2175
|
+
* <p>
|
|
2176
|
+
* <code>PASSWORD_VERIFIER</code>: Respond with the second stage of SRP secrets as
|
|
2177
|
+
* <code>PASSWORD_CLAIM_SIGNATURE</code>, <code>PASSWORD_CLAIM_SECRET_BLOCK</code>,
|
|
2178
|
+
* and <code>TIMESTAMP</code>.</p>
|
|
1804
2179
|
* </li>
|
|
1805
2180
|
* <li>
|
|
1806
2181
|
* <p>
|
|
1807
2182
|
* <code>CUSTOM_CHALLENGE</code>: This is returned if your custom authentication
|
|
1808
2183
|
* flow determines that the user should pass another challenge before tokens are
|
|
1809
|
-
* issued. The parameters of the challenge are determined by your Lambda function
|
|
2184
|
+
* issued. The parameters of the challenge are determined by your Lambda function
|
|
2185
|
+
* and issued in the <code>ChallengeParameters</code> of a challenge response.</p>
|
|
1810
2186
|
* </li>
|
|
1811
2187
|
* <li>
|
|
1812
2188
|
* <p>
|
|
@@ -2796,7 +3172,7 @@ export interface UpdateManagedLoginBrandingRequest {
|
|
|
2796
3172
|
/**
|
|
2797
3173
|
* <p>When <code>true</code>, applies the default branding style options. This option
|
|
2798
3174
|
* reverts to default style options that are managed by Amazon Cognito. You can modify them later in
|
|
2799
|
-
* the branding
|
|
3175
|
+
* the branding editor.</p>
|
|
2800
3176
|
* <p>When you specify <code>true</code> for this option, you must also omit values for
|
|
2801
3177
|
* <code>Settings</code> and <code>Assets</code> in the request.</p>
|
|
2802
3178
|
* @public
|
|
@@ -2805,6 +3181,30 @@ export interface UpdateManagedLoginBrandingRequest {
|
|
|
2805
3181
|
/**
|
|
2806
3182
|
* <p>A JSON file, encoded as a <code>Document</code> type, with the the settings that you
|
|
2807
3183
|
* want to apply to your style.</p>
|
|
3184
|
+
* <p>The following components are not currently implemented and reserved for future
|
|
3185
|
+
* use:</p>
|
|
3186
|
+
* <ul>
|
|
3187
|
+
* <li>
|
|
3188
|
+
* <p>
|
|
3189
|
+
* <code>signUp</code>
|
|
3190
|
+
* </p>
|
|
3191
|
+
* </li>
|
|
3192
|
+
* <li>
|
|
3193
|
+
* <p>
|
|
3194
|
+
* <code>instructions</code>
|
|
3195
|
+
* </p>
|
|
3196
|
+
* </li>
|
|
3197
|
+
* <li>
|
|
3198
|
+
* <p>
|
|
3199
|
+
* <code>sessionTimerDisplay</code>
|
|
3200
|
+
* </p>
|
|
3201
|
+
* </li>
|
|
3202
|
+
* <li>
|
|
3203
|
+
* <p>
|
|
3204
|
+
* <code>languageSelector</code> (for localization, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managed-login.html#managed-login-localization">Managed login localization)</a>
|
|
3205
|
+
* </p>
|
|
3206
|
+
* </li>
|
|
3207
|
+
* </ul>
|
|
2808
3208
|
* @public
|
|
2809
3209
|
*/
|
|
2810
3210
|
Settings?: __DocumentType | undefined;
|
|
@@ -2868,6 +3268,55 @@ export interface UpdateResourceServerResponse {
|
|
|
2868
3268
|
*/
|
|
2869
3269
|
ResourceServer: ResourceServerType | undefined;
|
|
2870
3270
|
}
|
|
3271
|
+
/**
|
|
3272
|
+
* @public
|
|
3273
|
+
*/
|
|
3274
|
+
export interface UpdateTermsRequest {
|
|
3275
|
+
/**
|
|
3276
|
+
* <p>The ID of the terms document that you want to update.</p>
|
|
3277
|
+
* @public
|
|
3278
|
+
*/
|
|
3279
|
+
TermsId: string | undefined;
|
|
3280
|
+
/**
|
|
3281
|
+
* <p>The ID of the user pool that contains the terms that you want to update.</p>
|
|
3282
|
+
* @public
|
|
3283
|
+
*/
|
|
3284
|
+
UserPoolId: string | undefined;
|
|
3285
|
+
/**
|
|
3286
|
+
* <p>The new name that you want to apply to the requested terms documents.</p>
|
|
3287
|
+
* @public
|
|
3288
|
+
*/
|
|
3289
|
+
TermsName?: string | undefined;
|
|
3290
|
+
/**
|
|
3291
|
+
* <p>This parameter is reserved for future use and currently accepts only one value.</p>
|
|
3292
|
+
* @public
|
|
3293
|
+
*/
|
|
3294
|
+
TermsSource?: TermsSourceType | undefined;
|
|
3295
|
+
/**
|
|
3296
|
+
* <p>This parameter is reserved for future use and currently accepts only one value.</p>
|
|
3297
|
+
* @public
|
|
3298
|
+
*/
|
|
3299
|
+
Enforcement?: TermsEnforcementType | undefined;
|
|
3300
|
+
/**
|
|
3301
|
+
* <p>A map of URLs to languages. For each localized language that will view the requested
|
|
3302
|
+
* <code>TermsName</code>, assign a URL. A selection of <code>cognito:default</code>
|
|
3303
|
+
* displays for all languages that don't have a language-specific URL.</p>
|
|
3304
|
+
* <p>For example, <code>"cognito:default": "https://terms.example.com", "cognito:spanish":
|
|
3305
|
+
* "https://terms.example.com/es"</code>.</p>
|
|
3306
|
+
* @public
|
|
3307
|
+
*/
|
|
3308
|
+
Links?: Record<string, string> | undefined;
|
|
3309
|
+
}
|
|
3310
|
+
/**
|
|
3311
|
+
* @public
|
|
3312
|
+
*/
|
|
3313
|
+
export interface UpdateTermsResponse {
|
|
3314
|
+
/**
|
|
3315
|
+
* <p>A summary of the updates to your terms documents.</p>
|
|
3316
|
+
* @public
|
|
3317
|
+
*/
|
|
3318
|
+
Terms?: TermsType | undefined;
|
|
3319
|
+
}
|
|
2871
3320
|
/**
|
|
2872
3321
|
* <p>Represents the request to update user attributes.</p>
|
|
2873
3322
|
* @public
|
|
@@ -3505,7 +3954,7 @@ export interface UpdateUserPoolDomainRequest {
|
|
|
3505
3954
|
/**
|
|
3506
3955
|
* <p>A version number that indicates the state of managed login for your domain. Version
|
|
3507
3956
|
* <code>1</code> is hosted UI (classic). Version <code>2</code> is the newer managed
|
|
3508
|
-
* login with the branding
|
|
3957
|
+
* login with the branding editor. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managed-login.html">Managed login</a>.</p>
|
|
3509
3958
|
* @public
|
|
3510
3959
|
*/
|
|
3511
3960
|
ManagedLoginVersion?: number | undefined;
|
|
@@ -3530,7 +3979,7 @@ export interface UpdateUserPoolDomainResponse {
|
|
|
3530
3979
|
/**
|
|
3531
3980
|
* <p>A version number that indicates the state of managed login for your domain. Version
|
|
3532
3981
|
* <code>1</code> is hosted UI (classic). Version <code>2</code> is the newer managed
|
|
3533
|
-
* login with the branding
|
|
3982
|
+
* login with the branding editor. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managed-login.html">Managed login</a>.</p>
|
|
3534
3983
|
* @public
|
|
3535
3984
|
*/
|
|
3536
3985
|
ManagedLoginVersion?: number | undefined;
|
|
@@ -3643,6 +4092,34 @@ export interface VerifyUserAttributeRequest {
|
|
|
3643
4092
|
*/
|
|
3644
4093
|
export interface VerifyUserAttributeResponse {
|
|
3645
4094
|
}
|
|
4095
|
+
/**
|
|
4096
|
+
* @internal
|
|
4097
|
+
*/
|
|
4098
|
+
export declare const GetTokensFromRefreshTokenResponseFilterSensitiveLog: (obj: GetTokensFromRefreshTokenResponse) => any;
|
|
4099
|
+
/**
|
|
4100
|
+
* @internal
|
|
4101
|
+
*/
|
|
4102
|
+
export declare const GetUICustomizationRequestFilterSensitiveLog: (obj: GetUICustomizationRequest) => any;
|
|
4103
|
+
/**
|
|
4104
|
+
* @internal
|
|
4105
|
+
*/
|
|
4106
|
+
export declare const UICustomizationTypeFilterSensitiveLog: (obj: UICustomizationType) => any;
|
|
4107
|
+
/**
|
|
4108
|
+
* @internal
|
|
4109
|
+
*/
|
|
4110
|
+
export declare const GetUICustomizationResponseFilterSensitiveLog: (obj: GetUICustomizationResponse) => any;
|
|
4111
|
+
/**
|
|
4112
|
+
* @internal
|
|
4113
|
+
*/
|
|
4114
|
+
export declare const GetUserRequestFilterSensitiveLog: (obj: GetUserRequest) => any;
|
|
4115
|
+
/**
|
|
4116
|
+
* @internal
|
|
4117
|
+
*/
|
|
4118
|
+
export declare const GetUserResponseFilterSensitiveLog: (obj: GetUserResponse) => any;
|
|
4119
|
+
/**
|
|
4120
|
+
* @internal
|
|
4121
|
+
*/
|
|
4122
|
+
export declare const GetUserAttributeVerificationCodeRequestFilterSensitiveLog: (obj: GetUserAttributeVerificationCodeRequest) => any;
|
|
3646
4123
|
/**
|
|
3647
4124
|
* @internal
|
|
3648
4125
|
*/
|
|
@@ -3751,6 +4228,10 @@ export declare const UpdateAuthEventFeedbackRequestFilterSensitiveLog: (obj: Upd
|
|
|
3751
4228
|
* @internal
|
|
3752
4229
|
*/
|
|
3753
4230
|
export declare const UpdateDeviceStatusRequestFilterSensitiveLog: (obj: UpdateDeviceStatusRequest) => any;
|
|
4231
|
+
/**
|
|
4232
|
+
* @internal
|
|
4233
|
+
*/
|
|
4234
|
+
export declare const UpdateTermsResponseFilterSensitiveLog: (obj: UpdateTermsResponse) => any;
|
|
3754
4235
|
/**
|
|
3755
4236
|
* @internal
|
|
3756
4237
|
*/
|