diff --git a/APIDoc.md b/APIDoc.md
index 78112a1..bceed27 100644
--- a/APIDoc.md
+++ b/APIDoc.md
@@ -9,6 +9,7 @@
- [IsEmailVerifiedRequest](#accounts-v1-IsEmailVerifiedRequest)
- [IsEmailVerifiedResponse](#accounts-v1-IsEmailVerifiedResponse)
- [NewPasswordRequest](#accounts-v1-NewPasswordRequest)
+ - [PersonalData](#accounts-v1-PersonalData)
- [RefreshTokenRequest](#accounts-v1-RefreshTokenRequest)
- [ResetPasswordRequest](#accounts-v1-ResetPasswordRequest)
- [SignInRequest](#accounts-v1-SignInRequest)
@@ -152,6 +153,22 @@ Protobuf definitions for the accounts service.
+
+
+### PersonalData
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | |
+| surname | [string](#string) | | |
+
+
+
+
+
+
### RefreshTokenRequest
@@ -208,6 +225,7 @@ Protobuf definitions for the accounts service.
| ----- | ---- | ----- | ----------- |
| email | [string](#string) | | |
| password | [string](#string) | | |
+| personal_data | [PersonalData](#accounts-v1-PersonalData) | | |
diff --git a/pkg/accounts/v1/accounts_v1.pb.go b/pkg/accounts/v1/accounts_v1.pb.go
index cfa1e48..f09a29a 100644
--- a/pkg/accounts/v1/accounts_v1.pb.go
+++ b/pkg/accounts/v1/accounts_v1.pb.go
@@ -120,17 +120,70 @@ func (x *AccountData) GetEmail() string {
return ""
}
+type PersonalData struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ Surname string `protobuf:"bytes,2,opt,name=surname,proto3" json:"surname,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *PersonalData) Reset() {
+ *x = PersonalData{}
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[2]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *PersonalData) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PersonalData) ProtoMessage() {}
+
+func (x *PersonalData) ProtoReflect() protoreflect.Message {
+ mi := &file_accounts_v1_accounts_v1_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 PersonalData.ProtoReflect.Descriptor instead.
+func (*PersonalData) Descriptor() ([]byte, []int) {
+ return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *PersonalData) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *PersonalData) GetSurname() string {
+ if x != nil {
+ return x.Surname
+ }
+ return ""
+}
+
type SignUpRequest 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"`
+ PersonalData *PersonalData `protobuf:"bytes,3,opt,name=personal_data,json=personalData,proto3" json:"personal_data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SignUpRequest) Reset() {
*x = SignUpRequest{}
- mi := &file_accounts_v1_accounts_v1_proto_msgTypes[2]
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -142,7 +195,7 @@ func (x *SignUpRequest) String() string {
func (*SignUpRequest) ProtoMessage() {}
func (x *SignUpRequest) ProtoReflect() protoreflect.Message {
- mi := &file_accounts_v1_accounts_v1_proto_msgTypes[2]
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -155,7 +208,7 @@ func (x *SignUpRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.
func (*SignUpRequest) Descriptor() ([]byte, []int) {
- return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{2}
+ return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{3}
}
func (x *SignUpRequest) GetEmail() string {
@@ -172,6 +225,13 @@ func (x *SignUpRequest) GetPassword() string {
return ""
}
+func (x *SignUpRequest) GetPersonalData() *PersonalData {
+ if x != nil {
+ return x.PersonalData
+ }
+ return nil
+}
+
type SignInRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
@@ -182,7 +242,7 @@ type SignInRequest struct {
func (x *SignInRequest) Reset() {
*x = SignInRequest{}
- mi := &file_accounts_v1_accounts_v1_proto_msgTypes[3]
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -194,7 +254,7 @@ func (x *SignInRequest) String() string {
func (*SignInRequest) ProtoMessage() {}
func (x *SignInRequest) ProtoReflect() protoreflect.Message {
- mi := &file_accounts_v1_accounts_v1_proto_msgTypes[3]
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -207,7 +267,7 @@ func (x *SignInRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.
func (*SignInRequest) Descriptor() ([]byte, []int) {
- return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{3}
+ return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{4}
}
func (x *SignInRequest) GetEmail() string {
@@ -233,7 +293,7 @@ type ResetPasswordRequest struct {
func (x *ResetPasswordRequest) Reset() {
*x = ResetPasswordRequest{}
- mi := &file_accounts_v1_accounts_v1_proto_msgTypes[4]
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -245,7 +305,7 @@ func (x *ResetPasswordRequest) String() string {
func (*ResetPasswordRequest) ProtoMessage() {}
func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message {
- mi := &file_accounts_v1_accounts_v1_proto_msgTypes[4]
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -258,7 +318,7 @@ func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
func (*ResetPasswordRequest) Descriptor() ([]byte, []int) {
- return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{4}
+ return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{5}
}
func (x *ResetPasswordRequest) GetData() *AccountData {
@@ -279,7 +339,7 @@ type NewPasswordRequest struct {
func (x *NewPasswordRequest) Reset() {
*x = NewPasswordRequest{}
- mi := &file_accounts_v1_accounts_v1_proto_msgTypes[5]
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -291,7 +351,7 @@ func (x *NewPasswordRequest) String() string {
func (*NewPasswordRequest) ProtoMessage() {}
func (x *NewPasswordRequest) ProtoReflect() protoreflect.Message {
- mi := &file_accounts_v1_accounts_v1_proto_msgTypes[5]
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -304,7 +364,7 @@ func (x *NewPasswordRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use NewPasswordRequest.ProtoReflect.Descriptor instead.
func (*NewPasswordRequest) Descriptor() ([]byte, []int) {
- return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{5}
+ return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{6}
}
func (x *NewPasswordRequest) GetData() *AccountData {
@@ -337,7 +397,7 @@ type IsEmailVerifiedRequest struct {
func (x *IsEmailVerifiedRequest) Reset() {
*x = IsEmailVerifiedRequest{}
- mi := &file_accounts_v1_accounts_v1_proto_msgTypes[6]
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -349,7 +409,7 @@ func (x *IsEmailVerifiedRequest) String() string {
func (*IsEmailVerifiedRequest) ProtoMessage() {}
func (x *IsEmailVerifiedRequest) ProtoReflect() protoreflect.Message {
- mi := &file_accounts_v1_accounts_v1_proto_msgTypes[6]
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -362,7 +422,7 @@ func (x *IsEmailVerifiedRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use IsEmailVerifiedRequest.ProtoReflect.Descriptor instead.
func (*IsEmailVerifiedRequest) Descriptor() ([]byte, []int) {
- return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{6}
+ return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{7}
}
func (x *IsEmailVerifiedRequest) GetData() *AccountData {
@@ -381,7 +441,7 @@ type IsEmailVerifiedResponse struct {
func (x *IsEmailVerifiedResponse) Reset() {
*x = IsEmailVerifiedResponse{}
- mi := &file_accounts_v1_accounts_v1_proto_msgTypes[7]
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -393,7 +453,7 @@ func (x *IsEmailVerifiedResponse) String() string {
func (*IsEmailVerifiedResponse) ProtoMessage() {}
func (x *IsEmailVerifiedResponse) ProtoReflect() protoreflect.Message {
- mi := &file_accounts_v1_accounts_v1_proto_msgTypes[7]
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -406,7 +466,7 @@ func (x *IsEmailVerifiedResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use IsEmailVerifiedResponse.ProtoReflect.Descriptor instead.
func (*IsEmailVerifiedResponse) Descriptor() ([]byte, []int) {
- return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{7}
+ return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{8}
}
func (x *IsEmailVerifiedResponse) GetVerified() bool {
@@ -425,7 +485,7 @@ type RefreshTokenRequest struct {
func (x *RefreshTokenRequest) Reset() {
*x = RefreshTokenRequest{}
- mi := &file_accounts_v1_accounts_v1_proto_msgTypes[8]
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -437,7 +497,7 @@ func (x *RefreshTokenRequest) String() string {
func (*RefreshTokenRequest) ProtoMessage() {}
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message {
- mi := &file_accounts_v1_accounts_v1_proto_msgTypes[8]
+ mi := &file_accounts_v1_accounts_v1_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -450,7 +510,7 @@ func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
func (*RefreshTokenRequest) Descriptor() ([]byte, []int) {
- return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{8}
+ return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{9}
}
func (x *RefreshTokenRequest) GetSessionId() string {
@@ -469,10 +529,14 @@ const file_accounts_v1_accounts_v1_proto_rawDesc = "" +
"\bpassword\x18\x01 \x01(\tR\bpassword\"7\n" +
"\vAccountData\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
- "\x05email\x18\x02 \x01(\tR\x05email\"A\n" +
+ "\x05email\x18\x02 \x01(\tR\x05email\"<\n" +
+ "\fPersonalData\x12\x12\n" +
+ "\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" +
+ "\asurname\x18\x02 \x01(\tR\asurname\"\x81\x01\n" +
"\rSignUpRequest\x12\x14\n" +
"\x05email\x18\x01 \x01(\tR\x05email\x12\x1a\n" +
- "\bpassword\x18\x02 \x01(\tR\bpassword\"A\n" +
+ "\bpassword\x18\x02 \x01(\tR\bpassword\x12>\n" +
+ "\rpersonal_data\x18\x03 \x01(\v2\x19.accounts.v1.PersonalDataR\fpersonalData\"A\n" +
"\rSignInRequest\x12\x14\n" +
"\x05email\x18\x01 \x01(\tR\x05email\x12\x1a\n" +
"\bpassword\x18\x02 \x01(\tR\bpassword\"D\n" +
@@ -509,39 +573,41 @@ func file_accounts_v1_accounts_v1_proto_rawDescGZIP() []byte {
return file_accounts_v1_accounts_v1_proto_rawDescData
}
-var file_accounts_v1_accounts_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
+var file_accounts_v1_accounts_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_accounts_v1_accounts_v1_proto_goTypes = []any{
(*AccountPassword)(nil), // 0: accounts.v1.AccountPassword
(*AccountData)(nil), // 1: accounts.v1.AccountData
- (*SignUpRequest)(nil), // 2: accounts.v1.SignUpRequest
- (*SignInRequest)(nil), // 3: accounts.v1.SignInRequest
- (*ResetPasswordRequest)(nil), // 4: accounts.v1.ResetPasswordRequest
- (*NewPasswordRequest)(nil), // 5: accounts.v1.NewPasswordRequest
- (*IsEmailVerifiedRequest)(nil), // 6: accounts.v1.IsEmailVerifiedRequest
- (*IsEmailVerifiedResponse)(nil), // 7: accounts.v1.IsEmailVerifiedResponse
- (*RefreshTokenRequest)(nil), // 8: accounts.v1.RefreshTokenRequest
- (*emptypb.Empty)(nil), // 9: google.protobuf.Empty
+ (*PersonalData)(nil), // 2: accounts.v1.PersonalData
+ (*SignUpRequest)(nil), // 3: accounts.v1.SignUpRequest
+ (*SignInRequest)(nil), // 4: accounts.v1.SignInRequest
+ (*ResetPasswordRequest)(nil), // 5: accounts.v1.ResetPasswordRequest
+ (*NewPasswordRequest)(nil), // 6: accounts.v1.NewPasswordRequest
+ (*IsEmailVerifiedRequest)(nil), // 7: accounts.v1.IsEmailVerifiedRequest
+ (*IsEmailVerifiedResponse)(nil), // 8: accounts.v1.IsEmailVerifiedResponse
+ (*RefreshTokenRequest)(nil), // 9: accounts.v1.RefreshTokenRequest
+ (*emptypb.Empty)(nil), // 10: google.protobuf.Empty
}
var file_accounts_v1_accounts_v1_proto_depIdxs = []int32{
- 1, // 0: accounts.v1.ResetPasswordRequest.data:type_name -> accounts.v1.AccountData
- 1, // 1: accounts.v1.NewPasswordRequest.data:type_name -> accounts.v1.AccountData
- 0, // 2: accounts.v1.NewPasswordRequest.password:type_name -> accounts.v1.AccountPassword
- 1, // 3: accounts.v1.IsEmailVerifiedRequest.data:type_name -> accounts.v1.AccountData
- 3, // 4: accounts.v1.PublicAccountsService.SignIn:input_type -> accounts.v1.SignInRequest
- 2, // 5: accounts.v1.PublicAccountsService.SignUp:input_type -> accounts.v1.SignUpRequest
- 6, // 6: accounts.v1.AccountsService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest
- 9, // 7: accounts.v1.AccountsService.RefreshSession:input_type -> google.protobuf.Empty
- 9, // 8: accounts.v1.AccountsService.TokenAuthorization:input_type -> google.protobuf.Empty
- 9, // 9: accounts.v1.PublicAccountsService.SignIn:output_type -> google.protobuf.Empty
- 9, // 10: accounts.v1.PublicAccountsService.SignUp:output_type -> google.protobuf.Empty
- 7, // 11: accounts.v1.AccountsService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse
- 9, // 12: accounts.v1.AccountsService.RefreshSession:output_type -> google.protobuf.Empty
- 9, // 13: accounts.v1.AccountsService.TokenAuthorization:output_type -> google.protobuf.Empty
- 9, // [9:14] is the sub-list for method output_type
- 4, // [4:9] is the sub-list for method input_type
- 4, // [4:4] is the sub-list for extension type_name
- 4, // [4:4] is the sub-list for extension extendee
- 0, // [0:4] is the sub-list for field type_name
+ 2, // 0: accounts.v1.SignUpRequest.personal_data:type_name -> accounts.v1.PersonalData
+ 1, // 1: accounts.v1.ResetPasswordRequest.data:type_name -> accounts.v1.AccountData
+ 1, // 2: accounts.v1.NewPasswordRequest.data:type_name -> accounts.v1.AccountData
+ 0, // 3: accounts.v1.NewPasswordRequest.password:type_name -> accounts.v1.AccountPassword
+ 1, // 4: accounts.v1.IsEmailVerifiedRequest.data:type_name -> accounts.v1.AccountData
+ 4, // 5: accounts.v1.PublicAccountsService.SignIn:input_type -> accounts.v1.SignInRequest
+ 3, // 6: accounts.v1.PublicAccountsService.SignUp:input_type -> accounts.v1.SignUpRequest
+ 7, // 7: accounts.v1.AccountsService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest
+ 10, // 8: accounts.v1.AccountsService.RefreshSession:input_type -> google.protobuf.Empty
+ 10, // 9: accounts.v1.AccountsService.TokenAuthorization:input_type -> google.protobuf.Empty
+ 10, // 10: accounts.v1.PublicAccountsService.SignIn:output_type -> google.protobuf.Empty
+ 10, // 11: accounts.v1.PublicAccountsService.SignUp:output_type -> google.protobuf.Empty
+ 8, // 12: accounts.v1.AccountsService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse
+ 10, // 13: accounts.v1.AccountsService.RefreshSession:output_type -> google.protobuf.Empty
+ 10, // 14: accounts.v1.AccountsService.TokenAuthorization:output_type -> google.protobuf.Empty
+ 10, // [10:15] is the sub-list for method output_type
+ 5, // [5:10] 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_accounts_v1_accounts_v1_proto_init() }
@@ -555,7 +621,7 @@ func file_accounts_v1_accounts_v1_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_accounts_v1_accounts_v1_proto_rawDesc), len(file_accounts_v1_accounts_v1_proto_rawDesc)),
NumEnums: 0,
- NumMessages: 9,
+ NumMessages: 10,
NumExtensions: 0,
NumServices: 2,
},