@@ -10,20 +10,28 @@ message InternalServerError {}
10
10
// Types
11
11
message User { string address = 1 ; }
12
12
13
- message UserProfile {
13
+ message FriendProfile {
14
14
string address = 1 ;
15
15
string name = 2 ;
16
16
bool has_claimed_name = 3 ;
17
17
string profile_picture_url = 4 ;
18
18
}
19
19
20
+ message BlockedUserProfile {
21
+ string address = 1 ;
22
+ string name = 2 ;
23
+ bool has_claimed_name = 3 ;
24
+ string profile_picture_url = 4 ;
25
+ optional int64 blocked_at = 5 ;
26
+ }
27
+
20
28
message Pagination {
21
29
int32 limit = 1 ;
22
30
int32 offset = 2 ;
23
31
}
24
32
25
33
message FriendshipRequestResponse {
26
- UserProfile friend = 1 ;
34
+ FriendProfile friend = 1 ;
27
35
int64 created_at = 2 ;
28
36
optional string message = 3 ;
29
37
string id = 4 ;
@@ -77,7 +85,7 @@ message PaginatedResponse {
77
85
}
78
86
79
87
message PaginatedFriendsProfilesResponse {
80
- repeated UserProfile friends = 1 ;
88
+ repeated FriendProfile friends = 1 ;
81
89
PaginatedResponse pagination_data = 2 ;
82
90
}
83
91
@@ -93,7 +101,7 @@ message UpsertFriendshipResponse {
93
101
message Accepted {
94
102
string id = 1 ;
95
103
int64 created_at = 2 ;
96
- UserProfile friend = 3 ;
104
+ FriendProfile friend = 3 ;
97
105
optional string message = 4 ;
98
106
}
99
107
oneof response {
@@ -105,7 +113,7 @@ message UpsertFriendshipResponse {
105
113
106
114
message FriendshipUpdate {
107
115
message RequestResponse {
108
- UserProfile friend = 1 ;
116
+ FriendProfile friend = 1 ;
109
117
int64 created_at = 2 ;
110
118
optional string message = 3 ;
111
119
string id = 4 ;
@@ -125,7 +133,7 @@ message FriendshipUpdate {
125
133
}
126
134
127
135
message FriendConnectivityUpdate {
128
- UserProfile friend = 1 ;
136
+ FriendProfile friend = 1 ;
129
137
ConnectivityStatus status = 2 ;
130
138
}
131
139
@@ -161,7 +169,7 @@ message BlockUserPayload {
161
169
162
170
message BlockUserResponse {
163
171
message Ok {
164
- UserProfile profile = 1 ;
172
+ BlockedUserProfile profile = 1 ;
165
173
}
166
174
167
175
oneof response {
@@ -176,7 +184,7 @@ message UnblockUserPayload {
176
184
177
185
message UnblockUserResponse {
178
186
message Ok {
179
- UserProfile profile = 1 ;
187
+ BlockedUserProfile profile = 1 ;
180
188
}
181
189
182
190
oneof response {
@@ -190,7 +198,7 @@ message GetBlockedUsersPayload {
190
198
}
191
199
192
200
message GetBlockedUsersResponse {
193
- repeated UserProfile profiles = 1 ;
201
+ repeated BlockedUserProfile profiles = 1 ;
194
202
PaginatedResponse pagination_data = 2 ;
195
203
}
196
204
0 commit comments