@aepstore-dev/contracts 1.109.0 → 1.110.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 +9 -0
- package/gen/auth.js +1 -0
- package/gen/auth.ts +13 -0
- package/package.json +1 -1
- package/proto/auth.proto +9 -0
package/gen/auth.d.ts
CHANGED
|
@@ -7,6 +7,13 @@ export declare enum TwoFactorType {
|
|
|
7
7
|
UNRECOGNIZED = -1
|
|
8
8
|
}
|
|
9
9
|
/** Login by username OR email (one of the two must be set). */
|
|
10
|
+
export interface AdminLoginRequest {
|
|
11
|
+
credentials: string;
|
|
12
|
+
password: string;
|
|
13
|
+
code: string;
|
|
14
|
+
userAgent: string;
|
|
15
|
+
ip: string;
|
|
16
|
+
}
|
|
10
17
|
export interface LoginRequest {
|
|
11
18
|
password: string;
|
|
12
19
|
/** username OR email — resolved by the service */
|
|
@@ -334,6 +341,7 @@ export declare const AUTH_V1_PACKAGE_NAME = "auth.v1";
|
|
|
334
341
|
*/
|
|
335
342
|
export interface AuthServiceClient {
|
|
336
343
|
login(request: LoginRequest): Observable<AuthResult>;
|
|
344
|
+
adminLogin(request: AdminLoginRequest): Observable<AuthResult>;
|
|
337
345
|
register(request: RegisterRequest): Observable<AuthResult>;
|
|
338
346
|
createCode(request: CreateCodeRequest): Observable<AuthResult>;
|
|
339
347
|
verifyCode(request: VerifyCodeRequest): Observable<AuthResult>;
|
|
@@ -388,6 +396,7 @@ export interface AuthServiceClient {
|
|
|
388
396
|
*/
|
|
389
397
|
export interface AuthServiceController {
|
|
390
398
|
login(request: LoginRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
399
|
+
adminLogin(request: AdminLoginRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
391
400
|
register(request: RegisterRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
392
401
|
createCode(request: CreateCodeRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
393
402
|
verifyCode(request: VerifyCodeRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
package/gen/auth.js
CHANGED
package/gen/auth.ts
CHANGED
|
@@ -18,6 +18,14 @@ export enum TwoFactorType {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/** Login by username OR email (one of the two must be set). */
|
|
21
|
+
export interface AdminLoginRequest {
|
|
22
|
+
credentials: string;
|
|
23
|
+
password: string;
|
|
24
|
+
code: string;
|
|
25
|
+
userAgent: string;
|
|
26
|
+
ip: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
21
29
|
export interface LoginRequest {
|
|
22
30
|
password: string;
|
|
23
31
|
/** username OR email — resolved by the service */
|
|
@@ -396,6 +404,8 @@ export const AUTH_V1_PACKAGE_NAME = "auth.v1";
|
|
|
396
404
|
export interface AuthServiceClient {
|
|
397
405
|
login(request: LoginRequest): Observable<AuthResult>;
|
|
398
406
|
|
|
407
|
+
adminLogin(request: AdminLoginRequest): Observable<AuthResult>;
|
|
408
|
+
|
|
399
409
|
register(request: RegisterRequest): Observable<AuthResult>;
|
|
400
410
|
|
|
401
411
|
createCode(request: CreateCodeRequest): Observable<AuthResult>;
|
|
@@ -490,6 +500,8 @@ export interface AuthServiceClient {
|
|
|
490
500
|
export interface AuthServiceController {
|
|
491
501
|
login(request: LoginRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
492
502
|
|
|
503
|
+
adminLogin(request: AdminLoginRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
504
|
+
|
|
493
505
|
register(request: RegisterRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
494
506
|
|
|
495
507
|
createCode(request: CreateCodeRequest): Promise<AuthResult> | Observable<AuthResult> | AuthResult;
|
|
@@ -609,6 +621,7 @@ export function AuthServiceControllerMethods() {
|
|
|
609
621
|
return function (constructor: Function) {
|
|
610
622
|
const grpcMethods: string[] = [
|
|
611
623
|
"login",
|
|
624
|
+
"adminLogin",
|
|
612
625
|
"register",
|
|
613
626
|
"createCode",
|
|
614
627
|
"verifyCode",
|
package/package.json
CHANGED
package/proto/auth.proto
CHANGED
|
@@ -10,6 +10,7 @@ package auth.v1;
|
|
|
10
10
|
// revocation). Refresh verifies the HMAC AND that the row still exists.
|
|
11
11
|
service AuthService {
|
|
12
12
|
rpc Login(LoginRequest) returns (AuthResult);
|
|
13
|
+
rpc AdminLogin(AdminLoginRequest) returns (AuthResult);
|
|
13
14
|
rpc Register(RegisterRequest) returns (AuthResult);
|
|
14
15
|
rpc CreateCode(CreateCodeRequest) returns (AuthResult);
|
|
15
16
|
rpc VerifyCode(VerifyCodeRequest) returns (AuthResult);
|
|
@@ -62,6 +63,14 @@ enum TwoFactorType {
|
|
|
62
63
|
// ---------------------------------------------------------------------------
|
|
63
64
|
|
|
64
65
|
// Login by username OR email (one of the two must be set).
|
|
66
|
+
message AdminLoginRequest {
|
|
67
|
+
string credentials = 1;
|
|
68
|
+
string password = 2;
|
|
69
|
+
string code = 3;
|
|
70
|
+
string user_agent = 4;
|
|
71
|
+
string ip = 5;
|
|
72
|
+
}
|
|
73
|
+
|
|
65
74
|
message LoginRequest {
|
|
66
75
|
string password = 1;
|
|
67
76
|
string credentials = 2; // username OR email — resolved by the service
|