Compare commits
6 Commits
renovate/g
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 7bf4ddafe7 | |||
| 4c1b8d622e | |||
| 8480adc36c | |||
| 0501245694 | |||
| 4b27db42e2 | |||
| 22f1b32dfa |
134
APIDoc.md
134
APIDoc.md
@@ -9,13 +9,21 @@
|
||||
- [IsEmailVerifiedRequest](#accounts-v1-IsEmailVerifiedRequest)
|
||||
- [IsEmailVerifiedResponse](#accounts-v1-IsEmailVerifiedResponse)
|
||||
- [NewPasswordRequest](#accounts-v1-NewPasswordRequest)
|
||||
- [PersonalData](#accounts-v1-PersonalData)
|
||||
- [RefreshSessionRequest](#accounts-v1-RefreshSessionRequest)
|
||||
- [RefreshSessionResponse](#accounts-v1-RefreshSessionResponse)
|
||||
- [RefreshTokenRequest](#accounts-v1-RefreshTokenRequest)
|
||||
- [RemoveSessionRequest](#accounts-v1-RemoveSessionRequest)
|
||||
- [ResetPasswordRequest](#accounts-v1-ResetPasswordRequest)
|
||||
- [SignInRequest](#accounts-v1-SignInRequest)
|
||||
- [SignInResponse](#accounts-v1-SignInResponse)
|
||||
- [SignUpRequest](#accounts-v1-SignUpRequest)
|
||||
- [SignUpResponse](#accounts-v1-SignUpResponse)
|
||||
- [TokenPair](#accounts-v1-TokenPair)
|
||||
|
||||
- [AccountsService](#accounts-v1-AccountsService)
|
||||
- [PublicAccountsService](#accounts-v1-PublicAccountsService)
|
||||
- [RefreshSessionService](#accounts-v1-RefreshSessionService)
|
||||
|
||||
- [projects/v1/projects_v1.proto](#projects_v1_projects_v1-proto)
|
||||
- [CreateProjectRequest](#projects-v1-CreateProjectRequest)
|
||||
@@ -152,6 +160,52 @@ Protobuf definitions for the accounts service.
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-PersonalData"></a>
|
||||
|
||||
### PersonalData
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| name | [string](#string) | | |
|
||||
| surname | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-RefreshSessionRequest"></a>
|
||||
|
||||
### RefreshSessionRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| refresh_token | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-RefreshSessionResponse"></a>
|
||||
|
||||
### RefreshSessionResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| token_pair | [TokenPair](#accounts-v1-TokenPair) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-RefreshTokenRequest"></a>
|
||||
|
||||
### RefreshTokenRequest
|
||||
@@ -167,6 +221,21 @@ Protobuf definitions for the accounts service.
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-RemoveSessionRequest"></a>
|
||||
|
||||
### RemoveSessionRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| refresh_token | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-ResetPasswordRequest"></a>
|
||||
|
||||
### ResetPasswordRequest
|
||||
@@ -198,6 +267,21 @@ Protobuf definitions for the accounts service.
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-SignInResponse"></a>
|
||||
|
||||
### SignInResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| token_pair | [TokenPair](#accounts-v1-TokenPair) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-SignUpRequest"></a>
|
||||
|
||||
### SignUpRequest
|
||||
@@ -208,6 +292,38 @@ Protobuf definitions for the accounts service.
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| email | [string](#string) | | |
|
||||
| password | [string](#string) | | |
|
||||
| personal_data | [PersonalData](#accounts-v1-PersonalData) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-SignUpResponse"></a>
|
||||
|
||||
### SignUpResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| token_pair | [TokenPair](#accounts-v1-TokenPair) | | |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="accounts-v1-TokenPair"></a>
|
||||
|
||||
### TokenPair
|
||||
|
||||
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| access_token | [string](#string) | | |
|
||||
| refresh_token | [string](#string) | | |
|
||||
|
||||
|
||||
|
||||
@@ -228,8 +344,8 @@ Protobuf definitions for the accounts service.
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| IsEmailVerified | [IsEmailVerifiedRequest](#accounts-v1-IsEmailVerifiedRequest) | [IsEmailVerifiedResponse](#accounts-v1-IsEmailVerifiedResponse) | Is email for the current account verified |
|
||||
| RefreshSession | [.google.protobuf.Empty](#google-protobuf-Empty) | [.google.protobuf.Empty](#google-protobuf-Empty) | |
|
||||
| TokenAuthorization | [.google.protobuf.Empty](#google-protobuf-Empty) | [.google.protobuf.Empty](#google-protobuf-Empty) | Authorize using long living tokens |
|
||||
| RemoveSession | [RemoveSessionRequest](#accounts-v1-RemoveSessionRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Remove a session that is associated with a refresh token, should be used for logging out |
|
||||
|
||||
|
||||
<a name="accounts-v1-PublicAccountsService"></a>
|
||||
@@ -239,8 +355,18 @@ Service for handling accounts that do not require authentication
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| SignIn | [SignInRequest](#accounts-v1-SignInRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Sing in into an existing account |
|
||||
| SignUp | [SignUpRequest](#accounts-v1-SignUpRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Create a new account |
|
||||
| SignIn | [SignInRequest](#accounts-v1-SignInRequest) | [SignInResponse](#accounts-v1-SignInResponse) | Sing in into an existing account |
|
||||
| SignUp | [SignUpRequest](#accounts-v1-SignUpRequest) | [SignUpResponse](#accounts-v1-SignUpResponse) | Create a new account |
|
||||
|
||||
|
||||
<a name="accounts-v1-RefreshSessionService"></a>
|
||||
|
||||
### RefreshSessionService
|
||||
Use as a separate service to make it easier to avoid interceptors on the client
|
||||
|
||||
| Method Name | Request Type | Response Type | Description |
|
||||
| ----------- | ------------ | ------------- | ------------|
|
||||
| RefreshSession | [RefreshSessionRequest](#accounts-v1-RefreshSessionRequest) | [RefreshSessionResponse](#accounts-v1-RefreshSessionResponse) | |
|
||||
|
||||
|
||||
|
||||
@@ -509,6 +635,7 @@ Protobuf definitions for the accounts service.
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| token_uuid | [TokenUUID](#tokens-v1-TokenUUID) | | |
|
||||
| token_value | [TokenValue](#tokens-v1-TokenValue) | | |
|
||||
|
||||
|
||||
@@ -633,6 +760,7 @@ Protobuf definitions for the accounts service.
|
||||
|
||||
| Field | Type | Label | Description |
|
||||
| ----- | ---- | ----- | ----------- |
|
||||
| token_uuid | [TokenUUID](#tokens-v1-TokenUUID) | | |
|
||||
| token_value | [TokenValue](#tokens-v1-TokenValue) | | |
|
||||
|
||||
|
||||
|
||||
@@ -24,6 +24,58 @@ const (
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type TokenPair struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
||||
RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *TokenPair) Reset() {
|
||||
*x = TokenPair{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *TokenPair) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*TokenPair) ProtoMessage() {}
|
||||
|
||||
func (x *TokenPair) 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 TokenPair.ProtoReflect.Descriptor instead.
|
||||
func (*TokenPair) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *TokenPair) GetAccessToken() string {
|
||||
if x != nil {
|
||||
return x.AccessToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *TokenPair) GetRefreshToken() string {
|
||||
if x != nil {
|
||||
return x.RefreshToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type AccountPassword struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
|
||||
@@ -33,7 +85,7 @@ type AccountPassword struct {
|
||||
|
||||
func (x *AccountPassword) Reset() {
|
||||
*x = AccountPassword{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[0]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -45,7 +97,7 @@ func (x *AccountPassword) String() string {
|
||||
func (*AccountPassword) ProtoMessage() {}
|
||||
|
||||
func (x *AccountPassword) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[0]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -58,7 +110,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{0}
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *AccountPassword) GetPassword() string {
|
||||
@@ -78,7 +130,7 @@ type AccountData struct {
|
||||
|
||||
func (x *AccountData) Reset() {
|
||||
*x = AccountData{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[1]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -90,7 +142,7 @@ func (x *AccountData) String() string {
|
||||
func (*AccountData) ProtoMessage() {}
|
||||
|
||||
func (x *AccountData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[1]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -103,7 +155,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{1}
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *AccountData) GetName() string {
|
||||
@@ -120,17 +172,70 @@ func (x *AccountData) GetEmail() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type PersonalData struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Surname string `protobuf:"bytes,2,opt,name=surname,proto3" json:"surname,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *PersonalData) Reset() {
|
||||
*x = PersonalData{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *PersonalData) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*PersonalData) ProtoMessage() {}
|
||||
|
||||
func (x *PersonalData) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[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 PersonalData.ProtoReflect.Descriptor instead.
|
||||
func (*PersonalData) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *PersonalData) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *PersonalData) GetSurname() string {
|
||||
if x != nil {
|
||||
return x.Surname
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type SignUpRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||||
PersonalData *PersonalData `protobuf:"bytes,3,opt,name=personal_data,json=personalData,proto3" json:"personal_data,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SignUpRequest) Reset() {
|
||||
*x = SignUpRequest{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[2]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -142,7 +247,7 @@ func (x *SignUpRequest) String() string {
|
||||
func (*SignUpRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SignUpRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[2]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -155,7 +260,7 @@ func (x *SignUpRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SignUpRequest) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{2}
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *SignUpRequest) GetEmail() string {
|
||||
@@ -172,6 +277,57 @@ func (x *SignUpRequest) GetPassword() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SignUpRequest) GetPersonalData() *PersonalData {
|
||||
if x != nil {
|
||||
return x.PersonalData
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type SignUpResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenPair *TokenPair `protobuf:"bytes,1,opt,name=token_pair,json=tokenPair,proto3" json:"token_pair,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SignUpResponse) Reset() {
|
||||
*x = SignUpResponse{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SignUpResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SignUpResponse) ProtoMessage() {}
|
||||
|
||||
func (x *SignUpResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SignUpResponse.ProtoReflect.Descriptor instead.
|
||||
func (*SignUpResponse) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *SignUpResponse) GetTokenPair() *TokenPair {
|
||||
if x != nil {
|
||||
return x.TokenPair
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type SignInRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
||||
@@ -182,7 +338,7 @@ type SignInRequest struct {
|
||||
|
||||
func (x *SignInRequest) Reset() {
|
||||
*x = SignInRequest{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[3]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -194,7 +350,7 @@ func (x *SignInRequest) String() string {
|
||||
func (*SignInRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SignInRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[3]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -207,7 +363,7 @@ func (x *SignInRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SignInRequest) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{3}
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *SignInRequest) GetEmail() string {
|
||||
@@ -224,6 +380,50 @@ func (x *SignInRequest) GetPassword() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type SignInResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenPair *TokenPair `protobuf:"bytes,1,opt,name=token_pair,json=tokenPair,proto3" json:"token_pair,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SignInResponse) Reset() {
|
||||
*x = SignInResponse{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SignInResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SignInResponse) ProtoMessage() {}
|
||||
|
||||
func (x *SignInResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[7]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SignInResponse.ProtoReflect.Descriptor instead.
|
||||
func (*SignInResponse) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *SignInResponse) GetTokenPair() *TokenPair {
|
||||
if x != nil {
|
||||
return x.TokenPair
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ResetPasswordRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Data *AccountData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
||||
@@ -233,7 +433,7 @@ type ResetPasswordRequest struct {
|
||||
|
||||
func (x *ResetPasswordRequest) Reset() {
|
||||
*x = ResetPasswordRequest{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[4]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -245,7 +445,7 @@ func (x *ResetPasswordRequest) String() string {
|
||||
func (*ResetPasswordRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[4]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[8]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -258,7 +458,7 @@ func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ResetPasswordRequest) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{4}
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *ResetPasswordRequest) GetData() *AccountData {
|
||||
@@ -279,7 +479,7 @@ type NewPasswordRequest struct {
|
||||
|
||||
func (x *NewPasswordRequest) Reset() {
|
||||
*x = NewPasswordRequest{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[5]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -291,7 +491,7 @@ func (x *NewPasswordRequest) String() string {
|
||||
func (*NewPasswordRequest) ProtoMessage() {}
|
||||
|
||||
func (x *NewPasswordRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[5]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[9]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -304,7 +504,7 @@ func (x *NewPasswordRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use NewPasswordRequest.ProtoReflect.Descriptor instead.
|
||||
func (*NewPasswordRequest) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{5}
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *NewPasswordRequest) GetData() *AccountData {
|
||||
@@ -337,7 +537,7 @@ type IsEmailVerifiedRequest struct {
|
||||
|
||||
func (x *IsEmailVerifiedRequest) Reset() {
|
||||
*x = IsEmailVerifiedRequest{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[6]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -349,7 +549,7 @@ func (x *IsEmailVerifiedRequest) String() string {
|
||||
func (*IsEmailVerifiedRequest) ProtoMessage() {}
|
||||
|
||||
func (x *IsEmailVerifiedRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[6]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[10]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -362,7 +562,7 @@ func (x *IsEmailVerifiedRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use IsEmailVerifiedRequest.ProtoReflect.Descriptor instead.
|
||||
func (*IsEmailVerifiedRequest) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{6}
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *IsEmailVerifiedRequest) GetData() *AccountData {
|
||||
@@ -381,7 +581,7 @@ type IsEmailVerifiedResponse struct {
|
||||
|
||||
func (x *IsEmailVerifiedResponse) Reset() {
|
||||
*x = IsEmailVerifiedResponse{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[7]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -393,7 +593,7 @@ func (x *IsEmailVerifiedResponse) String() string {
|
||||
func (*IsEmailVerifiedResponse) ProtoMessage() {}
|
||||
|
||||
func (x *IsEmailVerifiedResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[7]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[11]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -406,7 +606,7 @@ func (x *IsEmailVerifiedResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use IsEmailVerifiedResponse.ProtoReflect.Descriptor instead.
|
||||
func (*IsEmailVerifiedResponse) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{7}
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *IsEmailVerifiedResponse) GetVerified() bool {
|
||||
@@ -425,7 +625,7 @@ type RefreshTokenRequest struct {
|
||||
|
||||
func (x *RefreshTokenRequest) Reset() {
|
||||
*x = RefreshTokenRequest{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[8]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -437,7 +637,7 @@ func (x *RefreshTokenRequest) String() string {
|
||||
func (*RefreshTokenRequest) ProtoMessage() {}
|
||||
|
||||
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[8]
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[12]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -450,7 +650,7 @@ func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
|
||||
func (*RefreshTokenRequest) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{8}
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *RefreshTokenRequest) GetSessionId() string {
|
||||
@@ -460,22 +660,167 @@ func (x *RefreshTokenRequest) GetSessionId() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type RefreshSessionRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *RefreshSessionRequest) Reset() {
|
||||
*x = RefreshSessionRequest{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *RefreshSessionRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RefreshSessionRequest) ProtoMessage() {}
|
||||
|
||||
func (x *RefreshSessionRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[13]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use RefreshSessionRequest.ProtoReflect.Descriptor instead.
|
||||
func (*RefreshSessionRequest) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *RefreshSessionRequest) GetRefreshToken() string {
|
||||
if x != nil {
|
||||
return x.RefreshToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type RefreshSessionResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenPair *TokenPair `protobuf:"bytes,1,opt,name=token_pair,json=tokenPair,proto3" json:"token_pair,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *RefreshSessionResponse) Reset() {
|
||||
*x = RefreshSessionResponse{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *RefreshSessionResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RefreshSessionResponse) ProtoMessage() {}
|
||||
|
||||
func (x *RefreshSessionResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[14]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use RefreshSessionResponse.ProtoReflect.Descriptor instead.
|
||||
func (*RefreshSessionResponse) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
func (x *RefreshSessionResponse) GetTokenPair() *TokenPair {
|
||||
if x != nil {
|
||||
return x.TokenPair
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type RemoveSessionRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *RemoveSessionRequest) Reset() {
|
||||
*x = RemoveSessionRequest{}
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[15]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *RemoveSessionRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*RemoveSessionRequest) ProtoMessage() {}
|
||||
|
||||
func (x *RemoveSessionRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_accounts_v1_accounts_v1_proto_msgTypes[15]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use RemoveSessionRequest.ProtoReflect.Descriptor instead.
|
||||
func (*RemoveSessionRequest) Descriptor() ([]byte, []int) {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescGZIP(), []int{15}
|
||||
}
|
||||
|
||||
func (x *RemoveSessionRequest) GetRefreshToken() string {
|
||||
if x != nil {
|
||||
return x.RefreshToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_accounts_v1_accounts_v1_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_accounts_v1_accounts_v1_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x1daccounts/v1/accounts_v1.proto\x12\vaccounts.v1\x1a\x1bgoogle/protobuf/empty.proto\"-\n" +
|
||||
"\x1daccounts/v1/accounts_v1.proto\x12\vaccounts.v1\x1a\x1bgoogle/protobuf/empty.proto\"S\n" +
|
||||
"\tTokenPair\x12!\n" +
|
||||
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12#\n" +
|
||||
"\rrefresh_token\x18\x02 \x01(\tR\frefreshToken\"-\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\"A\n" +
|
||||
"\x05email\x18\x02 \x01(\tR\x05email\"<\n" +
|
||||
"\fPersonalData\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" +
|
||||
"\asurname\x18\x02 \x01(\tR\asurname\"\x81\x01\n" +
|
||||
"\rSignUpRequest\x12\x14\n" +
|
||||
"\x05email\x18\x01 \x01(\tR\x05email\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword\"A\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword\x12>\n" +
|
||||
"\rpersonal_data\x18\x03 \x01(\v2\x19.accounts.v1.PersonalDataR\fpersonalData\"G\n" +
|
||||
"\x0eSignUpResponse\x125\n" +
|
||||
"\n" +
|
||||
"token_pair\x18\x01 \x01(\v2\x16.accounts.v1.TokenPairR\ttokenPair\"A\n" +
|
||||
"\rSignInRequest\x12\x14\n" +
|
||||
"\x05email\x18\x01 \x01(\tR\x05email\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword\"D\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword\"G\n" +
|
||||
"\x0eSignInResponse\x125\n" +
|
||||
"\n" +
|
||||
"token_pair\x18\x01 \x01(\v2\x16.accounts.v1.TokenPairR\ttokenPair\"D\n" +
|
||||
"\x14ResetPasswordRequest\x12,\n" +
|
||||
"\x04data\x18\x01 \x01(\v2\x18.accounts.v1.AccountDataR\x04data\"\x90\x01\n" +
|
||||
"\x12NewPasswordRequest\x12,\n" +
|
||||
@@ -488,14 +833,23 @@ const file_accounts_v1_accounts_v1_proto_rawDesc = "" +
|
||||
"\bverified\x18\x01 \x01(\bR\bverified\"4\n" +
|
||||
"\x13RefreshTokenRequest\x12\x1d\n" +
|
||||
"\n" +
|
||||
"session_id\x18\x01 \x01(\tR\tsessionId2\x97\x01\n" +
|
||||
"\x15PublicAccountsService\x12>\n" +
|
||||
"\x06SignIn\x12\x1a.accounts.v1.SignInRequest\x1a\x16.google.protobuf.Empty\"\x00\x12>\n" +
|
||||
"\x06SignUp\x12\x1a.accounts.v1.SignUpRequest\x1a\x16.google.protobuf.Empty\"\x002\xfd\x01\n" +
|
||||
"session_id\x18\x01 \x01(\tR\tsessionId\"<\n" +
|
||||
"\x15RefreshSessionRequest\x12#\n" +
|
||||
"\rrefresh_token\x18\x01 \x01(\tR\frefreshToken\"O\n" +
|
||||
"\x16RefreshSessionResponse\x125\n" +
|
||||
"\n" +
|
||||
"token_pair\x18\x01 \x01(\v2\x16.accounts.v1.TokenPairR\ttokenPair\";\n" +
|
||||
"\x14RemoveSessionRequest\x12#\n" +
|
||||
"\rrefresh_token\x18\x01 \x01(\tR\frefreshToken2\xa1\x01\n" +
|
||||
"\x15PublicAccountsService\x12C\n" +
|
||||
"\x06SignIn\x12\x1a.accounts.v1.SignInRequest\x1a\x1b.accounts.v1.SignInResponse\"\x00\x12C\n" +
|
||||
"\x06SignUp\x12\x1a.accounts.v1.SignUpRequest\x1a\x1b.accounts.v1.SignUpResponse\"\x002\x87\x02\n" +
|
||||
"\x0fAccountsService\x12^\n" +
|
||||
"\x0fIsEmailVerified\x12#.accounts.v1.IsEmailVerifiedRequest\x1a$.accounts.v1.IsEmailVerifiedResponse\"\x00\x12B\n" +
|
||||
"\x0eRefreshSession\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00\x12F\n" +
|
||||
"\x12TokenAuthorization\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00BIZGgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts/v1b\x06proto3"
|
||||
"\x0fIsEmailVerified\x12#.accounts.v1.IsEmailVerifiedRequest\x1a$.accounts.v1.IsEmailVerifiedResponse\"\x00\x12F\n" +
|
||||
"\x12TokenAuthorization\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00\x12L\n" +
|
||||
"\rRemoveSession\x12!.accounts.v1.RemoveSessionRequest\x1a\x16.google.protobuf.Empty\"\x002t\n" +
|
||||
"\x15RefreshSessionService\x12[\n" +
|
||||
"\x0eRefreshSession\x12\".accounts.v1.RefreshSessionRequest\x1a#.accounts.v1.RefreshSessionResponse\"\x00BIZGgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts/v1b\x06proto3"
|
||||
|
||||
var (
|
||||
file_accounts_v1_accounts_v1_proto_rawDescOnce sync.Once
|
||||
@@ -509,39 +863,52 @@ func file_accounts_v1_accounts_v1_proto_rawDescGZIP() []byte {
|
||||
return file_accounts_v1_accounts_v1_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_accounts_v1_accounts_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_accounts_v1_accounts_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
||||
var file_accounts_v1_accounts_v1_proto_goTypes = []any{
|
||||
(*AccountPassword)(nil), // 0: accounts.v1.AccountPassword
|
||||
(*AccountData)(nil), // 1: accounts.v1.AccountData
|
||||
(*SignUpRequest)(nil), // 2: accounts.v1.SignUpRequest
|
||||
(*SignInRequest)(nil), // 3: accounts.v1.SignInRequest
|
||||
(*ResetPasswordRequest)(nil), // 4: accounts.v1.ResetPasswordRequest
|
||||
(*NewPasswordRequest)(nil), // 5: accounts.v1.NewPasswordRequest
|
||||
(*IsEmailVerifiedRequest)(nil), // 6: accounts.v1.IsEmailVerifiedRequest
|
||||
(*IsEmailVerifiedResponse)(nil), // 7: accounts.v1.IsEmailVerifiedResponse
|
||||
(*RefreshTokenRequest)(nil), // 8: accounts.v1.RefreshTokenRequest
|
||||
(*emptypb.Empty)(nil), // 9: google.protobuf.Empty
|
||||
(*TokenPair)(nil), // 0: accounts.v1.TokenPair
|
||||
(*AccountPassword)(nil), // 1: accounts.v1.AccountPassword
|
||||
(*AccountData)(nil), // 2: accounts.v1.AccountData
|
||||
(*PersonalData)(nil), // 3: accounts.v1.PersonalData
|
||||
(*SignUpRequest)(nil), // 4: accounts.v1.SignUpRequest
|
||||
(*SignUpResponse)(nil), // 5: accounts.v1.SignUpResponse
|
||||
(*SignInRequest)(nil), // 6: accounts.v1.SignInRequest
|
||||
(*SignInResponse)(nil), // 7: accounts.v1.SignInResponse
|
||||
(*ResetPasswordRequest)(nil), // 8: accounts.v1.ResetPasswordRequest
|
||||
(*NewPasswordRequest)(nil), // 9: accounts.v1.NewPasswordRequest
|
||||
(*IsEmailVerifiedRequest)(nil), // 10: accounts.v1.IsEmailVerifiedRequest
|
||||
(*IsEmailVerifiedResponse)(nil), // 11: accounts.v1.IsEmailVerifiedResponse
|
||||
(*RefreshTokenRequest)(nil), // 12: accounts.v1.RefreshTokenRequest
|
||||
(*RefreshSessionRequest)(nil), // 13: accounts.v1.RefreshSessionRequest
|
||||
(*RefreshSessionResponse)(nil), // 14: accounts.v1.RefreshSessionResponse
|
||||
(*RemoveSessionRequest)(nil), // 15: accounts.v1.RemoveSessionRequest
|
||||
(*emptypb.Empty)(nil), // 16: google.protobuf.Empty
|
||||
}
|
||||
var file_accounts_v1_accounts_v1_proto_depIdxs = []int32{
|
||||
1, // 0: accounts.v1.ResetPasswordRequest.data:type_name -> accounts.v1.AccountData
|
||||
1, // 1: accounts.v1.NewPasswordRequest.data:type_name -> accounts.v1.AccountData
|
||||
0, // 2: accounts.v1.NewPasswordRequest.password:type_name -> accounts.v1.AccountPassword
|
||||
1, // 3: accounts.v1.IsEmailVerifiedRequest.data:type_name -> accounts.v1.AccountData
|
||||
3, // 4: accounts.v1.PublicAccountsService.SignIn:input_type -> accounts.v1.SignInRequest
|
||||
2, // 5: accounts.v1.PublicAccountsService.SignUp:input_type -> accounts.v1.SignUpRequest
|
||||
6, // 6: accounts.v1.AccountsService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest
|
||||
9, // 7: accounts.v1.AccountsService.RefreshSession:input_type -> google.protobuf.Empty
|
||||
9, // 8: accounts.v1.AccountsService.TokenAuthorization:input_type -> google.protobuf.Empty
|
||||
9, // 9: accounts.v1.PublicAccountsService.SignIn:output_type -> google.protobuf.Empty
|
||||
9, // 10: accounts.v1.PublicAccountsService.SignUp:output_type -> google.protobuf.Empty
|
||||
7, // 11: accounts.v1.AccountsService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse
|
||||
9, // 12: accounts.v1.AccountsService.RefreshSession:output_type -> google.protobuf.Empty
|
||||
9, // 13: accounts.v1.AccountsService.TokenAuthorization:output_type -> google.protobuf.Empty
|
||||
9, // [9:14] is the sub-list for method output_type
|
||||
4, // [4:9] is the sub-list for method input_type
|
||||
4, // [4:4] is the sub-list for extension type_name
|
||||
4, // [4:4] is the sub-list for extension extendee
|
||||
0, // [0:4] is the sub-list for field type_name
|
||||
3, // 0: accounts.v1.SignUpRequest.personal_data:type_name -> accounts.v1.PersonalData
|
||||
0, // 1: accounts.v1.SignUpResponse.token_pair:type_name -> accounts.v1.TokenPair
|
||||
0, // 2: accounts.v1.SignInResponse.token_pair:type_name -> accounts.v1.TokenPair
|
||||
2, // 3: accounts.v1.ResetPasswordRequest.data:type_name -> accounts.v1.AccountData
|
||||
2, // 4: accounts.v1.NewPasswordRequest.data:type_name -> accounts.v1.AccountData
|
||||
1, // 5: accounts.v1.NewPasswordRequest.password:type_name -> accounts.v1.AccountPassword
|
||||
2, // 6: accounts.v1.IsEmailVerifiedRequest.data:type_name -> accounts.v1.AccountData
|
||||
0, // 7: accounts.v1.RefreshSessionResponse.token_pair:type_name -> accounts.v1.TokenPair
|
||||
6, // 8: accounts.v1.PublicAccountsService.SignIn:input_type -> accounts.v1.SignInRequest
|
||||
4, // 9: accounts.v1.PublicAccountsService.SignUp:input_type -> accounts.v1.SignUpRequest
|
||||
10, // 10: accounts.v1.AccountsService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest
|
||||
16, // 11: accounts.v1.AccountsService.TokenAuthorization:input_type -> google.protobuf.Empty
|
||||
15, // 12: accounts.v1.AccountsService.RemoveSession:input_type -> accounts.v1.RemoveSessionRequest
|
||||
13, // 13: accounts.v1.RefreshSessionService.RefreshSession:input_type -> accounts.v1.RefreshSessionRequest
|
||||
7, // 14: accounts.v1.PublicAccountsService.SignIn:output_type -> accounts.v1.SignInResponse
|
||||
5, // 15: accounts.v1.PublicAccountsService.SignUp:output_type -> accounts.v1.SignUpResponse
|
||||
11, // 16: accounts.v1.AccountsService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse
|
||||
16, // 17: accounts.v1.AccountsService.TokenAuthorization:output_type -> google.protobuf.Empty
|
||||
16, // 18: accounts.v1.AccountsService.RemoveSession:output_type -> google.protobuf.Empty
|
||||
14, // 19: accounts.v1.RefreshSessionService.RefreshSession:output_type -> accounts.v1.RefreshSessionResponse
|
||||
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
|
||||
}
|
||||
|
||||
func init() { file_accounts_v1_accounts_v1_proto_init() }
|
||||
@@ -555,9 +922,9 @@ func file_accounts_v1_accounts_v1_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_accounts_v1_accounts_v1_proto_rawDesc), len(file_accounts_v1_accounts_v1_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 9,
|
||||
NumMessages: 16,
|
||||
NumExtensions: 0,
|
||||
NumServices: 2,
|
||||
NumServices: 3,
|
||||
},
|
||||
GoTypes: file_accounts_v1_accounts_v1_proto_goTypes,
|
||||
DependencyIndexes: file_accounts_v1_accounts_v1_proto_depIdxs,
|
||||
|
||||
@@ -34,9 +34,9 @@ const (
|
||||
// Service for handling accounts that do not require authentication
|
||||
type PublicAccountsServiceClient interface {
|
||||
// Sing in into an existing account
|
||||
SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, error)
|
||||
// Create a new account
|
||||
SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*SignUpResponse, error)
|
||||
}
|
||||
|
||||
type publicAccountsServiceClient struct {
|
||||
@@ -47,9 +47,9 @@ func NewPublicAccountsServiceClient(cc grpc.ClientConnInterface) PublicAccountsS
|
||||
return &publicAccountsServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *publicAccountsServiceClient) SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
func (c *publicAccountsServiceClient) SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
out := new(SignInResponse)
|
||||
err := c.cc.Invoke(ctx, PublicAccountsService_SignIn_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -57,9 +57,9 @@ func (c *publicAccountsServiceClient) SignIn(ctx context.Context, in *SignInRequ
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *publicAccountsServiceClient) SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
func (c *publicAccountsServiceClient) SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*SignUpResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
out := new(SignUpResponse)
|
||||
err := c.cc.Invoke(ctx, PublicAccountsService_SignUp_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -75,9 +75,9 @@ func (c *publicAccountsServiceClient) SignUp(ctx context.Context, in *SignUpRequ
|
||||
// Service for handling accounts that do not require authentication
|
||||
type PublicAccountsServiceServer interface {
|
||||
// Sing in into an existing account
|
||||
SignIn(context.Context, *SignInRequest) (*emptypb.Empty, error)
|
||||
SignIn(context.Context, *SignInRequest) (*SignInResponse, error)
|
||||
// Create a new account
|
||||
SignUp(context.Context, *SignUpRequest) (*emptypb.Empty, error)
|
||||
SignUp(context.Context, *SignUpRequest) (*SignUpResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedPublicAccountsServiceServer should be embedded to have
|
||||
@@ -87,10 +87,10 @@ type PublicAccountsServiceServer interface {
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedPublicAccountsServiceServer struct{}
|
||||
|
||||
func (UnimplementedPublicAccountsServiceServer) SignIn(context.Context, *SignInRequest) (*emptypb.Empty, error) {
|
||||
func (UnimplementedPublicAccountsServiceServer) SignIn(context.Context, *SignInRequest) (*SignInResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SignIn not implemented")
|
||||
}
|
||||
func (UnimplementedPublicAccountsServiceServer) SignUp(context.Context, *SignUpRequest) (*emptypb.Empty, error) {
|
||||
func (UnimplementedPublicAccountsServiceServer) SignUp(context.Context, *SignUpRequest) (*SignUpResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SignUp not implemented")
|
||||
}
|
||||
func (UnimplementedPublicAccountsServiceServer) testEmbeddedByValue() {}
|
||||
@@ -171,8 +171,8 @@ var PublicAccountsService_ServiceDesc = grpc.ServiceDesc{
|
||||
|
||||
const (
|
||||
AccountsService_IsEmailVerified_FullMethodName = "/accounts.v1.AccountsService/IsEmailVerified"
|
||||
AccountsService_RefreshSession_FullMethodName = "/accounts.v1.AccountsService/RefreshSession"
|
||||
AccountsService_TokenAuthorization_FullMethodName = "/accounts.v1.AccountsService/TokenAuthorization"
|
||||
AccountsService_RemoveSession_FullMethodName = "/accounts.v1.AccountsService/RemoveSession"
|
||||
)
|
||||
|
||||
// AccountsServiceClient is the client API for AccountsService service.
|
||||
@@ -181,9 +181,10 @@ const (
|
||||
type AccountsServiceClient interface {
|
||||
// Is email for the current account verified
|
||||
IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error)
|
||||
RefreshSession(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Authorize using long living tokens
|
||||
TokenAuthorization(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
// Remove a session that is associated with a refresh token, should be used for logging out
|
||||
RemoveSession(ctx context.Context, in *RemoveSessionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
type accountsServiceClient struct {
|
||||
@@ -204,20 +205,20 @@ func (c *accountsServiceClient) IsEmailVerified(ctx context.Context, in *IsEmail
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountsServiceClient) RefreshSession(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
func (c *accountsServiceClient) TokenAuthorization(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, AccountsService_RefreshSession_FullMethodName, in, out, cOpts...)
|
||||
err := c.cc.Invoke(ctx, AccountsService_TokenAuthorization_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountsServiceClient) TokenAuthorization(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
func (c *accountsServiceClient) RemoveSession(ctx context.Context, in *RemoveSessionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(emptypb.Empty)
|
||||
err := c.cc.Invoke(ctx, AccountsService_TokenAuthorization_FullMethodName, in, out, cOpts...)
|
||||
err := c.cc.Invoke(ctx, AccountsService_RemoveSession_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -230,9 +231,10 @@ func (c *accountsServiceClient) TokenAuthorization(ctx context.Context, in *empt
|
||||
type AccountsServiceServer interface {
|
||||
// Is email for the current account verified
|
||||
IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error)
|
||||
RefreshSession(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
|
||||
// Authorize using long living tokens
|
||||
TokenAuthorization(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
|
||||
// Remove a session that is associated with a refresh token, should be used for logging out
|
||||
RemoveSession(context.Context, *RemoveSessionRequest) (*emptypb.Empty, error)
|
||||
}
|
||||
|
||||
// UnimplementedAccountsServiceServer should be embedded to have
|
||||
@@ -245,12 +247,12 @@ type UnimplementedAccountsServiceServer struct{}
|
||||
func (UnimplementedAccountsServiceServer) IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method IsEmailVerified not implemented")
|
||||
}
|
||||
func (UnimplementedAccountsServiceServer) RefreshSession(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method RefreshSession not implemented")
|
||||
}
|
||||
func (UnimplementedAccountsServiceServer) TokenAuthorization(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method TokenAuthorization not implemented")
|
||||
}
|
||||
func (UnimplementedAccountsServiceServer) RemoveSession(context.Context, *RemoveSessionRequest) (*emptypb.Empty, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method RemoveSession not implemented")
|
||||
}
|
||||
func (UnimplementedAccountsServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeAccountsServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
@@ -289,24 +291,6 @@ func _AccountsService_IsEmailVerified_Handler(srv interface{}, ctx context.Conte
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AccountsService_RefreshSession_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).RefreshSession(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AccountsService_RefreshSession_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AccountsServiceServer).RefreshSession(ctx, req.(*emptypb.Empty))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AccountsService_TokenAuthorization_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 {
|
||||
@@ -325,6 +309,24 @@ func _AccountsService_TokenAuthorization_Handler(srv interface{}, ctx context.Co
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AccountsService_RemoveSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(RemoveSessionRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AccountsServiceServer).RemoveSession(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AccountsService_RemoveSession_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AccountsServiceServer).RemoveSession(ctx, req.(*RemoveSessionRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// 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)
|
||||
@@ -336,14 +338,118 @@ var AccountsService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "IsEmailVerified",
|
||||
Handler: _AccountsService_IsEmailVerified_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "RefreshSession",
|
||||
Handler: _AccountsService_RefreshSession_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "TokenAuthorization",
|
||||
Handler: _AccountsService_TokenAuthorization_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "RemoveSession",
|
||||
Handler: _AccountsService_RemoveSession_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "accounts/v1/accounts_v1.proto",
|
||||
}
|
||||
|
||||
const (
|
||||
RefreshSessionService_RefreshSession_FullMethodName = "/accounts.v1.RefreshSessionService/RefreshSession"
|
||||
)
|
||||
|
||||
// RefreshSessionServiceClient is the client API for RefreshSessionService 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.
|
||||
//
|
||||
// Use as a separate service to make it easier to avoid interceptors on the client
|
||||
type RefreshSessionServiceClient interface {
|
||||
RefreshSession(ctx context.Context, in *RefreshSessionRequest, opts ...grpc.CallOption) (*RefreshSessionResponse, error)
|
||||
}
|
||||
|
||||
type refreshSessionServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewRefreshSessionServiceClient(cc grpc.ClientConnInterface) RefreshSessionServiceClient {
|
||||
return &refreshSessionServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *refreshSessionServiceClient) RefreshSession(ctx context.Context, in *RefreshSessionRequest, opts ...grpc.CallOption) (*RefreshSessionResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(RefreshSessionResponse)
|
||||
err := c.cc.Invoke(ctx, RefreshSessionService_RefreshSession_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// RefreshSessionServiceServer is the server API for RefreshSessionService service.
|
||||
// All implementations should embed UnimplementedRefreshSessionServiceServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// Use as a separate service to make it easier to avoid interceptors on the client
|
||||
type RefreshSessionServiceServer interface {
|
||||
RefreshSession(context.Context, *RefreshSessionRequest) (*RefreshSessionResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedRefreshSessionServiceServer 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 UnimplementedRefreshSessionServiceServer struct{}
|
||||
|
||||
func (UnimplementedRefreshSessionServiceServer) RefreshSession(context.Context, *RefreshSessionRequest) (*RefreshSessionResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method RefreshSession not implemented")
|
||||
}
|
||||
func (UnimplementedRefreshSessionServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeRefreshSessionServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to RefreshSessionServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeRefreshSessionServiceServer interface {
|
||||
mustEmbedUnimplementedRefreshSessionServiceServer()
|
||||
}
|
||||
|
||||
func RegisterRefreshSessionServiceServer(s grpc.ServiceRegistrar, srv RefreshSessionServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedRefreshSessionServiceServer 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(&RefreshSessionService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _RefreshSessionService_RefreshSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(RefreshSessionRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(RefreshSessionServiceServer).RefreshSession(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: RefreshSessionService_RefreshSession_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(RefreshSessionServiceServer).RefreshSession(ctx, req.(*RefreshSessionRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// RefreshSessionService_ServiceDesc is the grpc.ServiceDesc for RefreshSessionService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var RefreshSessionService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "accounts.v1.RefreshSessionService",
|
||||
HandlerType: (*RefreshSessionServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "RefreshSession",
|
||||
Handler: _RefreshSessionService_RefreshSession_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "accounts/v1/accounts_v1.proto",
|
||||
|
||||
@@ -348,7 +348,8 @@ func (x *CreateTokenRequest) GetTokenPermissions() *TokenPermissions {
|
||||
|
||||
type CreateTokenResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenValue *TokenValue `protobuf:"bytes,4,opt,name=token_value,json=tokenValue,proto3" json:"token_value,omitempty"`
|
||||
TokenUuid *TokenUUID `protobuf:"bytes,1,opt,name=token_uuid,json=tokenUuid,proto3" json:"token_uuid,omitempty"`
|
||||
TokenValue *TokenValue `protobuf:"bytes,2,opt,name=token_value,json=tokenValue,proto3" json:"token_value,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -383,6 +384,13 @@ func (*CreateTokenResponse) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *CreateTokenResponse) GetTokenUuid() *TokenUUID {
|
||||
if x != nil {
|
||||
return x.TokenUuid
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *CreateTokenResponse) GetTokenValue() *TokenValue {
|
||||
if x != nil {
|
||||
return x.TokenValue
|
||||
@@ -600,7 +608,8 @@ func (x *RegenerateTokenRequest) GetTokenUuid() *TokenUUID {
|
||||
|
||||
type RegenerateTokenResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TokenValue *TokenValue `protobuf:"bytes,1,opt,name=token_value,json=tokenValue,proto3" json:"token_value,omitempty"`
|
||||
TokenUuid *TokenUUID `protobuf:"bytes,1,opt,name=token_uuid,json=tokenUuid,proto3" json:"token_uuid,omitempty"`
|
||||
TokenValue *TokenValue `protobuf:"bytes,2,opt,name=token_value,json=tokenValue,proto3" json:"token_value,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -635,6 +644,13 @@ func (*RegenerateTokenResponse) Descriptor() ([]byte, []int) {
|
||||
return file_tokens_v1_tokens_v1_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *RegenerateTokenResponse) GetTokenUuid() *TokenUUID {
|
||||
if x != nil {
|
||||
return x.TokenUuid
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *RegenerateTokenResponse) GetTokenValue() *TokenValue {
|
||||
if x != nil {
|
||||
return x.TokenValue
|
||||
@@ -925,9 +941,11 @@ const file_tokens_v1_tokens_v1_proto_rawDesc = "" +
|
||||
"\x05value\x18\x02 \x01(\v2\x15.tokens.v1.MethodListR\x05value:\x028\x01\"\x9f\x01\n" +
|
||||
"\x12CreateTokenRequest\x12?\n" +
|
||||
"\x0etoken_metadata\x18\x01 \x01(\v2\x18.tokens.v1.TokenMetadataR\rtokenMetadata\x12H\n" +
|
||||
"\x11token_permissions\x18\x02 \x01(\v2\x1b.tokens.v1.TokenPermissionsR\x10tokenPermissions\"M\n" +
|
||||
"\x13CreateTokenResponse\x126\n" +
|
||||
"\vtoken_value\x18\x04 \x01(\v2\x15.tokens.v1.TokenValueR\n" +
|
||||
"\x11token_permissions\x18\x02 \x01(\v2\x1b.tokens.v1.TokenPermissionsR\x10tokenPermissions\"\x82\x01\n" +
|
||||
"\x13CreateTokenResponse\x123\n" +
|
||||
"\n" +
|
||||
"token_uuid\x18\x01 \x01(\v2\x14.tokens.v1.TokenUUIDR\ttokenUuid\x126\n" +
|
||||
"\vtoken_value\x18\x02 \x01(\v2\x15.tokens.v1.TokenValueR\n" +
|
||||
"tokenValue\"\xd4\x01\n" +
|
||||
"\x12UpdateTokenRequest\x123\n" +
|
||||
"\n" +
|
||||
@@ -944,9 +962,11 @@ const file_tokens_v1_tokens_v1_proto_rawDesc = "" +
|
||||
"token_uuid\x18\x01 \x01(\v2\x14.tokens.v1.TokenUUIDR\ttokenUuid\"M\n" +
|
||||
"\x16RegenerateTokenRequest\x123\n" +
|
||||
"\n" +
|
||||
"token_uuid\x18\x01 \x01(\v2\x14.tokens.v1.TokenUUIDR\ttokenUuid\"Q\n" +
|
||||
"\x17RegenerateTokenResponse\x126\n" +
|
||||
"\vtoken_value\x18\x01 \x01(\v2\x15.tokens.v1.TokenValueR\n" +
|
||||
"token_uuid\x18\x01 \x01(\v2\x14.tokens.v1.TokenUUIDR\ttokenUuid\"\x86\x01\n" +
|
||||
"\x17RegenerateTokenResponse\x123\n" +
|
||||
"\n" +
|
||||
"token_uuid\x18\x01 \x01(\v2\x14.tokens.v1.TokenUUIDR\ttokenUuid\x126\n" +
|
||||
"\vtoken_value\x18\x02 \x01(\v2\x15.tokens.v1.TokenValueR\n" +
|
||||
"tokenValue\"F\n" +
|
||||
"\x0fGetTokenRequest\x123\n" +
|
||||
"\n" +
|
||||
@@ -1022,47 +1042,49 @@ var file_tokens_v1_tokens_v1_proto_depIdxs = []int32{
|
||||
17, // 5: tokens.v1.TokenPermissions.permissions:type_name -> tokens.v1.TokenPermissions.PermissionsEntry
|
||||
0, // 6: tokens.v1.CreateTokenRequest.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
4, // 7: tokens.v1.CreateTokenRequest.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
2, // 8: tokens.v1.CreateTokenResponse.token_value:type_name -> tokens.v1.TokenValue
|
||||
1, // 9: tokens.v1.UpdateTokenRequest.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
0, // 10: tokens.v1.UpdateTokenRequest.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
4, // 11: tokens.v1.UpdateTokenRequest.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
1, // 12: tokens.v1.UpdateTokenResponse.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
0, // 13: tokens.v1.UpdateTokenResponse.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
4, // 14: tokens.v1.UpdateTokenResponse.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
1, // 15: tokens.v1.ForceTokenExpirationRequest.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
1, // 16: tokens.v1.RegenerateTokenRequest.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
2, // 17: tokens.v1.RegenerateTokenResponse.token_value:type_name -> tokens.v1.TokenValue
|
||||
1, // 18: tokens.v1.GetTokenRequest.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
1, // 19: tokens.v1.GetTokenResponse.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
0, // 20: tokens.v1.GetTokenResponse.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
4, // 21: tokens.v1.GetTokenResponse.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
1, // 22: tokens.v1.ListTokensResponse.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
0, // 23: tokens.v1.ListTokensResponse.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
4, // 24: tokens.v1.ListTokensResponse.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
4, // 25: tokens.v1.ListPermissionsResponse.permissions:type_name -> tokens.v1.TokenPermissions
|
||||
2, // 26: tokens.v1.AuthenticateWithTokenRequest.token_value:type_name -> tokens.v1.TokenValue
|
||||
3, // 27: tokens.v1.TokenPermissions.PermissionsEntry.value:type_name -> tokens.v1.MethodList
|
||||
5, // 28: tokens.v1.TokensService.CreateToken:input_type -> tokens.v1.CreateTokenRequest
|
||||
7, // 29: tokens.v1.TokensService.UpdateToken:input_type -> tokens.v1.UpdateTokenRequest
|
||||
9, // 30: tokens.v1.TokensService.ForceTokenExpiration:input_type -> tokens.v1.ForceTokenExpirationRequest
|
||||
10, // 31: tokens.v1.TokensService.RegenerateToken:input_type -> tokens.v1.RegenerateTokenRequest
|
||||
12, // 32: tokens.v1.TokensService.GetToken:input_type -> tokens.v1.GetTokenRequest
|
||||
19, // 33: tokens.v1.TokensService.ListTokens:input_type -> google.protobuf.Empty
|
||||
19, // 34: tokens.v1.TokensService.ListPermissions:input_type -> google.protobuf.Empty
|
||||
16, // 35: tokens.v1.PublicTokensService.AuthenticateWithToken:input_type -> tokens.v1.AuthenticateWithTokenRequest
|
||||
6, // 36: tokens.v1.TokensService.CreateToken:output_type -> tokens.v1.CreateTokenResponse
|
||||
8, // 37: tokens.v1.TokensService.UpdateToken:output_type -> tokens.v1.UpdateTokenResponse
|
||||
19, // 38: tokens.v1.TokensService.ForceTokenExpiration:output_type -> google.protobuf.Empty
|
||||
11, // 39: tokens.v1.TokensService.RegenerateToken:output_type -> tokens.v1.RegenerateTokenResponse
|
||||
13, // 40: tokens.v1.TokensService.GetToken:output_type -> tokens.v1.GetTokenResponse
|
||||
14, // 41: tokens.v1.TokensService.ListTokens:output_type -> tokens.v1.ListTokensResponse
|
||||
15, // 42: tokens.v1.TokensService.ListPermissions:output_type -> tokens.v1.ListPermissionsResponse
|
||||
19, // 43: tokens.v1.PublicTokensService.AuthenticateWithToken:output_type -> google.protobuf.Empty
|
||||
36, // [36:44] is the sub-list for method output_type
|
||||
28, // [28:36] is the sub-list for method input_type
|
||||
28, // [28:28] is the sub-list for extension type_name
|
||||
28, // [28:28] is the sub-list for extension extendee
|
||||
0, // [0:28] is the sub-list for field type_name
|
||||
1, // 8: tokens.v1.CreateTokenResponse.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
2, // 9: tokens.v1.CreateTokenResponse.token_value:type_name -> tokens.v1.TokenValue
|
||||
1, // 10: tokens.v1.UpdateTokenRequest.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
0, // 11: tokens.v1.UpdateTokenRequest.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
4, // 12: tokens.v1.UpdateTokenRequest.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
1, // 13: tokens.v1.UpdateTokenResponse.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
0, // 14: tokens.v1.UpdateTokenResponse.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
4, // 15: tokens.v1.UpdateTokenResponse.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
1, // 16: tokens.v1.ForceTokenExpirationRequest.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
1, // 17: tokens.v1.RegenerateTokenRequest.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
1, // 18: tokens.v1.RegenerateTokenResponse.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
2, // 19: tokens.v1.RegenerateTokenResponse.token_value:type_name -> tokens.v1.TokenValue
|
||||
1, // 20: tokens.v1.GetTokenRequest.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
1, // 21: tokens.v1.GetTokenResponse.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
0, // 22: tokens.v1.GetTokenResponse.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
4, // 23: tokens.v1.GetTokenResponse.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
1, // 24: tokens.v1.ListTokensResponse.token_uuid:type_name -> tokens.v1.TokenUUID
|
||||
0, // 25: tokens.v1.ListTokensResponse.token_metadata:type_name -> tokens.v1.TokenMetadata
|
||||
4, // 26: tokens.v1.ListTokensResponse.token_permissions:type_name -> tokens.v1.TokenPermissions
|
||||
4, // 27: tokens.v1.ListPermissionsResponse.permissions:type_name -> tokens.v1.TokenPermissions
|
||||
2, // 28: tokens.v1.AuthenticateWithTokenRequest.token_value:type_name -> tokens.v1.TokenValue
|
||||
3, // 29: tokens.v1.TokenPermissions.PermissionsEntry.value:type_name -> tokens.v1.MethodList
|
||||
5, // 30: tokens.v1.TokensService.CreateToken:input_type -> tokens.v1.CreateTokenRequest
|
||||
7, // 31: tokens.v1.TokensService.UpdateToken:input_type -> tokens.v1.UpdateTokenRequest
|
||||
9, // 32: tokens.v1.TokensService.ForceTokenExpiration:input_type -> tokens.v1.ForceTokenExpirationRequest
|
||||
10, // 33: tokens.v1.TokensService.RegenerateToken:input_type -> tokens.v1.RegenerateTokenRequest
|
||||
12, // 34: tokens.v1.TokensService.GetToken:input_type -> tokens.v1.GetTokenRequest
|
||||
19, // 35: tokens.v1.TokensService.ListTokens:input_type -> google.protobuf.Empty
|
||||
19, // 36: tokens.v1.TokensService.ListPermissions:input_type -> google.protobuf.Empty
|
||||
16, // 37: tokens.v1.PublicTokensService.AuthenticateWithToken:input_type -> tokens.v1.AuthenticateWithTokenRequest
|
||||
6, // 38: tokens.v1.TokensService.CreateToken:output_type -> tokens.v1.CreateTokenResponse
|
||||
8, // 39: tokens.v1.TokensService.UpdateToken:output_type -> tokens.v1.UpdateTokenResponse
|
||||
19, // 40: tokens.v1.TokensService.ForceTokenExpiration:output_type -> google.protobuf.Empty
|
||||
11, // 41: tokens.v1.TokensService.RegenerateToken:output_type -> tokens.v1.RegenerateTokenResponse
|
||||
13, // 42: tokens.v1.TokensService.GetToken:output_type -> tokens.v1.GetTokenResponse
|
||||
14, // 43: tokens.v1.TokensService.ListTokens:output_type -> tokens.v1.ListTokensResponse
|
||||
15, // 44: tokens.v1.TokensService.ListPermissions:output_type -> tokens.v1.ListPermissionsResponse
|
||||
19, // 45: tokens.v1.PublicTokensService.AuthenticateWithToken:output_type -> google.protobuf.Empty
|
||||
38, // [38:46] is the sub-list for method output_type
|
||||
30, // [30:38] is the sub-list for method input_type
|
||||
30, // [30:30] is the sub-list for extension type_name
|
||||
30, // [30:30] is the sub-list for extension extendee
|
||||
0, // [0:30] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_tokens_v1_tokens_v1_proto_init() }
|
||||
|
||||
Reference in New Issue
Block a user