Documentation ¶
Index ¶
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AuthMethod
- func (*AuthMethod) Descriptor() ([]byte, []int)deprecated
- func (x *AuthMethod) GetLoginType() model.LoginType
- func (m *AuthMethod) GetMethod() isAuthMethod_Method
- func (*AuthMethod) ProtoMessage()
- func (x *AuthMethod) ProtoReflect() protoreflect.Message
- func (x *AuthMethod) Reset()
- func (x *AuthMethod) String() string
- type AuthMethod_LoginType
- type DefaultInstance
- type EmailInstance
- func (*EmailInstance) Descriptor() ([]byte, []int)deprecated
- func (x *EmailInstance) GetDefault() *DefaultInstance
- func (m *EmailInstance) GetInstance() isEmailInstance_Instance
- func (x *EmailInstance) GetMailjet() *MailjetInstance
- func (x *EmailInstance) GetSmtp() *SmtpInstance
- func (*EmailInstance) ProtoMessage()
- func (x *EmailInstance) ProtoReflect() protoreflect.Message
- func (x *EmailInstance) Reset()
- func (x *EmailInstance) String() string
- type EmailInstance_Default
- type EmailInstance_Mailjet
- type EmailInstance_Smtp
- type EmailProvider
- func (*EmailProvider) Descriptor() ([]byte, []int)deprecated
- func (x *EmailProvider) GetCredentials() *model.ProviderCredentials
- func (x *EmailProvider) GetFrom() string
- func (x *EmailProvider) GetInstance() *EmailInstance
- func (*EmailProvider) ProtoMessage()
- func (x *EmailProvider) ProtoReflect() protoreflect.Message
- func (x *EmailProvider) Reset()
- func (x *EmailProvider) String() string
- type EmailProviderEntry
- func (*EmailProviderEntry) Descriptor() ([]byte, []int)deprecated
- func (x *EmailProviderEntry) GetClientId() string
- func (x *EmailProviderEntry) GetFrom() string
- func (x *EmailProviderEntry) GetInstance() *EmailInstance
- func (x *EmailProviderEntry) GetSecretId() string
- func (*EmailProviderEntry) ProtoMessage()
- func (x *EmailProviderEntry) ProtoReflect() protoreflect.Message
- func (x *EmailProviderEntry) Reset()
- func (x *EmailProviderEntry) String() string
- type GetSettingsRequest
- type GetSettingsResponse
- func (*GetSettingsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSettingsResponse) GetSettings() *Settings
- func (*GetSettingsResponse) ProtoMessage()
- func (x *GetSettingsResponse) ProtoReflect() protoreflect.Message
- func (x *GetSettingsResponse) Reset()
- func (x *GetSettingsResponse) String() string
- type MailjetInstance
- type RegisterMethod
- func (*RegisterMethod) Descriptor() ([]byte, []int)deprecated
- func (m *RegisterMethod) GetMethod() isRegisterMethod_Method
- func (x *RegisterMethod) GetSignup() *RegisterMethod_Signup
- func (x *RegisterMethod) GetSystem() *RegisterMethod_System
- func (*RegisterMethod) ProtoMessage()
- func (x *RegisterMethod) ProtoReflect() protoreflect.Message
- func (x *RegisterMethod) Reset()
- func (x *RegisterMethod) String() string
- type RegisterMethod_Signup
- func (*RegisterMethod_Signup) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterMethod_Signup) GetLoginType() model.LoginType
- func (*RegisterMethod_Signup) ProtoMessage()
- func (x *RegisterMethod_Signup) ProtoReflect() protoreflect.Message
- func (x *RegisterMethod_Signup) Reset()
- func (x *RegisterMethod_Signup) String() string
- type RegisterMethod_Signup_
- type RegisterMethod_System
- type RegisterMethod_System_
- type ServiceClient
- type ServiceServer
- type Settings
- func (*Settings) Descriptor() ([]byte, []int)deprecated
- func (x *Settings) GetAccessTokenTtl() *durationpb.Duration
- func (x *Settings) GetAllowRegister() bool
- func (x *Settings) GetEmailProvider() *EmailProviderEntry
- func (x *Settings) GetIsVerifiedEmailRequired() bool
- func (x *Settings) GetIsVerifiedPhoneRequired() bool
- func (x *Settings) GetLoginMechanisms() []model.LoginType
- func (x *Settings) GetPasswordHashing() *model.HashingConfig
- func (x *Settings) GetRefreshTokenTtl() *durationpb.Duration
- func (x *Settings) GetSendWelcomeMail() bool
- func (x *Settings) GetTemplates() *Templates
- func (x *Settings) GetTextProvider() *TextProviderEntry
- func (x *Settings) GetVerificationCodeTtl() *durationpb.Duration
- func (*Settings) ProtoMessage()
- func (x *Settings) ProtoReflect() protoreflect.Message
- func (x *Settings) Reset()
- func (x *Settings) String() string
- type SmtpInstance
- func (*SmtpInstance) Descriptor() ([]byte, []int)deprecated
- func (x *SmtpInstance) GetHost() string
- func (x *SmtpInstance) GetPort() int64
- func (*SmtpInstance) ProtoMessage()
- func (x *SmtpInstance) ProtoReflect() protoreflect.Message
- func (x *SmtpInstance) Reset()
- func (x *SmtpInstance) String() string
- type Template
- func (*Template) Descriptor() ([]byte, []int)deprecated
- func (x *Template) GetBody() string
- func (x *Template) GetFormat() []string
- func (x *Template) GetSubject() string
- func (x *Template) GetType() TemplateType
- func (*Template) ProtoMessage()
- func (x *Template) ProtoReflect() protoreflect.Message
- func (x *Template) Reset()
- func (x *Template) String() string
- type TemplateType
- func (TemplateType) Descriptor() protoreflect.EnumDescriptor
- func (x TemplateType) Enum() *TemplateType
- func (TemplateType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TemplateType) Number() protoreflect.EnumNumber
- func (x TemplateType) String() string
- func (TemplateType) Type() protoreflect.EnumType
- type Templates
- func (*Templates) Descriptor() ([]byte, []int)deprecated
- func (x *Templates) GetResetPasswordEmail() *Template
- func (x *Templates) GetResetPasswordText() *Template
- func (x *Templates) GetVerifyEmail() *Template
- func (x *Templates) GetVerifyPhoneNumber() *Template
- func (x *Templates) GetWelcomeEmail() *Template
- func (x *Templates) GetWelcomeText() *Template
- func (*Templates) ProtoMessage()
- func (x *Templates) ProtoReflect() protoreflect.Message
- func (x *Templates) Reset()
- func (x *Templates) String() string
- type TextInstancedeprecated
- func (*TextInstance) Descriptor() ([]byte, []int)deprecated
- func (x *TextInstance) GetDefault() *DefaultInstance
- func (m *TextInstance) GetInstance() isTextInstance_Instance
- func (x *TextInstance) GetTwilio() *TwilioInstance
- func (*TextInstance) ProtoMessage()
- func (x *TextInstance) ProtoReflect() protoreflect.Message
- func (x *TextInstance) Reset()
- func (x *TextInstance) String() string
- type TextInstance_Default
- type TextInstance_Twilio
- type TextProviderdeprecated
- func (*TextProvider) Descriptor() ([]byte, []int)deprecated
- func (x *TextProvider) GetCredentials() *model.ProviderCredentials
- func (x *TextProvider) GetFrom() string
- func (x *TextProvider) GetInstance() *TextInstance
- func (*TextProvider) ProtoMessage()
- func (x *TextProvider) ProtoReflect() protoreflect.Message
- func (x *TextProvider) Reset()
- func (x *TextProvider) String() string
- type TextProviderEntrydeprecated
- func (*TextProviderEntry) Descriptor() ([]byte, []int)deprecated
- func (x *TextProviderEntry) GetClientId() string
- func (x *TextProviderEntry) GetFrom() string
- func (x *TextProviderEntry) GetInstance() *TextInstance
- func (x *TextProviderEntry) GetSecretId() string
- func (*TextProviderEntry) ProtoMessage()
- func (x *TextProviderEntry) ProtoReflect() protoreflect.Message
- func (x *TextProviderEntry) Reset()
- func (x *TextProviderEntry) String() string
- type TwilioInstancedeprecated
- type UnimplementedServiceServer
- type UnsafeServiceServer
- type Update
- func (*Update) Descriptor() ([]byte, []int)deprecated
- func (x *Update) GetAccessTokenTtl() *durationpb.Duration
- func (x *Update) GetAllowRegister() bool
- func (x *Update) GetEmailProvider() *EmailProvider
- func (m *Update) GetField() isUpdate_Field
- func (x *Update) GetIsVerifiedEmailRequired() bool
- func (x *Update) GetIsVerifiedPhoneRequired() bool
- func (x *Update) GetLoginMechanisms() *Update_LoginMechanisms
- func (x *Update) GetPasswordHashing() *model.HashingConfig
- func (x *Update) GetRefreshTokenTtl() *durationpb.Duration
- func (x *Update) GetTemplate() *Template
- func (x *Update) GetTextProvider() *TextProvider
- func (x *Update) GetVerificationCodeTtl() *durationpb.Duration
- func (*Update) ProtoMessage()
- func (x *Update) ProtoReflect() protoreflect.Message
- func (x *Update) Reset()
- func (x *Update) String() string
- type UpdateSettingsRequest
- func (*UpdateSettingsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSettingsRequest) GetSettings() []*Update
- func (*UpdateSettingsRequest) ProtoMessage()
- func (x *UpdateSettingsRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSettingsRequest) Reset()
- func (x *UpdateSettingsRequest) String() string
- type UpdateSettingsResponse
- type Update_AccessTokenTtl
- type Update_AllowRegister
- type Update_EmailProvider
- type Update_IsVerifiedEmailRequired
- type Update_IsVerifiedPhoneRequired
- type Update_LoginMechanisms
- func (*Update_LoginMechanisms) Descriptor() ([]byte, []int)deprecated
- func (x *Update_LoginMechanisms) GetLoginMechanisms() []model.LoginType
- func (*Update_LoginMechanisms) ProtoMessage()
- func (x *Update_LoginMechanisms) ProtoReflect() protoreflect.Message
- func (x *Update_LoginMechanisms) Reset()
- func (x *Update_LoginMechanisms) String() string
- type Update_LoginMechanisms_
- type Update_PasswordHashing
- type Update_RefreshTokenTtl
- type Update_Template
- type Update_TextProvider
- type Update_VerificationCodeTtl
Constants ¶
This section is empty.
Variables ¶
var ( TemplateType_name = map[int32]string{ 0: "TEMPLATE_TYPE_UNSPECIFIED", 1: "TEMPLATE_TYPE_WELCOME_EMAIL", 2: "TEMPLATE_TYPE_EMAIL_VERIFICATION", 3: "TEMPLATE_TYPE_EMAIL_RESET_PASSWORD", 4: "TEMPLATE_TYPE_WELCOME_TEXT", 5: "TEMPLATE_TYPE_TEXT_VERIFICATION", 6: "TEMPLATE_TYPE_TEXT_RESET_PASSWORD", } TemplateType_value = map[string]int32{ "TEMPLATE_TYPE_UNSPECIFIED": 0, "TEMPLATE_TYPE_WELCOME_EMAIL": 1, "TEMPLATE_TYPE_EMAIL_VERIFICATION": 2, "TEMPLATE_TYPE_EMAIL_RESET_PASSWORD": 3, "TEMPLATE_TYPE_WELCOME_TEXT": 4, "TEMPLATE_TYPE_TEXT_VERIFICATION": 5, "TEMPLATE_TYPE_TEXT_RESET_PASSWORD": 6, } )
Enum value maps for TemplateType.
var File_api_v1_user_settings_service_proto protoreflect.FileDescriptor
var File_api_v1_user_settings_settings_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1.user.settings.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSettings", Handler: _Service_GetSettings_Handler, }, { MethodName: "UpdateSettings", Handler: _Service_UpdateSettings_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/user/settings/service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AuthMethod ¶
type AuthMethod struct { // Types that are assignable to Method: // // *AuthMethod_LoginType Method isAuthMethod_Method `protobuf_oneof:"method"` // contains filtered or unexported fields }
Message that tells how the user was authenticated.
func (*AuthMethod) Descriptor
deprecated
func (*AuthMethod) Descriptor() ([]byte, []int)
Deprecated: Use AuthMethod.ProtoReflect.Descriptor instead.
func (*AuthMethod) GetLoginType ¶
func (x *AuthMethod) GetLoginType() model.LoginType
func (*AuthMethod) GetMethod ¶
func (m *AuthMethod) GetMethod() isAuthMethod_Method
func (*AuthMethod) ProtoMessage ¶
func (*AuthMethod) ProtoMessage()
func (*AuthMethod) ProtoReflect ¶
func (x *AuthMethod) ProtoReflect() protoreflect.Message
func (*AuthMethod) Reset ¶
func (x *AuthMethod) Reset()
func (*AuthMethod) String ¶
func (x *AuthMethod) String() string
type AuthMethod_LoginType ¶
type DefaultInstance ¶
type DefaultInstance struct {
// contains filtered or unexported fields
}
Default email provider instance.
func (*DefaultInstance) Descriptor
deprecated
func (*DefaultInstance) Descriptor() ([]byte, []int)
Deprecated: Use DefaultInstance.ProtoReflect.Descriptor instead.
func (*DefaultInstance) ProtoMessage ¶
func (*DefaultInstance) ProtoMessage()
func (*DefaultInstance) ProtoReflect ¶
func (x *DefaultInstance) ProtoReflect() protoreflect.Message
func (*DefaultInstance) Reset ¶
func (x *DefaultInstance) Reset()
func (*DefaultInstance) String ¶
func (x *DefaultInstance) String() string
type EmailInstance ¶
type EmailInstance struct { // Types that are assignable to Instance: // // *EmailInstance_Default // *EmailInstance_Mailjet // *EmailInstance_Smtp Instance isEmailInstance_Instance `protobuf_oneof:"instance"` // contains filtered or unexported fields }
Type of email instance in a provider.
func (*EmailInstance) Descriptor
deprecated
func (*EmailInstance) Descriptor() ([]byte, []int)
Deprecated: Use EmailInstance.ProtoReflect.Descriptor instead.
func (*EmailInstance) GetDefault ¶
func (x *EmailInstance) GetDefault() *DefaultInstance
func (*EmailInstance) GetInstance ¶
func (m *EmailInstance) GetInstance() isEmailInstance_Instance
func (*EmailInstance) GetMailjet ¶
func (x *EmailInstance) GetMailjet() *MailjetInstance
func (*EmailInstance) GetSmtp ¶
func (x *EmailInstance) GetSmtp() *SmtpInstance
func (*EmailInstance) ProtoMessage ¶
func (*EmailInstance) ProtoMessage()
func (*EmailInstance) ProtoReflect ¶
func (x *EmailInstance) ProtoReflect() protoreflect.Message
func (*EmailInstance) Reset ¶
func (x *EmailInstance) Reset()
func (*EmailInstance) String ¶
func (x *EmailInstance) String() string
type EmailInstance_Default ¶
type EmailInstance_Default struct { // default from platform config. Default *DefaultInstance `protobuf:"bytes,1,opt,name=default,proto3,oneof"` }
type EmailInstance_Mailjet ¶
type EmailInstance_Mailjet struct { // Mailjet instance. Mailjet *MailjetInstance `protobuf:"bytes,2,opt,name=mailjet,proto3,oneof"` }
type EmailInstance_Smtp ¶
type EmailInstance_Smtp struct {
Smtp *SmtpInstance `protobuf:"bytes,3,opt,name=smtp,proto3,oneof"` // SMTP instance.
}
type EmailProvider ¶
type EmailProvider struct { // The email-address that the provider sends emails from. From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` // The credentials for the provider. Credentials *model.ProviderCredentials `protobuf:"bytes,2,opt,name=credentials,proto3" json:"credentials,omitempty"` // The instance of the provider. Instance *EmailInstance `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"` // contains filtered or unexported fields }
The email provider.
func (*EmailProvider) Descriptor
deprecated
func (*EmailProvider) Descriptor() ([]byte, []int)
Deprecated: Use EmailProvider.ProtoReflect.Descriptor instead.
func (*EmailProvider) GetCredentials ¶
func (x *EmailProvider) GetCredentials() *model.ProviderCredentials
func (*EmailProvider) GetFrom ¶
func (x *EmailProvider) GetFrom() string
func (*EmailProvider) GetInstance ¶
func (x *EmailProvider) GetInstance() *EmailInstance
func (*EmailProvider) ProtoMessage ¶
func (*EmailProvider) ProtoMessage()
func (*EmailProvider) ProtoReflect ¶
func (x *EmailProvider) ProtoReflect() protoreflect.Message
func (*EmailProvider) Reset ¶
func (x *EmailProvider) Reset()
func (*EmailProvider) String ¶
func (x *EmailProvider) String() string
type EmailProviderEntry ¶
type EmailProviderEntry struct { // The email-address that the provider sends emails from. From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` // The client id for the provider. ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // The secret id for the provider. SecretId string `protobuf:"bytes,3,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"` // The instance of the provider. Instance *EmailInstance `protobuf:"bytes,4,opt,name=instance,proto3" json:"instance,omitempty"` // contains filtered or unexported fields }
an entry model for the email provider.
func (*EmailProviderEntry) Descriptor
deprecated
func (*EmailProviderEntry) Descriptor() ([]byte, []int)
Deprecated: Use EmailProviderEntry.ProtoReflect.Descriptor instead.
func (*EmailProviderEntry) GetClientId ¶
func (x *EmailProviderEntry) GetClientId() string
func (*EmailProviderEntry) GetFrom ¶
func (x *EmailProviderEntry) GetFrom() string
func (*EmailProviderEntry) GetInstance ¶
func (x *EmailProviderEntry) GetInstance() *EmailInstance
func (*EmailProviderEntry) GetSecretId ¶
func (x *EmailProviderEntry) GetSecretId() string
func (*EmailProviderEntry) ProtoMessage ¶
func (*EmailProviderEntry) ProtoMessage()
func (*EmailProviderEntry) ProtoReflect ¶
func (x *EmailProviderEntry) ProtoReflect() protoreflect.Message
func (*EmailProviderEntry) Reset ¶
func (x *EmailProviderEntry) Reset()
func (*EmailProviderEntry) String ¶
func (x *EmailProviderEntry) String() string
type GetSettingsRequest ¶
type GetSettingsRequest struct {
// contains filtered or unexported fields
}
Request for getting users settings for the Rig project.
func (*GetSettingsRequest) Descriptor
deprecated
func (*GetSettingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSettingsRequest.ProtoReflect.Descriptor instead.
func (*GetSettingsRequest) ProtoMessage ¶
func (*GetSettingsRequest) ProtoMessage()
func (*GetSettingsRequest) ProtoReflect ¶
func (x *GetSettingsRequest) ProtoReflect() protoreflect.Message
func (*GetSettingsRequest) Reset ¶
func (x *GetSettingsRequest) Reset()
func (*GetSettingsRequest) String ¶
func (x *GetSettingsRequest) String() string
type GetSettingsResponse ¶
type GetSettingsResponse struct { // The users settings. Settings *Settings `protobuf:"bytes,1,opt,name=settings,proto3" json:"settings,omitempty"` // contains filtered or unexported fields }
Response for getting users settings for the Rig project.
func (*GetSettingsResponse) Descriptor
deprecated
func (*GetSettingsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSettingsResponse.ProtoReflect.Descriptor instead.
func (*GetSettingsResponse) GetSettings ¶
func (x *GetSettingsResponse) GetSettings() *Settings
func (*GetSettingsResponse) ProtoMessage ¶
func (*GetSettingsResponse) ProtoMessage()
func (*GetSettingsResponse) ProtoReflect ¶
func (x *GetSettingsResponse) ProtoReflect() protoreflect.Message
func (*GetSettingsResponse) Reset ¶
func (x *GetSettingsResponse) Reset()
func (*GetSettingsResponse) String ¶
func (x *GetSettingsResponse) String() string
type MailjetInstance ¶
type MailjetInstance struct {
// contains filtered or unexported fields
}
Mailjet email rpvoider instance.
func (*MailjetInstance) Descriptor
deprecated
func (*MailjetInstance) Descriptor() ([]byte, []int)
Deprecated: Use MailjetInstance.ProtoReflect.Descriptor instead.
func (*MailjetInstance) ProtoMessage ¶
func (*MailjetInstance) ProtoMessage()
func (*MailjetInstance) ProtoReflect ¶
func (x *MailjetInstance) ProtoReflect() protoreflect.Message
func (*MailjetInstance) Reset ¶
func (x *MailjetInstance) Reset()
func (*MailjetInstance) String ¶
func (x *MailjetInstance) String() string
type RegisterMethod ¶
type RegisterMethod struct { // The method used to register a user. // // Types that are assignable to Method: // // *RegisterMethod_System_ // *RegisterMethod_Signup_ Method isRegisterMethod_Method `protobuf_oneof:"method"` // contains filtered or unexported fields }
Message that tells how the user was registered / created.
func (*RegisterMethod) Descriptor
deprecated
func (*RegisterMethod) Descriptor() ([]byte, []int)
Deprecated: Use RegisterMethod.ProtoReflect.Descriptor instead.
func (*RegisterMethod) GetMethod ¶
func (m *RegisterMethod) GetMethod() isRegisterMethod_Method
func (*RegisterMethod) GetSignup ¶
func (x *RegisterMethod) GetSignup() *RegisterMethod_Signup
func (*RegisterMethod) GetSystem ¶
func (x *RegisterMethod) GetSystem() *RegisterMethod_System
func (*RegisterMethod) ProtoMessage ¶
func (*RegisterMethod) ProtoMessage()
func (*RegisterMethod) ProtoReflect ¶
func (x *RegisterMethod) ProtoReflect() protoreflect.Message
func (*RegisterMethod) Reset ¶
func (x *RegisterMethod) Reset()
func (*RegisterMethod) String ¶
func (x *RegisterMethod) String() string
type RegisterMethod_Signup ¶
type RegisterMethod_Signup struct { // The login type used to register. LoginType model.LoginType `protobuf:"varint,1,opt,name=login_type,json=loginType,proto3,enum=model.LoginType" json:"login_type,omitempty"` // contains filtered or unexported fields }
The user was self-registered with a login-type.
func (*RegisterMethod_Signup) Descriptor
deprecated
func (*RegisterMethod_Signup) Descriptor() ([]byte, []int)
Deprecated: Use RegisterMethod_Signup.ProtoReflect.Descriptor instead.
func (*RegisterMethod_Signup) GetLoginType ¶
func (x *RegisterMethod_Signup) GetLoginType() model.LoginType
func (*RegisterMethod_Signup) ProtoMessage ¶
func (*RegisterMethod_Signup) ProtoMessage()
func (*RegisterMethod_Signup) ProtoReflect ¶
func (x *RegisterMethod_Signup) ProtoReflect() protoreflect.Message
func (*RegisterMethod_Signup) Reset ¶
func (x *RegisterMethod_Signup) Reset()
func (*RegisterMethod_Signup) String ¶
func (x *RegisterMethod_Signup) String() string
type RegisterMethod_Signup_ ¶
type RegisterMethod_Signup_ struct { // The user was self-registered with a login-type. Signup *RegisterMethod_Signup `protobuf:"bytes,2,opt,name=signup,proto3,oneof"` }
type RegisterMethod_System ¶
type RegisterMethod_System struct {
// contains filtered or unexported fields
}
The user was created by the system.
func (*RegisterMethod_System) Descriptor
deprecated
func (*RegisterMethod_System) Descriptor() ([]byte, []int)
Deprecated: Use RegisterMethod_System.ProtoReflect.Descriptor instead.
func (*RegisterMethod_System) ProtoMessage ¶
func (*RegisterMethod_System) ProtoMessage()
func (*RegisterMethod_System) ProtoReflect ¶
func (x *RegisterMethod_System) ProtoReflect() protoreflect.Message
func (*RegisterMethod_System) Reset ¶
func (x *RegisterMethod_System) Reset()
func (*RegisterMethod_System) String ¶
func (x *RegisterMethod_System) String() string
type RegisterMethod_System_ ¶
type RegisterMethod_System_ struct { // The user was created by the system. System *RegisterMethod_System `protobuf:"bytes,1,opt,name=system,proto3,oneof"` }
type ServiceClient ¶
type ServiceClient interface { // Gets the users settings for the current project. GetSettings(ctx context.Context, in *GetSettingsRequest, opts ...grpc.CallOption) (*GetSettingsResponse, error) // Sets the users settings for the current project. UpdateSettings(ctx context.Context, in *UpdateSettingsRequest, opts ...grpc.CallOption) (*UpdateSettingsResponse, error) }
ServiceClient is the client API for Service 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.
func NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { // Gets the users settings for the current project. GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error) // Sets the users settings for the current project. UpdateSettings(context.Context, *UpdateSettingsRequest) (*UpdateSettingsResponse, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type Settings ¶
type Settings struct { // If true, users can self register. AllowRegister bool `protobuf:"varint,1,opt,name=allow_register,json=allowRegister,proto3" json:"allow_register,omitempty"` // If true, users must be verified via email to login. IsVerifiedEmailRequired bool `` /* 135-byte string literal not displayed */ // Deprecated: Text is not supported - If true, users must be verified via // phone to login. IsVerifiedPhoneRequired bool `` /* 135-byte string literal not displayed */ // Access token Time to Live. AccessTokenTtl *durationpb.Duration `protobuf:"bytes,4,opt,name=access_token_ttl,json=accessTokenTtl,proto3" json:"access_token_ttl,omitempty"` // Refresh token Time to Live. RefreshTokenTtl *durationpb.Duration `protobuf:"bytes,5,opt,name=refresh_token_ttl,json=refreshTokenTtl,proto3" json:"refresh_token_ttl,omitempty"` // Verification code Time to Live. VerificationCodeTtl *durationpb.Duration `protobuf:"bytes,6,opt,name=verification_code_ttl,json=verificationCodeTtl,proto3" json:"verification_code_ttl,omitempty"` // The hashing config used to hash passwords. PasswordHashing *model.HashingConfig `protobuf:"bytes,7,opt,name=password_hashing,json=passwordHashing,proto3" json:"password_hashing,omitempty"` // The allowed login mechanisms. LoginMechanisms []model.LoginType `` /* 135-byte string literal not displayed */ // If true, send a welcome email to new users. SendWelcomeMail bool `protobuf:"varint,10,opt,name=send_welcome_mail,json=sendWelcomeMail,proto3" json:"send_welcome_mail,omitempty"` // The email provider. EmailProvider *EmailProviderEntry `protobuf:"bytes,11,opt,name=email_provider,json=emailProvider,proto3" json:"email_provider,omitempty"` // Deprecated: Text is not supported - The text provider. TextProvider *TextProviderEntry `protobuf:"bytes,12,opt,name=text_provider,json=textProvider,proto3" json:"text_provider,omitempty"` // The templates used for sending emails and texts. Templates *Templates `protobuf:"bytes,13,opt,name=templates,proto3" json:"templates,omitempty"` // contains filtered or unexported fields }
The users settings configuration. Settings of everything that has to do with users.
func (*Settings) Descriptor
deprecated
func (*Settings) GetAccessTokenTtl ¶
func (x *Settings) GetAccessTokenTtl() *durationpb.Duration
func (*Settings) GetAllowRegister ¶
func (*Settings) GetEmailProvider ¶
func (x *Settings) GetEmailProvider() *EmailProviderEntry
func (*Settings) GetIsVerifiedEmailRequired ¶
func (*Settings) GetIsVerifiedPhoneRequired ¶
func (*Settings) GetLoginMechanisms ¶
func (*Settings) GetPasswordHashing ¶
func (x *Settings) GetPasswordHashing() *model.HashingConfig
func (*Settings) GetRefreshTokenTtl ¶
func (x *Settings) GetRefreshTokenTtl() *durationpb.Duration
func (*Settings) GetSendWelcomeMail ¶
func (*Settings) GetTemplates ¶
func (*Settings) GetTextProvider ¶
func (x *Settings) GetTextProvider() *TextProviderEntry
func (*Settings) GetVerificationCodeTtl ¶
func (x *Settings) GetVerificationCodeTtl() *durationpb.Duration
func (*Settings) ProtoMessage ¶
func (*Settings) ProtoMessage()
func (*Settings) ProtoReflect ¶
func (x *Settings) ProtoReflect() protoreflect.Message
type SmtpInstance ¶
type SmtpInstance struct { // Host of the smtp server. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // Port of the smtp server. Port int64 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
SMTP email provider instance.
func (*SmtpInstance) Descriptor
deprecated
func (*SmtpInstance) Descriptor() ([]byte, []int)
Deprecated: Use SmtpInstance.ProtoReflect.Descriptor instead.
func (*SmtpInstance) GetHost ¶
func (x *SmtpInstance) GetHost() string
func (*SmtpInstance) GetPort ¶
func (x *SmtpInstance) GetPort() int64
func (*SmtpInstance) ProtoMessage ¶
func (*SmtpInstance) ProtoMessage()
func (*SmtpInstance) ProtoReflect ¶
func (x *SmtpInstance) ProtoReflect() protoreflect.Message
func (*SmtpInstance) Reset ¶
func (x *SmtpInstance) Reset()
func (*SmtpInstance) String ¶
func (x *SmtpInstance) String() string
type Template ¶
type Template struct { // The body of the template. Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // The subject of the template. Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` // The type of the template. Type TemplateType `protobuf:"varint,3,opt,name=type,proto3,enum=api.v1.user.settings.TemplateType" json:"type,omitempty"` // The format of the template. Format []string `protobuf:"bytes,4,rep,name=format,proto3" json:"format,omitempty"` // contains filtered or unexported fields }
A generic template model for sending emails and texts.
func (*Template) Descriptor
deprecated
func (*Template) GetSubject ¶
func (*Template) GetType ¶
func (x *Template) GetType() TemplateType
func (*Template) ProtoMessage ¶
func (*Template) ProtoMessage()
func (*Template) ProtoReflect ¶
func (x *Template) ProtoReflect() protoreflect.Message
type TemplateType ¶
type TemplateType int32
The different template types.
const ( // Unspecified template type. TemplateType_TEMPLATE_TYPE_UNSPECIFIED TemplateType = 0 // The welcome email template. TemplateType_TEMPLATE_TYPE_WELCOME_EMAIL TemplateType = 1 // The email verification template. TemplateType_TEMPLATE_TYPE_EMAIL_VERIFICATION TemplateType = 2 // The reset password email template. TemplateType_TEMPLATE_TYPE_EMAIL_RESET_PASSWORD TemplateType = 3 TemplateType_TEMPLATE_TYPE_WELCOME_TEXT TemplateType = 4 // Deprecated: Text is not supported - The welcome text template. // Deprecated: Text is not supported - The text verification template. TemplateType_TEMPLATE_TYPE_TEXT_VERIFICATION TemplateType = 5 // Deprecated: Text is not supported - The reset password text template. TemplateType_TEMPLATE_TYPE_TEXT_RESET_PASSWORD TemplateType = 6 )
func (TemplateType) Descriptor ¶
func (TemplateType) Descriptor() protoreflect.EnumDescriptor
func (TemplateType) Enum ¶
func (x TemplateType) Enum() *TemplateType
func (TemplateType) EnumDescriptor
deprecated
func (TemplateType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TemplateType.Descriptor instead.
func (TemplateType) Number ¶
func (x TemplateType) Number() protoreflect.EnumNumber
func (TemplateType) String ¶
func (x TemplateType) String() string
func (TemplateType) Type ¶
func (TemplateType) Type() protoreflect.EnumType
type Templates ¶
type Templates struct { // The welcome email template. WelcomeEmail *Template `protobuf:"bytes,1,opt,name=welcome_email,json=welcomeEmail,proto3" json:"welcome_email,omitempty"` // Deprecated: Text is not supported - The welcome text template. WelcomeText *Template `protobuf:"bytes,2,opt,name=welcome_text,json=welcomeText,proto3" json:"welcome_text,omitempty"` // The reset password email template. ResetPasswordEmail *Template `protobuf:"bytes,3,opt,name=reset_password_email,json=resetPasswordEmail,proto3" json:"reset_password_email,omitempty"` // Deprecated: Text is not supported - The reset password text template. ResetPasswordText *Template `protobuf:"bytes,4,opt,name=reset_password_text,json=resetPasswordText,proto3" json:"reset_password_text,omitempty"` // The email verification template. VerifyEmail *Template `protobuf:"bytes,5,opt,name=verify_email,json=verifyEmail,proto3" json:"verify_email,omitempty"` // Deprecated: Text is not supported - The text verification template. VerifyPhoneNumber *Template `protobuf:"bytes,6,opt,name=verify_phone_number,json=verifyPhoneNumber,proto3" json:"verify_phone_number,omitempty"` // contains filtered or unexported fields }
func (*Templates) Descriptor
deprecated
func (*Templates) GetResetPasswordEmail ¶
func (*Templates) GetResetPasswordText ¶
func (*Templates) GetVerifyEmail ¶
func (*Templates) GetVerifyPhoneNumber ¶
func (*Templates) GetWelcomeEmail ¶
func (*Templates) GetWelcomeText ¶
func (*Templates) ProtoMessage ¶
func (*Templates) ProtoMessage()
func (*Templates) ProtoReflect ¶
func (x *Templates) ProtoReflect() protoreflect.Message
type TextInstance
deprecated
type TextInstance struct { // Types that are assignable to Instance: // // *TextInstance_Default // *TextInstance_Twilio Instance isTextInstance_Instance `protobuf_oneof:"instance"` // contains filtered or unexported fields }
Deprecated: Text is not supported - Type of text instance in a provider.
func (*TextInstance) Descriptor
deprecated
func (*TextInstance) Descriptor() ([]byte, []int)
Deprecated: Use TextInstance.ProtoReflect.Descriptor instead.
func (*TextInstance) GetDefault ¶
func (x *TextInstance) GetDefault() *DefaultInstance
func (*TextInstance) GetInstance ¶
func (m *TextInstance) GetInstance() isTextInstance_Instance
func (*TextInstance) GetTwilio ¶
func (x *TextInstance) GetTwilio() *TwilioInstance
func (*TextInstance) ProtoMessage ¶
func (*TextInstance) ProtoMessage()
func (*TextInstance) ProtoReflect ¶
func (x *TextInstance) ProtoReflect() protoreflect.Message
func (*TextInstance) Reset ¶
func (x *TextInstance) Reset()
func (*TextInstance) String ¶
func (x *TextInstance) String() string
type TextInstance_Default ¶
type TextInstance_Default struct { // default from platform config. Default *DefaultInstance `protobuf:"bytes,1,opt,name=default,proto3,oneof"` }
type TextInstance_Twilio ¶
type TextInstance_Twilio struct { // Twilio instance. Twilio *TwilioInstance `protobuf:"bytes,2,opt,name=twilio,proto3,oneof"` }
type TextProvider
deprecated
type TextProvider struct { // The phone number that the provider sends texts from. From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` // The credentials for the provider. Credentials *model.ProviderCredentials `protobuf:"bytes,2,opt,name=credentials,proto3" json:"credentials,omitempty"` Instance *TextInstance `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"` // The instance of the provider. // contains filtered or unexported fields }
Deprecated: Text is not supported - The text provider.
func (*TextProvider) Descriptor
deprecated
func (*TextProvider) Descriptor() ([]byte, []int)
Deprecated: Use TextProvider.ProtoReflect.Descriptor instead.
func (*TextProvider) GetCredentials ¶
func (x *TextProvider) GetCredentials() *model.ProviderCredentials
func (*TextProvider) GetFrom ¶
func (x *TextProvider) GetFrom() string
func (*TextProvider) GetInstance ¶
func (x *TextProvider) GetInstance() *TextInstance
func (*TextProvider) ProtoMessage ¶
func (*TextProvider) ProtoMessage()
func (*TextProvider) ProtoReflect ¶
func (x *TextProvider) ProtoReflect() protoreflect.Message
func (*TextProvider) Reset ¶
func (x *TextProvider) Reset()
func (*TextProvider) String ¶
func (x *TextProvider) String() string
type TextProviderEntry
deprecated
type TextProviderEntry struct { // The phone number that the provider sends texts from. From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` // The client id for the provider. ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // The secret id for the provider. SecretId string `protobuf:"bytes,3,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"` // The instance of the provider. Instance *TextInstance `protobuf:"bytes,4,opt,name=instance,proto3" json:"instance,omitempty"` // contains filtered or unexported fields }
Deprecated: Text is not supported - An entry model for the text provider.
func (*TextProviderEntry) Descriptor
deprecated
func (*TextProviderEntry) Descriptor() ([]byte, []int)
Deprecated: Use TextProviderEntry.ProtoReflect.Descriptor instead.
func (*TextProviderEntry) GetClientId ¶
func (x *TextProviderEntry) GetClientId() string
func (*TextProviderEntry) GetFrom ¶
func (x *TextProviderEntry) GetFrom() string
func (*TextProviderEntry) GetInstance ¶
func (x *TextProviderEntry) GetInstance() *TextInstance
func (*TextProviderEntry) GetSecretId ¶
func (x *TextProviderEntry) GetSecretId() string
func (*TextProviderEntry) ProtoMessage ¶
func (*TextProviderEntry) ProtoMessage()
func (*TextProviderEntry) ProtoReflect ¶
func (x *TextProviderEntry) ProtoReflect() protoreflect.Message
func (*TextProviderEntry) Reset ¶
func (x *TextProviderEntry) Reset()
func (*TextProviderEntry) String ¶
func (x *TextProviderEntry) String() string
type TwilioInstance
deprecated
type TwilioInstance struct {
// contains filtered or unexported fields
}
Deprecated: Text is not supported - Default text provider instance.
func (*TwilioInstance) Descriptor
deprecated
func (*TwilioInstance) Descriptor() ([]byte, []int)
Deprecated: Use TwilioInstance.ProtoReflect.Descriptor instead.
func (*TwilioInstance) ProtoMessage ¶
func (*TwilioInstance) ProtoMessage()
func (*TwilioInstance) ProtoReflect ¶
func (x *TwilioInstance) ProtoReflect() protoreflect.Message
func (*TwilioInstance) Reset ¶
func (x *TwilioInstance) Reset()
func (*TwilioInstance) String ¶
func (x *TwilioInstance) String() string
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) GetSettings ¶
func (UnimplementedServiceServer) GetSettings(context.Context, *GetSettingsRequest) (*GetSettingsResponse, error)
func (UnimplementedServiceServer) UpdateSettings ¶
func (UnimplementedServiceServer) UpdateSettings(context.Context, *UpdateSettingsRequest) (*UpdateSettingsResponse, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type Update ¶
type Update struct { // A oneof field for the different settings fields. // // Types that are assignable to Field: // // *Update_AllowRegister // *Update_IsVerifiedEmailRequired // *Update_IsVerifiedPhoneRequired // *Update_AccessTokenTtl // *Update_RefreshTokenTtl // *Update_VerificationCodeTtl // *Update_PasswordHashing // *Update_LoginMechanisms_ // *Update_EmailProvider // *Update_TextProvider // *Update_Template Field isUpdate_Field `protobuf_oneof:"field"` // contains filtered or unexported fields }
Update message for updating users settings.
func (*Update) Descriptor
deprecated
func (*Update) GetAccessTokenTtl ¶
func (x *Update) GetAccessTokenTtl() *durationpb.Duration
func (*Update) GetAllowRegister ¶
func (*Update) GetEmailProvider ¶
func (x *Update) GetEmailProvider() *EmailProvider
func (*Update) GetIsVerifiedEmailRequired ¶
func (*Update) GetIsVerifiedPhoneRequired ¶
func (*Update) GetLoginMechanisms ¶
func (x *Update) GetLoginMechanisms() *Update_LoginMechanisms
func (*Update) GetPasswordHashing ¶
func (x *Update) GetPasswordHashing() *model.HashingConfig
func (*Update) GetRefreshTokenTtl ¶
func (x *Update) GetRefreshTokenTtl() *durationpb.Duration
func (*Update) GetTemplate ¶
func (*Update) GetTextProvider ¶
func (x *Update) GetTextProvider() *TextProvider
func (*Update) GetVerificationCodeTtl ¶
func (x *Update) GetVerificationCodeTtl() *durationpb.Duration
func (*Update) ProtoMessage ¶
func (*Update) ProtoMessage()
func (*Update) ProtoReflect ¶
func (x *Update) ProtoReflect() protoreflect.Message
type UpdateSettingsRequest ¶
type UpdateSettingsRequest struct { // The updates to apply to the users settings. Settings []*Update `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty"` // contains filtered or unexported fields }
Request for updating users settings for the Rig project.
func (*UpdateSettingsRequest) Descriptor
deprecated
func (*UpdateSettingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSettingsRequest.ProtoReflect.Descriptor instead.
func (*UpdateSettingsRequest) GetSettings ¶
func (x *UpdateSettingsRequest) GetSettings() []*Update
func (*UpdateSettingsRequest) ProtoMessage ¶
func (*UpdateSettingsRequest) ProtoMessage()
func (*UpdateSettingsRequest) ProtoReflect ¶
func (x *UpdateSettingsRequest) ProtoReflect() protoreflect.Message
func (*UpdateSettingsRequest) Reset ¶
func (x *UpdateSettingsRequest) Reset()
func (*UpdateSettingsRequest) String ¶
func (x *UpdateSettingsRequest) String() string
type UpdateSettingsResponse ¶
type UpdateSettingsResponse struct {
// contains filtered or unexported fields
}
Empty response for updating users settings for the Rig project.
func (*UpdateSettingsResponse) Descriptor
deprecated
func (*UpdateSettingsResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSettingsResponse.ProtoReflect.Descriptor instead.
func (*UpdateSettingsResponse) ProtoMessage ¶
func (*UpdateSettingsResponse) ProtoMessage()
func (*UpdateSettingsResponse) ProtoReflect ¶
func (x *UpdateSettingsResponse) ProtoReflect() protoreflect.Message
func (*UpdateSettingsResponse) Reset ¶
func (x *UpdateSettingsResponse) Reset()
func (*UpdateSettingsResponse) String ¶
func (x *UpdateSettingsResponse) String() string
type Update_AccessTokenTtl ¶
type Update_AccessTokenTtl struct { // Access token Time to Live. AccessTokenTtl *durationpb.Duration `protobuf:"bytes,4,opt,name=access_token_ttl,json=accessTokenTtl,proto3,oneof"` }
type Update_AllowRegister ¶
type Update_AllowRegister struct { // If true, users can self register. AllowRegister bool `protobuf:"varint,1,opt,name=allow_register,json=allowRegister,proto3,oneof"` }
type Update_EmailProvider ¶
type Update_EmailProvider struct { // The email provider. EmailProvider *EmailProvider `protobuf:"bytes,9,opt,name=email_provider,json=emailProvider,proto3,oneof"` }
type Update_IsVerifiedEmailRequired ¶
type Update_IsVerifiedEmailRequired struct { // If true, users must be verified via email to login. IsVerifiedEmailRequired bool `protobuf:"varint,2,opt,name=is_verified_email_required,json=isVerifiedEmailRequired,proto3,oneof"` }
type Update_IsVerifiedPhoneRequired ¶
type Update_IsVerifiedPhoneRequired struct { // If true, users must be verified via phone to login. IsVerifiedPhoneRequired bool `protobuf:"varint,3,opt,name=is_verified_phone_required,json=isVerifiedPhoneRequired,proto3,oneof"` }
type Update_LoginMechanisms ¶
type Update_LoginMechanisms struct { LoginMechanisms []model.LoginType `` /* 135-byte string literal not displayed */ // contains filtered or unexported fields }
The allowed login mechanisms
func (*Update_LoginMechanisms) Descriptor
deprecated
func (*Update_LoginMechanisms) Descriptor() ([]byte, []int)
Deprecated: Use Update_LoginMechanisms.ProtoReflect.Descriptor instead.
func (*Update_LoginMechanisms) GetLoginMechanisms ¶
func (x *Update_LoginMechanisms) GetLoginMechanisms() []model.LoginType
func (*Update_LoginMechanisms) ProtoMessage ¶
func (*Update_LoginMechanisms) ProtoMessage()
func (*Update_LoginMechanisms) ProtoReflect ¶
func (x *Update_LoginMechanisms) ProtoReflect() protoreflect.Message
func (*Update_LoginMechanisms) Reset ¶
func (x *Update_LoginMechanisms) Reset()
func (*Update_LoginMechanisms) String ¶
func (x *Update_LoginMechanisms) String() string
type Update_LoginMechanisms_ ¶
type Update_LoginMechanisms_ struct { // The allowed login mechanisms. LoginMechanisms *Update_LoginMechanisms `protobuf:"bytes,8,opt,name=login_mechanisms,json=loginMechanisms,proto3,oneof"` }
type Update_PasswordHashing ¶
type Update_PasswordHashing struct { // The hashing config used to hash passwords. PasswordHashing *model.HashingConfig `protobuf:"bytes,7,opt,name=password_hashing,json=passwordHashing,proto3,oneof"` }
type Update_RefreshTokenTtl ¶
type Update_RefreshTokenTtl struct { // Refresh token Time to Live. RefreshTokenTtl *durationpb.Duration `protobuf:"bytes,5,opt,name=refresh_token_ttl,json=refreshTokenTtl,proto3,oneof"` }
type Update_Template ¶
type Update_Template struct { // The templates used for sending emails and texts. Template *Template `protobuf:"bytes,11,opt,name=template,proto3,oneof"` }
type Update_TextProvider ¶
type Update_TextProvider struct { // The text provider. TextProvider *TextProvider `protobuf:"bytes,10,opt,name=text_provider,json=textProvider,proto3,oneof"` }
type Update_VerificationCodeTtl ¶
type Update_VerificationCodeTtl struct { // Verification code Time to Live. VerificationCodeTtl *durationpb.Duration `protobuf:"bytes,6,opt,name=verification_code_ttl,json=verificationCodeTtl,proto3,oneof"` }