Files
contracts/gen/go/sso/twofa.pb.go
2026-04-13 20:28:00 +00:00

1128 lines
37 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v4.25.9
// source: sso/twofa.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 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_sso_twofa_proto_msgTypes[0]
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_sso_twofa_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 Verify2FaRequest.ProtoReflect.Descriptor instead.
func (*Verify2FaRequest) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{0}
}
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_sso_twofa_proto_msgTypes[1]
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_sso_twofa_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 Verify2FaResponse.ProtoReflect.Descriptor instead.
func (*Verify2FaResponse) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{1}
}
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_sso_twofa_proto_msgTypes[2]
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_sso_twofa_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 AuthenticatedAccessRequest.ProtoReflect.Descriptor instead.
func (*AuthenticatedAccessRequest) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{2}
}
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_sso_twofa_proto_msgTypes[3]
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_sso_twofa_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 GetTwoFaStatusRequest.ProtoReflect.Descriptor instead.
func (*GetTwoFaStatusRequest) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{3}
}
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_sso_twofa_proto_msgTypes[4]
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_sso_twofa_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 GetTwoFaStatusResponse.ProtoReflect.Descriptor instead.
func (*GetTwoFaStatusResponse) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{4}
}
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_sso_twofa_proto_msgTypes[5]
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_sso_twofa_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 StartTotpEnrollmentResponse.ProtoReflect.Descriptor instead.
func (*StartTotpEnrollmentResponse) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{5}
}
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_sso_twofa_proto_msgTypes[6]
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_sso_twofa_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 ConfirmTotpEnrollmentRequest.ProtoReflect.Descriptor instead.
func (*ConfirmTotpEnrollmentRequest) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{6}
}
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_sso_twofa_proto_msgTypes[7]
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_sso_twofa_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 ConfirmTotpEnrollmentResponse.ProtoReflect.Descriptor instead.
func (*ConfirmTotpEnrollmentResponse) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{7}
}
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_sso_twofa_proto_msgTypes[8]
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_sso_twofa_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 CancelTotpEnrollmentResponse.ProtoReflect.Descriptor instead.
func (*CancelTotpEnrollmentResponse) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{8}
}
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_sso_twofa_proto_msgTypes[9]
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_sso_twofa_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 DisableTotpRequest.ProtoReflect.Descriptor instead.
func (*DisableTotpRequest) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{9}
}
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_sso_twofa_proto_msgTypes[10]
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_sso_twofa_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 DisableTotpResponse.ProtoReflect.Descriptor instead.
func (*DisableTotpResponse) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{10}
}
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_sso_twofa_proto_msgTypes[11]
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_sso_twofa_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 StartTelegramEnrollmentResponse.ProtoReflect.Descriptor instead.
func (*StartTelegramEnrollmentResponse) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{11}
}
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_sso_twofa_proto_msgTypes[12]
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_sso_twofa_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 ConfirmTelegramEnrollmentRequest.ProtoReflect.Descriptor instead.
func (*ConfirmTelegramEnrollmentRequest) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{12}
}
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_sso_twofa_proto_msgTypes[13]
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_sso_twofa_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 ConfirmTelegramEnrollmentResponse.ProtoReflect.Descriptor instead.
func (*ConfirmTelegramEnrollmentResponse) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{13}
}
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_sso_twofa_proto_msgTypes[14]
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_sso_twofa_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 DisableTelegramRequest.ProtoReflect.Descriptor instead.
func (*DisableTelegramRequest) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{14}
}
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_sso_twofa_proto_msgTypes[15]
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_sso_twofa_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 DisableTelegramResponse.ProtoReflect.Descriptor instead.
func (*DisableTelegramResponse) Descriptor() ([]byte, []int) {
return file_sso_twofa_proto_rawDescGZIP(), []int{15}
}
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_sso_twofa_proto protoreflect.FileDescriptor
const file_sso_twofa_proto_rawDesc = "" +
"\n" +
"\x0fsso/twofa.proto\x12\btwofa.v1\"\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\xe2\x06\n" +
"\fTwoFaService\x12D\n" +
"\tVerify2Fa\x12\x1a.twofa.v1.Verify2FaRequest\x1a\x1b.twofa.v1.Verify2FaResponse\x12S\n" +
"\x0eGetTwoFaStatus\x12\x1f.twofa.v1.GetTwoFaStatusRequest\x1a .twofa.v1.GetTwoFaStatusResponse\x12b\n" +
"\x13StartTotpEnrollment\x12$.twofa.v1.AuthenticatedAccessRequest\x1a%.twofa.v1.StartTotpEnrollmentResponse\x12g\n" +
"\x14ConfirmTotpErollment\x12&.twofa.v1.ConfirmTotpEnrollmentRequest\x1a'.twofa.v1.ConfirmTotpEnrollmentResponse\x12d\n" +
"\x14CancelTotpEnrollment\x12$.twofa.v1.AuthenticatedAccessRequest\x1a&.twofa.v1.CancelTotpEnrollmentResponse\x12J\n" +
"\vDisableTotp\x12\x1c.twofa.v1.DisableTotpRequest\x1a\x1d.twofa.v1.DisableTotpResponse\x12j\n" +
"\x17StartTelegramEnrollment\x12$.twofa.v1.AuthenticatedAccessRequest\x1a).twofa.v1.StartTelegramEnrollmentResponse\x12t\n" +
"\x19ConfirmTelegramEnrollment\x12*.twofa.v1.ConfirmTelegramEnrollmentRequest\x1a+.twofa.v1.ConfirmTelegramEnrollmentResponse\x12V\n" +
"\x0fDisableTelegram\x12 .twofa.v1.DisableTelegramRequest\x1a!.twofa.v1.DisableTelegramResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
var (
file_sso_twofa_proto_rawDescOnce sync.Once
file_sso_twofa_proto_rawDescData []byte
)
func file_sso_twofa_proto_rawDescGZIP() []byte {
file_sso_twofa_proto_rawDescOnce.Do(func() {
file_sso_twofa_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_sso_twofa_proto_rawDesc), len(file_sso_twofa_proto_rawDesc)))
})
return file_sso_twofa_proto_rawDescData
}
var file_sso_twofa_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
var file_sso_twofa_proto_goTypes = []any{
(*Verify2FaRequest)(nil), // 0: twofa.v1.Verify2FaRequest
(*Verify2FaResponse)(nil), // 1: twofa.v1.Verify2FaResponse
(*AuthenticatedAccessRequest)(nil), // 2: twofa.v1.AuthenticatedAccessRequest
(*GetTwoFaStatusRequest)(nil), // 3: twofa.v1.GetTwoFaStatusRequest
(*GetTwoFaStatusResponse)(nil), // 4: twofa.v1.GetTwoFaStatusResponse
(*StartTotpEnrollmentResponse)(nil), // 5: twofa.v1.StartTotpEnrollmentResponse
(*ConfirmTotpEnrollmentRequest)(nil), // 6: twofa.v1.ConfirmTotpEnrollmentRequest
(*ConfirmTotpEnrollmentResponse)(nil), // 7: twofa.v1.ConfirmTotpEnrollmentResponse
(*CancelTotpEnrollmentResponse)(nil), // 8: twofa.v1.CancelTotpEnrollmentResponse
(*DisableTotpRequest)(nil), // 9: twofa.v1.DisableTotpRequest
(*DisableTotpResponse)(nil), // 10: twofa.v1.DisableTotpResponse
(*StartTelegramEnrollmentResponse)(nil), // 11: twofa.v1.StartTelegramEnrollmentResponse
(*ConfirmTelegramEnrollmentRequest)(nil), // 12: twofa.v1.ConfirmTelegramEnrollmentRequest
(*ConfirmTelegramEnrollmentResponse)(nil), // 13: twofa.v1.ConfirmTelegramEnrollmentResponse
(*DisableTelegramRequest)(nil), // 14: twofa.v1.DisableTelegramRequest
(*DisableTelegramResponse)(nil), // 15: twofa.v1.DisableTelegramResponse
}
var file_sso_twofa_proto_depIdxs = []int32{
0, // 0: twofa.v1.TwoFaService.Verify2Fa:input_type -> twofa.v1.Verify2FaRequest
3, // 1: twofa.v1.TwoFaService.GetTwoFaStatus:input_type -> twofa.v1.GetTwoFaStatusRequest
2, // 2: twofa.v1.TwoFaService.StartTotpEnrollment:input_type -> twofa.v1.AuthenticatedAccessRequest
6, // 3: twofa.v1.TwoFaService.ConfirmTotpErollment:input_type -> twofa.v1.ConfirmTotpEnrollmentRequest
2, // 4: twofa.v1.TwoFaService.CancelTotpEnrollment:input_type -> twofa.v1.AuthenticatedAccessRequest
9, // 5: twofa.v1.TwoFaService.DisableTotp:input_type -> twofa.v1.DisableTotpRequest
2, // 6: twofa.v1.TwoFaService.StartTelegramEnrollment:input_type -> twofa.v1.AuthenticatedAccessRequest
12, // 7: twofa.v1.TwoFaService.ConfirmTelegramEnrollment:input_type -> twofa.v1.ConfirmTelegramEnrollmentRequest
14, // 8: twofa.v1.TwoFaService.DisableTelegram:input_type -> twofa.v1.DisableTelegramRequest
1, // 9: twofa.v1.TwoFaService.Verify2Fa:output_type -> twofa.v1.Verify2FaResponse
4, // 10: twofa.v1.TwoFaService.GetTwoFaStatus:output_type -> twofa.v1.GetTwoFaStatusResponse
5, // 11: twofa.v1.TwoFaService.StartTotpEnrollment:output_type -> twofa.v1.StartTotpEnrollmentResponse
7, // 12: twofa.v1.TwoFaService.ConfirmTotpErollment:output_type -> twofa.v1.ConfirmTotpEnrollmentResponse
8, // 13: twofa.v1.TwoFaService.CancelTotpEnrollment:output_type -> twofa.v1.CancelTotpEnrollmentResponse
10, // 14: twofa.v1.TwoFaService.DisableTotp:output_type -> twofa.v1.DisableTotpResponse
11, // 15: twofa.v1.TwoFaService.StartTelegramEnrollment:output_type -> twofa.v1.StartTelegramEnrollmentResponse
13, // 16: twofa.v1.TwoFaService.ConfirmTelegramEnrollment:output_type -> twofa.v1.ConfirmTelegramEnrollmentResponse
15, // 17: twofa.v1.TwoFaService.DisableTelegram:output_type -> twofa.v1.DisableTelegramResponse
9, // [9:18] is the sub-list for method output_type
0, // [0:9] 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_sso_twofa_proto_init() }
func file_sso_twofa_proto_init() {
if File_sso_twofa_proto != nil {
return
}
file_sso_twofa_proto_msgTypes[0].OneofWrappers = []any{}
file_sso_twofa_proto_msgTypes[9].OneofWrappers = []any{}
file_sso_twofa_proto_msgTypes[14].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_sso_twofa_proto_rawDesc), len(file_sso_twofa_proto_rawDesc)),
NumEnums: 0,
NumMessages: 16,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_sso_twofa_proto_goTypes,
DependencyIndexes: file_sso_twofa_proto_depIdxs,
MessageInfos: file_sso_twofa_proto_msgTypes,
}.Build()
File_sso_twofa_proto = out.File
file_sso_twofa_proto_goTypes = nil
file_sso_twofa_proto_depIdxs = nil
}