diff --git a/package.json b/package.json index ec875b1..26bd715 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lendry-erp/contracts", - "version": "1.0.40", + "version": "1.0.41", "description": "Protobuf definitions and generated TypeScript types", "type": "commonjs", "main": "./dist/index.js", diff --git a/proto/account.proto b/proto/account.proto index f4a26a9..4c1fac8 100644 --- a/proto/account.proto +++ b/proto/account.proto @@ -40,9 +40,10 @@ message GetAccountResponse { message ChangePasswordRequest { string user_id = 1; - string old_password = 2; - string new_password = 3; - optional string code = 4; + string access_token = 2; + string old_password = 3; + string new_password = 4; + optional string code = 5; } message ChangePasswordResponse { @@ -53,7 +54,8 @@ message ChangePasswordResponse { message SetPinRequest { string user_id = 1; - string pin = 2; + string access_token = 2; + string pin = 3; } message SetPinResponse { @@ -84,6 +86,7 @@ message GetPinStatusResponse { message RemovePinRequest { string pin = 1; string user_id = 2; + string access_token = 3; } message RemovePinResponse { bool success = 1; diff --git a/proto/twofa.proto b/proto/twofa.proto index db95ddc..8fc610f 100644 --- a/proto/twofa.proto +++ b/proto/twofa.proto @@ -24,7 +24,6 @@ message Verify2FaRequest { message Verify2FaResponse { string access_token = 1; - string refresh_token = 2; string status = 3; string message = 4; repeated string reserve_codes = 5;