@aws-sdk/client-cognito-identity-provider 3.1093.0 → 3.1095.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 +7 -0
- package/dist-cjs/index.js +32 -7
- package/dist-es/CognitoIdentityProvider.js +2 -0
- package/dist-es/commands/AdminGetUserAuthFactorsCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +7 -6
- package/dist-es/schemas/schemas_0.js +16 -0
- package/dist-types/CognitoIdentityProvider.d.ts +7 -0
- package/dist-types/CognitoIdentityProviderClient.d.ts +3 -2
- package/dist-types/commands/AdminGetUserAuthFactorsCommand.d.ts +133 -0
- package/dist-types/commands/CreateUserPoolCommand.d.ts +2 -2
- package/dist-types/commands/DescribeUserPoolCommand.d.ts +1 -1
- package/dist-types/commands/GetUserAuthFactorsCommand.d.ts +1 -1
- package/dist-types/commands/StartWebAuthnRegistrationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateUserPoolCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +15 -14
- package/dist-types/models/models_0.d.ts +91 -22
- package/dist-types/models/models_1.d.ts +22 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +3 -0
- package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +17 -0
- package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/AdminGetUserAuthFactorsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartWebAuthnRegistrationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +8 -7
- package/dist-types/ts3.4/models/models_0.d.ts +10 -6
- package/dist-types/ts3.4/models/models_1.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -302,6 +302,13 @@ AdminGetUser
|
|
|
302
302
|
</details>
|
|
303
303
|
<details>
|
|
304
304
|
<summary>
|
|
305
|
+
AdminGetUserAuthFactors
|
|
306
|
+
</summary>
|
|
307
|
+
|
|
308
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cognito-identity-provider/command/AdminGetUserAuthFactorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity-provider/Interface/AdminGetUserAuthFactorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cognito-identity-provider/Interface/AdminGetUserAuthFactorsCommandOutput/)
|
|
309
|
+
</details>
|
|
310
|
+
<details>
|
|
311
|
+
<summary>
|
|
305
312
|
AdminInitiateAuth
|
|
306
313
|
</summary>
|
|
307
314
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -234,7 +234,7 @@ const commonParams = {
|
|
|
234
234
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
-
var version = "3.
|
|
237
|
+
var version = "3.1094.0";
|
|
238
238
|
var packageInfo = {
|
|
239
239
|
version: version};
|
|
240
240
|
|
|
@@ -1079,6 +1079,9 @@ const _AGD = "AdminGetDevice";
|
|
|
1079
1079
|
const _AGDR = "AdminGetDeviceRequest";
|
|
1080
1080
|
const _AGDRd = "AdminGetDeviceResponse";
|
|
1081
1081
|
const _AGU = "AdminGetUser";
|
|
1082
|
+
const _AGUAF = "AdminGetUserAuthFactors";
|
|
1083
|
+
const _AGUAFR = "AdminGetUserAuthFactorsRequest";
|
|
1084
|
+
const _AGUAFRd = "AdminGetUserAuthFactorsResponse";
|
|
1082
1085
|
const _AGUR = "AdminGetUserRequest";
|
|
1083
1086
|
const _AGURd = "AdminGetUserResponse";
|
|
1084
1087
|
const _AI = "ApplicationId";
|
|
@@ -2493,6 +2496,16 @@ var AdminGetDeviceResponse$ = [3, n0, _AGDRd,
|
|
|
2493
2496
|
[_D],
|
|
2494
2497
|
[[() => DeviceType$, 0]], 1
|
|
2495
2498
|
];
|
|
2499
|
+
var AdminGetUserAuthFactorsRequest$ = [3, n0, _AGUAFR,
|
|
2500
|
+
0,
|
|
2501
|
+
[_UPI, _U],
|
|
2502
|
+
[0, [() => UsernameType, 0]], 2
|
|
2503
|
+
];
|
|
2504
|
+
var AdminGetUserAuthFactorsResponse$ = [3, n0, _AGUAFRd,
|
|
2505
|
+
0,
|
|
2506
|
+
[_U, _PMS, _UMFASL, _CUAF],
|
|
2507
|
+
[[() => UsernameType, 0], 0, 64 | 0, 64 | 0], 1
|
|
2508
|
+
];
|
|
2496
2509
|
var AdminGetUserRequest$ = [3, n0, _AGUR,
|
|
2497
2510
|
0,
|
|
2498
2511
|
[_UPI, _U],
|
|
@@ -4166,6 +4179,9 @@ var AdminGetDevice$ = [9, n0, _AGD,
|
|
|
4166
4179
|
var AdminGetUser$ = [9, n0, _AGU,
|
|
4167
4180
|
0, () => AdminGetUserRequest$, () => AdminGetUserResponse$
|
|
4168
4181
|
];
|
|
4182
|
+
var AdminGetUserAuthFactors$ = [9, n0, _AGUAF,
|
|
4183
|
+
0, () => AdminGetUserAuthFactorsRequest$, () => AdminGetUserAuthFactorsResponse$
|
|
4184
|
+
];
|
|
4169
4185
|
var AdminInitiateAuth$ = [9, n0, _AIA,
|
|
4170
4186
|
0, () => AdminInitiateAuthRequest$, () => AdminInitiateAuthResponse$
|
|
4171
4187
|
];
|
|
@@ -4704,6 +4720,9 @@ class AdminForgetDeviceCommand extends command(_ep0, _mw0, "AdminForgetDevice",
|
|
|
4704
4720
|
class AdminGetDeviceCommand extends command(_ep0, _mw0, "AdminGetDevice", AdminGetDevice$) {
|
|
4705
4721
|
}
|
|
4706
4722
|
|
|
4723
|
+
class AdminGetUserAuthFactorsCommand extends command(_ep0, _mw0, "AdminGetUserAuthFactors", AdminGetUserAuthFactors$) {
|
|
4724
|
+
}
|
|
4725
|
+
|
|
4707
4726
|
class AdminGetUserCommand extends command(_ep0, _mw0, "AdminGetUser", AdminGetUser$) {
|
|
4708
4727
|
}
|
|
4709
4728
|
|
|
@@ -5084,6 +5103,7 @@ const commands = {
|
|
|
5084
5103
|
AdminForgetDeviceCommand,
|
|
5085
5104
|
AdminGetDeviceCommand,
|
|
5086
5105
|
AdminGetUserCommand,
|
|
5106
|
+
AdminGetUserAuthFactorsCommand,
|
|
5087
5107
|
AdminInitiateAuthCommand,
|
|
5088
5108
|
AdminLinkProviderForUserCommand,
|
|
5089
5109
|
AdminListDevicesCommand,
|
|
@@ -5250,6 +5270,13 @@ const UserStatusType = {
|
|
|
5250
5270
|
UNCONFIRMED: "UNCONFIRMED",
|
|
5251
5271
|
UNKNOWN: "UNKNOWN",
|
|
5252
5272
|
};
|
|
5273
|
+
const AuthFactorType = {
|
|
5274
|
+
EMAIL_OTP: "EMAIL_OTP",
|
|
5275
|
+
PASSWORD: "PASSWORD",
|
|
5276
|
+
SMS_OTP: "SMS_OTP",
|
|
5277
|
+
SOFTWARE_TOKEN: "SOFTWARE_TOKEN",
|
|
5278
|
+
WEB_AUTHN: "WEB_AUTHN",
|
|
5279
|
+
};
|
|
5253
5280
|
const AuthFlowType = {
|
|
5254
5281
|
ADMIN_NO_SRP_AUTH: "ADMIN_NO_SRP_AUTH",
|
|
5255
5282
|
ADMIN_USER_PASSWORD_AUTH: "ADMIN_USER_PASSWORD_AUTH",
|
|
@@ -5330,12 +5357,6 @@ const AliasAttributeType = {
|
|
|
5330
5357
|
PHONE_NUMBER: "phone_number",
|
|
5331
5358
|
PREFERRED_USERNAME: "preferred_username",
|
|
5332
5359
|
};
|
|
5333
|
-
const AuthFactorType = {
|
|
5334
|
-
EMAIL_OTP: "EMAIL_OTP",
|
|
5335
|
-
PASSWORD: "PASSWORD",
|
|
5336
|
-
SMS_OTP: "SMS_OTP",
|
|
5337
|
-
WEB_AUTHN: "WEB_AUTHN",
|
|
5338
|
-
};
|
|
5339
5360
|
const AssetCategoryType = {
|
|
5340
5361
|
AUTH_APP_GRAPHIC: "AUTH_APP_GRAPHIC",
|
|
5341
5362
|
EMAIL_GRAPHIC: "EMAIL_GRAPHIC",
|
|
@@ -5594,6 +5615,10 @@ exports.AdminGetDeviceCommand = AdminGetDeviceCommand;
|
|
|
5594
5615
|
exports.AdminGetDeviceRequest$ = AdminGetDeviceRequest$;
|
|
5595
5616
|
exports.AdminGetDeviceResponse$ = AdminGetDeviceResponse$;
|
|
5596
5617
|
exports.AdminGetUser$ = AdminGetUser$;
|
|
5618
|
+
exports.AdminGetUserAuthFactors$ = AdminGetUserAuthFactors$;
|
|
5619
|
+
exports.AdminGetUserAuthFactorsCommand = AdminGetUserAuthFactorsCommand;
|
|
5620
|
+
exports.AdminGetUserAuthFactorsRequest$ = AdminGetUserAuthFactorsRequest$;
|
|
5621
|
+
exports.AdminGetUserAuthFactorsResponse$ = AdminGetUserAuthFactorsResponse$;
|
|
5597
5622
|
exports.AdminGetUserCommand = AdminGetUserCommand;
|
|
5598
5623
|
exports.AdminGetUserRequest$ = AdminGetUserRequest$;
|
|
5599
5624
|
exports.AdminGetUserResponse$ = AdminGetUserResponse$;
|
|
@@ -12,6 +12,7 @@ import { AdminDisableUserCommand, } from "./commands/AdminDisableUserCommand";
|
|
|
12
12
|
import { AdminEnableUserCommand, } from "./commands/AdminEnableUserCommand";
|
|
13
13
|
import { AdminForgetDeviceCommand, } from "./commands/AdminForgetDeviceCommand";
|
|
14
14
|
import { AdminGetDeviceCommand, } from "./commands/AdminGetDeviceCommand";
|
|
15
|
+
import { AdminGetUserAuthFactorsCommand, } from "./commands/AdminGetUserAuthFactorsCommand";
|
|
15
16
|
import { AdminGetUserCommand, } from "./commands/AdminGetUserCommand";
|
|
16
17
|
import { AdminInitiateAuthCommand, } from "./commands/AdminInitiateAuthCommand";
|
|
17
18
|
import { AdminLinkProviderForUserCommand, } from "./commands/AdminLinkProviderForUserCommand";
|
|
@@ -151,6 +152,7 @@ const commands = {
|
|
|
151
152
|
AdminForgetDeviceCommand,
|
|
152
153
|
AdminGetDeviceCommand,
|
|
153
154
|
AdminGetUserCommand,
|
|
155
|
+
AdminGetUserAuthFactorsCommand,
|
|
154
156
|
AdminInitiateAuthCommand,
|
|
155
157
|
AdminLinkProviderForUserCommand,
|
|
156
158
|
AdminListDevicesCommand,
|
|
@@ -10,6 +10,7 @@ export * from "./AdminDisableUserCommand";
|
|
|
10
10
|
export * from "./AdminEnableUserCommand";
|
|
11
11
|
export * from "./AdminForgetDeviceCommand";
|
|
12
12
|
export * from "./AdminGetDeviceCommand";
|
|
13
|
+
export * from "./AdminGetUserAuthFactorsCommand";
|
|
13
14
|
export * from "./AdminGetUserCommand";
|
|
14
15
|
export * from "./AdminInitiateAuthCommand";
|
|
15
16
|
export * from "./AdminLinkProviderForUserCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -33,6 +33,13 @@ export const UserStatusType = {
|
|
|
33
33
|
UNCONFIRMED: "UNCONFIRMED",
|
|
34
34
|
UNKNOWN: "UNKNOWN",
|
|
35
35
|
};
|
|
36
|
+
export const AuthFactorType = {
|
|
37
|
+
EMAIL_OTP: "EMAIL_OTP",
|
|
38
|
+
PASSWORD: "PASSWORD",
|
|
39
|
+
SMS_OTP: "SMS_OTP",
|
|
40
|
+
SOFTWARE_TOKEN: "SOFTWARE_TOKEN",
|
|
41
|
+
WEB_AUTHN: "WEB_AUTHN",
|
|
42
|
+
};
|
|
36
43
|
export const AuthFlowType = {
|
|
37
44
|
ADMIN_NO_SRP_AUTH: "ADMIN_NO_SRP_AUTH",
|
|
38
45
|
ADMIN_USER_PASSWORD_AUTH: "ADMIN_USER_PASSWORD_AUTH",
|
|
@@ -113,12 +120,6 @@ export const AliasAttributeType = {
|
|
|
113
120
|
PHONE_NUMBER: "phone_number",
|
|
114
121
|
PREFERRED_USERNAME: "preferred_username",
|
|
115
122
|
};
|
|
116
|
-
export const AuthFactorType = {
|
|
117
|
-
EMAIL_OTP: "EMAIL_OTP",
|
|
118
|
-
PASSWORD: "PASSWORD",
|
|
119
|
-
SMS_OTP: "SMS_OTP",
|
|
120
|
-
WEB_AUTHN: "WEB_AUTHN",
|
|
121
|
-
};
|
|
122
123
|
export const AssetCategoryType = {
|
|
123
124
|
AUTH_APP_GRAPHIC: "AUTH_APP_GRAPHIC",
|
|
124
125
|
EMAIL_GRAPHIC: "EMAIL_GRAPHIC",
|
|
@@ -48,6 +48,9 @@ const _AGD = "AdminGetDevice";
|
|
|
48
48
|
const _AGDR = "AdminGetDeviceRequest";
|
|
49
49
|
const _AGDRd = "AdminGetDeviceResponse";
|
|
50
50
|
const _AGU = "AdminGetUser";
|
|
51
|
+
const _AGUAF = "AdminGetUserAuthFactors";
|
|
52
|
+
const _AGUAFR = "AdminGetUserAuthFactorsRequest";
|
|
53
|
+
const _AGUAFRd = "AdminGetUserAuthFactorsResponse";
|
|
51
54
|
const _AGUR = "AdminGetUserRequest";
|
|
52
55
|
const _AGURd = "AdminGetUserResponse";
|
|
53
56
|
const _AI = "ApplicationId";
|
|
@@ -1465,6 +1468,16 @@ export var AdminGetDeviceResponse$ = [3, n0, _AGDRd,
|
|
|
1465
1468
|
[_D],
|
|
1466
1469
|
[[() => DeviceType$, 0]], 1
|
|
1467
1470
|
];
|
|
1471
|
+
export var AdminGetUserAuthFactorsRequest$ = [3, n0, _AGUAFR,
|
|
1472
|
+
0,
|
|
1473
|
+
[_UPI, _U],
|
|
1474
|
+
[0, [() => UsernameType, 0]], 2
|
|
1475
|
+
];
|
|
1476
|
+
export var AdminGetUserAuthFactorsResponse$ = [3, n0, _AGUAFRd,
|
|
1477
|
+
0,
|
|
1478
|
+
[_U, _PMS, _UMFASL, _CUAF],
|
|
1479
|
+
[[() => UsernameType, 0], 0, 64 | 0, 64 | 0], 1
|
|
1480
|
+
];
|
|
1468
1481
|
export var AdminGetUserRequest$ = [3, n0, _AGUR,
|
|
1469
1482
|
0,
|
|
1470
1483
|
[_UPI, _U],
|
|
@@ -3171,6 +3184,9 @@ export var AdminGetDevice$ = [9, n0, _AGD,
|
|
|
3171
3184
|
export var AdminGetUser$ = [9, n0, _AGU,
|
|
3172
3185
|
0, () => AdminGetUserRequest$, () => AdminGetUserResponse$
|
|
3173
3186
|
];
|
|
3187
|
+
export var AdminGetUserAuthFactors$ = [9, n0, _AGUAF,
|
|
3188
|
+
0, () => AdminGetUserAuthFactorsRequest$, () => AdminGetUserAuthFactorsResponse$
|
|
3189
|
+
];
|
|
3174
3190
|
export var AdminInitiateAuth$ = [9, n0, _AIA,
|
|
3175
3191
|
0, () => AdminInitiateAuthRequest$, () => AdminInitiateAuthResponse$
|
|
3176
3192
|
];
|
|
@@ -12,6 +12,7 @@ import { type AdminDisableUserCommandInput, type AdminDisableUserCommandOutput }
|
|
|
12
12
|
import { type AdminEnableUserCommandInput, type AdminEnableUserCommandOutput } from "./commands/AdminEnableUserCommand";
|
|
13
13
|
import { type AdminForgetDeviceCommandInput, type AdminForgetDeviceCommandOutput } from "./commands/AdminForgetDeviceCommand";
|
|
14
14
|
import { type AdminGetDeviceCommandInput, type AdminGetDeviceCommandOutput } from "./commands/AdminGetDeviceCommand";
|
|
15
|
+
import { type AdminGetUserAuthFactorsCommandInput, type AdminGetUserAuthFactorsCommandOutput } from "./commands/AdminGetUserAuthFactorsCommand";
|
|
15
16
|
import { type AdminGetUserCommandInput, type AdminGetUserCommandOutput } from "./commands/AdminGetUserCommand";
|
|
16
17
|
import { type AdminInitiateAuthCommandInput, type AdminInitiateAuthCommandOutput } from "./commands/AdminInitiateAuthCommand";
|
|
17
18
|
import { type AdminLinkProviderForUserCommandInput, type AdminLinkProviderForUserCommandOutput } from "./commands/AdminLinkProviderForUserCommand";
|
|
@@ -207,6 +208,12 @@ export interface CognitoIdentityProvider {
|
|
|
207
208
|
adminGetUser(args: AdminGetUserCommandInput, options?: __HttpHandlerOptions): Promise<AdminGetUserCommandOutput>;
|
|
208
209
|
adminGetUser(args: AdminGetUserCommandInput, cb: (err: any, data?: AdminGetUserCommandOutput) => void): void;
|
|
209
210
|
adminGetUser(args: AdminGetUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AdminGetUserCommandOutput) => void): void;
|
|
211
|
+
/**
|
|
212
|
+
* @see {@link AdminGetUserAuthFactorsCommand}
|
|
213
|
+
*/
|
|
214
|
+
adminGetUserAuthFactors(args: AdminGetUserAuthFactorsCommandInput, options?: __HttpHandlerOptions): Promise<AdminGetUserAuthFactorsCommandOutput>;
|
|
215
|
+
adminGetUserAuthFactors(args: AdminGetUserAuthFactorsCommandInput, cb: (err: any, data?: AdminGetUserAuthFactorsCommandOutput) => void): void;
|
|
216
|
+
adminGetUserAuthFactors(args: AdminGetUserAuthFactorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AdminGetUserAuthFactorsCommandOutput) => void): void;
|
|
210
217
|
/**
|
|
211
218
|
* @see {@link AdminInitiateAuthCommand}
|
|
212
219
|
*/
|
|
@@ -18,6 +18,7 @@ import type { AdminDisableUserCommandInput, AdminDisableUserCommandOutput } from
|
|
|
18
18
|
import type { AdminEnableUserCommandInput, AdminEnableUserCommandOutput } from "./commands/AdminEnableUserCommand";
|
|
19
19
|
import type { AdminForgetDeviceCommandInput, AdminForgetDeviceCommandOutput } from "./commands/AdminForgetDeviceCommand";
|
|
20
20
|
import type { AdminGetDeviceCommandInput, AdminGetDeviceCommandOutput } from "./commands/AdminGetDeviceCommand";
|
|
21
|
+
import type { AdminGetUserAuthFactorsCommandInput, AdminGetUserAuthFactorsCommandOutput } from "./commands/AdminGetUserAuthFactorsCommand";
|
|
21
22
|
import type { AdminGetUserCommandInput, AdminGetUserCommandOutput } from "./commands/AdminGetUserCommand";
|
|
22
23
|
import type { AdminInitiateAuthCommandInput, AdminInitiateAuthCommandOutput } from "./commands/AdminInitiateAuthCommand";
|
|
23
24
|
import type { AdminLinkProviderForUserCommandInput, AdminLinkProviderForUserCommandOutput } from "./commands/AdminLinkProviderForUserCommand";
|
|
@@ -140,11 +141,11 @@ export { __Client };
|
|
|
140
141
|
/**
|
|
141
142
|
* @public
|
|
142
143
|
*/
|
|
143
|
-
export type ServiceInputTypes = AddCustomAttributesCommandInput | AddUserPoolClientSecretCommandInput | AdminAddUserToGroupCommandInput | AdminConfirmSignUpCommandInput | AdminCreateUserCommandInput | AdminDeleteUserAttributesCommandInput | AdminDeleteUserCommandInput | AdminDisableProviderForUserCommandInput | AdminDisableUserCommandInput | AdminEnableUserCommandInput | AdminForgetDeviceCommandInput | AdminGetDeviceCommandInput | AdminGetUserCommandInput | AdminInitiateAuthCommandInput | AdminLinkProviderForUserCommandInput | AdminListDevicesCommandInput | AdminListGroupsForUserCommandInput | AdminListUserAuthEventsCommandInput | AdminRemoveUserFromGroupCommandInput | AdminResetUserPasswordCommandInput | AdminRespondToAuthChallengeCommandInput | AdminSetUserMFAPreferenceCommandInput | AdminSetUserPasswordCommandInput | AdminSetUserSettingsCommandInput | AdminUpdateAuthEventFeedbackCommandInput | AdminUpdateDeviceStatusCommandInput | AdminUpdateUserAttributesCommandInput | AdminUserGlobalSignOutCommandInput | AssociateSoftwareTokenCommandInput | ChangePasswordCommandInput | CompleteWebAuthnRegistrationCommandInput | ConfirmDeviceCommandInput | ConfirmForgotPasswordCommandInput | ConfirmSignUpCommandInput | CreateGroupCommandInput | CreateIdentityProviderCommandInput | CreateManagedLoginBrandingCommandInput | CreateResourceServerCommandInput | CreateTermsCommandInput | CreateUserImportJobCommandInput | CreateUserPoolClientCommandInput | CreateUserPoolCommandInput | CreateUserPoolDomainCommandInput | CreateUserPoolReplicaCommandInput | DeleteGroupCommandInput | DeleteIdentityProviderCommandInput | DeleteManagedLoginBrandingCommandInput | DeleteResourceServerCommandInput | DeleteTermsCommandInput | DeleteUserAttributesCommandInput | DeleteUserCommandInput | DeleteUserPoolClientCommandInput | DeleteUserPoolClientSecretCommandInput | DeleteUserPoolCommandInput | DeleteUserPoolDomainCommandInput | DeleteUserPoolReplicaCommandInput | DeleteWebAuthnCredentialCommandInput | DescribeIdentityProviderCommandInput | DescribeManagedLoginBrandingByClientCommandInput | DescribeManagedLoginBrandingCommandInput | DescribeResourceServerCommandInput | DescribeRiskConfigurationCommandInput | DescribeTermsCommandInput | DescribeUserImportJobCommandInput | DescribeUserPoolClientCommandInput | DescribeUserPoolCommandInput | DescribeUserPoolDomainCommandInput | ForgetDeviceCommandInput | ForgotPasswordCommandInput | GetCSVHeaderCommandInput | GetDeviceCommandInput | GetGroupCommandInput | GetIdentityProviderByIdentifierCommandInput | GetLogDeliveryConfigurationCommandInput | GetProvisionedLimitCommandInput | GetSigningCertificateCommandInput | GetTokensFromRefreshTokenCommandInput | GetUICustomizationCommandInput | GetUserAttributeVerificationCodeCommandInput | GetUserAuthFactorsCommandInput | GetUserCommandInput | GetUserPoolMfaConfigCommandInput | GlobalSignOutCommandInput | InitiateAuthCommandInput | ListDevicesCommandInput | ListGroupsCommandInput | ListIdentityProvidersCommandInput | ListResourceServersCommandInput | ListTagsForResourceCommandInput | ListTermsCommandInput | ListUserImportJobsCommandInput | ListUserPoolClientSecretsCommandInput | ListUserPoolClientsCommandInput | ListUserPoolReplicasCommandInput | ListUserPoolsCommandInput | ListUsersCommandInput | ListUsersInGroupCommandInput | ListWebAuthnCredentialsCommandInput | ResendConfirmationCodeCommandInput | RespondToAuthChallengeCommandInput | RevokeTokenCommandInput | SetLogDeliveryConfigurationCommandInput | SetRiskConfigurationCommandInput | SetUICustomizationCommandInput | SetUserMFAPreferenceCommandInput | SetUserPoolMfaConfigCommandInput | SetUserSettingsCommandInput | SignUpCommandInput | StartUserImportJobCommandInput | StartWebAuthnRegistrationCommandInput | StopUserImportJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAuthEventFeedbackCommandInput | UpdateDeviceStatusCommandInput | UpdateGroupCommandInput | UpdateIdentityProviderCommandInput | UpdateManagedLoginBrandingCommandInput | UpdateProvisionedLimitCommandInput | UpdateResourceServerCommandInput | UpdateTermsCommandInput | UpdateUserAttributesCommandInput | UpdateUserPoolClientCommandInput | UpdateUserPoolCommandInput | UpdateUserPoolDomainCommandInput | UpdateUserPoolReplicaCommandInput | VerifySoftwareTokenCommandInput | VerifyUserAttributeCommandInput;
|
|
144
|
+
export type ServiceInputTypes = AddCustomAttributesCommandInput | AddUserPoolClientSecretCommandInput | AdminAddUserToGroupCommandInput | AdminConfirmSignUpCommandInput | AdminCreateUserCommandInput | AdminDeleteUserAttributesCommandInput | AdminDeleteUserCommandInput | AdminDisableProviderForUserCommandInput | AdminDisableUserCommandInput | AdminEnableUserCommandInput | AdminForgetDeviceCommandInput | AdminGetDeviceCommandInput | AdminGetUserAuthFactorsCommandInput | AdminGetUserCommandInput | AdminInitiateAuthCommandInput | AdminLinkProviderForUserCommandInput | AdminListDevicesCommandInput | AdminListGroupsForUserCommandInput | AdminListUserAuthEventsCommandInput | AdminRemoveUserFromGroupCommandInput | AdminResetUserPasswordCommandInput | AdminRespondToAuthChallengeCommandInput | AdminSetUserMFAPreferenceCommandInput | AdminSetUserPasswordCommandInput | AdminSetUserSettingsCommandInput | AdminUpdateAuthEventFeedbackCommandInput | AdminUpdateDeviceStatusCommandInput | AdminUpdateUserAttributesCommandInput | AdminUserGlobalSignOutCommandInput | AssociateSoftwareTokenCommandInput | ChangePasswordCommandInput | CompleteWebAuthnRegistrationCommandInput | ConfirmDeviceCommandInput | ConfirmForgotPasswordCommandInput | ConfirmSignUpCommandInput | CreateGroupCommandInput | CreateIdentityProviderCommandInput | CreateManagedLoginBrandingCommandInput | CreateResourceServerCommandInput | CreateTermsCommandInput | CreateUserImportJobCommandInput | CreateUserPoolClientCommandInput | CreateUserPoolCommandInput | CreateUserPoolDomainCommandInput | CreateUserPoolReplicaCommandInput | DeleteGroupCommandInput | DeleteIdentityProviderCommandInput | DeleteManagedLoginBrandingCommandInput | DeleteResourceServerCommandInput | DeleteTermsCommandInput | DeleteUserAttributesCommandInput | DeleteUserCommandInput | DeleteUserPoolClientCommandInput | DeleteUserPoolClientSecretCommandInput | DeleteUserPoolCommandInput | DeleteUserPoolDomainCommandInput | DeleteUserPoolReplicaCommandInput | DeleteWebAuthnCredentialCommandInput | DescribeIdentityProviderCommandInput | DescribeManagedLoginBrandingByClientCommandInput | DescribeManagedLoginBrandingCommandInput | DescribeResourceServerCommandInput | DescribeRiskConfigurationCommandInput | DescribeTermsCommandInput | DescribeUserImportJobCommandInput | DescribeUserPoolClientCommandInput | DescribeUserPoolCommandInput | DescribeUserPoolDomainCommandInput | ForgetDeviceCommandInput | ForgotPasswordCommandInput | GetCSVHeaderCommandInput | GetDeviceCommandInput | GetGroupCommandInput | GetIdentityProviderByIdentifierCommandInput | GetLogDeliveryConfigurationCommandInput | GetProvisionedLimitCommandInput | GetSigningCertificateCommandInput | GetTokensFromRefreshTokenCommandInput | GetUICustomizationCommandInput | GetUserAttributeVerificationCodeCommandInput | GetUserAuthFactorsCommandInput | GetUserCommandInput | GetUserPoolMfaConfigCommandInput | GlobalSignOutCommandInput | InitiateAuthCommandInput | ListDevicesCommandInput | ListGroupsCommandInput | ListIdentityProvidersCommandInput | ListResourceServersCommandInput | ListTagsForResourceCommandInput | ListTermsCommandInput | ListUserImportJobsCommandInput | ListUserPoolClientSecretsCommandInput | ListUserPoolClientsCommandInput | ListUserPoolReplicasCommandInput | ListUserPoolsCommandInput | ListUsersCommandInput | ListUsersInGroupCommandInput | ListWebAuthnCredentialsCommandInput | ResendConfirmationCodeCommandInput | RespondToAuthChallengeCommandInput | RevokeTokenCommandInput | SetLogDeliveryConfigurationCommandInput | SetRiskConfigurationCommandInput | SetUICustomizationCommandInput | SetUserMFAPreferenceCommandInput | SetUserPoolMfaConfigCommandInput | SetUserSettingsCommandInput | SignUpCommandInput | StartUserImportJobCommandInput | StartWebAuthnRegistrationCommandInput | StopUserImportJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAuthEventFeedbackCommandInput | UpdateDeviceStatusCommandInput | UpdateGroupCommandInput | UpdateIdentityProviderCommandInput | UpdateManagedLoginBrandingCommandInput | UpdateProvisionedLimitCommandInput | UpdateResourceServerCommandInput | UpdateTermsCommandInput | UpdateUserAttributesCommandInput | UpdateUserPoolClientCommandInput | UpdateUserPoolCommandInput | UpdateUserPoolDomainCommandInput | UpdateUserPoolReplicaCommandInput | VerifySoftwareTokenCommandInput | VerifyUserAttributeCommandInput;
|
|
144
145
|
/**
|
|
145
146
|
* @public
|
|
146
147
|
*/
|
|
147
|
-
export type ServiceOutputTypes = AddCustomAttributesCommandOutput | AddUserPoolClientSecretCommandOutput | AdminAddUserToGroupCommandOutput | AdminConfirmSignUpCommandOutput | AdminCreateUserCommandOutput | AdminDeleteUserAttributesCommandOutput | AdminDeleteUserCommandOutput | AdminDisableProviderForUserCommandOutput | AdminDisableUserCommandOutput | AdminEnableUserCommandOutput | AdminForgetDeviceCommandOutput | AdminGetDeviceCommandOutput | AdminGetUserCommandOutput | AdminInitiateAuthCommandOutput | AdminLinkProviderForUserCommandOutput | AdminListDevicesCommandOutput | AdminListGroupsForUserCommandOutput | AdminListUserAuthEventsCommandOutput | AdminRemoveUserFromGroupCommandOutput | AdminResetUserPasswordCommandOutput | AdminRespondToAuthChallengeCommandOutput | AdminSetUserMFAPreferenceCommandOutput | AdminSetUserPasswordCommandOutput | AdminSetUserSettingsCommandOutput | AdminUpdateAuthEventFeedbackCommandOutput | AdminUpdateDeviceStatusCommandOutput | AdminUpdateUserAttributesCommandOutput | AdminUserGlobalSignOutCommandOutput | AssociateSoftwareTokenCommandOutput | ChangePasswordCommandOutput | CompleteWebAuthnRegistrationCommandOutput | ConfirmDeviceCommandOutput | ConfirmForgotPasswordCommandOutput | ConfirmSignUpCommandOutput | CreateGroupCommandOutput | CreateIdentityProviderCommandOutput | CreateManagedLoginBrandingCommandOutput | CreateResourceServerCommandOutput | CreateTermsCommandOutput | CreateUserImportJobCommandOutput | CreateUserPoolClientCommandOutput | CreateUserPoolCommandOutput | CreateUserPoolDomainCommandOutput | CreateUserPoolReplicaCommandOutput | DeleteGroupCommandOutput | DeleteIdentityProviderCommandOutput | DeleteManagedLoginBrandingCommandOutput | DeleteResourceServerCommandOutput | DeleteTermsCommandOutput | DeleteUserAttributesCommandOutput | DeleteUserCommandOutput | DeleteUserPoolClientCommandOutput | DeleteUserPoolClientSecretCommandOutput | DeleteUserPoolCommandOutput | DeleteUserPoolDomainCommandOutput | DeleteUserPoolReplicaCommandOutput | DeleteWebAuthnCredentialCommandOutput | DescribeIdentityProviderCommandOutput | DescribeManagedLoginBrandingByClientCommandOutput | DescribeManagedLoginBrandingCommandOutput | DescribeResourceServerCommandOutput | DescribeRiskConfigurationCommandOutput | DescribeTermsCommandOutput | DescribeUserImportJobCommandOutput | DescribeUserPoolClientCommandOutput | DescribeUserPoolCommandOutput | DescribeUserPoolDomainCommandOutput | ForgetDeviceCommandOutput | ForgotPasswordCommandOutput | GetCSVHeaderCommandOutput | GetDeviceCommandOutput | GetGroupCommandOutput | GetIdentityProviderByIdentifierCommandOutput | GetLogDeliveryConfigurationCommandOutput | GetProvisionedLimitCommandOutput | GetSigningCertificateCommandOutput | GetTokensFromRefreshTokenCommandOutput | GetUICustomizationCommandOutput | GetUserAttributeVerificationCodeCommandOutput | GetUserAuthFactorsCommandOutput | GetUserCommandOutput | GetUserPoolMfaConfigCommandOutput | GlobalSignOutCommandOutput | InitiateAuthCommandOutput | ListDevicesCommandOutput | ListGroupsCommandOutput | ListIdentityProvidersCommandOutput | ListResourceServersCommandOutput | ListTagsForResourceCommandOutput | ListTermsCommandOutput | ListUserImportJobsCommandOutput | ListUserPoolClientSecretsCommandOutput | ListUserPoolClientsCommandOutput | ListUserPoolReplicasCommandOutput | ListUserPoolsCommandOutput | ListUsersCommandOutput | ListUsersInGroupCommandOutput | ListWebAuthnCredentialsCommandOutput | ResendConfirmationCodeCommandOutput | RespondToAuthChallengeCommandOutput | RevokeTokenCommandOutput | SetLogDeliveryConfigurationCommandOutput | SetRiskConfigurationCommandOutput | SetUICustomizationCommandOutput | SetUserMFAPreferenceCommandOutput | SetUserPoolMfaConfigCommandOutput | SetUserSettingsCommandOutput | SignUpCommandOutput | StartUserImportJobCommandOutput | StartWebAuthnRegistrationCommandOutput | StopUserImportJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAuthEventFeedbackCommandOutput | UpdateDeviceStatusCommandOutput | UpdateGroupCommandOutput | UpdateIdentityProviderCommandOutput | UpdateManagedLoginBrandingCommandOutput | UpdateProvisionedLimitCommandOutput | UpdateResourceServerCommandOutput | UpdateTermsCommandOutput | UpdateUserAttributesCommandOutput | UpdateUserPoolClientCommandOutput | UpdateUserPoolCommandOutput | UpdateUserPoolDomainCommandOutput | UpdateUserPoolReplicaCommandOutput | VerifySoftwareTokenCommandOutput | VerifyUserAttributeCommandOutput;
|
|
148
|
+
export type ServiceOutputTypes = AddCustomAttributesCommandOutput | AddUserPoolClientSecretCommandOutput | AdminAddUserToGroupCommandOutput | AdminConfirmSignUpCommandOutput | AdminCreateUserCommandOutput | AdminDeleteUserAttributesCommandOutput | AdminDeleteUserCommandOutput | AdminDisableProviderForUserCommandOutput | AdminDisableUserCommandOutput | AdminEnableUserCommandOutput | AdminForgetDeviceCommandOutput | AdminGetDeviceCommandOutput | AdminGetUserAuthFactorsCommandOutput | AdminGetUserCommandOutput | AdminInitiateAuthCommandOutput | AdminLinkProviderForUserCommandOutput | AdminListDevicesCommandOutput | AdminListGroupsForUserCommandOutput | AdminListUserAuthEventsCommandOutput | AdminRemoveUserFromGroupCommandOutput | AdminResetUserPasswordCommandOutput | AdminRespondToAuthChallengeCommandOutput | AdminSetUserMFAPreferenceCommandOutput | AdminSetUserPasswordCommandOutput | AdminSetUserSettingsCommandOutput | AdminUpdateAuthEventFeedbackCommandOutput | AdminUpdateDeviceStatusCommandOutput | AdminUpdateUserAttributesCommandOutput | AdminUserGlobalSignOutCommandOutput | AssociateSoftwareTokenCommandOutput | ChangePasswordCommandOutput | CompleteWebAuthnRegistrationCommandOutput | ConfirmDeviceCommandOutput | ConfirmForgotPasswordCommandOutput | ConfirmSignUpCommandOutput | CreateGroupCommandOutput | CreateIdentityProviderCommandOutput | CreateManagedLoginBrandingCommandOutput | CreateResourceServerCommandOutput | CreateTermsCommandOutput | CreateUserImportJobCommandOutput | CreateUserPoolClientCommandOutput | CreateUserPoolCommandOutput | CreateUserPoolDomainCommandOutput | CreateUserPoolReplicaCommandOutput | DeleteGroupCommandOutput | DeleteIdentityProviderCommandOutput | DeleteManagedLoginBrandingCommandOutput | DeleteResourceServerCommandOutput | DeleteTermsCommandOutput | DeleteUserAttributesCommandOutput | DeleteUserCommandOutput | DeleteUserPoolClientCommandOutput | DeleteUserPoolClientSecretCommandOutput | DeleteUserPoolCommandOutput | DeleteUserPoolDomainCommandOutput | DeleteUserPoolReplicaCommandOutput | DeleteWebAuthnCredentialCommandOutput | DescribeIdentityProviderCommandOutput | DescribeManagedLoginBrandingByClientCommandOutput | DescribeManagedLoginBrandingCommandOutput | DescribeResourceServerCommandOutput | DescribeRiskConfigurationCommandOutput | DescribeTermsCommandOutput | DescribeUserImportJobCommandOutput | DescribeUserPoolClientCommandOutput | DescribeUserPoolCommandOutput | DescribeUserPoolDomainCommandOutput | ForgetDeviceCommandOutput | ForgotPasswordCommandOutput | GetCSVHeaderCommandOutput | GetDeviceCommandOutput | GetGroupCommandOutput | GetIdentityProviderByIdentifierCommandOutput | GetLogDeliveryConfigurationCommandOutput | GetProvisionedLimitCommandOutput | GetSigningCertificateCommandOutput | GetTokensFromRefreshTokenCommandOutput | GetUICustomizationCommandOutput | GetUserAttributeVerificationCodeCommandOutput | GetUserAuthFactorsCommandOutput | GetUserCommandOutput | GetUserPoolMfaConfigCommandOutput | GlobalSignOutCommandOutput | InitiateAuthCommandOutput | ListDevicesCommandOutput | ListGroupsCommandOutput | ListIdentityProvidersCommandOutput | ListResourceServersCommandOutput | ListTagsForResourceCommandOutput | ListTermsCommandOutput | ListUserImportJobsCommandOutput | ListUserPoolClientSecretsCommandOutput | ListUserPoolClientsCommandOutput | ListUserPoolReplicasCommandOutput | ListUserPoolsCommandOutput | ListUsersCommandOutput | ListUsersInGroupCommandOutput | ListWebAuthnCredentialsCommandOutput | ResendConfirmationCodeCommandOutput | RespondToAuthChallengeCommandOutput | RevokeTokenCommandOutput | SetLogDeliveryConfigurationCommandOutput | SetRiskConfigurationCommandOutput | SetUICustomizationCommandOutput | SetUserMFAPreferenceCommandOutput | SetUserPoolMfaConfigCommandOutput | SetUserSettingsCommandOutput | SignUpCommandOutput | StartUserImportJobCommandOutput | StartWebAuthnRegistrationCommandOutput | StopUserImportJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAuthEventFeedbackCommandOutput | UpdateDeviceStatusCommandOutput | UpdateGroupCommandOutput | UpdateIdentityProviderCommandOutput | UpdateManagedLoginBrandingCommandOutput | UpdateProvisionedLimitCommandOutput | UpdateResourceServerCommandOutput | UpdateTermsCommandOutput | UpdateUserAttributesCommandOutput | UpdateUserPoolClientCommandOutput | UpdateUserPoolCommandOutput | UpdateUserPoolDomainCommandOutput | UpdateUserPoolReplicaCommandOutput | VerifySoftwareTokenCommandOutput | VerifyUserAttributeCommandOutput;
|
|
148
149
|
/**
|
|
149
150
|
* @public
|
|
150
151
|
*/
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { AdminGetUserAuthFactorsRequest, AdminGetUserAuthFactorsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link AdminGetUserAuthFactorsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface AdminGetUserAuthFactorsCommandInput extends AdminGetUserAuthFactorsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link AdminGetUserAuthFactorsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface AdminGetUserAuthFactorsCommandOutput extends AdminGetUserAuthFactorsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const AdminGetUserAuthFactorsCommand_base: {
|
|
22
|
+
new (input: AdminGetUserAuthFactorsCommandInput): import("@smithy/core/client").CommandImpl<AdminGetUserAuthFactorsCommandInput, AdminGetUserAuthFactorsCommandOutput, import("..").CognitoIdentityProviderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: AdminGetUserAuthFactorsCommandInput): import("@smithy/core/client").CommandImpl<AdminGetUserAuthFactorsCommandInput, AdminGetUserAuthFactorsCommandOutput, import("..").CognitoIdentityProviderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Lists the authentication options for a user in a user pool. Returns the
|
|
28
|
+
* following:</p>
|
|
29
|
+
* <ol>
|
|
30
|
+
* <li>
|
|
31
|
+
* <p>The user's multi-factor authentication (MFA) preferences.</p>
|
|
32
|
+
* </li>
|
|
33
|
+
* <li>
|
|
34
|
+
* <p>The user's options for choice-based authentication with the
|
|
35
|
+
* <code>USER_AUTH</code> flow.</p>
|
|
36
|
+
* </li>
|
|
37
|
+
* </ol>
|
|
38
|
+
* <note>
|
|
39
|
+
* <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For
|
|
40
|
+
* this operation, you must use IAM credentials to authorize requests, and you must
|
|
41
|
+
* grant yourself the corresponding IAM permission in a policy.</p>
|
|
42
|
+
* <p class="title">
|
|
43
|
+
* <b>Learn more</b>
|
|
44
|
+
* </p>
|
|
45
|
+
* <ul>
|
|
46
|
+
* <li>
|
|
47
|
+
* <p>
|
|
48
|
+
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html">Signing Amazon Web Services API Requests</a>
|
|
49
|
+
* </p>
|
|
50
|
+
* </li>
|
|
51
|
+
* <li>
|
|
52
|
+
* <p>
|
|
53
|
+
* <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html">Using the Amazon Cognito user pools API and user pool endpoints</a>
|
|
54
|
+
* </p>
|
|
55
|
+
* </li>
|
|
56
|
+
* </ul>
|
|
57
|
+
* </note>
|
|
58
|
+
* @example
|
|
59
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
60
|
+
* ```javascript
|
|
61
|
+
* import { CognitoIdentityProviderClient, AdminGetUserAuthFactorsCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
|
|
62
|
+
* // const { CognitoIdentityProviderClient, AdminGetUserAuthFactorsCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
|
|
63
|
+
* // import type { CognitoIdentityProviderClientConfig } from "@aws-sdk/client-cognito-identity-provider";
|
|
64
|
+
* const config = {}; // type is CognitoIdentityProviderClientConfig
|
|
65
|
+
* const client = new CognitoIdentityProviderClient(config);
|
|
66
|
+
* const input = { // AdminGetUserAuthFactorsRequest
|
|
67
|
+
* UserPoolId: "STRING_VALUE", // required
|
|
68
|
+
* Username: "STRING_VALUE", // required
|
|
69
|
+
* };
|
|
70
|
+
* const command = new AdminGetUserAuthFactorsCommand(input);
|
|
71
|
+
* const response = await client.send(command);
|
|
72
|
+
* // { // AdminGetUserAuthFactorsResponse
|
|
73
|
+
* // Username: "STRING_VALUE", // required
|
|
74
|
+
* // PreferredMfaSetting: "STRING_VALUE",
|
|
75
|
+
* // UserMFASettingList: [ // UserMFASettingListType
|
|
76
|
+
* // "STRING_VALUE",
|
|
77
|
+
* // ],
|
|
78
|
+
* // ConfiguredUserAuthFactors: [ // ConfiguredUserAuthFactorsListType
|
|
79
|
+
* // "PASSWORD" || "EMAIL_OTP" || "SMS_OTP" || "WEB_AUTHN" || "SOFTWARE_TOKEN",
|
|
80
|
+
* // ],
|
|
81
|
+
* // };
|
|
82
|
+
*
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @param AdminGetUserAuthFactorsCommandInput - {@link AdminGetUserAuthFactorsCommandInput}
|
|
86
|
+
* @returns {@link AdminGetUserAuthFactorsCommandOutput}
|
|
87
|
+
* @see {@link AdminGetUserAuthFactorsCommandInput} for command's `input` shape.
|
|
88
|
+
* @see {@link AdminGetUserAuthFactorsCommandOutput} for command's `response` shape.
|
|
89
|
+
* @see {@link CognitoIdentityProviderClientResolvedConfig | config} for CognitoIdentityProviderClient's `config` shape.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link InternalErrorException} (server fault)
|
|
92
|
+
* <p>This exception is thrown when Amazon Cognito encounters an internal error.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
95
|
+
* <p>This exception is thrown when the Amazon Cognito service encounters an invalid
|
|
96
|
+
* parameter.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link NotAuthorizedException} (client fault)
|
|
99
|
+
* <p>This exception is thrown when a user isn't authorized.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link OperationNotEnabledException} (client fault)
|
|
102
|
+
* <p>This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
105
|
+
* <p>This exception is thrown when the Amazon Cognito service can't find the requested
|
|
106
|
+
* resource.</p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
109
|
+
* <p>This exception is thrown when the user has made too many requests for a given
|
|
110
|
+
* operation.</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link UserNotFoundException} (client fault)
|
|
113
|
+
* <p>This exception is thrown when a user isn't found.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link CognitoIdentityProviderServiceException}
|
|
116
|
+
* <p>Base exception class for all service exceptions from CognitoIdentityProvider service.</p>
|
|
117
|
+
*
|
|
118
|
+
*
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
export declare class AdminGetUserAuthFactorsCommand extends AdminGetUserAuthFactorsCommand_base {
|
|
122
|
+
/** @internal type navigation helper, not in runtime. */
|
|
123
|
+
protected static __types: {
|
|
124
|
+
api: {
|
|
125
|
+
input: AdminGetUserAuthFactorsRequest;
|
|
126
|
+
output: AdminGetUserAuthFactorsResponse;
|
|
127
|
+
};
|
|
128
|
+
sdk: {
|
|
129
|
+
input: AdminGetUserAuthFactorsCommandInput;
|
|
130
|
+
output: AdminGetUserAuthFactorsCommandOutput;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
}
|
|
@@ -88,7 +88,7 @@ declare const CreateUserPoolCommand_base: {
|
|
|
88
88
|
* },
|
|
89
89
|
* SignInPolicy: { // SignInPolicyType
|
|
90
90
|
* AllowedFirstAuthFactors: [ // AllowedFirstAuthFactorsListType
|
|
91
|
-
* "PASSWORD" || "EMAIL_OTP" || "SMS_OTP" || "WEB_AUTHN",
|
|
91
|
+
* "PASSWORD" || "EMAIL_OTP" || "SMS_OTP" || "WEB_AUTHN" || "SOFTWARE_TOKEN",
|
|
92
92
|
* ],
|
|
93
93
|
* },
|
|
94
94
|
* },
|
|
@@ -247,7 +247,7 @@ declare const CreateUserPoolCommand_base: {
|
|
|
247
247
|
* // },
|
|
248
248
|
* // SignInPolicy: { // SignInPolicyType
|
|
249
249
|
* // AllowedFirstAuthFactors: [ // AllowedFirstAuthFactorsListType
|
|
250
|
-
* // "PASSWORD" || "EMAIL_OTP" || "SMS_OTP" || "WEB_AUTHN",
|
|
250
|
+
* // "PASSWORD" || "EMAIL_OTP" || "SMS_OTP" || "WEB_AUTHN" || "SOFTWARE_TOKEN",
|
|
251
251
|
* // ],
|
|
252
252
|
* // },
|
|
253
253
|
* // },
|
|
@@ -76,7 +76,7 @@ declare const DescribeUserPoolCommand_base: {
|
|
|
76
76
|
* // },
|
|
77
77
|
* // SignInPolicy: { // SignInPolicyType
|
|
78
78
|
* // AllowedFirstAuthFactors: [ // AllowedFirstAuthFactorsListType
|
|
79
|
-
* // "PASSWORD" || "EMAIL_OTP" || "SMS_OTP" || "WEB_AUTHN",
|
|
79
|
+
* // "PASSWORD" || "EMAIL_OTP" || "SMS_OTP" || "WEB_AUTHN" || "SOFTWARE_TOKEN",
|
|
80
80
|
* // ],
|
|
81
81
|
* // },
|
|
82
82
|
* // },
|
|
@@ -62,7 +62,7 @@ declare const GetUserAuthFactorsCommand_base: {
|
|
|
62
62
|
* // "STRING_VALUE",
|
|
63
63
|
* // ],
|
|
64
64
|
* // ConfiguredUserAuthFactors: [ // ConfiguredUserAuthFactorsListType
|
|
65
|
-
* // "PASSWORD" || "EMAIL_OTP" || "SMS_OTP" || "WEB_AUTHN",
|
|
65
|
+
* // "PASSWORD" || "EMAIL_OTP" || "SMS_OTP" || "WEB_AUTHN" || "SOFTWARE_TOKEN",
|
|
66
66
|
* // ],
|
|
67
67
|
* // };
|
|
68
68
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import type { StartWebAuthnRegistrationRequest, StartWebAuthnRegistrationResponse } from "../models/
|
|
2
|
+
import type { StartWebAuthnRegistrationRequest, StartWebAuthnRegistrationResponse } from "../models/models_1";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
@@ -93,7 +93,7 @@ declare const UpdateUserPoolCommand_base: {
|
|
|
93
93
|
* },
|
|
94
94
|
* SignInPolicy: { // SignInPolicyType
|
|
95
95
|
* AllowedFirstAuthFactors: [ // AllowedFirstAuthFactorsListType
|
|
96
|
-
* "PASSWORD" || "EMAIL_OTP" || "SMS_OTP" || "WEB_AUTHN",
|
|
96
|
+
* "PASSWORD" || "EMAIL_OTP" || "SMS_OTP" || "WEB_AUTHN" || "SOFTWARE_TOKEN",
|
|
97
97
|
* ],
|
|
98
98
|
* },
|
|
99
99
|
* },
|
|
@@ -10,6 +10,7 @@ export * from "./AdminDisableUserCommand";
|
|
|
10
10
|
export * from "./AdminEnableUserCommand";
|
|
11
11
|
export * from "./AdminForgetDeviceCommand";
|
|
12
12
|
export * from "./AdminGetDeviceCommand";
|
|
13
|
+
export * from "./AdminGetUserAuthFactorsCommand";
|
|
13
14
|
export * from "./AdminGetUserCommand";
|
|
14
15
|
export * from "./AdminInitiateAuthCommand";
|
|
15
16
|
export * from "./AdminLinkProviderForUserCommand";
|
|
@@ -81,6 +81,21 @@ export declare const UserStatusType: {
|
|
|
81
81
|
* @public
|
|
82
82
|
*/
|
|
83
83
|
export type UserStatusType = (typeof UserStatusType)[keyof typeof UserStatusType];
|
|
84
|
+
/**
|
|
85
|
+
* @public
|
|
86
|
+
* @enum
|
|
87
|
+
*/
|
|
88
|
+
export declare const AuthFactorType: {
|
|
89
|
+
readonly EMAIL_OTP: "EMAIL_OTP";
|
|
90
|
+
readonly PASSWORD: "PASSWORD";
|
|
91
|
+
readonly SMS_OTP: "SMS_OTP";
|
|
92
|
+
readonly SOFTWARE_TOKEN: "SOFTWARE_TOKEN";
|
|
93
|
+
readonly WEB_AUTHN: "WEB_AUTHN";
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
export type AuthFactorType = (typeof AuthFactorType)[keyof typeof AuthFactorType];
|
|
84
99
|
/**
|
|
85
100
|
* @public
|
|
86
101
|
* @enum
|
|
@@ -265,20 +280,6 @@ export declare const AliasAttributeType: {
|
|
|
265
280
|
* @public
|
|
266
281
|
*/
|
|
267
282
|
export type AliasAttributeType = (typeof AliasAttributeType)[keyof typeof AliasAttributeType];
|
|
268
|
-
/**
|
|
269
|
-
* @public
|
|
270
|
-
* @enum
|
|
271
|
-
*/
|
|
272
|
-
export declare const AuthFactorType: {
|
|
273
|
-
readonly EMAIL_OTP: "EMAIL_OTP";
|
|
274
|
-
readonly PASSWORD: "PASSWORD";
|
|
275
|
-
readonly SMS_OTP: "SMS_OTP";
|
|
276
|
-
readonly WEB_AUTHN: "WEB_AUTHN";
|
|
277
|
-
};
|
|
278
|
-
/**
|
|
279
|
-
* @public
|
|
280
|
-
*/
|
|
281
|
-
export type AuthFactorType = (typeof AuthFactorType)[keyof typeof AuthFactorType];
|
|
282
283
|
/**
|
|
283
284
|
* @public
|
|
284
285
|
* @enum
|
|
@@ -1218,6 +1218,63 @@ export interface AdminGetUserResponse {
|
|
|
1218
1218
|
*/
|
|
1219
1219
|
UserMFASettingList?: string[] | undefined;
|
|
1220
1220
|
}
|
|
1221
|
+
/**
|
|
1222
|
+
* @public
|
|
1223
|
+
*/
|
|
1224
|
+
export interface AdminGetUserAuthFactorsRequest {
|
|
1225
|
+
/**
|
|
1226
|
+
* <p>The ID of the user pool where you want to get information about the user's
|
|
1227
|
+
* authentication factors.</p>
|
|
1228
|
+
* @public
|
|
1229
|
+
*/
|
|
1230
|
+
UserPoolId: string | undefined;
|
|
1231
|
+
/**
|
|
1232
|
+
* <p>The name of the user that you want to query or modify. The value of this parameter
|
|
1233
|
+
* is typically your user's username, but it can be any of their alias attributes. If
|
|
1234
|
+
* <code>username</code> isn't an alias attribute in your user pool, this value
|
|
1235
|
+
* must be the <code>sub</code> of a local user or the username of a user from a
|
|
1236
|
+
* third-party IdP.</p>
|
|
1237
|
+
* @public
|
|
1238
|
+
*/
|
|
1239
|
+
Username: string | undefined;
|
|
1240
|
+
}
|
|
1241
|
+
/**
|
|
1242
|
+
* @public
|
|
1243
|
+
*/
|
|
1244
|
+
export interface AdminGetUserAuthFactorsResponse {
|
|
1245
|
+
/**
|
|
1246
|
+
* <p>The name of the user who is eligible for the authentication factors in the
|
|
1247
|
+
* response.</p>
|
|
1248
|
+
* @public
|
|
1249
|
+
*/
|
|
1250
|
+
Username: string | undefined;
|
|
1251
|
+
/**
|
|
1252
|
+
* <p>The challenge method that Amazon Cognito returns to the user in response to sign-in requests.
|
|
1253
|
+
* Users can prefer SMS message, email message, or TOTP MFA.</p>
|
|
1254
|
+
* @public
|
|
1255
|
+
*/
|
|
1256
|
+
PreferredMfaSetting?: string | undefined;
|
|
1257
|
+
/**
|
|
1258
|
+
* <p>The MFA options that are activated for the user. The possible values in this list are
|
|
1259
|
+
* <code>SMS_MFA</code>, <code>EMAIL_OTP</code>, and
|
|
1260
|
+
* <code>SOFTWARE_TOKEN_MFA</code>.</p>
|
|
1261
|
+
* @public
|
|
1262
|
+
*/
|
|
1263
|
+
UserMFASettingList?: string[] | undefined;
|
|
1264
|
+
/**
|
|
1265
|
+
* <p>The authentication types that are available to the user with <code>USER_AUTH</code>
|
|
1266
|
+
* sign-in, for example <code>["PASSWORD", "WEB_AUTHN"]</code>.</p>
|
|
1267
|
+
* <p>
|
|
1268
|
+
* <code>PASSWORD</code> can only be used as a first authentication factor.
|
|
1269
|
+
* <code>SOFTWARE_TOKEN</code> can only be used as an MFA factor.
|
|
1270
|
+
* <code>EMAIL_OTP</code>, <code>SMS_OTP</code>, and <code>WEB_AUTHN</code> can be
|
|
1271
|
+
* used as either a first authentication factor or an MFA factor. <code>WEB_AUTHN</code>
|
|
1272
|
+
* is available as an MFA factor only when passkey MFA is enabled at the user pool
|
|
1273
|
+
* level.</p>
|
|
1274
|
+
* @public
|
|
1275
|
+
*/
|
|
1276
|
+
ConfiguredUserAuthFactors?: AuthFactorType[] | undefined;
|
|
1277
|
+
}
|
|
1221
1278
|
/**
|
|
1222
1279
|
* <p>Information that your application adds to authentication requests. Applies an endpoint
|
|
1223
1280
|
* ID to the analytics data that your user pool sends to Amazon Pinpoint.</p>
|
|
@@ -5268,6 +5325,11 @@ export interface SignInPolicyType {
|
|
|
5268
5325
|
* <p>The sign-in methods that a user pool supports as the first factor. You can permit
|
|
5269
5326
|
* users to start authentication with a standard username and password, or with other
|
|
5270
5327
|
* one-time password and hardware factors.</p>
|
|
5328
|
+
* <note>
|
|
5329
|
+
* <p>
|
|
5330
|
+
* <code>SOFTWARE_TOKEN</code> is not currently supported as a first auth factor.
|
|
5331
|
+
* Do not include this value in <code>AllowedFirstAuthFactors</code>.</p>
|
|
5332
|
+
* </note>
|
|
5271
5333
|
* @public
|
|
5272
5334
|
*/
|
|
5273
5335
|
AllowedFirstAuthFactors?: AuthFactorType[] | undefined;
|
|
@@ -5641,6 +5703,22 @@ export interface CreateUserPoolRequest {
|
|
|
5641
5703
|
* doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in
|
|
5642
5704
|
* API responses and in managed login for users who have chosen and configured a preferred
|
|
5643
5705
|
* MFA factor.</p>
|
|
5706
|
+
* <p>The <code>CreateUserPool</code> operation supports only SMS MFA configuration. If you
|
|
5707
|
+
* set <code>MfaConfiguration</code> to either of these values, include an
|
|
5708
|
+
* <code>SmsConfiguration</code> in the same request:</p>
|
|
5709
|
+
* <ul>
|
|
5710
|
+
* <li>
|
|
5711
|
+
* <p>
|
|
5712
|
+
* <code>ON</code> – Requires MFA for all users</p>
|
|
5713
|
+
* </li>
|
|
5714
|
+
* <li>
|
|
5715
|
+
* <p>
|
|
5716
|
+
* <code>OPTIONAL</code> – Makes MFA optional for each user</p>
|
|
5717
|
+
* </li>
|
|
5718
|
+
* </ul>
|
|
5719
|
+
* <p>If you omit <code>SmsConfiguration</code>, the operation returns an
|
|
5720
|
+
* <code>InvalidParameterException</code>. To configure TOTP or email MFA, use the <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetUserPoolMfaConfig.html">SetUserPoolMfaConfig</a> operation. You can also use
|
|
5721
|
+
* <code>SetUserPoolMfaConfig</code> to add MFA factors later.</p>
|
|
5644
5722
|
* @public
|
|
5645
5723
|
*/
|
|
5646
5724
|
MfaConfiguration?: UserPoolMfaType | undefined;
|
|
@@ -6968,6 +7046,12 @@ export interface CreateUserPoolDomainRequest {
|
|
|
6968
7046
|
* of <code>1</code> indicates hosted UI (classic) and a version of <code>2</code>
|
|
6969
7047
|
* indicates managed login.</p>
|
|
6970
7048
|
* <p>Managed login requires that your user pool be configured for any <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-sign-in-feature-plans.html">feature plan</a> other than <code>Lite</code>.</p>
|
|
7049
|
+
* <p>A <code>ManagedLoginVersion</code> value of <code>2</code> does not activate managed
|
|
7050
|
+
* login pages for your app client. When you create an app client programmatically,
|
|
7051
|
+
* your app client has no branding style. To use managed login, create a branding style
|
|
7052
|
+
* using the <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateManagedLoginBranding.html">CreateManagedLoginBranding</a> operation. When you use the console, Amazon Cognito assigns
|
|
7053
|
+
* a default branding style automatically. When you use the API or an SDK, you must create a
|
|
7054
|
+
* branding style yourself.</p>
|
|
6971
7055
|
* @public
|
|
6972
7056
|
*/
|
|
6973
7057
|
ManagedLoginVersion?: number | undefined;
|
|
@@ -8547,6 +8631,13 @@ export interface GetUserAuthFactorsResponse {
|
|
|
8547
8631
|
/**
|
|
8548
8632
|
* <p>The authentication types that are available to the user with <code>USER_AUTH</code>
|
|
8549
8633
|
* sign-in, for example <code>["PASSWORD", "WEB_AUTHN"]</code>.</p>
|
|
8634
|
+
* <p>
|
|
8635
|
+
* <code>PASSWORD</code> can only be used as a first authentication factor.
|
|
8636
|
+
* <code>SOFTWARE_TOKEN</code> can only be used as an MFA factor.
|
|
8637
|
+
* <code>EMAIL_OTP</code>, <code>SMS_OTP</code>, and <code>WEB_AUTHN</code> can be
|
|
8638
|
+
* used as either a first authentication factor or an MFA factor. <code>WEB_AUTHN</code>
|
|
8639
|
+
* is available as an MFA factor only when passkey MFA is enabled at the user pool
|
|
8640
|
+
* level.</p>
|
|
8550
8641
|
* @public
|
|
8551
8642
|
*/
|
|
8552
8643
|
ConfiguredUserAuthFactors?: AuthFactorType[] | undefined;
|
|
@@ -11107,25 +11198,3 @@ export interface StartUserImportJobResponse {
|
|
|
11107
11198
|
*/
|
|
11108
11199
|
UserImportJob?: UserImportJobType | undefined;
|
|
11109
11200
|
}
|
|
11110
|
-
/**
|
|
11111
|
-
* @public
|
|
11112
|
-
*/
|
|
11113
|
-
export interface StartWebAuthnRegistrationRequest {
|
|
11114
|
-
/**
|
|
11115
|
-
* <p>A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for
|
|
11116
|
-
* <code>aws.cognito.signin.user.admin</code>.</p>
|
|
11117
|
-
* @public
|
|
11118
|
-
*/
|
|
11119
|
-
AccessToken: string | undefined;
|
|
11120
|
-
}
|
|
11121
|
-
/**
|
|
11122
|
-
* @public
|
|
11123
|
-
*/
|
|
11124
|
-
export interface StartWebAuthnRegistrationResponse {
|
|
11125
|
-
/**
|
|
11126
|
-
* <p>The information that a user can provide in their request to register with their
|
|
11127
|
-
* passkey provider.</p>
|
|
11128
|
-
* @public
|
|
11129
|
-
*/
|
|
11130
|
-
CredentialCreationOptions: __DocumentType | undefined;
|
|
11131
|
-
}
|
|
@@ -1,6 +1,28 @@
|
|
|
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
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";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface StartWebAuthnRegistrationRequest {
|
|
8
|
+
/**
|
|
9
|
+
* <p>A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for
|
|
10
|
+
* <code>aws.cognito.signin.user.admin</code>.</p>
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
AccessToken: string | undefined;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export interface StartWebAuthnRegistrationResponse {
|
|
19
|
+
/**
|
|
20
|
+
* <p>The information that a user can provide in their request to register with their
|
|
21
|
+
* passkey provider.</p>
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
CredentialCreationOptions: __DocumentType | undefined;
|
|
25
|
+
}
|
|
4
26
|
/**
|
|
5
27
|
* <p>Represents the request to stop the user import job.</p>
|
|
6
28
|
* @public
|
|
@@ -42,6 +42,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
42
42
|
logger?: import("@smithy/types").Logger;
|
|
43
43
|
}) => import("@smithy/types").EndpointV2;
|
|
44
44
|
tls?: boolean;
|
|
45
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
45
46
|
serviceConfiguredEndpoint?: never;
|
|
46
47
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
47
48
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
@@ -60,4 +61,5 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
60
61
|
systemClockOffset?: number;
|
|
61
62
|
signingRegion?: string;
|
|
62
63
|
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
64
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
63
65
|
};
|
|
@@ -43,6 +43,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
43
43
|
logger?: import("@smithy/types").Logger;
|
|
44
44
|
}) => import("@smithy/types").EndpointV2;
|
|
45
45
|
tls?: boolean;
|
|
46
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
46
47
|
serviceConfiguredEndpoint?: never;
|
|
47
48
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
48
49
|
schemeId: string;
|
|
@@ -60,4 +61,5 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
60
61
|
systemClockOffset?: number;
|
|
61
62
|
signingRegion?: string;
|
|
62
63
|
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
64
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
63
65
|
};
|
|
@@ -41,6 +41,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
41
41
|
logger?: import("@smithy/types").Logger;
|
|
42
42
|
}) => import("@smithy/types").EndpointV2;
|
|
43
43
|
tls?: boolean;
|
|
44
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
44
45
|
serviceConfiguredEndpoint?: never;
|
|
45
46
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
46
47
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
@@ -59,4 +60,5 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
59
60
|
systemClockOffset?: number;
|
|
60
61
|
signingRegion?: string;
|
|
61
62
|
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
63
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
62
64
|
};
|
|
@@ -92,6 +92,8 @@ export declare var AdminEnableUserResponse$: StaticStructureSchema;
|
|
|
92
92
|
export declare var AdminForgetDeviceRequest$: StaticStructureSchema;
|
|
93
93
|
export declare var AdminGetDeviceRequest$: StaticStructureSchema;
|
|
94
94
|
export declare var AdminGetDeviceResponse$: StaticStructureSchema;
|
|
95
|
+
export declare var AdminGetUserAuthFactorsRequest$: StaticStructureSchema;
|
|
96
|
+
export declare var AdminGetUserAuthFactorsResponse$: StaticStructureSchema;
|
|
95
97
|
export declare var AdminGetUserRequest$: StaticStructureSchema;
|
|
96
98
|
export declare var AdminGetUserResponse$: StaticStructureSchema;
|
|
97
99
|
export declare var AdminInitiateAuthRequest$: StaticStructureSchema;
|
|
@@ -415,6 +417,7 @@ export declare var AdminEnableUser$: StaticOperationSchema;
|
|
|
415
417
|
export declare var AdminForgetDevice$: StaticOperationSchema;
|
|
416
418
|
export declare var AdminGetDevice$: StaticOperationSchema;
|
|
417
419
|
export declare var AdminGetUser$: StaticOperationSchema;
|
|
420
|
+
export declare var AdminGetUserAuthFactors$: StaticOperationSchema;
|
|
418
421
|
export declare var AdminInitiateAuth$: StaticOperationSchema;
|
|
419
422
|
export declare var AdminLinkProviderForUser$: StaticOperationSchema;
|
|
420
423
|
export declare var AdminListDevices$: StaticOperationSchema;
|
|
@@ -52,6 +52,10 @@ import {
|
|
|
52
52
|
AdminGetDeviceCommandInput,
|
|
53
53
|
AdminGetDeviceCommandOutput,
|
|
54
54
|
} from "./commands/AdminGetDeviceCommand";
|
|
55
|
+
import {
|
|
56
|
+
AdminGetUserAuthFactorsCommandInput,
|
|
57
|
+
AdminGetUserAuthFactorsCommandOutput,
|
|
58
|
+
} from "./commands/AdminGetUserAuthFactorsCommand";
|
|
55
59
|
import {
|
|
56
60
|
AdminGetUserCommandInput,
|
|
57
61
|
AdminGetUserCommandOutput,
|
|
@@ -635,6 +639,19 @@ export interface CognitoIdentityProvider {
|
|
|
635
639
|
options: __HttpHandlerOptions,
|
|
636
640
|
cb: (err: any, data?: AdminGetUserCommandOutput) => void,
|
|
637
641
|
): void;
|
|
642
|
+
adminGetUserAuthFactors(
|
|
643
|
+
args: AdminGetUserAuthFactorsCommandInput,
|
|
644
|
+
options?: __HttpHandlerOptions,
|
|
645
|
+
): Promise<AdminGetUserAuthFactorsCommandOutput>;
|
|
646
|
+
adminGetUserAuthFactors(
|
|
647
|
+
args: AdminGetUserAuthFactorsCommandInput,
|
|
648
|
+
cb: (err: any, data?: AdminGetUserAuthFactorsCommandOutput) => void,
|
|
649
|
+
): void;
|
|
650
|
+
adminGetUserAuthFactors(
|
|
651
|
+
args: AdminGetUserAuthFactorsCommandInput,
|
|
652
|
+
options: __HttpHandlerOptions,
|
|
653
|
+
cb: (err: any, data?: AdminGetUserAuthFactorsCommandOutput) => void,
|
|
654
|
+
): void;
|
|
638
655
|
adminInitiateAuth(
|
|
639
656
|
args: AdminInitiateAuthCommandInput,
|
|
640
657
|
options?: __HttpHandlerOptions,
|
|
@@ -81,6 +81,10 @@ import {
|
|
|
81
81
|
AdminGetDeviceCommandInput,
|
|
82
82
|
AdminGetDeviceCommandOutput,
|
|
83
83
|
} from "./commands/AdminGetDeviceCommand";
|
|
84
|
+
import {
|
|
85
|
+
AdminGetUserAuthFactorsCommandInput,
|
|
86
|
+
AdminGetUserAuthFactorsCommandOutput,
|
|
87
|
+
} from "./commands/AdminGetUserAuthFactorsCommand";
|
|
84
88
|
import {
|
|
85
89
|
AdminGetUserCommandInput,
|
|
86
90
|
AdminGetUserCommandOutput,
|
|
@@ -514,6 +518,7 @@ export type ServiceInputTypes =
|
|
|
514
518
|
| AdminEnableUserCommandInput
|
|
515
519
|
| AdminForgetDeviceCommandInput
|
|
516
520
|
| AdminGetDeviceCommandInput
|
|
521
|
+
| AdminGetUserAuthFactorsCommandInput
|
|
517
522
|
| AdminGetUserCommandInput
|
|
518
523
|
| AdminInitiateAuthCommandInput
|
|
519
524
|
| AdminLinkProviderForUserCommandInput
|
|
@@ -643,6 +648,7 @@ export type ServiceOutputTypes =
|
|
|
643
648
|
| AdminEnableUserCommandOutput
|
|
644
649
|
| AdminForgetDeviceCommandOutput
|
|
645
650
|
| AdminGetDeviceCommandOutput
|
|
651
|
+
| AdminGetUserAuthFactorsCommandOutput
|
|
646
652
|
| AdminGetUserCommandOutput
|
|
647
653
|
| AdminInitiateAuthCommandOutput
|
|
648
654
|
| AdminLinkProviderForUserCommandOutput
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
AdminGetUserAuthFactorsRequest,
|
|
4
|
+
AdminGetUserAuthFactorsResponse,
|
|
5
|
+
} from "../models/models_0";
|
|
6
|
+
export { __MetadataBearer };
|
|
7
|
+
export interface AdminGetUserAuthFactorsCommandInput extends AdminGetUserAuthFactorsRequest {}
|
|
8
|
+
export interface AdminGetUserAuthFactorsCommandOutput
|
|
9
|
+
extends AdminGetUserAuthFactorsResponse, __MetadataBearer {}
|
|
10
|
+
declare const AdminGetUserAuthFactorsCommand_base: {
|
|
11
|
+
new (
|
|
12
|
+
input: AdminGetUserAuthFactorsCommandInput,
|
|
13
|
+
): import("@smithy/core/client").CommandImpl<
|
|
14
|
+
AdminGetUserAuthFactorsCommandInput,
|
|
15
|
+
AdminGetUserAuthFactorsCommandOutput,
|
|
16
|
+
import("..").CognitoIdentityProviderClientResolvedConfig,
|
|
17
|
+
import("..").ServiceInputTypes,
|
|
18
|
+
import("..").ServiceOutputTypes
|
|
19
|
+
>;
|
|
20
|
+
new (
|
|
21
|
+
input: AdminGetUserAuthFactorsCommandInput,
|
|
22
|
+
): import("@smithy/core/client").CommandImpl<
|
|
23
|
+
AdminGetUserAuthFactorsCommandInput,
|
|
24
|
+
AdminGetUserAuthFactorsCommandOutput,
|
|
25
|
+
import("..").CognitoIdentityProviderClientResolvedConfig,
|
|
26
|
+
import("..").ServiceInputTypes,
|
|
27
|
+
import("..").ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
30
|
+
};
|
|
31
|
+
export declare class AdminGetUserAuthFactorsCommand extends AdminGetUserAuthFactorsCommand_base {
|
|
32
|
+
protected static __types: {
|
|
33
|
+
api: {
|
|
34
|
+
input: AdminGetUserAuthFactorsRequest;
|
|
35
|
+
output: AdminGetUserAuthFactorsResponse;
|
|
36
|
+
};
|
|
37
|
+
sdk: {
|
|
38
|
+
input: AdminGetUserAuthFactorsCommandInput;
|
|
39
|
+
output: AdminGetUserAuthFactorsCommandOutput;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -2,7 +2,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
|
2
2
|
import {
|
|
3
3
|
StartWebAuthnRegistrationRequest,
|
|
4
4
|
StartWebAuthnRegistrationResponse,
|
|
5
|
-
} from "../models/
|
|
5
|
+
} from "../models/models_1";
|
|
6
6
|
export { __MetadataBearer };
|
|
7
7
|
export interface StartWebAuthnRegistrationCommandInput extends StartWebAuthnRegistrationRequest {}
|
|
8
8
|
export interface StartWebAuthnRegistrationCommandOutput
|
|
@@ -10,6 +10,7 @@ export * from "./AdminDisableUserCommand";
|
|
|
10
10
|
export * from "./AdminEnableUserCommand";
|
|
11
11
|
export * from "./AdminForgetDeviceCommand";
|
|
12
12
|
export * from "./AdminGetDeviceCommand";
|
|
13
|
+
export * from "./AdminGetUserAuthFactorsCommand";
|
|
13
14
|
export * from "./AdminGetUserCommand";
|
|
14
15
|
export * from "./AdminInitiateAuthCommand";
|
|
15
16
|
export * from "./AdminLinkProviderForUserCommand";
|
|
@@ -41,6 +41,14 @@ export declare const UserStatusType: {
|
|
|
41
41
|
readonly UNKNOWN: "UNKNOWN";
|
|
42
42
|
};
|
|
43
43
|
export type UserStatusType = (typeof UserStatusType)[keyof typeof UserStatusType];
|
|
44
|
+
export declare const AuthFactorType: {
|
|
45
|
+
readonly EMAIL_OTP: "EMAIL_OTP";
|
|
46
|
+
readonly PASSWORD: "PASSWORD";
|
|
47
|
+
readonly SMS_OTP: "SMS_OTP";
|
|
48
|
+
readonly SOFTWARE_TOKEN: "SOFTWARE_TOKEN";
|
|
49
|
+
readonly WEB_AUTHN: "WEB_AUTHN";
|
|
50
|
+
};
|
|
51
|
+
export type AuthFactorType = (typeof AuthFactorType)[keyof typeof AuthFactorType];
|
|
44
52
|
export declare const AuthFlowType: {
|
|
45
53
|
readonly ADMIN_NO_SRP_AUTH: "ADMIN_NO_SRP_AUTH";
|
|
46
54
|
readonly ADMIN_USER_PASSWORD_AUTH: "ADMIN_USER_PASSWORD_AUTH";
|
|
@@ -137,13 +145,6 @@ export declare const AliasAttributeType: {
|
|
|
137
145
|
readonly PREFERRED_USERNAME: "preferred_username";
|
|
138
146
|
};
|
|
139
147
|
export type AliasAttributeType = (typeof AliasAttributeType)[keyof typeof AliasAttributeType];
|
|
140
|
-
export declare const AuthFactorType: {
|
|
141
|
-
readonly EMAIL_OTP: "EMAIL_OTP";
|
|
142
|
-
readonly PASSWORD: "PASSWORD";
|
|
143
|
-
readonly SMS_OTP: "SMS_OTP";
|
|
144
|
-
readonly WEB_AUTHN: "WEB_AUTHN";
|
|
145
|
-
};
|
|
146
|
-
export type AuthFactorType = (typeof AuthFactorType)[keyof typeof AuthFactorType];
|
|
147
148
|
export declare const AssetCategoryType: {
|
|
148
149
|
readonly AUTH_APP_GRAPHIC: "AUTH_APP_GRAPHIC";
|
|
149
150
|
readonly EMAIL_GRAPHIC: "EMAIL_GRAPHIC";
|
|
@@ -244,6 +244,16 @@ export interface AdminGetUserResponse {
|
|
|
244
244
|
PreferredMfaSetting?: string | undefined;
|
|
245
245
|
UserMFASettingList?: string[] | undefined;
|
|
246
246
|
}
|
|
247
|
+
export interface AdminGetUserAuthFactorsRequest {
|
|
248
|
+
UserPoolId: string | undefined;
|
|
249
|
+
Username: string | undefined;
|
|
250
|
+
}
|
|
251
|
+
export interface AdminGetUserAuthFactorsResponse {
|
|
252
|
+
Username: string | undefined;
|
|
253
|
+
PreferredMfaSetting?: string | undefined;
|
|
254
|
+
UserMFASettingList?: string[] | undefined;
|
|
255
|
+
ConfiguredUserAuthFactors?: AuthFactorType[] | undefined;
|
|
256
|
+
}
|
|
247
257
|
export interface AnalyticsMetadataType {
|
|
248
258
|
AnalyticsEndpointId?: string | undefined;
|
|
249
259
|
}
|
|
@@ -1541,9 +1551,3 @@ export interface StartUserImportJobRequest {
|
|
|
1541
1551
|
export interface StartUserImportJobResponse {
|
|
1542
1552
|
UserImportJob?: UserImportJobType | undefined;
|
|
1543
1553
|
}
|
|
1544
|
-
export interface StartWebAuthnRegistrationRequest {
|
|
1545
|
-
AccessToken: string | undefined;
|
|
1546
|
-
}
|
|
1547
|
-
export interface StartWebAuthnRegistrationResponse {
|
|
1548
|
-
CredentialCreationOptions: __DocumentType | undefined;
|
|
1549
|
-
}
|
|
@@ -47,6 +47,12 @@ import {
|
|
|
47
47
|
UserPoolReplicaType,
|
|
48
48
|
VerificationMessageTemplateType,
|
|
49
49
|
} from "./models_0";
|
|
50
|
+
export interface StartWebAuthnRegistrationRequest {
|
|
51
|
+
AccessToken: string | undefined;
|
|
52
|
+
}
|
|
53
|
+
export interface StartWebAuthnRegistrationResponse {
|
|
54
|
+
CredentialCreationOptions: __DocumentType | undefined;
|
|
55
|
+
}
|
|
50
56
|
export interface StopUserImportJobRequest {
|
|
51
57
|
UserPoolId: string | undefined;
|
|
52
58
|
JobId: string | undefined;
|
|
@@ -71,6 +71,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
71
71
|
},
|
|
72
72
|
) => import("@smithy/types").EndpointV2;
|
|
73
73
|
tls?: boolean;
|
|
74
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
74
75
|
serviceConfiguredEndpoint?: never;
|
|
75
76
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
76
77
|
httpAuthSchemes:
|
|
@@ -111,4 +112,5 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
111
112
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
112
113
|
import("@smithy/signature-v4").SignatureV4CryptoInit,
|
|
113
114
|
) => import("@smithy/types").RequestSigner;
|
|
115
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
114
116
|
};
|
|
@@ -72,6 +72,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
72
72
|
},
|
|
73
73
|
) => import("@smithy/types").EndpointV2;
|
|
74
74
|
tls?: boolean;
|
|
75
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
75
76
|
serviceConfiguredEndpoint?: never;
|
|
76
77
|
httpAuthSchemes:
|
|
77
78
|
| import("@smithy/types").HttpAuthScheme[]
|
|
@@ -111,4 +112,5 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
111
112
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
112
113
|
import("@smithy/signature-v4").SignatureV4CryptoInit,
|
|
113
114
|
) => import("@smithy/types").RequestSigner;
|
|
115
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
114
116
|
};
|
|
@@ -75,6 +75,7 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
75
75
|
},
|
|
76
76
|
) => import("@smithy/types").EndpointV2;
|
|
77
77
|
tls?: boolean;
|
|
78
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
78
79
|
serviceConfiguredEndpoint?: never;
|
|
79
80
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
80
81
|
httpAuthSchemes:
|
|
@@ -115,4 +116,5 @@ export declare const getRuntimeConfig: (config: CognitoIdentityProviderClientCon
|
|
|
115
116
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
116
117
|
import("@smithy/signature-v4").SignatureV4CryptoInit,
|
|
117
118
|
) => import("@smithy/types").RequestSigner;
|
|
119
|
+
disableClockSkewCorrection?: boolean | import("@smithy/types").Provider<boolean>;
|
|
118
120
|
};
|
|
@@ -87,6 +87,8 @@ export declare var AdminEnableUserResponse$: StaticStructureSchema;
|
|
|
87
87
|
export declare var AdminForgetDeviceRequest$: StaticStructureSchema;
|
|
88
88
|
export declare var AdminGetDeviceRequest$: StaticStructureSchema;
|
|
89
89
|
export declare var AdminGetDeviceResponse$: StaticStructureSchema;
|
|
90
|
+
export declare var AdminGetUserAuthFactorsRequest$: StaticStructureSchema;
|
|
91
|
+
export declare var AdminGetUserAuthFactorsResponse$: StaticStructureSchema;
|
|
90
92
|
export declare var AdminGetUserRequest$: StaticStructureSchema;
|
|
91
93
|
export declare var AdminGetUserResponse$: StaticStructureSchema;
|
|
92
94
|
export declare var AdminInitiateAuthRequest$: StaticStructureSchema;
|
|
@@ -410,6 +412,7 @@ export declare var AdminEnableUser$: StaticOperationSchema;
|
|
|
410
412
|
export declare var AdminForgetDevice$: StaticOperationSchema;
|
|
411
413
|
export declare var AdminGetDevice$: StaticOperationSchema;
|
|
412
414
|
export declare var AdminGetUser$: StaticOperationSchema;
|
|
415
|
+
export declare var AdminGetUserAuthFactors$: StaticOperationSchema;
|
|
413
416
|
export declare var AdminInitiateAuth$: StaticOperationSchema;
|
|
414
417
|
export declare var AdminLinkProviderForUser$: StaticOperationSchema;
|
|
415
418
|
export declare var AdminListDevices$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cognito-identity-provider",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1095.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity-provider",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@aws-sdk/core": "^3.
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
49
|
+
"@aws-sdk/core": "^3.977.0",
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.72",
|
|
51
51
|
"@aws-sdk/types": "^3.974.2",
|
|
52
|
-
"@smithy/core": "^3.29.
|
|
53
|
-
"@smithy/fetch-http-handler": "^5.6.
|
|
54
|
-
"@smithy/node-http-handler": "^4.9.
|
|
52
|
+
"@smithy/core": "^3.29.8",
|
|
53
|
+
"@smithy/fetch-http-handler": "^5.6.10",
|
|
54
|
+
"@smithy/node-http-handler": "^4.9.10",
|
|
55
55
|
"@smithy/types": "^4.16.1",
|
|
56
56
|
"tslib": "^2.6.2"
|
|
57
57
|
},
|