UNPKG

4.01 kBTypeScriptView Raw
1import { AuthVerifiableAttributeKey } from '@aws-amplify/core/internals/utils';
2import { ConfirmResetPasswordOptions, ConfirmSignInOptions, ConfirmSignUpOptions, MFAPreference, ResendSignUpCodeOptions, ResetPasswordOptions, SendUserAttributeVerificationCodeOptions, SignInOptions, SignUpOptions, UpdateUserAttributeOptions, UpdateUserAttributesOptions, UserAttributeKey, VerifiableUserAttributeKey, VerifyTOTPSetupOptions } from '../types';
3import { AuthConfirmResetPasswordInput, AuthConfirmSignInInput, AuthConfirmSignUpInput, AuthConfirmUserAttributeInput, AuthDeleteUserAttributesInput, AuthForgetDeviceInput, AuthResendSignUpCodeInput, AuthResetPasswordInput, AuthSendUserAttributeVerificationCodeInput, AuthSignInInput, AuthSignInWithRedirectInput, AuthSignOutInput, AuthSignUpInput, AuthUpdatePasswordInput, AuthUpdateUserAttributeInput, AuthUpdateUserAttributesInput, AuthVerifyTOTPSetupInput } from '../../../types';
4/**
5 * Input type for Cognito confirmResetPassword API.
6 */
7export type ConfirmResetPasswordInput = AuthConfirmResetPasswordInput<ConfirmResetPasswordOptions>;
8/**
9 * Input type for Cognito confirmSignIn API.
10 */
11export type ConfirmSignInInput = AuthConfirmSignInInput<ConfirmSignInOptions>;
12/**
13 * Input type for Cognito confirmSignUp API.
14 */
15export type ConfirmSignUpInput = AuthConfirmSignUpInput<ConfirmSignUpOptions>;
16/**
17 * Input type for Cognito confirmUserAttribute API.
18 */
19export type ConfirmUserAttributeInput = AuthConfirmUserAttributeInput<AuthVerifiableAttributeKey>;
20/**
21 * Input type for Cognito resendSignUpCode API.
22 */
23export type ResendSignUpCodeInput = AuthResendSignUpCodeInput<ResendSignUpCodeOptions>;
24/**
25 * Input type for Cognito resetPassword API.
26 */
27export type ResetPasswordInput = AuthResetPasswordInput<ResetPasswordOptions>;
28/**
29 * Input type for Cognito signIn API.
30 */
31export type SignInInput = AuthSignInInput<SignInOptions>;
32/**
33 * Input type for Cognito signInWithCustomAuth API.
34 */
35export type SignInWithCustomAuthInput = AuthSignInInput<SignInOptions>;
36/**
37 * Input type for Cognito signInWithCustomSRPAuth API.
38 */
39export type SignInWithCustomSRPAuthInput = AuthSignInInput<SignInOptions>;
40/**
41 * Input type for Cognito signInWithSRP API.
42 */
43export type SignInWithSRPInput = AuthSignInInput<SignInOptions>;
44/**
45 * Input type for Cognito signInWithUserPasswordInput API.
46 */
47export type SignInWithUserPasswordInput = AuthSignInInput<SignInOptions>;
48/**
49 * Input type for Cognito signInWithRedirect API.
50 */
51export type SignInWithRedirectInput = AuthSignInWithRedirectInput;
52/**
53 * Input type for Cognito signOut API.
54 */
55export type SignOutInput = AuthSignOutInput;
56/**
57 * Input type for Cognito signUp API.
58 */
59export type SignUpInput = AuthSignUpInput<SignUpOptions<UserAttributeKey>>;
60/**
61 * Input type for Cognito updateMFAPreference API.
62 */
63export interface UpdateMFAPreferenceInput {
64 sms?: MFAPreference;
65 totp?: MFAPreference;
66}
67/**
68 * Input type for Cognito updatePassword API.
69 */
70export type UpdatePasswordInput = AuthUpdatePasswordInput;
71/**
72 * Input type for Cognito updateUserAttributes API.
73 */
74export type UpdateUserAttributesInput = AuthUpdateUserAttributesInput<UserAttributeKey, UpdateUserAttributesOptions>;
75/**
76 * Input type for Cognito verifyTOTPSetup API.
77 */
78export type VerifyTOTPSetupInput = AuthVerifyTOTPSetupInput<VerifyTOTPSetupOptions>;
79/**
80 * Input type for Cognito sendUserAttributeVerificationCode API.
81 */
82export type SendUserAttributeVerificationCodeInput = AuthSendUserAttributeVerificationCodeInput<VerifiableUserAttributeKey, SendUserAttributeVerificationCodeOptions>;
83/**
84 * Input type for Cognito updateUserAttribute API.
85 */
86export type UpdateUserAttributeInput = AuthUpdateUserAttributeInput<UserAttributeKey, UpdateUserAttributeOptions>;
87/**
88 * Input type for Cognito deleteUserAttributes API.
89 */
90export type DeleteUserAttributesInput = AuthDeleteUserAttributesInput<UserAttributeKey>;
91/**
92 * Input type for Cognito forgetDevice API.
93 */
94export type ForgetDeviceInput = AuthForgetDeviceInput;