-
Notifications
You must be signed in to change notification settings - Fork 4
/
models.py
63 lines (49 loc) · 1.09 KB
/
models.py
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
from pydantic import BaseModel
from typing import Optional
class NewPost(BaseModel):
bridge: str
access_key: str
value: str
class NewFriend(BaseModel):
access_key: str
name: str
bridge: str
public_key: str
class DeletedFriend(BaseModel):
access_key: str
key: str
class NewKey(BaseModel):
access_key: str
new_key: str
class NewName(BaseModel):
access_key: str
new_name: str
class AddFriend(BaseModel):
name: str
bridge: str
public_key: str
class NewBio(BaseModel):
bio: str
class ReceivedNotif(BaseModel):
bridge: str
key: str
class EditingItem(BaseModel):
item: str
key: Optional[str] = None
content: Optional[str] = None
delete: Optional[bool] = False
class ReactedPost(BaseModel):
postkey: str
emoji: str
bridge: str
class ReceivedMessage(BaseModel):
content: str
key: str
class RespondMessage(BaseModel):
content: str
key: str
class RemoveFriend(BaseModel):
key: str
class UpdatedCredentials(BaseModel):
login: str
password: str