@aepstore-dev/contracts 1.90.0 → 1.92.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.d.ts +5 -9
- package/gen/users.ts +5 -9
- package/package.json +1 -1
- package/proto/users.proto +31 -27
package/gen/users.d.ts
CHANGED
|
@@ -41,6 +41,10 @@ export interface User {
|
|
|
41
41
|
banReason: string;
|
|
42
42
|
fullName: string;
|
|
43
43
|
avatarBorder: string;
|
|
44
|
+
/** Decimal as string */
|
|
45
|
+
rating: string;
|
|
46
|
+
subscribersCount: number;
|
|
47
|
+
productsCount: number;
|
|
44
48
|
}
|
|
45
49
|
export interface BanUserRequest {
|
|
46
50
|
adminId: string;
|
|
@@ -152,7 +156,6 @@ export interface PublicProfileResponse {
|
|
|
152
156
|
country: Country | undefined;
|
|
153
157
|
avatarUrl: string;
|
|
154
158
|
bannerUrl: string;
|
|
155
|
-
role: string;
|
|
156
159
|
createdAt: string;
|
|
157
160
|
hideSubscriptions: boolean;
|
|
158
161
|
/** Either populated lists or empty depending on hide_subscriptions */
|
|
@@ -161,17 +164,10 @@ export interface PublicProfileResponse {
|
|
|
161
164
|
isOwner: boolean;
|
|
162
165
|
/** viewer is subscribed to this profile (false when anonymous / self) */
|
|
163
166
|
isSubscribed: boolean;
|
|
164
|
-
/**
|
|
165
|
-
* Premium fields — populated only when the profile owner has an active
|
|
166
|
-
* PremiumSubscription. Non-premium viewers and non-premium profiles see
|
|
167
|
-
* empty strings / false.
|
|
168
|
-
*/
|
|
169
|
-
isPremium: boolean;
|
|
170
167
|
profileColor: string;
|
|
171
168
|
/** active border image URL, empty when absent */
|
|
172
169
|
avatarBorder: string;
|
|
173
|
-
|
|
174
|
-
premiumExpiresAt: string;
|
|
170
|
+
roles: string[];
|
|
175
171
|
}
|
|
176
172
|
export interface UpdateProfileRequest {
|
|
177
173
|
userId: string;
|
package/gen/users.ts
CHANGED
|
@@ -55,6 +55,10 @@ export interface User {
|
|
|
55
55
|
banReason: string;
|
|
56
56
|
fullName: string;
|
|
57
57
|
avatarBorder: string;
|
|
58
|
+
/** Decimal as string */
|
|
59
|
+
rating: string;
|
|
60
|
+
subscribersCount: number;
|
|
61
|
+
productsCount: number;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
export interface BanUserRequest {
|
|
@@ -180,7 +184,6 @@ export interface PublicProfileResponse {
|
|
|
180
184
|
country: Country | undefined;
|
|
181
185
|
avatarUrl: string;
|
|
182
186
|
bannerUrl: string;
|
|
183
|
-
role: string;
|
|
184
187
|
createdAt: string;
|
|
185
188
|
hideSubscriptions: boolean;
|
|
186
189
|
/** Either populated lists or empty depending on hide_subscriptions */
|
|
@@ -189,17 +192,10 @@ export interface PublicProfileResponse {
|
|
|
189
192
|
isOwner: boolean;
|
|
190
193
|
/** viewer is subscribed to this profile (false when anonymous / self) */
|
|
191
194
|
isSubscribed: boolean;
|
|
192
|
-
/**
|
|
193
|
-
* Premium fields — populated only when the profile owner has an active
|
|
194
|
-
* PremiumSubscription. Non-premium viewers and non-premium profiles see
|
|
195
|
-
* empty strings / false.
|
|
196
|
-
*/
|
|
197
|
-
isPremium: boolean;
|
|
198
195
|
profileColor: string;
|
|
199
196
|
/** active border image URL, empty when absent */
|
|
200
197
|
avatarBorder: string;
|
|
201
|
-
|
|
202
|
-
premiumExpiresAt: string;
|
|
198
|
+
roles: string[];
|
|
203
199
|
}
|
|
204
200
|
|
|
205
201
|
export interface UpdateProfileRequest {
|
package/package.json
CHANGED
package/proto/users.proto
CHANGED
|
@@ -74,10 +74,10 @@ message Ok { bool ok = 1; }
|
|
|
74
74
|
// Common types
|
|
75
75
|
// =================================================================
|
|
76
76
|
|
|
77
|
-
message User {
|
|
78
|
-
string id = 1;
|
|
79
|
-
string email = 2;
|
|
80
|
-
string username = 3;
|
|
77
|
+
message User {
|
|
78
|
+
string id = 1;
|
|
79
|
+
string email = 2;
|
|
80
|
+
string username = 3;
|
|
81
81
|
string avatar_url = 4;
|
|
82
82
|
repeated string roles = 5;
|
|
83
83
|
reserved 6;
|
|
@@ -89,6 +89,9 @@ message User {
|
|
|
89
89
|
string ban_reason = 11;
|
|
90
90
|
string full_name = 12;
|
|
91
91
|
string avatar_border = 13;
|
|
92
|
+
string rating = 14; // Decimal as string
|
|
93
|
+
int32 subscribers_count = 15;
|
|
94
|
+
int32 products_count = 16;
|
|
92
95
|
}
|
|
93
96
|
|
|
94
97
|
message BanUserRequest {
|
|
@@ -193,37 +196,38 @@ message GetPublicProfileRequest {
|
|
|
193
196
|
string viewer_user_id = 2; // optional — present when caller is authenticated
|
|
194
197
|
}
|
|
195
198
|
|
|
196
|
-
message PublicProfileResponse {
|
|
197
|
-
string id = 1;
|
|
198
|
-
string username = 2;
|
|
199
|
-
string full_name = 3;
|
|
199
|
+
message PublicProfileResponse {
|
|
200
|
+
string id = 1;
|
|
201
|
+
string username = 2;
|
|
202
|
+
string full_name = 3;
|
|
200
203
|
string rating = 4; // Decimal as string
|
|
201
204
|
string about_me = 5;
|
|
202
205
|
repeated SocialMedia social_media = 6;
|
|
203
206
|
ProfileStats stats = 7;
|
|
204
207
|
repeated Video videos = 8;
|
|
205
|
-
repeated Product products = 9;
|
|
206
|
-
Country country = 10;
|
|
207
|
-
string avatar_url = 11;
|
|
208
|
-
string banner_url = 12;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
repeated ProfileUser
|
|
215
|
-
|
|
216
|
-
bool
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
string profile_color = 21;
|
|
208
|
+
repeated Product products = 9;
|
|
209
|
+
Country country = 10;
|
|
210
|
+
string avatar_url = 11;
|
|
211
|
+
string banner_url = 12;
|
|
212
|
+
reserved 13;
|
|
213
|
+
reserved "role";
|
|
214
|
+
string created_at = 14;
|
|
215
|
+
bool hide_subscriptions = 15;
|
|
216
|
+
// Either populated lists or empty depending on hide_subscriptions
|
|
217
|
+
repeated ProfileUser subscriptions = 16;
|
|
218
|
+
repeated ProfileUser subscribers = 17;
|
|
219
|
+
bool is_owner = 18;
|
|
220
|
+
bool is_subscribed = 19; // viewer is subscribed to this profile (false when anonymous / self)
|
|
221
|
+
reserved 20;
|
|
222
|
+
reserved "is_premium";
|
|
223
|
+
string profile_color = 21;
|
|
222
224
|
string avatar_border = 22; // active border image URL, empty when absent
|
|
223
225
|
reserved 23, 24;
|
|
224
226
|
reserved "animated_avatar_url", "animated_banner_url";
|
|
225
|
-
|
|
226
|
-
|
|
227
|
+
reserved 25;
|
|
228
|
+
reserved "premium_expires_at";
|
|
229
|
+
repeated string roles = 26;
|
|
230
|
+
}
|
|
227
231
|
|
|
228
232
|
// =================================================================
|
|
229
233
|
// UpdateProfile
|