chore: auto-generate protobuf files [skip ci]
This commit is contained in:
@@ -140,6 +140,24 @@ export interface SystemUpdatePinResponse {
|
||||
success: boolean;
|
||||
}
|
||||
|
||||
export interface SystemBlockIpRequest {
|
||||
ipAddress: string;
|
||||
adminId: string;
|
||||
reason?: string | undefined;
|
||||
}
|
||||
|
||||
export interface SystemBlockIpResponse {
|
||||
success: boolean;
|
||||
}
|
||||
|
||||
export interface SystemUnblockIpRequest {
|
||||
ipAddress: string;
|
||||
}
|
||||
|
||||
export interface SystemUnblockIpResponse {
|
||||
success: boolean;
|
||||
}
|
||||
|
||||
export const AUTH_V1_PACKAGE_NAME = "auth.v1";
|
||||
|
||||
export interface AuthServiceClient {
|
||||
@@ -162,6 +180,8 @@ export interface AuthServiceClient {
|
||||
|
||||
terminateSession(request: TerminateSessionRequest, metadata?: Metadata): Observable<TerminateSessionResponse>;
|
||||
|
||||
/** Системные методы для админа */
|
||||
|
||||
systemCreateAccount(
|
||||
request: SystemCreateAccountRequest,
|
||||
metadata?: Metadata,
|
||||
@@ -175,6 +195,10 @@ export interface AuthServiceClient {
|
||||
): Observable<SystemUpdatePasswordResponse>;
|
||||
|
||||
systemUpdatePin(request: SystemUpdatePinRequest, metadata?: Metadata): Observable<SystemUpdatePinResponse>;
|
||||
|
||||
systemBlockIp(request: SystemBlockIpRequest, metadata?: Metadata): Observable<SystemBlockIpResponse>;
|
||||
|
||||
systemUnblockIp(request: SystemUnblockIpRequest, metadata?: Metadata): Observable<SystemUnblockIpResponse>;
|
||||
}
|
||||
|
||||
export interface AuthServiceController {
|
||||
@@ -215,6 +239,8 @@ export interface AuthServiceController {
|
||||
metadata?: Metadata,
|
||||
): Promise<TerminateSessionResponse> | Observable<TerminateSessionResponse> | TerminateSessionResponse;
|
||||
|
||||
/** Системные методы для админа */
|
||||
|
||||
systemCreateAccount(
|
||||
request: SystemCreateAccountRequest,
|
||||
metadata?: Metadata,
|
||||
@@ -234,6 +260,16 @@ export interface AuthServiceController {
|
||||
request: SystemUpdatePinRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<SystemUpdatePinResponse> | Observable<SystemUpdatePinResponse> | SystemUpdatePinResponse;
|
||||
|
||||
systemBlockIp(
|
||||
request: SystemBlockIpRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<SystemBlockIpResponse> | Observable<SystemBlockIpResponse> | SystemBlockIpResponse;
|
||||
|
||||
systemUnblockIp(
|
||||
request: SystemUnblockIpRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<SystemUnblockIpResponse> | Observable<SystemUnblockIpResponse> | SystemUnblockIpResponse;
|
||||
}
|
||||
|
||||
export function AuthServiceControllerMethods() {
|
||||
@@ -251,6 +287,8 @@ export function AuthServiceControllerMethods() {
|
||||
"systemChangeStatus",
|
||||
"systemUpdatePassword",
|
||||
"systemUpdatePin",
|
||||
"systemBlockIp",
|
||||
"systemUnblockIp",
|
||||
];
|
||||
for (const method of grpcMethods) {
|
||||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
||||
|
||||
Reference in New Issue
Block a user