@aepstore-dev/contracts 1.50.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 +0 -2
- package/gen/users.ts +0 -2
- package/package.json +1 -1
- package/proto/auth.proto +5 -5
- package/proto/users.proto +2 -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
package/gen/users.ts
CHANGED
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,7 +77,8 @@ 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;
|