@aepstore-dev/contracts 1.25.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 +11 -4
- package/package.json +1 -1
- package/proto/users.proto +11 -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,8 +155,8 @@ 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;
|
|
154
161
|
/** viewer is subscribed to this profile (false when anonymous / self) */
|
|
155
162
|
isSubscribed: boolean;
|
|
@@ -232,8 +239,8 @@ export interface GetUserFieldsRequest {
|
|
|
232
239
|
export interface GetUserFieldsResponse {
|
|
233
240
|
videos: Video[];
|
|
234
241
|
products: Product[];
|
|
235
|
-
subscriptions:
|
|
236
|
-
subscribers:
|
|
242
|
+
subscriptions: ProfileUser[];
|
|
243
|
+
subscribers: ProfileUser[];
|
|
237
244
|
total: number;
|
|
238
245
|
page: number;
|
|
239
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,8 +152,8 @@ 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;
|
|
151
158
|
bool is_subscribed = 19; // viewer is subscribed to this profile (false when anonymous / self)
|
|
152
159
|
}
|
|
@@ -257,8 +264,8 @@ message GetUserFieldsRequest {
|
|
|
257
264
|
message GetUserFieldsResponse {
|
|
258
265
|
repeated Video videos = 1;
|
|
259
266
|
repeated Product products = 2;
|
|
260
|
-
repeated
|
|
261
|
-
repeated
|
|
267
|
+
repeated ProfileUser subscriptions = 3;
|
|
268
|
+
repeated ProfileUser subscribers = 4;
|
|
262
269
|
int32 total = 5;
|
|
263
270
|
int32 page = 6;
|
|
264
271
|
int32 limit = 7;
|