- Add VerifyPassword RPC to Identity Service - Added to proto file and generated code - Implemented in Identity Service gRPC server - Added to Identity Service client interface and gRPC client - Complete RefreshToken implementation - Store refresh tokens in database using RefreshToken entity - Validate refresh tokens with expiration checking - Revoke refresh tokens on logout and token rotation - Integrate Authz Service for role retrieval - Added AuthzServiceClient to Auth Service - Get user roles during login and token refresh - Gracefully handle Authz Service failures - Require JWT secret in configuration - Removed default secret fallback - Service fails to start if JWT secret is not configured - Fix Consul health checks for Docker - Services now register with Docker service names (e.g., audit-service) - Allows Consul (in Docker) to reach services via Docker DNS - Health checks use gRPC service names instead of localhost This completes all TODOs in auth_service_fx.go and fixes the Consul health check failures in Docker environments.
1188 lines
36 KiB
Go
1188 lines
36 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.10
|
|
// protoc v6.30.2
|
|
// source: identity.proto
|
|
|
|
package identityv1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// User represents a user in the system.
|
|
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"`
|
|
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,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"`
|
|
EmailVerified bool `protobuf:"varint,6,opt,name=email_verified,json=emailVerified,proto3" json:"email_verified,omitempty"`
|
|
CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
UpdatedAt int64 `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *User) Reset() {
|
|
*x = User{}
|
|
mi := &file_identity_proto_msgTypes[0]
|
|
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_identity_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use User.ProtoReflect.Descriptor instead.
|
|
func (*User) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
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) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetFirstName() string {
|
|
if x != nil {
|
|
return x.FirstName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetLastName() string {
|
|
if x != nil {
|
|
return x.LastName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetEmailVerified() bool {
|
|
if x != nil {
|
|
return x.EmailVerified
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *User) GetCreatedAt() int64 {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *User) GetUpdatedAt() int64 {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// GetUserRequest contains a user ID.
|
|
type GetUserRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserRequest) Reset() {
|
|
*x = GetUserRequest{}
|
|
mi := &file_identity_proto_msgTypes[1]
|
|
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_identity_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *GetUserRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// GetUserResponse contains a user.
|
|
type GetUserResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserResponse) Reset() {
|
|
*x = GetUserResponse{}
|
|
mi := &file_identity_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserResponse) ProtoMessage() {}
|
|
|
|
func (x *GetUserResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetUserResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GetUserResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// GetUserByEmailRequest contains an email address.
|
|
type GetUserByEmailRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserByEmailRequest) Reset() {
|
|
*x = GetUserByEmailRequest{}
|
|
mi := &file_identity_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserByEmailRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserByEmailRequest) ProtoMessage() {}
|
|
|
|
func (x *GetUserByEmailRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetUserByEmailRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUserByEmailRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetUserByEmailRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// GetUserByEmailResponse contains a user.
|
|
type GetUserByEmailResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserByEmailResponse) Reset() {
|
|
*x = GetUserByEmailResponse{}
|
|
mi := &file_identity_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserByEmailResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserByEmailResponse) ProtoMessage() {}
|
|
|
|
func (x *GetUserByEmailResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetUserByEmailResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetUserByEmailResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *GetUserByEmailResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// CreateUserRequest contains user data for creation.
|
|
type CreateUserRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
|
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
|
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,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 *CreateUserRequest) Reset() {
|
|
*x = CreateUserRequest{}
|
|
mi := &file_identity_proto_msgTypes[5]
|
|
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_identity_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetFirstName() string {
|
|
if x != nil {
|
|
return x.FirstName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateUserRequest) GetLastName() string {
|
|
if x != nil {
|
|
return x.LastName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// CreateUserResponse contains the created user.
|
|
type CreateUserResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateUserResponse) Reset() {
|
|
*x = CreateUserResponse{}
|
|
mi := &file_identity_proto_msgTypes[6]
|
|
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_identity_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateUserResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *CreateUserResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// UpdateUserRequest contains user data for update.
|
|
type UpdateUserRequest 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,oneof" json:"email,omitempty"`
|
|
Username *string `protobuf:"bytes,3,opt,name=username,proto3,oneof" json:"username,omitempty"`
|
|
FirstName *string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3,oneof" json:"first_name,omitempty"`
|
|
LastName *string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3,oneof" json:"last_name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateUserRequest) Reset() {
|
|
*x = UpdateUserRequest{}
|
|
mi := &file_identity_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateUserRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateUserRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *UpdateUserRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserRequest) GetEmail() string {
|
|
if x != nil && x.Email != nil {
|
|
return *x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserRequest) GetUsername() string {
|
|
if x != nil && x.Username != nil {
|
|
return *x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserRequest) GetFirstName() string {
|
|
if x != nil && x.FirstName != nil {
|
|
return *x.FirstName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserRequest) GetLastName() string {
|
|
if x != nil && x.LastName != nil {
|
|
return *x.LastName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// UpdateUserResponse contains the updated user.
|
|
type UpdateUserResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateUserResponse) Reset() {
|
|
*x = UpdateUserResponse{}
|
|
mi := &file_identity_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateUserResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateUserResponse) ProtoMessage() {}
|
|
|
|
func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdateUserResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *UpdateUserResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// DeleteUserRequest contains a user ID.
|
|
type DeleteUserRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteUserRequest) Reset() {
|
|
*x = DeleteUserRequest{}
|
|
mi := &file_identity_proto_msgTypes[9]
|
|
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_identity_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteUserRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *DeleteUserRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// DeleteUserResponse indicates success.
|
|
type DeleteUserResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteUserResponse) Reset() {
|
|
*x = DeleteUserResponse{}
|
|
mi := &file_identity_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteUserResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteUserResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteUserResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *DeleteUserResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
// VerifyEmailRequest contains a verification token.
|
|
type VerifyEmailRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyEmailRequest) Reset() {
|
|
*x = VerifyEmailRequest{}
|
|
mi := &file_identity_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyEmailRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyEmailRequest) ProtoMessage() {}
|
|
|
|
func (x *VerifyEmailRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use VerifyEmailRequest.ProtoReflect.Descriptor instead.
|
|
func (*VerifyEmailRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *VerifyEmailRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// VerifyEmailResponse indicates success.
|
|
type VerifyEmailResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyEmailResponse) Reset() {
|
|
*x = VerifyEmailResponse{}
|
|
mi := &file_identity_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyEmailResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyEmailResponse) ProtoMessage() {}
|
|
|
|
func (x *VerifyEmailResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use VerifyEmailResponse.ProtoReflect.Descriptor instead.
|
|
func (*VerifyEmailResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *VerifyEmailResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
// RequestPasswordResetRequest contains an email address.
|
|
type RequestPasswordResetRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RequestPasswordResetRequest) Reset() {
|
|
*x = RequestPasswordResetRequest{}
|
|
mi := &file_identity_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RequestPasswordResetRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RequestPasswordResetRequest) ProtoMessage() {}
|
|
|
|
func (x *RequestPasswordResetRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RequestPasswordResetRequest.ProtoReflect.Descriptor instead.
|
|
func (*RequestPasswordResetRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *RequestPasswordResetRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// RequestPasswordResetResponse indicates success.
|
|
type RequestPasswordResetResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RequestPasswordResetResponse) Reset() {
|
|
*x = RequestPasswordResetResponse{}
|
|
mi := &file_identity_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RequestPasswordResetResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RequestPasswordResetResponse) ProtoMessage() {}
|
|
|
|
func (x *RequestPasswordResetResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RequestPasswordResetResponse.ProtoReflect.Descriptor instead.
|
|
func (*RequestPasswordResetResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *RequestPasswordResetResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
// ResetPasswordRequest contains a reset token and new password.
|
|
type ResetPasswordRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResetPasswordRequest) Reset() {
|
|
*x = ResetPasswordRequest{}
|
|
mi := &file_identity_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResetPasswordRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResetPasswordRequest) ProtoMessage() {}
|
|
|
|
func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
|
|
func (*ResetPasswordRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *ResetPasswordRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResetPasswordRequest) GetNewPassword() string {
|
|
if x != nil {
|
|
return x.NewPassword
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ResetPasswordResponse indicates success.
|
|
type ResetPasswordResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResetPasswordResponse) Reset() {
|
|
*x = ResetPasswordResponse{}
|
|
mi := &file_identity_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResetPasswordResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResetPasswordResponse) ProtoMessage() {}
|
|
|
|
func (x *ResetPasswordResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ResetPasswordResponse.ProtoReflect.Descriptor instead.
|
|
func (*ResetPasswordResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *ResetPasswordResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
// VerifyPasswordRequest contains email and password.
|
|
type VerifyPasswordRequest 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 *VerifyPasswordRequest) Reset() {
|
|
*x = VerifyPasswordRequest{}
|
|
mi := &file_identity_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyPasswordRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyPasswordRequest) ProtoMessage() {}
|
|
|
|
func (x *VerifyPasswordRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use VerifyPasswordRequest.ProtoReflect.Descriptor instead.
|
|
func (*VerifyPasswordRequest) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *VerifyPasswordRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerifyPasswordRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// VerifyPasswordResponse contains the user if password is valid.
|
|
type VerifyPasswordResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyPasswordResponse) Reset() {
|
|
*x = VerifyPasswordResponse{}
|
|
mi := &file_identity_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyPasswordResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyPasswordResponse) ProtoMessage() {}
|
|
|
|
func (x *VerifyPasswordResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_identity_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use VerifyPasswordResponse.ProtoReflect.Descriptor instead.
|
|
func (*VerifyPasswordResponse) Descriptor() ([]byte, []int) {
|
|
return file_identity_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *VerifyPasswordResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_identity_proto protoreflect.FileDescriptor
|
|
|
|
const file_identity_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0eidentity.proto\x12\videntity.v1\"\xe9\x01\n" +
|
|
"\x04User\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
|
|
"\x05email\x18\x02 \x01(\tR\x05email\x12\x1a\n" +
|
|
"\busername\x18\x03 \x01(\tR\busername\x12\x1d\n" +
|
|
"\n" +
|
|
"first_name\x18\x04 \x01(\tR\tfirstName\x12\x1b\n" +
|
|
"\tlast_name\x18\x05 \x01(\tR\blastName\x12%\n" +
|
|
"\x0eemail_verified\x18\x06 \x01(\bR\remailVerified\x12\x1d\n" +
|
|
"\n" +
|
|
"created_at\x18\a \x01(\x03R\tcreatedAt\x12\x1d\n" +
|
|
"\n" +
|
|
"updated_at\x18\b \x01(\x03R\tupdatedAt\" \n" +
|
|
"\x0eGetUserRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"8\n" +
|
|
"\x0fGetUserResponse\x12%\n" +
|
|
"\x04user\x18\x01 \x01(\v2\x11.identity.v1.UserR\x04user\"-\n" +
|
|
"\x15GetUserByEmailRequest\x12\x14\n" +
|
|
"\x05email\x18\x01 \x01(\tR\x05email\"?\n" +
|
|
"\x16GetUserByEmailResponse\x12%\n" +
|
|
"\x04user\x18\x01 \x01(\v2\x11.identity.v1.UserR\x04user\"\x9d\x01\n" +
|
|
"\x11CreateUserRequest\x12\x14\n" +
|
|
"\x05email\x18\x01 \x01(\tR\x05email\x12\x1a\n" +
|
|
"\busername\x18\x02 \x01(\tR\busername\x12\x1a\n" +
|
|
"\bpassword\x18\x03 \x01(\tR\bpassword\x12\x1d\n" +
|
|
"\n" +
|
|
"first_name\x18\x04 \x01(\tR\tfirstName\x12\x1b\n" +
|
|
"\tlast_name\x18\x05 \x01(\tR\blastName\";\n" +
|
|
"\x12CreateUserResponse\x12%\n" +
|
|
"\x04user\x18\x01 \x01(\v2\x11.identity.v1.UserR\x04user\"\xd9\x01\n" +
|
|
"\x11UpdateUserRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n" +
|
|
"\x05email\x18\x02 \x01(\tH\x00R\x05email\x88\x01\x01\x12\x1f\n" +
|
|
"\busername\x18\x03 \x01(\tH\x01R\busername\x88\x01\x01\x12\"\n" +
|
|
"\n" +
|
|
"first_name\x18\x04 \x01(\tH\x02R\tfirstName\x88\x01\x01\x12 \n" +
|
|
"\tlast_name\x18\x05 \x01(\tH\x03R\blastName\x88\x01\x01B\b\n" +
|
|
"\x06_emailB\v\n" +
|
|
"\t_usernameB\r\n" +
|
|
"\v_first_nameB\f\n" +
|
|
"\n" +
|
|
"_last_name\";\n" +
|
|
"\x12UpdateUserResponse\x12%\n" +
|
|
"\x04user\x18\x01 \x01(\v2\x11.identity.v1.UserR\x04user\"#\n" +
|
|
"\x11DeleteUserRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\".\n" +
|
|
"\x12DeleteUserResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\"*\n" +
|
|
"\x12VerifyEmailRequest\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\"/\n" +
|
|
"\x13VerifyEmailResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\"3\n" +
|
|
"\x1bRequestPasswordResetRequest\x12\x14\n" +
|
|
"\x05email\x18\x01 \x01(\tR\x05email\"8\n" +
|
|
"\x1cRequestPasswordResetResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\"O\n" +
|
|
"\x14ResetPasswordRequest\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\x12!\n" +
|
|
"\fnew_password\x18\x02 \x01(\tR\vnewPassword\"1\n" +
|
|
"\x15ResetPasswordResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\"I\n" +
|
|
"\x15VerifyPasswordRequest\x12\x14\n" +
|
|
"\x05email\x18\x01 \x01(\tR\x05email\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\"?\n" +
|
|
"\x16VerifyPasswordResponse\x12%\n" +
|
|
"\x04user\x18\x01 \x01(\v2\x11.identity.v1.UserR\x04user2\x91\x06\n" +
|
|
"\x0fIdentityService\x12D\n" +
|
|
"\aGetUser\x12\x1b.identity.v1.GetUserRequest\x1a\x1c.identity.v1.GetUserResponse\x12Y\n" +
|
|
"\x0eGetUserByEmail\x12\".identity.v1.GetUserByEmailRequest\x1a#.identity.v1.GetUserByEmailResponse\x12M\n" +
|
|
"\n" +
|
|
"CreateUser\x12\x1e.identity.v1.CreateUserRequest\x1a\x1f.identity.v1.CreateUserResponse\x12M\n" +
|
|
"\n" +
|
|
"UpdateUser\x12\x1e.identity.v1.UpdateUserRequest\x1a\x1f.identity.v1.UpdateUserResponse\x12M\n" +
|
|
"\n" +
|
|
"DeleteUser\x12\x1e.identity.v1.DeleteUserRequest\x1a\x1f.identity.v1.DeleteUserResponse\x12P\n" +
|
|
"\vVerifyEmail\x12\x1f.identity.v1.VerifyEmailRequest\x1a .identity.v1.VerifyEmailResponse\x12k\n" +
|
|
"\x14RequestPasswordReset\x12(.identity.v1.RequestPasswordResetRequest\x1a).identity.v1.RequestPasswordResetResponse\x12V\n" +
|
|
"\rResetPassword\x12!.identity.v1.ResetPasswordRequest\x1a\".identity.v1.ResetPasswordResponse\x12Y\n" +
|
|
"\x0eVerifyPassword\x12\".identity.v1.VerifyPasswordRequest\x1a#.identity.v1.VerifyPasswordResponseBMZKgit.dcentral.systems/toolz/goplt/api/proto/generated/identity/v1;identityv1b\x06proto3"
|
|
|
|
var (
|
|
file_identity_proto_rawDescOnce sync.Once
|
|
file_identity_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_identity_proto_rawDescGZIP() []byte {
|
|
file_identity_proto_rawDescOnce.Do(func() {
|
|
file_identity_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_identity_proto_rawDesc), len(file_identity_proto_rawDesc)))
|
|
})
|
|
return file_identity_proto_rawDescData
|
|
}
|
|
|
|
var file_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 19)
|
|
var file_identity_proto_goTypes = []any{
|
|
(*User)(nil), // 0: identity.v1.User
|
|
(*GetUserRequest)(nil), // 1: identity.v1.GetUserRequest
|
|
(*GetUserResponse)(nil), // 2: identity.v1.GetUserResponse
|
|
(*GetUserByEmailRequest)(nil), // 3: identity.v1.GetUserByEmailRequest
|
|
(*GetUserByEmailResponse)(nil), // 4: identity.v1.GetUserByEmailResponse
|
|
(*CreateUserRequest)(nil), // 5: identity.v1.CreateUserRequest
|
|
(*CreateUserResponse)(nil), // 6: identity.v1.CreateUserResponse
|
|
(*UpdateUserRequest)(nil), // 7: identity.v1.UpdateUserRequest
|
|
(*UpdateUserResponse)(nil), // 8: identity.v1.UpdateUserResponse
|
|
(*DeleteUserRequest)(nil), // 9: identity.v1.DeleteUserRequest
|
|
(*DeleteUserResponse)(nil), // 10: identity.v1.DeleteUserResponse
|
|
(*VerifyEmailRequest)(nil), // 11: identity.v1.VerifyEmailRequest
|
|
(*VerifyEmailResponse)(nil), // 12: identity.v1.VerifyEmailResponse
|
|
(*RequestPasswordResetRequest)(nil), // 13: identity.v1.RequestPasswordResetRequest
|
|
(*RequestPasswordResetResponse)(nil), // 14: identity.v1.RequestPasswordResetResponse
|
|
(*ResetPasswordRequest)(nil), // 15: identity.v1.ResetPasswordRequest
|
|
(*ResetPasswordResponse)(nil), // 16: identity.v1.ResetPasswordResponse
|
|
(*VerifyPasswordRequest)(nil), // 17: identity.v1.VerifyPasswordRequest
|
|
(*VerifyPasswordResponse)(nil), // 18: identity.v1.VerifyPasswordResponse
|
|
}
|
|
var file_identity_proto_depIdxs = []int32{
|
|
0, // 0: identity.v1.GetUserResponse.user:type_name -> identity.v1.User
|
|
0, // 1: identity.v1.GetUserByEmailResponse.user:type_name -> identity.v1.User
|
|
0, // 2: identity.v1.CreateUserResponse.user:type_name -> identity.v1.User
|
|
0, // 3: identity.v1.UpdateUserResponse.user:type_name -> identity.v1.User
|
|
0, // 4: identity.v1.VerifyPasswordResponse.user:type_name -> identity.v1.User
|
|
1, // 5: identity.v1.IdentityService.GetUser:input_type -> identity.v1.GetUserRequest
|
|
3, // 6: identity.v1.IdentityService.GetUserByEmail:input_type -> identity.v1.GetUserByEmailRequest
|
|
5, // 7: identity.v1.IdentityService.CreateUser:input_type -> identity.v1.CreateUserRequest
|
|
7, // 8: identity.v1.IdentityService.UpdateUser:input_type -> identity.v1.UpdateUserRequest
|
|
9, // 9: identity.v1.IdentityService.DeleteUser:input_type -> identity.v1.DeleteUserRequest
|
|
11, // 10: identity.v1.IdentityService.VerifyEmail:input_type -> identity.v1.VerifyEmailRequest
|
|
13, // 11: identity.v1.IdentityService.RequestPasswordReset:input_type -> identity.v1.RequestPasswordResetRequest
|
|
15, // 12: identity.v1.IdentityService.ResetPassword:input_type -> identity.v1.ResetPasswordRequest
|
|
17, // 13: identity.v1.IdentityService.VerifyPassword:input_type -> identity.v1.VerifyPasswordRequest
|
|
2, // 14: identity.v1.IdentityService.GetUser:output_type -> identity.v1.GetUserResponse
|
|
4, // 15: identity.v1.IdentityService.GetUserByEmail:output_type -> identity.v1.GetUserByEmailResponse
|
|
6, // 16: identity.v1.IdentityService.CreateUser:output_type -> identity.v1.CreateUserResponse
|
|
8, // 17: identity.v1.IdentityService.UpdateUser:output_type -> identity.v1.UpdateUserResponse
|
|
10, // 18: identity.v1.IdentityService.DeleteUser:output_type -> identity.v1.DeleteUserResponse
|
|
12, // 19: identity.v1.IdentityService.VerifyEmail:output_type -> identity.v1.VerifyEmailResponse
|
|
14, // 20: identity.v1.IdentityService.RequestPasswordReset:output_type -> identity.v1.RequestPasswordResetResponse
|
|
16, // 21: identity.v1.IdentityService.ResetPassword:output_type -> identity.v1.ResetPasswordResponse
|
|
18, // 22: identity.v1.IdentityService.VerifyPassword:output_type -> identity.v1.VerifyPasswordResponse
|
|
14, // [14:23] is the sub-list for method output_type
|
|
5, // [5:14] is the sub-list for method input_type
|
|
5, // [5:5] is the sub-list for extension type_name
|
|
5, // [5:5] is the sub-list for extension extendee
|
|
0, // [0:5] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_identity_proto_init() }
|
|
func file_identity_proto_init() {
|
|
if File_identity_proto != nil {
|
|
return
|
|
}
|
|
file_identity_proto_msgTypes[7].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_identity_proto_rawDesc), len(file_identity_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 19,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_identity_proto_goTypes,
|
|
DependencyIndexes: file_identity_proto_depIdxs,
|
|
MessageInfos: file_identity_proto_msgTypes,
|
|
}.Build()
|
|
File_identity_proto = out.File
|
|
file_identity_proto_goTypes = nil
|
|
file_identity_proto_depIdxs = nil
|
|
}
|