Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
f23d1251b5
|
|||
|
5eb260df3a
|
|||
|
72cb1d8117
|
|||
|
0cd6107abe
|
|||
|
4b1ff1c31d
|
|||
| 5df728fd9c |
+12
-4
@@ -194,6 +194,8 @@ message TFAReq {
|
||||
optional string mobile = 2;
|
||||
optional string email = 3;
|
||||
optional string reason = 4; // issued jwt reason -> can be login, redeem, withdrawal
|
||||
optional string transaction_id = 5;
|
||||
optional TfaStateEnum state = 6;
|
||||
}
|
||||
|
||||
// Two Factor Authentication Exchange Response
|
||||
@@ -205,8 +207,11 @@ message TFAExRes {
|
||||
message CheckTFAReq {
|
||||
InternalIAM iam = 1;
|
||||
string code = 2;
|
||||
optional string algorithm = 3;
|
||||
optional string reason = 4; // Can be later used as a lookup
|
||||
TFAReq req = 3;
|
||||
// optional string algorithm = 3;
|
||||
// optional string reason = 4; // Can be later used as a lookup
|
||||
// optional string transaction_id = 5;
|
||||
// optional TfaStateEnum state = 6;
|
||||
}
|
||||
|
||||
message TFA {
|
||||
@@ -220,13 +225,16 @@ enum TfaStateEnum {
|
||||
LOGIN = 1;
|
||||
INTERNAL_TRANSFER = 2;
|
||||
EXTERNAL_TRANSFER = 3;
|
||||
REDEEM_TOKEN = 4;
|
||||
}
|
||||
|
||||
message Recipient {
|
||||
string key = 1;
|
||||
optional string first_name = 2;
|
||||
optional string last_name = 3;
|
||||
optional string public_key = 4;
|
||||
optional int64 user_id = 4;
|
||||
optional string public_key = 5;
|
||||
|
||||
}
|
||||
|
||||
message LookUpNameReq {
|
||||
@@ -235,4 +243,4 @@ message LookUpNameReq {
|
||||
|
||||
message LookUpNameRes {
|
||||
Recipient recipient = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -302,6 +302,7 @@ message InternalTransferAssetReq {
|
||||
message InternalTransferAssetRes {
|
||||
auth.v1.Recipient recipient = 1;
|
||||
double amount = 2;
|
||||
// TODO: Change to Asset
|
||||
string transaction_id = 3;
|
||||
string transaction_hash = 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user