@aepstore-dev/contracts 1.24.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gen/users.ts +13 -4
- package/package.json +1 -1
- package/proto/users.proto +12 -4
package/gen/users.ts
CHANGED
|
@@ -124,6 +124,13 @@ export interface ProfileStats {
|
|
|
124
124
|
videosCount: number;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
/** Compact public user card for subscriber/subscription lists — no email/ban data. */
|
|
128
|
+
export interface ProfileUser {
|
|
129
|
+
id: string;
|
|
130
|
+
username: string;
|
|
131
|
+
avatarUrl: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
127
134
|
export interface GetPublicProfileRequest {
|
|
128
135
|
username: string;
|
|
129
136
|
/** optional — present when caller is authenticated */
|
|
@@ -148,9 +155,11 @@ export interface PublicProfileResponse {
|
|
|
148
155
|
createdAt: string;
|
|
149
156
|
hideSubscriptions: boolean;
|
|
150
157
|
/** Either populated lists or empty depending on hide_subscriptions */
|
|
151
|
-
subscriptions:
|
|
152
|
-
subscribers:
|
|
158
|
+
subscriptions: ProfileUser[];
|
|
159
|
+
subscribers: ProfileUser[];
|
|
153
160
|
isOwner: boolean;
|
|
161
|
+
/** viewer is subscribed to this profile (false when anonymous / self) */
|
|
162
|
+
isSubscribed: boolean;
|
|
154
163
|
}
|
|
155
164
|
|
|
156
165
|
export interface UpdateProfileRequest {
|
|
@@ -230,8 +239,8 @@ export interface GetUserFieldsRequest {
|
|
|
230
239
|
export interface GetUserFieldsResponse {
|
|
231
240
|
videos: Video[];
|
|
232
241
|
products: Product[];
|
|
233
|
-
subscriptions:
|
|
234
|
-
subscribers:
|
|
242
|
+
subscriptions: ProfileUser[];
|
|
243
|
+
subscribers: ProfileUser[];
|
|
235
244
|
total: number;
|
|
236
245
|
page: number;
|
|
237
246
|
limit: number;
|
package/package.json
CHANGED
package/proto/users.proto
CHANGED
|
@@ -119,6 +119,13 @@ message ProfileStats {
|
|
|
119
119
|
int32 videos_count = 4;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
// Compact public user card for subscriber/subscription lists — no email/ban data.
|
|
123
|
+
message ProfileUser {
|
|
124
|
+
string id = 1;
|
|
125
|
+
string username = 2;
|
|
126
|
+
string avatar_url = 3;
|
|
127
|
+
}
|
|
128
|
+
|
|
122
129
|
// =================================================================
|
|
123
130
|
// GetPublicProfile
|
|
124
131
|
// =================================================================
|
|
@@ -145,9 +152,10 @@ message PublicProfileResponse {
|
|
|
145
152
|
string created_at = 14;
|
|
146
153
|
bool hide_subscriptions = 15;
|
|
147
154
|
// Either populated lists or empty depending on hide_subscriptions
|
|
148
|
-
repeated
|
|
149
|
-
repeated
|
|
155
|
+
repeated ProfileUser subscriptions = 16;
|
|
156
|
+
repeated ProfileUser subscribers = 17;
|
|
150
157
|
bool is_owner = 18;
|
|
158
|
+
bool is_subscribed = 19; // viewer is subscribed to this profile (false when anonymous / self)
|
|
151
159
|
}
|
|
152
160
|
|
|
153
161
|
// =================================================================
|
|
@@ -256,8 +264,8 @@ message GetUserFieldsRequest {
|
|
|
256
264
|
message GetUserFieldsResponse {
|
|
257
265
|
repeated Video videos = 1;
|
|
258
266
|
repeated Product products = 2;
|
|
259
|
-
repeated
|
|
260
|
-
repeated
|
|
267
|
+
repeated ProfileUser subscriptions = 3;
|
|
268
|
+
repeated ProfileUser subscribers = 4;
|
|
261
269
|
int32 total = 5;
|
|
262
270
|
int32 page = 6;
|
|
263
271
|
int32 limit = 7;
|