@aepstore-dev/contracts 1.49.0 → 1.51.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/auth.d.ts +0 -7
- package/gen/auth.ts +0 -7
- package/gen/users.d.ts +4 -2
- package/gen/users.ts +4 -2
- package/package.json +1 -1
- package/proto/auth.proto +5 -5
- package/proto/users.proto +6 -1
package/gen/auth.d.ts
CHANGED
|
@@ -66,13 +66,6 @@ export interface AuthUser {
|
|
|
66
66
|
avatarUrl: string;
|
|
67
67
|
bannerUrl: string;
|
|
68
68
|
roles: string[];
|
|
69
|
-
/** primary role (roles[0]) */
|
|
70
|
-
role: string;
|
|
71
|
-
isVerified: boolean;
|
|
72
|
-
twoFactorType: TwoFactorType;
|
|
73
|
-
twoFactorEnabled: boolean;
|
|
74
|
-
/** Decimal as string (D7) */
|
|
75
|
-
balance: string;
|
|
76
69
|
}
|
|
77
70
|
/**
|
|
78
71
|
* Unified result for login/register/createCode/verifyCode/refresh. Which fields
|
package/gen/auth.ts
CHANGED
|
@@ -85,13 +85,6 @@ export interface AuthUser {
|
|
|
85
85
|
avatarUrl: string;
|
|
86
86
|
bannerUrl: string;
|
|
87
87
|
roles: string[];
|
|
88
|
-
/** primary role (roles[0]) */
|
|
89
|
-
role: string;
|
|
90
|
-
isVerified: boolean;
|
|
91
|
-
twoFactorType: TwoFactorType;
|
|
92
|
-
twoFactorEnabled: boolean;
|
|
93
|
-
/** Decimal as string (D7) */
|
|
94
|
-
balance: string;
|
|
95
88
|
}
|
|
96
89
|
|
|
97
90
|
/**
|
package/gen/users.d.ts
CHANGED
|
@@ -26,8 +26,6 @@ export interface User {
|
|
|
26
26
|
username: string;
|
|
27
27
|
avatarUrl: string;
|
|
28
28
|
roles: string[];
|
|
29
|
-
/** primary role for backwards compat */
|
|
30
|
-
role: string;
|
|
31
29
|
/** ISO 8601 */
|
|
32
30
|
createdAt: string;
|
|
33
31
|
updatedAt: string;
|
|
@@ -35,6 +33,8 @@ export interface User {
|
|
|
35
33
|
/** ISO 8601, empty = permanent/none */
|
|
36
34
|
bannedUntil: string;
|
|
37
35
|
banReason: string;
|
|
36
|
+
fullName: string;
|
|
37
|
+
avatarBorderImageUrl: string;
|
|
38
38
|
}
|
|
39
39
|
export interface BanUserRequest {
|
|
40
40
|
adminId: string;
|
|
@@ -118,6 +118,8 @@ export interface ProfileUser {
|
|
|
118
118
|
id: string;
|
|
119
119
|
username: string;
|
|
120
120
|
avatarUrl: string;
|
|
121
|
+
fullName: string;
|
|
122
|
+
avatarBorderImageUrl: string;
|
|
121
123
|
}
|
|
122
124
|
export interface GetPublicProfileRequest {
|
|
123
125
|
username: string;
|
package/gen/users.ts
CHANGED
|
@@ -39,8 +39,6 @@ export interface User {
|
|
|
39
39
|
username: string;
|
|
40
40
|
avatarUrl: string;
|
|
41
41
|
roles: string[];
|
|
42
|
-
/** primary role for backwards compat */
|
|
43
|
-
role: string;
|
|
44
42
|
/** ISO 8601 */
|
|
45
43
|
createdAt: string;
|
|
46
44
|
updatedAt: string;
|
|
@@ -48,6 +46,8 @@ export interface User {
|
|
|
48
46
|
/** ISO 8601, empty = permanent/none */
|
|
49
47
|
bannedUntil: string;
|
|
50
48
|
banReason: string;
|
|
49
|
+
fullName: string;
|
|
50
|
+
avatarBorderImageUrl: string;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export interface BanUserRequest {
|
|
@@ -143,6 +143,8 @@ export interface ProfileUser {
|
|
|
143
143
|
id: string;
|
|
144
144
|
username: string;
|
|
145
145
|
avatarUrl: string;
|
|
146
|
+
fullName: string;
|
|
147
|
+
avatarBorderImageUrl: string;
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
export interface GetPublicProfileRequest {
|
package/package.json
CHANGED
package/proto/auth.proto
CHANGED
|
@@ -107,11 +107,11 @@ message AuthUser {
|
|
|
107
107
|
string avatar_url = 4;
|
|
108
108
|
string banner_url = 5;
|
|
109
109
|
repeated string roles = 6;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
110
|
+
// Reserved: 7=role, 8=is_verified, 9=two_factor_type, 10=two_factor_enabled,
|
|
111
|
+
// 11=balance. Dropped in contracts 1.51.0 — clients read 2FA flags from
|
|
112
|
+
// AuthResult / /account/settings, balance from /payments/wallet.
|
|
113
|
+
reserved 7, 8, 9, 10, 11;
|
|
114
|
+
reserved "role", "is_verified", "two_factor_type", "two_factor_enabled", "balance";
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
// Unified result for login/register/createCode/verifyCode/refresh. Which fields
|
package/proto/users.proto
CHANGED
|
@@ -77,12 +77,15 @@ message User {
|
|
|
77
77
|
string username = 3;
|
|
78
78
|
string avatar_url = 4;
|
|
79
79
|
repeated string roles = 5;
|
|
80
|
-
|
|
80
|
+
reserved 6;
|
|
81
|
+
reserved "role";
|
|
81
82
|
string created_at = 7; // ISO 8601
|
|
82
83
|
string updated_at = 8;
|
|
83
84
|
bool is_banned = 9;
|
|
84
85
|
string banned_until = 10; // ISO 8601, empty = permanent/none
|
|
85
86
|
string ban_reason = 11;
|
|
87
|
+
string full_name = 12;
|
|
88
|
+
string avatar_border_image_url = 13;
|
|
86
89
|
}
|
|
87
90
|
|
|
88
91
|
message BanUserRequest {
|
|
@@ -172,6 +175,8 @@ message ProfileUser {
|
|
|
172
175
|
string id = 1;
|
|
173
176
|
string username = 2;
|
|
174
177
|
string avatar_url = 3;
|
|
178
|
+
string full_name = 4;
|
|
179
|
+
string avatar_border_image_url = 5;
|
|
175
180
|
}
|
|
176
181
|
|
|
177
182
|
// =================================================================
|