@aws-sdk/client-cognito-identity-provider 3.1120.0 → 3.1122.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 +14 -0
- package/dist-cjs/index.js +58 -1
- package/dist-es/CognitoIdentityProvider.js +4 -0
- package/dist-es/commands/DescribeTermsByClientCommand.js +4 -0
- package/dist-es/commands/GetClientTokenCommand.js +4 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +40 -0
- package/dist-types/CognitoIdentityProvider.d.ts +14 -0
- package/dist-types/CognitoIdentityProviderClient.d.ts +4 -2
- package/dist-types/commands/DescribeTermsByClientCommand.d.ts +134 -0
- package/dist-types/commands/GetClientTokenCommand.d.ts +144 -0
- package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +2 -1
- package/dist-types/commands/SetUserSettingsCommand.d.ts +1 -1
- package/dist-types/commands/SignUpCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +122 -203
- package/dist-types/models/models_1.d.ts +204 -1
- package/dist-types/schemas/schemas_0.d.ts +7 -0
- package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +34 -0
- package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/DescribeTermsByClientCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetClientTokenCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/SetUserPoolMfaConfigCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/SetUserSettingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SignUpCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -29
- package/dist-types/ts3.4/models/models_1.d.ts +36 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,6 +1,209 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
2
|
import type { DeletionProtectionType, DeviceRememberedStatusType, ExplicitAuthFlowsType, FeedbackValueType, OAuthFlowType, PreventUserExistenceErrorTypes, TermsEnforcementType, TermsSourceType, UpdateReplicaStatusType, UserPoolMfaType, UserPoolTierType, VerifiedAttributeType, VerifySoftwareTokenResponseType } from "./enums";
|
|
3
|
-
import type { AccountRecoverySettingType, AdminCreateUserConfigType, AnalyticsConfigurationType, AssetType, AttributeType, CodeDeliveryDetailsType, CustomDomainConfigType, DeviceConfigurationType, EmailConfigurationType, GroupType, IdentityProviderType, IssuerConfigurationType, KeyConfigurationType, LambdaConfigType, LimitDefinitionType, LimitType, ManagedLoginBrandingType, RefreshTokenRotationType, ResourceServerScopeType, ResourceServerType, RoutingType, SmsConfigurationType, TermsType, TokenValidityUnitsType, UserAttributeUpdateSettingsType, UserImportJobType, UserPoolAddOnsType, UserPoolClientType, UserPoolPolicyType, UserPoolReplicaType, VerificationMessageTemplateType } from "./models_0";
|
|
3
|
+
import type { AccountRecoverySettingType, AdminCreateUserConfigType, AnalyticsConfigurationType, AnalyticsMetadataType, AssetType, AttributeType, CodeDeliveryDetailsType, CustomDomainConfigType, DeviceConfigurationType, EmailConfigurationType, EmailMfaConfigType, GroupType, IdentityProviderType, IssuerConfigurationType, KeyConfigurationType, LambdaConfigType, LimitDefinitionType, LimitType, ManagedLoginBrandingType, MFAOptionType, RefreshTokenRotationType, ResourceServerScopeType, ResourceServerType, RoutingType, SmsConfigurationType, SmsMfaConfigType, SoftwareTokenMfaConfigType, TermsType, TokenValidityUnitsType, UserAttributeUpdateSettingsType, UserContextDataType, UserImportJobType, UserPoolAddOnsType, UserPoolClientType, UserPoolPolicyType, UserPoolReplicaType, VerificationMessageTemplateType, WebAuthnConfigurationType } from "./models_0";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface SetUserPoolMfaConfigResponse {
|
|
8
|
+
/**
|
|
9
|
+
* <p>Shows user pool SMS message configuration for MFA and sign-in with SMS-message OTPs.
|
|
10
|
+
* Includes the message template and the SMS message sending configuration for
|
|
11
|
+
* Amazon SNS.</p>
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
SmsMfaConfiguration?: SmsMfaConfigType | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* <p>Shows user pool configuration for time-based one-time password (TOTP) MFA. Includes
|
|
17
|
+
* TOTP enabled or disabled state.</p>
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
SoftwareTokenMfaConfiguration?: SoftwareTokenMfaConfigType | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* <p>Shows configuration for user pool email message MFA and sign-in with one-time
|
|
23
|
+
* passwords (OTPs). Includes the subject and body of the email message template for
|
|
24
|
+
* sign-in and MFA messages. To activate this setting, your user pool must be in the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-essentials.html">
|
|
25
|
+
* Essentials tier</a> or higher.</p>
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
EmailMfaConfiguration?: EmailMfaConfigType | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* <p>Displays multi-factor authentication (MFA) as on, off, or optional. When
|
|
31
|
+
* <code>ON</code>, all users must set up MFA before they can sign in. When
|
|
32
|
+
* <code>OPTIONAL</code>, your application must make a client-side determination of
|
|
33
|
+
* whether a user wants to register an MFA device. For user pools with adaptive
|
|
34
|
+
* authentication with threat protection, choose <code>OPTIONAL</code>.</p>
|
|
35
|
+
* <p>When <code>MfaConfiguration</code> is <code>OPTIONAL</code>, managed login
|
|
36
|
+
* doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in
|
|
37
|
+
* API responses and in managed login for users who have chosen and configured a preferred
|
|
38
|
+
* MFA factor.</p>
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
MfaConfiguration?: UserPoolMfaType | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* <p>The configuration of your user pool for passkey, or WebAuthn, sign-in with
|
|
44
|
+
* authenticators such as biometric and security-key devices. Includes relying-party
|
|
45
|
+
* configuration and settings for user-verification requirements.</p>
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
WebAuthnConfiguration?: WebAuthnConfigurationType | undefined;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* <p>Represents the request to set user settings.</p>
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
export interface SetUserSettingsRequest {
|
|
55
|
+
/**
|
|
56
|
+
* <p>A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for
|
|
57
|
+
* <code>aws.cognito.signin.user.admin</code>.</p>
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
AccessToken: string | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* <p>You can use this parameter only to set an SMS configuration that uses SMS for
|
|
63
|
+
* delivery.</p>
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
MFAOptions: MFAOptionType[] | undefined;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* <p>The response from the server for a set user settings request.</p>
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export interface SetUserSettingsResponse {
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* <p>Represents the request to register a user.</p>
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
export interface SignUpRequest {
|
|
79
|
+
/**
|
|
80
|
+
* <p>The ID of the app client where the user wants to sign up.</p>
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
ClientId: string | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* <p>A keyed-hash message authentication code (HMAC) calculated using the secret key of a
|
|
86
|
+
* user pool client and username plus the client ID in the message. For more information
|
|
87
|
+
* about <code>SecretHash</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>.</p>
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
SecretHash?: string | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* <p>The username of the user that you want to sign up. The value of this parameter is
|
|
93
|
+
* typically a username, but can be any alias attribute in your user pool.</p>
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
Username: string | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* <p>The user's proposed password. The password must comply with the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/managing-users-passwords.html">password requirements</a> of your user pool.</p>
|
|
99
|
+
* <p>Users can sign up without a password when your user pool supports passwordless sign-in
|
|
100
|
+
* with email or SMS OTPs. To create a user with no password, omit this parameter or submit
|
|
101
|
+
* a blank value. You can only create a passwordless user when passwordless sign-in is
|
|
102
|
+
* available.</p>
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
Password?: string | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* <p>An array of name-value pairs representing user attributes.</p>
|
|
108
|
+
* <p>For custom attributes, include a <code>custom:</code> prefix in the attribute name,
|
|
109
|
+
* for example <code>custom:department</code>.</p>
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
UserAttributes?: AttributeType[] | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* <p>Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda
|
|
115
|
+
* trigger. This set of key-value pairs are for custom validation of information that you
|
|
116
|
+
* collect from your users but don't need to retain.</p>
|
|
117
|
+
* <p>Your Lambda function can analyze this additional data and act on it. Your function
|
|
118
|
+
* can automatically confirm and verify select users or perform external API operations
|
|
119
|
+
* like logging user attributes and validation data to Amazon CloudWatch Logs.</p>
|
|
120
|
+
* <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>
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
ValidationData?: AttributeType[] | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* <p>Information that supports analytics outcomes with Amazon Pinpoint, including the
|
|
126
|
+
* user's endpoint ID. The endpoint ID is a destination for Amazon Pinpoint push notifications, for example a device identifier,
|
|
127
|
+
* email address, or phone number.</p>
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
AnalyticsMetadata?: AnalyticsMetadataType | undefined;
|
|
131
|
+
/**
|
|
132
|
+
* <p>Contextual data about your user session like the device fingerprint, IP address, or location. Amazon Cognito threat
|
|
133
|
+
* protection evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito
|
|
134
|
+
* when it makes API requests.</p>
|
|
135
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-viewing-threat-protection-app.html">Collecting data for threat protection in
|
|
136
|
+
* applications</a>.</p>
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
UserContextData?: UserContextDataType | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* <p>A map of custom key-value pairs that you can provide as input for any custom workflows
|
|
142
|
+
* that this action triggers. You create custom workflows by assigning Lambda functions
|
|
143
|
+
* to user pool triggers.</p>
|
|
144
|
+
* <p>When Amazon Cognito invokes any of these functions, it passes a JSON payload, which the
|
|
145
|
+
* function receives as input. This payload contains a <code>clientMetadata</code>
|
|
146
|
+
* attribute that provides the data that you assigned to the ClientMetadata parameter in
|
|
147
|
+
* your request. In your function code, you can process the <code>clientMetadata</code>
|
|
148
|
+
* value to enhance your workflow for your specific needs.</p>
|
|
149
|
+
* <p>To review the Lambda trigger types that Amazon Cognito invokes at runtime with API requests, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html#lambda-triggers-by-event">
|
|
150
|
+
* Connecting API actions to Lambda triggers</a> in the <i>Amazon Cognito Developer Guide</i>.</p>
|
|
151
|
+
* <note>
|
|
152
|
+
* <p>When you use the <code>ClientMetadata</code> parameter, note that Amazon Cognito won't do the
|
|
153
|
+
* following:</p>
|
|
154
|
+
* <ul>
|
|
155
|
+
* <li>
|
|
156
|
+
* <p>Store the <code>ClientMetadata</code> value. This data is available only
|
|
157
|
+
* to Lambda triggers that are assigned to a user pool to support custom
|
|
158
|
+
* workflows. If your user pool configuration doesn't include triggers, the
|
|
159
|
+
* <code>ClientMetadata</code> parameter serves no purpose.</p>
|
|
160
|
+
* </li>
|
|
161
|
+
* <li>
|
|
162
|
+
* <p>Validate the <code>ClientMetadata</code> value.</p>
|
|
163
|
+
* </li>
|
|
164
|
+
* <li>
|
|
165
|
+
* <p>Encrypt the <code>ClientMetadata</code> value. Don't send sensitive
|
|
166
|
+
* information in this parameter.</p>
|
|
167
|
+
* </li>
|
|
168
|
+
* </ul>
|
|
169
|
+
* </note>
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
ClientMetadata?: Record<string, string> | undefined;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* <p>The response from the server for a registration request.</p>
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
export interface SignUpResponse {
|
|
179
|
+
/**
|
|
180
|
+
* <p>Indicates whether the user was automatically confirmed. You can auto-confirm users
|
|
181
|
+
* with a <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html">pre sign-up Lambda trigger</a>.</p>
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
UserConfirmed: boolean | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* <p>In user pools that automatically verify and confirm new users, Amazon Cognito sends users a
|
|
187
|
+
* message with a code or link that confirms ownership of the phone number or email address
|
|
188
|
+
* that they entered. The <code>CodeDeliveryDetails</code> object is information about the
|
|
189
|
+
* delivery destination for that link or code.</p>
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
CodeDeliveryDetails?: CodeDeliveryDetailsType | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* <p>The unique identifier of the new user, for example
|
|
195
|
+
* <code>a1b2c3d4-5678-90ab-cdef-EXAMPLE11111</code>.</p>
|
|
196
|
+
* @public
|
|
197
|
+
*/
|
|
198
|
+
UserSub: string | undefined;
|
|
199
|
+
/**
|
|
200
|
+
* <p>A session Id that you can pass to <code>ConfirmSignUp</code> when you want to
|
|
201
|
+
* immediately sign in your user with the <code>USER_AUTH</code> flow after they complete
|
|
202
|
+
* sign-up.</p>
|
|
203
|
+
* @public
|
|
204
|
+
*/
|
|
205
|
+
Session?: string | undefined;
|
|
206
|
+
}
|
|
4
207
|
/**
|
|
5
208
|
* <p>Represents the request to start the user import job.</p>
|
|
6
209
|
* @public
|
|
@@ -139,6 +139,7 @@ export declare var AuthEventType$: StaticStructureSchema;
|
|
|
139
139
|
export declare var ChallengeResponseType$: StaticStructureSchema;
|
|
140
140
|
export declare var ChangePasswordRequest$: StaticStructureSchema;
|
|
141
141
|
export declare var ChangePasswordResponse$: StaticStructureSchema;
|
|
142
|
+
export declare var ClientAuthenticationResultType$: StaticStructureSchema;
|
|
142
143
|
export declare var ClientSecretDescriptorType$: StaticStructureSchema;
|
|
143
144
|
export declare var CloudWatchLogsConfigurationType$: StaticStructureSchema;
|
|
144
145
|
export declare var CodeDeliveryDetailsType$: StaticStructureSchema;
|
|
@@ -204,6 +205,8 @@ export declare var DescribeResourceServerRequest$: StaticStructureSchema;
|
|
|
204
205
|
export declare var DescribeResourceServerResponse$: StaticStructureSchema;
|
|
205
206
|
export declare var DescribeRiskConfigurationRequest$: StaticStructureSchema;
|
|
206
207
|
export declare var DescribeRiskConfigurationResponse$: StaticStructureSchema;
|
|
208
|
+
export declare var DescribeTermsByClientRequest$: StaticStructureSchema;
|
|
209
|
+
export declare var DescribeTermsByClientResponse$: StaticStructureSchema;
|
|
207
210
|
export declare var DescribeTermsRequest$: StaticStructureSchema;
|
|
208
211
|
export declare var DescribeTermsResponse$: StaticStructureSchema;
|
|
209
212
|
export declare var DescribeUserImportJobRequest$: StaticStructureSchema;
|
|
@@ -230,6 +233,8 @@ export declare var FirehoseConfigurationType$: StaticStructureSchema;
|
|
|
230
233
|
export declare var ForgetDeviceRequest$: StaticStructureSchema;
|
|
231
234
|
export declare var ForgotPasswordRequest$: StaticStructureSchema;
|
|
232
235
|
export declare var ForgotPasswordResponse$: StaticStructureSchema;
|
|
236
|
+
export declare var GetClientTokenRequest$: StaticStructureSchema;
|
|
237
|
+
export declare var GetClientTokenResponse$: StaticStructureSchema;
|
|
233
238
|
export declare var GetCSVHeaderRequest$: StaticStructureSchema;
|
|
234
239
|
export declare var GetCSVHeaderResponse$: StaticStructureSchema;
|
|
235
240
|
export declare var GetDeviceRequest$: StaticStructureSchema;
|
|
@@ -471,12 +476,14 @@ export declare var DescribeManagedLoginBrandingByClient$: StaticOperationSchema;
|
|
|
471
476
|
export declare var DescribeResourceServer$: StaticOperationSchema;
|
|
472
477
|
export declare var DescribeRiskConfiguration$: StaticOperationSchema;
|
|
473
478
|
export declare var DescribeTerms$: StaticOperationSchema;
|
|
479
|
+
export declare var DescribeTermsByClient$: StaticOperationSchema;
|
|
474
480
|
export declare var DescribeUserImportJob$: StaticOperationSchema;
|
|
475
481
|
export declare var DescribeUserPool$: StaticOperationSchema;
|
|
476
482
|
export declare var DescribeUserPoolClient$: StaticOperationSchema;
|
|
477
483
|
export declare var DescribeUserPoolDomain$: StaticOperationSchema;
|
|
478
484
|
export declare var ForgetDevice$: StaticOperationSchema;
|
|
479
485
|
export declare var ForgotPassword$: StaticOperationSchema;
|
|
486
|
+
export declare var GetClientToken$: StaticOperationSchema;
|
|
480
487
|
export declare var GetCSVHeader$: StaticOperationSchema;
|
|
481
488
|
export declare var GetDevice$: StaticOperationSchema;
|
|
482
489
|
export declare var GetGroup$: StaticOperationSchema;
|
|
@@ -245,6 +245,10 @@ import {
|
|
|
245
245
|
DescribeRiskConfigurationCommandInput,
|
|
246
246
|
DescribeRiskConfigurationCommandOutput,
|
|
247
247
|
} from "./commands/DescribeRiskConfigurationCommand";
|
|
248
|
+
import {
|
|
249
|
+
DescribeTermsByClientCommandInput,
|
|
250
|
+
DescribeTermsByClientCommandOutput,
|
|
251
|
+
} from "./commands/DescribeTermsByClientCommand";
|
|
248
252
|
import {
|
|
249
253
|
DescribeTermsCommandInput,
|
|
250
254
|
DescribeTermsCommandOutput,
|
|
@@ -273,6 +277,10 @@ import {
|
|
|
273
277
|
ForgotPasswordCommandInput,
|
|
274
278
|
ForgotPasswordCommandOutput,
|
|
275
279
|
} from "./commands/ForgotPasswordCommand";
|
|
280
|
+
import {
|
|
281
|
+
GetClientTokenCommandInput,
|
|
282
|
+
GetClientTokenCommandOutput,
|
|
283
|
+
} from "./commands/GetClientTokenCommand";
|
|
276
284
|
import {
|
|
277
285
|
GetCSVHeaderCommandInput,
|
|
278
286
|
GetCSVHeaderCommandOutput,
|
|
@@ -1320,6 +1328,19 @@ export interface CognitoIdentityProvider {
|
|
|
1320
1328
|
options: __HttpHandlerOptions,
|
|
1321
1329
|
cb: (err: any, data?: DescribeTermsCommandOutput) => void,
|
|
1322
1330
|
): void;
|
|
1331
|
+
describeTermsByClient(
|
|
1332
|
+
args: DescribeTermsByClientCommandInput,
|
|
1333
|
+
options?: __HttpHandlerOptions,
|
|
1334
|
+
): Promise<DescribeTermsByClientCommandOutput>;
|
|
1335
|
+
describeTermsByClient(
|
|
1336
|
+
args: DescribeTermsByClientCommandInput,
|
|
1337
|
+
cb: (err: any, data?: DescribeTermsByClientCommandOutput) => void,
|
|
1338
|
+
): void;
|
|
1339
|
+
describeTermsByClient(
|
|
1340
|
+
args: DescribeTermsByClientCommandInput,
|
|
1341
|
+
options: __HttpHandlerOptions,
|
|
1342
|
+
cb: (err: any, data?: DescribeTermsByClientCommandOutput) => void,
|
|
1343
|
+
): void;
|
|
1323
1344
|
describeUserImportJob(
|
|
1324
1345
|
args: DescribeUserImportJobCommandInput,
|
|
1325
1346
|
options?: __HttpHandlerOptions,
|
|
@@ -1398,6 +1419,19 @@ export interface CognitoIdentityProvider {
|
|
|
1398
1419
|
options: __HttpHandlerOptions,
|
|
1399
1420
|
cb: (err: any, data?: ForgotPasswordCommandOutput) => void,
|
|
1400
1421
|
): void;
|
|
1422
|
+
getClientToken(
|
|
1423
|
+
args: GetClientTokenCommandInput,
|
|
1424
|
+
options?: __HttpHandlerOptions,
|
|
1425
|
+
): Promise<GetClientTokenCommandOutput>;
|
|
1426
|
+
getClientToken(
|
|
1427
|
+
args: GetClientTokenCommandInput,
|
|
1428
|
+
cb: (err: any, data?: GetClientTokenCommandOutput) => void,
|
|
1429
|
+
): void;
|
|
1430
|
+
getClientToken(
|
|
1431
|
+
args: GetClientTokenCommandInput,
|
|
1432
|
+
options: __HttpHandlerOptions,
|
|
1433
|
+
cb: (err: any, data?: GetClientTokenCommandOutput) => void,
|
|
1434
|
+
): void;
|
|
1401
1435
|
getCSVHeader(
|
|
1402
1436
|
args: GetCSVHeaderCommandInput,
|
|
1403
1437
|
options?: __HttpHandlerOptions,
|
|
@@ -274,6 +274,10 @@ import {
|
|
|
274
274
|
DescribeRiskConfigurationCommandInput,
|
|
275
275
|
DescribeRiskConfigurationCommandOutput,
|
|
276
276
|
} from "./commands/DescribeRiskConfigurationCommand";
|
|
277
|
+
import {
|
|
278
|
+
DescribeTermsByClientCommandInput,
|
|
279
|
+
DescribeTermsByClientCommandOutput,
|
|
280
|
+
} from "./commands/DescribeTermsByClientCommand";
|
|
277
281
|
import {
|
|
278
282
|
DescribeTermsCommandInput,
|
|
279
283
|
DescribeTermsCommandOutput,
|
|
@@ -302,6 +306,10 @@ import {
|
|
|
302
306
|
ForgotPasswordCommandInput,
|
|
303
307
|
ForgotPasswordCommandOutput,
|
|
304
308
|
} from "./commands/ForgotPasswordCommand";
|
|
309
|
+
import {
|
|
310
|
+
GetClientTokenCommandInput,
|
|
311
|
+
GetClientTokenCommandOutput,
|
|
312
|
+
} from "./commands/GetClientTokenCommand";
|
|
305
313
|
import {
|
|
306
314
|
GetCSVHeaderCommandInput,
|
|
307
315
|
GetCSVHeaderCommandOutput,
|
|
@@ -574,6 +582,7 @@ export type ServiceInputTypes =
|
|
|
574
582
|
| DescribeManagedLoginBrandingCommandInput
|
|
575
583
|
| DescribeResourceServerCommandInput
|
|
576
584
|
| DescribeRiskConfigurationCommandInput
|
|
585
|
+
| DescribeTermsByClientCommandInput
|
|
577
586
|
| DescribeTermsCommandInput
|
|
578
587
|
| DescribeUserImportJobCommandInput
|
|
579
588
|
| DescribeUserPoolClientCommandInput
|
|
@@ -582,6 +591,7 @@ export type ServiceInputTypes =
|
|
|
582
591
|
| ForgetDeviceCommandInput
|
|
583
592
|
| ForgotPasswordCommandInput
|
|
584
593
|
| GetCSVHeaderCommandInput
|
|
594
|
+
| GetClientTokenCommandInput
|
|
585
595
|
| GetDeviceCommandInput
|
|
586
596
|
| GetGroupCommandInput
|
|
587
597
|
| GetIdentityProviderByIdentifierCommandInput
|
|
@@ -705,6 +715,7 @@ export type ServiceOutputTypes =
|
|
|
705
715
|
| DescribeManagedLoginBrandingCommandOutput
|
|
706
716
|
| DescribeResourceServerCommandOutput
|
|
707
717
|
| DescribeRiskConfigurationCommandOutput
|
|
718
|
+
| DescribeTermsByClientCommandOutput
|
|
708
719
|
| DescribeTermsCommandOutput
|
|
709
720
|
| DescribeUserImportJobCommandOutput
|
|
710
721
|
| DescribeUserPoolClientCommandOutput
|
|
@@ -713,6 +724,7 @@ export type ServiceOutputTypes =
|
|
|
713
724
|
| ForgetDeviceCommandOutput
|
|
714
725
|
| ForgotPasswordCommandOutput
|
|
715
726
|
| GetCSVHeaderCommandOutput
|
|
727
|
+
| GetClientTokenCommandOutput
|
|
716
728
|
| GetDeviceCommandOutput
|
|
717
729
|
| GetGroupCommandOutput
|
|
718
730
|
| GetIdentityProviderByIdentifierCommandOutput
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import { DescribeTermsByClientRequest, DescribeTermsByClientResponse } from "../models/models_0";
|
|
3
|
+
export { __MetadataBearer };
|
|
4
|
+
export interface DescribeTermsByClientCommandInput extends DescribeTermsByClientRequest {}
|
|
5
|
+
export interface DescribeTermsByClientCommandOutput
|
|
6
|
+
extends DescribeTermsByClientResponse, __MetadataBearer {}
|
|
7
|
+
declare const DescribeTermsByClientCommand_base: {
|
|
8
|
+
new (
|
|
9
|
+
input: DescribeTermsByClientCommandInput,
|
|
10
|
+
): import("@smithy/core/client").CommandImpl<
|
|
11
|
+
DescribeTermsByClientCommandInput,
|
|
12
|
+
DescribeTermsByClientCommandOutput,
|
|
13
|
+
import("..").CognitoIdentityProviderClientResolvedConfig,
|
|
14
|
+
import("..").ServiceInputTypes,
|
|
15
|
+
import("..").ServiceOutputTypes
|
|
16
|
+
>;
|
|
17
|
+
new (
|
|
18
|
+
input: DescribeTermsByClientCommandInput,
|
|
19
|
+
): import("@smithy/core/client").CommandImpl<
|
|
20
|
+
DescribeTermsByClientCommandInput,
|
|
21
|
+
DescribeTermsByClientCommandOutput,
|
|
22
|
+
import("..").CognitoIdentityProviderClientResolvedConfig,
|
|
23
|
+
import("..").ServiceInputTypes,
|
|
24
|
+
import("..").ServiceOutputTypes
|
|
25
|
+
>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
export declare class DescribeTermsByClientCommand extends DescribeTermsByClientCommand_base {
|
|
29
|
+
protected static __types: {
|
|
30
|
+
api: {
|
|
31
|
+
input: DescribeTermsByClientRequest;
|
|
32
|
+
output: DescribeTermsByClientResponse;
|
|
33
|
+
};
|
|
34
|
+
sdk: {
|
|
35
|
+
input: DescribeTermsByClientCommandInput;
|
|
36
|
+
output: DescribeTermsByClientCommandOutput;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import { GetClientTokenRequest, GetClientTokenResponse } from "../models/models_0";
|
|
3
|
+
export { __MetadataBearer };
|
|
4
|
+
export interface GetClientTokenCommandInput extends GetClientTokenRequest {}
|
|
5
|
+
export interface GetClientTokenCommandOutput extends GetClientTokenResponse, __MetadataBearer {}
|
|
6
|
+
declare const GetClientTokenCommand_base: {
|
|
7
|
+
new (
|
|
8
|
+
input: GetClientTokenCommandInput,
|
|
9
|
+
): import("@smithy/core/client").CommandImpl<
|
|
10
|
+
GetClientTokenCommandInput,
|
|
11
|
+
GetClientTokenCommandOutput,
|
|
12
|
+
import("..").CognitoIdentityProviderClientResolvedConfig,
|
|
13
|
+
import("..").ServiceInputTypes,
|
|
14
|
+
import("..").ServiceOutputTypes
|
|
15
|
+
>;
|
|
16
|
+
new (
|
|
17
|
+
input: GetClientTokenCommandInput,
|
|
18
|
+
): import("@smithy/core/client").CommandImpl<
|
|
19
|
+
GetClientTokenCommandInput,
|
|
20
|
+
GetClientTokenCommandOutput,
|
|
21
|
+
import("..").CognitoIdentityProviderClientResolvedConfig,
|
|
22
|
+
import("..").ServiceInputTypes,
|
|
23
|
+
import("..").ServiceOutputTypes
|
|
24
|
+
>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
export declare class GetClientTokenCommand extends GetClientTokenCommand_base {
|
|
28
|
+
protected static __types: {
|
|
29
|
+
api: {
|
|
30
|
+
input: GetClientTokenRequest;
|
|
31
|
+
output: GetClientTokenResponse;
|
|
32
|
+
};
|
|
33
|
+
sdk: {
|
|
34
|
+
input: GetClientTokenCommandInput;
|
|
35
|
+
output: GetClientTokenCommandOutput;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import { SetUserPoolMfaConfigRequest
|
|
2
|
+
import { SetUserPoolMfaConfigRequest } from "../models/models_0";
|
|
3
|
+
import { SetUserPoolMfaConfigResponse } from "../models/models_1";
|
|
3
4
|
export { __MetadataBearer };
|
|
4
5
|
export interface SetUserPoolMfaConfigCommandInput extends SetUserPoolMfaConfigRequest {}
|
|
5
6
|
export interface SetUserPoolMfaConfigCommandOutput
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import { SetUserSettingsRequest, SetUserSettingsResponse } from "../models/
|
|
2
|
+
import { SetUserSettingsRequest, SetUserSettingsResponse } from "../models/models_1";
|
|
3
3
|
export { __MetadataBearer };
|
|
4
4
|
export interface SetUserSettingsCommandInput extends SetUserSettingsRequest {}
|
|
5
5
|
export interface SetUserSettingsCommandOutput extends SetUserSettingsResponse, __MetadataBearer {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import { SignUpRequest, SignUpResponse } from "../models/
|
|
2
|
+
import { SignUpRequest, SignUpResponse } from "../models/models_1";
|
|
3
3
|
export { __MetadataBearer };
|
|
4
4
|
export interface SignUpCommandInput extends SignUpRequest {}
|
|
5
5
|
export interface SignUpCommandOutput extends SignUpResponse, __MetadataBearer {}
|
|
@@ -62,6 +62,7 @@ export * from "./DescribeManagedLoginBrandingByClientCommand";
|
|
|
62
62
|
export * from "./DescribeManagedLoginBrandingCommand";
|
|
63
63
|
export * from "./DescribeResourceServerCommand";
|
|
64
64
|
export * from "./DescribeRiskConfigurationCommand";
|
|
65
|
+
export * from "./DescribeTermsByClientCommand";
|
|
65
66
|
export * from "./DescribeTermsCommand";
|
|
66
67
|
export * from "./DescribeUserImportJobCommand";
|
|
67
68
|
export * from "./DescribeUserPoolClientCommand";
|
|
@@ -70,6 +71,7 @@ export * from "./DescribeUserPoolDomainCommand";
|
|
|
70
71
|
export * from "./ForgetDeviceCommand";
|
|
71
72
|
export * from "./ForgotPasswordCommand";
|
|
72
73
|
export * from "./GetCSVHeaderCommand";
|
|
74
|
+
export * from "./GetClientTokenCommand";
|
|
73
75
|
export * from "./GetDeviceCommand";
|
|
74
76
|
export * from "./GetGroupCommand";
|
|
75
77
|
export * from "./GetIdentityProviderByIdentifierCommand";
|
|
@@ -1055,6 +1055,14 @@ export interface DescribeTermsRequest {
|
|
|
1055
1055
|
export interface DescribeTermsResponse {
|
|
1056
1056
|
Terms?: TermsType | undefined;
|
|
1057
1057
|
}
|
|
1058
|
+
export interface DescribeTermsByClientRequest {
|
|
1059
|
+
ClientId: string | undefined;
|
|
1060
|
+
UserPoolId: string | undefined;
|
|
1061
|
+
TermsName: string | undefined;
|
|
1062
|
+
}
|
|
1063
|
+
export interface DescribeTermsByClientResponse {
|
|
1064
|
+
Terms?: TermsType | undefined;
|
|
1065
|
+
}
|
|
1058
1066
|
export interface DescribeUserImportJobRequest {
|
|
1059
1067
|
UserPoolId: string | undefined;
|
|
1060
1068
|
JobId: string | undefined;
|
|
@@ -1113,6 +1121,20 @@ export interface CodeDeliveryDetailsType {
|
|
|
1113
1121
|
export interface ForgotPasswordResponse {
|
|
1114
1122
|
CodeDeliveryDetails?: CodeDeliveryDetailsType | undefined;
|
|
1115
1123
|
}
|
|
1124
|
+
export interface GetClientTokenRequest {
|
|
1125
|
+
ClientId: string | undefined;
|
|
1126
|
+
Secret: string | undefined;
|
|
1127
|
+
Scopes?: string[] | undefined;
|
|
1128
|
+
ClientMetadata?: Record<string, string> | undefined;
|
|
1129
|
+
}
|
|
1130
|
+
export interface ClientAuthenticationResultType {
|
|
1131
|
+
AccessToken?: string | undefined;
|
|
1132
|
+
ExpiresIn?: number | undefined;
|
|
1133
|
+
TokenType?: string | undefined;
|
|
1134
|
+
}
|
|
1135
|
+
export interface GetClientTokenResponse {
|
|
1136
|
+
ClientAuthenticationResult?: ClientAuthenticationResultType | undefined;
|
|
1137
|
+
}
|
|
1116
1138
|
export interface GetCSVHeaderRequest {
|
|
1117
1139
|
UserPoolId: string | undefined;
|
|
1118
1140
|
}
|
|
@@ -1520,32 +1542,3 @@ export interface SetUserPoolMfaConfigRequest {
|
|
|
1520
1542
|
MfaConfiguration?: UserPoolMfaType | undefined;
|
|
1521
1543
|
WebAuthnConfiguration?: WebAuthnConfigurationType | undefined;
|
|
1522
1544
|
}
|
|
1523
|
-
export interface SetUserPoolMfaConfigResponse {
|
|
1524
|
-
SmsMfaConfiguration?: SmsMfaConfigType | undefined;
|
|
1525
|
-
SoftwareTokenMfaConfiguration?: SoftwareTokenMfaConfigType | undefined;
|
|
1526
|
-
EmailMfaConfiguration?: EmailMfaConfigType | undefined;
|
|
1527
|
-
MfaConfiguration?: UserPoolMfaType | undefined;
|
|
1528
|
-
WebAuthnConfiguration?: WebAuthnConfigurationType | undefined;
|
|
1529
|
-
}
|
|
1530
|
-
export interface SetUserSettingsRequest {
|
|
1531
|
-
AccessToken: string | undefined;
|
|
1532
|
-
MFAOptions: MFAOptionType[] | undefined;
|
|
1533
|
-
}
|
|
1534
|
-
export interface SetUserSettingsResponse {}
|
|
1535
|
-
export interface SignUpRequest {
|
|
1536
|
-
ClientId: string | undefined;
|
|
1537
|
-
SecretHash?: string | undefined;
|
|
1538
|
-
Username: string | undefined;
|
|
1539
|
-
Password?: string | undefined;
|
|
1540
|
-
UserAttributes?: AttributeType[] | undefined;
|
|
1541
|
-
ValidationData?: AttributeType[] | undefined;
|
|
1542
|
-
AnalyticsMetadata?: AnalyticsMetadataType | undefined;
|
|
1543
|
-
UserContextData?: UserContextDataType | undefined;
|
|
1544
|
-
ClientMetadata?: Record<string, string> | undefined;
|
|
1545
|
-
}
|
|
1546
|
-
export interface SignUpResponse {
|
|
1547
|
-
UserConfirmed: boolean | undefined;
|
|
1548
|
-
CodeDeliveryDetails?: CodeDeliveryDetailsType | undefined;
|
|
1549
|
-
UserSub: string | undefined;
|
|
1550
|
-
Session?: string | undefined;
|
|
1551
|
-
}
|
|
@@ -18,12 +18,14 @@ import {
|
|
|
18
18
|
AccountRecoverySettingType,
|
|
19
19
|
AdminCreateUserConfigType,
|
|
20
20
|
AnalyticsConfigurationType,
|
|
21
|
+
AnalyticsMetadataType,
|
|
21
22
|
AssetType,
|
|
22
23
|
AttributeType,
|
|
23
24
|
CodeDeliveryDetailsType,
|
|
24
25
|
CustomDomainConfigType,
|
|
25
26
|
DeviceConfigurationType,
|
|
26
27
|
EmailConfigurationType,
|
|
28
|
+
EmailMfaConfigType,
|
|
27
29
|
GroupType,
|
|
28
30
|
IdentityProviderType,
|
|
29
31
|
IssuerConfigurationType,
|
|
@@ -32,21 +34,55 @@ import {
|
|
|
32
34
|
LimitDefinitionType,
|
|
33
35
|
LimitType,
|
|
34
36
|
ManagedLoginBrandingType,
|
|
37
|
+
MFAOptionType,
|
|
35
38
|
RefreshTokenRotationType,
|
|
36
39
|
ResourceServerScopeType,
|
|
37
40
|
ResourceServerType,
|
|
38
41
|
RoutingType,
|
|
39
42
|
SmsConfigurationType,
|
|
43
|
+
SmsMfaConfigType,
|
|
44
|
+
SoftwareTokenMfaConfigType,
|
|
40
45
|
TermsType,
|
|
41
46
|
TokenValidityUnitsType,
|
|
42
47
|
UserAttributeUpdateSettingsType,
|
|
48
|
+
UserContextDataType,
|
|
43
49
|
UserImportJobType,
|
|
44
50
|
UserPoolAddOnsType,
|
|
45
51
|
UserPoolClientType,
|
|
46
52
|
UserPoolPolicyType,
|
|
47
53
|
UserPoolReplicaType,
|
|
48
54
|
VerificationMessageTemplateType,
|
|
55
|
+
WebAuthnConfigurationType,
|
|
49
56
|
} from "./models_0";
|
|
57
|
+
export interface SetUserPoolMfaConfigResponse {
|
|
58
|
+
SmsMfaConfiguration?: SmsMfaConfigType | undefined;
|
|
59
|
+
SoftwareTokenMfaConfiguration?: SoftwareTokenMfaConfigType | undefined;
|
|
60
|
+
EmailMfaConfiguration?: EmailMfaConfigType | undefined;
|
|
61
|
+
MfaConfiguration?: UserPoolMfaType | undefined;
|
|
62
|
+
WebAuthnConfiguration?: WebAuthnConfigurationType | undefined;
|
|
63
|
+
}
|
|
64
|
+
export interface SetUserSettingsRequest {
|
|
65
|
+
AccessToken: string | undefined;
|
|
66
|
+
MFAOptions: MFAOptionType[] | undefined;
|
|
67
|
+
}
|
|
68
|
+
export interface SetUserSettingsResponse {}
|
|
69
|
+
export interface SignUpRequest {
|
|
70
|
+
ClientId: string | undefined;
|
|
71
|
+
SecretHash?: string | undefined;
|
|
72
|
+
Username: string | undefined;
|
|
73
|
+
Password?: string | undefined;
|
|
74
|
+
UserAttributes?: AttributeType[] | undefined;
|
|
75
|
+
ValidationData?: AttributeType[] | undefined;
|
|
76
|
+
AnalyticsMetadata?: AnalyticsMetadataType | undefined;
|
|
77
|
+
UserContextData?: UserContextDataType | undefined;
|
|
78
|
+
ClientMetadata?: Record<string, string> | undefined;
|
|
79
|
+
}
|
|
80
|
+
export interface SignUpResponse {
|
|
81
|
+
UserConfirmed: boolean | undefined;
|
|
82
|
+
CodeDeliveryDetails?: CodeDeliveryDetailsType | undefined;
|
|
83
|
+
UserSub: string | undefined;
|
|
84
|
+
Session?: string | undefined;
|
|
85
|
+
}
|
|
50
86
|
export interface StartUserImportJobRequest {
|
|
51
87
|
UserPoolId: string | undefined;
|
|
52
88
|
JobId: string | undefined;
|