6121 lines
203 KiB
Go
6121 lines
203 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v7.34.1
|
|
// source: st-peter-auth.proto
|
|
|
|
package auth_service
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
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 ResultCode int32
|
|
|
|
const (
|
|
ResultCode_RESULT_CODE_SUCCESS ResultCode = 0
|
|
ResultCode_RESULT_CODE_NOT_FOUND ResultCode = 1
|
|
ResultCode_RESULT_CODE_INTERNAL_SERVER_ERROR ResultCode = 2
|
|
ResultCode_RESULT_CODE_BAD_REQUEST ResultCode = 3
|
|
ResultCode_RESULT_CODE_NOT_AUTHORIZED ResultCode = 4
|
|
ResultCode_RESULT_CODE_FORBIDDEN ResultCode = 5
|
|
ResultCode_RESULT_CODE_VALIDATION_ERRORS ResultCode = 6
|
|
ResultCode_RESULT_CODE_PASSCODE_REQUIRED ResultCode = 7
|
|
ResultCode_RESULT_CODE_TOO_MANY_REQUESTS ResultCode = 9
|
|
ResultCode_RESULT_CODE_INVALID_CREDENTIALS ResultCode = 8
|
|
ResultCode_RESULT_CODE_INACTIVE_USER ResultCode = 10
|
|
ResultCode_RESULT_CODE_IDENTITY_IN_USE ResultCode = 11
|
|
ResultCode_RESULT_CODE_NEXT_STEP ResultCode = 12
|
|
)
|
|
|
|
// Enum value maps for ResultCode.
|
|
var (
|
|
ResultCode_name = map[int32]string{
|
|
0: "RESULT_CODE_SUCCESS",
|
|
1: "RESULT_CODE_NOT_FOUND",
|
|
2: "RESULT_CODE_INTERNAL_SERVER_ERROR",
|
|
3: "RESULT_CODE_BAD_REQUEST",
|
|
4: "RESULT_CODE_NOT_AUTHORIZED",
|
|
5: "RESULT_CODE_FORBIDDEN",
|
|
6: "RESULT_CODE_VALIDATION_ERRORS",
|
|
7: "RESULT_CODE_PASSCODE_REQUIRED",
|
|
9: "RESULT_CODE_TOO_MANY_REQUESTS",
|
|
8: "RESULT_CODE_INVALID_CREDENTIALS",
|
|
10: "RESULT_CODE_INACTIVE_USER",
|
|
11: "RESULT_CODE_IDENTITY_IN_USE",
|
|
12: "RESULT_CODE_NEXT_STEP",
|
|
}
|
|
ResultCode_value = map[string]int32{
|
|
"RESULT_CODE_SUCCESS": 0,
|
|
"RESULT_CODE_NOT_FOUND": 1,
|
|
"RESULT_CODE_INTERNAL_SERVER_ERROR": 2,
|
|
"RESULT_CODE_BAD_REQUEST": 3,
|
|
"RESULT_CODE_NOT_AUTHORIZED": 4,
|
|
"RESULT_CODE_FORBIDDEN": 5,
|
|
"RESULT_CODE_VALIDATION_ERRORS": 6,
|
|
"RESULT_CODE_PASSCODE_REQUIRED": 7,
|
|
"RESULT_CODE_TOO_MANY_REQUESTS": 9,
|
|
"RESULT_CODE_INVALID_CREDENTIALS": 8,
|
|
"RESULT_CODE_INACTIVE_USER": 10,
|
|
"RESULT_CODE_IDENTITY_IN_USE": 11,
|
|
"RESULT_CODE_NEXT_STEP": 12,
|
|
}
|
|
)
|
|
|
|
func (x ResultCode) Enum() *ResultCode {
|
|
p := new(ResultCode)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x ResultCode) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (ResultCode) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_st_peter_auth_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (ResultCode) Type() protoreflect.EnumType {
|
|
return &file_st_peter_auth_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x ResultCode) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use ResultCode.Descriptor instead.
|
|
func (ResultCode) EnumDescriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type ChannelType int32
|
|
|
|
const (
|
|
ChannelType_CHANNEL_TYPE_UNSPECIFIED ChannelType = 0
|
|
ChannelType_CHANNEL_TYPE_EMAIL ChannelType = 1
|
|
ChannelType_CHANNEL_TYPE_SMS ChannelType = 2
|
|
)
|
|
|
|
// Enum value maps for ChannelType.
|
|
var (
|
|
ChannelType_name = map[int32]string{
|
|
0: "CHANNEL_TYPE_UNSPECIFIED",
|
|
1: "CHANNEL_TYPE_EMAIL",
|
|
2: "CHANNEL_TYPE_SMS",
|
|
}
|
|
ChannelType_value = map[string]int32{
|
|
"CHANNEL_TYPE_UNSPECIFIED": 0,
|
|
"CHANNEL_TYPE_EMAIL": 1,
|
|
"CHANNEL_TYPE_SMS": 2,
|
|
}
|
|
)
|
|
|
|
func (x ChannelType) Enum() *ChannelType {
|
|
p := new(ChannelType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x ChannelType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (ChannelType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_st_peter_auth_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (ChannelType) Type() protoreflect.EnumType {
|
|
return &file_st_peter_auth_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x ChannelType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use ChannelType.Descriptor instead.
|
|
func (ChannelType) EnumDescriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type VerificationCodeType int32
|
|
|
|
const (
|
|
VerificationCodeType_VERIFICATION_CODE_TYPE_UNSPECIFIED VerificationCodeType = 0
|
|
VerificationCodeType_VERIFICATION_CODE_TYPE_REGISTER VerificationCodeType = 1
|
|
VerificationCodeType_VERIFICATION_CODE_TYPE_PASSWORD_RESET VerificationCodeType = 2
|
|
VerificationCodeType_VERIFICATION_CODE_TYPE_OTP_LOGIN VerificationCodeType = 3
|
|
)
|
|
|
|
// Enum value maps for VerificationCodeType.
|
|
var (
|
|
VerificationCodeType_name = map[int32]string{
|
|
0: "VERIFICATION_CODE_TYPE_UNSPECIFIED",
|
|
1: "VERIFICATION_CODE_TYPE_REGISTER",
|
|
2: "VERIFICATION_CODE_TYPE_PASSWORD_RESET",
|
|
3: "VERIFICATION_CODE_TYPE_OTP_LOGIN",
|
|
}
|
|
VerificationCodeType_value = map[string]int32{
|
|
"VERIFICATION_CODE_TYPE_UNSPECIFIED": 0,
|
|
"VERIFICATION_CODE_TYPE_REGISTER": 1,
|
|
"VERIFICATION_CODE_TYPE_PASSWORD_RESET": 2,
|
|
"VERIFICATION_CODE_TYPE_OTP_LOGIN": 3,
|
|
}
|
|
)
|
|
|
|
func (x VerificationCodeType) Enum() *VerificationCodeType {
|
|
p := new(VerificationCodeType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x VerificationCodeType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (VerificationCodeType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_st_peter_auth_proto_enumTypes[2].Descriptor()
|
|
}
|
|
|
|
func (VerificationCodeType) Type() protoreflect.EnumType {
|
|
return &file_st_peter_auth_proto_enumTypes[2]
|
|
}
|
|
|
|
func (x VerificationCodeType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use VerificationCodeType.Descriptor instead.
|
|
func (VerificationCodeType) EnumDescriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
// OAuth Provider enumeration
|
|
type OAuthProvider int32
|
|
|
|
const (
|
|
OAuthProvider_OAUTH_PROVIDER_UNSPECIFIED OAuthProvider = 0
|
|
OAuthProvider_OAUTH_PROVIDER_GOOGLE OAuthProvider = 1
|
|
OAuthProvider_OAUTH_PROVIDER_APPLE OAuthProvider = 2
|
|
OAuthProvider_OAUTH_PROVIDER_FACEBOOK OAuthProvider = 3
|
|
OAuthProvider_OAUTH_PROVIDER_MICROSOFT OAuthProvider = 4
|
|
)
|
|
|
|
// Enum value maps for OAuthProvider.
|
|
var (
|
|
OAuthProvider_name = map[int32]string{
|
|
0: "OAUTH_PROVIDER_UNSPECIFIED",
|
|
1: "OAUTH_PROVIDER_GOOGLE",
|
|
2: "OAUTH_PROVIDER_APPLE",
|
|
3: "OAUTH_PROVIDER_FACEBOOK",
|
|
4: "OAUTH_PROVIDER_MICROSOFT",
|
|
}
|
|
OAuthProvider_value = map[string]int32{
|
|
"OAUTH_PROVIDER_UNSPECIFIED": 0,
|
|
"OAUTH_PROVIDER_GOOGLE": 1,
|
|
"OAUTH_PROVIDER_APPLE": 2,
|
|
"OAUTH_PROVIDER_FACEBOOK": 3,
|
|
"OAUTH_PROVIDER_MICROSOFT": 4,
|
|
}
|
|
)
|
|
|
|
func (x OAuthProvider) Enum() *OAuthProvider {
|
|
p := new(OAuthProvider)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x OAuthProvider) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (OAuthProvider) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_st_peter_auth_proto_enumTypes[3].Descriptor()
|
|
}
|
|
|
|
func (OAuthProvider) Type() protoreflect.EnumType {
|
|
return &file_st_peter_auth_proto_enumTypes[3]
|
|
}
|
|
|
|
func (x OAuthProvider) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use OAuthProvider.Descriptor instead.
|
|
func (OAuthProvider) EnumDescriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
type IdentityField int32
|
|
|
|
const (
|
|
IdentityField_IDENTITY_FIELD_UNSPECIFIED IdentityField = 0
|
|
IdentityField_IDENTITY_FIELD_EMAIL IdentityField = 1
|
|
IdentityField_IDENTITY_FIELD_phone IdentityField = 2
|
|
IdentityField_IDENTITY_FIELD_PASSWORD IdentityField = 3
|
|
IdentityField_IDENTITY_FIELD_HANDLE IdentityField = 4
|
|
)
|
|
|
|
// Enum value maps for IdentityField.
|
|
var (
|
|
IdentityField_name = map[int32]string{
|
|
0: "IDENTITY_FIELD_UNSPECIFIED",
|
|
1: "IDENTITY_FIELD_EMAIL",
|
|
2: "IDENTITY_FIELD_phone",
|
|
3: "IDENTITY_FIELD_PASSWORD",
|
|
4: "IDENTITY_FIELD_HANDLE",
|
|
}
|
|
IdentityField_value = map[string]int32{
|
|
"IDENTITY_FIELD_UNSPECIFIED": 0,
|
|
"IDENTITY_FIELD_EMAIL": 1,
|
|
"IDENTITY_FIELD_phone": 2,
|
|
"IDENTITY_FIELD_PASSWORD": 3,
|
|
"IDENTITY_FIELD_HANDLE": 4,
|
|
}
|
|
)
|
|
|
|
func (x IdentityField) Enum() *IdentityField {
|
|
p := new(IdentityField)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x IdentityField) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (IdentityField) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_st_peter_auth_proto_enumTypes[4].Descriptor()
|
|
}
|
|
|
|
func (IdentityField) Type() protoreflect.EnumType {
|
|
return &file_st_peter_auth_proto_enumTypes[4]
|
|
}
|
|
|
|
func (x IdentityField) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use IdentityField.Descriptor instead.
|
|
func (IdentityField) EnumDescriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
type Date struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Year int32 `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"`
|
|
Month uint32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"`
|
|
Day uint32 `protobuf:"varint,3,opt,name=day,proto3" json:"day,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Date) Reset() {
|
|
*x = Date{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Date) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Date) ProtoMessage() {}
|
|
|
|
func (x *Date) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 Date.ProtoReflect.Descriptor instead.
|
|
func (*Date) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Date) GetYear() int32 {
|
|
if x != nil {
|
|
return x.Year
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Date) GetMonth() uint32 {
|
|
if x != nil {
|
|
return x.Month
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Date) GetDay() uint32 {
|
|
if x != nil {
|
|
return x.Day
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type User struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
|
|
Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
FirstNames string `protobuf:"bytes,4,opt,name=first_names,json=firstNames,proto3" json:"first_names,omitempty"`
|
|
LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
|
|
ProfilePictureUrl string `protobuf:"bytes,6,opt,name=profile_picture_url,json=profilePictureUrl,proto3" json:"profile_picture_url,omitempty"`
|
|
Handle *string `protobuf:"bytes,7,opt,name=handle,proto3,oneof" json:"handle,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
DeletedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
|
|
LastLogin *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=last_login,json=lastLogin,proto3" json:"last_login,omitempty"`
|
|
IsActive bool `protobuf:"varint,20,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
|
|
IsEmailVerified bool `protobuf:"varint,21,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"`
|
|
IsPhoneVerified bool `protobuf:"varint,22,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"`
|
|
DateOfBirth *Date `protobuf:"bytes,23,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"`
|
|
Version int64 `protobuf:"varint,24,opt,name=version,proto3" json:"version,omitempty"`
|
|
SocialAccounts []*SocialAccount `protobuf:"bytes,30,rep,name=social_accounts,json=socialAccounts,proto3" json:"social_accounts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *User) Reset() {
|
|
*x = User{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *User) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*User) ProtoMessage() {}
|
|
|
|
func (x *User) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 User.ProtoReflect.Descriptor instead.
|
|
func (*User) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *User) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetPhone() string {
|
|
if x != nil {
|
|
return x.Phone
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetFirstNames() string {
|
|
if x != nil {
|
|
return x.FirstNames
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetLastName() string {
|
|
if x != nil {
|
|
return x.LastName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetProfilePictureUrl() string {
|
|
if x != nil {
|
|
return x.ProfilePictureUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetHandle() string {
|
|
if x != nil && x.Handle != nil {
|
|
return *x.Handle
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetUpdatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetDeletedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.DeletedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetLastLogin() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.LastLogin
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetIsActive() bool {
|
|
if x != nil {
|
|
return x.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *User) GetIsEmailVerified() bool {
|
|
if x != nil {
|
|
return x.IsEmailVerified
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *User) GetIsPhoneVerified() bool {
|
|
if x != nil {
|
|
return x.IsPhoneVerified
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *User) GetDateOfBirth() *Date {
|
|
if x != nil {
|
|
return x.DateOfBirth
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetVersion() int64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *User) GetSocialAccounts() []*SocialAccount {
|
|
if x != nil {
|
|
return x.SocialAccounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UserPreference struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
PreferenceCode string `protobuf:"bytes,3,opt,name=preference_code,json=preferenceCode,proto3" json:"preference_code,omitempty"`
|
|
PreferenceValueType string `protobuf:"bytes,4,opt,name=preference_value_type,json=preferenceValueType,proto3" json:"preference_value_type,omitempty"`
|
|
PreferenceValue string `protobuf:"bytes,5,opt,name=preference_value,json=preferenceValue,proto3" json:"preference_value,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserPreference) Reset() {
|
|
*x = UserPreference{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserPreference) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserPreference) ProtoMessage() {}
|
|
|
|
func (x *UserPreference) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 UserPreference.ProtoReflect.Descriptor instead.
|
|
func (*UserPreference) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *UserPreference) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserPreference) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserPreference) GetPreferenceCode() string {
|
|
if x != nil {
|
|
return x.PreferenceCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserPreference) GetPreferenceValueType() string {
|
|
if x != nil {
|
|
return x.PreferenceValueType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserPreference) GetPreferenceValue() string {
|
|
if x != nil {
|
|
return x.PreferenceValue
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserPreference) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserPreference) GetUpdatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Role struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
|
|
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Role) Reset() {
|
|
*x = Role{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Role) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Role) ProtoMessage() {}
|
|
|
|
func (x *Role) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 Role.ProtoReflect.Descriptor instead.
|
|
func (*Role) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *Role) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Role) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Role) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Role) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Role) GetUpdatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SocialAccount struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
|
|
ProviderUserId string `protobuf:"bytes,2,opt,name=provider_user_id,json=providerUserId,proto3" json:"provider_user_id,omitempty"`
|
|
AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
|
|
Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
|
|
ProfilePictureUrl string `protobuf:"bytes,7,opt,name=profile_picture_url,json=profilePictureUrl,proto3" json:"profile_picture_url,omitempty"`
|
|
EmailVerified bool `protobuf:"varint,8,opt,name=email_verified,json=emailVerified,proto3" json:"email_verified,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SocialAccount) Reset() {
|
|
*x = SocialAccount{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SocialAccount) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SocialAccount) ProtoMessage() {}
|
|
|
|
func (x *SocialAccount) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 SocialAccount.ProtoReflect.Descriptor instead.
|
|
func (*SocialAccount) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *SocialAccount) GetProvider() string {
|
|
if x != nil {
|
|
return x.Provider
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SocialAccount) GetProviderUserId() string {
|
|
if x != nil {
|
|
return x.ProviderUserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SocialAccount) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SocialAccount) GetExpiresAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SocialAccount) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SocialAccount) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SocialAccount) GetProfilePictureUrl() string {
|
|
if x != nil {
|
|
return x.ProfilePictureUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SocialAccount) GetEmailVerified() bool {
|
|
if x != nil {
|
|
return x.EmailVerified
|
|
}
|
|
return false
|
|
}
|
|
|
|
// Mobile flow - validate ID token from native SDK
|
|
type SocialLoginRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Provider OAuthProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=st_peter.auth.OAuthProvider" json:"provider,omitempty"`
|
|
IdToken string `protobuf:"bytes,2,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"` // JWT from Google/Apple SDK
|
|
AccessToken string `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // For Facebook
|
|
DeviceInfo *DeviceInfo `protobuf:"bytes,4,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
|
Nonce string `protobuf:"bytes,5,opt,name=nonce,proto3" json:"nonce,omitempty"` // For Apple Sign-In security
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SocialLoginRequest) Reset() {
|
|
*x = SocialLoginRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SocialLoginRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SocialLoginRequest) ProtoMessage() {}
|
|
|
|
func (x *SocialLoginRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 SocialLoginRequest.ProtoReflect.Descriptor instead.
|
|
func (*SocialLoginRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *SocialLoginRequest) GetProvider() OAuthProvider {
|
|
if x != nil {
|
|
return x.Provider
|
|
}
|
|
return OAuthProvider_OAUTH_PROVIDER_UNSPECIFIED
|
|
}
|
|
|
|
func (x *SocialLoginRequest) GetIdToken() string {
|
|
if x != nil {
|
|
return x.IdToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SocialLoginRequest) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SocialLoginRequest) GetDeviceInfo() *DeviceInfo {
|
|
if x != nil {
|
|
return x.DeviceInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SocialLoginRequest) GetNonce() string {
|
|
if x != nil {
|
|
return x.Nonce
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SocialLoginResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
AuthenticatedUser *AuthenticatedUser `protobuf:"bytes,4,opt,name=authenticated_user,json=authenticatedUser,proto3" json:"authenticated_user,omitempty"`
|
|
IsNewUser bool `protobuf:"varint,5,opt,name=is_new_user,json=isNewUser,proto3" json:"is_new_user,omitempty"`
|
|
WasAutoLinked bool `protobuf:"varint,6,opt,name=was_auto_linked,json=wasAutoLinked,proto3" json:"was_auto_linked,omitempty"`
|
|
ValidationErrors []*ValidationError `protobuf:"bytes,7,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SocialLoginResponse) Reset() {
|
|
*x = SocialLoginResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SocialLoginResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SocialLoginResponse) ProtoMessage() {}
|
|
|
|
func (x *SocialLoginResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 SocialLoginResponse.ProtoReflect.Descriptor instead.
|
|
func (*SocialLoginResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *SocialLoginResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SocialLoginResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *SocialLoginResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SocialLoginResponse) GetAuthenticatedUser() *AuthenticatedUser {
|
|
if x != nil {
|
|
return x.AuthenticatedUser
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SocialLoginResponse) GetIsNewUser() bool {
|
|
if x != nil {
|
|
return x.IsNewUser
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SocialLoginResponse) GetWasAutoLinked() bool {
|
|
if x != nil {
|
|
return x.WasAutoLinked
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SocialLoginResponse) GetValidationErrors() []*ValidationError {
|
|
if x != nil {
|
|
return x.ValidationErrors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Web flow - initiate OAuth redirect
|
|
type InitiateOAuthRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Provider OAuthProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=st_peter.auth.OAuthProvider" json:"provider,omitempty"`
|
|
RedirectUri string `protobuf:"bytes,2,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
|
|
State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` // Client-provided state for additional verification
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InitiateOAuthRequest) Reset() {
|
|
*x = InitiateOAuthRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InitiateOAuthRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InitiateOAuthRequest) ProtoMessage() {}
|
|
|
|
func (x *InitiateOAuthRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 InitiateOAuthRequest.ProtoReflect.Descriptor instead.
|
|
func (*InitiateOAuthRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *InitiateOAuthRequest) GetProvider() OAuthProvider {
|
|
if x != nil {
|
|
return x.Provider
|
|
}
|
|
return OAuthProvider_OAUTH_PROVIDER_UNSPECIFIED
|
|
}
|
|
|
|
func (x *InitiateOAuthRequest) GetRedirectUri() string {
|
|
if x != nil {
|
|
return x.RedirectUri
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitiateOAuthRequest) GetState() string {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type InitiateOAuthResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
AuthorizationUrl string `protobuf:"bytes,4,opt,name=authorization_url,json=authorizationUrl,proto3" json:"authorization_url,omitempty"`
|
|
State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` // Server-generated state token
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InitiateOAuthResponse) Reset() {
|
|
*x = InitiateOAuthResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InitiateOAuthResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InitiateOAuthResponse) ProtoMessage() {}
|
|
|
|
func (x *InitiateOAuthResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 InitiateOAuthResponse.ProtoReflect.Descriptor instead.
|
|
func (*InitiateOAuthResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *InitiateOAuthResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *InitiateOAuthResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *InitiateOAuthResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitiateOAuthResponse) GetAuthorizationUrl() string {
|
|
if x != nil {
|
|
return x.AuthorizationUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitiateOAuthResponse) GetState() string {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Web flow - handle callback
|
|
type OAuthCallbackRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Provider OAuthProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=st_peter.auth.OAuthProvider" json:"provider,omitempty"`
|
|
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
|
|
State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
|
|
DeviceInfo *DeviceInfo `protobuf:"bytes,4,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OAuthCallbackRequest) Reset() {
|
|
*x = OAuthCallbackRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OAuthCallbackRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OAuthCallbackRequest) ProtoMessage() {}
|
|
|
|
func (x *OAuthCallbackRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 OAuthCallbackRequest.ProtoReflect.Descriptor instead.
|
|
func (*OAuthCallbackRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *OAuthCallbackRequest) GetProvider() OAuthProvider {
|
|
if x != nil {
|
|
return x.Provider
|
|
}
|
|
return OAuthProvider_OAUTH_PROVIDER_UNSPECIFIED
|
|
}
|
|
|
|
func (x *OAuthCallbackRequest) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OAuthCallbackRequest) GetState() string {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OAuthCallbackRequest) GetDeviceInfo() *DeviceInfo {
|
|
if x != nil {
|
|
return x.DeviceInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Account linking
|
|
type LinkSocialAccountRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ActorId string `protobuf:"bytes,1,opt,name=actor_id,json=actorId,proto3" json:"actor_id,omitempty"`
|
|
ActorToken string `protobuf:"bytes,2,opt,name=actor_token,json=actorToken,proto3" json:"actor_token,omitempty"`
|
|
Provider OAuthProvider `protobuf:"varint,3,opt,name=provider,proto3,enum=st_peter.auth.OAuthProvider" json:"provider,omitempty"`
|
|
IdToken string `protobuf:"bytes,4,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"`
|
|
AccessToken string `protobuf:"bytes,5,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
Nonce string `protobuf:"bytes,6,opt,name=nonce,proto3" json:"nonce,omitempty"` // For Apple Sign-In
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LinkSocialAccountRequest) Reset() {
|
|
*x = LinkSocialAccountRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LinkSocialAccountRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LinkSocialAccountRequest) ProtoMessage() {}
|
|
|
|
func (x *LinkSocialAccountRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 LinkSocialAccountRequest.ProtoReflect.Descriptor instead.
|
|
func (*LinkSocialAccountRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *LinkSocialAccountRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LinkSocialAccountRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LinkSocialAccountRequest) GetProvider() OAuthProvider {
|
|
if x != nil {
|
|
return x.Provider
|
|
}
|
|
return OAuthProvider_OAUTH_PROVIDER_UNSPECIFIED
|
|
}
|
|
|
|
func (x *LinkSocialAccountRequest) GetIdToken() string {
|
|
if x != nil {
|
|
return x.IdToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LinkSocialAccountRequest) GetAccessToken() string {
|
|
if x != nil {
|
|
return x.AccessToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LinkSocialAccountRequest) GetNonce() string {
|
|
if x != nil {
|
|
return x.Nonce
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UnlinkSocialAccountRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ActorId string `protobuf:"bytes,1,opt,name=actor_id,json=actorId,proto3" json:"actor_id,omitempty"`
|
|
ActorToken string `protobuf:"bytes,2,opt,name=actor_token,json=actorToken,proto3" json:"actor_token,omitempty"`
|
|
Provider OAuthProvider `protobuf:"varint,3,opt,name=provider,proto3,enum=st_peter.auth.OAuthProvider" json:"provider,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UnlinkSocialAccountRequest) Reset() {
|
|
*x = UnlinkSocialAccountRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UnlinkSocialAccountRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UnlinkSocialAccountRequest) ProtoMessage() {}
|
|
|
|
func (x *UnlinkSocialAccountRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 UnlinkSocialAccountRequest.ProtoReflect.Descriptor instead.
|
|
func (*UnlinkSocialAccountRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *UnlinkSocialAccountRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UnlinkSocialAccountRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UnlinkSocialAccountRequest) GetProvider() OAuthProvider {
|
|
if x != nil {
|
|
return x.Provider
|
|
}
|
|
return OAuthProvider_OAUTH_PROVIDER_UNSPECIFIED
|
|
}
|
|
|
|
type GetLinkedAccountsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ActorId string `protobuf:"bytes,1,opt,name=actor_id,json=actorId,proto3" json:"actor_id,omitempty"`
|
|
ActorToken string `protobuf:"bytes,2,opt,name=actor_token,json=actorToken,proto3" json:"actor_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetLinkedAccountsRequest) Reset() {
|
|
*x = GetLinkedAccountsRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetLinkedAccountsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetLinkedAccountsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetLinkedAccountsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 GetLinkedAccountsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetLinkedAccountsRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *GetLinkedAccountsRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetLinkedAccountsRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetLinkedAccountsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Accounts []*SocialAccount `protobuf:"bytes,4,rep,name=accounts,proto3" json:"accounts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetLinkedAccountsResponse) Reset() {
|
|
*x = GetLinkedAccountsResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetLinkedAccountsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetLinkedAccountsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetLinkedAccountsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 GetLinkedAccountsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetLinkedAccountsResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *GetLinkedAccountsResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetLinkedAccountsResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetLinkedAccountsResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetLinkedAccountsResponse) GetAccounts() []*SocialAccount {
|
|
if x != nil {
|
|
return x.Accounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RegisterUserRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserIdentifier string `protobuf:"bytes,1,opt,name=user_identifier,json=userIdentifier,proto3" json:"user_identifier,omitempty"`
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
FirstNames string `protobuf:"bytes,4,opt,name=first_names,json=firstNames,proto3" json:"first_names,omitempty"`
|
|
LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
|
|
AppHash string `protobuf:"bytes,6,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
|
|
DeviceInfo *DeviceInfo `protobuf:"bytes,7,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterUserRequest) Reset() {
|
|
*x = RegisterUserRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterUserRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterUserRequest) ProtoMessage() {}
|
|
|
|
func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 RegisterUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*RegisterUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *RegisterUserRequest) GetUserIdentifier() string {
|
|
if x != nil {
|
|
return x.UserIdentifier
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterUserRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterUserRequest) GetFirstNames() string {
|
|
if x != nil {
|
|
return x.FirstNames
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterUserRequest) GetLastName() string {
|
|
if x != nil {
|
|
return x.LastName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterUserRequest) GetAppHash() string {
|
|
if x != nil {
|
|
return x.AppHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterUserRequest) GetDeviceInfo() *DeviceInfo {
|
|
if x != nil {
|
|
return x.DeviceInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RegisterUserResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
RegistrationId string `protobuf:"bytes,4,opt,name=registration_id,json=registrationId,proto3" json:"registration_id,omitempty"`
|
|
ValidationErrors []*ValidationError `protobuf:"bytes,5,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterUserResponse) Reset() {
|
|
*x = RegisterUserResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterUserResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterUserResponse) ProtoMessage() {}
|
|
|
|
func (x *RegisterUserResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 RegisterUserResponse.ProtoReflect.Descriptor instead.
|
|
func (*RegisterUserResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *RegisterUserResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *RegisterUserResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *RegisterUserResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterUserResponse) GetRegistrationId() string {
|
|
if x != nil {
|
|
return x.RegistrationId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterUserResponse) GetValidationErrors() []*ValidationError {
|
|
if x != nil {
|
|
return x.ValidationErrors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type VerifyRegisterUserRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserIdentifier string `protobuf:"bytes,1,opt,name=user_identifier,json=userIdentifier,proto3" json:"user_identifier,omitempty"` // Can be either email or phone
|
|
RegistrationId string `protobuf:"bytes,2,opt,name=registration_id,json=registrationId,proto3" json:"registration_id,omitempty"`
|
|
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` //Token has a redirect to encoded in it.
|
|
DeviceInfo *DeviceInfo `protobuf:"bytes,4,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyRegisterUserRequest) Reset() {
|
|
*x = VerifyRegisterUserRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyRegisterUserRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyRegisterUserRequest) ProtoMessage() {}
|
|
|
|
func (x *VerifyRegisterUserRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 VerifyRegisterUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*VerifyRegisterUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *VerifyRegisterUserRequest) GetUserIdentifier() string {
|
|
if x != nil {
|
|
return x.UserIdentifier
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyRegisterUserRequest) GetRegistrationId() string {
|
|
if x != nil {
|
|
return x.RegistrationId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyRegisterUserRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyRegisterUserRequest) GetDeviceInfo() *DeviceInfo {
|
|
if x != nil {
|
|
return x.DeviceInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UserResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
User *User `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserResponse) Reset() {
|
|
*x = UserResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserResponse) ProtoMessage() {}
|
|
|
|
func (x *UserResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 UserResponse.ProtoReflect.Descriptor instead.
|
|
func (*UserResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *UserResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UserResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *UserResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeviceInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ApplicationName string `protobuf:"bytes,1,opt,name=application_name,json=applicationName,proto3" json:"application_name,omitempty"` // e.g., 'web', 'mobile'
|
|
ApplicationVersion string `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"` //e.g., '1.0.0'
|
|
DeviceName string `protobuf:"bytes,3,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` // e.g., 'iPhone X', 'Pixel 2'
|
|
DeviceType string `protobuf:"bytes,4,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"` // -- e.g., 'desktop', 'mobile'
|
|
DeviceOs string `protobuf:"bytes,5,opt,name=device_os,json=deviceOs,proto3" json:"device_os,omitempty"` // e. g., 'iOS', 'Android', 'Windows'
|
|
DeviceOsVersion string `protobuf:"bytes,6,opt,name=device_os_version,json=deviceOsVersion,proto3" json:"device_os_version,omitempty"` // e.g., '10', '11.4.1'
|
|
DeviceId string `protobuf:"bytes,7,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // e.g., 'imei:1234567890', 'serial:1234567890'
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeviceInfo) Reset() {
|
|
*x = DeviceInfo{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeviceInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeviceInfo) ProtoMessage() {}
|
|
|
|
func (x *DeviceInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 DeviceInfo.ProtoReflect.Descriptor instead.
|
|
func (*DeviceInfo) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *DeviceInfo) GetApplicationName() string {
|
|
if x != nil {
|
|
return x.ApplicationName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeviceInfo) GetApplicationVersion() string {
|
|
if x != nil {
|
|
return x.ApplicationVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeviceInfo) GetDeviceName() string {
|
|
if x != nil {
|
|
return x.DeviceName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeviceInfo) GetDeviceType() string {
|
|
if x != nil {
|
|
return x.DeviceType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeviceInfo) GetDeviceOs() string {
|
|
if x != nil {
|
|
return x.DeviceOs
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeviceInfo) GetDeviceOsVersion() string {
|
|
if x != nil {
|
|
return x.DeviceOsVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeviceInfo) GetDeviceId() string {
|
|
if x != nil {
|
|
return x.DeviceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LoginRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserIdentifier string `protobuf:"bytes,1,opt,name=user_identifier,json=userIdentifier,proto3" json:"user_identifier,omitempty"` // Can be either email or phone
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
AppHash string `protobuf:"bytes,3,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
|
|
DeviceInfo *DeviceInfo `protobuf:"bytes,4,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginRequest) Reset() {
|
|
*x = LoginRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[19]
|
|
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_st_peter_auth_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 LoginRequest.ProtoReflect.Descriptor instead.
|
|
func (*LoginRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *LoginRequest) GetUserIdentifier() string {
|
|
if x != nil {
|
|
return x.UserIdentifier
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginRequest) GetAppHash() string {
|
|
if x != nil {
|
|
return x.AppHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginRequest) GetDeviceInfo() *DeviceInfo {
|
|
if x != nil {
|
|
return x.DeviceInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AuthenticationResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
PassCodeRequired bool `protobuf:"varint,2,opt,name=pass_code_required,json=passCodeRequired,proto3" json:"pass_code_required,omitempty"`
|
|
TwoFactorId string `protobuf:"bytes,3,opt,name=two_factor_id,json=twoFactorId,proto3" json:"two_factor_id,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,8,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,9,opt,name=message,proto3" json:"message,omitempty"`
|
|
AuthenticatedUser *AuthenticatedUser `protobuf:"bytes,10,opt,name=authenticated_user,json=authenticatedUser,proto3" json:"authenticated_user,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AuthenticationResponse) Reset() {
|
|
*x = AuthenticationResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AuthenticationResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AuthenticationResponse) ProtoMessage() {}
|
|
|
|
func (x *AuthenticationResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 AuthenticationResponse.ProtoReflect.Descriptor instead.
|
|
func (*AuthenticationResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *AuthenticationResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *AuthenticationResponse) GetPassCodeRequired() bool {
|
|
if x != nil {
|
|
return x.PassCodeRequired
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *AuthenticationResponse) GetTwoFactorId() string {
|
|
if x != nil {
|
|
return x.TwoFactorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuthenticationResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *AuthenticationResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuthenticationResponse) GetAuthenticatedUser() *AuthenticatedUser {
|
|
if x != nil {
|
|
return x.AuthenticatedUser
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AuthenticatedUser struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
|
|
SessionId string `protobuf:"bytes,3,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
UserPreferences []*UserPreference `protobuf:"bytes,5,rep,name=user_preferences,json=userPreferences,proto3" json:"user_preferences,omitempty"`
|
|
UserRoles []*AssignedUserRole `protobuf:"bytes,11,rep,name=user_roles,json=userRoles,proto3" json:"user_roles,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AuthenticatedUser) Reset() {
|
|
*x = AuthenticatedUser{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AuthenticatedUser) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AuthenticatedUser) ProtoMessage() {}
|
|
|
|
func (x *AuthenticatedUser) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 AuthenticatedUser.ProtoReflect.Descriptor instead.
|
|
func (*AuthenticatedUser) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *AuthenticatedUser) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuthenticatedUser) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuthenticatedUser) GetSessionId() string {
|
|
if x != nil {
|
|
return x.SessionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuthenticatedUser) GetExpiresAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuthenticatedUser) GetUserPreferences() []*UserPreference {
|
|
if x != nil {
|
|
return x.UserPreferences
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AuthenticatedUser) GetUserRoles() []*AssignedUserRole {
|
|
if x != nil {
|
|
return x.UserRoles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AssignedUserRole struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
RoleId string `protobuf:"bytes,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
|
|
RoleName string `protobuf:"bytes,4,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"`
|
|
ScopeCode string `protobuf:"bytes,5,opt,name=scope_code,json=scopeCode,proto3" json:"scope_code,omitempty"`
|
|
TargetId string `protobuf:"bytes,6,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AssignedUserRole) Reset() {
|
|
*x = AssignedUserRole{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AssignedUserRole) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AssignedUserRole) ProtoMessage() {}
|
|
|
|
func (x *AssignedUserRole) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 AssignedUserRole.ProtoReflect.Descriptor instead.
|
|
func (*AssignedUserRole) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *AssignedUserRole) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AssignedUserRole) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AssignedUserRole) GetRoleId() string {
|
|
if x != nil {
|
|
return x.RoleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AssignedUserRole) GetRoleName() string {
|
|
if x != nil {
|
|
return x.RoleName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AssignedUserRole) GetScopeCode() string {
|
|
if x != nil {
|
|
return x.ScopeCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AssignedUserRole) GetTargetId() string {
|
|
if x != nil {
|
|
return x.TargetId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type VerifyTokenRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
IncludeUserRoles bool `protobuf:"varint,2,opt,name=include_user_roles,json=includeUserRoles,proto3" json:"include_user_roles,omitempty"`
|
|
RoleScopes []string `protobuf:"bytes,3,rep,name=role_scopes,json=roleScopes,proto3" json:"role_scopes,omitempty"`
|
|
RoleNames []string `protobuf:"bytes,4,rep,name=role_names,json=roleNames,proto3" json:"role_names,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyTokenRequest) Reset() {
|
|
*x = VerifyTokenRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[23]
|
|
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_st_peter_auth_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 VerifyTokenRequest.ProtoReflect.Descriptor instead.
|
|
func (*VerifyTokenRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *VerifyTokenRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyTokenRequest) GetIncludeUserRoles() bool {
|
|
if x != nil {
|
|
return x.IncludeUserRoles
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *VerifyTokenRequest) GetRoleScopes() []string {
|
|
if x != nil {
|
|
return x.RoleScopes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *VerifyTokenRequest) GetRoleNames() []string {
|
|
if x != nil {
|
|
return x.RoleNames
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type VerifyAuthClaimTokenRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Claim string `protobuf:"bytes,2,opt,name=claim,proto3" json:"claim,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyAuthClaimTokenRequest) Reset() {
|
|
*x = VerifyAuthClaimTokenRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyAuthClaimTokenRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyAuthClaimTokenRequest) ProtoMessage() {}
|
|
|
|
func (x *VerifyAuthClaimTokenRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 VerifyAuthClaimTokenRequest.ProtoReflect.Descriptor instead.
|
|
func (*VerifyAuthClaimTokenRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *VerifyAuthClaimTokenRequest) GetClaim() string {
|
|
if x != nil {
|
|
return x.Claim
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type InitiateTwoFactorResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
TwoFactorId string `protobuf:"bytes,4,opt,name=two_factor_id,json=twoFactorId,proto3" json:"two_factor_id,omitempty"`
|
|
Channel ChannelType `protobuf:"varint,5,opt,name=channel,proto3,enum=st_peter.auth.ChannelType" json:"channel,omitempty"`
|
|
UserId string `protobuf:"bytes,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
ValidationErrors []*ValidationError `protobuf:"bytes,6,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InitiateTwoFactorResponse) Reset() {
|
|
*x = InitiateTwoFactorResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InitiateTwoFactorResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InitiateTwoFactorResponse) ProtoMessage() {}
|
|
|
|
func (x *InitiateTwoFactorResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_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 InitiateTwoFactorResponse.ProtoReflect.Descriptor instead.
|
|
func (*InitiateTwoFactorResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
func (x *InitiateTwoFactorResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *InitiateTwoFactorResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *InitiateTwoFactorResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitiateTwoFactorResponse) GetTwoFactorId() string {
|
|
if x != nil {
|
|
return x.TwoFactorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitiateTwoFactorResponse) GetChannel() ChannelType {
|
|
if x != nil {
|
|
return x.Channel
|
|
}
|
|
return ChannelType_CHANNEL_TYPE_UNSPECIFIED
|
|
}
|
|
|
|
func (x *InitiateTwoFactorResponse) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitiateTwoFactorResponse) GetValidationErrors() []*ValidationError {
|
|
if x != nil {
|
|
return x.ValidationErrors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type VerifyTwoFactorResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
ValidationErrors []*ValidationError `protobuf:"bytes,4,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyTwoFactorResponse) Reset() {
|
|
*x = VerifyTwoFactorResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[26]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyTwoFactorResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyTwoFactorResponse) ProtoMessage() {}
|
|
|
|
func (x *VerifyTwoFactorResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[26]
|
|
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 VerifyTwoFactorResponse.ProtoReflect.Descriptor instead.
|
|
func (*VerifyTwoFactorResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{26}
|
|
}
|
|
|
|
func (x *VerifyTwoFactorResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *VerifyTwoFactorResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *VerifyTwoFactorResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyTwoFactorResponse) GetValidationErrors() []*ValidationError {
|
|
if x != nil {
|
|
return x.ValidationErrors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type InitiateTwoFactorRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId *string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
|
|
UserIdentifier *string `protobuf:"bytes,5,opt,name=user_identifier,json=userIdentifier,proto3,oneof" json:"user_identifier,omitempty"` // Can be either email or phone
|
|
Channel ChannelType `protobuf:"varint,2,opt,name=channel,proto3,enum=st_peter.auth.ChannelType" json:"channel,omitempty"`
|
|
AppHash string `protobuf:"bytes,3,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
|
|
DeviceInfo *DeviceInfo `protobuf:"bytes,4,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InitiateTwoFactorRequest) Reset() {
|
|
*x = InitiateTwoFactorRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[27]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InitiateTwoFactorRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InitiateTwoFactorRequest) ProtoMessage() {}
|
|
|
|
func (x *InitiateTwoFactorRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[27]
|
|
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 InitiateTwoFactorRequest.ProtoReflect.Descriptor instead.
|
|
func (*InitiateTwoFactorRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{27}
|
|
}
|
|
|
|
func (x *InitiateTwoFactorRequest) GetUserId() string {
|
|
if x != nil && x.UserId != nil {
|
|
return *x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitiateTwoFactorRequest) GetUserIdentifier() string {
|
|
if x != nil && x.UserIdentifier != nil {
|
|
return *x.UserIdentifier
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitiateTwoFactorRequest) GetChannel() ChannelType {
|
|
if x != nil {
|
|
return x.Channel
|
|
}
|
|
return ChannelType_CHANNEL_TYPE_UNSPECIFIED
|
|
}
|
|
|
|
func (x *InitiateTwoFactorRequest) GetAppHash() string {
|
|
if x != nil {
|
|
return x.AppHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitiateTwoFactorRequest) GetDeviceInfo() *DeviceInfo {
|
|
if x != nil {
|
|
return x.DeviceInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type VerifyTwoFactorRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TwoFactorId string `protobuf:"bytes,1,opt,name=two_factor_id,json=twoFactorId,proto3" json:"two_factor_id,omitempty"`
|
|
Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
|
|
DeviceInfo *DeviceInfo `protobuf:"bytes,3,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyTwoFactorRequest) Reset() {
|
|
*x = VerifyTwoFactorRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[28]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyTwoFactorRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyTwoFactorRequest) ProtoMessage() {}
|
|
|
|
func (x *VerifyTwoFactorRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[28]
|
|
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 VerifyTwoFactorRequest.ProtoReflect.Descriptor instead.
|
|
func (*VerifyTwoFactorRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{28}
|
|
}
|
|
|
|
func (x *VerifyTwoFactorRequest) GetTwoFactorId() string {
|
|
if x != nil {
|
|
return x.TwoFactorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyTwoFactorRequest) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyTwoFactorRequest) GetDeviceInfo() *DeviceInfo {
|
|
if x != nil {
|
|
return x.DeviceInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type InitiatePasswordResetRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserIdentifier string `protobuf:"bytes,1,opt,name=user_identifier,json=userIdentifier,proto3" json:"user_identifier,omitempty"` // Can be either email or phone
|
|
AppHash string `protobuf:"bytes,2,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
|
|
DeviceInfo *DeviceInfo `protobuf:"bytes,4,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
|
NewPassword string `protobuf:"bytes,5,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InitiatePasswordResetRequest) Reset() {
|
|
*x = InitiatePasswordResetRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[29]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InitiatePasswordResetRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InitiatePasswordResetRequest) ProtoMessage() {}
|
|
|
|
func (x *InitiatePasswordResetRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[29]
|
|
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 InitiatePasswordResetRequest.ProtoReflect.Descriptor instead.
|
|
func (*InitiatePasswordResetRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{29}
|
|
}
|
|
|
|
func (x *InitiatePasswordResetRequest) GetUserIdentifier() string {
|
|
if x != nil {
|
|
return x.UserIdentifier
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitiatePasswordResetRequest) GetAppHash() string {
|
|
if x != nil {
|
|
return x.AppHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitiatePasswordResetRequest) GetDeviceInfo() *DeviceInfo {
|
|
if x != nil {
|
|
return x.DeviceInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *InitiatePasswordResetRequest) GetNewPassword() string {
|
|
if x != nil {
|
|
return x.NewPassword
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type OperationResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OperationResponse) Reset() {
|
|
*x = OperationResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[30]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OperationResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OperationResponse) ProtoMessage() {}
|
|
|
|
func (x *OperationResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[30]
|
|
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 OperationResponse.ProtoReflect.Descriptor instead.
|
|
func (*OperationResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{30}
|
|
}
|
|
|
|
func (x *OperationResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *OperationResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *OperationResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type VerifyPasswordResetTokenRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
PasswordResetId string `protobuf:"bytes,2,opt,name=password_reset_id,json=passwordResetId,proto3" json:"password_reset_id,omitempty"`
|
|
Passcode string `protobuf:"bytes,3,opt,name=passcode,proto3" json:"passcode,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyPasswordResetTokenRequest) Reset() {
|
|
*x = VerifyPasswordResetTokenRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[31]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyPasswordResetTokenRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyPasswordResetTokenRequest) ProtoMessage() {}
|
|
|
|
func (x *VerifyPasswordResetTokenRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[31]
|
|
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 VerifyPasswordResetTokenRequest.ProtoReflect.Descriptor instead.
|
|
func (*VerifyPasswordResetTokenRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{31}
|
|
}
|
|
|
|
func (x *VerifyPasswordResetTokenRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyPasswordResetTokenRequest) GetPasswordResetId() string {
|
|
if x != nil {
|
|
return x.PasswordResetId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyPasswordResetTokenRequest) GetPasscode() string {
|
|
if x != nil {
|
|
return x.Passcode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PasswordResetTokenResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
PasswordResetId string `protobuf:"bytes,4,opt,name=password_reset_id,json=passwordResetId,proto3" json:"password_reset_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PasswordResetTokenResponse) Reset() {
|
|
*x = PasswordResetTokenResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[32]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PasswordResetTokenResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PasswordResetTokenResponse) ProtoMessage() {}
|
|
|
|
func (x *PasswordResetTokenResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[32]
|
|
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 PasswordResetTokenResponse.ProtoReflect.Descriptor instead.
|
|
func (*PasswordResetTokenResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{32}
|
|
}
|
|
|
|
func (x *PasswordResetTokenResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *PasswordResetTokenResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *PasswordResetTokenResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PasswordResetTokenResponse) GetPasswordResetId() string {
|
|
if x != nil {
|
|
return x.PasswordResetId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ResetPasswordRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
PasswordResetId string `protobuf:"bytes,2,opt,name=password_reset_id,json=passwordResetId,proto3" json:"password_reset_id,omitempty"`
|
|
Passcode string `protobuf:"bytes,3,opt,name=passcode,proto3" json:"passcode,omitempty"`
|
|
DeviceInfo *DeviceInfo `protobuf:"bytes,4,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResetPasswordRequest) Reset() {
|
|
*x = ResetPasswordRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[33]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResetPasswordRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResetPasswordRequest) ProtoMessage() {}
|
|
|
|
func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[33]
|
|
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 ResetPasswordRequest.ProtoReflect.Descriptor instead.
|
|
func (*ResetPasswordRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{33}
|
|
}
|
|
|
|
func (x *ResetPasswordRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResetPasswordRequest) GetPasswordResetId() string {
|
|
if x != nil {
|
|
return x.PasswordResetId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResetPasswordRequest) GetPasscode() string {
|
|
if x != nil {
|
|
return x.Passcode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResetPasswordRequest) GetDeviceInfo() *DeviceInfo {
|
|
if x != nil {
|
|
return x.DeviceInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ChangeIdentityFieldRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
UserToken string `protobuf:"bytes,2,opt,name=user_token,json=userToken,proto3" json:"user_token,omitempty"`
|
|
Channel ChannelType `protobuf:"varint,3,opt,name=channel,proto3,enum=st_peter.auth.ChannelType" json:"channel,omitempty"`
|
|
NewValue string `protobuf:"bytes,4,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"`
|
|
FieldType IdentityField `protobuf:"varint,5,opt,name=field_type,json=fieldType,proto3,enum=st_peter.auth.IdentityField" json:"field_type,omitempty"`
|
|
AppHash string `protobuf:"bytes,6,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
|
|
DeviceInfo *DeviceInfo `protobuf:"bytes,7,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldRequest) Reset() {
|
|
*x = ChangeIdentityFieldRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[34]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChangeIdentityFieldRequest) ProtoMessage() {}
|
|
|
|
func (x *ChangeIdentityFieldRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[34]
|
|
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 ChangeIdentityFieldRequest.ProtoReflect.Descriptor instead.
|
|
func (*ChangeIdentityFieldRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{34}
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldRequest) GetUserToken() string {
|
|
if x != nil {
|
|
return x.UserToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldRequest) GetChannel() ChannelType {
|
|
if x != nil {
|
|
return x.Channel
|
|
}
|
|
return ChannelType_CHANNEL_TYPE_UNSPECIFIED
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldRequest) GetNewValue() string {
|
|
if x != nil {
|
|
return x.NewValue
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldRequest) GetFieldType() IdentityField {
|
|
if x != nil {
|
|
return x.FieldType
|
|
}
|
|
return IdentityField_IDENTITY_FIELD_UNSPECIFIED
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldRequest) GetAppHash() string {
|
|
if x != nil {
|
|
return x.AppHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldRequest) GetDeviceInfo() *DeviceInfo {
|
|
if x != nil {
|
|
return x.DeviceInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ChangeIdentityFieldResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
ChallengeId string `protobuf:"bytes,4,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
|
|
PasscodeSize int32 `protobuf:"varint,5,opt,name=passcode_size,json=passcodeSize,proto3" json:"passcode_size,omitempty"`
|
|
UserIdentifier string `protobuf:"bytes,6,opt,name=user_identifier,json=userIdentifier,proto3" json:"user_identifier,omitempty"`
|
|
Channel ChannelType `protobuf:"varint,7,opt,name=channel,proto3,enum=st_peter.auth.ChannelType" json:"channel,omitempty"`
|
|
ValidationErrors []*ValidationError `protobuf:"bytes,8,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldResponse) Reset() {
|
|
*x = ChangeIdentityFieldResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[35]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChangeIdentityFieldResponse) ProtoMessage() {}
|
|
|
|
func (x *ChangeIdentityFieldResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[35]
|
|
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 ChangeIdentityFieldResponse.ProtoReflect.Descriptor instead.
|
|
func (*ChangeIdentityFieldResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{35}
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldResponse) GetChallengeId() string {
|
|
if x != nil {
|
|
return x.ChallengeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldResponse) GetPasscodeSize() int32 {
|
|
if x != nil {
|
|
return x.PasscodeSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldResponse) GetUserIdentifier() string {
|
|
if x != nil {
|
|
return x.UserIdentifier
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldResponse) GetChannel() ChannelType {
|
|
if x != nil {
|
|
return x.Channel
|
|
}
|
|
return ChannelType_CHANNEL_TYPE_UNSPECIFIED
|
|
}
|
|
|
|
func (x *ChangeIdentityFieldResponse) GetValidationErrors() []*ValidationError {
|
|
if x != nil {
|
|
return x.ValidationErrors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type VerifyIdentityFieldRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
UserToken string `protobuf:"bytes,2,opt,name=user_token,json=userToken,proto3" json:"user_token,omitempty"`
|
|
ChallengeId string `protobuf:"bytes,4,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
|
|
VerificationCode string `protobuf:"bytes,5,opt,name=verification_code,json=verificationCode,proto3" json:"verification_code,omitempty"`
|
|
AppHash string `protobuf:"bytes,6,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
|
|
DeviceInfo *DeviceInfo `protobuf:"bytes,7,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldRequest) Reset() {
|
|
*x = VerifyIdentityFieldRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[36]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyIdentityFieldRequest) ProtoMessage() {}
|
|
|
|
func (x *VerifyIdentityFieldRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[36]
|
|
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 VerifyIdentityFieldRequest.ProtoReflect.Descriptor instead.
|
|
func (*VerifyIdentityFieldRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{36}
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldRequest) GetUserToken() string {
|
|
if x != nil {
|
|
return x.UserToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldRequest) GetChallengeId() string {
|
|
if x != nil {
|
|
return x.ChallengeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldRequest) GetVerificationCode() string {
|
|
if x != nil {
|
|
return x.VerificationCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldRequest) GetAppHash() string {
|
|
if x != nil {
|
|
return x.AppHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldRequest) GetDeviceInfo() *DeviceInfo {
|
|
if x != nil {
|
|
return x.DeviceInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ResendIdentityFieldRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
UserToken string `protobuf:"bytes,2,opt,name=user_token,json=userToken,proto3" json:"user_token,omitempty"`
|
|
ChallengeId string `protobuf:"bytes,4,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
|
|
AppHash string `protobuf:"bytes,6,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
|
|
DeviceInfo *DeviceInfo `protobuf:"bytes,7,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResendIdentityFieldRequest) Reset() {
|
|
*x = ResendIdentityFieldRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[37]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResendIdentityFieldRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResendIdentityFieldRequest) ProtoMessage() {}
|
|
|
|
func (x *ResendIdentityFieldRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[37]
|
|
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 ResendIdentityFieldRequest.ProtoReflect.Descriptor instead.
|
|
func (*ResendIdentityFieldRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{37}
|
|
}
|
|
|
|
func (x *ResendIdentityFieldRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResendIdentityFieldRequest) GetUserToken() string {
|
|
if x != nil {
|
|
return x.UserToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResendIdentityFieldRequest) GetChallengeId() string {
|
|
if x != nil {
|
|
return x.ChallengeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResendIdentityFieldRequest) GetAppHash() string {
|
|
if x != nil {
|
|
return x.AppHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResendIdentityFieldRequest) GetDeviceInfo() *DeviceInfo {
|
|
if x != nil {
|
|
return x.DeviceInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type VerifyIdentityFieldResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
RequiresVerification bool `protobuf:"varint,8,opt,name=requires_verification,json=requiresVerification,proto3" json:"requires_verification,omitempty"`
|
|
ChallengeId string `protobuf:"bytes,4,opt,name=challenge_id,json=challengeId,proto3" json:"challenge_id,omitempty"`
|
|
PasscodeSize int32 `protobuf:"varint,5,opt,name=passcode_size,json=passcodeSize,proto3" json:"passcode_size,omitempty"`
|
|
UserIdentifier string `protobuf:"bytes,6,opt,name=user_identifier,json=userIdentifier,proto3" json:"user_identifier,omitempty"`
|
|
Channel ChannelType `protobuf:"varint,7,opt,name=channel,proto3,enum=st_peter.auth.ChannelType" json:"channel,omitempty"`
|
|
ValidationErrors []*ValidationError `protobuf:"bytes,9,rep,name=validation_errors,json=validationErrors,proto3" json:"validation_errors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldResponse) Reset() {
|
|
*x = VerifyIdentityFieldResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[38]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyIdentityFieldResponse) ProtoMessage() {}
|
|
|
|
func (x *VerifyIdentityFieldResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[38]
|
|
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 VerifyIdentityFieldResponse.ProtoReflect.Descriptor instead.
|
|
func (*VerifyIdentityFieldResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{38}
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldResponse) GetRequiresVerification() bool {
|
|
if x != nil {
|
|
return x.RequiresVerification
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldResponse) GetChallengeId() string {
|
|
if x != nil {
|
|
return x.ChallengeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldResponse) GetPasscodeSize() int32 {
|
|
if x != nil {
|
|
return x.PasscodeSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldResponse) GetUserIdentifier() string {
|
|
if x != nil {
|
|
return x.UserIdentifier
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldResponse) GetChannel() ChannelType {
|
|
if x != nil {
|
|
return x.Channel
|
|
}
|
|
return ChannelType_CHANNEL_TYPE_UNSPECIFIED
|
|
}
|
|
|
|
func (x *VerifyIdentityFieldResponse) GetValidationErrors() []*ValidationError {
|
|
if x != nil {
|
|
return x.ValidationErrors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdateUserInfoRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
UserToken string `protobuf:"bytes,2,opt,name=user_token,json=userToken,proto3" json:"user_token,omitempty"`
|
|
FirstNames *string `protobuf:"bytes,3,opt,name=first_names,json=firstNames,proto3,oneof" json:"first_names,omitempty"`
|
|
LastName *string `protobuf:"bytes,4,opt,name=last_name,json=lastName,proto3,oneof" json:"last_name,omitempty"`
|
|
ProfilePictureId *string `protobuf:"bytes,6,opt,name=profile_picture_id,json=profilePictureId,proto3,oneof" json:"profile_picture_id,omitempty"`
|
|
DateOfBirth *Date `protobuf:"bytes,5,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"`
|
|
Handle *string `protobuf:"bytes,7,opt,name=handle,proto3,oneof" json:"handle,omitempty"` // Optional unique handle (e.g., @username)
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateUserInfoRequest) Reset() {
|
|
*x = UpdateUserInfoRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[39]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateUserInfoRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateUserInfoRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateUserInfoRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[39]
|
|
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 UpdateUserInfoRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{39}
|
|
}
|
|
|
|
func (x *UpdateUserInfoRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserInfoRequest) GetUserToken() string {
|
|
if x != nil {
|
|
return x.UserToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserInfoRequest) GetFirstNames() string {
|
|
if x != nil && x.FirstNames != nil {
|
|
return *x.FirstNames
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserInfoRequest) GetLastName() string {
|
|
if x != nil && x.LastName != nil {
|
|
return *x.LastName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserInfoRequest) GetProfilePictureId() string {
|
|
if x != nil && x.ProfilePictureId != nil {
|
|
return *x.ProfilePictureId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserInfoRequest) GetDateOfBirth() *Date {
|
|
if x != nil {
|
|
return x.DateOfBirth
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateUserInfoRequest) GetHandle() string {
|
|
if x != nil && x.Handle != nil {
|
|
return *x.Handle
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UpdateUserInfoResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
User *User `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateUserInfoResponse) Reset() {
|
|
*x = UpdateUserInfoResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[40]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateUserInfoResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateUserInfoResponse) ProtoMessage() {}
|
|
|
|
func (x *UpdateUserInfoResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[40]
|
|
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 UpdateUserInfoResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdateUserInfoResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{40}
|
|
}
|
|
|
|
func (x *UpdateUserInfoResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UpdateUserInfoResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *UpdateUserInfoResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserInfoResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type LogoutRequest 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 *LogoutRequest) Reset() {
|
|
*x = LogoutRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[41]
|
|
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_st_peter_auth_proto_msgTypes[41]
|
|
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_st_peter_auth_proto_rawDescGZIP(), []int{41}
|
|
}
|
|
|
|
func (x *LogoutRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LogoutResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LogoutResponse) Reset() {
|
|
*x = LogoutResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[42]
|
|
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_st_peter_auth_proto_msgTypes[42]
|
|
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_st_peter_auth_proto_rawDescGZIP(), []int{42}
|
|
}
|
|
|
|
func (x *LogoutResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *LogoutResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *LogoutResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ValidationError struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ValidationError) Reset() {
|
|
*x = ValidationError{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[43]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ValidationError) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ValidationError) ProtoMessage() {}
|
|
|
|
func (x *ValidationError) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[43]
|
|
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 ValidationError.ProtoReflect.Descriptor instead.
|
|
func (*ValidationError) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{43}
|
|
}
|
|
|
|
func (x *ValidationError) GetField() string {
|
|
if x != nil {
|
|
return x.Field
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ValidationError) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Scope struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
|
ParentCode *string `protobuf:"bytes,3,opt,name=parent_code,json=parentCode,proto3,oneof" json:"parent_code,omitempty"`
|
|
IsActive bool `protobuf:"varint,4,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Scope) Reset() {
|
|
*x = Scope{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[44]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Scope) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Scope) ProtoMessage() {}
|
|
|
|
func (x *Scope) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[44]
|
|
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 Scope.ProtoReflect.Descriptor instead.
|
|
func (*Scope) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{44}
|
|
}
|
|
|
|
func (x *Scope) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Scope) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Scope) GetParentCode() string {
|
|
if x != nil && x.ParentCode != nil {
|
|
return *x.ParentCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Scope) GetIsActive() bool {
|
|
if x != nil {
|
|
return x.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
type UpdateUserPreferenceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ActorId string `protobuf:"bytes,1,opt,name=actor_id,json=actorId,proto3" json:"actor_id,omitempty"`
|
|
ActorToken string `protobuf:"bytes,2,opt,name=actor_token,json=actorToken,proto3" json:"actor_token,omitempty"`
|
|
PreferenceKey string `protobuf:"bytes,3,opt,name=preference_key,json=preferenceKey,proto3" json:"preference_key,omitempty"`
|
|
PreferenceValue string `protobuf:"bytes,4,opt,name=preference_value,json=preferenceValue,proto3" json:"preference_value,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateUserPreferenceRequest) Reset() {
|
|
*x = UpdateUserPreferenceRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[45]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateUserPreferenceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateUserPreferenceRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateUserPreferenceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[45]
|
|
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 UpdateUserPreferenceRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateUserPreferenceRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{45}
|
|
}
|
|
|
|
func (x *UpdateUserPreferenceRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserPreferenceRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserPreferenceRequest) GetPreferenceKey() string {
|
|
if x != nil {
|
|
return x.PreferenceKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserPreferenceRequest) GetPreferenceValue() string {
|
|
if x != nil {
|
|
return x.PreferenceValue
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetUserPreferenceByCodeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ActorId string `protobuf:"bytes,1,opt,name=actor_id,json=actorId,proto3" json:"actor_id,omitempty"`
|
|
ActorToken string `protobuf:"bytes,2,opt,name=actor_token,json=actorToken,proto3" json:"actor_token,omitempty"`
|
|
PreferenceCode string `protobuf:"bytes,3,opt,name=preference_code,json=preferenceCode,proto3" json:"preference_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserPreferenceByCodeRequest) Reset() {
|
|
*x = GetUserPreferenceByCodeRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[46]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserPreferenceByCodeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserPreferenceByCodeRequest) ProtoMessage() {}
|
|
|
|
func (x *GetUserPreferenceByCodeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[46]
|
|
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 GetUserPreferenceByCodeRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUserPreferenceByCodeRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{46}
|
|
}
|
|
|
|
func (x *GetUserPreferenceByCodeRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserPreferenceByCodeRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserPreferenceByCodeRequest) GetPreferenceCode() string {
|
|
if x != nil {
|
|
return x.PreferenceCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetUserPreferenceByCodeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserPreferenceByCodeResponse) Reset() {
|
|
*x = GetUserPreferenceByCodeResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[47]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserPreferenceByCodeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserPreferenceByCodeResponse) ProtoMessage() {}
|
|
|
|
func (x *GetUserPreferenceByCodeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[47]
|
|
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 GetUserPreferenceByCodeResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetUserPreferenceByCodeResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{47}
|
|
}
|
|
|
|
func (x *GetUserPreferenceByCodeResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetUserPreferenceByCodeResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetUserPreferenceByCodeResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserPreferenceByCodeResponse) GetValue() string {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ResendVerificationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserIdentifier string `protobuf:"bytes,1,opt,name=user_identifier,json=userIdentifier,proto3" json:"user_identifier,omitempty"`
|
|
VerificationCodeType VerificationCodeType `protobuf:"varint,2,opt,name=verification_code_type,json=verificationCodeType,proto3,enum=st_peter.auth.VerificationCodeType" json:"verification_code_type,omitempty"`
|
|
AppHash string `protobuf:"bytes,3,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
|
|
VerificationCodeId string `protobuf:"bytes,4,opt,name=verification_code_id,json=verificationCodeId,proto3" json:"verification_code_id,omitempty"`
|
|
DeviceInfo *DeviceInfo `protobuf:"bytes,19,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResendVerificationRequest) Reset() {
|
|
*x = ResendVerificationRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[48]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResendVerificationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResendVerificationRequest) ProtoMessage() {}
|
|
|
|
func (x *ResendVerificationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[48]
|
|
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 ResendVerificationRequest.ProtoReflect.Descriptor instead.
|
|
func (*ResendVerificationRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{48}
|
|
}
|
|
|
|
func (x *ResendVerificationRequest) GetUserIdentifier() string {
|
|
if x != nil {
|
|
return x.UserIdentifier
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResendVerificationRequest) GetVerificationCodeType() VerificationCodeType {
|
|
if x != nil {
|
|
return x.VerificationCodeType
|
|
}
|
|
return VerificationCodeType_VERIFICATION_CODE_TYPE_UNSPECIFIED
|
|
}
|
|
|
|
func (x *ResendVerificationRequest) GetAppHash() string {
|
|
if x != nil {
|
|
return x.AppHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResendVerificationRequest) GetVerificationCodeId() string {
|
|
if x != nil {
|
|
return x.VerificationCodeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResendVerificationRequest) GetDeviceInfo() *DeviceInfo {
|
|
if x != nil {
|
|
return x.DeviceInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ResendVerificationResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
VerificationCodeId string `protobuf:"bytes,4,opt,name=verification_code_id,json=verificationCodeId,proto3" json:"verification_code_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResendVerificationResponse) Reset() {
|
|
*x = ResendVerificationResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[49]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResendVerificationResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResendVerificationResponse) ProtoMessage() {}
|
|
|
|
func (x *ResendVerificationResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[49]
|
|
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 ResendVerificationResponse.ProtoReflect.Descriptor instead.
|
|
func (*ResendVerificationResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{49}
|
|
}
|
|
|
|
func (x *ResendVerificationResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ResendVerificationResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *ResendVerificationResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResendVerificationResponse) GetVerificationCodeId() string {
|
|
if x != nil {
|
|
return x.VerificationCodeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UserSession struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
DeviceInfo *DeviceInfo `protobuf:"bytes,3,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
LastActivity *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_activity,json=lastActivity,proto3" json:"last_activity,omitempty"`
|
|
IsActive bool `protobuf:"varint,7,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
|
|
IpAddress string `protobuf:"bytes,8,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
|
|
UserAgent string `protobuf:"bytes,9,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserSession) Reset() {
|
|
*x = UserSession{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[50]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserSession) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserSession) ProtoMessage() {}
|
|
|
|
func (x *UserSession) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[50]
|
|
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 UserSession.ProtoReflect.Descriptor instead.
|
|
func (*UserSession) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{50}
|
|
}
|
|
|
|
func (x *UserSession) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserSession) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserSession) GetDeviceInfo() *DeviceInfo {
|
|
if x != nil {
|
|
return x.DeviceInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserSession) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserSession) GetExpiresAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserSession) GetLastActivity() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.LastActivity
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserSession) GetIsActive() bool {
|
|
if x != nil {
|
|
return x.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UserSession) GetIpAddress() string {
|
|
if x != nil {
|
|
return x.IpAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserSession) GetUserAgent() string {
|
|
if x != nil {
|
|
return x.UserAgent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetUserSessionsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ActorId string `protobuf:"bytes,1,opt,name=actor_id,json=actorId,proto3" json:"actor_id,omitempty"`
|
|
ActorToken string `protobuf:"bytes,2,opt,name=actor_token,json=actorToken,proto3" json:"actor_token,omitempty"`
|
|
Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
|
|
Size int32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserSessionsRequest) Reset() {
|
|
*x = GetUserSessionsRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[51]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserSessionsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserSessionsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetUserSessionsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[51]
|
|
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 GetUserSessionsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUserSessionsRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{51}
|
|
}
|
|
|
|
func (x *GetUserSessionsRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserSessionsRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserSessionsRequest) GetPage() int32 {
|
|
if x != nil {
|
|
return x.Page
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetUserSessionsRequest) GetSize() int32 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserSessionsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Sessions []*UserSession `protobuf:"bytes,4,rep,name=sessions,proto3" json:"sessions,omitempty"`
|
|
Total int32 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserSessionsResponse) Reset() {
|
|
*x = GetUserSessionsResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[52]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserSessionsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserSessionsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetUserSessionsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[52]
|
|
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 GetUserSessionsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetUserSessionsResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{52}
|
|
}
|
|
|
|
func (x *GetUserSessionsResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetUserSessionsResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetUserSessionsResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserSessionsResponse) GetSessions() []*UserSession {
|
|
if x != nil {
|
|
return x.Sessions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetUserSessionsResponse) GetTotal() int32 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ClearUserSessionsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ActorId string `protobuf:"bytes,1,opt,name=actor_id,json=actorId,proto3" json:"actor_id,omitempty"`
|
|
ActorToken string `protobuf:"bytes,2,opt,name=actor_token,json=actorToken,proto3" json:"actor_token,omitempty"`
|
|
SessionIds []string `protobuf:"bytes,3,rep,name=session_ids,json=sessionIds,proto3" json:"session_ids,omitempty"` // If empty, clears all sessions except current
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ClearUserSessionsRequest) Reset() {
|
|
*x = ClearUserSessionsRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[53]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ClearUserSessionsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ClearUserSessionsRequest) ProtoMessage() {}
|
|
|
|
func (x *ClearUserSessionsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[53]
|
|
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 ClearUserSessionsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ClearUserSessionsRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{53}
|
|
}
|
|
|
|
func (x *ClearUserSessionsRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ClearUserSessionsRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ClearUserSessionsRequest) GetSessionIds() []string {
|
|
if x != nil {
|
|
return x.SessionIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ClearUserSessionsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
ClearedCount int32 `protobuf:"varint,4,opt,name=cleared_count,json=clearedCount,proto3" json:"cleared_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ClearUserSessionsResponse) Reset() {
|
|
*x = ClearUserSessionsResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[54]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ClearUserSessionsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ClearUserSessionsResponse) ProtoMessage() {}
|
|
|
|
func (x *ClearUserSessionsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[54]
|
|
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 ClearUserSessionsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ClearUserSessionsResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{54}
|
|
}
|
|
|
|
func (x *ClearUserSessionsResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ClearUserSessionsResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *ClearUserSessionsResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ClearUserSessionsResponse) GetClearedCount() int32 {
|
|
if x != nil {
|
|
return x.ClearedCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// Metrics
|
|
type GetMetricsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BearerToken string `protobuf:"bytes,1,opt,name=bearer_token,json=bearerToken,proto3" json:"bearer_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetMetricsRequest) Reset() {
|
|
*x = GetMetricsRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[55]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetMetricsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetMetricsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetMetricsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[55]
|
|
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 GetMetricsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetMetricsRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{55}
|
|
}
|
|
|
|
func (x *GetMetricsRequest) GetBearerToken() string {
|
|
if x != nil {
|
|
return x.BearerToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetMetricsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Metrics string `protobuf:"bytes,4,opt,name=metrics,proto3" json:"metrics,omitempty"` // Prometheus text format
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetMetricsResponse) Reset() {
|
|
*x = GetMetricsResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[56]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetMetricsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetMetricsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetMetricsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[56]
|
|
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 GetMetricsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetMetricsResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{56}
|
|
}
|
|
|
|
func (x *GetMetricsResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetMetricsResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetMetricsResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetMetricsResponse) GetMetrics() string {
|
|
if x != nil {
|
|
return x.Metrics
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// API Key messages
|
|
type CreateApiKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // existing session token for auth
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Scopes []string `protobuf:"bytes,3,rep,name=scopes,proto3" json:"scopes,omitempty"`
|
|
ExpiresAt int64 `protobuf:"varint,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // 0 = never
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateApiKeyRequest) Reset() {
|
|
*x = CreateApiKeyRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[57]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateApiKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateApiKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateApiKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[57]
|
|
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 CreateApiKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateApiKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{57}
|
|
}
|
|
|
|
func (x *CreateApiKeyRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateApiKeyRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateApiKeyRequest) GetScopes() []string {
|
|
if x != nil {
|
|
return x.Scopes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateApiKeyRequest) GetExpiresAt() int64 {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateApiKeyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
ApiKey string `protobuf:"bytes,4,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"` // full key, shown ONCE
|
|
KeyId string `protobuf:"bytes,5,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
|
|
KeyPrefix string `protobuf:"bytes,6,opt,name=key_prefix,json=keyPrefix,proto3" json:"key_prefix,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateApiKeyResponse) Reset() {
|
|
*x = CreateApiKeyResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[58]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateApiKeyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateApiKeyResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateApiKeyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[58]
|
|
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 CreateApiKeyResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateApiKeyResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{58}
|
|
}
|
|
|
|
func (x *CreateApiKeyResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CreateApiKeyResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *CreateApiKeyResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateApiKeyResponse) GetApiKey() string {
|
|
if x != nil {
|
|
return x.ApiKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateApiKeyResponse) GetKeyId() string {
|
|
if x != nil {
|
|
return x.KeyId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateApiKeyResponse) GetKeyPrefix() string {
|
|
if x != nil {
|
|
return x.KeyPrefix
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListApiKeysRequest 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 *ListApiKeysRequest) Reset() {
|
|
*x = ListApiKeysRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[59]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListApiKeysRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListApiKeysRequest) ProtoMessage() {}
|
|
|
|
func (x *ListApiKeysRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[59]
|
|
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 ListApiKeysRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListApiKeysRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{59}
|
|
}
|
|
|
|
func (x *ListApiKeysRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListApiKeysResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Keys []*ApiKeyInfo `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListApiKeysResponse) Reset() {
|
|
*x = ListApiKeysResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[60]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListApiKeysResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListApiKeysResponse) ProtoMessage() {}
|
|
|
|
func (x *ListApiKeysResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[60]
|
|
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 ListApiKeysResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListApiKeysResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{60}
|
|
}
|
|
|
|
func (x *ListApiKeysResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ListApiKeysResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *ListApiKeysResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListApiKeysResponse) GetKeys() []*ApiKeyInfo {
|
|
if x != nil {
|
|
return x.Keys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ApiKeyInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
KeyPrefix string `protobuf:"bytes,3,opt,name=key_prefix,json=keyPrefix,proto3" json:"key_prefix,omitempty"`
|
|
Scopes []string `protobuf:"bytes,4,rep,name=scopes,proto3" json:"scopes,omitempty"`
|
|
LastUsedAt int64 `protobuf:"varint,5,opt,name=last_used_at,json=lastUsedAt,proto3" json:"last_used_at,omitempty"`
|
|
ExpiresAt int64 `protobuf:"varint,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
IsActive bool `protobuf:"varint,8,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ApiKeyInfo) Reset() {
|
|
*x = ApiKeyInfo{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[61]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ApiKeyInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ApiKeyInfo) ProtoMessage() {}
|
|
|
|
func (x *ApiKeyInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[61]
|
|
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 ApiKeyInfo.ProtoReflect.Descriptor instead.
|
|
func (*ApiKeyInfo) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{61}
|
|
}
|
|
|
|
func (x *ApiKeyInfo) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ApiKeyInfo) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ApiKeyInfo) GetKeyPrefix() string {
|
|
if x != nil {
|
|
return x.KeyPrefix
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ApiKeyInfo) GetScopes() []string {
|
|
if x != nil {
|
|
return x.Scopes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ApiKeyInfo) GetLastUsedAt() int64 {
|
|
if x != nil {
|
|
return x.LastUsedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ApiKeyInfo) GetExpiresAt() int64 {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ApiKeyInfo) GetCreatedAt() int64 {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ApiKeyInfo) GetIsActive() bool {
|
|
if x != nil {
|
|
return x.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
type RevokeApiKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
KeyId string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RevokeApiKeyRequest) Reset() {
|
|
*x = RevokeApiKeyRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[62]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RevokeApiKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RevokeApiKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *RevokeApiKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[62]
|
|
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 RevokeApiKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*RevokeApiKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{62}
|
|
}
|
|
|
|
func (x *RevokeApiKeyRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RevokeApiKeyRequest) GetKeyId() string {
|
|
if x != nil {
|
|
return x.KeyId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type VerifyApiKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ApiKey string `protobuf:"bytes,1,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyApiKeyRequest) Reset() {
|
|
*x = VerifyApiKeyRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[63]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyApiKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyApiKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *VerifyApiKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[63]
|
|
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 VerifyApiKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*VerifyApiKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{63}
|
|
}
|
|
|
|
func (x *VerifyApiKeyRequest) GetApiKey() string {
|
|
if x != nil {
|
|
return x.ApiKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Password policy
|
|
type GetPasswordPolicyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPasswordPolicyRequest) Reset() {
|
|
*x = GetPasswordPolicyRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[64]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPasswordPolicyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPasswordPolicyRequest) ProtoMessage() {}
|
|
|
|
func (x *GetPasswordPolicyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[64]
|
|
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 GetPasswordPolicyRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetPasswordPolicyRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{64}
|
|
}
|
|
|
|
type GetPasswordPolicyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
MinLength uint32 `protobuf:"varint,4,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"`
|
|
RequiresUppercase bool `protobuf:"varint,5,opt,name=requires_uppercase,json=requiresUppercase,proto3" json:"requires_uppercase,omitempty"`
|
|
RequiresSpecialCharacter bool `protobuf:"varint,6,opt,name=requires_special_character,json=requiresSpecialCharacter,proto3" json:"requires_special_character,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetPasswordPolicyResponse) Reset() {
|
|
*x = GetPasswordPolicyResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[65]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetPasswordPolicyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPasswordPolicyResponse) ProtoMessage() {}
|
|
|
|
func (x *GetPasswordPolicyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[65]
|
|
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 GetPasswordPolicyResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetPasswordPolicyResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{65}
|
|
}
|
|
|
|
func (x *GetPasswordPolicyResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetPasswordPolicyResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetPasswordPolicyResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetPasswordPolicyResponse) GetMinLength() uint32 {
|
|
if x != nil {
|
|
return x.MinLength
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetPasswordPolicyResponse) GetRequiresUppercase() bool {
|
|
if x != nil {
|
|
return x.RequiresUppercase
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetPasswordPolicyResponse) GetRequiresSpecialCharacter() bool {
|
|
if x != nil {
|
|
return x.RequiresSpecialCharacter
|
|
}
|
|
return false
|
|
}
|
|
|
|
// Lookup user by exact identifier (email, phone number, or handle)
|
|
type LookupUserRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
UserToken string `protobuf:"bytes,2,opt,name=user_token,json=userToken,proto3" json:"user_token,omitempty"`
|
|
Identifier string `protobuf:"bytes,3,opt,name=identifier,proto3" json:"identifier,omitempty"` // email, phone number, or handle
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LookupUserRequest) Reset() {
|
|
*x = LookupUserRequest{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[66]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LookupUserRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LookupUserRequest) ProtoMessage() {}
|
|
|
|
func (x *LookupUserRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[66]
|
|
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 LookupUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*LookupUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{66}
|
|
}
|
|
|
|
func (x *LookupUserRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LookupUserRequest) GetUserToken() string {
|
|
if x != nil {
|
|
return x.UserToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LookupUserRequest) GetIdentifier() string {
|
|
if x != nil {
|
|
return x.Identifier
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LookupUserResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode ResultCode `protobuf:"varint,2,opt,name=result_code,json=resultCode,proto3,enum=st_peter.auth.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
User *User `protobuf:"bytes,4,opt,name=user,proto3,oneof" json:"user,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LookupUserResponse) Reset() {
|
|
*x = LookupUserResponse{}
|
|
mi := &file_st_peter_auth_proto_msgTypes[67]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LookupUserResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LookupUserResponse) ProtoMessage() {}
|
|
|
|
func (x *LookupUserResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_auth_proto_msgTypes[67]
|
|
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 LookupUserResponse.ProtoReflect.Descriptor instead.
|
|
func (*LookupUserResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_auth_proto_rawDescGZIP(), []int{67}
|
|
}
|
|
|
|
func (x *LookupUserResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *LookupUserResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *LookupUserResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LookupUserResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_st_peter_auth_proto protoreflect.FileDescriptor
|
|
|
|
const file_st_peter_auth_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x13st-peter-auth.proto\x12\rst_peter.auth\x1a\x1fgoogle/protobuf/timestamp.proto\"B\n" +
|
|
"\x04Date\x12\x12\n" +
|
|
"\x04year\x18\x01 \x01(\x05R\x04year\x12\x14\n" +
|
|
"\x05month\x18\x02 \x01(\rR\x05month\x12\x10\n" +
|
|
"\x03day\x18\x03 \x01(\rR\x03day\"\xd3\x05\n" +
|
|
"\x04User\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
|
|
"\x05email\x18\x02 \x01(\tR\x05email\x12\x14\n" +
|
|
"\x05phone\x18\x03 \x01(\tR\x05phone\x12\x1f\n" +
|
|
"\vfirst_names\x18\x04 \x01(\tR\n" +
|
|
"firstNames\x12\x1b\n" +
|
|
"\tlast_name\x18\x05 \x01(\tR\blastName\x12.\n" +
|
|
"\x13profile_picture_url\x18\x06 \x01(\tR\x11profilePictureUrl\x12\x1b\n" +
|
|
"\x06handle\x18\a \x01(\tH\x00R\x06handle\x88\x01\x01\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\n" +
|
|
" \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
|
|
"\n" +
|
|
"updated_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x129\n" +
|
|
"\n" +
|
|
"deleted_at\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\tdeletedAt\x129\n" +
|
|
"\n" +
|
|
"last_login\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\tlastLogin\x12\x1b\n" +
|
|
"\tis_active\x18\x14 \x01(\bR\bisActive\x12*\n" +
|
|
"\x11is_email_verified\x18\x15 \x01(\bR\x0fisEmailVerified\x12*\n" +
|
|
"\x11is_phone_verified\x18\x16 \x01(\bR\x0fisPhoneVerified\x127\n" +
|
|
"\rdate_of_birth\x18\x17 \x01(\v2\x13.st_peter.auth.DateR\vdateOfBirth\x12\x18\n" +
|
|
"\aversion\x18\x18 \x01(\x03R\aversion\x12E\n" +
|
|
"\x0fsocial_accounts\x18\x1e \x03(\v2\x1c.st_peter.auth.SocialAccountR\x0esocialAccountsB\t\n" +
|
|
"\a_handle\"\xb7\x02\n" +
|
|
"\x0eUserPreference\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
|
|
"\auser_id\x18\x02 \x01(\tR\x06userId\x12'\n" +
|
|
"\x0fpreference_code\x18\x03 \x01(\tR\x0epreferenceCode\x122\n" +
|
|
"\x15preference_value_type\x18\x04 \x01(\tR\x13preferenceValueType\x12)\n" +
|
|
"\x10preference_value\x18\x05 \x01(\tR\x0fpreferenceValue\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\n" +
|
|
" \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
|
|
"\n" +
|
|
"updated_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\xc2\x01\n" +
|
|
"\x04Role\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04code\x18\x02 \x01(\tR\x04code\x12 \n" +
|
|
"\vdescription\x18\x03 \x01(\tR\vdescription\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
|
|
"\n" +
|
|
"updated_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\xb4\x02\n" +
|
|
"\rSocialAccount\x12\x1a\n" +
|
|
"\bprovider\x18\x01 \x01(\tR\bprovider\x12(\n" +
|
|
"\x10provider_user_id\x18\x02 \x01(\tR\x0eproviderUserId\x12!\n" +
|
|
"\faccess_token\x18\x03 \x01(\tR\vaccessToken\x129\n" +
|
|
"\n" +
|
|
"expires_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x12\x14\n" +
|
|
"\x05email\x18\x05 \x01(\tR\x05email\x12\x12\n" +
|
|
"\x04name\x18\x06 \x01(\tR\x04name\x12.\n" +
|
|
"\x13profile_picture_url\x18\a \x01(\tR\x11profilePictureUrl\x12%\n" +
|
|
"\x0eemail_verified\x18\b \x01(\bR\remailVerified\"\xde\x01\n" +
|
|
"\x12SocialLoginRequest\x128\n" +
|
|
"\bprovider\x18\x01 \x01(\x0e2\x1c.st_peter.auth.OAuthProviderR\bprovider\x12\x19\n" +
|
|
"\bid_token\x18\x02 \x01(\tR\aidToken\x12!\n" +
|
|
"\faccess_token\x18\x03 \x01(\tR\vaccessToken\x12:\n" +
|
|
"\vdevice_info\x18\x04 \x01(\v2\x19.st_peter.auth.DeviceInfoR\n" +
|
|
"deviceInfo\x12\x14\n" +
|
|
"\x05nonce\x18\x05 \x01(\tR\x05nonce\"\xeb\x02\n" +
|
|
"\x13SocialLoginResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12O\n" +
|
|
"\x12authenticated_user\x18\x04 \x01(\v2 .st_peter.auth.AuthenticatedUserR\x11authenticatedUser\x12\x1e\n" +
|
|
"\vis_new_user\x18\x05 \x01(\bR\tisNewUser\x12&\n" +
|
|
"\x0fwas_auto_linked\x18\x06 \x01(\bR\rwasAutoLinked\x12K\n" +
|
|
"\x11validation_errors\x18\a \x03(\v2\x1e.st_peter.auth.ValidationErrorR\x10validationErrors\"\x89\x01\n" +
|
|
"\x14InitiateOAuthRequest\x128\n" +
|
|
"\bprovider\x18\x01 \x01(\x0e2\x1c.st_peter.auth.OAuthProviderR\bprovider\x12!\n" +
|
|
"\fredirect_uri\x18\x02 \x01(\tR\vredirectUri\x12\x14\n" +
|
|
"\x05state\x18\x03 \x01(\tR\x05state\"\xca\x01\n" +
|
|
"\x15InitiateOAuthResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12+\n" +
|
|
"\x11authorization_url\x18\x04 \x01(\tR\x10authorizationUrl\x12\x14\n" +
|
|
"\x05state\x18\x05 \x01(\tR\x05state\"\xb6\x01\n" +
|
|
"\x14OAuthCallbackRequest\x128\n" +
|
|
"\bprovider\x18\x01 \x01(\x0e2\x1c.st_peter.auth.OAuthProviderR\bprovider\x12\x12\n" +
|
|
"\x04code\x18\x02 \x01(\tR\x04code\x12\x14\n" +
|
|
"\x05state\x18\x03 \x01(\tR\x05state\x12:\n" +
|
|
"\vdevice_info\x18\x04 \x01(\v2\x19.st_peter.auth.DeviceInfoR\n" +
|
|
"deviceInfo\"\xe4\x01\n" +
|
|
"\x18LinkSocialAccountRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x128\n" +
|
|
"\bprovider\x18\x03 \x01(\x0e2\x1c.st_peter.auth.OAuthProviderR\bprovider\x12\x19\n" +
|
|
"\bid_token\x18\x04 \x01(\tR\aidToken\x12!\n" +
|
|
"\faccess_token\x18\x05 \x01(\tR\vaccessToken\x12\x14\n" +
|
|
"\x05nonce\x18\x06 \x01(\tR\x05nonce\"\x92\x01\n" +
|
|
"\x1aUnlinkSocialAccountRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x128\n" +
|
|
"\bprovider\x18\x03 \x01(\x0e2\x1c.st_peter.auth.OAuthProviderR\bprovider\"V\n" +
|
|
"\x18GetLinkedAccountsRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\"\xc5\x01\n" +
|
|
"\x19GetLinkedAccountsResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x128\n" +
|
|
"\baccounts\x18\x04 \x03(\v2\x1c.st_peter.auth.SocialAccountR\baccounts\"\xef\x01\n" +
|
|
"\x13RegisterUserRequest\x12'\n" +
|
|
"\x0fuser_identifier\x18\x01 \x01(\tR\x0euserIdentifier\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x1f\n" +
|
|
"\vfirst_names\x18\x04 \x01(\tR\n" +
|
|
"firstNames\x12\x1b\n" +
|
|
"\tlast_name\x18\x05 \x01(\tR\blastName\x12\x19\n" +
|
|
"\bapp_hash\x18\x06 \x01(\tR\aappHash\x12:\n" +
|
|
"\vdevice_info\x18\a \x01(\v2\x19.st_peter.auth.DeviceInfoR\n" +
|
|
"deviceInfo\"\xfc\x01\n" +
|
|
"\x14RegisterUserResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12'\n" +
|
|
"\x0fregistration_id\x18\x04 \x01(\tR\x0eregistrationId\x12K\n" +
|
|
"\x11validation_errors\x18\x05 \x03(\v2\x1e.st_peter.auth.ValidationErrorR\x10validationErrors\"\xbf\x01\n" +
|
|
"\x19VerifyRegisterUserRequest\x12'\n" +
|
|
"\x0fuser_identifier\x18\x01 \x01(\tR\x0euserIdentifier\x12'\n" +
|
|
"\x0fregistration_id\x18\x02 \x01(\tR\x0eregistrationId\x12\x14\n" +
|
|
"\x05token\x18\x03 \x01(\tR\x05token\x12:\n" +
|
|
"\vdevice_info\x18\x04 \x01(\v2\x19.st_peter.auth.DeviceInfoR\n" +
|
|
"deviceInfo\"\xa7\x01\n" +
|
|
"\fUserResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12'\n" +
|
|
"\x04user\x18\x04 \x01(\v2\x13.st_peter.auth.UserR\x04user\"\x90\x02\n" +
|
|
"\n" +
|
|
"DeviceInfo\x12)\n" +
|
|
"\x10application_name\x18\x01 \x01(\tR\x0fapplicationName\x12/\n" +
|
|
"\x13application_version\x18\x02 \x01(\tR\x12applicationVersion\x12\x1f\n" +
|
|
"\vdevice_name\x18\x03 \x01(\tR\n" +
|
|
"deviceName\x12\x1f\n" +
|
|
"\vdevice_type\x18\x04 \x01(\tR\n" +
|
|
"deviceType\x12\x1b\n" +
|
|
"\tdevice_os\x18\x05 \x01(\tR\bdeviceOs\x12*\n" +
|
|
"\x11device_os_version\x18\x06 \x01(\tR\x0fdeviceOsVersion\x12\x1b\n" +
|
|
"\tdevice_id\x18\a \x01(\tR\bdeviceId\"\xaa\x01\n" +
|
|
"\fLoginRequest\x12'\n" +
|
|
"\x0fuser_identifier\x18\x01 \x01(\tR\x0euserIdentifier\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x19\n" +
|
|
"\bapp_hash\x18\x03 \x01(\tR\aappHash\x12:\n" +
|
|
"\vdevice_info\x18\x04 \x01(\v2\x19.st_peter.auth.DeviceInfoR\n" +
|
|
"deviceInfo\"\xab\x02\n" +
|
|
"\x16AuthenticationResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12,\n" +
|
|
"\x12pass_code_required\x18\x02 \x01(\bR\x10passCodeRequired\x12\"\n" +
|
|
"\rtwo_factor_id\x18\x03 \x01(\tR\vtwoFactorId\x12:\n" +
|
|
"\vresult_code\x18\b \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\t \x01(\tR\amessage\x12O\n" +
|
|
"\x12authenticated_user\x18\n" +
|
|
" \x01(\v2 .st_peter.auth.AuthenticatedUserR\x11authenticatedUser\"\xb6\x02\n" +
|
|
"\x11AuthenticatedUser\x12'\n" +
|
|
"\x04user\x18\x01 \x01(\v2\x13.st_peter.auth.UserR\x04user\x12\x14\n" +
|
|
"\x05token\x18\x02 \x01(\tR\x05token\x12\x1d\n" +
|
|
"\n" +
|
|
"session_id\x18\x03 \x01(\tR\tsessionId\x129\n" +
|
|
"\n" +
|
|
"expires_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x12H\n" +
|
|
"\x10user_preferences\x18\x05 \x03(\v2\x1d.st_peter.auth.UserPreferenceR\x0fuserPreferences\x12>\n" +
|
|
"\n" +
|
|
"user_roles\x18\v \x03(\v2\x1f.st_peter.auth.AssignedUserRoleR\tuserRoles\"\xad\x01\n" +
|
|
"\x10AssignedUserRole\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
|
|
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x17\n" +
|
|
"\arole_id\x18\x03 \x01(\tR\x06roleId\x12\x1b\n" +
|
|
"\trole_name\x18\x04 \x01(\tR\broleName\x12\x1d\n" +
|
|
"\n" +
|
|
"scope_code\x18\x05 \x01(\tR\tscopeCode\x12\x1b\n" +
|
|
"\ttarget_id\x18\x06 \x01(\tR\btargetId\"\x98\x01\n" +
|
|
"\x12VerifyTokenRequest\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\x12,\n" +
|
|
"\x12include_user_roles\x18\x02 \x01(\bR\x10includeUserRoles\x12\x1f\n" +
|
|
"\vrole_scopes\x18\x03 \x03(\tR\n" +
|
|
"roleScopes\x12\x1d\n" +
|
|
"\n" +
|
|
"role_names\x18\x04 \x03(\tR\troleNames\"3\n" +
|
|
"\x1bVerifyAuthClaimTokenRequest\x12\x14\n" +
|
|
"\x05claim\x18\x02 \x01(\tR\x05claim\"\xcb\x02\n" +
|
|
"\x19InitiateTwoFactorResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12\"\n" +
|
|
"\rtwo_factor_id\x18\x04 \x01(\tR\vtwoFactorId\x124\n" +
|
|
"\achannel\x18\x05 \x01(\x0e2\x1a.st_peter.auth.ChannelTypeR\achannel\x12\x17\n" +
|
|
"\auser_id\x18\a \x01(\tR\x06userId\x12K\n" +
|
|
"\x11validation_errors\x18\x06 \x03(\v2\x1e.st_peter.auth.ValidationErrorR\x10validationErrors\"\xd6\x01\n" +
|
|
"\x17VerifyTwoFactorResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12K\n" +
|
|
"\x11validation_errors\x18\x04 \x03(\v2\x1e.st_peter.auth.ValidationErrorR\x10validationErrors\"\x93\x02\n" +
|
|
"\x18InitiateTwoFactorRequest\x12\x1c\n" +
|
|
"\auser_id\x18\x01 \x01(\tH\x00R\x06userId\x88\x01\x01\x12,\n" +
|
|
"\x0fuser_identifier\x18\x05 \x01(\tH\x01R\x0euserIdentifier\x88\x01\x01\x124\n" +
|
|
"\achannel\x18\x02 \x01(\x0e2\x1a.st_peter.auth.ChannelTypeR\achannel\x12\x19\n" +
|
|
"\bapp_hash\x18\x03 \x01(\tR\aappHash\x12:\n" +
|
|
"\vdevice_info\x18\x04 \x01(\v2\x19.st_peter.auth.DeviceInfoR\n" +
|
|
"deviceInfoB\n" +
|
|
"\n" +
|
|
"\b_user_idB\x12\n" +
|
|
"\x10_user_identifier\"\x8c\x01\n" +
|
|
"\x16VerifyTwoFactorRequest\x12\"\n" +
|
|
"\rtwo_factor_id\x18\x01 \x01(\tR\vtwoFactorId\x12\x12\n" +
|
|
"\x04code\x18\x02 \x01(\tR\x04code\x12:\n" +
|
|
"\vdevice_info\x18\x03 \x01(\v2\x19.st_peter.auth.DeviceInfoR\n" +
|
|
"deviceInfo\"\xc1\x01\n" +
|
|
"\x1cInitiatePasswordResetRequest\x12'\n" +
|
|
"\x0fuser_identifier\x18\x01 \x01(\tR\x0euserIdentifier\x12\x19\n" +
|
|
"\bapp_hash\x18\x02 \x01(\tR\aappHash\x12:\n" +
|
|
"\vdevice_info\x18\x04 \x01(\v2\x19.st_peter.auth.DeviceInfoR\n" +
|
|
"deviceInfo\x12!\n" +
|
|
"\fnew_password\x18\x05 \x01(\tR\vnewPassword\"\x83\x01\n" +
|
|
"\x11OperationResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\"\x82\x01\n" +
|
|
"\x1fVerifyPasswordResetTokenRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12*\n" +
|
|
"\x11password_reset_id\x18\x02 \x01(\tR\x0fpasswordResetId\x12\x1a\n" +
|
|
"\bpasscode\x18\x03 \x01(\tR\bpasscode\"\xb8\x01\n" +
|
|
"\x1aPasswordResetTokenResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12*\n" +
|
|
"\x11password_reset_id\x18\x04 \x01(\tR\x0fpasswordResetId\"\xb3\x01\n" +
|
|
"\x14ResetPasswordRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12*\n" +
|
|
"\x11password_reset_id\x18\x02 \x01(\tR\x0fpasswordResetId\x12\x1a\n" +
|
|
"\bpasscode\x18\x03 \x01(\tR\bpasscode\x12:\n" +
|
|
"\vdevice_info\x18\x04 \x01(\v2\x19.st_peter.auth.DeviceInfoR\n" +
|
|
"deviceInfo\"\xbb\x02\n" +
|
|
"\x1aChangeIdentityFieldRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
|
|
"\n" +
|
|
"user_token\x18\x02 \x01(\tR\tuserToken\x124\n" +
|
|
"\achannel\x18\x03 \x01(\x0e2\x1a.st_peter.auth.ChannelTypeR\achannel\x12\x1b\n" +
|
|
"\tnew_value\x18\x04 \x01(\tR\bnewValue\x12;\n" +
|
|
"\n" +
|
|
"field_type\x18\x05 \x01(\x0e2\x1c.st_peter.auth.IdentityFieldR\tfieldType\x12\x19\n" +
|
|
"\bapp_hash\x18\x06 \x01(\tR\aappHash\x12:\n" +
|
|
"\vdevice_info\x18\a \x01(\v2\x19.st_peter.auth.DeviceInfoR\n" +
|
|
"deviceInfo\"\x81\x03\n" +
|
|
"\x1bChangeIdentityFieldResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12!\n" +
|
|
"\fchallenge_id\x18\x04 \x01(\tR\vchallengeId\x12#\n" +
|
|
"\rpasscode_size\x18\x05 \x01(\x05R\fpasscodeSize\x12'\n" +
|
|
"\x0fuser_identifier\x18\x06 \x01(\tR\x0euserIdentifier\x124\n" +
|
|
"\achannel\x18\a \x01(\x0e2\x1a.st_peter.auth.ChannelTypeR\achannel\x12K\n" +
|
|
"\x11validation_errors\x18\b \x03(\v2\x1e.st_peter.auth.ValidationErrorR\x10validationErrors\"\xfb\x01\n" +
|
|
"\x1aVerifyIdentityFieldRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
|
|
"\n" +
|
|
"user_token\x18\x02 \x01(\tR\tuserToken\x12!\n" +
|
|
"\fchallenge_id\x18\x04 \x01(\tR\vchallengeId\x12+\n" +
|
|
"\x11verification_code\x18\x05 \x01(\tR\x10verificationCode\x12\x19\n" +
|
|
"\bapp_hash\x18\x06 \x01(\tR\aappHash\x12:\n" +
|
|
"\vdevice_info\x18\a \x01(\v2\x19.st_peter.auth.DeviceInfoR\n" +
|
|
"deviceInfo\"\xce\x01\n" +
|
|
"\x1aResendIdentityFieldRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
|
|
"\n" +
|
|
"user_token\x18\x02 \x01(\tR\tuserToken\x12!\n" +
|
|
"\fchallenge_id\x18\x04 \x01(\tR\vchallengeId\x12\x19\n" +
|
|
"\bapp_hash\x18\x06 \x01(\tR\aappHash\x12:\n" +
|
|
"\vdevice_info\x18\a \x01(\v2\x19.st_peter.auth.DeviceInfoR\n" +
|
|
"deviceInfo\"\xb6\x03\n" +
|
|
"\x1bVerifyIdentityFieldResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x123\n" +
|
|
"\x15requires_verification\x18\b \x01(\bR\x14requiresVerification\x12!\n" +
|
|
"\fchallenge_id\x18\x04 \x01(\tR\vchallengeId\x12#\n" +
|
|
"\rpasscode_size\x18\x05 \x01(\x05R\fpasscodeSize\x12'\n" +
|
|
"\x0fuser_identifier\x18\x06 \x01(\tR\x0euserIdentifier\x124\n" +
|
|
"\achannel\x18\a \x01(\x0e2\x1a.st_peter.auth.ChannelTypeR\achannel\x12K\n" +
|
|
"\x11validation_errors\x18\t \x03(\v2\x1e.st_peter.auth.ValidationErrorR\x10validationErrors\"\xe0\x02\n" +
|
|
"\x15UpdateUserInfoRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
|
|
"\n" +
|
|
"user_token\x18\x02 \x01(\tR\tuserToken\x12$\n" +
|
|
"\vfirst_names\x18\x03 \x01(\tH\x00R\n" +
|
|
"firstNames\x88\x01\x01\x12 \n" +
|
|
"\tlast_name\x18\x04 \x01(\tH\x01R\blastName\x88\x01\x01\x121\n" +
|
|
"\x12profile_picture_id\x18\x06 \x01(\tH\x02R\x10profilePictureId\x88\x01\x01\x127\n" +
|
|
"\rdate_of_birth\x18\x05 \x01(\v2\x13.st_peter.auth.DateR\vdateOfBirth\x12\x1b\n" +
|
|
"\x06handle\x18\a \x01(\tH\x03R\x06handle\x88\x01\x01B\x0e\n" +
|
|
"\f_first_namesB\f\n" +
|
|
"\n" +
|
|
"_last_nameB\x15\n" +
|
|
"\x13_profile_picture_idB\t\n" +
|
|
"\a_handle\"\xb1\x01\n" +
|
|
"\x16UpdateUserInfoResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12'\n" +
|
|
"\x04user\x18\x04 \x01(\v2\x13.st_peter.auth.UserR\x04user\"%\n" +
|
|
"\rLogoutRequest\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\"\x80\x01\n" +
|
|
"\x0eLogoutResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\"A\n" +
|
|
"\x0fValidationError\x12\x14\n" +
|
|
"\x05field\x18\x01 \x01(\tR\x05field\x12\x18\n" +
|
|
"\amessage\x18\x02 \x01(\tR\amessage\"\x90\x01\n" +
|
|
"\x05Scope\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\tR\x04code\x12 \n" +
|
|
"\vdescription\x18\x02 \x01(\tR\vdescription\x12$\n" +
|
|
"\vparent_code\x18\x03 \x01(\tH\x00R\n" +
|
|
"parentCode\x88\x01\x01\x12\x1b\n" +
|
|
"\tis_active\x18\x04 \x01(\bR\bisActiveB\x0e\n" +
|
|
"\f_parent_code\"\xab\x01\n" +
|
|
"\x1bUpdateUserPreferenceRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12%\n" +
|
|
"\x0epreference_key\x18\x03 \x01(\tR\rpreferenceKey\x12)\n" +
|
|
"\x10preference_value\x18\x04 \x01(\tR\x0fpreferenceValue\"\x85\x01\n" +
|
|
"\x1eGetUserPreferenceByCodeRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12'\n" +
|
|
"\x0fpreference_code\x18\x03 \x01(\tR\x0epreferenceCode\"\xa7\x01\n" +
|
|
"\x1fGetUserPreferenceByCodeResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12\x14\n" +
|
|
"\x05value\x18\x04 \x01(\tR\x05value\"\xa8\x02\n" +
|
|
"\x19ResendVerificationRequest\x12'\n" +
|
|
"\x0fuser_identifier\x18\x01 \x01(\tR\x0euserIdentifier\x12Y\n" +
|
|
"\x16verification_code_type\x18\x02 \x01(\x0e2#.st_peter.auth.VerificationCodeTypeR\x14verificationCodeType\x12\x19\n" +
|
|
"\bapp_hash\x18\x03 \x01(\tR\aappHash\x120\n" +
|
|
"\x14verification_code_id\x18\x04 \x01(\tR\x12verificationCodeId\x12:\n" +
|
|
"\vdevice_info\x18\x13 \x01(\v2\x19.st_peter.auth.DeviceInfoR\n" +
|
|
"deviceInfo\"\xbe\x01\n" +
|
|
"\x1aResendVerificationResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x120\n" +
|
|
"\x14verification_code_id\x18\x04 \x01(\tR\x12verificationCodeId\"\x84\x03\n" +
|
|
"\vUserSession\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
|
|
"\auser_id\x18\x02 \x01(\tR\x06userId\x12:\n" +
|
|
"\vdevice_info\x18\x03 \x01(\v2\x19.st_peter.auth.DeviceInfoR\n" +
|
|
"deviceInfo\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
|
|
"\n" +
|
|
"expires_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x12?\n" +
|
|
"\rlast_activity\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\flastActivity\x12\x1b\n" +
|
|
"\tis_active\x18\a \x01(\bR\bisActive\x12\x1d\n" +
|
|
"\n" +
|
|
"ip_address\x18\b \x01(\tR\tipAddress\x12\x1d\n" +
|
|
"\n" +
|
|
"user_agent\x18\t \x01(\tR\tuserAgent\"|\n" +
|
|
"\x16GetUserSessionsRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x12\n" +
|
|
"\x04page\x18\x03 \x01(\x05R\x04page\x12\x12\n" +
|
|
"\x04size\x18\x04 \x01(\x05R\x04size\"\xd7\x01\n" +
|
|
"\x17GetUserSessionsResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x126\n" +
|
|
"\bsessions\x18\x04 \x03(\v2\x1a.st_peter.auth.UserSessionR\bsessions\x12\x14\n" +
|
|
"\x05total\x18\x05 \x01(\x05R\x05total\"w\n" +
|
|
"\x18ClearUserSessionsRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x1f\n" +
|
|
"\vsession_ids\x18\x03 \x03(\tR\n" +
|
|
"sessionIds\"\xb0\x01\n" +
|
|
"\x19ClearUserSessionsResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12#\n" +
|
|
"\rcleared_count\x18\x04 \x01(\x05R\fclearedCount\"6\n" +
|
|
"\x11GetMetricsRequest\x12!\n" +
|
|
"\fbearer_token\x18\x01 \x01(\tR\vbearerToken\"\x9e\x01\n" +
|
|
"\x12GetMetricsResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12\x18\n" +
|
|
"\ametrics\x18\x04 \x01(\tR\ametrics\"v\n" +
|
|
"\x13CreateApiKeyRequest\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n" +
|
|
"\x06scopes\x18\x03 \x03(\tR\x06scopes\x12\x1d\n" +
|
|
"\n" +
|
|
"expires_at\x18\x04 \x01(\x03R\texpiresAt\"\xd5\x01\n" +
|
|
"\x14CreateApiKeyResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12\x17\n" +
|
|
"\aapi_key\x18\x04 \x01(\tR\x06apiKey\x12\x15\n" +
|
|
"\x06key_id\x18\x05 \x01(\tR\x05keyId\x12\x1d\n" +
|
|
"\n" +
|
|
"key_prefix\x18\x06 \x01(\tR\tkeyPrefix\"*\n" +
|
|
"\x12ListApiKeysRequest\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\"\xb4\x01\n" +
|
|
"\x13ListApiKeysResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12-\n" +
|
|
"\x04keys\x18\x04 \x03(\v2\x19.st_peter.auth.ApiKeyInfoR\x04keys\"\xe4\x01\n" +
|
|
"\n" +
|
|
"ApiKeyInfo\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1d\n" +
|
|
"\n" +
|
|
"key_prefix\x18\x03 \x01(\tR\tkeyPrefix\x12\x16\n" +
|
|
"\x06scopes\x18\x04 \x03(\tR\x06scopes\x12 \n" +
|
|
"\flast_used_at\x18\x05 \x01(\x03R\n" +
|
|
"lastUsedAt\x12\x1d\n" +
|
|
"\n" +
|
|
"expires_at\x18\x06 \x01(\x03R\texpiresAt\x12\x1d\n" +
|
|
"\n" +
|
|
"created_at\x18\a \x01(\x03R\tcreatedAt\x12\x1b\n" +
|
|
"\tis_active\x18\b \x01(\bR\bisActive\"B\n" +
|
|
"\x13RevokeApiKeyRequest\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\x12\x15\n" +
|
|
"\x06key_id\x18\x02 \x01(\tR\x05keyId\".\n" +
|
|
"\x13VerifyApiKeyRequest\x12\x17\n" +
|
|
"\aapi_key\x18\x01 \x01(\tR\x06apiKey\"\x1a\n" +
|
|
"\x18GetPasswordPolicyRequest\"\x97\x02\n" +
|
|
"\x19GetPasswordPolicyResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12\x1d\n" +
|
|
"\n" +
|
|
"min_length\x18\x04 \x01(\rR\tminLength\x12-\n" +
|
|
"\x12requires_uppercase\x18\x05 \x01(\bR\x11requiresUppercase\x12<\n" +
|
|
"\x1arequires_special_character\x18\x06 \x01(\bR\x18requiresSpecialCharacter\"k\n" +
|
|
"\x11LookupUserRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
|
|
"\n" +
|
|
"user_token\x18\x02 \x01(\tR\tuserToken\x12\x1e\n" +
|
|
"\n" +
|
|
"identifier\x18\x03 \x01(\tR\n" +
|
|
"identifier\"\xbb\x01\n" +
|
|
"\x12LookupUserResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12:\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x19.st_peter.auth.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12,\n" +
|
|
"\x04user\x18\x04 \x01(\v2\x13.st_peter.auth.UserH\x00R\x04user\x88\x01\x01B\a\n" +
|
|
"\x05_user*\xa8\x03\n" +
|
|
"\n" +
|
|
"ResultCode\x12\x17\n" +
|
|
"\x13RESULT_CODE_SUCCESS\x10\x00\x12\x19\n" +
|
|
"\x15RESULT_CODE_NOT_FOUND\x10\x01\x12%\n" +
|
|
"!RESULT_CODE_INTERNAL_SERVER_ERROR\x10\x02\x12\x1b\n" +
|
|
"\x17RESULT_CODE_BAD_REQUEST\x10\x03\x12\x1e\n" +
|
|
"\x1aRESULT_CODE_NOT_AUTHORIZED\x10\x04\x12\x19\n" +
|
|
"\x15RESULT_CODE_FORBIDDEN\x10\x05\x12!\n" +
|
|
"\x1dRESULT_CODE_VALIDATION_ERRORS\x10\x06\x12!\n" +
|
|
"\x1dRESULT_CODE_PASSCODE_REQUIRED\x10\a\x12!\n" +
|
|
"\x1dRESULT_CODE_TOO_MANY_REQUESTS\x10\t\x12#\n" +
|
|
"\x1fRESULT_CODE_INVALID_CREDENTIALS\x10\b\x12\x1d\n" +
|
|
"\x19RESULT_CODE_INACTIVE_USER\x10\n" +
|
|
"\x12\x1f\n" +
|
|
"\x1bRESULT_CODE_IDENTITY_IN_USE\x10\v\x12\x19\n" +
|
|
"\x15RESULT_CODE_NEXT_STEP\x10\f*Y\n" +
|
|
"\vChannelType\x12\x1c\n" +
|
|
"\x18CHANNEL_TYPE_UNSPECIFIED\x10\x00\x12\x16\n" +
|
|
"\x12CHANNEL_TYPE_EMAIL\x10\x01\x12\x14\n" +
|
|
"\x10CHANNEL_TYPE_SMS\x10\x02*\xb4\x01\n" +
|
|
"\x14VerificationCodeType\x12&\n" +
|
|
"\"VERIFICATION_CODE_TYPE_UNSPECIFIED\x10\x00\x12#\n" +
|
|
"\x1fVERIFICATION_CODE_TYPE_REGISTER\x10\x01\x12)\n" +
|
|
"%VERIFICATION_CODE_TYPE_PASSWORD_RESET\x10\x02\x12$\n" +
|
|
" VERIFICATION_CODE_TYPE_OTP_LOGIN\x10\x03*\x9f\x01\n" +
|
|
"\rOAuthProvider\x12\x1e\n" +
|
|
"\x1aOAUTH_PROVIDER_UNSPECIFIED\x10\x00\x12\x19\n" +
|
|
"\x15OAUTH_PROVIDER_GOOGLE\x10\x01\x12\x18\n" +
|
|
"\x14OAUTH_PROVIDER_APPLE\x10\x02\x12\x1b\n" +
|
|
"\x17OAUTH_PROVIDER_FACEBOOK\x10\x03\x12\x1c\n" +
|
|
"\x18OAUTH_PROVIDER_MICROSOFT\x10\x04*\x9b\x01\n" +
|
|
"\rIdentityField\x12\x1e\n" +
|
|
"\x1aIDENTITY_FIELD_UNSPECIFIED\x10\x00\x12\x18\n" +
|
|
"\x14IDENTITY_FIELD_EMAIL\x10\x01\x12\x18\n" +
|
|
"\x14IDENTITY_FIELD_phone\x10\x02\x12\x1b\n" +
|
|
"\x17IDENTITY_FIELD_PASSWORD\x10\x03\x12\x19\n" +
|
|
"\x15IDENTITY_FIELD_HANDLE\x10\x042\xa2\x19\n" +
|
|
"\vAuthService\x12W\n" +
|
|
"\fRegisterUser\x12\".st_peter.auth.RegisterUserRequest\x1a#.st_peter.auth.RegisterUserResponse\x12e\n" +
|
|
"\x12VerifyRegisterUser\x12(.st_peter.auth.VerifyRegisterUserRequest\x1a%.st_peter.auth.AuthenticationResponse\x12K\n" +
|
|
"\x05Login\x12\x1b.st_peter.auth.LoginRequest\x1a%.st_peter.auth.AuthenticationResponse\x12E\n" +
|
|
"\x06Logout\x12\x1c.st_peter.auth.LogoutRequest\x1a\x1d.st_peter.auth.LogoutResponse\x12W\n" +
|
|
"\vVerifyToken\x12!.st_peter.auth.VerifyTokenRequest\x1a%.st_peter.auth.AuthenticationResponse\x12i\n" +
|
|
"\x14VerifyAuthClaimToken\x12*.st_peter.auth.VerifyAuthClaimTokenRequest\x1a%.st_peter.auth.AuthenticationResponse\x12f\n" +
|
|
"\x11InitiateTwoFactor\x12'.st_peter.auth.InitiateTwoFactorRequest\x1a(.st_peter.auth.InitiateTwoFactorResponse\x12_\n" +
|
|
"\x0fVerifyTwoFactor\x12%.st_peter.auth.VerifyTwoFactorRequest\x1a%.st_peter.auth.AuthenticationResponse\x12o\n" +
|
|
"\x15InitiatePasswordReset\x12+.st_peter.auth.InitiatePasswordResetRequest\x1a).st_peter.auth.PasswordResetTokenResponse\x12u\n" +
|
|
"\x18VerifyPasswordResetToken\x12..st_peter.auth.VerifyPasswordResetTokenRequest\x1a).st_peter.auth.PasswordResetTokenResponse\x12[\n" +
|
|
"\rResetPassword\x12#.st_peter.auth.ResetPasswordRequest\x1a%.st_peter.auth.AuthenticationResponse\x12m\n" +
|
|
"\x16ResendVerificationCode\x12(.st_peter.auth.ResendVerificationRequest\x1a).st_peter.auth.ResendVerificationResponse\x12]\n" +
|
|
"\x0eUpdateUserInfo\x12$.st_peter.auth.UpdateUserInfoRequest\x1a%.st_peter.auth.UpdateUserInfoResponse\x12l\n" +
|
|
"\x13ChangeIdentityField\x12).st_peter.auth.ChangeIdentityFieldRequest\x1a*.st_peter.auth.ChangeIdentityFieldResponse\x12l\n" +
|
|
"\x13VerifyIdentityField\x12).st_peter.auth.VerifyIdentityFieldRequest\x1a*.st_peter.auth.VerifyIdentityFieldResponse\x12s\n" +
|
|
"\x1aResendIdentifierChangeCode\x12).st_peter.auth.ResendIdentityFieldRequest\x1a*.st_peter.auth.ChangeIdentityFieldResponse\x12d\n" +
|
|
"\x14UpdateUserPreference\x12*.st_peter.auth.UpdateUserPreferenceRequest\x1a .st_peter.auth.OperationResponse\x12x\n" +
|
|
"\x17GetUserPreferenceByCode\x12-.st_peter.auth.GetUserPreferenceByCodeRequest\x1a..st_peter.auth.GetUserPreferenceByCodeResponse\x12`\n" +
|
|
"\x0fGetUserSessions\x12%.st_peter.auth.GetUserSessionsRequest\x1a&.st_peter.auth.GetUserSessionsResponse\x12f\n" +
|
|
"\x11ClearUserSessions\x12'.st_peter.auth.ClearUserSessionsRequest\x1a(.st_peter.auth.ClearUserSessionsResponse\x12T\n" +
|
|
"\vSocialLogin\x12!.st_peter.auth.SocialLoginRequest\x1a\".st_peter.auth.SocialLoginResponse\x12Z\n" +
|
|
"\rInitiateOAuth\x12#.st_peter.auth.InitiateOAuthRequest\x1a$.st_peter.auth.InitiateOAuthResponse\x12X\n" +
|
|
"\rCompleteOAuth\x12#.st_peter.auth.OAuthCallbackRequest\x1a\".st_peter.auth.SocialLoginResponse\x12^\n" +
|
|
"\x11LinkSocialAccount\x12'.st_peter.auth.LinkSocialAccountRequest\x1a .st_peter.auth.OperationResponse\x12b\n" +
|
|
"\x13UnlinkSocialAccount\x12).st_peter.auth.UnlinkSocialAccountRequest\x1a .st_peter.auth.OperationResponse\x12f\n" +
|
|
"\x11GetLinkedAccounts\x12'.st_peter.auth.GetLinkedAccountsRequest\x1a(.st_peter.auth.GetLinkedAccountsResponse\x12W\n" +
|
|
"\fCreateApiKey\x12\".st_peter.auth.CreateApiKeyRequest\x1a#.st_peter.auth.CreateApiKeyResponse\x12T\n" +
|
|
"\vListApiKeys\x12!.st_peter.auth.ListApiKeysRequest\x1a\".st_peter.auth.ListApiKeysResponse\x12T\n" +
|
|
"\fRevokeApiKey\x12\".st_peter.auth.RevokeApiKeyRequest\x1a .st_peter.auth.OperationResponse\x12Y\n" +
|
|
"\fVerifyApiKey\x12\".st_peter.auth.VerifyApiKeyRequest\x1a%.st_peter.auth.AuthenticationResponse\x12f\n" +
|
|
"\x11GetPasswordPolicy\x12'.st_peter.auth.GetPasswordPolicyRequest\x1a(.st_peter.auth.GetPasswordPolicyResponse\x12Q\n" +
|
|
"\n" +
|
|
"GetMetrics\x12 .st_peter.auth.GetMetricsRequest\x1a!.st_peter.auth.GetMetricsResponse\x12Q\n" +
|
|
"\n" +
|
|
"LookupUser\x12 .st_peter.auth.LookupUserRequest\x1a!.st_peter.auth.LookupUserResponseB\x1eZ\x1cnandie.com/pkg/;auth_serviceb\x06proto3"
|
|
|
|
var (
|
|
file_st_peter_auth_proto_rawDescOnce sync.Once
|
|
file_st_peter_auth_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_st_peter_auth_proto_rawDescGZIP() []byte {
|
|
file_st_peter_auth_proto_rawDescOnce.Do(func() {
|
|
file_st_peter_auth_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_st_peter_auth_proto_rawDesc), len(file_st_peter_auth_proto_rawDesc)))
|
|
})
|
|
return file_st_peter_auth_proto_rawDescData
|
|
}
|
|
|
|
var file_st_peter_auth_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
|
|
var file_st_peter_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 68)
|
|
var file_st_peter_auth_proto_goTypes = []any{
|
|
(ResultCode)(0), // 0: st_peter.auth.ResultCode
|
|
(ChannelType)(0), // 1: st_peter.auth.ChannelType
|
|
(VerificationCodeType)(0), // 2: st_peter.auth.VerificationCodeType
|
|
(OAuthProvider)(0), // 3: st_peter.auth.OAuthProvider
|
|
(IdentityField)(0), // 4: st_peter.auth.IdentityField
|
|
(*Date)(nil), // 5: st_peter.auth.Date
|
|
(*User)(nil), // 6: st_peter.auth.User
|
|
(*UserPreference)(nil), // 7: st_peter.auth.UserPreference
|
|
(*Role)(nil), // 8: st_peter.auth.Role
|
|
(*SocialAccount)(nil), // 9: st_peter.auth.SocialAccount
|
|
(*SocialLoginRequest)(nil), // 10: st_peter.auth.SocialLoginRequest
|
|
(*SocialLoginResponse)(nil), // 11: st_peter.auth.SocialLoginResponse
|
|
(*InitiateOAuthRequest)(nil), // 12: st_peter.auth.InitiateOAuthRequest
|
|
(*InitiateOAuthResponse)(nil), // 13: st_peter.auth.InitiateOAuthResponse
|
|
(*OAuthCallbackRequest)(nil), // 14: st_peter.auth.OAuthCallbackRequest
|
|
(*LinkSocialAccountRequest)(nil), // 15: st_peter.auth.LinkSocialAccountRequest
|
|
(*UnlinkSocialAccountRequest)(nil), // 16: st_peter.auth.UnlinkSocialAccountRequest
|
|
(*GetLinkedAccountsRequest)(nil), // 17: st_peter.auth.GetLinkedAccountsRequest
|
|
(*GetLinkedAccountsResponse)(nil), // 18: st_peter.auth.GetLinkedAccountsResponse
|
|
(*RegisterUserRequest)(nil), // 19: st_peter.auth.RegisterUserRequest
|
|
(*RegisterUserResponse)(nil), // 20: st_peter.auth.RegisterUserResponse
|
|
(*VerifyRegisterUserRequest)(nil), // 21: st_peter.auth.VerifyRegisterUserRequest
|
|
(*UserResponse)(nil), // 22: st_peter.auth.UserResponse
|
|
(*DeviceInfo)(nil), // 23: st_peter.auth.DeviceInfo
|
|
(*LoginRequest)(nil), // 24: st_peter.auth.LoginRequest
|
|
(*AuthenticationResponse)(nil), // 25: st_peter.auth.AuthenticationResponse
|
|
(*AuthenticatedUser)(nil), // 26: st_peter.auth.AuthenticatedUser
|
|
(*AssignedUserRole)(nil), // 27: st_peter.auth.AssignedUserRole
|
|
(*VerifyTokenRequest)(nil), // 28: st_peter.auth.VerifyTokenRequest
|
|
(*VerifyAuthClaimTokenRequest)(nil), // 29: st_peter.auth.VerifyAuthClaimTokenRequest
|
|
(*InitiateTwoFactorResponse)(nil), // 30: st_peter.auth.InitiateTwoFactorResponse
|
|
(*VerifyTwoFactorResponse)(nil), // 31: st_peter.auth.VerifyTwoFactorResponse
|
|
(*InitiateTwoFactorRequest)(nil), // 32: st_peter.auth.InitiateTwoFactorRequest
|
|
(*VerifyTwoFactorRequest)(nil), // 33: st_peter.auth.VerifyTwoFactorRequest
|
|
(*InitiatePasswordResetRequest)(nil), // 34: st_peter.auth.InitiatePasswordResetRequest
|
|
(*OperationResponse)(nil), // 35: st_peter.auth.OperationResponse
|
|
(*VerifyPasswordResetTokenRequest)(nil), // 36: st_peter.auth.VerifyPasswordResetTokenRequest
|
|
(*PasswordResetTokenResponse)(nil), // 37: st_peter.auth.PasswordResetTokenResponse
|
|
(*ResetPasswordRequest)(nil), // 38: st_peter.auth.ResetPasswordRequest
|
|
(*ChangeIdentityFieldRequest)(nil), // 39: st_peter.auth.ChangeIdentityFieldRequest
|
|
(*ChangeIdentityFieldResponse)(nil), // 40: st_peter.auth.ChangeIdentityFieldResponse
|
|
(*VerifyIdentityFieldRequest)(nil), // 41: st_peter.auth.VerifyIdentityFieldRequest
|
|
(*ResendIdentityFieldRequest)(nil), // 42: st_peter.auth.ResendIdentityFieldRequest
|
|
(*VerifyIdentityFieldResponse)(nil), // 43: st_peter.auth.VerifyIdentityFieldResponse
|
|
(*UpdateUserInfoRequest)(nil), // 44: st_peter.auth.UpdateUserInfoRequest
|
|
(*UpdateUserInfoResponse)(nil), // 45: st_peter.auth.UpdateUserInfoResponse
|
|
(*LogoutRequest)(nil), // 46: st_peter.auth.LogoutRequest
|
|
(*LogoutResponse)(nil), // 47: st_peter.auth.LogoutResponse
|
|
(*ValidationError)(nil), // 48: st_peter.auth.ValidationError
|
|
(*Scope)(nil), // 49: st_peter.auth.Scope
|
|
(*UpdateUserPreferenceRequest)(nil), // 50: st_peter.auth.UpdateUserPreferenceRequest
|
|
(*GetUserPreferenceByCodeRequest)(nil), // 51: st_peter.auth.GetUserPreferenceByCodeRequest
|
|
(*GetUserPreferenceByCodeResponse)(nil), // 52: st_peter.auth.GetUserPreferenceByCodeResponse
|
|
(*ResendVerificationRequest)(nil), // 53: st_peter.auth.ResendVerificationRequest
|
|
(*ResendVerificationResponse)(nil), // 54: st_peter.auth.ResendVerificationResponse
|
|
(*UserSession)(nil), // 55: st_peter.auth.UserSession
|
|
(*GetUserSessionsRequest)(nil), // 56: st_peter.auth.GetUserSessionsRequest
|
|
(*GetUserSessionsResponse)(nil), // 57: st_peter.auth.GetUserSessionsResponse
|
|
(*ClearUserSessionsRequest)(nil), // 58: st_peter.auth.ClearUserSessionsRequest
|
|
(*ClearUserSessionsResponse)(nil), // 59: st_peter.auth.ClearUserSessionsResponse
|
|
(*GetMetricsRequest)(nil), // 60: st_peter.auth.GetMetricsRequest
|
|
(*GetMetricsResponse)(nil), // 61: st_peter.auth.GetMetricsResponse
|
|
(*CreateApiKeyRequest)(nil), // 62: st_peter.auth.CreateApiKeyRequest
|
|
(*CreateApiKeyResponse)(nil), // 63: st_peter.auth.CreateApiKeyResponse
|
|
(*ListApiKeysRequest)(nil), // 64: st_peter.auth.ListApiKeysRequest
|
|
(*ListApiKeysResponse)(nil), // 65: st_peter.auth.ListApiKeysResponse
|
|
(*ApiKeyInfo)(nil), // 66: st_peter.auth.ApiKeyInfo
|
|
(*RevokeApiKeyRequest)(nil), // 67: st_peter.auth.RevokeApiKeyRequest
|
|
(*VerifyApiKeyRequest)(nil), // 68: st_peter.auth.VerifyApiKeyRequest
|
|
(*GetPasswordPolicyRequest)(nil), // 69: st_peter.auth.GetPasswordPolicyRequest
|
|
(*GetPasswordPolicyResponse)(nil), // 70: st_peter.auth.GetPasswordPolicyResponse
|
|
(*LookupUserRequest)(nil), // 71: st_peter.auth.LookupUserRequest
|
|
(*LookupUserResponse)(nil), // 72: st_peter.auth.LookupUserResponse
|
|
(*timestamppb.Timestamp)(nil), // 73: google.protobuf.Timestamp
|
|
}
|
|
var file_st_peter_auth_proto_depIdxs = []int32{
|
|
73, // 0: st_peter.auth.User.created_at:type_name -> google.protobuf.Timestamp
|
|
73, // 1: st_peter.auth.User.updated_at:type_name -> google.protobuf.Timestamp
|
|
73, // 2: st_peter.auth.User.deleted_at:type_name -> google.protobuf.Timestamp
|
|
73, // 3: st_peter.auth.User.last_login:type_name -> google.protobuf.Timestamp
|
|
5, // 4: st_peter.auth.User.date_of_birth:type_name -> st_peter.auth.Date
|
|
9, // 5: st_peter.auth.User.social_accounts:type_name -> st_peter.auth.SocialAccount
|
|
73, // 6: st_peter.auth.UserPreference.created_at:type_name -> google.protobuf.Timestamp
|
|
73, // 7: st_peter.auth.UserPreference.updated_at:type_name -> google.protobuf.Timestamp
|
|
73, // 8: st_peter.auth.Role.created_at:type_name -> google.protobuf.Timestamp
|
|
73, // 9: st_peter.auth.Role.updated_at:type_name -> google.protobuf.Timestamp
|
|
73, // 10: st_peter.auth.SocialAccount.expires_at:type_name -> google.protobuf.Timestamp
|
|
3, // 11: st_peter.auth.SocialLoginRequest.provider:type_name -> st_peter.auth.OAuthProvider
|
|
23, // 12: st_peter.auth.SocialLoginRequest.device_info:type_name -> st_peter.auth.DeviceInfo
|
|
0, // 13: st_peter.auth.SocialLoginResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
26, // 14: st_peter.auth.SocialLoginResponse.authenticated_user:type_name -> st_peter.auth.AuthenticatedUser
|
|
48, // 15: st_peter.auth.SocialLoginResponse.validation_errors:type_name -> st_peter.auth.ValidationError
|
|
3, // 16: st_peter.auth.InitiateOAuthRequest.provider:type_name -> st_peter.auth.OAuthProvider
|
|
0, // 17: st_peter.auth.InitiateOAuthResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
3, // 18: st_peter.auth.OAuthCallbackRequest.provider:type_name -> st_peter.auth.OAuthProvider
|
|
23, // 19: st_peter.auth.OAuthCallbackRequest.device_info:type_name -> st_peter.auth.DeviceInfo
|
|
3, // 20: st_peter.auth.LinkSocialAccountRequest.provider:type_name -> st_peter.auth.OAuthProvider
|
|
3, // 21: st_peter.auth.UnlinkSocialAccountRequest.provider:type_name -> st_peter.auth.OAuthProvider
|
|
0, // 22: st_peter.auth.GetLinkedAccountsResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
9, // 23: st_peter.auth.GetLinkedAccountsResponse.accounts:type_name -> st_peter.auth.SocialAccount
|
|
23, // 24: st_peter.auth.RegisterUserRequest.device_info:type_name -> st_peter.auth.DeviceInfo
|
|
0, // 25: st_peter.auth.RegisterUserResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
48, // 26: st_peter.auth.RegisterUserResponse.validation_errors:type_name -> st_peter.auth.ValidationError
|
|
23, // 27: st_peter.auth.VerifyRegisterUserRequest.device_info:type_name -> st_peter.auth.DeviceInfo
|
|
0, // 28: st_peter.auth.UserResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
6, // 29: st_peter.auth.UserResponse.user:type_name -> st_peter.auth.User
|
|
23, // 30: st_peter.auth.LoginRequest.device_info:type_name -> st_peter.auth.DeviceInfo
|
|
0, // 31: st_peter.auth.AuthenticationResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
26, // 32: st_peter.auth.AuthenticationResponse.authenticated_user:type_name -> st_peter.auth.AuthenticatedUser
|
|
6, // 33: st_peter.auth.AuthenticatedUser.user:type_name -> st_peter.auth.User
|
|
73, // 34: st_peter.auth.AuthenticatedUser.expires_at:type_name -> google.protobuf.Timestamp
|
|
7, // 35: st_peter.auth.AuthenticatedUser.user_preferences:type_name -> st_peter.auth.UserPreference
|
|
27, // 36: st_peter.auth.AuthenticatedUser.user_roles:type_name -> st_peter.auth.AssignedUserRole
|
|
0, // 37: st_peter.auth.InitiateTwoFactorResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
1, // 38: st_peter.auth.InitiateTwoFactorResponse.channel:type_name -> st_peter.auth.ChannelType
|
|
48, // 39: st_peter.auth.InitiateTwoFactorResponse.validation_errors:type_name -> st_peter.auth.ValidationError
|
|
0, // 40: st_peter.auth.VerifyTwoFactorResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
48, // 41: st_peter.auth.VerifyTwoFactorResponse.validation_errors:type_name -> st_peter.auth.ValidationError
|
|
1, // 42: st_peter.auth.InitiateTwoFactorRequest.channel:type_name -> st_peter.auth.ChannelType
|
|
23, // 43: st_peter.auth.InitiateTwoFactorRequest.device_info:type_name -> st_peter.auth.DeviceInfo
|
|
23, // 44: st_peter.auth.VerifyTwoFactorRequest.device_info:type_name -> st_peter.auth.DeviceInfo
|
|
23, // 45: st_peter.auth.InitiatePasswordResetRequest.device_info:type_name -> st_peter.auth.DeviceInfo
|
|
0, // 46: st_peter.auth.OperationResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
0, // 47: st_peter.auth.PasswordResetTokenResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
23, // 48: st_peter.auth.ResetPasswordRequest.device_info:type_name -> st_peter.auth.DeviceInfo
|
|
1, // 49: st_peter.auth.ChangeIdentityFieldRequest.channel:type_name -> st_peter.auth.ChannelType
|
|
4, // 50: st_peter.auth.ChangeIdentityFieldRequest.field_type:type_name -> st_peter.auth.IdentityField
|
|
23, // 51: st_peter.auth.ChangeIdentityFieldRequest.device_info:type_name -> st_peter.auth.DeviceInfo
|
|
0, // 52: st_peter.auth.ChangeIdentityFieldResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
1, // 53: st_peter.auth.ChangeIdentityFieldResponse.channel:type_name -> st_peter.auth.ChannelType
|
|
48, // 54: st_peter.auth.ChangeIdentityFieldResponse.validation_errors:type_name -> st_peter.auth.ValidationError
|
|
23, // 55: st_peter.auth.VerifyIdentityFieldRequest.device_info:type_name -> st_peter.auth.DeviceInfo
|
|
23, // 56: st_peter.auth.ResendIdentityFieldRequest.device_info:type_name -> st_peter.auth.DeviceInfo
|
|
0, // 57: st_peter.auth.VerifyIdentityFieldResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
1, // 58: st_peter.auth.VerifyIdentityFieldResponse.channel:type_name -> st_peter.auth.ChannelType
|
|
48, // 59: st_peter.auth.VerifyIdentityFieldResponse.validation_errors:type_name -> st_peter.auth.ValidationError
|
|
5, // 60: st_peter.auth.UpdateUserInfoRequest.date_of_birth:type_name -> st_peter.auth.Date
|
|
0, // 61: st_peter.auth.UpdateUserInfoResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
6, // 62: st_peter.auth.UpdateUserInfoResponse.user:type_name -> st_peter.auth.User
|
|
0, // 63: st_peter.auth.LogoutResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
0, // 64: st_peter.auth.GetUserPreferenceByCodeResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
2, // 65: st_peter.auth.ResendVerificationRequest.verification_code_type:type_name -> st_peter.auth.VerificationCodeType
|
|
23, // 66: st_peter.auth.ResendVerificationRequest.device_info:type_name -> st_peter.auth.DeviceInfo
|
|
0, // 67: st_peter.auth.ResendVerificationResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
23, // 68: st_peter.auth.UserSession.device_info:type_name -> st_peter.auth.DeviceInfo
|
|
73, // 69: st_peter.auth.UserSession.created_at:type_name -> google.protobuf.Timestamp
|
|
73, // 70: st_peter.auth.UserSession.expires_at:type_name -> google.protobuf.Timestamp
|
|
73, // 71: st_peter.auth.UserSession.last_activity:type_name -> google.protobuf.Timestamp
|
|
0, // 72: st_peter.auth.GetUserSessionsResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
55, // 73: st_peter.auth.GetUserSessionsResponse.sessions:type_name -> st_peter.auth.UserSession
|
|
0, // 74: st_peter.auth.ClearUserSessionsResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
0, // 75: st_peter.auth.GetMetricsResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
0, // 76: st_peter.auth.CreateApiKeyResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
0, // 77: st_peter.auth.ListApiKeysResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
66, // 78: st_peter.auth.ListApiKeysResponse.keys:type_name -> st_peter.auth.ApiKeyInfo
|
|
0, // 79: st_peter.auth.GetPasswordPolicyResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
0, // 80: st_peter.auth.LookupUserResponse.result_code:type_name -> st_peter.auth.ResultCode
|
|
6, // 81: st_peter.auth.LookupUserResponse.user:type_name -> st_peter.auth.User
|
|
19, // 82: st_peter.auth.AuthService.RegisterUser:input_type -> st_peter.auth.RegisterUserRequest
|
|
21, // 83: st_peter.auth.AuthService.VerifyRegisterUser:input_type -> st_peter.auth.VerifyRegisterUserRequest
|
|
24, // 84: st_peter.auth.AuthService.Login:input_type -> st_peter.auth.LoginRequest
|
|
46, // 85: st_peter.auth.AuthService.Logout:input_type -> st_peter.auth.LogoutRequest
|
|
28, // 86: st_peter.auth.AuthService.VerifyToken:input_type -> st_peter.auth.VerifyTokenRequest
|
|
29, // 87: st_peter.auth.AuthService.VerifyAuthClaimToken:input_type -> st_peter.auth.VerifyAuthClaimTokenRequest
|
|
32, // 88: st_peter.auth.AuthService.InitiateTwoFactor:input_type -> st_peter.auth.InitiateTwoFactorRequest
|
|
33, // 89: st_peter.auth.AuthService.VerifyTwoFactor:input_type -> st_peter.auth.VerifyTwoFactorRequest
|
|
34, // 90: st_peter.auth.AuthService.InitiatePasswordReset:input_type -> st_peter.auth.InitiatePasswordResetRequest
|
|
36, // 91: st_peter.auth.AuthService.VerifyPasswordResetToken:input_type -> st_peter.auth.VerifyPasswordResetTokenRequest
|
|
38, // 92: st_peter.auth.AuthService.ResetPassword:input_type -> st_peter.auth.ResetPasswordRequest
|
|
53, // 93: st_peter.auth.AuthService.ResendVerificationCode:input_type -> st_peter.auth.ResendVerificationRequest
|
|
44, // 94: st_peter.auth.AuthService.UpdateUserInfo:input_type -> st_peter.auth.UpdateUserInfoRequest
|
|
39, // 95: st_peter.auth.AuthService.ChangeIdentityField:input_type -> st_peter.auth.ChangeIdentityFieldRequest
|
|
41, // 96: st_peter.auth.AuthService.VerifyIdentityField:input_type -> st_peter.auth.VerifyIdentityFieldRequest
|
|
42, // 97: st_peter.auth.AuthService.ResendIdentifierChangeCode:input_type -> st_peter.auth.ResendIdentityFieldRequest
|
|
50, // 98: st_peter.auth.AuthService.UpdateUserPreference:input_type -> st_peter.auth.UpdateUserPreferenceRequest
|
|
51, // 99: st_peter.auth.AuthService.GetUserPreferenceByCode:input_type -> st_peter.auth.GetUserPreferenceByCodeRequest
|
|
56, // 100: st_peter.auth.AuthService.GetUserSessions:input_type -> st_peter.auth.GetUserSessionsRequest
|
|
58, // 101: st_peter.auth.AuthService.ClearUserSessions:input_type -> st_peter.auth.ClearUserSessionsRequest
|
|
10, // 102: st_peter.auth.AuthService.SocialLogin:input_type -> st_peter.auth.SocialLoginRequest
|
|
12, // 103: st_peter.auth.AuthService.InitiateOAuth:input_type -> st_peter.auth.InitiateOAuthRequest
|
|
14, // 104: st_peter.auth.AuthService.CompleteOAuth:input_type -> st_peter.auth.OAuthCallbackRequest
|
|
15, // 105: st_peter.auth.AuthService.LinkSocialAccount:input_type -> st_peter.auth.LinkSocialAccountRequest
|
|
16, // 106: st_peter.auth.AuthService.UnlinkSocialAccount:input_type -> st_peter.auth.UnlinkSocialAccountRequest
|
|
17, // 107: st_peter.auth.AuthService.GetLinkedAccounts:input_type -> st_peter.auth.GetLinkedAccountsRequest
|
|
62, // 108: st_peter.auth.AuthService.CreateApiKey:input_type -> st_peter.auth.CreateApiKeyRequest
|
|
64, // 109: st_peter.auth.AuthService.ListApiKeys:input_type -> st_peter.auth.ListApiKeysRequest
|
|
67, // 110: st_peter.auth.AuthService.RevokeApiKey:input_type -> st_peter.auth.RevokeApiKeyRequest
|
|
68, // 111: st_peter.auth.AuthService.VerifyApiKey:input_type -> st_peter.auth.VerifyApiKeyRequest
|
|
69, // 112: st_peter.auth.AuthService.GetPasswordPolicy:input_type -> st_peter.auth.GetPasswordPolicyRequest
|
|
60, // 113: st_peter.auth.AuthService.GetMetrics:input_type -> st_peter.auth.GetMetricsRequest
|
|
71, // 114: st_peter.auth.AuthService.LookupUser:input_type -> st_peter.auth.LookupUserRequest
|
|
20, // 115: st_peter.auth.AuthService.RegisterUser:output_type -> st_peter.auth.RegisterUserResponse
|
|
25, // 116: st_peter.auth.AuthService.VerifyRegisterUser:output_type -> st_peter.auth.AuthenticationResponse
|
|
25, // 117: st_peter.auth.AuthService.Login:output_type -> st_peter.auth.AuthenticationResponse
|
|
47, // 118: st_peter.auth.AuthService.Logout:output_type -> st_peter.auth.LogoutResponse
|
|
25, // 119: st_peter.auth.AuthService.VerifyToken:output_type -> st_peter.auth.AuthenticationResponse
|
|
25, // 120: st_peter.auth.AuthService.VerifyAuthClaimToken:output_type -> st_peter.auth.AuthenticationResponse
|
|
30, // 121: st_peter.auth.AuthService.InitiateTwoFactor:output_type -> st_peter.auth.InitiateTwoFactorResponse
|
|
25, // 122: st_peter.auth.AuthService.VerifyTwoFactor:output_type -> st_peter.auth.AuthenticationResponse
|
|
37, // 123: st_peter.auth.AuthService.InitiatePasswordReset:output_type -> st_peter.auth.PasswordResetTokenResponse
|
|
37, // 124: st_peter.auth.AuthService.VerifyPasswordResetToken:output_type -> st_peter.auth.PasswordResetTokenResponse
|
|
25, // 125: st_peter.auth.AuthService.ResetPassword:output_type -> st_peter.auth.AuthenticationResponse
|
|
54, // 126: st_peter.auth.AuthService.ResendVerificationCode:output_type -> st_peter.auth.ResendVerificationResponse
|
|
45, // 127: st_peter.auth.AuthService.UpdateUserInfo:output_type -> st_peter.auth.UpdateUserInfoResponse
|
|
40, // 128: st_peter.auth.AuthService.ChangeIdentityField:output_type -> st_peter.auth.ChangeIdentityFieldResponse
|
|
43, // 129: st_peter.auth.AuthService.VerifyIdentityField:output_type -> st_peter.auth.VerifyIdentityFieldResponse
|
|
40, // 130: st_peter.auth.AuthService.ResendIdentifierChangeCode:output_type -> st_peter.auth.ChangeIdentityFieldResponse
|
|
35, // 131: st_peter.auth.AuthService.UpdateUserPreference:output_type -> st_peter.auth.OperationResponse
|
|
52, // 132: st_peter.auth.AuthService.GetUserPreferenceByCode:output_type -> st_peter.auth.GetUserPreferenceByCodeResponse
|
|
57, // 133: st_peter.auth.AuthService.GetUserSessions:output_type -> st_peter.auth.GetUserSessionsResponse
|
|
59, // 134: st_peter.auth.AuthService.ClearUserSessions:output_type -> st_peter.auth.ClearUserSessionsResponse
|
|
11, // 135: st_peter.auth.AuthService.SocialLogin:output_type -> st_peter.auth.SocialLoginResponse
|
|
13, // 136: st_peter.auth.AuthService.InitiateOAuth:output_type -> st_peter.auth.InitiateOAuthResponse
|
|
11, // 137: st_peter.auth.AuthService.CompleteOAuth:output_type -> st_peter.auth.SocialLoginResponse
|
|
35, // 138: st_peter.auth.AuthService.LinkSocialAccount:output_type -> st_peter.auth.OperationResponse
|
|
35, // 139: st_peter.auth.AuthService.UnlinkSocialAccount:output_type -> st_peter.auth.OperationResponse
|
|
18, // 140: st_peter.auth.AuthService.GetLinkedAccounts:output_type -> st_peter.auth.GetLinkedAccountsResponse
|
|
63, // 141: st_peter.auth.AuthService.CreateApiKey:output_type -> st_peter.auth.CreateApiKeyResponse
|
|
65, // 142: st_peter.auth.AuthService.ListApiKeys:output_type -> st_peter.auth.ListApiKeysResponse
|
|
35, // 143: st_peter.auth.AuthService.RevokeApiKey:output_type -> st_peter.auth.OperationResponse
|
|
25, // 144: st_peter.auth.AuthService.VerifyApiKey:output_type -> st_peter.auth.AuthenticationResponse
|
|
70, // 145: st_peter.auth.AuthService.GetPasswordPolicy:output_type -> st_peter.auth.GetPasswordPolicyResponse
|
|
61, // 146: st_peter.auth.AuthService.GetMetrics:output_type -> st_peter.auth.GetMetricsResponse
|
|
72, // 147: st_peter.auth.AuthService.LookupUser:output_type -> st_peter.auth.LookupUserResponse
|
|
115, // [115:148] is the sub-list for method output_type
|
|
82, // [82:115] is the sub-list for method input_type
|
|
82, // [82:82] is the sub-list for extension type_name
|
|
82, // [82:82] is the sub-list for extension extendee
|
|
0, // [0:82] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_st_peter_auth_proto_init() }
|
|
func file_st_peter_auth_proto_init() {
|
|
if File_st_peter_auth_proto != nil {
|
|
return
|
|
}
|
|
file_st_peter_auth_proto_msgTypes[1].OneofWrappers = []any{}
|
|
file_st_peter_auth_proto_msgTypes[27].OneofWrappers = []any{}
|
|
file_st_peter_auth_proto_msgTypes[39].OneofWrappers = []any{}
|
|
file_st_peter_auth_proto_msgTypes[44].OneofWrappers = []any{}
|
|
file_st_peter_auth_proto_msgTypes[67].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_st_peter_auth_proto_rawDesc), len(file_st_peter_auth_proto_rawDesc)),
|
|
NumEnums: 5,
|
|
NumMessages: 68,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_st_peter_auth_proto_goTypes,
|
|
DependencyIndexes: file_st_peter_auth_proto_depIdxs,
|
|
EnumInfos: file_st_peter_auth_proto_enumTypes,
|
|
MessageInfos: file_st_peter_auth_proto_msgTypes,
|
|
}.Build()
|
|
File_st_peter_auth_proto = out.File
|
|
file_st_peter_auth_proto_goTypes = nil
|
|
file_st_peter_auth_proto_depIdxs = nil
|
|
}
|