diff --git a/package.json b/package.json index 358e3de..77d109f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lendry-erp/contracts", - "version": "1.2.16", + "version": "1.2.17", "description": "Protobuf definitions and generated TypeScript types", "type": "commonjs", "main": "./dist/index.js", diff --git a/proto/sso/auth.proto b/proto/sso/auth.proto index 5e936ab..3223712 100644 --- a/proto/sso/auth.proto +++ b/proto/sso/auth.proto @@ -14,10 +14,13 @@ service AuthService { rpc GetSessions(GetSessionRequest) returns (GetSessionsResponse); rpc TerminateSession(TerminateSessionRequest) returns (TerminateSessionResponse); + // Системные методы для админа rpc SystemCreateAccount (SystemCreateAccountRequest) returns (SystemCreateAccountResponse); rpc SystemChangeStatus (SystemChangeStatusRequest) returns (SystemChangeStatusResponse); rpc SystemUpdatePassword (SystemUpdatePasswordRequest) returns (SystemUpdatePasswordResponse); rpc SystemUpdatePin (SystemUpdatePinRequest) returns (SystemUpdatePinResponse); + rpc SystemBlockIp(SystemBlockIpRequest) returns (SystemBlockIpResponse); + rpc SystemUnblockIp(SystemUnblockIpRequest) returns (SystemUnblockIpResponse); } message LoginRequest { @@ -133,3 +136,20 @@ message SystemUpdatePinRequest { message SystemUpdatePinResponse { bool success = 1; } +message SystemBlockIpRequest { + string ip_address = 1; + string admin_id = 2; + optional string reason = 3; +} + +message SystemBlockIpResponse { + bool success = 1; +} + +message SystemUnblockIpRequest { + string ip_address = 1; +} + +message SystemUnblockIpResponse { + bool success = 2; +} \ No newline at end of file