This repository has been archived by the owner on Sep 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 279
/
login.d.ts
129 lines (89 loc) · 2.63 KB
/
login.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
export interface LoginRequest {
/** Unsure, but looks to be hard-coded to 1 */
mix_mode?: number;
/** The unique username ("musername") of the user */
username?: string;
/** The email address associated with the user account */
email?: string;
/** The mobile number associated with the user account */
mobile?: string;
/** ??? */
account?: string;
/** The password to the user account */
password?: string;
/** The captcha answer - only required if a captcha was shown */
captcha?: string;
}
export interface LoginResponse {
data: LoginSuccessData | LoginErrorData;
/** A message indicating whether the request was successful or not */
message: string;
}
export interface LoginSuccessData {
/** ??? */
area: string;
/** The URL of the user's avatar */
avatar_url: string;
/** ??? */
bg_img_url: string;
/** The user's birthday */
birthday: string;
/** If the user allows people to find them by their phone number */
can_be_found_by_phone: number;
/** ??? */
connects: any[];
/** ??? */
description: string;
/** The email address associated with the account */
email: string;
/** The number of users that follow the user */
followers_count: 0;
/** The number of users the user is following */
followings_count: 0;
/** An integer representing the gender of the user */
gender: number;
/** ??? */
industry: string;
/** Indicates if the user account is blocked */
is_blocked: number;
/** ??? */
is_blocking: number;
/** ??? */
is_recommend_allowed: number;
/** ??? */
media_id: number;
/** The mobile number of the user */
mobile: string;
/** The name of the user - does not appear to be used */
name: string;
/** Indicates if the user is new or not */
new_user: number;
/** A Chinese character hint */
recommend_hint_message: string;
/** The screen name of the user - does not appear to be used */
screen_name: string;
/** The session ID used to authenticate subsequent requests in the sessionid cookie */
session_key: string;
/** ??? */
skip_edit_profile: number;
/** ??? */
user_auth_info: string;
/** The ID of the user */
user_id: string;
/** If the user is verified or not */
user_verified: boolean;
/** ??? */
verified_agency: string;
/** ??? */
verified_content: string;
/** The number of users that have visited the user's profile recently */
visit_count_recent: number;
}
export interface LoginErrorData {
/** If required, the captcha that must solved */
captcha: string;
/** A message explaining why the request failed */
description: string;
/** An error code */
error_code: number;
}