UNPKG

1.23 kBTypeScriptView Raw
1export interface AccountRepositoryLoginErrorResponse {
2 message: string;
3 invalid_credentials: boolean;
4 two_factor_required: boolean;
5 two_factor_info: AccountRepositoryLoginErrorResponseTwoFactorInfo;
6 error_title: string;
7 buttons: AccountRepositoryLoginBadPasswordResponseButtonsItem[];
8 status: string;
9 error_type: string;
10 phone_verification_settings: AccountRepositoryLoginErrorResponsePhoneVerificationSettings;
11}
12export interface AccountRepositoryLoginErrorResponseTwoFactorInfo {
13 username: string;
14 sms_two_factor_on: boolean;
15 totp_two_factor_on: boolean;
16 obfuscated_phone_number: string;
17 two_factor_identifier: string;
18 show_messenger_code_option: boolean;
19 show_new_login_screen: boolean;
20 show_trusted_device_option: boolean;
21 phone_verification_settings: AccountRepositoryLoginErrorResponsePhoneVerificationSettings;
22}
23export interface AccountRepositoryLoginErrorResponsePhoneVerificationSettings {
24 max_sms_count: number;
25 resend_sms_delay_sec: number;
26 robocall_count_down_time_sec: number;
27 robocall_after_max_sms: boolean;
28}
29export interface AccountRepositoryLoginBadPasswordResponseButtonsItem {
30 title: string;
31 action: string;
32}