1776 lines
56 KiB
Go
1776 lines
56 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.21.12
|
|
// source: identity.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 LoginRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginRequest) Reset() {
|
|
*x = LoginRequest{}
|
|
mi := &file_identity_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginRequest) ProtoMessage() {}
|
|
|
|
func (x *LoginRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_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 LoginRequest.ProtoReflect.Descriptor instead.
|
|
func (*LoginRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *LoginRequest) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
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"`
|
|
Need2Fa bool `protobuf:"varint,4,opt,name=need2fa,proto3" json:"need2fa,omitempty"`
|
|
TempToken *string `protobuf:"bytes,5,opt,name=temp_token,json=tempToken,proto3,oneof" json:"temp_token,omitempty"`
|
|
Message *string `protobuf:"bytes,6,opt,name=message,proto3,oneof" json:"message,omitempty"`
|
|
ErrorCode *string `protobuf:"bytes,7,opt,name=error_code,json=errorCode,proto3,oneof" json:"error_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginResponse) Reset() {
|
|
*x = LoginResponse{}
|
|
mi := &file_identity_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginResponse) ProtoMessage() {}
|
|
|
|
func (x *LoginResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_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 LoginResponse.ProtoReflect.Descriptor instead.
|
|
func (*LoginResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *LoginResponse) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginResponse) GetRefreshToken() string {
|
|
if x != nil {
|
|
return x.RefreshToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginResponse) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginResponse) GetNeed2Fa() bool {
|
|
if x != nil {
|
|
return x.Need2Fa
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *LoginResponse) GetTempToken() string {
|
|
if x != nil && x.TempToken != nil {
|
|
return *x.TempToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginResponse) GetMessage() string {
|
|
if x != nil && x.Message != nil {
|
|
return *x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginResponse) GetErrorCode() string {
|
|
if x != nil && x.ErrorCode != nil {
|
|
return *x.ErrorCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RefreshRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RefreshRequest) Reset() {
|
|
*x = RefreshRequest{}
|
|
mi := &file_identity_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RefreshRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RefreshRequest) ProtoMessage() {}
|
|
|
|
func (x *RefreshRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_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 RefreshRequest.ProtoReflect.Descriptor instead.
|
|
func (*RefreshRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *RefreshRequest) GetRefreshToken() string {
|
|
if x != nil {
|
|
return x.RefreshToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RefreshResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RefreshResponse) Reset() {
|
|
*x = RefreshResponse{}
|
|
mi := &file_identity_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RefreshResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RefreshResponse) ProtoMessage() {}
|
|
|
|
func (x *RefreshResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_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 RefreshResponse.ProtoReflect.Descriptor instead.
|
|
func (*RefreshResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *RefreshResponse) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RefreshResponse) GetRefreshToken() string {
|
|
if x != nil {
|
|
return x.RefreshToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LogoutRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LogoutRequest) Reset() {
|
|
*x = LogoutRequest{}
|
|
mi := &file_identity_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LogoutRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LogoutRequest) ProtoMessage() {}
|
|
|
|
func (x *LogoutRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_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 LogoutRequest.ProtoReflect.Descriptor instead.
|
|
func (*LogoutRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *LogoutRequest) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LogoutResponse 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 *LogoutResponse) Reset() {
|
|
*x = LogoutResponse{}
|
|
mi := &file_identity_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LogoutResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LogoutResponse) ProtoMessage() {}
|
|
|
|
func (x *LogoutResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_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 LogoutResponse.ProtoReflect.Descriptor instead.
|
|
func (*LogoutResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *LogoutResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *LogoutResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type VerifyTokenRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyTokenRequest) Reset() {
|
|
*x = VerifyTokenRequest{}
|
|
mi := &file_identity_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyTokenRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyTokenRequest) ProtoMessage() {}
|
|
|
|
func (x *VerifyTokenRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_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 VerifyTokenRequest.ProtoReflect.Descriptor instead.
|
|
func (*VerifyTokenRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *VerifyTokenRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type VerifyTokenResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"`
|
|
ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
|
|
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
|
|
Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
|
|
RoleLevel int32 `protobuf:"varint,5,opt,name=role_level,json=roleLevel,proto3" json:"role_level,omitempty"`
|
|
Permissions []string `protobuf:"bytes,6,rep,name=permissions,proto3" json:"permissions,omitempty"`
|
|
SessionId string `protobuf:"bytes,7,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) Reset() {
|
|
*x = VerifyTokenResponse{}
|
|
mi := &file_identity_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyTokenResponse) ProtoMessage() {}
|
|
|
|
func (x *VerifyTokenResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_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 VerifyTokenResponse.ProtoReflect.Descriptor instead.
|
|
func (*VerifyTokenResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetIsValid() bool {
|
|
if x != nil {
|
|
return x.IsValid
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetErrorMessage() string {
|
|
if x != nil {
|
|
return x.ErrorMessage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetRoleLevel() int32 {
|
|
if x != nil {
|
|
return x.RoleLevel
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetPermissions() []string {
|
|
if x != nil {
|
|
return x.Permissions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *VerifyTokenResponse) GetSessionId() string {
|
|
if x != nil {
|
|
return x.SessionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UnlockPinRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
PinCode string `protobuf:"bytes,2,opt,name=pin_code,json=pinCode,proto3" json:"pin_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UnlockPinRequest) Reset() {
|
|
*x = UnlockPinRequest{}
|
|
mi := &file_identity_proto_msgTypes[8]
|
|
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_identity_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 UnlockPinRequest.ProtoReflect.Descriptor instead.
|
|
func (*UnlockPinRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *UnlockPinRequest) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UnlockPinRequest) GetPinCode() string {
|
|
if x != nil {
|
|
return x.PinCode
|
|
}
|
|
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_identity_proto_msgTypes[9]
|
|
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_identity_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 UnlockPinResponse.ProtoReflect.Descriptor instead.
|
|
func (*UnlockPinResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
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 Verify2FaRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TempToken string `protobuf:"bytes,1,opt,name=temp_token,json=tempToken,proto3" json:"temp_token,omitempty"`
|
|
TotpCode *string `protobuf:"bytes,2,opt,name=totp_code,json=totpCode,proto3,oneof" json:"totp_code,omitempty"`
|
|
TelegramCode *string `protobuf:"bytes,3,opt,name=telegram_code,json=telegramCode,proto3,oneof" json:"telegram_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Verify2FaRequest) Reset() {
|
|
*x = Verify2FaRequest{}
|
|
mi := &file_identity_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Verify2FaRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Verify2FaRequest) ProtoMessage() {}
|
|
|
|
func (x *Verify2FaRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_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 Verify2FaRequest.ProtoReflect.Descriptor instead.
|
|
func (*Verify2FaRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *Verify2FaRequest) GetTempToken() string {
|
|
if x != nil {
|
|
return x.TempToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Verify2FaRequest) GetTotpCode() string {
|
|
if x != nil && x.TotpCode != nil {
|
|
return *x.TotpCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Verify2FaRequest) GetTelegramCode() string {
|
|
if x != nil && x.TelegramCode != nil {
|
|
return *x.TelegramCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Verify2FaResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
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"`
|
|
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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Verify2FaResponse) Reset() {
|
|
*x = Verify2FaResponse{}
|
|
mi := &file_identity_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Verify2FaResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Verify2FaResponse) ProtoMessage() {}
|
|
|
|
func (x *Verify2FaResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_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 Verify2FaResponse.ProtoReflect.Descriptor instead.
|
|
func (*Verify2FaResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *Verify2FaResponse) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Verify2FaResponse) GetRefreshToken() string {
|
|
if x != nil {
|
|
return x.RefreshToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Verify2FaResponse) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Verify2FaResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Verify2FaResponse) GetReserveCodes() []string {
|
|
if x != nil {
|
|
return x.ReserveCodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AuthenticatedAccessRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AuthenticatedAccessRequest) Reset() {
|
|
*x = AuthenticatedAccessRequest{}
|
|
mi := &file_identity_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AuthenticatedAccessRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AuthenticatedAccessRequest) ProtoMessage() {}
|
|
|
|
func (x *AuthenticatedAccessRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[12]
|
|
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 AuthenticatedAccessRequest.ProtoReflect.Descriptor instead.
|
|
func (*AuthenticatedAccessRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *AuthenticatedAccessRequest) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetTwoFaStatusRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetTwoFaStatusRequest) Reset() {
|
|
*x = GetTwoFaStatusRequest{}
|
|
mi := &file_identity_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetTwoFaStatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetTwoFaStatusRequest) ProtoMessage() {}
|
|
|
|
func (x *GetTwoFaStatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[13]
|
|
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 GetTwoFaStatusRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetTwoFaStatusRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *GetTwoFaStatusRequest) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetTwoFaStatusResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TotpEnabled bool `protobuf:"varint,1,opt,name=totp_enabled,json=totpEnabled,proto3" json:"totp_enabled,omitempty"`
|
|
TelegramEnabled bool `protobuf:"varint,2,opt,name=telegram_enabled,json=telegramEnabled,proto3" json:"telegram_enabled,omitempty"`
|
|
TotpEnrollmentPending bool `protobuf:"varint,3,opt,name=totp_enrollment_pending,json=totpEnrollmentPending,proto3" json:"totp_enrollment_pending,omitempty"`
|
|
TelegramEnrollmentPending bool `protobuf:"varint,4,opt,name=telegram_enrollment_pending,json=telegramEnrollmentPending,proto3" json:"telegram_enrollment_pending,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetTwoFaStatusResponse) Reset() {
|
|
*x = GetTwoFaStatusResponse{}
|
|
mi := &file_identity_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetTwoFaStatusResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetTwoFaStatusResponse) ProtoMessage() {}
|
|
|
|
func (x *GetTwoFaStatusResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[14]
|
|
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 GetTwoFaStatusResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetTwoFaStatusResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *GetTwoFaStatusResponse) GetTotpEnabled() bool {
|
|
if x != nil {
|
|
return x.TotpEnabled
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetTwoFaStatusResponse) GetTelegramEnabled() bool {
|
|
if x != nil {
|
|
return x.TelegramEnabled
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetTwoFaStatusResponse) GetTotpEnrollmentPending() bool {
|
|
if x != nil {
|
|
return x.TotpEnrollmentPending
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetTwoFaStatusResponse) GetTelegramEnrollmentPending() bool {
|
|
if x != nil {
|
|
return x.TelegramEnrollmentPending
|
|
}
|
|
return false
|
|
}
|
|
|
|
type StartTotpEnrollmentResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
SecretBase32 string `protobuf:"bytes,1,opt,name=secret_base32,json=secretBase32,proto3" json:"secret_base32,omitempty"`
|
|
OtpauthUri string `protobuf:"bytes,2,opt,name=otpauth_uri,json=otpauthUri,proto3" json:"otpauth_uri,omitempty"`
|
|
Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
|
|
AccountLabel string `protobuf:"bytes,4,opt,name=account_label,json=accountLabel,proto3" json:"account_label,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StartTotpEnrollmentResponse) Reset() {
|
|
*x = StartTotpEnrollmentResponse{}
|
|
mi := &file_identity_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StartTotpEnrollmentResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StartTotpEnrollmentResponse) ProtoMessage() {}
|
|
|
|
func (x *StartTotpEnrollmentResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[15]
|
|
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 StartTotpEnrollmentResponse.ProtoReflect.Descriptor instead.
|
|
func (*StartTotpEnrollmentResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *StartTotpEnrollmentResponse) GetSecretBase32() string {
|
|
if x != nil {
|
|
return x.SecretBase32
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StartTotpEnrollmentResponse) GetOtpauthUri() string {
|
|
if x != nil {
|
|
return x.OtpauthUri
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StartTotpEnrollmentResponse) GetIssuer() string {
|
|
if x != nil {
|
|
return x.Issuer
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StartTotpEnrollmentResponse) GetAccountLabel() string {
|
|
if x != nil {
|
|
return x.AccountLabel
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ConfirmTotpEnrollmentRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
TotpCode string `protobuf:"bytes,2,opt,name=totp_code,json=totpCode,proto3" json:"totp_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ConfirmTotpEnrollmentRequest) Reset() {
|
|
*x = ConfirmTotpEnrollmentRequest{}
|
|
mi := &file_identity_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ConfirmTotpEnrollmentRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConfirmTotpEnrollmentRequest) ProtoMessage() {}
|
|
|
|
func (x *ConfirmTotpEnrollmentRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[16]
|
|
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 ConfirmTotpEnrollmentRequest.ProtoReflect.Descriptor instead.
|
|
func (*ConfirmTotpEnrollmentRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *ConfirmTotpEnrollmentRequest) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConfirmTotpEnrollmentRequest) GetTotpCode() string {
|
|
if x != nil {
|
|
return x.TotpCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ConfirmTotpEnrollmentResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
ReserveCodes []string `protobuf:"bytes,3,rep,name=reserve_codes,json=reserveCodes,proto3" json:"reserve_codes,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ConfirmTotpEnrollmentResponse) Reset() {
|
|
*x = ConfirmTotpEnrollmentResponse{}
|
|
mi := &file_identity_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ConfirmTotpEnrollmentResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConfirmTotpEnrollmentResponse) ProtoMessage() {}
|
|
|
|
func (x *ConfirmTotpEnrollmentResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[17]
|
|
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 ConfirmTotpEnrollmentResponse.ProtoReflect.Descriptor instead.
|
|
func (*ConfirmTotpEnrollmentResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *ConfirmTotpEnrollmentResponse) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConfirmTotpEnrollmentResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConfirmTotpEnrollmentResponse) GetReserveCodes() []string {
|
|
if x != nil {
|
|
return x.ReserveCodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CancelTotpEnrollmentResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CancelTotpEnrollmentResponse) Reset() {
|
|
*x = CancelTotpEnrollmentResponse{}
|
|
mi := &file_identity_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CancelTotpEnrollmentResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CancelTotpEnrollmentResponse) ProtoMessage() {}
|
|
|
|
func (x *CancelTotpEnrollmentResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[18]
|
|
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 CancelTotpEnrollmentResponse.ProtoReflect.Descriptor instead.
|
|
func (*CancelTotpEnrollmentResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *CancelTotpEnrollmentResponse) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CancelTotpEnrollmentResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DisableTotpRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
TotpCode *string `protobuf:"bytes,3,opt,name=totp_code,json=totpCode,proto3,oneof" json:"totp_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DisableTotpRequest) Reset() {
|
|
*x = DisableTotpRequest{}
|
|
mi := &file_identity_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DisableTotpRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DisableTotpRequest) ProtoMessage() {}
|
|
|
|
func (x *DisableTotpRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[19]
|
|
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 DisableTotpRequest.ProtoReflect.Descriptor instead.
|
|
func (*DisableTotpRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *DisableTotpRequest) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DisableTotpRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DisableTotpRequest) GetTotpCode() string {
|
|
if x != nil && x.TotpCode != nil {
|
|
return *x.TotpCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DisableTotpResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DisableTotpResponse) Reset() {
|
|
*x = DisableTotpResponse{}
|
|
mi := &file_identity_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DisableTotpResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DisableTotpResponse) ProtoMessage() {}
|
|
|
|
func (x *DisableTotpResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[20]
|
|
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 DisableTotpResponse.ProtoReflect.Descriptor instead.
|
|
func (*DisableTotpResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *DisableTotpResponse) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DisableTotpResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type StartTelegramEnrollmentResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
EnrollmentToken string `protobuf:"bytes,1,opt,name=enrollment_token,json=enrollmentToken,proto3" json:"enrollment_token,omitempty"`
|
|
DeepLink string `protobuf:"bytes,2,opt,name=deep_link,json=deepLink,proto3" json:"deep_link,omitempty"`
|
|
BotUsername string `protobuf:"bytes,3,opt,name=bot_username,json=botUsername,proto3" json:"bot_username,omitempty"`
|
|
ExpiresAtIso string `protobuf:"bytes,4,opt,name=expires_at_iso,json=expiresAtIso,proto3" json:"expires_at_iso,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StartTelegramEnrollmentResponse) Reset() {
|
|
*x = StartTelegramEnrollmentResponse{}
|
|
mi := &file_identity_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StartTelegramEnrollmentResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StartTelegramEnrollmentResponse) ProtoMessage() {}
|
|
|
|
func (x *StartTelegramEnrollmentResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[21]
|
|
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 StartTelegramEnrollmentResponse.ProtoReflect.Descriptor instead.
|
|
func (*StartTelegramEnrollmentResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *StartTelegramEnrollmentResponse) GetEnrollmentToken() string {
|
|
if x != nil {
|
|
return x.EnrollmentToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StartTelegramEnrollmentResponse) GetDeepLink() string {
|
|
if x != nil {
|
|
return x.DeepLink
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StartTelegramEnrollmentResponse) GetBotUsername() string {
|
|
if x != nil {
|
|
return x.BotUsername
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StartTelegramEnrollmentResponse) GetExpiresAtIso() string {
|
|
if x != nil {
|
|
return x.ExpiresAtIso
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ConfirmTelegramEnrollmentRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
EnrollmentToken string `protobuf:"bytes,2,opt,name=enrollment_token,json=enrollmentToken,proto3" json:"enrollment_token,omitempty"`
|
|
OtpCode string `protobuf:"bytes,3,opt,name=otp_code,json=otpCode,proto3" json:"otp_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ConfirmTelegramEnrollmentRequest) Reset() {
|
|
*x = ConfirmTelegramEnrollmentRequest{}
|
|
mi := &file_identity_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ConfirmTelegramEnrollmentRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConfirmTelegramEnrollmentRequest) ProtoMessage() {}
|
|
|
|
func (x *ConfirmTelegramEnrollmentRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[22]
|
|
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 ConfirmTelegramEnrollmentRequest.ProtoReflect.Descriptor instead.
|
|
func (*ConfirmTelegramEnrollmentRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *ConfirmTelegramEnrollmentRequest) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConfirmTelegramEnrollmentRequest) GetEnrollmentToken() string {
|
|
if x != nil {
|
|
return x.EnrollmentToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConfirmTelegramEnrollmentRequest) GetOtpCode() string {
|
|
if x != nil {
|
|
return x.OtpCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ConfirmTelegramEnrollmentResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
ReserveCodes []string `protobuf:"bytes,3,rep,name=reserve_codes,json=reserveCodes,proto3" json:"reserve_codes,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ConfirmTelegramEnrollmentResponse) Reset() {
|
|
*x = ConfirmTelegramEnrollmentResponse{}
|
|
mi := &file_identity_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ConfirmTelegramEnrollmentResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ConfirmTelegramEnrollmentResponse) ProtoMessage() {}
|
|
|
|
func (x *ConfirmTelegramEnrollmentResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[23]
|
|
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 ConfirmTelegramEnrollmentResponse.ProtoReflect.Descriptor instead.
|
|
func (*ConfirmTelegramEnrollmentResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *ConfirmTelegramEnrollmentResponse) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConfirmTelegramEnrollmentResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ConfirmTelegramEnrollmentResponse) GetReserveCodes() []string {
|
|
if x != nil {
|
|
return x.ReserveCodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DisableTelegramRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
TelegramOtpCode *string `protobuf:"bytes,3,opt,name=telegram_otp_code,json=telegramOtpCode,proto3,oneof" json:"telegram_otp_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DisableTelegramRequest) Reset() {
|
|
*x = DisableTelegramRequest{}
|
|
mi := &file_identity_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DisableTelegramRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DisableTelegramRequest) ProtoMessage() {}
|
|
|
|
func (x *DisableTelegramRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[24]
|
|
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 DisableTelegramRequest.ProtoReflect.Descriptor instead.
|
|
func (*DisableTelegramRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *DisableTelegramRequest) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DisableTelegramRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DisableTelegramRequest) GetTelegramOtpCode() string {
|
|
if x != nil && x.TelegramOtpCode != nil {
|
|
return *x.TelegramOtpCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DisableTelegramResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DisableTelegramResponse) Reset() {
|
|
*x = DisableTelegramResponse{}
|
|
mi := &file_identity_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DisableTelegramResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DisableTelegramResponse) ProtoMessage() {}
|
|
|
|
func (x *DisableTelegramResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[25]
|
|
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 DisableTelegramResponse.ProtoReflect.Descriptor instead.
|
|
func (*DisableTelegramResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
func (x *DisableTelegramResponse) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DisableTelegramResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_identity_proto protoreflect.FileDescriptor
|
|
|
|
const file_identity_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0eidentity.proto\x12\bidentity\"F\n" +
|
|
"\fLoginRequest\x12\x1a\n" +
|
|
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\"\x9a\x02\n" +
|
|
"\rLoginResponse\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12#\n" +
|
|
"\rrefresh_token\x18\x02 \x01(\tR\frefreshToken\x12\x16\n" +
|
|
"\x06status\x18\x03 \x01(\tR\x06status\x12\x18\n" +
|
|
"\aneed2fa\x18\x04 \x01(\bR\aneed2fa\x12\"\n" +
|
|
"\n" +
|
|
"temp_token\x18\x05 \x01(\tH\x00R\ttempToken\x88\x01\x01\x12\x1d\n" +
|
|
"\amessage\x18\x06 \x01(\tH\x01R\amessage\x88\x01\x01\x12\"\n" +
|
|
"\n" +
|
|
"error_code\x18\a \x01(\tH\x02R\terrorCode\x88\x01\x01B\r\n" +
|
|
"\v_temp_tokenB\n" +
|
|
"\n" +
|
|
"\b_messageB\r\n" +
|
|
"\v_error_code\"5\n" +
|
|
"\x0eRefreshRequest\x12#\n" +
|
|
"\rrefresh_token\x18\x01 \x01(\tR\frefreshToken\"Y\n" +
|
|
"\x0fRefreshResponse\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12#\n" +
|
|
"\rrefresh_token\x18\x02 \x01(\tR\frefreshToken\"2\n" +
|
|
"\rLogoutRequest\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\"D\n" +
|
|
"\x0eLogoutResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
|
"\amessage\x18\x02 \x01(\tR\amessage\"*\n" +
|
|
"\x12VerifyTokenRequest\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\"\xe1\x01\n" +
|
|
"\x13VerifyTokenResponse\x12\x19\n" +
|
|
"\bis_valid\x18\x01 \x01(\bR\aisValid\x12#\n" +
|
|
"\rerror_message\x18\x02 \x01(\tR\ferrorMessage\x12\x0e\n" +
|
|
"\x02id\x18\x03 \x01(\tR\x02id\x12\x1a\n" +
|
|
"\busername\x18\x04 \x01(\tR\busername\x12\x1d\n" +
|
|
"\n" +
|
|
"role_level\x18\x05 \x01(\x05R\troleLevel\x12 \n" +
|
|
"\vpermissions\x18\x06 \x03(\tR\vpermissions\x12\x1d\n" +
|
|
"\n" +
|
|
"session_id\x18\a \x01(\tR\tsessionId\"P\n" +
|
|
"\x10UnlockPinRequest\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12\x19\n" +
|
|
"\bpin_code\x18\x02 \x01(\tR\apinCode\"G\n" +
|
|
"\x11UnlockPinResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x18\n" +
|
|
"\amessage\x18\x02 \x01(\tR\amessage\"\x9d\x01\n" +
|
|
"\x10Verify2FaRequest\x12\x1d\n" +
|
|
"\n" +
|
|
"temp_token\x18\x01 \x01(\tR\ttempToken\x12 \n" +
|
|
"\ttotp_code\x18\x02 \x01(\tH\x00R\btotpCode\x88\x01\x01\x12(\n" +
|
|
"\rtelegram_code\x18\x03 \x01(\tH\x01R\ftelegramCode\x88\x01\x01B\f\n" +
|
|
"\n" +
|
|
"_totp_codeB\x10\n" +
|
|
"\x0e_telegram_code\"\xb2\x01\n" +
|
|
"\x11Verify2FaResponse\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12#\n" +
|
|
"\rrefresh_token\x18\x02 \x01(\tR\frefreshToken\x12\x16\n" +
|
|
"\x06status\x18\x03 \x01(\tR\x06status\x12\x18\n" +
|
|
"\amessage\x18\x04 \x01(\tR\amessage\x12#\n" +
|
|
"\rreserve_codes\x18\x05 \x03(\tR\freserveCodes\"?\n" +
|
|
"\x1aAuthenticatedAccessRequest\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\":\n" +
|
|
"\x15GetTwoFaStatusRequest\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\"\xde\x01\n" +
|
|
"\x16GetTwoFaStatusResponse\x12!\n" +
|
|
"\ftotp_enabled\x18\x01 \x01(\bR\vtotpEnabled\x12)\n" +
|
|
"\x10telegram_enabled\x18\x02 \x01(\bR\x0ftelegramEnabled\x126\n" +
|
|
"\x17totp_enrollment_pending\x18\x03 \x01(\bR\x15totpEnrollmentPending\x12>\n" +
|
|
"\x1btelegram_enrollment_pending\x18\x04 \x01(\bR\x19telegramEnrollmentPending\"\xa0\x01\n" +
|
|
"\x1bStartTotpEnrollmentResponse\x12#\n" +
|
|
"\rsecret_base32\x18\x01 \x01(\tR\fsecretBase32\x12\x1f\n" +
|
|
"\votpauth_uri\x18\x02 \x01(\tR\n" +
|
|
"otpauthUri\x12\x16\n" +
|
|
"\x06issuer\x18\x03 \x01(\tR\x06issuer\x12#\n" +
|
|
"\raccount_label\x18\x04 \x01(\tR\faccountLabel\"^\n" +
|
|
"\x1cConfirmTotpEnrollmentRequest\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12\x1b\n" +
|
|
"\ttotp_code\x18\x02 \x01(\tR\btotpCode\"v\n" +
|
|
"\x1dConfirmTotpEnrollmentResponse\x12\x16\n" +
|
|
"\x06status\x18\x01 \x01(\tR\x06status\x12\x18\n" +
|
|
"\amessage\x18\x02 \x01(\tR\amessage\x12#\n" +
|
|
"\rreserve_codes\x18\x03 \x03(\tR\freserveCodes\"P\n" +
|
|
"\x1cCancelTotpEnrollmentResponse\x12\x16\n" +
|
|
"\x06status\x18\x01 \x01(\tR\x06status\x12\x18\n" +
|
|
"\amessage\x18\x02 \x01(\tR\amessage\"\x83\x01\n" +
|
|
"\x12DisableTotpRequest\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\x12 \n" +
|
|
"\ttotp_code\x18\x03 \x01(\tH\x00R\btotpCode\x88\x01\x01B\f\n" +
|
|
"\n" +
|
|
"_totp_code\"G\n" +
|
|
"\x13DisableTotpResponse\x12\x16\n" +
|
|
"\x06status\x18\x01 \x01(\tR\x06status\x12\x18\n" +
|
|
"\amessage\x18\x02 \x01(\tR\amessage\"\xb2\x01\n" +
|
|
"\x1fStartTelegramEnrollmentResponse\x12)\n" +
|
|
"\x10enrollment_token\x18\x01 \x01(\tR\x0fenrollmentToken\x12\x1b\n" +
|
|
"\tdeep_link\x18\x02 \x01(\tR\bdeepLink\x12!\n" +
|
|
"\fbot_username\x18\x03 \x01(\tR\vbotUsername\x12$\n" +
|
|
"\x0eexpires_at_iso\x18\x04 \x01(\tR\fexpiresAtIso\"\x8b\x01\n" +
|
|
" ConfirmTelegramEnrollmentRequest\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12)\n" +
|
|
"\x10enrollment_token\x18\x02 \x01(\tR\x0fenrollmentToken\x12\x19\n" +
|
|
"\botp_code\x18\x03 \x01(\tR\aotpCode\"z\n" +
|
|
"!ConfirmTelegramEnrollmentResponse\x12\x16\n" +
|
|
"\x06status\x18\x01 \x01(\tR\x06status\x12\x18\n" +
|
|
"\amessage\x18\x02 \x01(\tR\amessage\x12#\n" +
|
|
"\rreserve_codes\x18\x03 \x03(\tR\freserveCodes\"\x9e\x01\n" +
|
|
"\x16DisableTelegramRequest\x12!\n" +
|
|
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\x12/\n" +
|
|
"\x11telegram_otp_code\x18\x03 \x01(\tH\x00R\x0ftelegramOtpCode\x88\x01\x01B\x14\n" +
|
|
"\x12_telegram_otp_code\"K\n" +
|
|
"\x17DisableTelegramResponse\x12\x16\n" +
|
|
"\x06status\x18\x01 \x01(\tR\x06status\x12\x18\n" +
|
|
"\amessage\x18\x02 \x01(\tR\amessage2\x9c\x03\n" +
|
|
"\vAuthService\x128\n" +
|
|
"\x05Login\x12\x16.identity.LoginRequest\x1a\x17.identity.LoginResponse\x12>\n" +
|
|
"\aRefresh\x12\x18.identity.RefreshRequest\x1a\x19.identity.RefreshResponse\x12J\n" +
|
|
"\vVerifyToken\x12\x1c.identity.VerifyTokenRequest\x1a\x1d.identity.VerifyTokenResponse\x12;\n" +
|
|
"\x06Logout\x12\x17.identity.LogoutRequest\x1a\x18.identity.LogoutResponse\x12D\n" +
|
|
"\tUnlockPin\x12\x1a.identity.UnlockPinRequest\x1a\x1b.identity.UnlockPinResponse\x12D\n" +
|
|
"\tVerify2Fa\x12\x1a.identity.Verify2FaRequest\x1a\x1b.identity.Verify2FaResponse2\x9c\x06\n" +
|
|
"\fTwoFaService\x12S\n" +
|
|
"\x0eGetTwoFaStatus\x12\x1f.identity.GetTwoFaStatusRequest\x1a .identity.GetTwoFaStatusResponse\x12b\n" +
|
|
"\x13StartTotpEnrollment\x12$.identity.AuthenticatedAccessRequest\x1a%.identity.StartTotpEnrollmentResponse\x12g\n" +
|
|
"\x14ConfirmTotpErollment\x12&.identity.ConfirmTotpEnrollmentRequest\x1a'.identity.ConfirmTotpEnrollmentResponse\x12d\n" +
|
|
"\x14CancelTotpEnrollment\x12$.identity.AuthenticatedAccessRequest\x1a&.identity.CancelTotpEnrollmentResponse\x12J\n" +
|
|
"\vDisableTotp\x12\x1c.identity.DisableTotpRequest\x1a\x1d.identity.DisableTotpResponse\x12j\n" +
|
|
"\x17StartTelegramEnrollment\x12$.identity.AuthenticatedAccessRequest\x1a).identity.StartTelegramEnrollmentResponse\x12t\n" +
|
|
"\x19ConfirmTelegramEnrollment\x12*.identity.ConfirmTelegramEnrollmentRequest\x1a+.identity.ConfirmTelegramEnrollmentResponse\x12V\n" +
|
|
"\x0fDisableTelegram\x12 .identity.DisableTelegramRequest\x1a!.identity.DisableTelegramResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
|
|
|
|
var (
|
|
file_identity_proto_rawDescOnce sync.Once
|
|
file_identity_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_identity_proto_rawDescGZIP() []byte {
|
|
file_identity_proto_rawDescOnce.Do(func() {
|
|
file_identity_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_identity_proto_rawDesc), len(file_identity_proto_rawDesc)))
|
|
})
|
|
return file_identity_proto_rawDescData
|
|
}
|
|
|
|
var file_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
|
|
var file_identity_proto_goTypes = []any{
|
|
(*LoginRequest)(nil), // 0: identity.LoginRequest
|
|
(*LoginResponse)(nil), // 1: identity.LoginResponse
|
|
(*RefreshRequest)(nil), // 2: identity.RefreshRequest
|
|
(*RefreshResponse)(nil), // 3: identity.RefreshResponse
|
|
(*LogoutRequest)(nil), // 4: identity.LogoutRequest
|
|
(*LogoutResponse)(nil), // 5: identity.LogoutResponse
|
|
(*VerifyTokenRequest)(nil), // 6: identity.VerifyTokenRequest
|
|
(*VerifyTokenResponse)(nil), // 7: identity.VerifyTokenResponse
|
|
(*UnlockPinRequest)(nil), // 8: identity.UnlockPinRequest
|
|
(*UnlockPinResponse)(nil), // 9: identity.UnlockPinResponse
|
|
(*Verify2FaRequest)(nil), // 10: identity.Verify2FaRequest
|
|
(*Verify2FaResponse)(nil), // 11: identity.Verify2FaResponse
|
|
(*AuthenticatedAccessRequest)(nil), // 12: identity.AuthenticatedAccessRequest
|
|
(*GetTwoFaStatusRequest)(nil), // 13: identity.GetTwoFaStatusRequest
|
|
(*GetTwoFaStatusResponse)(nil), // 14: identity.GetTwoFaStatusResponse
|
|
(*StartTotpEnrollmentResponse)(nil), // 15: identity.StartTotpEnrollmentResponse
|
|
(*ConfirmTotpEnrollmentRequest)(nil), // 16: identity.ConfirmTotpEnrollmentRequest
|
|
(*ConfirmTotpEnrollmentResponse)(nil), // 17: identity.ConfirmTotpEnrollmentResponse
|
|
(*CancelTotpEnrollmentResponse)(nil), // 18: identity.CancelTotpEnrollmentResponse
|
|
(*DisableTotpRequest)(nil), // 19: identity.DisableTotpRequest
|
|
(*DisableTotpResponse)(nil), // 20: identity.DisableTotpResponse
|
|
(*StartTelegramEnrollmentResponse)(nil), // 21: identity.StartTelegramEnrollmentResponse
|
|
(*ConfirmTelegramEnrollmentRequest)(nil), // 22: identity.ConfirmTelegramEnrollmentRequest
|
|
(*ConfirmTelegramEnrollmentResponse)(nil), // 23: identity.ConfirmTelegramEnrollmentResponse
|
|
(*DisableTelegramRequest)(nil), // 24: identity.DisableTelegramRequest
|
|
(*DisableTelegramResponse)(nil), // 25: identity.DisableTelegramResponse
|
|
}
|
|
var file_identity_proto_depIdxs = []int32{
|
|
0, // 0: identity.AuthService.Login:input_type -> identity.LoginRequest
|
|
2, // 1: identity.AuthService.Refresh:input_type -> identity.RefreshRequest
|
|
6, // 2: identity.AuthService.VerifyToken:input_type -> identity.VerifyTokenRequest
|
|
4, // 3: identity.AuthService.Logout:input_type -> identity.LogoutRequest
|
|
8, // 4: identity.AuthService.UnlockPin:input_type -> identity.UnlockPinRequest
|
|
10, // 5: identity.AuthService.Verify2Fa:input_type -> identity.Verify2FaRequest
|
|
13, // 6: identity.TwoFaService.GetTwoFaStatus:input_type -> identity.GetTwoFaStatusRequest
|
|
12, // 7: identity.TwoFaService.StartTotpEnrollment:input_type -> identity.AuthenticatedAccessRequest
|
|
16, // 8: identity.TwoFaService.ConfirmTotpErollment:input_type -> identity.ConfirmTotpEnrollmentRequest
|
|
12, // 9: identity.TwoFaService.CancelTotpEnrollment:input_type -> identity.AuthenticatedAccessRequest
|
|
19, // 10: identity.TwoFaService.DisableTotp:input_type -> identity.DisableTotpRequest
|
|
12, // 11: identity.TwoFaService.StartTelegramEnrollment:input_type -> identity.AuthenticatedAccessRequest
|
|
22, // 12: identity.TwoFaService.ConfirmTelegramEnrollment:input_type -> identity.ConfirmTelegramEnrollmentRequest
|
|
24, // 13: identity.TwoFaService.DisableTelegram:input_type -> identity.DisableTelegramRequest
|
|
1, // 14: identity.AuthService.Login:output_type -> identity.LoginResponse
|
|
3, // 15: identity.AuthService.Refresh:output_type -> identity.RefreshResponse
|
|
7, // 16: identity.AuthService.VerifyToken:output_type -> identity.VerifyTokenResponse
|
|
5, // 17: identity.AuthService.Logout:output_type -> identity.LogoutResponse
|
|
9, // 18: identity.AuthService.UnlockPin:output_type -> identity.UnlockPinResponse
|
|
11, // 19: identity.AuthService.Verify2Fa:output_type -> identity.Verify2FaResponse
|
|
14, // 20: identity.TwoFaService.GetTwoFaStatus:output_type -> identity.GetTwoFaStatusResponse
|
|
15, // 21: identity.TwoFaService.StartTotpEnrollment:output_type -> identity.StartTotpEnrollmentResponse
|
|
17, // 22: identity.TwoFaService.ConfirmTotpErollment:output_type -> identity.ConfirmTotpEnrollmentResponse
|
|
18, // 23: identity.TwoFaService.CancelTotpEnrollment:output_type -> identity.CancelTotpEnrollmentResponse
|
|
20, // 24: identity.TwoFaService.DisableTotp:output_type -> identity.DisableTotpResponse
|
|
21, // 25: identity.TwoFaService.StartTelegramEnrollment:output_type -> identity.StartTelegramEnrollmentResponse
|
|
23, // 26: identity.TwoFaService.ConfirmTelegramEnrollment:output_type -> identity.ConfirmTelegramEnrollmentResponse
|
|
25, // 27: identity.TwoFaService.DisableTelegram:output_type -> identity.DisableTelegramResponse
|
|
14, // [14:28] is the sub-list for method output_type
|
|
0, // [0:14] 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_identity_proto_init() }
|
|
func file_identity_proto_init() {
|
|
if File_identity_proto != nil {
|
|
return
|
|
}
|
|
file_identity_proto_msgTypes[1].OneofWrappers = []any{}
|
|
file_identity_proto_msgTypes[10].OneofWrappers = []any{}
|
|
file_identity_proto_msgTypes[19].OneofWrappers = []any{}
|
|
file_identity_proto_msgTypes[24].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_identity_proto_rawDesc), len(file_identity_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 26,
|
|
NumExtensions: 0,
|
|
NumServices: 2,
|
|
},
|
|
GoTypes: file_identity_proto_goTypes,
|
|
DependencyIndexes: file_identity_proto_depIdxs,
|
|
MessageInfos: file_identity_proto_msgTypes,
|
|
}.Build()
|
|
File_identity_proto = out.File
|
|
file_identity_proto_goTypes = nil
|
|
file_identity_proto_depIdxs = nil
|
|
}
|