diff --git a/package.json b/package.json index 19d8b44..1f49737 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lendry-erp/contracts", - "version": "1.2.25", + "version": "1.2.26", "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 3223712..49a905f 100644 --- a/proto/sso/auth.proto +++ b/proto/sso/auth.proto @@ -26,6 +26,8 @@ service AuthService { message LoginRequest { string username = 1; string password = 2; + string device_id = 3; // Уникальный идентификатор устройства клиента + string public_key = 4; // Публичный ключ устройства для шифрования сообщений } message LoginResponse { @@ -70,6 +72,7 @@ message VerifyTokenResponse { repeated string permissions = 6; optional string session_id = 7; optional bool requires_pin = 8; + optional string device_id = 9; } message GetAccountRoleLevelRequest { @@ -92,6 +95,7 @@ message SessionItem { string user_agent = 3; int64 last_activity = 4; // Unix timestamp в миллисекундах bool is_current = 5; // Флаг текущей сессии + string device_id = 6; } message GetSessionsResponse {