Files
contracts/gen/go/account.pb.go
2026-04-03 18:28:49 +00:00

931 lines
28 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v3.21.12
// source: account.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type GetAccountRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetAccountRequest) Reset() {
*x = GetAccountRequest{}
mi := &file_account_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetAccountRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAccountRequest) ProtoMessage() {}
func (x *GetAccountRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.
func (*GetAccountRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{0}
}
func (x *GetAccountRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type GetAccountResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
FullName string `protobuf:"bytes,5,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
IsLdap bool `protobuf:"varint,6,opt,name=is_ldap,json=isLdap,proto3" json:"is_ldap,omitempty"`
Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
Roles []string `protobuf:"bytes,8,rep,name=roles,proto3" json:"roles,omitempty"`
AvatarUrl string `protobuf:"bytes,9,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
EmployeeId *string `protobuf:"bytes,10,opt,name=employee_id,json=employeeId,proto3,oneof" json:"employee_id,omitempty"`
Presence string `protobuf:"bytes,11,opt,name=presence,proto3" json:"presence,omitempty"`
LastActive string `protobuf:"bytes,12,opt,name=last_active,json=lastActive,proto3" json:"last_active,omitempty"`
CustomStatusText string `protobuf:"bytes,13,opt,name=custom_status_text,json=customStatusText,proto3" json:"custom_status_text,omitempty"`
CustomStatusEmoji string `protobuf:"bytes,14,opt,name=custom_status_emoji,json=customStatusEmoji,proto3" json:"custom_status_emoji,omitempty"`
Timezone string `protobuf:"bytes,15,opt,name=timezone,proto3" json:"timezone,omitempty"`
Language string `protobuf:"bytes,16,opt,name=language,proto3" json:"language,omitempty"`
TwoFaEnabled bool `protobuf:"varint,17,opt,name=two_fa_enabled,json=twoFaEnabled,proto3" json:"two_fa_enabled,omitempty"`
HasPin bool `protobuf:"varint,18,opt,name=has_pin,json=hasPin,proto3" json:"has_pin,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetAccountResponse) Reset() {
*x = GetAccountResponse{}
mi := &file_account_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetAccountResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAccountResponse) ProtoMessage() {}
func (x *GetAccountResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.
func (*GetAccountResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{1}
}
func (x *GetAccountResponse) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *GetAccountResponse) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *GetAccountResponse) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *GetAccountResponse) GetPhone() string {
if x != nil {
return x.Phone
}
return ""
}
func (x *GetAccountResponse) GetFullName() string {
if x != nil {
return x.FullName
}
return ""
}
func (x *GetAccountResponse) GetIsLdap() bool {
if x != nil {
return x.IsLdap
}
return false
}
func (x *GetAccountResponse) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *GetAccountResponse) GetRoles() []string {
if x != nil {
return x.Roles
}
return nil
}
func (x *GetAccountResponse) GetAvatarUrl() string {
if x != nil {
return x.AvatarUrl
}
return ""
}
func (x *GetAccountResponse) GetEmployeeId() string {
if x != nil && x.EmployeeId != nil {
return *x.EmployeeId
}
return ""
}
func (x *GetAccountResponse) GetPresence() string {
if x != nil {
return x.Presence
}
return ""
}
func (x *GetAccountResponse) GetLastActive() string {
if x != nil {
return x.LastActive
}
return ""
}
func (x *GetAccountResponse) GetCustomStatusText() string {
if x != nil {
return x.CustomStatusText
}
return ""
}
func (x *GetAccountResponse) GetCustomStatusEmoji() string {
if x != nil {
return x.CustomStatusEmoji
}
return ""
}
func (x *GetAccountResponse) GetTimezone() string {
if x != nil {
return x.Timezone
}
return ""
}
func (x *GetAccountResponse) GetLanguage() string {
if x != nil {
return x.Language
}
return ""
}
func (x *GetAccountResponse) GetTwoFaEnabled() bool {
if x != nil {
return x.TwoFaEnabled
}
return false
}
func (x *GetAccountResponse) GetHasPin() bool {
if x != nil {
return x.HasPin
}
return false
}
type ChangePasswordRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
OldPassword string `protobuf:"bytes,3,opt,name=old_password,json=oldPassword,proto3" json:"old_password,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
sizeCache protoimpl.SizeCache
}
func (x *ChangePasswordRequest) Reset() {
*x = ChangePasswordRequest{}
mi := &file_account_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ChangePasswordRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChangePasswordRequest) ProtoMessage() {}
func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.
func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{2}
}
func (x *ChangePasswordRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *ChangePasswordRequest) GetOldPassword() string {
if x != nil {
return x.OldPassword
}
return ""
}
func (x *ChangePasswordRequest) GetNewPassword() string {
if x != nil {
return x.NewPassword
}
return ""
}
func (x *ChangePasswordRequest) GetCode() string {
if x != nil && x.Code != nil {
return *x.Code
}
return ""
}
type ChangePasswordResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ChangePasswordResponse) Reset() {
*x = ChangePasswordResponse{}
mi := &file_account_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ChangePasswordResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChangePasswordResponse) ProtoMessage() {}
func (x *ChangePasswordResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ChangePasswordResponse.ProtoReflect.Descriptor instead.
func (*ChangePasswordResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{3}
}
func (x *ChangePasswordResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *ChangePasswordResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type SetPinRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Pin string `protobuf:"bytes,3,opt,name=pin,proto3" json:"pin,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetPinRequest) Reset() {
*x = SetPinRequest{}
mi := &file_account_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetPinRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetPinRequest) ProtoMessage() {}
func (x *SetPinRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetPinRequest.ProtoReflect.Descriptor instead.
func (*SetPinRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{4}
}
func (x *SetPinRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *SetPinRequest) GetPin() string {
if x != nil {
return x.Pin
}
return ""
}
type SetPinResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetPinResponse) Reset() {
*x = SetPinResponse{}
mi := &file_account_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetPinResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetPinResponse) ProtoMessage() {}
func (x *SetPinResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetPinResponse.ProtoReflect.Descriptor instead.
func (*SetPinResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{5}
}
func (x *SetPinResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *SetPinResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type UnlockPinRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
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"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UnlockPinRequest) Reset() {
*x = UnlockPinRequest{}
mi := &file_account_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UnlockPinRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnlockPinRequest) ProtoMessage() {}
func (x *UnlockPinRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UnlockPinRequest.ProtoReflect.Descriptor instead.
func (*UnlockPinRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{6}
}
func (x *UnlockPinRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *UnlockPinRequest) GetPin() string {
if x != nil {
return x.Pin
}
return ""
}
type UnlockPinResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UnlockPinResponse) Reset() {
*x = UnlockPinResponse{}
mi := &file_account_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UnlockPinResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnlockPinResponse) ProtoMessage() {}
func (x *UnlockPinResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UnlockPinResponse.ProtoReflect.Descriptor instead.
func (*UnlockPinResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{7}
}
func (x *UnlockPinResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *UnlockPinResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type GetPinStatusRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetPinStatusRequest) Reset() {
*x = GetPinStatusRequest{}
mi := &file_account_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetPinStatusRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPinStatusRequest) ProtoMessage() {}
func (x *GetPinStatusRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPinStatusRequest.ProtoReflect.Descriptor instead.
func (*GetPinStatusRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{8}
}
func (x *GetPinStatusRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
type GetPinStatusResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
HasPin bool `protobuf:"varint,1,opt,name=has_pin,json=hasPin,proto3" json:"has_pin,omitempty"`
IsLocked bool `protobuf:"varint,2,opt,name=is_locked,json=isLocked,proto3" json:"is_locked,omitempty"`
LockUntil string `protobuf:"bytes,3,opt,name=lock_until,json=lockUntil,proto3" json:"lock_until,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetPinStatusResponse) Reset() {
*x = GetPinStatusResponse{}
mi := &file_account_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetPinStatusResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPinStatusResponse) ProtoMessage() {}
func (x *GetPinStatusResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetPinStatusResponse.ProtoReflect.Descriptor instead.
func (*GetPinStatusResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{9}
}
func (x *GetPinStatusResponse) GetHasPin() bool {
if x != nil {
return x.HasPin
}
return false
}
func (x *GetPinStatusResponse) GetIsLocked() bool {
if x != nil {
return x.IsLocked
}
return false
}
func (x *GetPinStatusResponse) GetLockUntil() string {
if x != nil {
return x.LockUntil
}
return ""
}
type RemovePinRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
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"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RemovePinRequest) Reset() {
*x = RemovePinRequest{}
mi := &file_account_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RemovePinRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RemovePinRequest) ProtoMessage() {}
func (x *RemovePinRequest) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RemovePinRequest.ProtoReflect.Descriptor instead.
func (*RemovePinRequest) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{10}
}
func (x *RemovePinRequest) GetPin() string {
if x != nil {
return x.Pin
}
return ""
}
func (x *RemovePinRequest) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
type RemovePinResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RemovePinResponse) Reset() {
*x = RemovePinResponse{}
mi := &file_account_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RemovePinResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RemovePinResponse) ProtoMessage() {}
func (x *RemovePinResponse) ProtoReflect() protoreflect.Message {
mi := &file_account_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RemovePinResponse.ProtoReflect.Descriptor instead.
func (*RemovePinResponse) Descriptor() ([]byte, []int) {
return file_account_proto_rawDescGZIP(), []int{11}
}
func (x *RemovePinResponse) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *RemovePinResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
var File_account_proto protoreflect.FileDescriptor
const file_account_proto_rawDesc = "" +
"\n" +
"\raccount.proto\x12\n" +
"account.v1\"#\n" +
"\x11GetAccountRequest\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\"\xb7\x04\n" +
"\x12GetAccountResponse\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1a\n" +
"\busername\x18\x02 \x01(\tR\busername\x12\x14\n" +
"\x05email\x18\x03 \x01(\tR\x05email\x12\x14\n" +
"\x05phone\x18\x04 \x01(\tR\x05phone\x12\x1b\n" +
"\tfull_name\x18\x05 \x01(\tR\bfullName\x12\x17\n" +
"\ais_ldap\x18\x06 \x01(\bR\x06isLdap\x12\x16\n" +
"\x06status\x18\a \x01(\tR\x06status\x12\x14\n" +
"\x05roles\x18\b \x03(\tR\x05roles\x12\x1d\n" +
"\n" +
"avatar_url\x18\t \x01(\tR\tavatarUrl\x12$\n" +
"\vemployee_id\x18\n" +
" \x01(\tH\x00R\n" +
"employeeId\x88\x01\x01\x12\x1a\n" +
"\bpresence\x18\v \x01(\tR\bpresence\x12\x1f\n" +
"\vlast_active\x18\f \x01(\tR\n" +
"lastActive\x12,\n" +
"\x12custom_status_text\x18\r \x01(\tR\x10customStatusText\x12.\n" +
"\x13custom_status_emoji\x18\x0e \x01(\tR\x11customStatusEmoji\x12\x1a\n" +
"\btimezone\x18\x0f \x01(\tR\btimezone\x12\x1a\n" +
"\blanguage\x18\x10 \x01(\tR\blanguage\x12$\n" +
"\x0etwo_fa_enabled\x18\x11 \x01(\bR\ftwoFaEnabled\x12\x17\n" +
"\ahas_pin\x18\x12 \x01(\bR\x06hasPinB\x0e\n" +
"\f_employee_id\"\x98\x01\n" +
"\x15ChangePasswordRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12!\n" +
"\fold_password\x18\x03 \x01(\tR\voldPassword\x12!\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" +
"\x16ChangePasswordResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\":\n" +
"\rSetPinRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x10\n" +
"\x03pin\x18\x03 \x01(\tR\x03pin\"D\n" +
"\x0eSetPinResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\"=\n" +
"\x10UnlockPinRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x10\n" +
"\x03pin\x18\x02 \x01(\tR\x03pin\"G\n" +
"\x11UnlockPinResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\".\n" +
"\x13GetPinStatusRequest\x12\x17\n" +
"\auser_id\x18\x01 \x01(\tR\x06userId\"k\n" +
"\x14GetPinStatusResponse\x12\x17\n" +
"\ahas_pin\x18\x01 \x01(\bR\x06hasPin\x12\x1b\n" +
"\tis_locked\x18\x02 \x01(\bR\bisLocked\x12\x1d\n" +
"\n" +
"lock_until\x18\x03 \x01(\tR\tlockUntil\"=\n" +
"\x10RemovePinRequest\x12\x10\n" +
"\x03pin\x18\x01 \x01(\tR\x03pin\x12\x17\n" +
"\auser_id\x18\x02 \x01(\tR\x06userId\"G\n" +
"\x11RemovePinResponse\x12\x18\n" +
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage2\xde\x03\n" +
"\x0eAccountService\x12K\n" +
"\n" +
"GetAccount\x12\x1d.account.v1.GetAccountRequest\x1a\x1e.account.v1.GetAccountResponse\x12W\n" +
"\x0eChangePassword\x12!.account.v1.ChangePasswordRequest\x1a\".account.v1.ChangePasswordResponse\x12?\n" +
"\x06SetPin\x12\x19.account.v1.SetPinRequest\x1a\x1a.account.v1.SetPinResponse\x12H\n" +
"\tUnlockPin\x12\x1c.account.v1.UnlockPinRequest\x1a\x1d.account.v1.UnlockPinResponse\x12Q\n" +
"\fGetPinStatus\x12\x1f.account.v1.GetPinStatusRequest\x1a .account.v1.GetPinStatusResponse\x12H\n" +
"\tRemovePin\x12\x1c.account.v1.RemovePinRequest\x1a\x1d.account.v1.RemovePinResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
var (
file_account_proto_rawDescOnce sync.Once
file_account_proto_rawDescData []byte
)
func file_account_proto_rawDescGZIP() []byte {
file_account_proto_rawDescOnce.Do(func() {
file_account_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_account_proto_rawDesc), len(file_account_proto_rawDesc)))
})
return file_account_proto_rawDescData
}
var file_account_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_account_proto_goTypes = []any{
(*GetAccountRequest)(nil), // 0: account.v1.GetAccountRequest
(*GetAccountResponse)(nil), // 1: account.v1.GetAccountResponse
(*ChangePasswordRequest)(nil), // 2: account.v1.ChangePasswordRequest
(*ChangePasswordResponse)(nil), // 3: account.v1.ChangePasswordResponse
(*SetPinRequest)(nil), // 4: account.v1.SetPinRequest
(*SetPinResponse)(nil), // 5: account.v1.SetPinResponse
(*UnlockPinRequest)(nil), // 6: account.v1.UnlockPinRequest
(*UnlockPinResponse)(nil), // 7: account.v1.UnlockPinResponse
(*GetPinStatusRequest)(nil), // 8: account.v1.GetPinStatusRequest
(*GetPinStatusResponse)(nil), // 9: account.v1.GetPinStatusResponse
(*RemovePinRequest)(nil), // 10: account.v1.RemovePinRequest
(*RemovePinResponse)(nil), // 11: account.v1.RemovePinResponse
}
var file_account_proto_depIdxs = []int32{
0, // 0: account.v1.AccountService.GetAccount:input_type -> account.v1.GetAccountRequest
2, // 1: account.v1.AccountService.ChangePassword:input_type -> account.v1.ChangePasswordRequest
4, // 2: account.v1.AccountService.SetPin:input_type -> account.v1.SetPinRequest
6, // 3: account.v1.AccountService.UnlockPin:input_type -> account.v1.UnlockPinRequest
8, // 4: account.v1.AccountService.GetPinStatus:input_type -> account.v1.GetPinStatusRequest
10, // 5: account.v1.AccountService.RemovePin:input_type -> account.v1.RemovePinRequest
1, // 6: account.v1.AccountService.GetAccount:output_type -> account.v1.GetAccountResponse
3, // 7: account.v1.AccountService.ChangePassword:output_type -> account.v1.ChangePasswordResponse
5, // 8: account.v1.AccountService.SetPin:output_type -> account.v1.SetPinResponse
7, // 9: account.v1.AccountService.UnlockPin:output_type -> account.v1.UnlockPinResponse
9, // 10: account.v1.AccountService.GetPinStatus:output_type -> account.v1.GetPinStatusResponse
11, // 11: account.v1.AccountService.RemovePin:output_type -> account.v1.RemovePinResponse
6, // [6:12] is the sub-list for method output_type
0, // [0:6] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_account_proto_init() }
func file_account_proto_init() {
if File_account_proto != nil {
return
}
file_account_proto_msgTypes[1].OneofWrappers = []any{}
file_account_proto_msgTypes[2].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_account_proto_rawDesc), len(file_account_proto_rawDesc)),
NumEnums: 0,
NumMessages: 12,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_account_proto_goTypes,
DependencyIndexes: file_account_proto_depIdxs,
MessageInfos: file_account_proto_msgTypes,
}.Build()
File_account_proto = out.File
file_account_proto_goTypes = nil
file_account_proto_depIdxs = nil
}