chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-11 18:41:58 +00:00
parent 40819206d6
commit da649b7231
3 changed files with 350 additions and 18 deletions

View File

@@ -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);