From ad8a1eb091c20823bbcea1f3454d41ba9f0c8d35 Mon Sep 17 00:00:00 2001 From: devops-bot Date: Mon, 27 Apr 2026 03:45:27 +0000 Subject: [PATCH 01/13] Update protobuf definitions: 76a233dc By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/76a233dcfdb1e87c355159891fa64c64bd935e05 Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/33 --- pkg/accounts/v1/accounts_v1.pb.go | 424 ++++++++++++------------- pkg/accounts/v1/accounts_v1_grpc.pb.go | 200 ++++++------ 2 files changed, 302 insertions(+), 322 deletions(-) diff --git a/pkg/accounts/v1/accounts_v1.pb.go b/pkg/accounts/v1/accounts_v1.pb.go index ec828b2..de4c457 100644 --- a/pkg/accounts/v1/accounts_v1.pb.go +++ b/pkg/accounts/v1/accounts_v1.pb.go @@ -6,7 +6,7 @@ // protoc (unknown) // source: accounts/v1/accounts_v1.proto -package accounts +package v1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -24,96 +24,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type EmailVerified struct { - state protoimpl.MessageState `protogen:"open.v1"` - Verified bool `protobuf:"varint,1,opt,name=verified,proto3" json:"verified,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *EmailVerified) Reset() { - *x = EmailVerified{} - mi := &file_accounts_v1_accounts_v1_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *EmailVerified) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EmailVerified) ProtoMessage() {} - -func (x *EmailVerified) ProtoReflect() protoreflect.Message { - mi := &file_accounts_v1_accounts_v1_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 EmailVerified.ProtoReflect.Descriptor instead. -func (*EmailVerified) Descriptor() ([]byte, []int) { - return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{0} -} - -func (x *EmailVerified) GetVerified() bool { - if x != nil { - return x.Verified - } - return false -} - -// * -// Represents a environment UUID only -type AccountId struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Contour ID: UUID - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache -} - -func (x *AccountId) Reset() { - *x = AccountId{} - mi := &file_accounts_v1_accounts_v1_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AccountId) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AccountId) ProtoMessage() {} - -func (x *AccountId) ProtoReflect() protoreflect.Message { - mi := &file_accounts_v1_accounts_v1_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 AccountId.ProtoReflect.Descriptor instead. -func (*AccountId) Descriptor() ([]byte, []int) { - return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{1} -} - -func (x *AccountId) GetId() string { - if x != nil { - return x.Id - } - return "" -} - type AccountPassword struct { state protoimpl.MessageState `protogen:"open.v1"` Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` @@ -123,7 +33,7 @@ type AccountPassword struct { func (x *AccountPassword) Reset() { *x = AccountPassword{} - mi := &file_accounts_v1_accounts_v1_proto_msgTypes[2] + mi := &file_accounts_v1_accounts_v1_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -135,7 +45,7 @@ func (x *AccountPassword) String() string { func (*AccountPassword) ProtoMessage() {} func (x *AccountPassword) ProtoReflect() protoreflect.Message { - mi := &file_accounts_v1_accounts_v1_proto_msgTypes[2] + mi := &file_accounts_v1_accounts_v1_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -148,7 +58,7 @@ func (x *AccountPassword) ProtoReflect() protoreflect.Message { // Deprecated: Use AccountPassword.ProtoReflect.Descriptor instead. func (*AccountPassword) Descriptor() ([]byte, []int) { - return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{2} + return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{0} } func (x *AccountPassword) GetPassword() string { @@ -168,7 +78,7 @@ type AccountData struct { func (x *AccountData) Reset() { *x = AccountData{} - mi := &file_accounts_v1_accounts_v1_proto_msgTypes[3] + mi := &file_accounts_v1_accounts_v1_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -180,7 +90,7 @@ func (x *AccountData) String() string { func (*AccountData) ProtoMessage() {} func (x *AccountData) ProtoReflect() protoreflect.Message { - mi := &file_accounts_v1_accounts_v1_proto_msgTypes[3] + mi := &file_accounts_v1_accounts_v1_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -193,7 +103,7 @@ func (x *AccountData) ProtoReflect() protoreflect.Message { // Deprecated: Use AccountData.ProtoReflect.Descriptor instead. func (*AccountData) Descriptor() ([]byte, []int) { - return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{3} + return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{1} } func (x *AccountData) GetName() string { @@ -210,7 +120,7 @@ func (x *AccountData) GetEmail() string { return "" } -type AccountWithPassword struct { +type SignUpRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Data *AccountData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Password *AccountPassword `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` @@ -218,20 +128,123 @@ type AccountWithPassword struct { sizeCache protoimpl.SizeCache } -func (x *AccountWithPassword) Reset() { - *x = AccountWithPassword{} +func (x *SignUpRequest) Reset() { + *x = SignUpRequest{} + mi := &file_accounts_v1_accounts_v1_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SignUpRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignUpRequest) ProtoMessage() {} + +func (x *SignUpRequest) 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 SignUpRequest.ProtoReflect.Descriptor instead. +func (*SignUpRequest) Descriptor() ([]byte, []int) { + return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{2} +} + +func (x *SignUpRequest) GetData() *AccountData { + if x != nil { + return x.Data + } + return nil +} + +func (x *SignUpRequest) GetPassword() *AccountPassword { + if x != nil { + return x.Password + } + return nil +} + +type SignInRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data *AccountData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Password *AccountPassword `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SignInRequest) Reset() { + *x = SignInRequest{} + mi := &file_accounts_v1_accounts_v1_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SignInRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignInRequest) ProtoMessage() {} + +func (x *SignInRequest) ProtoReflect() protoreflect.Message { + mi := &file_accounts_v1_accounts_v1_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 SignInRequest.ProtoReflect.Descriptor instead. +func (*SignInRequest) Descriptor() ([]byte, []int) { + return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{3} +} + +func (x *SignInRequest) GetData() *AccountData { + if x != nil { + return x.Data + } + return nil +} + +func (x *SignInRequest) GetPassword() *AccountPassword { + if x != nil { + return x.Password + } + return nil +} + +type ResetPasswordRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data *AccountData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResetPasswordRequest) Reset() { + *x = ResetPasswordRequest{} mi := &file_accounts_v1_accounts_v1_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *AccountWithPassword) String() string { +func (x *ResetPasswordRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AccountWithPassword) ProtoMessage() {} +func (*ResetPasswordRequest) ProtoMessage() {} -func (x *AccountWithPassword) ProtoReflect() protoreflect.Message { +func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message { mi := &file_accounts_v1_accounts_v1_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -243,26 +256,19 @@ func (x *AccountWithPassword) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AccountWithPassword.ProtoReflect.Descriptor instead. -func (*AccountWithPassword) Descriptor() ([]byte, []int) { +// Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead. +func (*ResetPasswordRequest) Descriptor() ([]byte, []int) { return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{4} } -func (x *AccountWithPassword) GetData() *AccountData { +func (x *ResetPasswordRequest) GetData() *AccountData { if x != nil { return x.Data } return nil } -func (x *AccountWithPassword) GetPassword() *AccountPassword { - if x != nil { - return x.Password - } - return nil -} - -type AccountWithPasswordAndCode struct { +type NewPasswordRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Data *AccountData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Password *AccountPassword `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` @@ -271,20 +277,20 @@ type AccountWithPasswordAndCode struct { sizeCache protoimpl.SizeCache } -func (x *AccountWithPasswordAndCode) Reset() { - *x = AccountWithPasswordAndCode{} +func (x *NewPasswordRequest) Reset() { + *x = NewPasswordRequest{} mi := &file_accounts_v1_accounts_v1_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *AccountWithPasswordAndCode) String() string { +func (x *NewPasswordRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AccountWithPasswordAndCode) ProtoMessage() {} +func (*NewPasswordRequest) ProtoMessage() {} -func (x *AccountWithPasswordAndCode) ProtoReflect() protoreflect.Message { +func (x *NewPasswordRequest) ProtoReflect() protoreflect.Message { mi := &file_accounts_v1_accounts_v1_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -296,54 +302,53 @@ func (x *AccountWithPasswordAndCode) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AccountWithPasswordAndCode.ProtoReflect.Descriptor instead. -func (*AccountWithPasswordAndCode) Descriptor() ([]byte, []int) { +// Deprecated: Use NewPasswordRequest.ProtoReflect.Descriptor instead. +func (*NewPasswordRequest) Descriptor() ([]byte, []int) { return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{5} } -func (x *AccountWithPasswordAndCode) GetData() *AccountData { +func (x *NewPasswordRequest) GetData() *AccountData { if x != nil { return x.Data } return nil } -func (x *AccountWithPasswordAndCode) GetPassword() *AccountPassword { +func (x *NewPasswordRequest) GetPassword() *AccountPassword { if x != nil { return x.Password } return nil } -func (x *AccountWithPasswordAndCode) GetCode() string { +func (x *NewPasswordRequest) GetCode() string { if x != nil { return x.Code } return "" } -type AccountFull struct { +type IsEmailVerifiedRequest struct { state protoimpl.MessageState `protogen:"open.v1"` - Id *AccountId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Data *AccountData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Data *AccountData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *AccountFull) Reset() { - *x = AccountFull{} +func (x *IsEmailVerifiedRequest) Reset() { + *x = IsEmailVerifiedRequest{} mi := &file_accounts_v1_accounts_v1_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *AccountFull) String() string { +func (x *IsEmailVerifiedRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AccountFull) ProtoMessage() {} +func (*IsEmailVerifiedRequest) ProtoMessage() {} -func (x *AccountFull) ProtoReflect() protoreflect.Message { +func (x *IsEmailVerifiedRequest) ProtoReflect() protoreflect.Message { mi := &file_accounts_v1_accounts_v1_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -355,48 +360,39 @@ func (x *AccountFull) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AccountFull.ProtoReflect.Descriptor instead. -func (*AccountFull) Descriptor() ([]byte, []int) { +// Deprecated: Use IsEmailVerifiedRequest.ProtoReflect.Descriptor instead. +func (*IsEmailVerifiedRequest) Descriptor() ([]byte, []int) { return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{6} } -func (x *AccountFull) GetId() *AccountId { - if x != nil { - return x.Id - } - return nil -} - -func (x *AccountFull) GetData() *AccountData { +func (x *IsEmailVerifiedRequest) GetData() *AccountData { if x != nil { return x.Data } return nil } -type AccountFullWithToken struct { +type IsEmailVerifiedResponse struct { state protoimpl.MessageState `protogen:"open.v1"` - Id *AccountId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Data *AccountData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + Verified bool `protobuf:"varint,1,opt,name=verified,proto3" json:"verified,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *AccountFullWithToken) Reset() { - *x = AccountFullWithToken{} +func (x *IsEmailVerifiedResponse) Reset() { + *x = IsEmailVerifiedResponse{} mi := &file_accounts_v1_accounts_v1_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *AccountFullWithToken) String() string { +func (x *IsEmailVerifiedResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AccountFullWithToken) ProtoMessage() {} +func (*IsEmailVerifiedResponse) ProtoMessage() {} -func (x *AccountFullWithToken) ProtoReflect() protoreflect.Message { +func (x *IsEmailVerifiedResponse) ProtoReflect() protoreflect.Message { mi := &file_accounts_v1_accounts_v1_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -408,66 +404,50 @@ func (x *AccountFullWithToken) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AccountFullWithToken.ProtoReflect.Descriptor instead. -func (*AccountFullWithToken) Descriptor() ([]byte, []int) { +// Deprecated: Use IsEmailVerifiedResponse.ProtoReflect.Descriptor instead. +func (*IsEmailVerifiedResponse) Descriptor() ([]byte, []int) { return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{7} } -func (x *AccountFullWithToken) GetId() *AccountId { +func (x *IsEmailVerifiedResponse) GetVerified() bool { if x != nil { - return x.Id + return x.Verified } - return nil -} - -func (x *AccountFullWithToken) GetData() *AccountData { - if x != nil { - return x.Data - } - return nil -} - -func (x *AccountFullWithToken) GetToken() string { - if x != nil { - return x.Token - } - return "" + return false } var File_accounts_v1_accounts_v1_proto protoreflect.FileDescriptor const file_accounts_v1_accounts_v1_proto_rawDesc = "" + "\n" + - "\x1daccounts/v1/accounts_v1.proto\x12\baccounts\x1a\x1bgoogle/protobuf/empty.proto\"+\n" + - "\rEmailVerified\x12\x1a\n" + - "\bverified\x18\x01 \x01(\bR\bverified\"\x1b\n" + - "\tAccountId\x12\x0e\n" + - "\x02id\x18\x01 \x01(\tR\x02id\"-\n" + + "\x1daccounts/v1/accounts_v1.proto\x12\vaccounts.v1\x1a\x1bgoogle/protobuf/empty.proto\"-\n" + "\x0fAccountPassword\x12\x1a\n" + "\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\"w\n" + - "\x13AccountWithPassword\x12)\n" + - "\x04data\x18\x01 \x01(\v2\x15.accounts.AccountDataR\x04data\x125\n" + - "\bpassword\x18\x02 \x01(\v2\x19.accounts.AccountPasswordR\bpassword\"\x92\x01\n" + - "\x1aAccountWithPasswordAndCode\x12)\n" + - "\x04data\x18\x01 \x01(\v2\x15.accounts.AccountDataR\x04data\x125\n" + - "\bpassword\x18\x02 \x01(\v2\x19.accounts.AccountPasswordR\bpassword\x12\x12\n" + - "\x04code\x18\x03 \x01(\tR\x04code\"]\n" + - "\vAccountFull\x12#\n" + - "\x02id\x18\x01 \x01(\v2\x13.accounts.AccountIdR\x02id\x12)\n" + - "\x04data\x18\x02 \x01(\v2\x15.accounts.AccountDataR\x04data\"|\n" + - "\x14AccountFullWithToken\x12#\n" + - "\x02id\x18\x01 \x01(\v2\x13.accounts.AccountIdR\x02id\x12)\n" + - "\x04data\x18\x02 \x01(\v2\x15.accounts.AccountDataR\x04data\x12\x14\n" + - "\x05token\x18\x03 \x01(\tR\x05token2\xf6\x02\n" + - "\bAccounts\x12I\n" + - "\x06SignUp\x12\x1d.accounts.AccountWithPassword\x1a\x1e.accounts.AccountFullWithToken\"\x00\x12I\n" + - "\x06SignIn\x12\x1d.accounts.AccountWithPassword\x1a\x1e.accounts.AccountFullWithToken\"\x00\x12@\n" + - "\rResetPassword\x12\x15.accounts.AccountData\x1a\x16.google.protobuf.Empty\"\x00\x12M\n" + - "\vNewPassword\x12$.accounts.AccountWithPasswordAndCode\x1a\x16.google.protobuf.Empty\"\x00\x12C\n" + - "\x0fIsEmailVerified\x12\x15.accounts.AccountData\x1a\x17.accounts.EmailVerified\"\x00BFZDgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accountsb\x06proto3" + "\rSignUpRequest\x12,\n" + + "\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\x128\n" + + "\bpassword\x18\x02 \x01(\v2\x1c.accounts.v1.AccountPasswordR\bpassword\"w\n" + + "\rSignInRequest\x12,\n" + + "\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\x128\n" + + "\bpassword\x18\x02 \x01(\v2\x1c.accounts.v1.AccountPasswordR\bpassword\"D\n" + + "\x14ResetPasswordRequest\x12,\n" + + "\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\"\x90\x01\n" + + "\x12NewPasswordRequest\x12,\n" + + "\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\x128\n" + + "\bpassword\x18\x02 \x01(\v2\x1c.accounts.v1.AccountPasswordR\bpassword\x12\x12\n" + + "\x04code\x18\x03 \x01(\tR\x04code\"F\n" + + "\x16IsEmailVerifiedRequest\x12,\n" + + "\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\"5\n" + + "\x17IsEmailVerifiedResponse\x12\x1a\n" + + "\bverified\x18\x01 \x01(\bR\bverified2\x89\x03\n" + + "\x0fAccountsService\x12>\n" + + "\x06SignUp\x12\x1a.accounts.v1.SignUpRequest\x1a\x16.google.protobuf.Empty\"\x00\x12>\n" + + "\x06SignIn\x12\x1a.accounts.v1.SignInRequest\x1a\x16.google.protobuf.Empty\"\x00\x12L\n" + + "\rResetPassword\x12!.accounts.v1.ResetPasswordRequest\x1a\x16.google.protobuf.Empty\"\x00\x12H\n" + + "\vNewPassword\x12\x1f.accounts.v1.NewPasswordRequest\x1a\x16.google.protobuf.Empty\"\x00\x12^\n" + + "\x0fIsEmailVerified\x12#.accounts.v1.IsEmailVerifiedRequest\x1a$.accounts.v1.IsEmailVerifiedResponse\"\x00BIZGgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts/v1b\x06proto3" var ( file_accounts_v1_accounts_v1_proto_rawDescOnce sync.Once @@ -483,35 +463,35 @@ func file_accounts_v1_accounts_v1_proto_rawDescGZIP() []byte { var file_accounts_v1_accounts_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_accounts_v1_accounts_v1_proto_goTypes = []any{ - (*EmailVerified)(nil), // 0: accounts.EmailVerified - (*AccountId)(nil), // 1: accounts.AccountId - (*AccountPassword)(nil), // 2: accounts.AccountPassword - (*AccountData)(nil), // 3: accounts.AccountData - (*AccountWithPassword)(nil), // 4: accounts.AccountWithPassword - (*AccountWithPasswordAndCode)(nil), // 5: accounts.AccountWithPasswordAndCode - (*AccountFull)(nil), // 6: accounts.AccountFull - (*AccountFullWithToken)(nil), // 7: accounts.AccountFullWithToken - (*emptypb.Empty)(nil), // 8: google.protobuf.Empty + (*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 + (*emptypb.Empty)(nil), // 8: google.protobuf.Empty } var file_accounts_v1_accounts_v1_proto_depIdxs = []int32{ - 3, // 0: accounts.AccountWithPassword.data:type_name -> accounts.AccountData - 2, // 1: accounts.AccountWithPassword.password:type_name -> accounts.AccountPassword - 3, // 2: accounts.AccountWithPasswordAndCode.data:type_name -> accounts.AccountData - 2, // 3: accounts.AccountWithPasswordAndCode.password:type_name -> accounts.AccountPassword - 1, // 4: accounts.AccountFull.id:type_name -> accounts.AccountId - 3, // 5: accounts.AccountFull.data:type_name -> accounts.AccountData - 1, // 6: accounts.AccountFullWithToken.id:type_name -> accounts.AccountId - 3, // 7: accounts.AccountFullWithToken.data:type_name -> accounts.AccountData - 4, // 8: accounts.Accounts.SignUp:input_type -> accounts.AccountWithPassword - 4, // 9: accounts.Accounts.SignIn:input_type -> accounts.AccountWithPassword - 3, // 10: accounts.Accounts.ResetPassword:input_type -> accounts.AccountData - 5, // 11: accounts.Accounts.NewPassword:input_type -> accounts.AccountWithPasswordAndCode - 3, // 12: accounts.Accounts.IsEmailVerified:input_type -> accounts.AccountData - 7, // 13: accounts.Accounts.SignUp:output_type -> accounts.AccountFullWithToken - 7, // 14: accounts.Accounts.SignIn:output_type -> accounts.AccountFullWithToken - 8, // 15: accounts.Accounts.ResetPassword:output_type -> google.protobuf.Empty - 8, // 16: accounts.Accounts.NewPassword:output_type -> google.protobuf.Empty - 0, // 17: accounts.Accounts.IsEmailVerified:output_type -> accounts.EmailVerified + 1, // 0: accounts.v1.SignUpRequest.data:type_name -> accounts.v1.AccountData + 0, // 1: accounts.v1.SignUpRequest.password:type_name -> accounts.v1.AccountPassword + 1, // 2: accounts.v1.SignInRequest.data:type_name -> accounts.v1.AccountData + 0, // 3: accounts.v1.SignInRequest.password:type_name -> accounts.v1.AccountPassword + 1, // 4: accounts.v1.ResetPasswordRequest.data:type_name -> accounts.v1.AccountData + 1, // 5: accounts.v1.NewPasswordRequest.data:type_name -> accounts.v1.AccountData + 0, // 6: accounts.v1.NewPasswordRequest.password:type_name -> accounts.v1.AccountPassword + 1, // 7: accounts.v1.IsEmailVerifiedRequest.data:type_name -> accounts.v1.AccountData + 2, // 8: accounts.v1.AccountsService.SignUp:input_type -> accounts.v1.SignUpRequest + 3, // 9: accounts.v1.AccountsService.SignIn:input_type -> accounts.v1.SignInRequest + 4, // 10: accounts.v1.AccountsService.ResetPassword:input_type -> accounts.v1.ResetPasswordRequest + 5, // 11: accounts.v1.AccountsService.NewPassword:input_type -> accounts.v1.NewPasswordRequest + 6, // 12: accounts.v1.AccountsService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest + 8, // 13: accounts.v1.AccountsService.SignUp:output_type -> google.protobuf.Empty + 8, // 14: accounts.v1.AccountsService.SignIn:output_type -> google.protobuf.Empty + 8, // 15: accounts.v1.AccountsService.ResetPassword:output_type -> google.protobuf.Empty + 8, // 16: accounts.v1.AccountsService.NewPassword:output_type -> google.protobuf.Empty + 7, // 17: accounts.v1.AccountsService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse 13, // [13:18] is the sub-list for method output_type 8, // [8:13] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name diff --git a/pkg/accounts/v1/accounts_v1_grpc.pb.go b/pkg/accounts/v1/accounts_v1_grpc.pb.go index 0f582ea..ca098c9 100644 --- a/pkg/accounts/v1/accounts_v1_grpc.pb.go +++ b/pkg/accounts/v1/accounts_v1_grpc.pb.go @@ -6,7 +6,7 @@ // - protoc (unknown) // source: accounts/v1/accounts_v1.proto -package accounts +package v1 import ( context "context" @@ -22,257 +22,257 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - Accounts_SignUp_FullMethodName = "/accounts.Accounts/SignUp" - Accounts_SignIn_FullMethodName = "/accounts.Accounts/SignIn" - Accounts_ResetPassword_FullMethodName = "/accounts.Accounts/ResetPassword" - Accounts_NewPassword_FullMethodName = "/accounts.Accounts/NewPassword" - Accounts_IsEmailVerified_FullMethodName = "/accounts.Accounts/IsEmailVerified" + AccountsService_SignUp_FullMethodName = "/accounts.v1.AccountsService/SignUp" + AccountsService_SignIn_FullMethodName = "/accounts.v1.AccountsService/SignIn" + AccountsService_ResetPassword_FullMethodName = "/accounts.v1.AccountsService/ResetPassword" + AccountsService_NewPassword_FullMethodName = "/accounts.v1.AccountsService/NewPassword" + AccountsService_IsEmailVerified_FullMethodName = "/accounts.v1.AccountsService/IsEmailVerified" ) -// AccountsClient is the client API for Accounts service. +// AccountsServiceClient is the client API for AccountsService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. // // * // Service for handling environments -type AccountsClient interface { - SignUp(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithToken, error) - SignIn(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithToken, error) - ResetPassword(ctx context.Context, in *AccountData, opts ...grpc.CallOption) (*emptypb.Empty, error) - NewPassword(ctx context.Context, in *AccountWithPasswordAndCode, opts ...grpc.CallOption) (*emptypb.Empty, error) - IsEmailVerified(ctx context.Context, in *AccountData, opts ...grpc.CallOption) (*EmailVerified, error) +type AccountsServiceClient interface { + SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + NewPassword(ctx context.Context, in *NewPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error) } -type accountsClient struct { +type accountsServiceClient struct { cc grpc.ClientConnInterface } -func NewAccountsClient(cc grpc.ClientConnInterface) AccountsClient { - return &accountsClient{cc} +func NewAccountsServiceClient(cc grpc.ClientConnInterface) AccountsServiceClient { + return &accountsServiceClient{cc} } -func (c *accountsClient) SignUp(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithToken, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(AccountFullWithToken) - err := c.cc.Invoke(ctx, Accounts_SignUp_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *accountsClient) SignIn(ctx context.Context, in *AccountWithPassword, opts ...grpc.CallOption) (*AccountFullWithToken, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(AccountFullWithToken) - err := c.cc.Invoke(ctx, Accounts_SignIn_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *accountsClient) ResetPassword(ctx context.Context, in *AccountData, opts ...grpc.CallOption) (*emptypb.Empty, error) { +func (c *accountsServiceClient) SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, Accounts_ResetPassword_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, AccountsService_SignUp_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *accountsClient) NewPassword(ctx context.Context, in *AccountWithPasswordAndCode, opts ...grpc.CallOption) (*emptypb.Empty, error) { +func (c *accountsServiceClient) SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, Accounts_NewPassword_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, AccountsService_SignIn_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *accountsClient) IsEmailVerified(ctx context.Context, in *AccountData, opts ...grpc.CallOption) (*EmailVerified, error) { +func (c *accountsServiceClient) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(EmailVerified) - err := c.cc.Invoke(ctx, Accounts_IsEmailVerified_FullMethodName, in, out, cOpts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, AccountsService_ResetPassword_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -// AccountsServer is the server API for Accounts service. -// All implementations should embed UnimplementedAccountsServer +func (c *accountsServiceClient) NewPassword(ctx context.Context, in *NewPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, AccountsService_NewPassword_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *accountsServiceClient) IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(IsEmailVerifiedResponse) + err := c.cc.Invoke(ctx, AccountsService_IsEmailVerified_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AccountsServiceServer is the server API for AccountsService service. +// All implementations should embed UnimplementedAccountsServiceServer // for forward compatibility. // // * // Service for handling environments -type AccountsServer interface { - SignUp(context.Context, *AccountWithPassword) (*AccountFullWithToken, error) - SignIn(context.Context, *AccountWithPassword) (*AccountFullWithToken, error) - ResetPassword(context.Context, *AccountData) (*emptypb.Empty, error) - NewPassword(context.Context, *AccountWithPasswordAndCode) (*emptypb.Empty, error) - IsEmailVerified(context.Context, *AccountData) (*EmailVerified, error) +type AccountsServiceServer interface { + SignUp(context.Context, *SignUpRequest) (*emptypb.Empty, error) + SignIn(context.Context, *SignInRequest) (*emptypb.Empty, error) + ResetPassword(context.Context, *ResetPasswordRequest) (*emptypb.Empty, error) + NewPassword(context.Context, *NewPasswordRequest) (*emptypb.Empty, error) + IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) } -// UnimplementedAccountsServer should be embedded to have +// UnimplementedAccountsServiceServer should be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. -type UnimplementedAccountsServer struct{} +type UnimplementedAccountsServiceServer struct{} -func (UnimplementedAccountsServer) SignUp(context.Context, *AccountWithPassword) (*AccountFullWithToken, error) { +func (UnimplementedAccountsServiceServer) SignUp(context.Context, *SignUpRequest) (*emptypb.Empty, error) { return nil, status.Error(codes.Unimplemented, "method SignUp not implemented") } -func (UnimplementedAccountsServer) SignIn(context.Context, *AccountWithPassword) (*AccountFullWithToken, error) { +func (UnimplementedAccountsServiceServer) SignIn(context.Context, *SignInRequest) (*emptypb.Empty, error) { return nil, status.Error(codes.Unimplemented, "method SignIn not implemented") } -func (UnimplementedAccountsServer) ResetPassword(context.Context, *AccountData) (*emptypb.Empty, error) { +func (UnimplementedAccountsServiceServer) ResetPassword(context.Context, *ResetPasswordRequest) (*emptypb.Empty, error) { return nil, status.Error(codes.Unimplemented, "method ResetPassword not implemented") } -func (UnimplementedAccountsServer) NewPassword(context.Context, *AccountWithPasswordAndCode) (*emptypb.Empty, error) { +func (UnimplementedAccountsServiceServer) NewPassword(context.Context, *NewPasswordRequest) (*emptypb.Empty, error) { return nil, status.Error(codes.Unimplemented, "method NewPassword not implemented") } -func (UnimplementedAccountsServer) IsEmailVerified(context.Context, *AccountData) (*EmailVerified, error) { +func (UnimplementedAccountsServiceServer) IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) { return nil, status.Error(codes.Unimplemented, "method IsEmailVerified not implemented") } -func (UnimplementedAccountsServer) testEmbeddedByValue() {} +func (UnimplementedAccountsServiceServer) testEmbeddedByValue() {} -// UnsafeAccountsServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to AccountsServer will +// UnsafeAccountsServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AccountsServiceServer will // result in compilation errors. -type UnsafeAccountsServer interface { - mustEmbedUnimplementedAccountsServer() +type UnsafeAccountsServiceServer interface { + mustEmbedUnimplementedAccountsServiceServer() } -func RegisterAccountsServer(s grpc.ServiceRegistrar, srv AccountsServer) { - // If the following call panics, it indicates UnimplementedAccountsServer was +func RegisterAccountsServiceServer(s grpc.ServiceRegistrar, srv AccountsServiceServer) { + // If the following call panics, it indicates UnimplementedAccountsServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } - s.RegisterService(&Accounts_ServiceDesc, srv) + s.RegisterService(&AccountsService_ServiceDesc, srv) } -func _Accounts_SignUp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AccountWithPassword) +func _AccountsService_SignUp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignUpRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AccountsServer).SignUp(ctx, in) + return srv.(AccountsServiceServer).SignUp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Accounts_SignUp_FullMethodName, + FullMethod: AccountsService_SignUp_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsServer).SignUp(ctx, req.(*AccountWithPassword)) + return srv.(AccountsServiceServer).SignUp(ctx, req.(*SignUpRequest)) } return interceptor(ctx, in, info, handler) } -func _Accounts_SignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AccountWithPassword) +func _AccountsService_SignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SignInRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AccountsServer).SignIn(ctx, in) + return srv.(AccountsServiceServer).SignIn(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Accounts_SignIn_FullMethodName, + FullMethod: AccountsService_SignIn_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsServer).SignIn(ctx, req.(*AccountWithPassword)) + return srv.(AccountsServiceServer).SignIn(ctx, req.(*SignInRequest)) } return interceptor(ctx, in, info, handler) } -func _Accounts_ResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AccountData) +func _AccountsService_ResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResetPasswordRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AccountsServer).ResetPassword(ctx, in) + return srv.(AccountsServiceServer).ResetPassword(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Accounts_ResetPassword_FullMethodName, + FullMethod: AccountsService_ResetPassword_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsServer).ResetPassword(ctx, req.(*AccountData)) + return srv.(AccountsServiceServer).ResetPassword(ctx, req.(*ResetPasswordRequest)) } return interceptor(ctx, in, info, handler) } -func _Accounts_NewPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AccountWithPasswordAndCode) +func _AccountsService_NewPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(NewPasswordRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AccountsServer).NewPassword(ctx, in) + return srv.(AccountsServiceServer).NewPassword(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Accounts_NewPassword_FullMethodName, + FullMethod: AccountsService_NewPassword_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsServer).NewPassword(ctx, req.(*AccountWithPasswordAndCode)) + return srv.(AccountsServiceServer).NewPassword(ctx, req.(*NewPasswordRequest)) } return interceptor(ctx, in, info, handler) } -func _Accounts_IsEmailVerified_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AccountData) +func _AccountsService_IsEmailVerified_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IsEmailVerifiedRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AccountsServer).IsEmailVerified(ctx, in) + return srv.(AccountsServiceServer).IsEmailVerified(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Accounts_IsEmailVerified_FullMethodName, + FullMethod: AccountsService_IsEmailVerified_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsServer).IsEmailVerified(ctx, req.(*AccountData)) + return srv.(AccountsServiceServer).IsEmailVerified(ctx, req.(*IsEmailVerifiedRequest)) } return interceptor(ctx, in, info, handler) } -// Accounts_ServiceDesc is the grpc.ServiceDesc for Accounts service. +// AccountsService_ServiceDesc is the grpc.ServiceDesc for AccountsService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) -var Accounts_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "accounts.Accounts", - HandlerType: (*AccountsServer)(nil), +var AccountsService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "accounts.v1.AccountsService", + HandlerType: (*AccountsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SignUp", - Handler: _Accounts_SignUp_Handler, + Handler: _AccountsService_SignUp_Handler, }, { MethodName: "SignIn", - Handler: _Accounts_SignIn_Handler, + Handler: _AccountsService_SignIn_Handler, }, { MethodName: "ResetPassword", - Handler: _Accounts_ResetPassword_Handler, + Handler: _AccountsService_ResetPassword_Handler, }, { MethodName: "NewPassword", - Handler: _Accounts_NewPassword_Handler, + Handler: _AccountsService_NewPassword_Handler, }, { MethodName: "IsEmailVerified", - Handler: _Accounts_IsEmailVerified_Handler, + Handler: _AccountsService_IsEmailVerified_Handler, }, }, Streams: []grpc.StreamDesc{}, -- 2.49.1 From 86cad563ade345d895e9a0b93aafc51c6ecc4cf3 Mon Sep 17 00:00:00 2001 From: devops-bot Date: Mon, 27 Apr 2026 04:42:59 +0000 Subject: [PATCH 02/13] Update protobuf definitions: 2b17a96d By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/2b17a96dc568dff17efe4e9524596524391112e6 Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/38 -- 2.49.1 From c14a720c41b8edc3984180cfb84cec4cbc81fbb6 Mon Sep 17 00:00:00 2001 From: devops-bot Date: Mon, 27 Apr 2026 04:45:04 +0000 Subject: [PATCH 03/13] Update protobuf definitions: 2b17a96d By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/2b17a96dc568dff17efe4e9524596524391112e6 Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/39 -- 2.49.1 From 5ba110246d4e49373dead0ea67cf8f9d174977f9 Mon Sep 17 00:00:00 2001 From: devops-bot Date: Mon, 27 Apr 2026 06:43:24 +0000 Subject: [PATCH 04/13] Update protobuf definitions: 2b17a96d By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/2b17a96dc568dff17efe4e9524596524391112e6 Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/40 -- 2.49.1 From a681fa4ba7a798bca9cc4530059074e15d77de39 Mon Sep 17 00:00:00 2001 From: devops-bot Date: Mon, 27 Apr 2026 06:44:36 +0000 Subject: [PATCH 05/13] Update protobuf definitions: 2b17a96d By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/2b17a96dc568dff17efe4e9524596524391112e6 Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/41 -- 2.49.1 From b5754279e9b9de130e0e35354e4bc2a81b71c672 Mon Sep 17 00:00:00 2001 From: devops-bot Date: Mon, 27 Apr 2026 06:56:55 +0000 Subject: [PATCH 06/13] Update protobuf definitions: 4119ac8e By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/4119ac8e9f6ceb6be9267706ed9e8da67b0a63ba Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/42 -- 2.49.1 From 18502db94f94f45c453650fb81907769a4a43e6a Mon Sep 17 00:00:00 2001 From: devops-bot Date: Mon, 27 Apr 2026 09:20:11 +0000 Subject: [PATCH 07/13] Update protobuf definitions: 75bcee4b By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/75bcee4b5c229e4ad780a314036b540bd4f7f4f4 Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/43 -- 2.49.1 From ef7cf1e5c81d8c9ee88b2921cc5cdc5b86d081bc Mon Sep 17 00:00:00 2001 From: devops-bot Date: Mon, 27 Apr 2026 16:36:06 +0000 Subject: [PATCH 08/13] Update protobuf definitions: 63296224 By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/63296224668fee1720b8bb810a40637fda0d8fed Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/44 --- pkg/accounts/v1/accounts_v1.pb.go | 38 ++-- pkg/accounts/v1/accounts_v1_grpc.pb.go | 276 ++++++++++++++++++------- 2 files changed, 221 insertions(+), 93 deletions(-) diff --git a/pkg/accounts/v1/accounts_v1.pb.go b/pkg/accounts/v1/accounts_v1.pb.go index de4c457..022be23 100644 --- a/pkg/accounts/v1/accounts_v1.pb.go +++ b/pkg/accounts/v1/accounts_v1.pb.go @@ -1,4 +1,4 @@ -/// This file has messages for describing environments +/// Protobuf definitions for the accounts service. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: @@ -441,12 +441,14 @@ const file_accounts_v1_accounts_v1_proto_rawDesc = "" + "\x16IsEmailVerifiedRequest\x12,\n" + "\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\"5\n" + "\x17IsEmailVerifiedResponse\x12\x1a\n" + - "\bverified\x18\x01 \x01(\bR\bverified2\x89\x03\n" + - "\x0fAccountsService\x12>\n" + + "\bverified\x18\x01 \x01(\bR\bverified2\xf1\x02\n" + + "\x15AccountsNoAuthService\x12>\n" + "\x06SignUp\x12\x1a.accounts.v1.SignUpRequest\x1a\x16.google.protobuf.Empty\"\x00\x12>\n" + "\x06SignIn\x12\x1a.accounts.v1.SignInRequest\x1a\x16.google.protobuf.Empty\"\x00\x12L\n" + "\rResetPassword\x12!.accounts.v1.ResetPasswordRequest\x1a\x16.google.protobuf.Empty\"\x00\x12H\n" + - "\vNewPassword\x12\x1f.accounts.v1.NewPasswordRequest\x1a\x16.google.protobuf.Empty\"\x00\x12^\n" + + "\vNewPassword\x12\x1f.accounts.v1.NewPasswordRequest\x1a\x16.google.protobuf.Empty\"\x00\x12@\n" + + "\fRefreshToken\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x002t\n" + + "\x12AccountAuthService\x12^\n" + "\x0fIsEmailVerified\x12#.accounts.v1.IsEmailVerifiedRequest\x1a$.accounts.v1.IsEmailVerifiedResponse\"\x00BIZGgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts/v1b\x06proto3" var ( @@ -482,18 +484,20 @@ var file_accounts_v1_accounts_v1_proto_depIdxs = []int32{ 1, // 5: accounts.v1.NewPasswordRequest.data:type_name -> accounts.v1.AccountData 0, // 6: accounts.v1.NewPasswordRequest.password:type_name -> accounts.v1.AccountPassword 1, // 7: accounts.v1.IsEmailVerifiedRequest.data:type_name -> accounts.v1.AccountData - 2, // 8: accounts.v1.AccountsService.SignUp:input_type -> accounts.v1.SignUpRequest - 3, // 9: accounts.v1.AccountsService.SignIn:input_type -> accounts.v1.SignInRequest - 4, // 10: accounts.v1.AccountsService.ResetPassword:input_type -> accounts.v1.ResetPasswordRequest - 5, // 11: accounts.v1.AccountsService.NewPassword:input_type -> accounts.v1.NewPasswordRequest - 6, // 12: accounts.v1.AccountsService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest - 8, // 13: accounts.v1.AccountsService.SignUp:output_type -> google.protobuf.Empty - 8, // 14: accounts.v1.AccountsService.SignIn:output_type -> google.protobuf.Empty - 8, // 15: accounts.v1.AccountsService.ResetPassword:output_type -> google.protobuf.Empty - 8, // 16: accounts.v1.AccountsService.NewPassword:output_type -> google.protobuf.Empty - 7, // 17: accounts.v1.AccountsService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse - 13, // [13:18] is the sub-list for method output_type - 8, // [8:13] is the sub-list for method input_type + 2, // 8: accounts.v1.AccountsNoAuthService.SignUp:input_type -> accounts.v1.SignUpRequest + 3, // 9: accounts.v1.AccountsNoAuthService.SignIn:input_type -> accounts.v1.SignInRequest + 4, // 10: accounts.v1.AccountsNoAuthService.ResetPassword:input_type -> accounts.v1.ResetPasswordRequest + 5, // 11: accounts.v1.AccountsNoAuthService.NewPassword:input_type -> accounts.v1.NewPasswordRequest + 8, // 12: accounts.v1.AccountsNoAuthService.RefreshToken:input_type -> google.protobuf.Empty + 6, // 13: accounts.v1.AccountAuthService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest + 8, // 14: accounts.v1.AccountsNoAuthService.SignUp:output_type -> google.protobuf.Empty + 8, // 15: accounts.v1.AccountsNoAuthService.SignIn:output_type -> google.protobuf.Empty + 8, // 16: accounts.v1.AccountsNoAuthService.ResetPassword:output_type -> google.protobuf.Empty + 8, // 17: accounts.v1.AccountsNoAuthService.NewPassword:output_type -> google.protobuf.Empty + 8, // 18: accounts.v1.AccountsNoAuthService.RefreshToken:output_type -> google.protobuf.Empty + 7, // 19: accounts.v1.AccountAuthService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse + 14, // [14:20] is the sub-list for method output_type + 8, // [8:14] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name 8, // [8:8] is the sub-list for extension extendee 0, // [0:8] is the sub-list for field type_name @@ -512,7 +516,7 @@ func file_accounts_v1_accounts_v1_proto_init() { NumEnums: 0, NumMessages: 8, NumExtensions: 0, - NumServices: 1, + NumServices: 2, }, GoTypes: file_accounts_v1_accounts_v1_proto_goTypes, DependencyIndexes: file_accounts_v1_accounts_v1_proto_depIdxs, diff --git a/pkg/accounts/v1/accounts_v1_grpc.pb.go b/pkg/accounts/v1/accounts_v1_grpc.pb.go index ca098c9..6c84952 100644 --- a/pkg/accounts/v1/accounts_v1_grpc.pb.go +++ b/pkg/accounts/v1/accounts_v1_grpc.pb.go @@ -1,4 +1,4 @@ -/// This file has messages for describing environments +/// Protobuf definitions for the accounts service. // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: @@ -22,257 +22,381 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - AccountsService_SignUp_FullMethodName = "/accounts.v1.AccountsService/SignUp" - AccountsService_SignIn_FullMethodName = "/accounts.v1.AccountsService/SignIn" - AccountsService_ResetPassword_FullMethodName = "/accounts.v1.AccountsService/ResetPassword" - AccountsService_NewPassword_FullMethodName = "/accounts.v1.AccountsService/NewPassword" - AccountsService_IsEmailVerified_FullMethodName = "/accounts.v1.AccountsService/IsEmailVerified" + AccountsNoAuthService_SignUp_FullMethodName = "/accounts.v1.AccountsNoAuthService/SignUp" + AccountsNoAuthService_SignIn_FullMethodName = "/accounts.v1.AccountsNoAuthService/SignIn" + AccountsNoAuthService_ResetPassword_FullMethodName = "/accounts.v1.AccountsNoAuthService/ResetPassword" + AccountsNoAuthService_NewPassword_FullMethodName = "/accounts.v1.AccountsNoAuthService/NewPassword" + AccountsNoAuthService_RefreshToken_FullMethodName = "/accounts.v1.AccountsNoAuthService/RefreshToken" ) -// AccountsServiceClient is the client API for AccountsService service. +// AccountsNoAuthServiceClient is the client API for AccountsNoAuthService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. // // * -// Service for handling environments -type AccountsServiceClient interface { +// Service for handling accounts that do not require authentication +type AccountsNoAuthServiceClient interface { + // Create a new user SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + // Sing in into an existing account SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + // Reset the password, if it was lost ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + // Set the new password after reset NewPassword(ctx context.Context, in *NewPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error) + // Send the refresh token request, token should be passed in the metadata. + // This rpc does requier auth, but it should be handled not on the middleware level, + // that's why it set in the NoAuth service + RefreshToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) } -type accountsServiceClient struct { +type accountsNoAuthServiceClient struct { cc grpc.ClientConnInterface } -func NewAccountsServiceClient(cc grpc.ClientConnInterface) AccountsServiceClient { - return &accountsServiceClient{cc} +func NewAccountsNoAuthServiceClient(cc grpc.ClientConnInterface) AccountsNoAuthServiceClient { + return &accountsNoAuthServiceClient{cc} } -func (c *accountsServiceClient) SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { +func (c *accountsNoAuthServiceClient) SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, AccountsService_SignUp_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, AccountsNoAuthService_SignUp_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *accountsServiceClient) SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { +func (c *accountsNoAuthServiceClient) SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, AccountsService_SignIn_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, AccountsNoAuthService_SignIn_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *accountsServiceClient) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { +func (c *accountsNoAuthServiceClient) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, AccountsService_ResetPassword_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, AccountsNoAuthService_ResetPassword_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *accountsServiceClient) NewPassword(ctx context.Context, in *NewPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { +func (c *accountsNoAuthServiceClient) NewPassword(ctx context.Context, in *NewPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, AccountsService_NewPassword_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, AccountsNoAuthService_NewPassword_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *accountsServiceClient) IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error) { +func (c *accountsNoAuthServiceClient) RefreshToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(IsEmailVerifiedResponse) - err := c.cc.Invoke(ctx, AccountsService_IsEmailVerified_FullMethodName, in, out, cOpts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, AccountsNoAuthService_RefreshToken_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -// AccountsServiceServer is the server API for AccountsService service. -// All implementations should embed UnimplementedAccountsServiceServer +// AccountsNoAuthServiceServer is the server API for AccountsNoAuthService service. +// All implementations should embed UnimplementedAccountsNoAuthServiceServer // for forward compatibility. // // * -// Service for handling environments -type AccountsServiceServer interface { +// Service for handling accounts that do not require authentication +type AccountsNoAuthServiceServer interface { + // Create a new user SignUp(context.Context, *SignUpRequest) (*emptypb.Empty, error) + // Sing in into an existing account SignIn(context.Context, *SignInRequest) (*emptypb.Empty, error) + // Reset the password, if it was lost ResetPassword(context.Context, *ResetPasswordRequest) (*emptypb.Empty, error) + // Set the new password after reset NewPassword(context.Context, *NewPasswordRequest) (*emptypb.Empty, error) - IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) + // Send the refresh token request, token should be passed in the metadata. + // This rpc does requier auth, but it should be handled not on the middleware level, + // that's why it set in the NoAuth service + RefreshToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error) } -// UnimplementedAccountsServiceServer should be embedded to have +// UnimplementedAccountsNoAuthServiceServer should be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. -type UnimplementedAccountsServiceServer struct{} +type UnimplementedAccountsNoAuthServiceServer struct{} -func (UnimplementedAccountsServiceServer) SignUp(context.Context, *SignUpRequest) (*emptypb.Empty, error) { +func (UnimplementedAccountsNoAuthServiceServer) SignUp(context.Context, *SignUpRequest) (*emptypb.Empty, error) { return nil, status.Error(codes.Unimplemented, "method SignUp not implemented") } -func (UnimplementedAccountsServiceServer) SignIn(context.Context, *SignInRequest) (*emptypb.Empty, error) { +func (UnimplementedAccountsNoAuthServiceServer) SignIn(context.Context, *SignInRequest) (*emptypb.Empty, error) { return nil, status.Error(codes.Unimplemented, "method SignIn not implemented") } -func (UnimplementedAccountsServiceServer) ResetPassword(context.Context, *ResetPasswordRequest) (*emptypb.Empty, error) { +func (UnimplementedAccountsNoAuthServiceServer) ResetPassword(context.Context, *ResetPasswordRequest) (*emptypb.Empty, error) { return nil, status.Error(codes.Unimplemented, "method ResetPassword not implemented") } -func (UnimplementedAccountsServiceServer) NewPassword(context.Context, *NewPasswordRequest) (*emptypb.Empty, error) { +func (UnimplementedAccountsNoAuthServiceServer) NewPassword(context.Context, *NewPasswordRequest) (*emptypb.Empty, error) { return nil, status.Error(codes.Unimplemented, "method NewPassword not implemented") } -func (UnimplementedAccountsServiceServer) IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) { - return nil, status.Error(codes.Unimplemented, "method IsEmailVerified not implemented") +func (UnimplementedAccountsNoAuthServiceServer) RefreshToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { + return nil, status.Error(codes.Unimplemented, "method RefreshToken not implemented") } -func (UnimplementedAccountsServiceServer) testEmbeddedByValue() {} +func (UnimplementedAccountsNoAuthServiceServer) testEmbeddedByValue() {} -// UnsafeAccountsServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to AccountsServiceServer will +// UnsafeAccountsNoAuthServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AccountsNoAuthServiceServer will // result in compilation errors. -type UnsafeAccountsServiceServer interface { - mustEmbedUnimplementedAccountsServiceServer() +type UnsafeAccountsNoAuthServiceServer interface { + mustEmbedUnimplementedAccountsNoAuthServiceServer() } -func RegisterAccountsServiceServer(s grpc.ServiceRegistrar, srv AccountsServiceServer) { - // If the following call panics, it indicates UnimplementedAccountsServiceServer was +func RegisterAccountsNoAuthServiceServer(s grpc.ServiceRegistrar, srv AccountsNoAuthServiceServer) { + // If the following call panics, it indicates UnimplementedAccountsNoAuthServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } - s.RegisterService(&AccountsService_ServiceDesc, srv) + s.RegisterService(&AccountsNoAuthService_ServiceDesc, srv) } -func _AccountsService_SignUp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _AccountsNoAuthService_SignUp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SignUpRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AccountsServiceServer).SignUp(ctx, in) + return srv.(AccountsNoAuthServiceServer).SignUp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccountsService_SignUp_FullMethodName, + FullMethod: AccountsNoAuthService_SignUp_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsServiceServer).SignUp(ctx, req.(*SignUpRequest)) + return srv.(AccountsNoAuthServiceServer).SignUp(ctx, req.(*SignUpRequest)) } return interceptor(ctx, in, info, handler) } -func _AccountsService_SignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _AccountsNoAuthService_SignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SignInRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AccountsServiceServer).SignIn(ctx, in) + return srv.(AccountsNoAuthServiceServer).SignIn(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccountsService_SignIn_FullMethodName, + FullMethod: AccountsNoAuthService_SignIn_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsServiceServer).SignIn(ctx, req.(*SignInRequest)) + return srv.(AccountsNoAuthServiceServer).SignIn(ctx, req.(*SignInRequest)) } return interceptor(ctx, in, info, handler) } -func _AccountsService_ResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _AccountsNoAuthService_ResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ResetPasswordRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AccountsServiceServer).ResetPassword(ctx, in) + return srv.(AccountsNoAuthServiceServer).ResetPassword(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccountsService_ResetPassword_FullMethodName, + FullMethod: AccountsNoAuthService_ResetPassword_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsServiceServer).ResetPassword(ctx, req.(*ResetPasswordRequest)) + return srv.(AccountsNoAuthServiceServer).ResetPassword(ctx, req.(*ResetPasswordRequest)) } return interceptor(ctx, in, info, handler) } -func _AccountsService_NewPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _AccountsNoAuthService_NewPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(NewPasswordRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AccountsServiceServer).NewPassword(ctx, in) + return srv.(AccountsNoAuthServiceServer).NewPassword(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccountsService_NewPassword_FullMethodName, + FullMethod: AccountsNoAuthService_NewPassword_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsServiceServer).NewPassword(ctx, req.(*NewPasswordRequest)) + return srv.(AccountsNoAuthServiceServer).NewPassword(ctx, req.(*NewPasswordRequest)) } return interceptor(ctx, in, info, handler) } -func _AccountsService_IsEmailVerified_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IsEmailVerifiedRequest) +func _AccountsNoAuthService_RefreshToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AccountsServiceServer).IsEmailVerified(ctx, in) + return srv.(AccountsNoAuthServiceServer).RefreshToken(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccountsService_IsEmailVerified_FullMethodName, + FullMethod: AccountsNoAuthService_RefreshToken_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsServiceServer).IsEmailVerified(ctx, req.(*IsEmailVerifiedRequest)) + return srv.(AccountsNoAuthServiceServer).RefreshToken(ctx, req.(*emptypb.Empty)) } return interceptor(ctx, in, info, handler) } -// AccountsService_ServiceDesc is the grpc.ServiceDesc for AccountsService service. +// AccountsNoAuthService_ServiceDesc is the grpc.ServiceDesc for AccountsNoAuthService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) -var AccountsService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "accounts.v1.AccountsService", - HandlerType: (*AccountsServiceServer)(nil), +var AccountsNoAuthService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "accounts.v1.AccountsNoAuthService", + HandlerType: (*AccountsNoAuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SignUp", - Handler: _AccountsService_SignUp_Handler, + Handler: _AccountsNoAuthService_SignUp_Handler, }, { MethodName: "SignIn", - Handler: _AccountsService_SignIn_Handler, + Handler: _AccountsNoAuthService_SignIn_Handler, }, { MethodName: "ResetPassword", - Handler: _AccountsService_ResetPassword_Handler, + Handler: _AccountsNoAuthService_ResetPassword_Handler, }, { MethodName: "NewPassword", - Handler: _AccountsService_NewPassword_Handler, + Handler: _AccountsNoAuthService_NewPassword_Handler, }, { - MethodName: "IsEmailVerified", - Handler: _AccountsService_IsEmailVerified_Handler, + MethodName: "RefreshToken", + Handler: _AccountsNoAuthService_RefreshToken_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "accounts/v1/accounts_v1.proto", +} + +const ( + AccountAuthService_IsEmailVerified_FullMethodName = "/accounts.v1.AccountAuthService/IsEmailVerified" +) + +// AccountAuthServiceClient is the client API for AccountAuthService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// * +// Service for handling accounts that do require authentication +// Tokens should be sent via metadata, so the service is able to authenticate a user for a request +type AccountAuthServiceClient interface { + // Is email for the current account verified + IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error) +} + +type accountAuthServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewAccountAuthServiceClient(cc grpc.ClientConnInterface) AccountAuthServiceClient { + return &accountAuthServiceClient{cc} +} + +func (c *accountAuthServiceClient) IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(IsEmailVerifiedResponse) + err := c.cc.Invoke(ctx, AccountAuthService_IsEmailVerified_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AccountAuthServiceServer is the server API for AccountAuthService service. +// All implementations should embed UnimplementedAccountAuthServiceServer +// for forward compatibility. +// +// * +// Service for handling accounts that do require authentication +// Tokens should be sent via metadata, so the service is able to authenticate a user for a request +type AccountAuthServiceServer interface { + // Is email for the current account verified + IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) +} + +// UnimplementedAccountAuthServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAccountAuthServiceServer struct{} + +func (UnimplementedAccountAuthServiceServer) IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) { + return nil, status.Error(codes.Unimplemented, "method IsEmailVerified not implemented") +} +func (UnimplementedAccountAuthServiceServer) testEmbeddedByValue() {} + +// UnsafeAccountAuthServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AccountAuthServiceServer will +// result in compilation errors. +type UnsafeAccountAuthServiceServer interface { + mustEmbedUnimplementedAccountAuthServiceServer() +} + +func RegisterAccountAuthServiceServer(s grpc.ServiceRegistrar, srv AccountAuthServiceServer) { + // If the following call panics, it indicates UnimplementedAccountAuthServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&AccountAuthService_ServiceDesc, srv) +} + +func _AccountAuthService_IsEmailVerified_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IsEmailVerifiedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountAuthServiceServer).IsEmailVerified(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AccountAuthService_IsEmailVerified_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountAuthServiceServer).IsEmailVerified(ctx, req.(*IsEmailVerifiedRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// AccountAuthService_ServiceDesc is the grpc.ServiceDesc for AccountAuthService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var AccountAuthService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "accounts.v1.AccountAuthService", + HandlerType: (*AccountAuthServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "IsEmailVerified", + Handler: _AccountAuthService_IsEmailVerified_Handler, }, }, Streams: []grpc.StreamDesc{}, -- 2.49.1 From b565d3fa2b011f5e586a490b7d7dbb411cbc8627 Mon Sep 17 00:00:00 2001 From: devops-bot Date: Mon, 27 Apr 2026 17:17:25 +0000 Subject: [PATCH 09/13] Update protobuf definitions: 9e2dcbd5 By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/9e2dcbd5995c0fcf99e5fbed2643e4b4e8f1c5d7 Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/45 --- pkg/test/v1/test_v1.pb.go | 17 +-- pkg/test/v1/test_v1_grpc.pb.go | 200 +++++++++++++++++++++------------ 2 files changed, 140 insertions(+), 77 deletions(-) diff --git a/pkg/test/v1/test_v1.pb.go b/pkg/test/v1/test_v1.pb.go index bf383f4..d255f3d 100644 --- a/pkg/test/v1/test_v1.pb.go +++ b/pkg/test/v1/test_v1.pb.go @@ -173,9 +173,10 @@ const file_test_v1_test_v1_proto_rawDesc = "" + "\vPingRequest\"\x0e\n" + "\fPingResponse\"\r\n" + "\vPongRequest\"\x0e\n" + - "\fPongResponse2{\n" + - "\vTestService\x125\n" + - "\x04Ping\x12\x14.test.v1.PingRequest\x1a\x15.test.v1.PingResponse\"\x00\x125\n" + + "\fPongResponse2J\n" + + "\x11TestNoAuthService\x125\n" + + "\x04Ping\x12\x14.test.v1.PingRequest\x1a\x15.test.v1.PingResponse\"\x002H\n" + + "\x0fTestAuthService\x125\n" + "\x04Pong\x12\x14.test.v1.PongRequest\x1a\x15.test.v1.PongResponse\"\x00BEZCgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/test/v1b\x06proto3" var ( @@ -198,10 +199,10 @@ var file_test_v1_test_v1_proto_goTypes = []any{ (*PongResponse)(nil), // 3: test.v1.PongResponse } var file_test_v1_test_v1_proto_depIdxs = []int32{ - 0, // 0: test.v1.TestService.Ping:input_type -> test.v1.PingRequest - 2, // 1: test.v1.TestService.Pong:input_type -> test.v1.PongRequest - 1, // 2: test.v1.TestService.Ping:output_type -> test.v1.PingResponse - 3, // 3: test.v1.TestService.Pong:output_type -> test.v1.PongResponse + 0, // 0: test.v1.TestNoAuthService.Ping:input_type -> test.v1.PingRequest + 2, // 1: test.v1.TestAuthService.Pong:input_type -> test.v1.PongRequest + 1, // 2: test.v1.TestNoAuthService.Ping:output_type -> test.v1.PingResponse + 3, // 3: test.v1.TestAuthService.Pong:output_type -> test.v1.PongResponse 2, // [2:4] is the sub-list for method output_type 0, // [0:2] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -222,7 +223,7 @@ func file_test_v1_test_v1_proto_init() { NumEnums: 0, NumMessages: 4, NumExtensions: 0, - NumServices: 1, + NumServices: 2, }, GoTypes: file_test_v1_test_v1_proto_goTypes, DependencyIndexes: file_test_v1_test_v1_proto_depIdxs, diff --git a/pkg/test/v1/test_v1_grpc.pb.go b/pkg/test/v1/test_v1_grpc.pb.go index ee4742f..1926f34 100644 --- a/pkg/test/v1/test_v1_grpc.pb.go +++ b/pkg/test/v1/test_v1_grpc.pb.go @@ -19,143 +19,205 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - TestService_Ping_FullMethodName = "/test.v1.TestService/Ping" - TestService_Pong_FullMethodName = "/test.v1.TestService/Pong" + TestNoAuthService_Ping_FullMethodName = "/test.v1.TestNoAuthService/Ping" ) -// TestServiceClient is the client API for TestService service. +// TestNoAuthServiceClient is the client API for TestNoAuthService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. // // * // Service for handling environments -type TestServiceClient interface { +type TestNoAuthServiceClient interface { Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) - Pong(ctx context.Context, in *PongRequest, opts ...grpc.CallOption) (*PongResponse, error) } -type testServiceClient struct { +type testNoAuthServiceClient struct { cc grpc.ClientConnInterface } -func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient { - return &testServiceClient{cc} +func NewTestNoAuthServiceClient(cc grpc.ClientConnInterface) TestNoAuthServiceClient { + return &testNoAuthServiceClient{cc} } -func (c *testServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { +func (c *testNoAuthServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PingResponse) - err := c.cc.Invoke(ctx, TestService_Ping_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, TestNoAuthService_Ping_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *testServiceClient) Pong(ctx context.Context, in *PongRequest, opts ...grpc.CallOption) (*PongResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(PongResponse) - err := c.cc.Invoke(ctx, TestService_Pong_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// TestServiceServer is the server API for TestService service. -// All implementations should embed UnimplementedTestServiceServer +// TestNoAuthServiceServer is the server API for TestNoAuthService service. +// All implementations should embed UnimplementedTestNoAuthServiceServer // for forward compatibility. // // * // Service for handling environments -type TestServiceServer interface { +type TestNoAuthServiceServer interface { Ping(context.Context, *PingRequest) (*PingResponse, error) - Pong(context.Context, *PongRequest) (*PongResponse, error) } -// UnimplementedTestServiceServer should be embedded to have +// UnimplementedTestNoAuthServiceServer should be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. -type UnimplementedTestServiceServer struct{} +type UnimplementedTestNoAuthServiceServer struct{} -func (UnimplementedTestServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error) { +func (UnimplementedTestNoAuthServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error) { return nil, status.Error(codes.Unimplemented, "method Ping not implemented") } -func (UnimplementedTestServiceServer) Pong(context.Context, *PongRequest) (*PongResponse, error) { - return nil, status.Error(codes.Unimplemented, "method Pong not implemented") -} -func (UnimplementedTestServiceServer) testEmbeddedByValue() {} +func (UnimplementedTestNoAuthServiceServer) testEmbeddedByValue() {} -// UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to TestServiceServer will +// UnsafeTestNoAuthServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to TestNoAuthServiceServer will // result in compilation errors. -type UnsafeTestServiceServer interface { - mustEmbedUnimplementedTestServiceServer() +type UnsafeTestNoAuthServiceServer interface { + mustEmbedUnimplementedTestNoAuthServiceServer() } -func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer) { - // If the following call panics, it indicates UnimplementedTestServiceServer was +func RegisterTestNoAuthServiceServer(s grpc.ServiceRegistrar, srv TestNoAuthServiceServer) { + // If the following call panics, it indicates UnimplementedTestNoAuthServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } - s.RegisterService(&TestService_ServiceDesc, srv) + s.RegisterService(&TestNoAuthService_ServiceDesc, srv) } -func _TestService_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _TestNoAuthService_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PingRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(TestServiceServer).Ping(ctx, in) + return srv.(TestNoAuthServiceServer).Ping(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: TestService_Ping_FullMethodName, + FullMethod: TestNoAuthService_Ping_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TestServiceServer).Ping(ctx, req.(*PingRequest)) + return srv.(TestNoAuthServiceServer).Ping(ctx, req.(*PingRequest)) } return interceptor(ctx, in, info, handler) } -func _TestService_Pong_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PongRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(TestServiceServer).Pong(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: TestService_Pong_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TestServiceServer).Pong(ctx, req.(*PongRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// TestService_ServiceDesc is the grpc.ServiceDesc for TestService service. +// TestNoAuthService_ServiceDesc is the grpc.ServiceDesc for TestNoAuthService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) -var TestService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "test.v1.TestService", - HandlerType: (*TestServiceServer)(nil), +var TestNoAuthService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "test.v1.TestNoAuthService", + HandlerType: (*TestNoAuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", - Handler: _TestService_Ping_Handler, - }, - { - MethodName: "Pong", - Handler: _TestService_Pong_Handler, + Handler: _TestNoAuthService_Ping_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "test/v1/test_v1.proto", +} + +const ( + TestAuthService_Pong_FullMethodName = "/test.v1.TestAuthService/Pong" +) + +// TestAuthServiceClient is the client API for TestAuthService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type TestAuthServiceClient interface { + Pong(ctx context.Context, in *PongRequest, opts ...grpc.CallOption) (*PongResponse, error) +} + +type testAuthServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewTestAuthServiceClient(cc grpc.ClientConnInterface) TestAuthServiceClient { + return &testAuthServiceClient{cc} +} + +func (c *testAuthServiceClient) Pong(ctx context.Context, in *PongRequest, opts ...grpc.CallOption) (*PongResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PongResponse) + err := c.cc.Invoke(ctx, TestAuthService_Pong_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// TestAuthServiceServer is the server API for TestAuthService service. +// All implementations should embed UnimplementedTestAuthServiceServer +// for forward compatibility. +type TestAuthServiceServer interface { + Pong(context.Context, *PongRequest) (*PongResponse, error) +} + +// UnimplementedTestAuthServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTestAuthServiceServer struct{} + +func (UnimplementedTestAuthServiceServer) Pong(context.Context, *PongRequest) (*PongResponse, error) { + return nil, status.Error(codes.Unimplemented, "method Pong not implemented") +} +func (UnimplementedTestAuthServiceServer) testEmbeddedByValue() {} + +// UnsafeTestAuthServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to TestAuthServiceServer will +// result in compilation errors. +type UnsafeTestAuthServiceServer interface { + mustEmbedUnimplementedTestAuthServiceServer() +} + +func RegisterTestAuthServiceServer(s grpc.ServiceRegistrar, srv TestAuthServiceServer) { + // If the following call panics, it indicates UnimplementedTestAuthServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&TestAuthService_ServiceDesc, srv) +} + +func _TestAuthService_Pong_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PongRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(TestAuthServiceServer).Pong(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: TestAuthService_Pong_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(TestAuthServiceServer).Pong(ctx, req.(*PongRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// TestAuthService_ServiceDesc is the grpc.ServiceDesc for TestAuthService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var TestAuthService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "test.v1.TestAuthService", + HandlerType: (*TestAuthServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Pong", + Handler: _TestAuthService_Pong_Handler, }, }, Streams: []grpc.StreamDesc{}, -- 2.49.1 From efa5c57e6a1427570ae5ff3ae305a24a5d50ce60 Mon Sep 17 00:00:00 2001 From: devops-bot Date: Tue, 28 Apr 2026 11:10:06 +0000 Subject: [PATCH 10/13] Update protobuf definitions: 57e41f03 By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/57e41f031b358e4c9d5f9cd451968b2da60040a4 Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/47 --- pkg/accounts/v1/accounts_v1.pb.go | 8 ++-- pkg/accounts/v1/accounts_v1_grpc.pb.go | 62 +++++++++++++------------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/pkg/accounts/v1/accounts_v1.pb.go b/pkg/accounts/v1/accounts_v1.pb.go index 022be23..7a00a4d 100644 --- a/pkg/accounts/v1/accounts_v1.pb.go +++ b/pkg/accounts/v1/accounts_v1.pb.go @@ -447,8 +447,8 @@ const file_accounts_v1_accounts_v1_proto_rawDesc = "" + "\x06SignIn\x12\x1a.accounts.v1.SignInRequest\x1a\x16.google.protobuf.Empty\"\x00\x12L\n" + "\rResetPassword\x12!.accounts.v1.ResetPasswordRequest\x1a\x16.google.protobuf.Empty\"\x00\x12H\n" + "\vNewPassword\x12\x1f.accounts.v1.NewPasswordRequest\x1a\x16.google.protobuf.Empty\"\x00\x12@\n" + - "\fRefreshToken\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x002t\n" + - "\x12AccountAuthService\x12^\n" + + "\fRefreshToken\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x002u\n" + + "\x13AccountsAuthService\x12^\n" + "\x0fIsEmailVerified\x12#.accounts.v1.IsEmailVerifiedRequest\x1a$.accounts.v1.IsEmailVerifiedResponse\"\x00BIZGgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts/v1b\x06proto3" var ( @@ -489,13 +489,13 @@ var file_accounts_v1_accounts_v1_proto_depIdxs = []int32{ 4, // 10: accounts.v1.AccountsNoAuthService.ResetPassword:input_type -> accounts.v1.ResetPasswordRequest 5, // 11: accounts.v1.AccountsNoAuthService.NewPassword:input_type -> accounts.v1.NewPasswordRequest 8, // 12: accounts.v1.AccountsNoAuthService.RefreshToken:input_type -> google.protobuf.Empty - 6, // 13: accounts.v1.AccountAuthService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest + 6, // 13: accounts.v1.AccountsAuthService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest 8, // 14: accounts.v1.AccountsNoAuthService.SignUp:output_type -> google.protobuf.Empty 8, // 15: accounts.v1.AccountsNoAuthService.SignIn:output_type -> google.protobuf.Empty 8, // 16: accounts.v1.AccountsNoAuthService.ResetPassword:output_type -> google.protobuf.Empty 8, // 17: accounts.v1.AccountsNoAuthService.NewPassword:output_type -> google.protobuf.Empty 8, // 18: accounts.v1.AccountsNoAuthService.RefreshToken:output_type -> google.protobuf.Empty - 7, // 19: accounts.v1.AccountAuthService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse + 7, // 19: accounts.v1.AccountsAuthService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse 14, // [14:20] is the sub-list for method output_type 8, // [8:14] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name diff --git a/pkg/accounts/v1/accounts_v1_grpc.pb.go b/pkg/accounts/v1/accounts_v1_grpc.pb.go index 6c84952..03edefa 100644 --- a/pkg/accounts/v1/accounts_v1_grpc.pb.go +++ b/pkg/accounts/v1/accounts_v1_grpc.pb.go @@ -294,109 +294,109 @@ var AccountsNoAuthService_ServiceDesc = grpc.ServiceDesc{ } const ( - AccountAuthService_IsEmailVerified_FullMethodName = "/accounts.v1.AccountAuthService/IsEmailVerified" + AccountsAuthService_IsEmailVerified_FullMethodName = "/accounts.v1.AccountsAuthService/IsEmailVerified" ) -// AccountAuthServiceClient is the client API for AccountAuthService service. +// AccountsAuthServiceClient is the client API for AccountsAuthService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. // // * // Service for handling accounts that do require authentication // Tokens should be sent via metadata, so the service is able to authenticate a user for a request -type AccountAuthServiceClient interface { +type AccountsAuthServiceClient interface { // Is email for the current account verified IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error) } -type accountAuthServiceClient struct { +type accountsAuthServiceClient struct { cc grpc.ClientConnInterface } -func NewAccountAuthServiceClient(cc grpc.ClientConnInterface) AccountAuthServiceClient { - return &accountAuthServiceClient{cc} +func NewAccountsAuthServiceClient(cc grpc.ClientConnInterface) AccountsAuthServiceClient { + return &accountsAuthServiceClient{cc} } -func (c *accountAuthServiceClient) IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error) { +func (c *accountsAuthServiceClient) IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(IsEmailVerifiedResponse) - err := c.cc.Invoke(ctx, AccountAuthService_IsEmailVerified_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, AccountsAuthService_IsEmailVerified_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -// AccountAuthServiceServer is the server API for AccountAuthService service. -// All implementations should embed UnimplementedAccountAuthServiceServer +// AccountsAuthServiceServer is the server API for AccountsAuthService service. +// All implementations should embed UnimplementedAccountsAuthServiceServer // for forward compatibility. // // * // Service for handling accounts that do require authentication // Tokens should be sent via metadata, so the service is able to authenticate a user for a request -type AccountAuthServiceServer interface { +type AccountsAuthServiceServer interface { // Is email for the current account verified IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) } -// UnimplementedAccountAuthServiceServer should be embedded to have +// UnimplementedAccountsAuthServiceServer should be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. -type UnimplementedAccountAuthServiceServer struct{} +type UnimplementedAccountsAuthServiceServer struct{} -func (UnimplementedAccountAuthServiceServer) IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) { +func (UnimplementedAccountsAuthServiceServer) IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) { return nil, status.Error(codes.Unimplemented, "method IsEmailVerified not implemented") } -func (UnimplementedAccountAuthServiceServer) testEmbeddedByValue() {} +func (UnimplementedAccountsAuthServiceServer) testEmbeddedByValue() {} -// UnsafeAccountAuthServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to AccountAuthServiceServer will +// UnsafeAccountsAuthServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AccountsAuthServiceServer will // result in compilation errors. -type UnsafeAccountAuthServiceServer interface { - mustEmbedUnimplementedAccountAuthServiceServer() +type UnsafeAccountsAuthServiceServer interface { + mustEmbedUnimplementedAccountsAuthServiceServer() } -func RegisterAccountAuthServiceServer(s grpc.ServiceRegistrar, srv AccountAuthServiceServer) { - // If the following call panics, it indicates UnimplementedAccountAuthServiceServer was +func RegisterAccountsAuthServiceServer(s grpc.ServiceRegistrar, srv AccountsAuthServiceServer) { + // If the following call panics, it indicates UnimplementedAccountsAuthServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } - s.RegisterService(&AccountAuthService_ServiceDesc, srv) + s.RegisterService(&AccountsAuthService_ServiceDesc, srv) } -func _AccountAuthService_IsEmailVerified_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _AccountsAuthService_IsEmailVerified_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(IsEmailVerifiedRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AccountAuthServiceServer).IsEmailVerified(ctx, in) + return srv.(AccountsAuthServiceServer).IsEmailVerified(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccountAuthService_IsEmailVerified_FullMethodName, + FullMethod: AccountsAuthService_IsEmailVerified_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountAuthServiceServer).IsEmailVerified(ctx, req.(*IsEmailVerifiedRequest)) + return srv.(AccountsAuthServiceServer).IsEmailVerified(ctx, req.(*IsEmailVerifiedRequest)) } return interceptor(ctx, in, info, handler) } -// AccountAuthService_ServiceDesc is the grpc.ServiceDesc for AccountAuthService service. +// AccountsAuthService_ServiceDesc is the grpc.ServiceDesc for AccountsAuthService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) -var AccountAuthService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "accounts.v1.AccountAuthService", - HandlerType: (*AccountAuthServiceServer)(nil), +var AccountsAuthService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "accounts.v1.AccountsAuthService", + HandlerType: (*AccountsAuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IsEmailVerified", - Handler: _AccountAuthService_IsEmailVerified_Handler, + Handler: _AccountsAuthService_IsEmailVerified_Handler, }, }, Streams: []grpc.StreamDesc{}, -- 2.49.1 From 8c93fd05025aa811a593a8647ef3f3cc81719aec Mon Sep 17 00:00:00 2001 From: devops-bot Date: Tue, 28 Apr 2026 19:14:11 +0000 Subject: [PATCH 11/13] Update protobuf definitions: c276a0a8 By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/c276a0a8e1be5c374e92ec262a9fd6b9c39695d6 Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/48 --- pkg/accounts/v1/accounts_v1.pb.go | 16 ++--- pkg/accounts/v1/accounts_v1_grpc.pb.go | 82 ++++++++++++-------------- 2 files changed, 46 insertions(+), 52 deletions(-) diff --git a/pkg/accounts/v1/accounts_v1.pb.go b/pkg/accounts/v1/accounts_v1.pb.go index 7a00a4d..6062483 100644 --- a/pkg/accounts/v1/accounts_v1.pb.go +++ b/pkg/accounts/v1/accounts_v1.pb.go @@ -441,15 +441,15 @@ const file_accounts_v1_accounts_v1_proto_rawDesc = "" + "\x16IsEmailVerifiedRequest\x12,\n" + "\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\"5\n" + "\x17IsEmailVerifiedResponse\x12\x1a\n" + - "\bverified\x18\x01 \x01(\bR\bverified2\xf1\x02\n" + + "\bverified\x18\x01 \x01(\bR\bverified2\xaf\x02\n" + "\x15AccountsNoAuthService\x12>\n" + "\x06SignUp\x12\x1a.accounts.v1.SignUpRequest\x1a\x16.google.protobuf.Empty\"\x00\x12>\n" + "\x06SignIn\x12\x1a.accounts.v1.SignInRequest\x1a\x16.google.protobuf.Empty\"\x00\x12L\n" + "\rResetPassword\x12!.accounts.v1.ResetPasswordRequest\x1a\x16.google.protobuf.Empty\"\x00\x12H\n" + - "\vNewPassword\x12\x1f.accounts.v1.NewPasswordRequest\x1a\x16.google.protobuf.Empty\"\x00\x12@\n" + - "\fRefreshToken\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x002u\n" + + "\vNewPassword\x12\x1f.accounts.v1.NewPasswordRequest\x1a\x16.google.protobuf.Empty\"\x002\xb7\x01\n" + "\x13AccountsAuthService\x12^\n" + - "\x0fIsEmailVerified\x12#.accounts.v1.IsEmailVerifiedRequest\x1a$.accounts.v1.IsEmailVerifiedResponse\"\x00BIZGgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts/v1b\x06proto3" + "\x0fIsEmailVerified\x12#.accounts.v1.IsEmailVerifiedRequest\x1a$.accounts.v1.IsEmailVerifiedResponse\"\x00\x12@\n" + + "\fRefreshToken\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00BIZGgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts/v1b\x06proto3" var ( file_accounts_v1_accounts_v1_proto_rawDescOnce sync.Once @@ -488,14 +488,14 @@ var file_accounts_v1_accounts_v1_proto_depIdxs = []int32{ 3, // 9: accounts.v1.AccountsNoAuthService.SignIn:input_type -> accounts.v1.SignInRequest 4, // 10: accounts.v1.AccountsNoAuthService.ResetPassword:input_type -> accounts.v1.ResetPasswordRequest 5, // 11: accounts.v1.AccountsNoAuthService.NewPassword:input_type -> accounts.v1.NewPasswordRequest - 8, // 12: accounts.v1.AccountsNoAuthService.RefreshToken:input_type -> google.protobuf.Empty - 6, // 13: accounts.v1.AccountsAuthService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest + 6, // 12: accounts.v1.AccountsAuthService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest + 8, // 13: accounts.v1.AccountsAuthService.RefreshToken:input_type -> google.protobuf.Empty 8, // 14: accounts.v1.AccountsNoAuthService.SignUp:output_type -> google.protobuf.Empty 8, // 15: accounts.v1.AccountsNoAuthService.SignIn:output_type -> google.protobuf.Empty 8, // 16: accounts.v1.AccountsNoAuthService.ResetPassword:output_type -> google.protobuf.Empty 8, // 17: accounts.v1.AccountsNoAuthService.NewPassword:output_type -> google.protobuf.Empty - 8, // 18: accounts.v1.AccountsNoAuthService.RefreshToken:output_type -> google.protobuf.Empty - 7, // 19: accounts.v1.AccountsAuthService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse + 7, // 18: accounts.v1.AccountsAuthService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse + 8, // 19: accounts.v1.AccountsAuthService.RefreshToken:output_type -> google.protobuf.Empty 14, // [14:20] is the sub-list for method output_type 8, // [8:14] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name diff --git a/pkg/accounts/v1/accounts_v1_grpc.pb.go b/pkg/accounts/v1/accounts_v1_grpc.pb.go index 03edefa..94edbb9 100644 --- a/pkg/accounts/v1/accounts_v1_grpc.pb.go +++ b/pkg/accounts/v1/accounts_v1_grpc.pb.go @@ -26,7 +26,6 @@ const ( AccountsNoAuthService_SignIn_FullMethodName = "/accounts.v1.AccountsNoAuthService/SignIn" AccountsNoAuthService_ResetPassword_FullMethodName = "/accounts.v1.AccountsNoAuthService/ResetPassword" AccountsNoAuthService_NewPassword_FullMethodName = "/accounts.v1.AccountsNoAuthService/NewPassword" - AccountsNoAuthService_RefreshToken_FullMethodName = "/accounts.v1.AccountsNoAuthService/RefreshToken" ) // AccountsNoAuthServiceClient is the client API for AccountsNoAuthService service. @@ -44,10 +43,6 @@ type AccountsNoAuthServiceClient interface { ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Set the new password after reset NewPassword(ctx context.Context, in *NewPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - // Send the refresh token request, token should be passed in the metadata. - // This rpc does requier auth, but it should be handled not on the middleware level, - // that's why it set in the NoAuth service - RefreshToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) } type accountsNoAuthServiceClient struct { @@ -98,16 +93,6 @@ func (c *accountsNoAuthServiceClient) NewPassword(ctx context.Context, in *NewPa return out, nil } -func (c *accountsNoAuthServiceClient) RefreshToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, AccountsNoAuthService_RefreshToken_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - // AccountsNoAuthServiceServer is the server API for AccountsNoAuthService service. // All implementations should embed UnimplementedAccountsNoAuthServiceServer // for forward compatibility. @@ -123,10 +108,6 @@ type AccountsNoAuthServiceServer interface { ResetPassword(context.Context, *ResetPasswordRequest) (*emptypb.Empty, error) // Set the new password after reset NewPassword(context.Context, *NewPasswordRequest) (*emptypb.Empty, error) - // Send the refresh token request, token should be passed in the metadata. - // This rpc does requier auth, but it should be handled not on the middleware level, - // that's why it set in the NoAuth service - RefreshToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error) } // UnimplementedAccountsNoAuthServiceServer should be embedded to have @@ -148,9 +129,6 @@ func (UnimplementedAccountsNoAuthServiceServer) ResetPassword(context.Context, * func (UnimplementedAccountsNoAuthServiceServer) NewPassword(context.Context, *NewPasswordRequest) (*emptypb.Empty, error) { return nil, status.Error(codes.Unimplemented, "method NewPassword not implemented") } -func (UnimplementedAccountsNoAuthServiceServer) RefreshToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { - return nil, status.Error(codes.Unimplemented, "method RefreshToken not implemented") -} func (UnimplementedAccountsNoAuthServiceServer) testEmbeddedByValue() {} // UnsafeAccountsNoAuthServiceServer may be embedded to opt out of forward compatibility for this service. @@ -243,24 +221,6 @@ func _AccountsNoAuthService_NewPassword_Handler(srv interface{}, ctx context.Con return interceptor(ctx, in, info, handler) } -func _AccountsNoAuthService_RefreshToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(emptypb.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountsNoAuthServiceServer).RefreshToken(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AccountsNoAuthService_RefreshToken_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsNoAuthServiceServer).RefreshToken(ctx, req.(*emptypb.Empty)) - } - return interceptor(ctx, in, info, handler) -} - // AccountsNoAuthService_ServiceDesc is the grpc.ServiceDesc for AccountsNoAuthService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -284,10 +244,6 @@ var AccountsNoAuthService_ServiceDesc = grpc.ServiceDesc{ MethodName: "NewPassword", Handler: _AccountsNoAuthService_NewPassword_Handler, }, - { - MethodName: "RefreshToken", - Handler: _AccountsNoAuthService_RefreshToken_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "accounts/v1/accounts_v1.proto", @@ -295,6 +251,7 @@ var AccountsNoAuthService_ServiceDesc = grpc.ServiceDesc{ const ( AccountsAuthService_IsEmailVerified_FullMethodName = "/accounts.v1.AccountsAuthService/IsEmailVerified" + AccountsAuthService_RefreshToken_FullMethodName = "/accounts.v1.AccountsAuthService/RefreshToken" ) // AccountsAuthServiceClient is the client API for AccountsAuthService service. @@ -307,6 +264,7 @@ const ( type AccountsAuthServiceClient interface { // Is email for the current account verified IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error) + RefreshToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) } type accountsAuthServiceClient struct { @@ -327,6 +285,16 @@ func (c *accountsAuthServiceClient) IsEmailVerified(ctx context.Context, in *IsE return out, nil } +func (c *accountsAuthServiceClient) RefreshToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, AccountsAuthService_RefreshToken_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + // AccountsAuthServiceServer is the server API for AccountsAuthService service. // All implementations should embed UnimplementedAccountsAuthServiceServer // for forward compatibility. @@ -337,6 +305,7 @@ func (c *accountsAuthServiceClient) IsEmailVerified(ctx context.Context, in *IsE type AccountsAuthServiceServer interface { // Is email for the current account verified IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) + RefreshToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error) } // UnimplementedAccountsAuthServiceServer should be embedded to have @@ -349,6 +318,9 @@ type UnimplementedAccountsAuthServiceServer struct{} func (UnimplementedAccountsAuthServiceServer) IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) { return nil, status.Error(codes.Unimplemented, "method IsEmailVerified not implemented") } +func (UnimplementedAccountsAuthServiceServer) RefreshToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { + return nil, status.Error(codes.Unimplemented, "method RefreshToken not implemented") +} func (UnimplementedAccountsAuthServiceServer) testEmbeddedByValue() {} // UnsafeAccountsAuthServiceServer may be embedded to opt out of forward compatibility for this service. @@ -387,6 +359,24 @@ func _AccountsAuthService_IsEmailVerified_Handler(srv interface{}, ctx context.C return interceptor(ctx, in, info, handler) } +func _AccountsAuthService_RefreshToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountsAuthServiceServer).RefreshToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AccountsAuthService_RefreshToken_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountsAuthServiceServer).RefreshToken(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + // AccountsAuthService_ServiceDesc is the grpc.ServiceDesc for AccountsAuthService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -398,6 +388,10 @@ var AccountsAuthService_ServiceDesc = grpc.ServiceDesc{ MethodName: "IsEmailVerified", Handler: _AccountsAuthService_IsEmailVerified_Handler, }, + { + MethodName: "RefreshToken", + Handler: _AccountsAuthService_RefreshToken_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "accounts/v1/accounts_v1.proto", -- 2.49.1 From a3e9c05c7a6e8b546126ea6a21a9a62ec26d13bb Mon Sep 17 00:00:00 2001 From: devops-bot Date: Thu, 30 Apr 2026 13:43:37 +0000 Subject: [PATCH 12/13] Update protobuf definitions: 2833761b By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/2833761b45d444f5e7d9f8eaa906f15099cb286e Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/49 --- pkg/accounts/v1/accounts_v1.pb.go | 72 ++++++--------- pkg/accounts/v1/accounts_v1_grpc.pb.go | 122 +------------------------ 2 files changed, 27 insertions(+), 167 deletions(-) diff --git a/pkg/accounts/v1/accounts_v1.pb.go b/pkg/accounts/v1/accounts_v1.pb.go index 6062483..825f34a 100644 --- a/pkg/accounts/v1/accounts_v1.pb.go +++ b/pkg/accounts/v1/accounts_v1.pb.go @@ -174,8 +174,7 @@ func (x *SignUpRequest) GetPassword() *AccountPassword { type SignInRequest struct { state protoimpl.MessageState `protogen:"open.v1"` - Data *AccountData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - Password *AccountPassword `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -210,18 +209,11 @@ func (*SignInRequest) Descriptor() ([]byte, []int) { return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{3} } -func (x *SignInRequest) GetData() *AccountData { +func (x *SignInRequest) GetCode() string { if x != nil { - return x.Data + return x.Code } - return nil -} - -func (x *SignInRequest) GetPassword() *AccountPassword { - if x != nil { - return x.Password - } - return nil + return "" } type ResetPasswordRequest struct { @@ -428,10 +420,9 @@ const file_accounts_v1_accounts_v1_proto_rawDesc = "" + "\x05email\x18\x02 \x01(\tR\x05email\"w\n" + "\rSignUpRequest\x12,\n" + "\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\x128\n" + - "\bpassword\x18\x02 \x01(\v2\x1c.accounts.v1.AccountPasswordR\bpassword\"w\n" + - "\rSignInRequest\x12,\n" + - "\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\x128\n" + - "\bpassword\x18\x02 \x01(\v2\x1c.accounts.v1.AccountPasswordR\bpassword\"D\n" + + "\bpassword\x18\x02 \x01(\v2\x1c.accounts.v1.AccountPasswordR\bpassword\"#\n" + + "\rSignInRequest\x12\x12\n" + + "\x04code\x18\x01 \x01(\tR\x04code\"D\n" + "\x14ResetPasswordRequest\x12,\n" + "\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\"\x90\x01\n" + "\x12NewPasswordRequest\x12,\n" + @@ -441,12 +432,9 @@ const file_accounts_v1_accounts_v1_proto_rawDesc = "" + "\x16IsEmailVerifiedRequest\x12,\n" + "\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\"5\n" + "\x17IsEmailVerifiedResponse\x12\x1a\n" + - "\bverified\x18\x01 \x01(\bR\bverified2\xaf\x02\n" + + "\bverified\x18\x01 \x01(\bR\bverified2W\n" + "\x15AccountsNoAuthService\x12>\n" + - "\x06SignUp\x12\x1a.accounts.v1.SignUpRequest\x1a\x16.google.protobuf.Empty\"\x00\x12>\n" + - "\x06SignIn\x12\x1a.accounts.v1.SignInRequest\x1a\x16.google.protobuf.Empty\"\x00\x12L\n" + - "\rResetPassword\x12!.accounts.v1.ResetPasswordRequest\x1a\x16.google.protobuf.Empty\"\x00\x12H\n" + - "\vNewPassword\x12\x1f.accounts.v1.NewPasswordRequest\x1a\x16.google.protobuf.Empty\"\x002\xb7\x01\n" + + "\x06SignIn\x12\x1a.accounts.v1.SignInRequest\x1a\x16.google.protobuf.Empty\"\x002\xb7\x01\n" + "\x13AccountsAuthService\x12^\n" + "\x0fIsEmailVerified\x12#.accounts.v1.IsEmailVerifiedRequest\x1a$.accounts.v1.IsEmailVerifiedResponse\"\x00\x12@\n" + "\fRefreshToken\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00BIZGgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts/v1b\x06proto3" @@ -476,31 +464,23 @@ var file_accounts_v1_accounts_v1_proto_goTypes = []any{ (*emptypb.Empty)(nil), // 8: google.protobuf.Empty } var file_accounts_v1_accounts_v1_proto_depIdxs = []int32{ - 1, // 0: accounts.v1.SignUpRequest.data:type_name -> accounts.v1.AccountData - 0, // 1: accounts.v1.SignUpRequest.password:type_name -> accounts.v1.AccountPassword - 1, // 2: accounts.v1.SignInRequest.data:type_name -> accounts.v1.AccountData - 0, // 3: accounts.v1.SignInRequest.password:type_name -> accounts.v1.AccountPassword - 1, // 4: accounts.v1.ResetPasswordRequest.data:type_name -> accounts.v1.AccountData - 1, // 5: accounts.v1.NewPasswordRequest.data:type_name -> accounts.v1.AccountData - 0, // 6: accounts.v1.NewPasswordRequest.password:type_name -> accounts.v1.AccountPassword - 1, // 7: accounts.v1.IsEmailVerifiedRequest.data:type_name -> accounts.v1.AccountData - 2, // 8: accounts.v1.AccountsNoAuthService.SignUp:input_type -> accounts.v1.SignUpRequest - 3, // 9: accounts.v1.AccountsNoAuthService.SignIn:input_type -> accounts.v1.SignInRequest - 4, // 10: accounts.v1.AccountsNoAuthService.ResetPassword:input_type -> accounts.v1.ResetPasswordRequest - 5, // 11: accounts.v1.AccountsNoAuthService.NewPassword:input_type -> accounts.v1.NewPasswordRequest - 6, // 12: accounts.v1.AccountsAuthService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest - 8, // 13: accounts.v1.AccountsAuthService.RefreshToken:input_type -> google.protobuf.Empty - 8, // 14: accounts.v1.AccountsNoAuthService.SignUp:output_type -> google.protobuf.Empty - 8, // 15: accounts.v1.AccountsNoAuthService.SignIn:output_type -> google.protobuf.Empty - 8, // 16: accounts.v1.AccountsNoAuthService.ResetPassword:output_type -> google.protobuf.Empty - 8, // 17: accounts.v1.AccountsNoAuthService.NewPassword:output_type -> google.protobuf.Empty - 7, // 18: accounts.v1.AccountsAuthService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse - 8, // 19: accounts.v1.AccountsAuthService.RefreshToken:output_type -> google.protobuf.Empty - 14, // [14:20] is the sub-list for method output_type - 8, // [8:14] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name + 1, // 0: accounts.v1.SignUpRequest.data:type_name -> accounts.v1.AccountData + 0, // 1: accounts.v1.SignUpRequest.password:type_name -> accounts.v1.AccountPassword + 1, // 2: accounts.v1.ResetPasswordRequest.data:type_name -> accounts.v1.AccountData + 1, // 3: accounts.v1.NewPasswordRequest.data:type_name -> accounts.v1.AccountData + 0, // 4: accounts.v1.NewPasswordRequest.password:type_name -> accounts.v1.AccountPassword + 1, // 5: accounts.v1.IsEmailVerifiedRequest.data:type_name -> accounts.v1.AccountData + 3, // 6: accounts.v1.AccountsNoAuthService.SignIn:input_type -> accounts.v1.SignInRequest + 6, // 7: accounts.v1.AccountsAuthService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest + 8, // 8: accounts.v1.AccountsAuthService.RefreshToken:input_type -> google.protobuf.Empty + 8, // 9: accounts.v1.AccountsNoAuthService.SignIn:output_type -> google.protobuf.Empty + 7, // 10: accounts.v1.AccountsAuthService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse + 8, // 11: accounts.v1.AccountsAuthService.RefreshToken:output_type -> google.protobuf.Empty + 9, // [9:12] is the sub-list for method output_type + 6, // [6:9] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_accounts_v1_accounts_v1_proto_init() } diff --git a/pkg/accounts/v1/accounts_v1_grpc.pb.go b/pkg/accounts/v1/accounts_v1_grpc.pb.go index 94edbb9..e3bed6e 100644 --- a/pkg/accounts/v1/accounts_v1_grpc.pb.go +++ b/pkg/accounts/v1/accounts_v1_grpc.pb.go @@ -22,10 +22,7 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - AccountsNoAuthService_SignUp_FullMethodName = "/accounts.v1.AccountsNoAuthService/SignUp" - AccountsNoAuthService_SignIn_FullMethodName = "/accounts.v1.AccountsNoAuthService/SignIn" - AccountsNoAuthService_ResetPassword_FullMethodName = "/accounts.v1.AccountsNoAuthService/ResetPassword" - AccountsNoAuthService_NewPassword_FullMethodName = "/accounts.v1.AccountsNoAuthService/NewPassword" + AccountsNoAuthService_SignIn_FullMethodName = "/accounts.v1.AccountsNoAuthService/SignIn" ) // AccountsNoAuthServiceClient is the client API for AccountsNoAuthService service. @@ -35,14 +32,8 @@ const ( // * // Service for handling accounts that do not require authentication type AccountsNoAuthServiceClient interface { - // Create a new user - SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Sing in into an existing account SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - // Reset the password, if it was lost - ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - // Set the new password after reset - NewPassword(ctx context.Context, in *NewPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) } type accountsNoAuthServiceClient struct { @@ -53,16 +44,6 @@ func NewAccountsNoAuthServiceClient(cc grpc.ClientConnInterface) AccountsNoAuthS return &accountsNoAuthServiceClient{cc} } -func (c *accountsNoAuthServiceClient) SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, AccountsNoAuthService_SignUp_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *accountsNoAuthServiceClient) SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) @@ -73,26 +54,6 @@ func (c *accountsNoAuthServiceClient) SignIn(ctx context.Context, in *SignInRequ return out, nil } -func (c *accountsNoAuthServiceClient) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, AccountsNoAuthService_ResetPassword_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *accountsNoAuthServiceClient) NewPassword(ctx context.Context, in *NewPasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, AccountsNoAuthService_NewPassword_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - // AccountsNoAuthServiceServer is the server API for AccountsNoAuthService service. // All implementations should embed UnimplementedAccountsNoAuthServiceServer // for forward compatibility. @@ -100,14 +61,8 @@ func (c *accountsNoAuthServiceClient) NewPassword(ctx context.Context, in *NewPa // * // Service for handling accounts that do not require authentication type AccountsNoAuthServiceServer interface { - // Create a new user - SignUp(context.Context, *SignUpRequest) (*emptypb.Empty, error) // Sing in into an existing account SignIn(context.Context, *SignInRequest) (*emptypb.Empty, error) - // Reset the password, if it was lost - ResetPassword(context.Context, *ResetPasswordRequest) (*emptypb.Empty, error) - // Set the new password after reset - NewPassword(context.Context, *NewPasswordRequest) (*emptypb.Empty, error) } // UnimplementedAccountsNoAuthServiceServer should be embedded to have @@ -117,18 +72,9 @@ type AccountsNoAuthServiceServer interface { // pointer dereference when methods are called. type UnimplementedAccountsNoAuthServiceServer struct{} -func (UnimplementedAccountsNoAuthServiceServer) SignUp(context.Context, *SignUpRequest) (*emptypb.Empty, error) { - return nil, status.Error(codes.Unimplemented, "method SignUp not implemented") -} func (UnimplementedAccountsNoAuthServiceServer) SignIn(context.Context, *SignInRequest) (*emptypb.Empty, error) { return nil, status.Error(codes.Unimplemented, "method SignIn not implemented") } -func (UnimplementedAccountsNoAuthServiceServer) ResetPassword(context.Context, *ResetPasswordRequest) (*emptypb.Empty, error) { - return nil, status.Error(codes.Unimplemented, "method ResetPassword not implemented") -} -func (UnimplementedAccountsNoAuthServiceServer) NewPassword(context.Context, *NewPasswordRequest) (*emptypb.Empty, error) { - return nil, status.Error(codes.Unimplemented, "method NewPassword not implemented") -} func (UnimplementedAccountsNoAuthServiceServer) testEmbeddedByValue() {} // UnsafeAccountsNoAuthServiceServer may be embedded to opt out of forward compatibility for this service. @@ -149,24 +95,6 @@ func RegisterAccountsNoAuthServiceServer(s grpc.ServiceRegistrar, srv AccountsNo s.RegisterService(&AccountsNoAuthService_ServiceDesc, srv) } -func _AccountsNoAuthService_SignUp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SignUpRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountsNoAuthServiceServer).SignUp(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AccountsNoAuthService_SignUp_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsNoAuthServiceServer).SignUp(ctx, req.(*SignUpRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _AccountsNoAuthService_SignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SignInRequest) if err := dec(in); err != nil { @@ -185,42 +113,6 @@ func _AccountsNoAuthService_SignIn_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _AccountsNoAuthService_ResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResetPasswordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountsNoAuthServiceServer).ResetPassword(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AccountsNoAuthService_ResetPassword_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsNoAuthServiceServer).ResetPassword(ctx, req.(*ResetPasswordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AccountsNoAuthService_NewPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(NewPasswordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountsNoAuthServiceServer).NewPassword(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AccountsNoAuthService_NewPassword_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsNoAuthServiceServer).NewPassword(ctx, req.(*NewPasswordRequest)) - } - return interceptor(ctx, in, info, handler) -} - // AccountsNoAuthService_ServiceDesc is the grpc.ServiceDesc for AccountsNoAuthService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -228,22 +120,10 @@ var AccountsNoAuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "accounts.v1.AccountsNoAuthService", HandlerType: (*AccountsNoAuthServiceServer)(nil), Methods: []grpc.MethodDesc{ - { - MethodName: "SignUp", - Handler: _AccountsNoAuthService_SignUp_Handler, - }, { MethodName: "SignIn", Handler: _AccountsNoAuthService_SignIn_Handler, }, - { - MethodName: "ResetPassword", - Handler: _AccountsNoAuthService_ResetPassword_Handler, - }, - { - MethodName: "NewPassword", - Handler: _AccountsNoAuthService_NewPassword_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "accounts/v1/accounts_v1.proto", -- 2.49.1 From bfef427a3ae89b0002c323a23eea223d068a55f0 Mon Sep 17 00:00:00 2001 From: devops-bot Date: Thu, 30 Apr 2026 13:45:39 +0000 Subject: [PATCH 13/13] Update protobuf definitions: d43b1383 By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/d43b1383aabff6449d1ed0542671ff8a724bb50f Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/50 --- pkg/accounts/v1/accounts_v1.pb.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkg/accounts/v1/accounts_v1.pb.go b/pkg/accounts/v1/accounts_v1.pb.go index 825f34a..acbade7 100644 --- a/pkg/accounts/v1/accounts_v1.pb.go +++ b/pkg/accounts/v1/accounts_v1.pb.go @@ -175,6 +175,7 @@ func (x *SignUpRequest) GetPassword() *AccountPassword { type SignInRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Verifier string `protobuf:"bytes,2,opt,name=verifier,proto3" json:"verifier,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -216,6 +217,13 @@ func (x *SignInRequest) GetCode() string { return "" } +func (x *SignInRequest) GetVerifier() string { + if x != nil { + return x.Verifier + } + return "" +} + type ResetPasswordRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Data *AccountData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` @@ -420,9 +428,10 @@ const file_accounts_v1_accounts_v1_proto_rawDesc = "" + "\x05email\x18\x02 \x01(\tR\x05email\"w\n" + "\rSignUpRequest\x12,\n" + "\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\x128\n" + - "\bpassword\x18\x02 \x01(\v2\x1c.accounts.v1.AccountPasswordR\bpassword\"#\n" + + "\bpassword\x18\x02 \x01(\v2\x1c.accounts.v1.AccountPasswordR\bpassword\"?\n" + "\rSignInRequest\x12\x12\n" + - "\x04code\x18\x01 \x01(\tR\x04code\"D\n" + + "\x04code\x18\x01 \x01(\tR\x04code\x12\x1a\n" + + "\bverifier\x18\x02 \x01(\tR\bverifier\"D\n" + "\x14ResetPasswordRequest\x12,\n" + "\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\"\x90\x01\n" + "\x12NewPasswordRequest\x12,\n" + -- 2.49.1