chore: auto-generate protobuf files [skip ci]
This commit is contained in:
@@ -38,6 +38,7 @@ export interface GetAccountResponse {
|
|||||||
|
|
||||||
export interface ChangePasswordRequest {
|
export interface ChangePasswordRequest {
|
||||||
userId: string;
|
userId: string;
|
||||||
|
accessToken: string;
|
||||||
oldPassword: string;
|
oldPassword: string;
|
||||||
newPassword: string;
|
newPassword: string;
|
||||||
code?: string | undefined;
|
code?: string | undefined;
|
||||||
@@ -50,6 +51,7 @@ export interface ChangePasswordResponse {
|
|||||||
|
|
||||||
export interface SetPinRequest {
|
export interface SetPinRequest {
|
||||||
userId: string;
|
userId: string;
|
||||||
|
accessToken: string;
|
||||||
pin: string;
|
pin: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,6 +83,7 @@ export interface GetPinStatusResponse {
|
|||||||
export interface RemovePinRequest {
|
export interface RemovePinRequest {
|
||||||
pin: string;
|
pin: string;
|
||||||
userId: string;
|
userId: string;
|
||||||
|
accessToken: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RemovePinResponse {
|
export interface RemovePinResponse {
|
||||||
|
|||||||
@@ -248,9 +248,10 @@ func (x *GetAccountResponse) GetHasPin() bool {
|
|||||||
type ChangePasswordRequest struct {
|
type ChangePasswordRequest struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||||
OldPassword string `protobuf:"bytes,2,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"`
|
AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
||||||
NewPassword string `protobuf:"bytes,3,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
|
OldPassword string `protobuf:"bytes,3,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"`
|
||||||
Code *string `protobuf:"bytes,4,opt,name=code,proto3,oneof" json:"code,omitempty"`
|
NewPassword string `protobuf:"bytes,4,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
|
||||||
|
Code *string `protobuf:"bytes,5,opt,name=code,proto3,oneof" json:"code,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
@@ -292,6 +293,13 @@ func (x *ChangePasswordRequest) GetUserId() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *ChangePasswordRequest) GetAccessToken() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.AccessToken
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func (x *ChangePasswordRequest) GetOldPassword() string {
|
func (x *ChangePasswordRequest) GetOldPassword() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.OldPassword
|
return x.OldPassword
|
||||||
@@ -368,7 +376,8 @@ func (x *ChangePasswordResponse) GetMessage() string {
|
|||||||
type SetPinRequest struct {
|
type SetPinRequest struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||||
Pin string `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"`
|
AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
||||||
|
Pin string `protobuf:"bytes,3,opt,name=pin,proto3" json:"pin,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
@@ -410,6 +419,13 @@ func (x *SetPinRequest) GetUserId() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *SetPinRequest) GetAccessToken() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.AccessToken
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func (x *SetPinRequest) GetPin() string {
|
func (x *SetPinRequest) GetPin() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Pin
|
return x.Pin
|
||||||
@@ -681,6 +697,7 @@ type RemovePinRequest struct {
|
|||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
Pin string `protobuf:"bytes,1,opt,name=pin,proto3" json:"pin,omitempty"`
|
Pin string `protobuf:"bytes,1,opt,name=pin,proto3" json:"pin,omitempty"`
|
||||||
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||||
|
AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
@@ -729,6 +746,13 @@ func (x *RemovePinRequest) GetUserId() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *RemovePinRequest) GetAccessToken() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.AccessToken
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
type RemovePinResponse struct {
|
type RemovePinResponse struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||||||
@@ -812,19 +836,21 @@ const file_account_proto_rawDesc = "" +
|
|||||||
"\blanguage\x18\x10 \x01(\tR\blanguage\x12$\n" +
|
"\blanguage\x18\x10 \x01(\tR\blanguage\x12$\n" +
|
||||||
"\x0etwo_fa_enabled\x18\x11 \x01(\bR\ftwoFaEnabled\x12\x17\n" +
|
"\x0etwo_fa_enabled\x18\x11 \x01(\bR\ftwoFaEnabled\x12\x17\n" +
|
||||||
"\ahas_pin\x18\x12 \x01(\bR\x06hasPinB\x0e\n" +
|
"\ahas_pin\x18\x12 \x01(\bR\x06hasPinB\x0e\n" +
|
||||||
"\f_employee_id\"\x98\x01\n" +
|
"\f_employee_id\"\xbb\x01\n" +
|
||||||
"\x15ChangePasswordRequest\x12\x17\n" +
|
"\x15ChangePasswordRequest\x12\x17\n" +
|
||||||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12!\n" +
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12!\n" +
|
||||||
"\fold_password\x18\x02 \x01(\tR\voldPassword\x12!\n" +
|
"\faccess_token\x18\x02 \x01(\tR\vaccessToken\x12!\n" +
|
||||||
"\fnew_password\x18\x03 \x01(\tR\vnewPassword\x12\x17\n" +
|
"\fold_password\x18\x03 \x01(\tR\voldPassword\x12!\n" +
|
||||||
"\x04code\x18\x04 \x01(\tH\x00R\x04code\x88\x01\x01B\a\n" +
|
"\fnew_password\x18\x04 \x01(\tR\vnewPassword\x12\x17\n" +
|
||||||
|
"\x04code\x18\x05 \x01(\tH\x00R\x04code\x88\x01\x01B\a\n" +
|
||||||
"\x05_code\"L\n" +
|
"\x05_code\"L\n" +
|
||||||
"\x16ChangePasswordResponse\x12\x18\n" +
|
"\x16ChangePasswordResponse\x12\x18\n" +
|
||||||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||||||
"\amessage\x18\x02 \x01(\tR\amessage\":\n" +
|
"\amessage\x18\x02 \x01(\tR\amessage\"]\n" +
|
||||||
"\rSetPinRequest\x12\x17\n" +
|
"\rSetPinRequest\x12\x17\n" +
|
||||||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x10\n" +
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12!\n" +
|
||||||
"\x03pin\x18\x02 \x01(\tR\x03pin\"D\n" +
|
"\faccess_token\x18\x02 \x01(\tR\vaccessToken\x12\x10\n" +
|
||||||
|
"\x03pin\x18\x03 \x01(\tR\x03pin\"D\n" +
|
||||||
"\x0eSetPinResponse\x12\x18\n" +
|
"\x0eSetPinResponse\x12\x18\n" +
|
||||||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||||||
"\amessage\x18\x02 \x01(\tR\amessage\"G\n" +
|
"\amessage\x18\x02 \x01(\tR\amessage\"G\n" +
|
||||||
@@ -840,10 +866,11 @@ const file_account_proto_rawDesc = "" +
|
|||||||
"\ahas_pin\x18\x01 \x01(\bR\x06hasPin\x12\x1b\n" +
|
"\ahas_pin\x18\x01 \x01(\bR\x06hasPin\x12\x1b\n" +
|
||||||
"\tis_locked\x18\x02 \x01(\bR\bisLocked\x12\x1d\n" +
|
"\tis_locked\x18\x02 \x01(\bR\bisLocked\x12\x1d\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"lock_until\x18\x03 \x01(\tR\tlockUntil\"=\n" +
|
"lock_until\x18\x03 \x01(\tR\tlockUntil\"`\n" +
|
||||||
"\x10RemovePinRequest\x12\x10\n" +
|
"\x10RemovePinRequest\x12\x10\n" +
|
||||||
"\x03pin\x18\x01 \x01(\tR\x03pin\x12\x17\n" +
|
"\x03pin\x18\x01 \x01(\tR\x03pin\x12\x17\n" +
|
||||||
"\auser_id\x18\x02 \x01(\tR\x06userId\"G\n" +
|
"\auser_id\x18\x02 \x01(\tR\x06userId\x12!\n" +
|
||||||
|
"\faccess_token\x18\x03 \x01(\tR\vaccessToken\"G\n" +
|
||||||
"\x11RemovePinResponse\x12\x18\n" +
|
"\x11RemovePinResponse\x12\x18\n" +
|
||||||
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
||||||
"\amessage\x18\x02 \x01(\tR\amessage2\xde\x03\n" +
|
"\amessage\x18\x02 \x01(\tR\amessage2\xde\x03\n" +
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ func (x *Verify2FaRequest) GetTelegramCode() string {
|
|||||||
type Verify2FaResponse struct {
|
type Verify2FaResponse struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
||||||
RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
|
||||||
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
|
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
|
||||||
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
|
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
|
||||||
ReserveCodes []string `protobuf:"bytes,5,rep,name=reserve_codes,json=reserveCodes,proto3" json:"reserve_codes,omitempty"`
|
ReserveCodes []string `protobuf:"bytes,5,rep,name=reserve_codes,json=reserveCodes,proto3" json:"reserve_codes,omitempty"`
|
||||||
@@ -129,13 +128,6 @@ func (x *Verify2FaResponse) GetAccessToken() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Verify2FaResponse) GetRefreshToken() string {
|
|
||||||
if x != nil {
|
|
||||||
return x.RefreshToken
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *Verify2FaResponse) GetStatus() string {
|
func (x *Verify2FaResponse) GetStatus() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Status
|
return x.Status
|
||||||
@@ -969,10 +961,9 @@ const file_twofa_proto_rawDesc = "" +
|
|||||||
"\rtelegram_code\x18\x03 \x01(\tH\x01R\ftelegramCode\x88\x01\x01B\f\n" +
|
"\rtelegram_code\x18\x03 \x01(\tH\x01R\ftelegramCode\x88\x01\x01B\f\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"_totp_codeB\x10\n" +
|
"_totp_codeB\x10\n" +
|
||||||
"\x0e_telegram_code\"\xb2\x01\n" +
|
"\x0e_telegram_code\"\x8d\x01\n" +
|
||||||
"\x11Verify2FaResponse\x12!\n" +
|
"\x11Verify2FaResponse\x12!\n" +
|
||||||
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12#\n" +
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12\x16\n" +
|
||||||
"\rrefresh_token\x18\x02 \x01(\tR\frefreshToken\x12\x16\n" +
|
|
||||||
"\x06status\x18\x03 \x01(\tR\x06status\x12\x18\n" +
|
"\x06status\x18\x03 \x01(\tR\x06status\x12\x18\n" +
|
||||||
"\amessage\x18\x04 \x01(\tR\amessage\x12#\n" +
|
"\amessage\x18\x04 \x01(\tR\amessage\x12#\n" +
|
||||||
"\rreserve_codes\x18\x05 \x03(\tR\freserveCodes\"?\n" +
|
"\rreserve_codes\x18\x05 \x03(\tR\freserveCodes\"?\n" +
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ export interface Verify2FaRequest {
|
|||||||
|
|
||||||
export interface Verify2FaResponse {
|
export interface Verify2FaResponse {
|
||||||
accessToken: string;
|
accessToken: string;
|
||||||
refreshToken: string;
|
|
||||||
status: string;
|
status: string;
|
||||||
message: string;
|
message: string;
|
||||||
reserveCodes: string[];
|
reserveCodes: string[];
|
||||||
|
|||||||
Reference in New Issue
Block a user