-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathuser.pyi
More file actions
92 lines (55 loc) · 2.41 KB
/
Copy pathuser.pyi
File metadata and controls
92 lines (55 loc) · 2.41 KB
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
from typing import Any, Dict
import leancloud
from leancloud.role import Role
from leancloud.object_ import Object
from leancloud.query import Query
class User(Object):
_session_token = ... # type: str
def get_session_token(self) -> str:...
@classmethod
def create_follower_query(cls, user_id: str) -> Query:...
@classmethod
def create_followee_query(cls, user_id: str) -> Query:...
@classmethod
def get_current(cls) -> User:...
@classmethod
def become(cls, session_token: str) -> User:...
@property
def is_current(self) -> bool:...
# overrides Object.save()
def save(self, make_current=False) -> None:...
def sign_up(self, username: str=None, password: str=None) -> None:...
def login(self, username: str=None, password: str=None) -> None:...
def logout(self) -> None:...
@classmethod
def login_with_mobile_phone(cls, phone_number: str, password: str) -> User: ...
def follow(self, target_id: str) -> None:...
def unfollow(self, target_id: str) -> None:...
@classmethod
def login_with(cls, platform: str, third_party_auth_data: Dict) -> User:...
def link_with(self, provider: str, third_party_auth_data: Dict) -> User:...
def unlink_from(self, provider: str) -> User:...
def is_linked(self, provider: str) -> bool:...
@classmethod
def signup_or_login_with_mobile_phone(cls, phone_number: str, sms_code: str) -> User:...
def update_password(self, old_password: str, new_password: str) -> None:...
def get_username(self) -> str:...
def get_mobile_phone_number(self) -> str:...
def set_mobile_phone_number(self, phone_number: str) -> User:...
def set_username(self, username: str) -> User:...
def set_password(self, password: str) -> User:...
def set_email(self, email: str) -> User:...
def get_email(self) -> User:...
def get_roles(self): -> List[Role]
@classmethod
def request_password_reset(self, email: str) -> None:...
@classmethod
def request_email_verify(self, email: str) -> None:...
@classmethod
def request_mobile_phone_verify(cls, phone_number: str) -> None:...
@classmethod
def request_password_reset_by_sms_code(cls, phone_number: str) -> None:...
@classmethod
def reset_password_by_sms_code(cls, phone_number, new_password) -> None:...
@classmethod
def request_login_sms_code(cls, phone_number: str) -> None:...