@aepstore-dev/contracts 1.61.0 → 1.63.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/proto/users.proto CHANGED
@@ -1,402 +1,402 @@
1
- syntax = "proto3";
2
-
3
- package users.v1;
4
-
5
- service UsersService {
6
- rpc GetPublicProfile(GetPublicProfileRequest) returns (PublicProfileResponse);
7
- rpc UpdateProfile(UpdateProfileRequest) returns (PublicProfileResponse);
8
- rpc UpdateUser(UpdateUserRequest) returns (UserResponse);
9
- rpc CheckAvailability(CheckAvailabilityRequest) returns (CheckAvailabilityResponse);
10
- rpc UpdateUserRole(UpdateUserRoleRequest) returns (UserResponse);
11
- rpc GetUsers(GetUsersRequest) returns (GetUsersResponse);
12
- rpc GetActiveDevices(GetActiveDevicesRequest) returns (GetActiveDevicesResponse);
13
- rpc ManageDevices(ManageDevicesRequest) returns (ManageDevicesResponse);
14
- rpc GetUserFields(GetUserFieldsRequest) returns (GetUserFieldsResponse);
15
-
16
- rpc CreateSubscription(SubscriptionRequest) returns (SubscriptionResponse);
17
- rpc DeleteSubscription(SubscriptionRequest) returns (SubscriptionResponse);
18
-
19
- rpc BanUser(BanUserRequest) returns (UserResponse);
20
- rpc UnbanUser(UnbanUserRequest) returns (UserResponse);
21
-
22
- // Premium (paid). State lives in users-service; payments-service handles
23
- // money and calls ActivatePremium (internal) on completion.
24
- rpc GetMyPremium(GetMyPremiumRequest) returns (PremiumStateResponse);
25
- rpc SetPremiumAutoRenew(SetPremiumAutoRenewRequest) returns (PremiumStateResponse);
26
- // Internal — InternalServiceGuard. Called by payments-service after a
27
- // successful premium payment (balance or YooKassa webhook).
28
- rpc ActivatePremium(ActivatePremiumRequest) returns (PremiumStateResponse);
29
- // Internal — fast lookup for the commission engine in payments-service.
30
- rpc IsPremiumActive(IsPremiumActiveRequest) returns (IsPremiumActiveResponse);
31
-
32
- // Avatar borders (catalog + admin CRUD). Catalog read is public; mutations
33
- // are admin only (gateway enforces with RolesGuard).
34
- rpc ListAvatarBorders(ListAvatarBordersRequest) returns (ListAvatarBordersResponse);
35
- rpc UpsertAvatarBorder(UpsertAvatarBorderRequest) returns (AvatarBorder);
36
- rpc DeleteAvatarBorder(DeleteAvatarBorderRequest) returns (DeleteAvatarBorderResponse);
37
-
38
- // Account settings — bundled write surface for the UI.
39
- rpc UpdatePrivacy(UpdatePrivacyRequest) returns (PublicProfileResponse);
40
- rpc UpdateEmailPrefs(UpdateEmailPrefsRequest) returns (UpdateEmailPrefsResponse);
41
- rpc UpdateLocale(UpdateLocaleRequest) returns (UpdateLocaleResponse);
42
-
43
- // Soft-delete + restore. Internal AuthService also queries the soft-delete
44
- // state on login (rejects if deletedAt set).
45
- rpc SoftDeleteAccount(SoftDeleteAccountRequest) returns (SoftDeleteAccountResponse);
46
- rpc RestoreAccount(RestoreAccountRequest) returns (UserResponse);
47
- rpc HardDeletePending(HardDeletePendingRequest) returns (HardDeletePendingResponse); // tasks-service cron
48
-
49
- // Blocks
50
- rpc BlockUser(BlockUserRequest) returns (BlockUserResponse);
51
- rpc UnblockUser(BlockUserRequest) returns (BlockUserResponse);
52
- rpc ListBlockedUsers(ListBlockedUsersRequest) returns (ListBlockedUsersResponse);
53
- rpc IsBlocked(IsBlockedRequest) returns (IsBlockedResponse); // internal lookup
54
-
55
- // Data export
56
- rpc RequestDataExport(RequestDataExportRequest) returns (DataExportRequestRow);
57
- rpc ListDataExports(ListDataExportsRequest) returns (ListDataExportsResponse);
58
- rpc PickPendingDataExport(PickPendingDataExportRequest) returns (DataExportRequestRow); // tasks-service
59
- rpc CompleteDataExport(CompleteDataExportRequest) returns (DataExportRequestRow); // tasks-service
60
- rpc CollectUserExportData(CollectUserExportDataRequest) returns (CollectUserExportDataResponse); // tasks-service
61
-
62
- // Unified read for the settings page
63
- rpc GetAccountSettings(GetAccountSettingsRequest) returns (AccountSettingsResponse);
64
-
65
- // Password — separate from generic createCode/verifyCode reset flow.
66
- rpc ChangePassword(ChangePasswordRequest) returns (Ok);
67
- }
68
-
69
- message Ok { bool ok = 1; }
70
-
71
- // =================================================================
72
- // Common types
73
- // =================================================================
74
-
75
- message User {
76
- string id = 1;
77
- string email = 2;
78
- string username = 3;
79
- string avatar_url = 4;
80
- repeated string roles = 5;
81
- reserved 6;
82
- reserved "role";
83
- string created_at = 7; // ISO 8601
84
- string updated_at = 8;
85
- bool is_banned = 9;
86
- string banned_until = 10; // ISO 8601, empty = permanent/none
87
- string ban_reason = 11;
88
- string full_name = 12;
89
- string avatar_border_image_url = 13;
90
- }
91
-
92
- message BanUserRequest {
93
- string admin_id = 1;
94
- string user_id = 2;
95
- string reason = 3;
96
- string until = 4; // ISO 8601; empty = permanent ban
97
- }
98
-
99
- message UnbanUserRequest {
100
- string admin_id = 1;
101
- string user_id = 2;
102
- }
103
-
104
- message Country {
105
- string id = 1;
106
- string code = 2;
107
- string name = 3;
108
- }
109
-
110
- message SocialMedia {
111
- string id = 1;
112
- string platform = 2;
113
- string url = 3; // full link (built from username on read; empty for discord)
114
- string username = 4; // handle for handle-based platforms; empty for website
115
- }
116
-
117
- message CreateSocialMedia {
118
- string platform = 1;
119
- string url = 2; // only for platform="website"
120
- string username = 3; // handle for all other platforms
121
- }
122
-
123
- message ProductUser {
124
- string id = 1;
125
- string username = 2;
126
- string avatar_url = 3;
127
- }
128
-
129
- message Category {
130
- string id = 1;
131
- string name = 2;
132
- }
133
-
134
- message Product {
135
- string id = 1;
136
- string name = 2;
137
- string description = 3;
138
- string price = 4; // Decimal as string (D7)
139
- string created_at = 5;
140
- string updated_at = 6;
141
- // profile-card preview fields
142
- string preview = 7;
143
- string final_price = 8; // Decimal as string
144
- string average_rating = 9; // number as string
145
- string status = 10;
146
- // Author of the product (same person as the profile owner, but echoed per
147
- // product so cards can render the author independently).
148
- ProductUser user = 11;
149
- repeated Category categories = 12;
150
- }
151
-
152
- message Video {
153
- string id = 1;
154
- string title = 2;
155
- string description = 3;
156
- string url = 4;
157
- string created_at = 5;
158
- string updated_at = 6;
159
- }
160
-
161
- message ActiveDevice {
162
- string id = 1;
163
- string user_agent = 2;
164
- string ip = 3;
165
- string created_at = 4;
166
- string last_used_at = 5;
167
- }
168
-
169
- message ProfileStats {
170
- int32 subscribers_count = 1;
171
- int32 subscriptions_count = 2;
172
- int32 products_count = 3;
173
- int32 videos_count = 4;
174
- }
175
-
176
- // Compact public user card for subscriber/subscription lists — no email/ban data.
177
- message ProfileUser {
178
- string id = 1;
179
- string username = 2;
180
- string avatar_url = 3;
181
- string full_name = 4;
182
- string avatar_border_image_url = 5;
183
- }
184
-
185
- // =================================================================
186
- // GetPublicProfile
187
- // =================================================================
188
-
189
- message GetPublicProfileRequest {
190
- string username = 1;
191
- string viewer_user_id = 2; // optional — present when caller is authenticated
192
- }
193
-
194
- message PublicProfileResponse {
195
- string id = 1;
196
- string username = 2;
197
- string full_name = 3;
198
- string rating = 4; // Decimal as string
199
- string about_me = 5;
200
- repeated SocialMedia social_media = 6;
201
- ProfileStats stats = 7;
202
- repeated Video videos = 8;
203
- repeated Product products = 9;
204
- Country country = 10;
205
- string avatar_url = 11;
206
- string banner_url = 12;
207
- string role = 13;
208
- string created_at = 14;
209
- bool hide_subscriptions = 15;
210
- // Either populated lists or empty depending on hide_subscriptions
211
- repeated ProfileUser subscriptions = 16;
212
- repeated ProfileUser subscribers = 17;
213
- bool is_owner = 18;
214
- bool is_subscribed = 19; // viewer is subscribed to this profile (false when anonymous / self)
215
- // Premium fields — populated only when the profile owner has an active
216
- // PremiumSubscription. Non-premium viewers and non-premium profiles see
217
- // empty strings / false.
218
- bool is_premium = 20;
219
- string profile_color = 21;
220
- AvatarBorder avatar_border = 22;
221
- string animated_avatar_url = 23;
222
- string animated_banner_url = 24;
223
- string premium_expires_at = 25; // ISO 8601, empty when not premium
224
- }
225
-
226
- // =================================================================
227
- // UpdateProfile
228
- // =================================================================
229
-
230
- message UpdateProfileRequest {
231
- string user_id = 1;
232
- // Every editable field is `optional` so the wire format preserves the
233
- // "not set" state. A partial patch from the client (e.g. only avatarUrl)
234
- // no longer accidentally wipes the other columns to proto3 defaults.
235
- optional string full_name = 2;
236
- optional string about_me = 3;
237
- optional bool newsletter_subscription = 4;
238
- optional bool hide_subscriptions = 5;
239
- optional string avatar_url = 6;
240
- optional string banner_url = 7;
241
- optional string country_id = 8;
242
- optional string timezone = 9;
243
- // social_media remains repeated (an empty list is still a meaningful
244
- // "replace with empty"); the gateway omits the field entirely when the
245
- // client didn't send it so partial patches don't clear social links.
246
- repeated CreateSocialMedia social_media = 10;
247
- // Premium-only fields — rejected with FAILED_PRECONDITION when the caller
248
- // has no active premium. `''` = no change, `__clear__` = explicit reset.
249
- optional string profile_color = 11;
250
- optional string avatar_border_id = 12;
251
- optional string animated_avatar_url = 13;
252
- optional string animated_banner_url = 14;
253
- }
254
-
255
- // =================================================================
256
- // UpdateUser
257
- // =================================================================
258
-
259
- message UpdateUserRequest {
260
- string user_id = 1;
261
- string username = 2;
262
- string email = 3;
263
- string code = 4; // confirmation code when changing email/username
264
- }
265
-
266
- message UserResponse {
267
- User user = 1;
268
- }
269
-
270
- // Lightweight uniqueness probe for signup / account-settings forms. Called
271
- // often (per keystroke/blur) — backed by a single indexed query, no writes.
272
- // Mirrors the exact-match uniqueness check in UpdateUser so availability never
273
- // disagrees with the real collision at submit time.
274
- message CheckAvailabilityRequest {
275
- string username = 1; // empty = skip this field
276
- string email = 2; // empty = skip this field
277
- string exclude_user_id = 3; // empty = none; set to current user so editing
278
- // your OWN account doesn't report "taken"
279
- }
280
-
281
- message CheckAvailabilityResponse {
282
- bool username_checked = 1; // false = username wasn't part of the query
283
- bool username_available = 2;
284
- bool email_checked = 3; // false = email wasn't part of the query
285
- bool email_available = 4;
286
- }
287
-
288
- // =================================================================
289
- // UpdateUserRole (admin)
290
- // =================================================================
291
-
292
- message UpdateUserRoleRequest {
293
- string admin_id = 1;
294
- string user_id = 2;
295
- string role = 3;
296
- string action = 4; // "grant" (default) | "revoke"
297
- }
298
-
299
- // =================================================================
300
- // GetUsers (paginated)
301
- // =================================================================
302
-
303
- message GetUsersRequest {
304
- string page = 1;
305
- string limit = 2;
306
- string search = 3;
307
- string role_name = 4;
308
- }
309
-
310
- message GetUsersResponse {
311
- repeated User items = 1;
312
- int32 total = 2;
313
- int32 page = 3;
314
- int32 limit = 4;
315
- }
316
-
317
- // =================================================================
318
- // Active devices
319
- // =================================================================
320
-
321
- message GetActiveDevicesRequest {
322
- string user_id = 1;
323
- }
324
-
325
- message GetActiveDevicesResponse {
326
- repeated ActiveDevice devices = 1;
327
- }
328
-
329
- message ManageDevicesRequest {
330
- string user_id = 1;
331
- repeated string device_ids_to_remove = 2;
332
- }
333
-
334
- message ManageDevicesResponse {
335
- bool ok = 1;
336
- int32 removed_count = 2;
337
- }
338
-
339
- // =================================================================
340
- // GetUserFields — paginated dynamic field sets
341
- // =================================================================
342
-
343
- enum UserFieldsType {
344
- USER_FIELDS_TYPE_UNSPECIFIED = 0;
345
- USER_FIELDS_TYPE_VIDEOS = 1;
346
- USER_FIELDS_TYPE_PRODUCTS = 2;
347
- USER_FIELDS_TYPE_SUBSCRIPTIONS = 3;
348
- USER_FIELDS_TYPE_SUBSCRIBERS = 4;
349
- }
350
-
351
- message GetUserFieldsRequest {
352
- string username = 1;
353
- UserFieldsType type = 2;
354
- int32 page = 3;
355
- int32 limit = 4;
356
- string viewer_user_id = 5; // optional
357
- }
358
-
359
- message GetUserFieldsResponse {
360
- repeated Video videos = 1;
361
- repeated Product products = 2;
362
- repeated ProfileUser subscriptions = 3;
363
- repeated ProfileUser subscribers = 4;
364
- int32 total = 5;
365
- int32 page = 6;
366
- int32 limit = 7;
367
- }
368
-
369
- // =================================================================
370
- // Subscriptions
371
- // =================================================================
372
-
373
- message SubscriptionRequest {
374
- string subscriber_id = 1; // the authenticated user performing the action
375
- string target_id = 2; // the user being (un)subscribed to/from
376
- }
377
-
378
- message SubscriptionResponse {
379
- bool subscribed = 1; // state after the call
380
- int32 subscribers_count = 2; // target's subscriber count after the call
381
- }
382
-
383
- // =================================================================
384
- // Premium
385
- // =================================================================
386
-
387
- // Periods mirror PremiumPeriod enum in schema.prisma.
388
- enum PremiumPeriod {
389
- PREMIUM_PERIOD_UNSPECIFIED = 0;
390
- PREMIUM_PERIOD_MONTH_1 = 1;
391
- PREMIUM_PERIOD_MONTH_3 = 2;
392
- PREMIUM_PERIOD_MONTH_6 = 3;
393
- PREMIUM_PERIOD_MONTH_12 = 4;
394
- }
395
-
396
- message GetMyPremiumRequest {
397
- string user_id = 1;
398
- }
399
-
1
+ syntax = "proto3";
2
+
3
+ package users.v1;
4
+
5
+ service UsersService {
6
+ rpc GetPublicProfile(GetPublicProfileRequest) returns (PublicProfileResponse);
7
+ rpc UpdateProfile(UpdateProfileRequest) returns (PublicProfileResponse);
8
+ rpc UpdateUser(UpdateUserRequest) returns (UserResponse);
9
+ rpc CheckAvailability(CheckAvailabilityRequest) returns (CheckAvailabilityResponse);
10
+ rpc UpdateUserRole(UpdateUserRoleRequest) returns (UserResponse);
11
+ rpc GetUsers(GetUsersRequest) returns (GetUsersResponse);
12
+ rpc GetActiveDevices(GetActiveDevicesRequest) returns (GetActiveDevicesResponse);
13
+ rpc ManageDevices(ManageDevicesRequest) returns (ManageDevicesResponse);
14
+ rpc GetUserFields(GetUserFieldsRequest) returns (GetUserFieldsResponse);
15
+
16
+ rpc CreateSubscription(SubscriptionRequest) returns (SubscriptionResponse);
17
+ rpc DeleteSubscription(SubscriptionRequest) returns (SubscriptionResponse);
18
+
19
+ rpc BanUser(BanUserRequest) returns (UserResponse);
20
+ rpc UnbanUser(UnbanUserRequest) returns (UserResponse);
21
+
22
+ // Premium (paid). State lives in users-service; payments-service handles
23
+ // money and calls ActivatePremium (internal) on completion.
24
+ rpc GetMyPremium(GetMyPremiumRequest) returns (PremiumStateResponse);
25
+ rpc SetPremiumAutoRenew(SetPremiumAutoRenewRequest) returns (PremiumStateResponse);
26
+ // Internal — InternalServiceGuard. Called by payments-service after a
27
+ // successful premium payment (balance or YooKassa webhook).
28
+ rpc ActivatePremium(ActivatePremiumRequest) returns (PremiumStateResponse);
29
+ // Internal — fast lookup for the commission engine in payments-service.
30
+ rpc IsPremiumActive(IsPremiumActiveRequest) returns (IsPremiumActiveResponse);
31
+
32
+ // Avatar borders (catalog + admin CRUD). Catalog read is public; mutations
33
+ // are admin only (gateway enforces with RolesGuard).
34
+ rpc ListAvatarBorders(ListAvatarBordersRequest) returns (ListAvatarBordersResponse);
35
+ rpc UpsertAvatarBorder(UpsertAvatarBorderRequest) returns (AvatarBorder);
36
+ rpc DeleteAvatarBorder(DeleteAvatarBorderRequest) returns (DeleteAvatarBorderResponse);
37
+
38
+ // Account settings — bundled write surface for the UI.
39
+ rpc UpdatePrivacy(UpdatePrivacyRequest) returns (PublicProfileResponse);
40
+ rpc UpdateEmailPrefs(UpdateEmailPrefsRequest) returns (UpdateEmailPrefsResponse);
41
+ rpc UpdateLocale(UpdateLocaleRequest) returns (UpdateLocaleResponse);
42
+
43
+ // Soft-delete + restore. Internal AuthService also queries the soft-delete
44
+ // state on login (rejects if deletedAt set).
45
+ rpc SoftDeleteAccount(SoftDeleteAccountRequest) returns (SoftDeleteAccountResponse);
46
+ rpc RestoreAccount(RestoreAccountRequest) returns (UserResponse);
47
+ rpc HardDeletePending(HardDeletePendingRequest) returns (HardDeletePendingResponse); // tasks-service cron
48
+
49
+ // Blocks
50
+ rpc BlockUser(BlockUserRequest) returns (BlockUserResponse);
51
+ rpc UnblockUser(BlockUserRequest) returns (BlockUserResponse);
52
+ rpc ListBlockedUsers(ListBlockedUsersRequest) returns (ListBlockedUsersResponse);
53
+ rpc IsBlocked(IsBlockedRequest) returns (IsBlockedResponse); // internal lookup
54
+
55
+ // Data export
56
+ rpc RequestDataExport(RequestDataExportRequest) returns (DataExportRequestRow);
57
+ rpc ListDataExports(ListDataExportsRequest) returns (ListDataExportsResponse);
58
+ rpc PickPendingDataExport(PickPendingDataExportRequest) returns (DataExportRequestRow); // tasks-service
59
+ rpc CompleteDataExport(CompleteDataExportRequest) returns (DataExportRequestRow); // tasks-service
60
+ rpc CollectUserExportData(CollectUserExportDataRequest) returns (CollectUserExportDataResponse); // tasks-service
61
+
62
+ // Unified read for the settings page
63
+ rpc GetAccountSettings(GetAccountSettingsRequest) returns (AccountSettingsResponse);
64
+
65
+ // Password — separate from generic createCode/verifyCode reset flow.
66
+ rpc ChangePassword(ChangePasswordRequest) returns (Ok);
67
+ }
68
+
69
+ message Ok { bool ok = 1; }
70
+
71
+ // =================================================================
72
+ // Common types
73
+ // =================================================================
74
+
75
+ message User {
76
+ string id = 1;
77
+ string email = 2;
78
+ string username = 3;
79
+ string avatar_url = 4;
80
+ repeated string roles = 5;
81
+ reserved 6;
82
+ reserved "role";
83
+ string created_at = 7; // ISO 8601
84
+ string updated_at = 8;
85
+ bool is_banned = 9;
86
+ string banned_until = 10; // ISO 8601, empty = permanent/none
87
+ string ban_reason = 11;
88
+ string full_name = 12;
89
+ string avatar_border_image_url = 13;
90
+ }
91
+
92
+ message BanUserRequest {
93
+ string admin_id = 1;
94
+ string user_id = 2;
95
+ string reason = 3;
96
+ string until = 4; // ISO 8601; empty = permanent ban
97
+ }
98
+
99
+ message UnbanUserRequest {
100
+ string admin_id = 1;
101
+ string user_id = 2;
102
+ }
103
+
104
+ message Country {
105
+ string id = 1;
106
+ string code = 2;
107
+ string name = 3;
108
+ }
109
+
110
+ message SocialMedia {
111
+ string id = 1;
112
+ string platform = 2;
113
+ string url = 3; // full link (built from username on read; empty for discord)
114
+ string username = 4; // handle for handle-based platforms; empty for website
115
+ }
116
+
117
+ message CreateSocialMedia {
118
+ string platform = 1;
119
+ string url = 2; // only for platform="website"
120
+ string username = 3; // handle for all other platforms
121
+ }
122
+
123
+ message ProductUser {
124
+ string id = 1;
125
+ string username = 2;
126
+ string avatar_url = 3;
127
+ }
128
+
129
+ message Category {
130
+ string id = 1;
131
+ string name = 2;
132
+ }
133
+
134
+ message Product {
135
+ string id = 1;
136
+ string name = 2;
137
+ string description = 3;
138
+ string price = 4; // Decimal as string (D7)
139
+ string created_at = 5;
140
+ string updated_at = 6;
141
+ // profile-card preview fields
142
+ string preview = 7;
143
+ string final_price = 8; // Decimal as string
144
+ string average_rating = 9; // number as string
145
+ string status = 10;
146
+ // Author of the product (same person as the profile owner, but echoed per
147
+ // product so cards can render the author independently).
148
+ ProductUser user = 11;
149
+ repeated Category categories = 12;
150
+ }
151
+
152
+ message Video {
153
+ string id = 1;
154
+ string title = 2;
155
+ string description = 3;
156
+ string url = 4;
157
+ string created_at = 5;
158
+ string updated_at = 6;
159
+ }
160
+
161
+ message ActiveDevice {
162
+ string id = 1;
163
+ string user_agent = 2;
164
+ string ip = 3;
165
+ string created_at = 4;
166
+ string last_used_at = 5;
167
+ }
168
+
169
+ message ProfileStats {
170
+ int32 subscribers_count = 1;
171
+ int32 subscriptions_count = 2;
172
+ int32 products_count = 3;
173
+ int32 videos_count = 4;
174
+ }
175
+
176
+ // Compact public user card for subscriber/subscription lists — no email/ban data.
177
+ message ProfileUser {
178
+ string id = 1;
179
+ string username = 2;
180
+ string avatar_url = 3;
181
+ string full_name = 4;
182
+ string avatar_border_image_url = 5;
183
+ }
184
+
185
+ // =================================================================
186
+ // GetPublicProfile
187
+ // =================================================================
188
+
189
+ message GetPublicProfileRequest {
190
+ string username = 1;
191
+ string viewer_user_id = 2; // optional — present when caller is authenticated
192
+ }
193
+
194
+ message PublicProfileResponse {
195
+ string id = 1;
196
+ string username = 2;
197
+ string full_name = 3;
198
+ string rating = 4; // Decimal as string
199
+ string about_me = 5;
200
+ repeated SocialMedia social_media = 6;
201
+ ProfileStats stats = 7;
202
+ repeated Video videos = 8;
203
+ repeated Product products = 9;
204
+ Country country = 10;
205
+ string avatar_url = 11;
206
+ string banner_url = 12;
207
+ string role = 13;
208
+ string created_at = 14;
209
+ bool hide_subscriptions = 15;
210
+ // Either populated lists or empty depending on hide_subscriptions
211
+ repeated ProfileUser subscriptions = 16;
212
+ repeated ProfileUser subscribers = 17;
213
+ bool is_owner = 18;
214
+ bool is_subscribed = 19; // viewer is subscribed to this profile (false when anonymous / self)
215
+ // Premium fields — populated only when the profile owner has an active
216
+ // PremiumSubscription. Non-premium viewers and non-premium profiles see
217
+ // empty strings / false.
218
+ bool is_premium = 20;
219
+ string profile_color = 21;
220
+ AvatarBorder avatar_border = 22;
221
+ string animated_avatar_url = 23;
222
+ string animated_banner_url = 24;
223
+ string premium_expires_at = 25; // ISO 8601, empty when not premium
224
+ }
225
+
226
+ // =================================================================
227
+ // UpdateProfile
228
+ // =================================================================
229
+
230
+ message UpdateProfileRequest {
231
+ string user_id = 1;
232
+ // Every editable field is `optional` so the wire format preserves the
233
+ // "not set" state. A partial patch from the client (e.g. only avatarUrl)
234
+ // no longer accidentally wipes the other columns to proto3 defaults.
235
+ optional string full_name = 2;
236
+ optional string about_me = 3;
237
+ optional bool newsletter_subscription = 4;
238
+ optional bool hide_subscriptions = 5;
239
+ optional string avatar_url = 6;
240
+ optional string banner_url = 7;
241
+ optional string country_id = 8;
242
+ optional string timezone = 9;
243
+ // social_media remains repeated (an empty list is still a meaningful
244
+ // "replace with empty"); the gateway omits the field entirely when the
245
+ // client didn't send it so partial patches don't clear social links.
246
+ repeated CreateSocialMedia social_media = 10;
247
+ // Premium-only fields — rejected with FAILED_PRECONDITION when the caller
248
+ // has no active premium. `''` = no change, `__clear__` = explicit reset.
249
+ optional string profile_color = 11;
250
+ optional string avatar_border_id = 12;
251
+ optional string animated_avatar_url = 13;
252
+ optional string animated_banner_url = 14;
253
+ }
254
+
255
+ // =================================================================
256
+ // UpdateUser
257
+ // =================================================================
258
+
259
+ message UpdateUserRequest {
260
+ string user_id = 1;
261
+ string username = 2;
262
+ string email = 3;
263
+ string code = 4; // confirmation code when changing email/username
264
+ }
265
+
266
+ message UserResponse {
267
+ User user = 1;
268
+ }
269
+
270
+ // Lightweight uniqueness probe for signup / account-settings forms. Called
271
+ // often (per keystroke/blur) — backed by a single indexed query, no writes.
272
+ // Mirrors the exact-match uniqueness check in UpdateUser so availability never
273
+ // disagrees with the real collision at submit time.
274
+ message CheckAvailabilityRequest {
275
+ string username = 1; // empty = skip this field
276
+ string email = 2; // empty = skip this field
277
+ string exclude_user_id = 3; // empty = none; set to current user so editing
278
+ // your OWN account doesn't report "taken"
279
+ }
280
+
281
+ message CheckAvailabilityResponse {
282
+ bool username_checked = 1; // false = username wasn't part of the query
283
+ bool username_available = 2;
284
+ bool email_checked = 3; // false = email wasn't part of the query
285
+ bool email_available = 4;
286
+ }
287
+
288
+ // =================================================================
289
+ // UpdateUserRole (admin)
290
+ // =================================================================
291
+
292
+ message UpdateUserRoleRequest {
293
+ string admin_id = 1;
294
+ string user_id = 2;
295
+ string role = 3;
296
+ string action = 4; // "grant" (default) | "revoke"
297
+ }
298
+
299
+ // =================================================================
300
+ // GetUsers (paginated)
301
+ // =================================================================
302
+
303
+ message GetUsersRequest {
304
+ string page = 1;
305
+ string limit = 2;
306
+ string search = 3;
307
+ string role_name = 4;
308
+ }
309
+
310
+ message GetUsersResponse {
311
+ repeated User items = 1;
312
+ int32 total = 2;
313
+ int32 page = 3;
314
+ int32 limit = 4;
315
+ }
316
+
317
+ // =================================================================
318
+ // Active devices
319
+ // =================================================================
320
+
321
+ message GetActiveDevicesRequest {
322
+ string user_id = 1;
323
+ }
324
+
325
+ message GetActiveDevicesResponse {
326
+ repeated ActiveDevice devices = 1;
327
+ }
328
+
329
+ message ManageDevicesRequest {
330
+ string user_id = 1;
331
+ repeated string device_ids_to_remove = 2;
332
+ }
333
+
334
+ message ManageDevicesResponse {
335
+ bool ok = 1;
336
+ int32 removed_count = 2;
337
+ }
338
+
339
+ // =================================================================
340
+ // GetUserFields — paginated dynamic field sets
341
+ // =================================================================
342
+
343
+ enum UserFieldsType {
344
+ USER_FIELDS_TYPE_UNSPECIFIED = 0;
345
+ USER_FIELDS_TYPE_VIDEOS = 1;
346
+ USER_FIELDS_TYPE_PRODUCTS = 2;
347
+ USER_FIELDS_TYPE_SUBSCRIPTIONS = 3;
348
+ USER_FIELDS_TYPE_SUBSCRIBERS = 4;
349
+ }
350
+
351
+ message GetUserFieldsRequest {
352
+ string username = 1;
353
+ UserFieldsType type = 2;
354
+ int32 page = 3;
355
+ int32 limit = 4;
356
+ string viewer_user_id = 5; // optional
357
+ }
358
+
359
+ message GetUserFieldsResponse {
360
+ repeated Video videos = 1;
361
+ repeated Product products = 2;
362
+ repeated ProfileUser subscriptions = 3;
363
+ repeated ProfileUser subscribers = 4;
364
+ int32 total = 5;
365
+ int32 page = 6;
366
+ int32 limit = 7;
367
+ }
368
+
369
+ // =================================================================
370
+ // Subscriptions
371
+ // =================================================================
372
+
373
+ message SubscriptionRequest {
374
+ string subscriber_id = 1; // the authenticated user performing the action
375
+ string target_id = 2; // the user being (un)subscribed to/from
376
+ }
377
+
378
+ message SubscriptionResponse {
379
+ bool subscribed = 1; // state after the call
380
+ int32 subscribers_count = 2; // target's subscriber count after the call
381
+ }
382
+
383
+ // =================================================================
384
+ // Premium
385
+ // =================================================================
386
+
387
+ // Periods mirror PremiumPeriod enum in schema.prisma.
388
+ enum PremiumPeriod {
389
+ PREMIUM_PERIOD_UNSPECIFIED = 0;
390
+ PREMIUM_PERIOD_MONTH_1 = 1;
391
+ PREMIUM_PERIOD_MONTH_3 = 2;
392
+ PREMIUM_PERIOD_MONTH_6 = 3;
393
+ PREMIUM_PERIOD_MONTH_12 = 4;
394
+ }
395
+
396
+ message GetMyPremiumRequest {
397
+ string user_id = 1;
398
+ }
399
+
400
400
  message PremiumStateResponse {
401
401
  bool is_active = 1;
402
402
  string status = 2; // ACTIVE | EXPIRED | CANCELED | empty (never purchased)
@@ -426,14 +426,14 @@ message PremiumSavedPaymentCard {
426
426
  string nickname = 7;
427
427
  string created_at = 8;
428
428
  }
429
-
430
- message SetPremiumAutoRenewRequest {
431
- string user_id = 1;
432
- bool enabled = 2;
433
- }
434
-
435
- // Internal — payments-service hands us the period that was just paid for, plus
436
- // the YooKassa payment_method id (empty for balance/non-recurring purchases).
429
+
430
+ message SetPremiumAutoRenewRequest {
431
+ string user_id = 1;
432
+ bool enabled = 2;
433
+ }
434
+
435
+ // Internal — payments-service hands us the period that was just paid for, plus
436
+ // the YooKassa payment_method id (empty for balance/non-recurring purchases).
437
437
  message ActivatePremiumRequest {
438
438
  string user_id = 1;
439
439
  PremiumPeriod period = 2;
@@ -441,293 +441,293 @@ message ActivatePremiumRequest {
441
441
  bool is_renewal = 4; // false = first purchase; true = cron-driven renewal
442
442
  bool auto_renew = 5; // set by the purchase flow; renewals keep true
443
443
  }
444
-
445
- message IsPremiumActiveRequest {
446
- string user_id = 1;
447
- }
448
-
449
- message IsPremiumActiveResponse {
450
- bool is_active = 1;
451
- }
452
-
453
- // =================================================================
454
- // Avatar borders
455
- // =================================================================
456
-
457
- message AvatarBorder {
458
- string id = 1;
459
- string code = 2;
460
- string name = 3;
461
- string description = 4;
462
- string image_url = 5;
463
- bool is_animated = 6;
464
- string source = 7;
465
- int32 sort_order = 8;
466
- bool is_active = 9;
467
- }
468
-
469
- message ListAvatarBordersRequest {
470
- bool include_inactive = 1; // admin-only — gateway gates by role
471
- string source = 2; // optional filter
472
- }
473
-
474
- message ListAvatarBordersResponse {
475
- repeated AvatarBorder items = 1;
476
- }
477
-
478
- message UpsertAvatarBorderRequest {
479
- string id = 1; // empty = create
480
- string code = 2; // required when creating
481
- string name = 3;
482
- string description = 4;
483
- string image_url = 5;
484
- bool is_animated = 6;
485
- string source = 7;
486
- int32 sort_order = 8;
487
- bool is_active = 9;
488
- }
489
-
490
- message DeleteAvatarBorderRequest {
491
- string id = 1;
492
- }
493
-
494
- message DeleteAvatarBorderResponse {
495
- bool ok = 1;
496
- }
497
-
498
- // =================================================================
499
- // Account settings
500
- // =================================================================
501
-
502
- message UpdatePrivacyRequest {
503
- string user_id = 1;
504
- bool hide_email = 2;
505
- bool hide_balance = 3;
506
- bool hide_online = 4;
507
- }
508
-
509
- message UpdateEmailPrefsRequest {
510
- string user_id = 1;
511
- bool email_on_sales = 2;
512
- bool email_on_reviews = 3;
513
- bool email_on_news = 4;
514
- }
515
-
516
- message UpdateEmailPrefsResponse {
517
- bool email_on_sales = 1;
518
- bool email_on_reviews = 2;
519
- bool email_on_news = 3;
520
- }
521
-
522
- message UpdateLocaleRequest {
523
- string user_id = 1;
524
- string locale = 2; // "ru" | "en" | ...
525
- }
526
-
527
- message UpdateLocaleResponse {
528
- string locale = 1;
529
- }
530
-
531
- message SoftDeleteAccountRequest {
532
- string user_id = 1;
533
- string reason = 2; // optional, for support/audit
534
- int32 cooldown_days = 3; // 0 → use server default (30)
535
- }
536
-
537
- message SoftDeleteAccountResponse {
538
- string deleted_at = 1; // ISO 8601
539
- string scheduled_for_hard_delete = 2;
540
- }
541
-
542
- message RestoreAccountRequest {
543
- string user_id = 1;
544
- }
545
-
546
- message HardDeletePendingRequest {
547
- int32 max_batch = 1; // 0 → default 100
548
- }
549
-
550
- message HardDeletePendingResponse {
551
- int32 deleted = 1;
552
- }
553
-
554
- message ChangePasswordRequest {
555
- string user_id = 1;
556
- string current_password = 2;
557
- string new_password = 3;
558
- // Optional: revoke all other sessions on success.
559
- bool revoke_other_sessions = 4;
560
- }
561
-
562
- // =================================================================
563
- // Blocks
564
- // =================================================================
565
-
566
- message BlockUserRequest {
567
- string blocker_id = 1;
568
- string blocked_id = 2;
569
- string reason = 3; // optional
570
- }
571
-
572
- message BlockUserResponse {
573
- bool blocked = 1;
574
- }
575
-
576
- message BlockedUserRow {
577
- string id = 1;
578
- string username = 2;
579
- string avatar_url = 3;
580
- string blocked_at = 4;
581
- string reason = 5;
582
- }
583
-
584
- message ListBlockedUsersRequest {
585
- string blocker_id = 1;
586
- int32 page = 2;
587
- int32 limit = 3;
588
- }
589
-
590
- message ListBlockedUsersResponse {
591
- repeated BlockedUserRow items = 1;
592
- int32 total = 2;
593
- int32 page = 3;
594
- int32 limit = 4;
595
- }
596
-
597
- message IsBlockedRequest {
598
- string blocker_id = 1;
599
- string blocked_id = 2;
600
- }
601
-
602
- message IsBlockedResponse {
603
- bool is_blocked = 1;
604
- }
605
-
606
- // =================================================================
607
- // Data export
608
- // =================================================================
609
-
610
- message DataExportRequestRow {
611
- string id = 1;
612
- string user_id = 2;
613
- string status = 3; // PENDING | PROCESSING | READY | FAILED
614
- string file_url = 4;
615
- int32 file_size = 5;
616
- string error = 6;
617
- string created_at = 7;
618
- string completed_at = 8;
619
- }
620
-
621
- message RequestDataExportRequest {
622
- string user_id = 1;
623
- }
624
-
625
- message ListDataExportsRequest {
626
- string user_id = 1;
627
- int32 page = 2;
628
- int32 limit = 3;
629
- }
630
-
631
- message ListDataExportsResponse {
632
- repeated DataExportRequestRow items = 1;
633
- int32 total = 2;
634
- int32 page = 3;
635
- int32 limit = 4;
636
- }
637
-
638
- message PickPendingDataExportRequest {
639
- // tasks-service polls; returns one PENDING row marked PROCESSING, or empty.
640
- bool _placeholder = 1;
641
- }
642
-
643
- message CompleteDataExportRequest {
644
- string id = 1;
645
- string file_url = 2;
646
- int32 file_size = 3;
647
- string error = 4; // if set, marks FAILED instead of READY
648
- }
649
-
650
- message CollectUserExportDataRequest {
651
- string user_id = 1;
652
- }
653
-
654
- message CollectUserExportDataResponse {
655
- // Opaque JSON-as-string of user-owned data. tasks-service writes it to
656
- // S3 verbatim. Keeps the schema-specific marshaling private to users-service.
657
- string payload_json = 1;
658
- }
659
-
660
- // =================================================================
661
- // Settings — unified read
662
- // =================================================================
663
-
664
- message GetAccountSettingsRequest {
665
- string user_id = 1;
666
- }
667
-
668
- // Current premium plan the user holds. Mirrors a PremiumPlan catalog entry.
669
- // Absent (null) when the user has no active subscription.
670
- message PremiumPlanInfo {
671
- string period = 1; // MONTH_1 | MONTH_3 | MONTH_6 | MONTH_12
672
- int32 months = 2;
673
- string price = 3; // total for the period, Decimal-as-string
674
- string monthly_price = 4; // ≈ X ₽/month
675
- string discount_percent = 5;
676
- string currency = 6;
677
- }
678
-
444
+
445
+ message IsPremiumActiveRequest {
446
+ string user_id = 1;
447
+ }
448
+
449
+ message IsPremiumActiveResponse {
450
+ bool is_active = 1;
451
+ }
452
+
453
+ // =================================================================
454
+ // Avatar borders
455
+ // =================================================================
456
+
457
+ message AvatarBorder {
458
+ string id = 1;
459
+ string code = 2;
460
+ string name = 3;
461
+ string description = 4;
462
+ string image_url = 5;
463
+ bool is_animated = 6;
464
+ string source = 7;
465
+ int32 sort_order = 8;
466
+ bool is_active = 9;
467
+ }
468
+
469
+ message ListAvatarBordersRequest {
470
+ bool include_inactive = 1; // admin-only — gateway gates by role
471
+ string source = 2; // optional filter
472
+ }
473
+
474
+ message ListAvatarBordersResponse {
475
+ repeated AvatarBorder items = 1;
476
+ }
477
+
478
+ message UpsertAvatarBorderRequest {
479
+ string id = 1; // empty = create
480
+ string code = 2; // required when creating
481
+ string name = 3;
482
+ string description = 4;
483
+ string image_url = 5;
484
+ bool is_animated = 6;
485
+ string source = 7;
486
+ int32 sort_order = 8;
487
+ bool is_active = 9;
488
+ }
489
+
490
+ message DeleteAvatarBorderRequest {
491
+ string id = 1;
492
+ }
493
+
494
+ message DeleteAvatarBorderResponse {
495
+ bool ok = 1;
496
+ }
497
+
498
+ // =================================================================
499
+ // Account settings
500
+ // =================================================================
501
+
502
+ message UpdatePrivacyRequest {
503
+ string user_id = 1;
504
+ bool hide_email = 2;
505
+ bool hide_balance = 3;
506
+ bool hide_online = 4;
507
+ }
508
+
509
+ message UpdateEmailPrefsRequest {
510
+ string user_id = 1;
511
+ bool email_on_sales = 2;
512
+ bool email_on_reviews = 3;
513
+ bool email_on_news = 4;
514
+ }
515
+
516
+ message UpdateEmailPrefsResponse {
517
+ bool email_on_sales = 1;
518
+ bool email_on_reviews = 2;
519
+ bool email_on_news = 3;
520
+ }
521
+
522
+ message UpdateLocaleRequest {
523
+ string user_id = 1;
524
+ string locale = 2; // "ru" | "en" | ...
525
+ }
526
+
527
+ message UpdateLocaleResponse {
528
+ string locale = 1;
529
+ }
530
+
531
+ message SoftDeleteAccountRequest {
532
+ string user_id = 1;
533
+ string reason = 2; // optional, for support/audit
534
+ int32 cooldown_days = 3; // 0 → use server default (30)
535
+ }
536
+
537
+ message SoftDeleteAccountResponse {
538
+ string deleted_at = 1; // ISO 8601
539
+ string scheduled_for_hard_delete = 2;
540
+ }
541
+
542
+ message RestoreAccountRequest {
543
+ string user_id = 1;
544
+ }
545
+
546
+ message HardDeletePendingRequest {
547
+ int32 max_batch = 1; // 0 → default 100
548
+ }
549
+
550
+ message HardDeletePendingResponse {
551
+ int32 deleted = 1;
552
+ }
553
+
554
+ message ChangePasswordRequest {
555
+ string user_id = 1;
556
+ string current_password = 2;
557
+ string new_password = 3;
558
+ // Optional: revoke all other sessions on success.
559
+ bool revoke_other_sessions = 4;
560
+ }
561
+
562
+ // =================================================================
563
+ // Blocks
564
+ // =================================================================
565
+
566
+ message BlockUserRequest {
567
+ string blocker_id = 1;
568
+ string blocked_id = 2;
569
+ string reason = 3; // optional
570
+ }
571
+
572
+ message BlockUserResponse {
573
+ bool blocked = 1;
574
+ }
575
+
576
+ message BlockedUserRow {
577
+ string id = 1;
578
+ string username = 2;
579
+ string avatar_url = 3;
580
+ string blocked_at = 4;
581
+ string reason = 5;
582
+ }
583
+
584
+ message ListBlockedUsersRequest {
585
+ string blocker_id = 1;
586
+ int32 page = 2;
587
+ int32 limit = 3;
588
+ }
589
+
590
+ message ListBlockedUsersResponse {
591
+ repeated BlockedUserRow items = 1;
592
+ int32 total = 2;
593
+ int32 page = 3;
594
+ int32 limit = 4;
595
+ }
596
+
597
+ message IsBlockedRequest {
598
+ string blocker_id = 1;
599
+ string blocked_id = 2;
600
+ }
601
+
602
+ message IsBlockedResponse {
603
+ bool is_blocked = 1;
604
+ }
605
+
606
+ // =================================================================
607
+ // Data export
608
+ // =================================================================
609
+
610
+ message DataExportRequestRow {
611
+ string id = 1;
612
+ string user_id = 2;
613
+ string status = 3; // PENDING | PROCESSING | READY | FAILED
614
+ string file_url = 4;
615
+ int32 file_size = 5;
616
+ string error = 6;
617
+ string created_at = 7;
618
+ string completed_at = 8;
619
+ }
620
+
621
+ message RequestDataExportRequest {
622
+ string user_id = 1;
623
+ }
624
+
625
+ message ListDataExportsRequest {
626
+ string user_id = 1;
627
+ int32 page = 2;
628
+ int32 limit = 3;
629
+ }
630
+
631
+ message ListDataExportsResponse {
632
+ repeated DataExportRequestRow items = 1;
633
+ int32 total = 2;
634
+ int32 page = 3;
635
+ int32 limit = 4;
636
+ }
637
+
638
+ message PickPendingDataExportRequest {
639
+ // tasks-service polls; returns one PENDING row marked PROCESSING, or empty.
640
+ bool _placeholder = 1;
641
+ }
642
+
643
+ message CompleteDataExportRequest {
644
+ string id = 1;
645
+ string file_url = 2;
646
+ int32 file_size = 3;
647
+ string error = 4; // if set, marks FAILED instead of READY
648
+ }
649
+
650
+ message CollectUserExportDataRequest {
651
+ string user_id = 1;
652
+ }
653
+
654
+ message CollectUserExportDataResponse {
655
+ // Opaque JSON-as-string of user-owned data. tasks-service writes it to
656
+ // S3 verbatim. Keeps the schema-specific marshaling private to users-service.
657
+ string payload_json = 1;
658
+ }
659
+
660
+ // =================================================================
661
+ // Settings — unified read
662
+ // =================================================================
663
+
664
+ message GetAccountSettingsRequest {
665
+ string user_id = 1;
666
+ }
667
+
668
+ // Current premium plan the user holds. Mirrors a PremiumPlan catalog entry.
669
+ // Absent (null) when the user has no active subscription.
670
+ message PremiumPlanInfo {
671
+ string period = 1; // MONTH_1 | MONTH_3 | MONTH_6 | MONTH_12
672
+ int32 months = 2;
673
+ string price = 3; // total for the period, Decimal-as-string
674
+ string monthly_price = 4; // ≈ X ₽/month
675
+ string discount_percent = 5;
676
+ string currency = 6;
677
+ }
678
+
679
679
  message AccountSettingsResponse {
680
- // Identity
681
- string id = 1;
682
- string username = 2;
683
- string email = 3;
684
- string full_name = 4;
685
- string about_me = 5;
686
- string avatar_url = 6;
687
- string banner_url = 7;
688
- string locale = 8;
689
- string timezone = 9;
690
- string country_id = 10;
691
- string created_at = 11;
692
-
693
- // 2FA
694
- string two_factor_type = 12; // NONE | APP | EMAIL
695
- bool two_factor_enabled = 13;
696
- int32 backup_codes_remaining = 14;
697
-
698
- // Privacy
699
- bool hide_email = 15;
700
- bool hide_balance = 16;
701
- bool hide_online = 17;
702
- bool hide_subscriptions = 18;
703
-
704
- // Email prefs
705
- bool email_on_sales = 19;
706
- bool email_on_reviews = 20;
707
- bool email_on_news = 21;
708
-
709
- // Payout defaults
710
- string payout_method = 22;
711
- string payout_details = 23;
712
-
680
+ // Identity
681
+ string id = 1;
682
+ string username = 2;
683
+ string email = 3;
684
+ string full_name = 4;
685
+ string about_me = 5;
686
+ string avatar_url = 6;
687
+ string banner_url = 7;
688
+ string locale = 8;
689
+ string timezone = 9;
690
+ string country_id = 10;
691
+ string created_at = 11;
692
+
693
+ // 2FA
694
+ string two_factor_type = 12; // NONE | APP | EMAIL
695
+ bool two_factor_enabled = 13;
696
+ int32 backup_codes_remaining = 14;
697
+
698
+ // Privacy
699
+ bool hide_email = 15;
700
+ bool hide_balance = 16;
701
+ bool hide_online = 17;
702
+ bool hide_subscriptions = 18;
703
+
704
+ // Email prefs
705
+ bool email_on_sales = 19;
706
+ bool email_on_reviews = 20;
707
+ bool email_on_news = 21;
708
+
709
+ // Payout defaults
710
+ string payout_method = 22;
711
+ string payout_details = 23;
712
+
713
713
  // Premium snapshot — flat flag only. Rich subscription state lives at
714
714
  // /premium/me.
715
715
  reserved 24, 25, 26, 27;
716
716
  reserved "premium_status", "premium_expires_at", "premium_auto_renew";
717
717
  reserved 36;
718
718
  bool premium_is_active = 37;
719
-
720
- // Soft-delete state
721
- string deleted_at = 28;
722
- string scheduled_for_hard_delete = 29;
723
-
724
- repeated SocialMedia social_media = 30;
725
-
726
- // Premium customization snapshot — denormalised border image URL so the
727
- // client can render the current overlay without a second roundtrip.
728
- string avatar_border_id = 31;
729
- string avatar_border_image_url = 32;
730
- string animated_avatar_url = 33;
731
- string animated_banner_url = 34;
732
- string profile_color = 35;
733
- }
719
+
720
+ // Soft-delete state
721
+ string deleted_at = 28;
722
+ string scheduled_for_hard_delete = 29;
723
+
724
+ repeated SocialMedia social_media = 30;
725
+
726
+ // Premium customization snapshot — denormalised border image URL so the
727
+ // client can render the current overlay without a second roundtrip.
728
+ string avatar_border_id = 31;
729
+ string avatar_border_image_url = 32;
730
+ string animated_avatar_url = 33;
731
+ string animated_banner_url = 34;
732
+ string profile_color = 35;
733
+ }