feat: add device id for auth proto
All checks were successful
Publish / Publish Job (push) Successful in 2m25s
All checks were successful
Publish / Publish Job (push) Successful in 2m25s
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@lendry-erp/contracts",
|
"name": "@lendry-erp/contracts",
|
||||||
"version": "1.2.25",
|
"version": "1.2.26",
|
||||||
"description": "Protobuf definitions and generated TypeScript types",
|
"description": "Protobuf definitions and generated TypeScript types",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ service AuthService {
|
|||||||
message LoginRequest {
|
message LoginRequest {
|
||||||
string username = 1;
|
string username = 1;
|
||||||
string password = 2;
|
string password = 2;
|
||||||
|
string device_id = 3; // Уникальный идентификатор устройства клиента
|
||||||
|
string public_key = 4; // Публичный ключ устройства для шифрования сообщений
|
||||||
}
|
}
|
||||||
|
|
||||||
message LoginResponse {
|
message LoginResponse {
|
||||||
@@ -70,6 +72,7 @@ message VerifyTokenResponse {
|
|||||||
repeated string permissions = 6;
|
repeated string permissions = 6;
|
||||||
optional string session_id = 7;
|
optional string session_id = 7;
|
||||||
optional bool requires_pin = 8;
|
optional bool requires_pin = 8;
|
||||||
|
optional string device_id = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetAccountRoleLevelRequest {
|
message GetAccountRoleLevelRequest {
|
||||||
@@ -92,6 +95,7 @@ message SessionItem {
|
|||||||
string user_agent = 3;
|
string user_agent = 3;
|
||||||
int64 last_activity = 4; // Unix timestamp в миллисекундах
|
int64 last_activity = 4; // Unix timestamp в миллисекундах
|
||||||
bool is_current = 5; // Флаг текущей сессии
|
bool is_current = 5; // Флаг текущей сессии
|
||||||
|
string device_id = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetSessionsResponse {
|
message GetSessionsResponse {
|
||||||
|
|||||||
Reference in New Issue
Block a user