5498 lines
177 KiB
Go
5498 lines
177 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-admin.proto
|
|
|
|
package auth_admin_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_BAD_INPUT ResultCode = 1
|
|
ResultCode_RESULT_CODE_NOT_FOUND ResultCode = 2
|
|
ResultCode_RESULT_CODE_INTERNAL_SERVER_ERROR ResultCode = 3
|
|
ResultCode_RESULT_CODE_NOT_AUTHORIZED ResultCode = 4 // User is not authenticated
|
|
ResultCode_RESULT_CODE_FORBIDDEN ResultCode = 5 // User is authenticated but lacks required permissions
|
|
)
|
|
|
|
// Enum value maps for ResultCode.
|
|
var (
|
|
ResultCode_name = map[int32]string{
|
|
0: "RESULT_CODE_SUCCESS",
|
|
1: "RESULT_CODE_BAD_INPUT",
|
|
2: "RESULT_CODE_NOT_FOUND",
|
|
3: "RESULT_CODE_INTERNAL_SERVER_ERROR",
|
|
4: "RESULT_CODE_NOT_AUTHORIZED",
|
|
5: "RESULT_CODE_FORBIDDEN",
|
|
}
|
|
ResultCode_value = map[string]int32{
|
|
"RESULT_CODE_SUCCESS": 0,
|
|
"RESULT_CODE_BAD_INPUT": 1,
|
|
"RESULT_CODE_NOT_FOUND": 2,
|
|
"RESULT_CODE_INTERNAL_SERVER_ERROR": 3,
|
|
"RESULT_CODE_NOT_AUTHORIZED": 4,
|
|
"RESULT_CODE_FORBIDDEN": 5,
|
|
}
|
|
)
|
|
|
|
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_admin_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (ResultCode) Type() protoreflect.EnumType {
|
|
return &file_st_peter_admin_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_admin_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
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_admin_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_admin_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_admin_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,oneof" 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_admin_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_admin_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_admin_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 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_admin_proto_msgTypes[2]
|
|
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_admin_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 Role.ProtoReflect.Descriptor instead.
|
|
func (*Role) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SocialAccount) Reset() {
|
|
*x = SocialAccount{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[3]
|
|
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_admin_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 SocialAccount.ProtoReflect.Descriptor instead.
|
|
func (*SocialAccount) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
type RegisterUserRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
|
|
LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterUserRequest) Reset() {
|
|
*x = RegisterUserRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[4]
|
|
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_admin_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 RegisterUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*RegisterUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *RegisterUserRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterUserRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterUserRequest) GetPhone() string {
|
|
if x != nil {
|
|
return x.Phone
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterUserRequest) GetFirstName() string {
|
|
if x != nil {
|
|
return x.FirstName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterUserRequest) GetLastName() string {
|
|
if x != nil {
|
|
return x.LastName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
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.admin.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_admin_proto_msgTypes[5]
|
|
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_admin_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 UserResponse.ProtoReflect.Descriptor instead.
|
|
func (*UserResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
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 LoginRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginRequest) Reset() {
|
|
*x = LoginRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[6]
|
|
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_admin_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 LoginRequest.ProtoReflect.Descriptor instead.
|
|
func (*LoginRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *LoginRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AuthenticationResponse 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.admin.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
|
|
User *User `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AuthenticationResponse) Reset() {
|
|
*x = AuthenticationResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[7]
|
|
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_admin_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 AuthenticationResponse.ProtoReflect.Descriptor instead.
|
|
func (*AuthenticationResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *AuthenticationResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
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) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuthenticationResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetUserRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
ActorId string `protobuf:"bytes,11,opt,name=actor_id,json=actorId,proto3" json:"actor_id,omitempty"`
|
|
ActorToken string `protobuf:"bytes,12,opt,name=actor_token,json=actorToken,proto3" json:"actor_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserRequest) Reset() {
|
|
*x = GetUserRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserRequest) ProtoMessage() {}
|
|
|
|
func (x *GetUserRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *GetUserRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetUsersByUsernamesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
EmailAddresses []string `protobuf:"bytes,2,rep,name=email_addresses,json=emailAddresses,proto3" json:"email_addresses,omitempty"`
|
|
PhoneNumbers []string `protobuf:"bytes,3,rep,name=phone_numbers,json=phoneNumbers,proto3" json:"phone_numbers,omitempty"`
|
|
ActorId string `protobuf:"bytes,11,opt,name=actor_id,json=actorId,proto3" json:"actor_id,omitempty"`
|
|
ActorToken string `protobuf:"bytes,12,opt,name=actor_token,json=actorToken,proto3" json:"actor_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUsersByUsernamesRequest) Reset() {
|
|
*x = GetUsersByUsernamesRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUsersByUsernamesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUsersByUsernamesRequest) ProtoMessage() {}
|
|
|
|
func (x *GetUsersByUsernamesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetUsersByUsernamesRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUsersByUsernamesRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *GetUsersByUsernamesRequest) GetEmailAddresses() []string {
|
|
if x != nil {
|
|
return x.EmailAddresses
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetUsersByUsernamesRequest) GetPhoneNumbers() []string {
|
|
if x != nil {
|
|
return x.PhoneNumbers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetUsersByUsernamesRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUsersByUsernamesRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteUserRequest 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"`
|
|
UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
|
|
UserAgent string `protobuf:"bytes,5,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
|
|
UnassignRoles bool `protobuf:"varint,6,opt,name=unassign_roles,json=unassignRoles,proto3" json:"unassign_roles,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteUserRequest) Reset() {
|
|
*x = DeleteUserRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteUserRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteUserRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 DeleteUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *DeleteUserRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteUserRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteUserRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteUserRequest) GetReason() string {
|
|
if x != nil {
|
|
return x.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteUserRequest) GetUserAgent() string {
|
|
if x != nil {
|
|
return x.UserAgent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteUserRequest) GetUnassignRoles() bool {
|
|
if x != nil {
|
|
return x.UnassignRoles
|
|
}
|
|
return false
|
|
}
|
|
|
|
type RestoreUserRequest 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"`
|
|
UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
|
|
UserAgent string `protobuf:"bytes,5,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
|
|
RestoreRoles bool `protobuf:"varint,6,opt,name=restore_roles,json=restoreRoles,proto3" json:"restore_roles,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RestoreUserRequest) Reset() {
|
|
*x = RestoreUserRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RestoreUserRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RestoreUserRequest) ProtoMessage() {}
|
|
|
|
func (x *RestoreUserRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 RestoreUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*RestoreUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *RestoreUserRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RestoreUserRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RestoreUserRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RestoreUserRequest) GetReason() string {
|
|
if x != nil {
|
|
return x.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RestoreUserRequest) GetUserAgent() string {
|
|
if x != nil {
|
|
return x.UserAgent
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RestoreUserRequest) GetRestoreRoles() bool {
|
|
if x != nil {
|
|
return x.RestoreRoles
|
|
}
|
|
return false
|
|
}
|
|
|
|
type AssignRoleRequest 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"`
|
|
UserId string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
RoleId string `protobuf:"bytes,6,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
|
|
ScopeCode string `protobuf:"bytes,7,opt,name=scope_code,json=scopeCode,proto3" json:"scope_code,omitempty"`
|
|
TargetId *string `protobuf:"bytes,8,opt,name=target_id,json=targetId,proto3,oneof" json:"target_id,omitempty"`
|
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
SessionId string `protobuf:"bytes,10,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AssignRoleRequest) Reset() {
|
|
*x = AssignRoleRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AssignRoleRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AssignRoleRequest) ProtoMessage() {}
|
|
|
|
func (x *AssignRoleRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 AssignRoleRequest.ProtoReflect.Descriptor instead.
|
|
func (*AssignRoleRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *AssignRoleRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AssignRoleRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AssignRoleRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AssignRoleRequest) GetRoleId() string {
|
|
if x != nil {
|
|
return x.RoleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AssignRoleRequest) GetScopeCode() string {
|
|
if x != nil {
|
|
return x.ScopeCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AssignRoleRequest) GetTargetId() string {
|
|
if x != nil && x.TargetId != nil {
|
|
return *x.TargetId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AssignRoleRequest) GetExpiresAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AssignRoleRequest) GetSessionId() string {
|
|
if x != nil {
|
|
return x.SessionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UnassignRoleRequest 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"`
|
|
UserId string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
UserRoleId string `protobuf:"bytes,6,opt,name=user_role_id,json=userRoleId,proto3" json:"user_role_id,omitempty"`
|
|
Reason string `protobuf:"bytes,7,opt,name=reason,proto3" json:"reason,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UnassignRoleRequest) Reset() {
|
|
*x = UnassignRoleRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UnassignRoleRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UnassignRoleRequest) ProtoMessage() {}
|
|
|
|
func (x *UnassignRoleRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 UnassignRoleRequest.ProtoReflect.Descriptor instead.
|
|
func (*UnassignRoleRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *UnassignRoleRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UnassignRoleRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UnassignRoleRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UnassignRoleRequest) GetUserRoleId() string {
|
|
if x != nil {
|
|
return x.UserRoleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UnassignRoleRequest) GetReason() string {
|
|
if x != nil {
|
|
return x.Reason
|
|
}
|
|
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.admin.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_admin_proto_msgTypes[14]
|
|
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_admin_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 OperationResponse.ProtoReflect.Descriptor instead.
|
|
func (*OperationResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
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 SearchUsersRequest 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"`
|
|
Email *string `protobuf:"bytes,3,opt,name=email,proto3,oneof" json:"email,omitempty"`
|
|
Phone *string `protobuf:"bytes,4,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
|
|
Search *string `protobuf:"bytes,11,opt,name=search,proto3,oneof" json:"search,omitempty"`
|
|
Page int32 `protobuf:"varint,12,opt,name=page,proto3" json:"page,omitempty"`
|
|
PageSize int32 `protobuf:"varint,13,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
IncludeInactive bool `protobuf:"varint,14,opt,name=include_inactive,json=includeInactive,proto3" json:"include_inactive,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SearchUsersRequest) Reset() {
|
|
*x = SearchUsersRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SearchUsersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SearchUsersRequest) ProtoMessage() {}
|
|
|
|
func (x *SearchUsersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 SearchUsersRequest.ProtoReflect.Descriptor instead.
|
|
func (*SearchUsersRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *SearchUsersRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SearchUsersRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SearchUsersRequest) GetEmail() string {
|
|
if x != nil && x.Email != nil {
|
|
return *x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SearchUsersRequest) GetPhone() string {
|
|
if x != nil && x.Phone != nil {
|
|
return *x.Phone
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SearchUsersRequest) GetSearch() string {
|
|
if x != nil && x.Search != nil {
|
|
return *x.Search
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SearchUsersRequest) GetPage() int32 {
|
|
if x != nil {
|
|
return x.Page
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SearchUsersRequest) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SearchUsersRequest) GetIncludeInactive() bool {
|
|
if x != nil {
|
|
return x.IncludeInactive
|
|
}
|
|
return false
|
|
}
|
|
|
|
type CountUsersRequest 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 *CountUsersRequest) Reset() {
|
|
*x = CountUsersRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CountUsersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CountUsersRequest) ProtoMessage() {}
|
|
|
|
func (x *CountUsersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 CountUsersRequest.ProtoReflect.Descriptor instead.
|
|
func (*CountUsersRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *CountUsersRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CountUsersRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TimeSeriesStatistic struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
|
Year int64 `protobuf:"varint,3,opt,name=year,proto3" json:"year,omitempty"`
|
|
Month uint32 `protobuf:"varint,4,opt,name=month,proto3" json:"month,omitempty"`
|
|
Day uint32 `protobuf:"varint,5,opt,name=day,proto3" json:"day,omitempty"`
|
|
Hour uint32 `protobuf:"varint,6,opt,name=hour,proto3" json:"hour,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TimeSeriesStatistic) Reset() {
|
|
*x = TimeSeriesStatistic{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TimeSeriesStatistic) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TimeSeriesStatistic) ProtoMessage() {}
|
|
|
|
func (x *TimeSeriesStatistic) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 TimeSeriesStatistic.ProtoReflect.Descriptor instead.
|
|
func (*TimeSeriesStatistic) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *TimeSeriesStatistic) GetCount() uint32 {
|
|
if x != nil {
|
|
return x.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TimeSeriesStatistic) GetYear() int64 {
|
|
if x != nil {
|
|
return x.Year
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TimeSeriesStatistic) GetMonth() uint32 {
|
|
if x != nil {
|
|
return x.Month
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TimeSeriesStatistic) GetDay() uint32 {
|
|
if x != nil {
|
|
return x.Day
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TimeSeriesStatistic) GetHour() uint32 {
|
|
if x != nil {
|
|
return x.Hour
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CountUsersResponse 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.admin.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
GrandTotal uint32 `protobuf:"varint,4,opt,name=grand_total,json=grandTotal,proto3" json:"grand_total,omitempty"`
|
|
CurrentDate *Date `protobuf:"bytes,7,opt,name=current_date,json=currentDate,proto3" json:"current_date,omitempty"`
|
|
Daily []*TimeSeriesStatistic `protobuf:"bytes,5,rep,name=daily,proto3" json:"daily,omitempty"` // 30 past days
|
|
Monthly []*TimeSeriesStatistic `protobuf:"bytes,6,rep,name=monthly,proto3" json:"monthly,omitempty"` // 12 months
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CountUsersResponse) Reset() {
|
|
*x = CountUsersResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CountUsersResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CountUsersResponse) ProtoMessage() {}
|
|
|
|
func (x *CountUsersResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 CountUsersResponse.ProtoReflect.Descriptor instead.
|
|
func (*CountUsersResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *CountUsersResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CountUsersResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *CountUsersResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CountUsersResponse) GetGrandTotal() uint32 {
|
|
if x != nil {
|
|
return x.GrandTotal
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CountUsersResponse) GetCurrentDate() *Date {
|
|
if x != nil {
|
|
return x.CurrentDate
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CountUsersResponse) GetDaily() []*TimeSeriesStatistic {
|
|
if x != nil {
|
|
return x.Daily
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CountUsersResponse) GetMonthly() []*TimeSeriesStatistic {
|
|
if x != nil {
|
|
return x.Monthly
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SearchUsersResponse 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.admin.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"`
|
|
Total int32 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SearchUsersResponse) Reset() {
|
|
*x = SearchUsersResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SearchUsersResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SearchUsersResponse) ProtoMessage() {}
|
|
|
|
func (x *SearchUsersResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 SearchUsersResponse.ProtoReflect.Descriptor instead.
|
|
func (*SearchUsersResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *SearchUsersResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SearchUsersResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *SearchUsersResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SearchUsersResponse) GetUsers() []*User {
|
|
if x != nil {
|
|
return x.Users
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SearchUsersResponse) GetTotal() int32 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SearchRolesRequest 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"`
|
|
Search string `protobuf:"bytes,11,opt,name=search,proto3" json:"search,omitempty"`
|
|
Page int32 `protobuf:"varint,12,opt,name=page,proto3" json:"page,omitempty"`
|
|
PageSize int32 `protobuf:"varint,13,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SearchRolesRequest) Reset() {
|
|
*x = SearchRolesRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SearchRolesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SearchRolesRequest) ProtoMessage() {}
|
|
|
|
func (x *SearchRolesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 SearchRolesRequest.ProtoReflect.Descriptor instead.
|
|
func (*SearchRolesRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *SearchRolesRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SearchRolesRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SearchRolesRequest) GetSearch() string {
|
|
if x != nil {
|
|
return x.Search
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SearchRolesRequest) GetPage() int32 {
|
|
if x != nil {
|
|
return x.Page
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SearchRolesRequest) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SearchRolesResponse 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.admin.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Roles []*Role `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
|
|
Total int32 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SearchRolesResponse) Reset() {
|
|
*x = SearchRolesResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SearchRolesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SearchRolesResponse) ProtoMessage() {}
|
|
|
|
func (x *SearchRolesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 SearchRolesResponse.ProtoReflect.Descriptor instead.
|
|
func (*SearchRolesResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *SearchRolesResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SearchRolesResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *SearchRolesResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SearchRolesResponse) GetRoles() []*Role {
|
|
if x != nil {
|
|
return x.Roles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SearchRolesResponse) GetTotal() int32 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetRoleScopesRequest 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"`
|
|
RoleId *string `protobuf:"bytes,3,opt,name=role_id,json=roleId,proto3,oneof" json:"role_id,omitempty"`
|
|
ScopeCode *string `protobuf:"bytes,4,opt,name=scope_code,json=scopeCode,proto3,oneof" json:"scope_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetRoleScopesRequest) Reset() {
|
|
*x = GetRoleScopesRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetRoleScopesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetRoleScopesRequest) ProtoMessage() {}
|
|
|
|
func (x *GetRoleScopesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetRoleScopesRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetRoleScopesRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *GetRoleScopesRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetRoleScopesRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetRoleScopesRequest) GetRoleId() string {
|
|
if x != nil && x.RoleId != nil {
|
|
return *x.RoleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetRoleScopesRequest) GetScopeCode() string {
|
|
if x != nil && x.ScopeCode != nil {
|
|
return *x.ScopeCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetRoleScopesResponse 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.admin.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
RoleScopes []*RoleScope `protobuf:"bytes,4,rep,name=role_scopes,json=roleScopes,proto3" json:"role_scopes,omitempty"`
|
|
Roles map[string]*Role `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetRoleScopesResponse) Reset() {
|
|
*x = GetRoleScopesResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetRoleScopesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetRoleScopesResponse) ProtoMessage() {}
|
|
|
|
func (x *GetRoleScopesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetRoleScopesResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetRoleScopesResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *GetRoleScopesResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetRoleScopesResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetRoleScopesResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetRoleScopesResponse) GetRoleScopes() []*RoleScope {
|
|
if x != nil {
|
|
return x.RoleScopes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetRoleScopesResponse) GetRoles() map[string]*Role {
|
|
if x != nil {
|
|
return x.Roles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Lookup struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Lookup) Reset() {
|
|
*x = Lookup{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Lookup) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Lookup) ProtoMessage() {}
|
|
|
|
func (x *Lookup) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 Lookup.ProtoReflect.Descriptor instead.
|
|
func (*Lookup) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *Lookup) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Lookup) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Lookup) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
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_admin_proto_msgTypes[25]
|
|
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_admin_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 Scope.ProtoReflect.Descriptor instead.
|
|
func (*Scope) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
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 GetUserWithRolesRequest 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"`
|
|
UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
IncludeInactive bool `protobuf:"varint,4,opt,name=include_inactive,json=includeInactive,proto3" json:"include_inactive,omitempty"`
|
|
ScopeCodes []string `protobuf:"bytes,5,rep,name=scope_codes,json=scopeCodes,proto3" json:"scope_codes,omitempty"`
|
|
RoleNames []string `protobuf:"bytes,6,rep,name=role_names,json=roleNames,proto3" json:"role_names,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserWithRolesRequest) Reset() {
|
|
*x = GetUserWithRolesRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[26]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserWithRolesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserWithRolesRequest) ProtoMessage() {}
|
|
|
|
func (x *GetUserWithRolesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetUserWithRolesRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUserWithRolesRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{26}
|
|
}
|
|
|
|
func (x *GetUserWithRolesRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserWithRolesRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserWithRolesRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserWithRolesRequest) GetIncludeInactive() bool {
|
|
if x != nil {
|
|
return x.IncludeInactive
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetUserWithRolesRequest) GetScopeCodes() []string {
|
|
if x != nil {
|
|
return x.ScopeCodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetUserWithRolesRequest) GetRoleNames() []string {
|
|
if x != nil {
|
|
return x.RoleNames
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetUserWithRolesResponse 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.admin.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"`
|
|
Roles map[string]*Role `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
AssignedRoles []*UserRole `protobuf:"bytes,6,rep,name=assigned_roles,json=assignedRoles,proto3" json:"assigned_roles,omitempty"`
|
|
Scopes map[string]*Scope `protobuf:"bytes,7,rep,name=scopes,proto3" json:"scopes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
Actors map[string]*User `protobuf:"bytes,8,rep,name=actors,proto3" json:"actors,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserWithRolesResponse) Reset() {
|
|
*x = GetUserWithRolesResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[27]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserWithRolesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserWithRolesResponse) ProtoMessage() {}
|
|
|
|
func (x *GetUserWithRolesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetUserWithRolesResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetUserWithRolesResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{27}
|
|
}
|
|
|
|
func (x *GetUserWithRolesResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetUserWithRolesResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetUserWithRolesResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserWithRolesResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetUserWithRolesResponse) GetRoles() map[string]*Role {
|
|
if x != nil {
|
|
return x.Roles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetUserWithRolesResponse) GetAssignedRoles() []*UserRole {
|
|
if x != nil {
|
|
return x.AssignedRoles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetUserWithRolesResponse) GetScopes() map[string]*Scope {
|
|
if x != nil {
|
|
return x.Scopes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetUserWithRolesResponse) GetActors() map[string]*User {
|
|
if x != nil {
|
|
return x.Actors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UserRole 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"`
|
|
ScopeCode string `protobuf:"bytes,4,opt,name=scope_code,json=scopeCode,proto3" json:"scope_code,omitempty"`
|
|
TargetId *string `protobuf:"bytes,5,opt,name=target_id,json=targetId,proto3,oneof" json:"target_id,omitempty"`
|
|
IsActive bool `protobuf:"varint,6,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
CreatedBy string `protobuf:"bytes,12,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
|
|
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
UpdatedBy string `protobuf:"bytes,14,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
|
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
DeletedAt *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
|
|
DeletedBy *string `protobuf:"bytes,17,opt,name=deleted_by,json=deletedBy,proto3,oneof" json:"deleted_by,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserRole) Reset() {
|
|
*x = UserRole{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[28]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserRole) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserRole) ProtoMessage() {}
|
|
|
|
func (x *UserRole) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 UserRole.ProtoReflect.Descriptor instead.
|
|
func (*UserRole) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{28}
|
|
}
|
|
|
|
func (x *UserRole) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserRole) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserRole) GetRoleId() string {
|
|
if x != nil {
|
|
return x.RoleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserRole) GetScopeCode() string {
|
|
if x != nil {
|
|
return x.ScopeCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserRole) GetTargetId() string {
|
|
if x != nil && x.TargetId != nil {
|
|
return *x.TargetId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserRole) GetIsActive() bool {
|
|
if x != nil {
|
|
return x.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UserRole) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserRole) GetCreatedBy() string {
|
|
if x != nil {
|
|
return x.CreatedBy
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserRole) GetUpdatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserRole) GetUpdatedBy() string {
|
|
if x != nil {
|
|
return x.UpdatedBy
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserRole) GetExpiresAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserRole) GetDeletedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.DeletedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserRole) GetDeletedBy() string {
|
|
if x != nil && x.DeletedBy != nil {
|
|
return *x.DeletedBy
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetUsersRequest 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"`
|
|
UserIds []string `protobuf:"bytes,3,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUsersRequest) Reset() {
|
|
*x = GetUsersRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[29]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUsersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUsersRequest) ProtoMessage() {}
|
|
|
|
func (x *GetUsersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetUsersRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUsersRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{29}
|
|
}
|
|
|
|
func (x *GetUsersRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUsersRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUsersRequest) GetUserIds() []string {
|
|
if x != nil {
|
|
return x.UserIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UsersResponse 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.admin.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UsersResponse) Reset() {
|
|
*x = UsersResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[30]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UsersResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UsersResponse) ProtoMessage() {}
|
|
|
|
func (x *UsersResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 UsersResponse.ProtoReflect.Descriptor instead.
|
|
func (*UsersResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{30}
|
|
}
|
|
|
|
func (x *UsersResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UsersResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *UsersResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UsersResponse) GetUsers() []*User {
|
|
if x != nil {
|
|
return x.Users
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetAssignableRolesRequest 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"`
|
|
UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAssignableRolesRequest) Reset() {
|
|
*x = GetAssignableRolesRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[31]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAssignableRolesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAssignableRolesRequest) ProtoMessage() {}
|
|
|
|
func (x *GetAssignableRolesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetAssignableRolesRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetAssignableRolesRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{31}
|
|
}
|
|
|
|
func (x *GetAssignableRolesRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetAssignableRolesRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetAssignableRolesRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ScopeList struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ScopeCodes []string `protobuf:"bytes,1,rep,name=scope_codes,json=scopeCodes,proto3" json:"scope_codes,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ScopeList) Reset() {
|
|
*x = ScopeList{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[32]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ScopeList) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ScopeList) ProtoMessage() {}
|
|
|
|
func (x *ScopeList) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 ScopeList.ProtoReflect.Descriptor instead.
|
|
func (*ScopeList) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{32}
|
|
}
|
|
|
|
func (x *ScopeList) GetScopeCodes() []string {
|
|
if x != nil {
|
|
return x.ScopeCodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetAssignableRolesResponse 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.admin.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Roles []*RoleScopeTarget `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
|
|
Scopes []*Scope `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"`
|
|
RoleScopes map[string]*ScopeList `protobuf:"bytes,6,rep,name=role_scopes,json=roleScopes,proto3" json:"role_scopes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAssignableRolesResponse) Reset() {
|
|
*x = GetAssignableRolesResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[33]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAssignableRolesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAssignableRolesResponse) ProtoMessage() {}
|
|
|
|
func (x *GetAssignableRolesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetAssignableRolesResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetAssignableRolesResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{33}
|
|
}
|
|
|
|
func (x *GetAssignableRolesResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetAssignableRolesResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetAssignableRolesResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetAssignableRolesResponse) GetRoles() []*RoleScopeTarget {
|
|
if x != nil {
|
|
return x.Roles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetAssignableRolesResponse) GetScopes() []*Scope {
|
|
if x != nil {
|
|
return x.Scopes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetAssignableRolesResponse) GetRoleScopes() map[string]*ScopeList {
|
|
if x != nil {
|
|
return x.RoleScopes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RoleScopeTarget struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
|
|
Scope *Scope `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"`
|
|
TargetId string `protobuf:"bytes,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
|
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RoleScopeTarget) Reset() {
|
|
*x = RoleScopeTarget{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[34]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RoleScopeTarget) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RoleScopeTarget) ProtoMessage() {}
|
|
|
|
func (x *RoleScopeTarget) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 RoleScopeTarget.ProtoReflect.Descriptor instead.
|
|
func (*RoleScopeTarget) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{34}
|
|
}
|
|
|
|
func (x *RoleScopeTarget) GetRole() *Role {
|
|
if x != nil {
|
|
return x.Role
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RoleScopeTarget) GetScope() *Scope {
|
|
if x != nil {
|
|
return x.Scope
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RoleScopeTarget) GetTargetId() string {
|
|
if x != nil {
|
|
return x.TargetId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RoleScopeTarget) GetExpiresAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetRoleDetailsRequest 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"`
|
|
RoleId string `protobuf:"bytes,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetRoleDetailsRequest) Reset() {
|
|
*x = GetRoleDetailsRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[35]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetRoleDetailsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetRoleDetailsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetRoleDetailsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetRoleDetailsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetRoleDetailsRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{35}
|
|
}
|
|
|
|
func (x *GetRoleDetailsRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetRoleDetailsRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetRoleDetailsRequest) GetRoleId() string {
|
|
if x != nil {
|
|
return x.RoleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RoleScope struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
|
|
ScopeCode string `protobuf:"bytes,3,opt,name=scope_code,json=scopeCode,proto3" json:"scope_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 *RoleScope) Reset() {
|
|
*x = RoleScope{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[36]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RoleScope) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RoleScope) ProtoMessage() {}
|
|
|
|
func (x *RoleScope) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 RoleScope.ProtoReflect.Descriptor instead.
|
|
func (*RoleScope) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{36}
|
|
}
|
|
|
|
func (x *RoleScope) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RoleScope) GetRoleId() string {
|
|
if x != nil {
|
|
return x.RoleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RoleScope) GetScopeCode() string {
|
|
if x != nil {
|
|
return x.ScopeCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RoleScope) GetIsActive() bool {
|
|
if x != nil {
|
|
return x.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
type GetRoleDetailsResponse 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.admin.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Role *Role `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"`
|
|
AssignedRoles []*UserRole `protobuf:"bytes,5,rep,name=assigned_roles,json=assignedRoles,proto3" json:"assigned_roles,omitempty"`
|
|
Scopes []*Scope `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"`
|
|
Actors []*User `protobuf:"bytes,7,rep,name=actors,proto3" json:"actors,omitempty"`
|
|
RoleScopes []*RoleScope `protobuf:"bytes,8,rep,name=role_scopes,json=roleScopes,proto3" json:"role_scopes,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetRoleDetailsResponse) Reset() {
|
|
*x = GetRoleDetailsResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[37]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetRoleDetailsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetRoleDetailsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetRoleDetailsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetRoleDetailsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetRoleDetailsResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{37}
|
|
}
|
|
|
|
func (x *GetRoleDetailsResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetRoleDetailsResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetRoleDetailsResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetRoleDetailsResponse) GetRole() *Role {
|
|
if x != nil {
|
|
return x.Role
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetRoleDetailsResponse) GetAssignedRoles() []*UserRole {
|
|
if x != nil {
|
|
return x.AssignedRoles
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetRoleDetailsResponse) GetScopes() []*Scope {
|
|
if x != nil {
|
|
return x.Scopes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetRoleDetailsResponse) GetActors() []*User {
|
|
if x != nil {
|
|
return x.Actors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetRoleDetailsResponse) GetRoleScopes() []*RoleScope {
|
|
if x != nil {
|
|
return x.RoleScopes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetRoleRequest 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"`
|
|
RoleId string `protobuf:"bytes,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetRoleRequest) Reset() {
|
|
*x = GetRoleRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[38]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetRoleRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetRoleRequest) ProtoMessage() {}
|
|
|
|
func (x *GetRoleRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetRoleRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetRoleRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{38}
|
|
}
|
|
|
|
func (x *GetRoleRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetRoleRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetRoleRequest) GetRoleId() string {
|
|
if x != nil {
|
|
return x.RoleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetRoleResponse 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.admin.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Role *Role `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetRoleResponse) Reset() {
|
|
*x = GetRoleResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[39]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetRoleResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetRoleResponse) ProtoMessage() {}
|
|
|
|
func (x *GetRoleResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetRoleResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetRoleResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{39}
|
|
}
|
|
|
|
func (x *GetRoleResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetRoleResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetRoleResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetRoleResponse) GetRole() *Role {
|
|
if x != nil {
|
|
return x.Role
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetUserRoleRequest 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"`
|
|
UserRoleId string `protobuf:"bytes,3,opt,name=user_role_id,json=userRoleId,proto3" json:"user_role_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserRoleRequest) Reset() {
|
|
*x = GetUserRoleRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[40]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserRoleRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserRoleRequest) ProtoMessage() {}
|
|
|
|
func (x *GetUserRoleRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetUserRoleRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUserRoleRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{40}
|
|
}
|
|
|
|
func (x *GetUserRoleRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserRoleRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserRoleRequest) GetUserRoleId() string {
|
|
if x != nil {
|
|
return x.UserRoleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetUserRoleResponse 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.admin.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
UserRole *UserRole `protobuf:"bytes,4,opt,name=user_role,json=userRole,proto3" json:"user_role,omitempty"`
|
|
Role *Role `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"`
|
|
Scope *Scope `protobuf:"bytes,6,opt,name=scope,proto3" json:"scope,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserRoleResponse) Reset() {
|
|
*x = GetUserRoleResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[41]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserRoleResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserRoleResponse) ProtoMessage() {}
|
|
|
|
func (x *GetUserRoleResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetUserRoleResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetUserRoleResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{41}
|
|
}
|
|
|
|
func (x *GetUserRoleResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetUserRoleResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetUserRoleResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserRoleResponse) GetUserRole() *UserRole {
|
|
if x != nil {
|
|
return x.UserRole
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetUserRoleResponse) GetRole() *Role {
|
|
if x != nil {
|
|
return x.Role
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetUserRoleResponse) GetScope() *Scope {
|
|
if x != nil {
|
|
return x.Scope
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdateUserInfoRequest 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"`
|
|
UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
FirstNames *string `protobuf:"bytes,4,opt,name=first_names,json=firstNames,proto3,oneof" json:"first_names,omitempty"`
|
|
LastName *string `protobuf:"bytes,5,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,7,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"`
|
|
Handle *string `protobuf:"bytes,8,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_admin_proto_msgTypes[42]
|
|
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_admin_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 UpdateUserInfoRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{42}
|
|
}
|
|
|
|
func (x *UpdateUserInfoRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserInfoRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserInfoRequest) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
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.admin.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_admin_proto_msgTypes[43]
|
|
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_admin_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 UpdateUserInfoResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdateUserInfoResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{43}
|
|
}
|
|
|
|
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 GetScopeAncestorsRequest 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"`
|
|
ScopeCode string `protobuf:"bytes,3,opt,name=scope_code,json=scopeCode,proto3" json:"scope_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetScopeAncestorsRequest) Reset() {
|
|
*x = GetScopeAncestorsRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[44]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetScopeAncestorsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetScopeAncestorsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetScopeAncestorsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetScopeAncestorsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetScopeAncestorsRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{44}
|
|
}
|
|
|
|
func (x *GetScopeAncestorsRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetScopeAncestorsRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetScopeAncestorsRequest) GetScopeCode() string {
|
|
if x != nil {
|
|
return x.ScopeCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetScopeAncestorsResponse 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.admin.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Ancestors []*Scope `protobuf:"bytes,4,rep,name=ancestors,proto3" json:"ancestors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetScopeAncestorsResponse) Reset() {
|
|
*x = GetScopeAncestorsResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[45]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetScopeAncestorsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetScopeAncestorsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetScopeAncestorsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetScopeAncestorsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetScopeAncestorsResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{45}
|
|
}
|
|
|
|
func (x *GetScopeAncestorsResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetScopeAncestorsResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetScopeAncestorsResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetScopeAncestorsResponse) GetAncestors() []*Scope {
|
|
if x != nil {
|
|
return x.Ancestors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetScopeDescendantsRequest 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"`
|
|
ScopeCode string `protobuf:"bytes,3,opt,name=scope_code,json=scopeCode,proto3" json:"scope_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetScopeDescendantsRequest) Reset() {
|
|
*x = GetScopeDescendantsRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[46]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetScopeDescendantsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetScopeDescendantsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetScopeDescendantsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetScopeDescendantsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetScopeDescendantsRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{46}
|
|
}
|
|
|
|
func (x *GetScopeDescendantsRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetScopeDescendantsRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetScopeDescendantsRequest) GetScopeCode() string {
|
|
if x != nil {
|
|
return x.ScopeCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetScopeDescendantsResponse 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.admin.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Descendants []*Scope `protobuf:"bytes,4,rep,name=descendants,proto3" json:"descendants,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetScopeDescendantsResponse) Reset() {
|
|
*x = GetScopeDescendantsResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[47]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetScopeDescendantsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetScopeDescendantsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetScopeDescendantsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetScopeDescendantsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetScopeDescendantsResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{47}
|
|
}
|
|
|
|
func (x *GetScopeDescendantsResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetScopeDescendantsResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetScopeDescendantsResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetScopeDescendantsResponse) GetDescendants() []*Scope {
|
|
if x != nil {
|
|
return x.Descendants
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetAssignableTargetsRequest 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"`
|
|
ScopeCode string `protobuf:"bytes,3,opt,name=scope_code,json=scopeCode,proto3" json:"scope_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAssignableTargetsRequest) Reset() {
|
|
*x = GetAssignableTargetsRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[48]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAssignableTargetsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAssignableTargetsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetAssignableTargetsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetAssignableTargetsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetAssignableTargetsRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{48}
|
|
}
|
|
|
|
func (x *GetAssignableTargetsRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetAssignableTargetsRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetAssignableTargetsRequest) GetScopeCode() string {
|
|
if x != nil {
|
|
return x.ScopeCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetAssignableTargetsResponse 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.admin.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
TargetIds []string `protobuf:"bytes,4,rep,name=target_ids,json=targetIds,proto3" json:"target_ids,omitempty"`
|
|
AllTargetsPermissible bool `protobuf:"varint,5,opt,name=all_targets_permissible,json=allTargetsPermissible,proto3" json:"all_targets_permissible,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAssignableTargetsResponse) Reset() {
|
|
*x = GetAssignableTargetsResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[49]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAssignableTargetsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAssignableTargetsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetAssignableTargetsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetAssignableTargetsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetAssignableTargetsResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{49}
|
|
}
|
|
|
|
func (x *GetAssignableTargetsResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetAssignableTargetsResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetAssignableTargetsResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetAssignableTargetsResponse) GetTargetIds() []string {
|
|
if x != nil {
|
|
return x.TargetIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetAssignableTargetsResponse) GetAllTargetsPermissible() bool {
|
|
if x != nil {
|
|
return x.AllTargetsPermissible
|
|
}
|
|
return false
|
|
}
|
|
|
|
type GetUsersByRoleRequest 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"`
|
|
RoleId string `protobuf:"bytes,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
|
|
ScopeCode *string `protobuf:"bytes,4,opt,name=scope_code,json=scopeCode,proto3,oneof" json:"scope_code,omitempty"`
|
|
TargetId *string `protobuf:"bytes,5,opt,name=target_id,json=targetId,proto3,oneof" json:"target_id,omitempty"`
|
|
IncludeInactive bool `protobuf:"varint,6,opt,name=include_inactive,json=includeInactive,proto3" json:"include_inactive,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUsersByRoleRequest) Reset() {
|
|
*x = GetUsersByRoleRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[50]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUsersByRoleRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUsersByRoleRequest) ProtoMessage() {}
|
|
|
|
func (x *GetUsersByRoleRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetUsersByRoleRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUsersByRoleRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{50}
|
|
}
|
|
|
|
func (x *GetUsersByRoleRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUsersByRoleRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUsersByRoleRequest) GetRoleId() string {
|
|
if x != nil {
|
|
return x.RoleId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUsersByRoleRequest) GetScopeCode() string {
|
|
if x != nil && x.ScopeCode != nil {
|
|
return *x.ScopeCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUsersByRoleRequest) GetTargetId() string {
|
|
if x != nil && x.TargetId != nil {
|
|
return *x.TargetId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUsersByRoleRequest) GetIncludeInactive() bool {
|
|
if x != nil {
|
|
return x.IncludeInactive
|
|
}
|
|
return false
|
|
}
|
|
|
|
type GetUsersByRoleResponse 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.admin.ResultCode" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
Users []*User `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"`
|
|
Total int32 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUsersByRoleResponse) Reset() {
|
|
*x = GetUsersByRoleResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[51]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUsersByRoleResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUsersByRoleResponse) ProtoMessage() {}
|
|
|
|
func (x *GetUsersByRoleResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 GetUsersByRoleResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetUsersByRoleResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{51}
|
|
}
|
|
|
|
func (x *GetUsersByRoleResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetUsersByRoleResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *GetUsersByRoleResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUsersByRoleResponse) GetUsers() []*User {
|
|
if x != nil {
|
|
return x.Users
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetUsersByRoleResponse) GetTotal() int32 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateUserRequest 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"`
|
|
Email *string `protobuf:"bytes,3,opt,name=email,proto3,oneof" json:"email,omitempty"`
|
|
Phone *string `protobuf:"bytes,4,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
|
|
FirstNames string `protobuf:"bytes,5,opt,name=first_names,json=firstNames,proto3" json:"first_names,omitempty"`
|
|
LastName string `protobuf:"bytes,6,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
|
|
ProfilePictureUrl string `protobuf:"bytes,7,opt,name=profile_picture_url,json=profilePictureUrl,proto3" json:"profile_picture_url,omitempty"`
|
|
Password *string `protobuf:"bytes,8,opt,name=password,proto3,oneof" json:"password,omitempty"` // Optional, if not provided, a random password will be generated and returned.
|
|
DateOfBirth *Date `protobuf:"bytes,9,opt,name=date_of_birth,json=dateOfBirth,proto3,oneof" json:"date_of_birth,omitempty"`
|
|
Handle *string `protobuf:"bytes,10,opt,name=handle,proto3,oneof" json:"handle,omitempty"` // Optional unique handle (e.g., @username)
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateUserRequest) Reset() {
|
|
*x = CreateUserRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[52]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateUserRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateUserRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 CreateUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{52}
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetActorId() string {
|
|
if x != nil {
|
|
return x.ActorId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetActorToken() string {
|
|
if x != nil {
|
|
return x.ActorToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetEmail() string {
|
|
if x != nil && x.Email != nil {
|
|
return *x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetPhone() string {
|
|
if x != nil && x.Phone != nil {
|
|
return *x.Phone
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetFirstNames() string {
|
|
if x != nil {
|
|
return x.FirstNames
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetLastName() string {
|
|
if x != nil {
|
|
return x.LastName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetProfilePictureUrl() string {
|
|
if x != nil {
|
|
return x.ProfilePictureUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetPassword() string {
|
|
if x != nil && x.Password != nil {
|
|
return *x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetDateOfBirth() *Date {
|
|
if x != nil {
|
|
return x.DateOfBirth
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetHandle() string {
|
|
if x != nil && x.Handle != nil {
|
|
return *x.Handle
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateUserResponse 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.admin.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"`
|
|
Password *string `protobuf:"bytes,5,opt,name=password,proto3,oneof" json:"password,omitempty"` // Only returned if a new password was generated
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateUserResponse) Reset() {
|
|
*x = CreateUserResponse{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[53]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateUserResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateUserResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_st_peter_admin_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 CreateUserResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateUserResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{53}
|
|
}
|
|
|
|
func (x *CreateUserResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CreateUserResponse) GetResultCode() ResultCode {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ResultCode_RESULT_CODE_SUCCESS
|
|
}
|
|
|
|
func (x *CreateUserResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateUserResponse) GetPassword() string {
|
|
if x != nil && x.Password != nil {
|
|
return *x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
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"`
|
|
ApplicationVersion string `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"`
|
|
DeviceName string `protobuf:"bytes,3,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`
|
|
DeviceType string `protobuf:"bytes,4,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
|
|
DeviceOs string `protobuf:"bytes,5,opt,name=device_os,json=deviceOs,proto3" json:"device_os,omitempty"`
|
|
DeviceOsVersion string `protobuf:"bytes,6,opt,name=device_os_version,json=deviceOsVersion,proto3" json:"device_os_version,omitempty"`
|
|
DeviceId string `protobuf:"bytes,7,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeviceInfo) Reset() {
|
|
*x = DeviceInfo{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[54]
|
|
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_admin_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 DeviceInfo.ProtoReflect.Descriptor instead.
|
|
func (*DeviceInfo) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{54}
|
|
}
|
|
|
|
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 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_admin_proto_msgTypes[55]
|
|
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_admin_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 UserSession.ProtoReflect.Descriptor instead.
|
|
func (*UserSession) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{55}
|
|
}
|
|
|
|
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"`
|
|
UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The user whose sessions to retrieve
|
|
Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"`
|
|
Size int32 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserSessionsRequest) Reset() {
|
|
*x = GetUserSessionsRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[56]
|
|
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_admin_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 GetUserSessionsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUserSessionsRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{56}
|
|
}
|
|
|
|
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) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
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.admin.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_admin_proto_msgTypes[57]
|
|
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_admin_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 GetUserSessionsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetUserSessionsResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{57}
|
|
}
|
|
|
|
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"`
|
|
UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The user whose sessions should be cleared
|
|
SessionIds []string `protobuf:"bytes,4,rep,name=session_ids,json=sessionIds,proto3" json:"session_ids,omitempty"` // If empty, clears all sessions for the user
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ClearUserSessionsRequest) Reset() {
|
|
*x = ClearUserSessionsRequest{}
|
|
mi := &file_st_peter_admin_proto_msgTypes[58]
|
|
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_admin_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 ClearUserSessionsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ClearUserSessionsRequest) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{58}
|
|
}
|
|
|
|
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) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
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.admin.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_admin_proto_msgTypes[59]
|
|
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_admin_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 ClearUserSessionsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ClearUserSessionsResponse) Descriptor() ([]byte, []int) {
|
|
return file_st_peter_admin_proto_rawDescGZIP(), []int{59}
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
var File_st_peter_admin_proto protoreflect.FileDescriptor
|
|
|
|
const file_st_peter_admin_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x14st-peter-admin.proto\x12\x0est_peter.admin\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\"\xe9\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\x12>\n" +
|
|
"\n" +
|
|
"last_login\x18\r \x01(\v2\x1a.google.protobuf.TimestampH\x01R\tlastLogin\x88\x01\x01\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\x128\n" +
|
|
"\rdate_of_birth\x18\x17 \x01(\v2\x14.st_peter.admin.DateR\vdateOfBirth\x12\x18\n" +
|
|
"\aversion\x18\x18 \x01(\x03R\aversion\x12F\n" +
|
|
"\x0fsocial_accounts\x18\x1e \x03(\v2\x1d.st_peter.admin.SocialAccountR\x0esocialAccountsB\t\n" +
|
|
"\a_handleB\r\n" +
|
|
"\v_last_login\"\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\"\xb3\x01\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\"\x99\x01\n" +
|
|
"\x13RegisterUserRequest\x12\x14\n" +
|
|
"\x05email\x18\x01 \x01(\tR\x05email\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x14\n" +
|
|
"\x05phone\x18\x03 \x01(\tR\x05phone\x12\x1d\n" +
|
|
"\n" +
|
|
"first_name\x18\x04 \x01(\tR\tfirstName\x12\x1b\n" +
|
|
"\tlast_name\x18\x05 \x01(\tR\blastName\"\xa9\x01\n" +
|
|
"\fUserResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12(\n" +
|
|
"\x04user\x18\x04 \x01(\v2\x14.st_peter.admin.UserR\x04user\"@\n" +
|
|
"\fLoginRequest\x12\x14\n" +
|
|
"\x05email\x18\x01 \x01(\tR\x05email\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\"\xc9\x01\n" +
|
|
"\x16AuthenticationResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12\x14\n" +
|
|
"\x05token\x18\x04 \x01(\tR\x05token\x12(\n" +
|
|
"\x04user\x18\x05 \x01(\v2\x14.st_peter.admin.UserR\x04user\"e\n" +
|
|
"\x0eGetUserRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x19\n" +
|
|
"\bactor_id\x18\v \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\f \x01(\tR\n" +
|
|
"actorToken\"\xa6\x01\n" +
|
|
"\x1aGetUsersByUsernamesRequest\x12'\n" +
|
|
"\x0femail_addresses\x18\x02 \x03(\tR\x0eemailAddresses\x12#\n" +
|
|
"\rphone_numbers\x18\x03 \x03(\tR\fphoneNumbers\x12\x19\n" +
|
|
"\bactor_id\x18\v \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\f \x01(\tR\n" +
|
|
"actorToken\"\xc6\x01\n" +
|
|
"\x11DeleteUserRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x17\n" +
|
|
"\auser_id\x18\x03 \x01(\tR\x06userId\x12\x16\n" +
|
|
"\x06reason\x18\x04 \x01(\tR\x06reason\x12\x1d\n" +
|
|
"\n" +
|
|
"user_agent\x18\x05 \x01(\tR\tuserAgent\x12%\n" +
|
|
"\x0eunassign_roles\x18\x06 \x01(\bR\runassignRoles\"\xc5\x01\n" +
|
|
"\x12RestoreUserRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x17\n" +
|
|
"\auser_id\x18\x03 \x01(\tR\x06userId\x12\x16\n" +
|
|
"\x06reason\x18\x04 \x01(\tR\x06reason\x12\x1d\n" +
|
|
"\n" +
|
|
"user_agent\x18\x05 \x01(\tR\tuserAgent\x12#\n" +
|
|
"\rrestore_roles\x18\x06 \x01(\bR\frestoreRoles\"\xaa\x02\n" +
|
|
"\x11AssignRoleRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x17\n" +
|
|
"\auser_id\x18\x05 \x01(\tR\x06userId\x12\x17\n" +
|
|
"\arole_id\x18\x06 \x01(\tR\x06roleId\x12\x1d\n" +
|
|
"\n" +
|
|
"scope_code\x18\a \x01(\tR\tscopeCode\x12 \n" +
|
|
"\ttarget_id\x18\b \x01(\tH\x00R\btargetId\x88\x01\x01\x129\n" +
|
|
"\n" +
|
|
"expires_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x12\x1d\n" +
|
|
"\n" +
|
|
"session_id\x18\n" +
|
|
" \x01(\tR\tsessionIdB\f\n" +
|
|
"\n" +
|
|
"_target_id\"\xa4\x01\n" +
|
|
"\x13UnassignRoleRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x17\n" +
|
|
"\auser_id\x18\x05 \x01(\tR\x06userId\x12 \n" +
|
|
"\fuser_role_id\x18\x06 \x01(\tR\n" +
|
|
"userRoleId\x12\x16\n" +
|
|
"\x06reason\x18\a \x01(\tR\x06reason\"\x84\x01\n" +
|
|
"\x11OperationResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\"\x9e\x02\n" +
|
|
"\x12SearchUsersRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x19\n" +
|
|
"\x05email\x18\x03 \x01(\tH\x00R\x05email\x88\x01\x01\x12\x19\n" +
|
|
"\x05phone\x18\x04 \x01(\tH\x01R\x05phone\x88\x01\x01\x12\x1b\n" +
|
|
"\x06search\x18\v \x01(\tH\x02R\x06search\x88\x01\x01\x12\x12\n" +
|
|
"\x04page\x18\f \x01(\x05R\x04page\x12\x1b\n" +
|
|
"\tpage_size\x18\r \x01(\x05R\bpageSize\x12)\n" +
|
|
"\x10include_inactive\x18\x0e \x01(\bR\x0fincludeInactiveB\b\n" +
|
|
"\x06_emailB\b\n" +
|
|
"\x06_phoneB\t\n" +
|
|
"\a_search\"O\n" +
|
|
"\x11CountUsersRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\"{\n" +
|
|
"\x13TimeSeriesStatistic\x12\x14\n" +
|
|
"\x05count\x18\x01 \x01(\rR\x05count\x12\x12\n" +
|
|
"\x04year\x18\x03 \x01(\x03R\x04year\x12\x14\n" +
|
|
"\x05month\x18\x04 \x01(\rR\x05month\x12\x10\n" +
|
|
"\x03day\x18\x05 \x01(\rR\x03day\x12\x12\n" +
|
|
"\x04hour\x18\x06 \x01(\rR\x04hour\"\xd9\x02\n" +
|
|
"\x12CountUsersResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12\x1f\n" +
|
|
"\vgrand_total\x18\x04 \x01(\rR\n" +
|
|
"grandTotal\x127\n" +
|
|
"\fcurrent_date\x18\a \x01(\v2\x14.st_peter.admin.DateR\vcurrentDate\x129\n" +
|
|
"\x05daily\x18\x05 \x03(\v2#.st_peter.admin.TimeSeriesStatisticR\x05daily\x12=\n" +
|
|
"\amonthly\x18\x06 \x03(\v2#.st_peter.admin.TimeSeriesStatisticR\amonthly\"\xc8\x01\n" +
|
|
"\x13SearchUsersResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12*\n" +
|
|
"\x05users\x18\x04 \x03(\v2\x14.st_peter.admin.UserR\x05users\x12\x14\n" +
|
|
"\x05total\x18\x05 \x01(\x05R\x05total\"\x99\x01\n" +
|
|
"\x12SearchRolesRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x16\n" +
|
|
"\x06search\x18\v \x01(\tR\x06search\x12\x12\n" +
|
|
"\x04page\x18\f \x01(\x05R\x04page\x12\x1b\n" +
|
|
"\tpage_size\x18\r \x01(\x05R\bpageSize\"\xc8\x01\n" +
|
|
"\x13SearchRolesResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12*\n" +
|
|
"\x05roles\x18\x04 \x03(\v2\x14.st_peter.admin.RoleR\x05roles\x12\x14\n" +
|
|
"\x05total\x18\x05 \x01(\x05R\x05total\"\xaf\x01\n" +
|
|
"\x14GetRoleScopesRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x1c\n" +
|
|
"\arole_id\x18\x03 \x01(\tH\x00R\x06roleId\x88\x01\x01\x12\"\n" +
|
|
"\n" +
|
|
"scope_code\x18\x04 \x01(\tH\x01R\tscopeCode\x88\x01\x01B\n" +
|
|
"\n" +
|
|
"\b_role_idB\r\n" +
|
|
"\v_scope_code\"\xdc\x02\n" +
|
|
"\x15GetRoleScopesResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12:\n" +
|
|
"\vrole_scopes\x18\x04 \x03(\v2\x19.st_peter.admin.RoleScopeR\n" +
|
|
"roleScopes\x12F\n" +
|
|
"\x05roles\x18\x05 \x03(\v20.st_peter.admin.GetRoleScopesResponse.RolesEntryR\x05roles\x1aN\n" +
|
|
"\n" +
|
|
"RolesEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12*\n" +
|
|
"\x05value\x18\x02 \x01(\v2\x14.st_peter.admin.RoleR\x05value:\x028\x01\"R\n" +
|
|
"\x06Lookup\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\tR\x04code\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
|
|
"\vdescription\x18\x03 \x01(\tR\vdescription\"\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\"\xd9\x01\n" +
|
|
"\x17GetUserWithRolesRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x17\n" +
|
|
"\auser_id\x18\x03 \x01(\tR\x06userId\x12)\n" +
|
|
"\x10include_inactive\x18\x04 \x01(\bR\x0fincludeInactive\x12\x1f\n" +
|
|
"\vscope_codes\x18\x05 \x03(\tR\n" +
|
|
"scopeCodes\x12\x1d\n" +
|
|
"\n" +
|
|
"role_names\x18\x06 \x03(\tR\troleNames\"\xd0\x05\n" +
|
|
"\x18GetUserWithRolesResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12(\n" +
|
|
"\x04user\x18\x04 \x01(\v2\x14.st_peter.admin.UserR\x04user\x12I\n" +
|
|
"\x05roles\x18\x05 \x03(\v23.st_peter.admin.GetUserWithRolesResponse.RolesEntryR\x05roles\x12?\n" +
|
|
"\x0eassigned_roles\x18\x06 \x03(\v2\x18.st_peter.admin.UserRoleR\rassignedRoles\x12L\n" +
|
|
"\x06scopes\x18\a \x03(\v24.st_peter.admin.GetUserWithRolesResponse.ScopesEntryR\x06scopes\x12L\n" +
|
|
"\x06actors\x18\b \x03(\v24.st_peter.admin.GetUserWithRolesResponse.ActorsEntryR\x06actors\x1aN\n" +
|
|
"\n" +
|
|
"RolesEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12*\n" +
|
|
"\x05value\x18\x02 \x01(\v2\x14.st_peter.admin.RoleR\x05value:\x028\x01\x1aP\n" +
|
|
"\vScopesEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12+\n" +
|
|
"\x05value\x18\x02 \x01(\v2\x15.st_peter.admin.ScopeR\x05value:\x028\x01\x1aO\n" +
|
|
"\vActorsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12*\n" +
|
|
"\x05value\x18\x02 \x01(\v2\x14.st_peter.admin.UserR\x05value:\x028\x01\"\x95\x04\n" +
|
|
"\bUserRole\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\x1d\n" +
|
|
"\n" +
|
|
"scope_code\x18\x04 \x01(\tR\tscopeCode\x12 \n" +
|
|
"\ttarget_id\x18\x05 \x01(\tH\x00R\btargetId\x88\x01\x01\x12\x1b\n" +
|
|
"\tis_active\x18\x06 \x01(\bR\bisActive\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x1d\n" +
|
|
"\n" +
|
|
"created_by\x18\f \x01(\tR\tcreatedBy\x129\n" +
|
|
"\n" +
|
|
"updated_at\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x1d\n" +
|
|
"\n" +
|
|
"updated_by\x18\x0e \x01(\tR\tupdatedBy\x129\n" +
|
|
"\n" +
|
|
"expires_at\x18\x0f \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x129\n" +
|
|
"\n" +
|
|
"deleted_at\x18\x10 \x01(\v2\x1a.google.protobuf.TimestampR\tdeletedAt\x12\"\n" +
|
|
"\n" +
|
|
"deleted_by\x18\x11 \x01(\tH\x01R\tdeletedBy\x88\x01\x01B\f\n" +
|
|
"\n" +
|
|
"_target_idB\r\n" +
|
|
"\v_deleted_by\"h\n" +
|
|
"\x0fGetUsersRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x19\n" +
|
|
"\buser_ids\x18\x03 \x03(\tR\auserIds\"\xac\x01\n" +
|
|
"\rUsersResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12*\n" +
|
|
"\x05users\x18\x04 \x03(\v2\x14.st_peter.admin.UserR\x05users\"p\n" +
|
|
"\x19GetAssignableRolesRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x17\n" +
|
|
"\auser_id\x18\x03 \x01(\tR\x06userId\",\n" +
|
|
"\tScopeList\x12\x1f\n" +
|
|
"\vscope_codes\x18\x01 \x03(\tR\n" +
|
|
"scopeCodes\"\xaa\x03\n" +
|
|
"\x1aGetAssignableRolesResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x125\n" +
|
|
"\x05roles\x18\x04 \x03(\v2\x1f.st_peter.admin.RoleScopeTargetR\x05roles\x12-\n" +
|
|
"\x06scopes\x18\x05 \x03(\v2\x15.st_peter.admin.ScopeR\x06scopes\x12[\n" +
|
|
"\vrole_scopes\x18\x06 \x03(\v2:.st_peter.admin.GetAssignableRolesResponse.RoleScopesEntryR\n" +
|
|
"roleScopes\x1aX\n" +
|
|
"\x0fRoleScopesEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12/\n" +
|
|
"\x05value\x18\x02 \x01(\v2\x19.st_peter.admin.ScopeListR\x05value:\x028\x01\"\xc0\x01\n" +
|
|
"\x0fRoleScopeTarget\x12(\n" +
|
|
"\x04role\x18\x01 \x01(\v2\x14.st_peter.admin.RoleR\x04role\x12+\n" +
|
|
"\x05scope\x18\x02 \x01(\v2\x15.st_peter.admin.ScopeR\x05scope\x12\x1b\n" +
|
|
"\ttarget_id\x18\x03 \x01(\tR\btargetId\x129\n" +
|
|
"\n" +
|
|
"expires_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\"l\n" +
|
|
"\x15GetRoleDetailsRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x17\n" +
|
|
"\arole_id\x18\x03 \x01(\tR\x06roleId\"p\n" +
|
|
"\tRoleScope\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
|
|
"\arole_id\x18\x02 \x01(\tR\x06roleId\x12\x1d\n" +
|
|
"\n" +
|
|
"scope_code\x18\x03 \x01(\tR\tscopeCode\x12\x1b\n" +
|
|
"\tis_active\x18\x04 \x01(\bR\bisActive\"\x8d\x03\n" +
|
|
"\x16GetRoleDetailsResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12(\n" +
|
|
"\x04role\x18\x04 \x01(\v2\x14.st_peter.admin.RoleR\x04role\x12?\n" +
|
|
"\x0eassigned_roles\x18\x05 \x03(\v2\x18.st_peter.admin.UserRoleR\rassignedRoles\x12-\n" +
|
|
"\x06scopes\x18\x06 \x03(\v2\x15.st_peter.admin.ScopeR\x06scopes\x12,\n" +
|
|
"\x06actors\x18\a \x03(\v2\x14.st_peter.admin.UserR\x06actors\x12:\n" +
|
|
"\vrole_scopes\x18\b \x03(\v2\x19.st_peter.admin.RoleScopeR\n" +
|
|
"roleScopes\"e\n" +
|
|
"\x0eGetRoleRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x17\n" +
|
|
"\arole_id\x18\x03 \x01(\tR\x06roleId\"\xac\x01\n" +
|
|
"\x0fGetRoleResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12(\n" +
|
|
"\x04role\x18\x04 \x01(\v2\x14.st_peter.admin.RoleR\x04role\"r\n" +
|
|
"\x12GetUserRoleRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12 \n" +
|
|
"\fuser_role_id\x18\x03 \x01(\tR\n" +
|
|
"userRoleId\"\x94\x02\n" +
|
|
"\x13GetUserRoleResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x125\n" +
|
|
"\tuser_role\x18\x04 \x01(\v2\x18.st_peter.admin.UserRoleR\buserRole\x12(\n" +
|
|
"\x04role\x18\x05 \x01(\v2\x14.st_peter.admin.RoleR\x04role\x12+\n" +
|
|
"\x05scope\x18\x06 \x01(\v2\x15.st_peter.admin.ScopeR\x05scope\"\xfe\x02\n" +
|
|
"\x15UpdateUserInfoRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x17\n" +
|
|
"\auser_id\x18\x03 \x01(\tR\x06userId\x12$\n" +
|
|
"\vfirst_names\x18\x04 \x01(\tH\x00R\n" +
|
|
"firstNames\x88\x01\x01\x12 \n" +
|
|
"\tlast_name\x18\x05 \x01(\tH\x01R\blastName\x88\x01\x01\x121\n" +
|
|
"\x12profile_picture_id\x18\x06 \x01(\tH\x02R\x10profilePictureId\x88\x01\x01\x128\n" +
|
|
"\rdate_of_birth\x18\a \x01(\v2\x14.st_peter.admin.DateR\vdateOfBirth\x12\x1b\n" +
|
|
"\x06handle\x18\b \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\"\xb3\x01\n" +
|
|
"\x16UpdateUserInfoResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12(\n" +
|
|
"\x04user\x18\x04 \x01(\v2\x14.st_peter.admin.UserR\x04user\"u\n" +
|
|
"\x18GetScopeAncestorsRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x1d\n" +
|
|
"\n" +
|
|
"scope_code\x18\x03 \x01(\tR\tscopeCode\"\xc1\x01\n" +
|
|
"\x19GetScopeAncestorsResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x123\n" +
|
|
"\tancestors\x18\x04 \x03(\v2\x15.st_peter.admin.ScopeR\tancestors\"w\n" +
|
|
"\x1aGetScopeDescendantsRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x1d\n" +
|
|
"\n" +
|
|
"scope_code\x18\x03 \x01(\tR\tscopeCode\"\xc7\x01\n" +
|
|
"\x1bGetScopeDescendantsResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x127\n" +
|
|
"\vdescendants\x18\x04 \x03(\v2\x15.st_peter.admin.ScopeR\vdescendants\"x\n" +
|
|
"\x1bGetAssignableTargetsRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x1d\n" +
|
|
"\n" +
|
|
"scope_code\x18\x03 \x01(\tR\tscopeCode\"\xe6\x01\n" +
|
|
"\x1cGetAssignableTargetsResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12\x1d\n" +
|
|
"\n" +
|
|
"target_ids\x18\x04 \x03(\tR\ttargetIds\x126\n" +
|
|
"\x17all_targets_permissible\x18\x05 \x01(\bR\x15allTargetsPermissible\"\xfa\x01\n" +
|
|
"\x15GetUsersByRoleRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x17\n" +
|
|
"\arole_id\x18\x03 \x01(\tR\x06roleId\x12\"\n" +
|
|
"\n" +
|
|
"scope_code\x18\x04 \x01(\tH\x00R\tscopeCode\x88\x01\x01\x12 \n" +
|
|
"\ttarget_id\x18\x05 \x01(\tH\x01R\btargetId\x88\x01\x01\x12)\n" +
|
|
"\x10include_inactive\x18\x06 \x01(\bR\x0fincludeInactiveB\r\n" +
|
|
"\v_scope_codeB\f\n" +
|
|
"\n" +
|
|
"_target_id\"\xcb\x01\n" +
|
|
"\x16GetUsersByRoleResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12*\n" +
|
|
"\x05users\x18\x04 \x03(\v2\x14.st_peter.admin.UserR\x05users\x12\x14\n" +
|
|
"\x05total\x18\x05 \x01(\x05R\x05total\"\xae\x03\n" +
|
|
"\x11CreateUserRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x19\n" +
|
|
"\x05email\x18\x03 \x01(\tH\x00R\x05email\x88\x01\x01\x12\x19\n" +
|
|
"\x05phone\x18\x04 \x01(\tH\x01R\x05phone\x88\x01\x01\x12\x1f\n" +
|
|
"\vfirst_names\x18\x05 \x01(\tR\n" +
|
|
"firstNames\x12\x1b\n" +
|
|
"\tlast_name\x18\x06 \x01(\tR\blastName\x12.\n" +
|
|
"\x13profile_picture_url\x18\a \x01(\tR\x11profilePictureUrl\x12\x1f\n" +
|
|
"\bpassword\x18\b \x01(\tH\x02R\bpassword\x88\x01\x01\x12=\n" +
|
|
"\rdate_of_birth\x18\t \x01(\v2\x14.st_peter.admin.DateH\x03R\vdateOfBirth\x88\x01\x01\x12\x1b\n" +
|
|
"\x06handle\x18\n" +
|
|
" \x01(\tH\x04R\x06handle\x88\x01\x01B\b\n" +
|
|
"\x06_emailB\b\n" +
|
|
"\x06_phoneB\v\n" +
|
|
"\t_passwordB\x10\n" +
|
|
"\x0e_date_of_birthB\t\n" +
|
|
"\a_handle\"\xdd\x01\n" +
|
|
"\x12CreateUserResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12(\n" +
|
|
"\x04user\x18\x04 \x01(\v2\x14.st_peter.admin.UserR\x04user\x12\x1f\n" +
|
|
"\bpassword\x18\x05 \x01(\tH\x00R\bpassword\x88\x01\x01B\v\n" +
|
|
"\t_password\"\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\"\x85\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\x1a.st_peter.admin.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\"\x95\x01\n" +
|
|
"\x16GetUserSessionsRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x17\n" +
|
|
"\auser_id\x18\x03 \x01(\tR\x06userId\x12\x12\n" +
|
|
"\x04page\x18\x04 \x01(\x05R\x04page\x12\x12\n" +
|
|
"\x04size\x18\x05 \x01(\x05R\x04size\"\xd9\x01\n" +
|
|
"\x17GetUserSessionsResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x127\n" +
|
|
"\bsessions\x18\x04 \x03(\v2\x1b.st_peter.admin.UserSessionR\bsessions\x12\x14\n" +
|
|
"\x05total\x18\x05 \x01(\x05R\x05total\"\x90\x01\n" +
|
|
"\x18ClearUserSessionsRequest\x12\x19\n" +
|
|
"\bactor_id\x18\x01 \x01(\tR\aactorId\x12\x1f\n" +
|
|
"\vactor_token\x18\x02 \x01(\tR\n" +
|
|
"actorToken\x12\x17\n" +
|
|
"\auser_id\x18\x03 \x01(\tR\x06userId\x12\x1f\n" +
|
|
"\vsession_ids\x18\x04 \x03(\tR\n" +
|
|
"sessionIds\"\xb1\x01\n" +
|
|
"\x19ClearUserSessionsResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12;\n" +
|
|
"\vresult_code\x18\x02 \x01(\x0e2\x1a.st_peter.admin.ResultCodeR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12#\n" +
|
|
"\rcleared_count\x18\x04 \x01(\x05R\fclearedCount*\xbd\x01\n" +
|
|
"\n" +
|
|
"ResultCode\x12\x17\n" +
|
|
"\x13RESULT_CODE_SUCCESS\x10\x00\x12\x19\n" +
|
|
"\x15RESULT_CODE_BAD_INPUT\x10\x01\x12\x19\n" +
|
|
"\x15RESULT_CODE_NOT_FOUND\x10\x02\x12%\n" +
|
|
"!RESULT_CODE_INTERNAL_SERVER_ERROR\x10\x03\x12\x1e\n" +
|
|
"\x1aRESULT_CODE_NOT_AUTHORIZED\x10\x04\x12\x19\n" +
|
|
"\x15RESULT_CODE_FORBIDDEN\x10\x052\xe9\x11\n" +
|
|
"\x10AuthAdminService\x12G\n" +
|
|
"\aGetUser\x12\x1e.st_peter.admin.GetUserRequest\x1a\x1c.st_peter.admin.UserResponse\x12J\n" +
|
|
"\bGetUsers\x12\x1f.st_peter.admin.GetUsersRequest\x1a\x1d.st_peter.admin.UsersResponse\x12`\n" +
|
|
"\x13GetUsersByUsernames\x12*.st_peter.admin.GetUsersByUsernamesRequest\x1a\x1d.st_peter.admin.UsersResponse\x12R\n" +
|
|
"\n" +
|
|
"DeleteUser\x12!.st_peter.admin.DeleteUserRequest\x1a!.st_peter.admin.OperationResponse\x12T\n" +
|
|
"\vRestoreUser\x12\".st_peter.admin.RestoreUserRequest\x1a!.st_peter.admin.OperationResponse\x12_\n" +
|
|
"\x10AssignRoleToUser\x12!.st_peter.admin.AssignRoleRequest\x1a(.st_peter.admin.GetUserWithRolesResponse\x12e\n" +
|
|
"\x14UnassignRoleFromUser\x12#.st_peter.admin.UnassignRoleRequest\x1a(.st_peter.admin.GetUserWithRolesResponse\x12_\n" +
|
|
"\x0eGetRoleDetails\x12%.st_peter.admin.GetRoleDetailsRequest\x1a&.st_peter.admin.GetRoleDetailsResponse\x12J\n" +
|
|
"\aGetRole\x12\x1e.st_peter.admin.GetRoleRequest\x1a\x1f.st_peter.admin.GetRoleResponse\x12V\n" +
|
|
"\vGetUserRole\x12\".st_peter.admin.GetUserRoleRequest\x1a#.st_peter.admin.GetUserRoleResponse\x12V\n" +
|
|
"\vSearchUsers\x12\".st_peter.admin.SearchUsersRequest\x1a#.st_peter.admin.SearchUsersResponse\x12S\n" +
|
|
"\n" +
|
|
"CountUsers\x12!.st_peter.admin.CountUsersRequest\x1a\".st_peter.admin.CountUsersResponse\x12V\n" +
|
|
"\vSearchRoles\x12\".st_peter.admin.SearchRolesRequest\x1a#.st_peter.admin.SearchRolesResponse\x12\\\n" +
|
|
"\rGetRoleScopes\x12$.st_peter.admin.GetRoleScopesRequest\x1a%.st_peter.admin.GetRoleScopesResponse\x12e\n" +
|
|
"\x10GetUserWithRoles\x12'.st_peter.admin.GetUserWithRolesRequest\x1a(.st_peter.admin.GetUserWithRolesResponse\x12k\n" +
|
|
"\x12GetAssignableRoles\x12).st_peter.admin.GetAssignableRolesRequest\x1a*.st_peter.admin.GetAssignableRolesResponse\x12_\n" +
|
|
"\x0eUpdateUserInfo\x12%.st_peter.admin.UpdateUserInfoRequest\x1a&.st_peter.admin.UpdateUserInfoResponse\x12h\n" +
|
|
"\x11GetScopeAncestors\x12(.st_peter.admin.GetScopeAncestorsRequest\x1a).st_peter.admin.GetScopeAncestorsResponse\x12n\n" +
|
|
"\x13GetScopeDescendants\x12*.st_peter.admin.GetScopeDescendantsRequest\x1a+.st_peter.admin.GetScopeDescendantsResponse\x12q\n" +
|
|
"\x14GetAssignableTargets\x12+.st_peter.admin.GetAssignableTargetsRequest\x1a,.st_peter.admin.GetAssignableTargetsResponse\x12_\n" +
|
|
"\x0eGetUsersByRole\x12%.st_peter.admin.GetUsersByRoleRequest\x1a&.st_peter.admin.GetUsersByRoleResponse\x12S\n" +
|
|
"\n" +
|
|
"CreateUser\x12!.st_peter.admin.CreateUserRequest\x1a\".st_peter.admin.CreateUserResponse\x12b\n" +
|
|
"\x0fGetUserSessions\x12&.st_peter.admin.GetUserSessionsRequest\x1a'.st_peter.admin.GetUserSessionsResponse\x12h\n" +
|
|
"\x11ClearUserSessions\x12(.st_peter.admin.ClearUserSessionsRequest\x1a).st_peter.admin.ClearUserSessionsResponseB$Z\"nandie.com/pkg/;auth_admin_serviceb\x06proto3"
|
|
|
|
var (
|
|
file_st_peter_admin_proto_rawDescOnce sync.Once
|
|
file_st_peter_admin_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_st_peter_admin_proto_rawDescGZIP() []byte {
|
|
file_st_peter_admin_proto_rawDescOnce.Do(func() {
|
|
file_st_peter_admin_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_st_peter_admin_proto_rawDesc), len(file_st_peter_admin_proto_rawDesc)))
|
|
})
|
|
return file_st_peter_admin_proto_rawDescData
|
|
}
|
|
|
|
var file_st_peter_admin_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_st_peter_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 65)
|
|
var file_st_peter_admin_proto_goTypes = []any{
|
|
(ResultCode)(0), // 0: st_peter.admin.ResultCode
|
|
(*Date)(nil), // 1: st_peter.admin.Date
|
|
(*User)(nil), // 2: st_peter.admin.User
|
|
(*Role)(nil), // 3: st_peter.admin.Role
|
|
(*SocialAccount)(nil), // 4: st_peter.admin.SocialAccount
|
|
(*RegisterUserRequest)(nil), // 5: st_peter.admin.RegisterUserRequest
|
|
(*UserResponse)(nil), // 6: st_peter.admin.UserResponse
|
|
(*LoginRequest)(nil), // 7: st_peter.admin.LoginRequest
|
|
(*AuthenticationResponse)(nil), // 8: st_peter.admin.AuthenticationResponse
|
|
(*GetUserRequest)(nil), // 9: st_peter.admin.GetUserRequest
|
|
(*GetUsersByUsernamesRequest)(nil), // 10: st_peter.admin.GetUsersByUsernamesRequest
|
|
(*DeleteUserRequest)(nil), // 11: st_peter.admin.DeleteUserRequest
|
|
(*RestoreUserRequest)(nil), // 12: st_peter.admin.RestoreUserRequest
|
|
(*AssignRoleRequest)(nil), // 13: st_peter.admin.AssignRoleRequest
|
|
(*UnassignRoleRequest)(nil), // 14: st_peter.admin.UnassignRoleRequest
|
|
(*OperationResponse)(nil), // 15: st_peter.admin.OperationResponse
|
|
(*SearchUsersRequest)(nil), // 16: st_peter.admin.SearchUsersRequest
|
|
(*CountUsersRequest)(nil), // 17: st_peter.admin.CountUsersRequest
|
|
(*TimeSeriesStatistic)(nil), // 18: st_peter.admin.TimeSeriesStatistic
|
|
(*CountUsersResponse)(nil), // 19: st_peter.admin.CountUsersResponse
|
|
(*SearchUsersResponse)(nil), // 20: st_peter.admin.SearchUsersResponse
|
|
(*SearchRolesRequest)(nil), // 21: st_peter.admin.SearchRolesRequest
|
|
(*SearchRolesResponse)(nil), // 22: st_peter.admin.SearchRolesResponse
|
|
(*GetRoleScopesRequest)(nil), // 23: st_peter.admin.GetRoleScopesRequest
|
|
(*GetRoleScopesResponse)(nil), // 24: st_peter.admin.GetRoleScopesResponse
|
|
(*Lookup)(nil), // 25: st_peter.admin.Lookup
|
|
(*Scope)(nil), // 26: st_peter.admin.Scope
|
|
(*GetUserWithRolesRequest)(nil), // 27: st_peter.admin.GetUserWithRolesRequest
|
|
(*GetUserWithRolesResponse)(nil), // 28: st_peter.admin.GetUserWithRolesResponse
|
|
(*UserRole)(nil), // 29: st_peter.admin.UserRole
|
|
(*GetUsersRequest)(nil), // 30: st_peter.admin.GetUsersRequest
|
|
(*UsersResponse)(nil), // 31: st_peter.admin.UsersResponse
|
|
(*GetAssignableRolesRequest)(nil), // 32: st_peter.admin.GetAssignableRolesRequest
|
|
(*ScopeList)(nil), // 33: st_peter.admin.ScopeList
|
|
(*GetAssignableRolesResponse)(nil), // 34: st_peter.admin.GetAssignableRolesResponse
|
|
(*RoleScopeTarget)(nil), // 35: st_peter.admin.RoleScopeTarget
|
|
(*GetRoleDetailsRequest)(nil), // 36: st_peter.admin.GetRoleDetailsRequest
|
|
(*RoleScope)(nil), // 37: st_peter.admin.RoleScope
|
|
(*GetRoleDetailsResponse)(nil), // 38: st_peter.admin.GetRoleDetailsResponse
|
|
(*GetRoleRequest)(nil), // 39: st_peter.admin.GetRoleRequest
|
|
(*GetRoleResponse)(nil), // 40: st_peter.admin.GetRoleResponse
|
|
(*GetUserRoleRequest)(nil), // 41: st_peter.admin.GetUserRoleRequest
|
|
(*GetUserRoleResponse)(nil), // 42: st_peter.admin.GetUserRoleResponse
|
|
(*UpdateUserInfoRequest)(nil), // 43: st_peter.admin.UpdateUserInfoRequest
|
|
(*UpdateUserInfoResponse)(nil), // 44: st_peter.admin.UpdateUserInfoResponse
|
|
(*GetScopeAncestorsRequest)(nil), // 45: st_peter.admin.GetScopeAncestorsRequest
|
|
(*GetScopeAncestorsResponse)(nil), // 46: st_peter.admin.GetScopeAncestorsResponse
|
|
(*GetScopeDescendantsRequest)(nil), // 47: st_peter.admin.GetScopeDescendantsRequest
|
|
(*GetScopeDescendantsResponse)(nil), // 48: st_peter.admin.GetScopeDescendantsResponse
|
|
(*GetAssignableTargetsRequest)(nil), // 49: st_peter.admin.GetAssignableTargetsRequest
|
|
(*GetAssignableTargetsResponse)(nil), // 50: st_peter.admin.GetAssignableTargetsResponse
|
|
(*GetUsersByRoleRequest)(nil), // 51: st_peter.admin.GetUsersByRoleRequest
|
|
(*GetUsersByRoleResponse)(nil), // 52: st_peter.admin.GetUsersByRoleResponse
|
|
(*CreateUserRequest)(nil), // 53: st_peter.admin.CreateUserRequest
|
|
(*CreateUserResponse)(nil), // 54: st_peter.admin.CreateUserResponse
|
|
(*DeviceInfo)(nil), // 55: st_peter.admin.DeviceInfo
|
|
(*UserSession)(nil), // 56: st_peter.admin.UserSession
|
|
(*GetUserSessionsRequest)(nil), // 57: st_peter.admin.GetUserSessionsRequest
|
|
(*GetUserSessionsResponse)(nil), // 58: st_peter.admin.GetUserSessionsResponse
|
|
(*ClearUserSessionsRequest)(nil), // 59: st_peter.admin.ClearUserSessionsRequest
|
|
(*ClearUserSessionsResponse)(nil), // 60: st_peter.admin.ClearUserSessionsResponse
|
|
nil, // 61: st_peter.admin.GetRoleScopesResponse.RolesEntry
|
|
nil, // 62: st_peter.admin.GetUserWithRolesResponse.RolesEntry
|
|
nil, // 63: st_peter.admin.GetUserWithRolesResponse.ScopesEntry
|
|
nil, // 64: st_peter.admin.GetUserWithRolesResponse.ActorsEntry
|
|
nil, // 65: st_peter.admin.GetAssignableRolesResponse.RoleScopesEntry
|
|
(*timestamppb.Timestamp)(nil), // 66: google.protobuf.Timestamp
|
|
}
|
|
var file_st_peter_admin_proto_depIdxs = []int32{
|
|
66, // 0: st_peter.admin.User.created_at:type_name -> google.protobuf.Timestamp
|
|
66, // 1: st_peter.admin.User.updated_at:type_name -> google.protobuf.Timestamp
|
|
66, // 2: st_peter.admin.User.deleted_at:type_name -> google.protobuf.Timestamp
|
|
66, // 3: st_peter.admin.User.last_login:type_name -> google.protobuf.Timestamp
|
|
1, // 4: st_peter.admin.User.date_of_birth:type_name -> st_peter.admin.Date
|
|
4, // 5: st_peter.admin.User.social_accounts:type_name -> st_peter.admin.SocialAccount
|
|
66, // 6: st_peter.admin.Role.created_at:type_name -> google.protobuf.Timestamp
|
|
66, // 7: st_peter.admin.Role.updated_at:type_name -> google.protobuf.Timestamp
|
|
66, // 8: st_peter.admin.SocialAccount.expires_at:type_name -> google.protobuf.Timestamp
|
|
0, // 9: st_peter.admin.UserResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
2, // 10: st_peter.admin.UserResponse.user:type_name -> st_peter.admin.User
|
|
0, // 11: st_peter.admin.AuthenticationResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
2, // 12: st_peter.admin.AuthenticationResponse.user:type_name -> st_peter.admin.User
|
|
66, // 13: st_peter.admin.AssignRoleRequest.expires_at:type_name -> google.protobuf.Timestamp
|
|
0, // 14: st_peter.admin.OperationResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
0, // 15: st_peter.admin.CountUsersResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
1, // 16: st_peter.admin.CountUsersResponse.current_date:type_name -> st_peter.admin.Date
|
|
18, // 17: st_peter.admin.CountUsersResponse.daily:type_name -> st_peter.admin.TimeSeriesStatistic
|
|
18, // 18: st_peter.admin.CountUsersResponse.monthly:type_name -> st_peter.admin.TimeSeriesStatistic
|
|
0, // 19: st_peter.admin.SearchUsersResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
2, // 20: st_peter.admin.SearchUsersResponse.users:type_name -> st_peter.admin.User
|
|
0, // 21: st_peter.admin.SearchRolesResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
3, // 22: st_peter.admin.SearchRolesResponse.roles:type_name -> st_peter.admin.Role
|
|
0, // 23: st_peter.admin.GetRoleScopesResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
37, // 24: st_peter.admin.GetRoleScopesResponse.role_scopes:type_name -> st_peter.admin.RoleScope
|
|
61, // 25: st_peter.admin.GetRoleScopesResponse.roles:type_name -> st_peter.admin.GetRoleScopesResponse.RolesEntry
|
|
0, // 26: st_peter.admin.GetUserWithRolesResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
2, // 27: st_peter.admin.GetUserWithRolesResponse.user:type_name -> st_peter.admin.User
|
|
62, // 28: st_peter.admin.GetUserWithRolesResponse.roles:type_name -> st_peter.admin.GetUserWithRolesResponse.RolesEntry
|
|
29, // 29: st_peter.admin.GetUserWithRolesResponse.assigned_roles:type_name -> st_peter.admin.UserRole
|
|
63, // 30: st_peter.admin.GetUserWithRolesResponse.scopes:type_name -> st_peter.admin.GetUserWithRolesResponse.ScopesEntry
|
|
64, // 31: st_peter.admin.GetUserWithRolesResponse.actors:type_name -> st_peter.admin.GetUserWithRolesResponse.ActorsEntry
|
|
66, // 32: st_peter.admin.UserRole.created_at:type_name -> google.protobuf.Timestamp
|
|
66, // 33: st_peter.admin.UserRole.updated_at:type_name -> google.protobuf.Timestamp
|
|
66, // 34: st_peter.admin.UserRole.expires_at:type_name -> google.protobuf.Timestamp
|
|
66, // 35: st_peter.admin.UserRole.deleted_at:type_name -> google.protobuf.Timestamp
|
|
0, // 36: st_peter.admin.UsersResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
2, // 37: st_peter.admin.UsersResponse.users:type_name -> st_peter.admin.User
|
|
0, // 38: st_peter.admin.GetAssignableRolesResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
35, // 39: st_peter.admin.GetAssignableRolesResponse.roles:type_name -> st_peter.admin.RoleScopeTarget
|
|
26, // 40: st_peter.admin.GetAssignableRolesResponse.scopes:type_name -> st_peter.admin.Scope
|
|
65, // 41: st_peter.admin.GetAssignableRolesResponse.role_scopes:type_name -> st_peter.admin.GetAssignableRolesResponse.RoleScopesEntry
|
|
3, // 42: st_peter.admin.RoleScopeTarget.role:type_name -> st_peter.admin.Role
|
|
26, // 43: st_peter.admin.RoleScopeTarget.scope:type_name -> st_peter.admin.Scope
|
|
66, // 44: st_peter.admin.RoleScopeTarget.expires_at:type_name -> google.protobuf.Timestamp
|
|
0, // 45: st_peter.admin.GetRoleDetailsResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
3, // 46: st_peter.admin.GetRoleDetailsResponse.role:type_name -> st_peter.admin.Role
|
|
29, // 47: st_peter.admin.GetRoleDetailsResponse.assigned_roles:type_name -> st_peter.admin.UserRole
|
|
26, // 48: st_peter.admin.GetRoleDetailsResponse.scopes:type_name -> st_peter.admin.Scope
|
|
2, // 49: st_peter.admin.GetRoleDetailsResponse.actors:type_name -> st_peter.admin.User
|
|
37, // 50: st_peter.admin.GetRoleDetailsResponse.role_scopes:type_name -> st_peter.admin.RoleScope
|
|
0, // 51: st_peter.admin.GetRoleResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
3, // 52: st_peter.admin.GetRoleResponse.role:type_name -> st_peter.admin.Role
|
|
0, // 53: st_peter.admin.GetUserRoleResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
29, // 54: st_peter.admin.GetUserRoleResponse.user_role:type_name -> st_peter.admin.UserRole
|
|
3, // 55: st_peter.admin.GetUserRoleResponse.role:type_name -> st_peter.admin.Role
|
|
26, // 56: st_peter.admin.GetUserRoleResponse.scope:type_name -> st_peter.admin.Scope
|
|
1, // 57: st_peter.admin.UpdateUserInfoRequest.date_of_birth:type_name -> st_peter.admin.Date
|
|
0, // 58: st_peter.admin.UpdateUserInfoResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
2, // 59: st_peter.admin.UpdateUserInfoResponse.user:type_name -> st_peter.admin.User
|
|
0, // 60: st_peter.admin.GetScopeAncestorsResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
26, // 61: st_peter.admin.GetScopeAncestorsResponse.ancestors:type_name -> st_peter.admin.Scope
|
|
0, // 62: st_peter.admin.GetScopeDescendantsResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
26, // 63: st_peter.admin.GetScopeDescendantsResponse.descendants:type_name -> st_peter.admin.Scope
|
|
0, // 64: st_peter.admin.GetAssignableTargetsResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
0, // 65: st_peter.admin.GetUsersByRoleResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
2, // 66: st_peter.admin.GetUsersByRoleResponse.users:type_name -> st_peter.admin.User
|
|
1, // 67: st_peter.admin.CreateUserRequest.date_of_birth:type_name -> st_peter.admin.Date
|
|
0, // 68: st_peter.admin.CreateUserResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
2, // 69: st_peter.admin.CreateUserResponse.user:type_name -> st_peter.admin.User
|
|
55, // 70: st_peter.admin.UserSession.device_info:type_name -> st_peter.admin.DeviceInfo
|
|
66, // 71: st_peter.admin.UserSession.created_at:type_name -> google.protobuf.Timestamp
|
|
66, // 72: st_peter.admin.UserSession.expires_at:type_name -> google.protobuf.Timestamp
|
|
66, // 73: st_peter.admin.UserSession.last_activity:type_name -> google.protobuf.Timestamp
|
|
0, // 74: st_peter.admin.GetUserSessionsResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
56, // 75: st_peter.admin.GetUserSessionsResponse.sessions:type_name -> st_peter.admin.UserSession
|
|
0, // 76: st_peter.admin.ClearUserSessionsResponse.result_code:type_name -> st_peter.admin.ResultCode
|
|
3, // 77: st_peter.admin.GetRoleScopesResponse.RolesEntry.value:type_name -> st_peter.admin.Role
|
|
3, // 78: st_peter.admin.GetUserWithRolesResponse.RolesEntry.value:type_name -> st_peter.admin.Role
|
|
26, // 79: st_peter.admin.GetUserWithRolesResponse.ScopesEntry.value:type_name -> st_peter.admin.Scope
|
|
2, // 80: st_peter.admin.GetUserWithRolesResponse.ActorsEntry.value:type_name -> st_peter.admin.User
|
|
33, // 81: st_peter.admin.GetAssignableRolesResponse.RoleScopesEntry.value:type_name -> st_peter.admin.ScopeList
|
|
9, // 82: st_peter.admin.AuthAdminService.GetUser:input_type -> st_peter.admin.GetUserRequest
|
|
30, // 83: st_peter.admin.AuthAdminService.GetUsers:input_type -> st_peter.admin.GetUsersRequest
|
|
10, // 84: st_peter.admin.AuthAdminService.GetUsersByUsernames:input_type -> st_peter.admin.GetUsersByUsernamesRequest
|
|
11, // 85: st_peter.admin.AuthAdminService.DeleteUser:input_type -> st_peter.admin.DeleteUserRequest
|
|
12, // 86: st_peter.admin.AuthAdminService.RestoreUser:input_type -> st_peter.admin.RestoreUserRequest
|
|
13, // 87: st_peter.admin.AuthAdminService.AssignRoleToUser:input_type -> st_peter.admin.AssignRoleRequest
|
|
14, // 88: st_peter.admin.AuthAdminService.UnassignRoleFromUser:input_type -> st_peter.admin.UnassignRoleRequest
|
|
36, // 89: st_peter.admin.AuthAdminService.GetRoleDetails:input_type -> st_peter.admin.GetRoleDetailsRequest
|
|
39, // 90: st_peter.admin.AuthAdminService.GetRole:input_type -> st_peter.admin.GetRoleRequest
|
|
41, // 91: st_peter.admin.AuthAdminService.GetUserRole:input_type -> st_peter.admin.GetUserRoleRequest
|
|
16, // 92: st_peter.admin.AuthAdminService.SearchUsers:input_type -> st_peter.admin.SearchUsersRequest
|
|
17, // 93: st_peter.admin.AuthAdminService.CountUsers:input_type -> st_peter.admin.CountUsersRequest
|
|
21, // 94: st_peter.admin.AuthAdminService.SearchRoles:input_type -> st_peter.admin.SearchRolesRequest
|
|
23, // 95: st_peter.admin.AuthAdminService.GetRoleScopes:input_type -> st_peter.admin.GetRoleScopesRequest
|
|
27, // 96: st_peter.admin.AuthAdminService.GetUserWithRoles:input_type -> st_peter.admin.GetUserWithRolesRequest
|
|
32, // 97: st_peter.admin.AuthAdminService.GetAssignableRoles:input_type -> st_peter.admin.GetAssignableRolesRequest
|
|
43, // 98: st_peter.admin.AuthAdminService.UpdateUserInfo:input_type -> st_peter.admin.UpdateUserInfoRequest
|
|
45, // 99: st_peter.admin.AuthAdminService.GetScopeAncestors:input_type -> st_peter.admin.GetScopeAncestorsRequest
|
|
47, // 100: st_peter.admin.AuthAdminService.GetScopeDescendants:input_type -> st_peter.admin.GetScopeDescendantsRequest
|
|
49, // 101: st_peter.admin.AuthAdminService.GetAssignableTargets:input_type -> st_peter.admin.GetAssignableTargetsRequest
|
|
51, // 102: st_peter.admin.AuthAdminService.GetUsersByRole:input_type -> st_peter.admin.GetUsersByRoleRequest
|
|
53, // 103: st_peter.admin.AuthAdminService.CreateUser:input_type -> st_peter.admin.CreateUserRequest
|
|
57, // 104: st_peter.admin.AuthAdminService.GetUserSessions:input_type -> st_peter.admin.GetUserSessionsRequest
|
|
59, // 105: st_peter.admin.AuthAdminService.ClearUserSessions:input_type -> st_peter.admin.ClearUserSessionsRequest
|
|
6, // 106: st_peter.admin.AuthAdminService.GetUser:output_type -> st_peter.admin.UserResponse
|
|
31, // 107: st_peter.admin.AuthAdminService.GetUsers:output_type -> st_peter.admin.UsersResponse
|
|
31, // 108: st_peter.admin.AuthAdminService.GetUsersByUsernames:output_type -> st_peter.admin.UsersResponse
|
|
15, // 109: st_peter.admin.AuthAdminService.DeleteUser:output_type -> st_peter.admin.OperationResponse
|
|
15, // 110: st_peter.admin.AuthAdminService.RestoreUser:output_type -> st_peter.admin.OperationResponse
|
|
28, // 111: st_peter.admin.AuthAdminService.AssignRoleToUser:output_type -> st_peter.admin.GetUserWithRolesResponse
|
|
28, // 112: st_peter.admin.AuthAdminService.UnassignRoleFromUser:output_type -> st_peter.admin.GetUserWithRolesResponse
|
|
38, // 113: st_peter.admin.AuthAdminService.GetRoleDetails:output_type -> st_peter.admin.GetRoleDetailsResponse
|
|
40, // 114: st_peter.admin.AuthAdminService.GetRole:output_type -> st_peter.admin.GetRoleResponse
|
|
42, // 115: st_peter.admin.AuthAdminService.GetUserRole:output_type -> st_peter.admin.GetUserRoleResponse
|
|
20, // 116: st_peter.admin.AuthAdminService.SearchUsers:output_type -> st_peter.admin.SearchUsersResponse
|
|
19, // 117: st_peter.admin.AuthAdminService.CountUsers:output_type -> st_peter.admin.CountUsersResponse
|
|
22, // 118: st_peter.admin.AuthAdminService.SearchRoles:output_type -> st_peter.admin.SearchRolesResponse
|
|
24, // 119: st_peter.admin.AuthAdminService.GetRoleScopes:output_type -> st_peter.admin.GetRoleScopesResponse
|
|
28, // 120: st_peter.admin.AuthAdminService.GetUserWithRoles:output_type -> st_peter.admin.GetUserWithRolesResponse
|
|
34, // 121: st_peter.admin.AuthAdminService.GetAssignableRoles:output_type -> st_peter.admin.GetAssignableRolesResponse
|
|
44, // 122: st_peter.admin.AuthAdminService.UpdateUserInfo:output_type -> st_peter.admin.UpdateUserInfoResponse
|
|
46, // 123: st_peter.admin.AuthAdminService.GetScopeAncestors:output_type -> st_peter.admin.GetScopeAncestorsResponse
|
|
48, // 124: st_peter.admin.AuthAdminService.GetScopeDescendants:output_type -> st_peter.admin.GetScopeDescendantsResponse
|
|
50, // 125: st_peter.admin.AuthAdminService.GetAssignableTargets:output_type -> st_peter.admin.GetAssignableTargetsResponse
|
|
52, // 126: st_peter.admin.AuthAdminService.GetUsersByRole:output_type -> st_peter.admin.GetUsersByRoleResponse
|
|
54, // 127: st_peter.admin.AuthAdminService.CreateUser:output_type -> st_peter.admin.CreateUserResponse
|
|
58, // 128: st_peter.admin.AuthAdminService.GetUserSessions:output_type -> st_peter.admin.GetUserSessionsResponse
|
|
60, // 129: st_peter.admin.AuthAdminService.ClearUserSessions:output_type -> st_peter.admin.ClearUserSessionsResponse
|
|
106, // [106:130] is the sub-list for method output_type
|
|
82, // [82:106] 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_admin_proto_init() }
|
|
func file_st_peter_admin_proto_init() {
|
|
if File_st_peter_admin_proto != nil {
|
|
return
|
|
}
|
|
file_st_peter_admin_proto_msgTypes[1].OneofWrappers = []any{}
|
|
file_st_peter_admin_proto_msgTypes[12].OneofWrappers = []any{}
|
|
file_st_peter_admin_proto_msgTypes[15].OneofWrappers = []any{}
|
|
file_st_peter_admin_proto_msgTypes[22].OneofWrappers = []any{}
|
|
file_st_peter_admin_proto_msgTypes[25].OneofWrappers = []any{}
|
|
file_st_peter_admin_proto_msgTypes[28].OneofWrappers = []any{}
|
|
file_st_peter_admin_proto_msgTypes[42].OneofWrappers = []any{}
|
|
file_st_peter_admin_proto_msgTypes[50].OneofWrappers = []any{}
|
|
file_st_peter_admin_proto_msgTypes[52].OneofWrappers = []any{}
|
|
file_st_peter_admin_proto_msgTypes[53].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_st_peter_admin_proto_rawDesc), len(file_st_peter_admin_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 65,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_st_peter_admin_proto_goTypes,
|
|
DependencyIndexes: file_st_peter_admin_proto_depIdxs,
|
|
EnumInfos: file_st_peter_admin_proto_enumTypes,
|
|
MessageInfos: file_st_peter_admin_proto_msgTypes,
|
|
}.Build()
|
|
File_st_peter_admin_proto = out.File
|
|
file_st_peter_admin_proto_goTypes = nil
|
|
file_st_peter_admin_proto_depIdxs = nil
|
|
}
|