policy

package
v2.38.2-0...-94d1eb7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CustomTextSetEventType             = customTextPrefix + "set"
	CustomTextRemovedEventType         = customTextPrefix + "removed"
	CustomTextTemplateRemovedEventType = customTextPrefix + "template.removed"
)
View Source
const (
	LabelPolicyAddedEventType     = "policy.label.added"
	LabelPolicyChangedEventType   = "policy.label.changed"
	LabelPolicyActivatedEventType = "policy.label.activated"

	LabelPolicyLogoAddedEventType   = "policy.label.logo.added"
	LabelPolicyLogoRemovedEventType = "policy.label.logo.removed"
	LabelPolicyIconAddedEventType   = "policy.label.icon.added"
	LabelPolicyIconRemovedEventType = "policy.label.icon.removed"

	LabelPolicyLogoDarkAddedEventType   = "policy.label.logo.dark.added"
	LabelPolicyLogoDarkRemovedEventType = "policy.label.logo.dark.removed"
	LabelPolicyIconDarkAddedEventType   = "policy.label.icon.dark.added"
	LabelPolicyIconDarkRemovedEventType = "policy.label.icon.dark.removed"

	LabelPolicyFontAddedEventType   = "policy.label.font.added"
	LabelPolicyFontRemovedEventType = "policy.label.font.removed"

	LabelPolicyAssetsRemovedEventType = "policy.label.assets.removed"

	LabelPolicyRemovedEventType = "policy.label.removed"
)
View Source
const (
	LoginPolicyAddedEventType   = loginPolicyPrefix + "added"
	LoginPolicyChangedEventType = loginPolicyPrefix + "changed"
	LoginPolicyRemovedEventType = loginPolicyPrefix + "removed"
)
View Source
const (
	MailTemplatePolicyAddedEventType   = mailTemplatePolicyPrefix + "added"
	MailTemplatePolicyChangedEventType = mailTemplatePolicyPrefix + "changed"
	MailTemplatePolicyRemovedEventType = mailTemplatePolicyPrefix + "removed"
)
View Source
const (
	UniqueMailText = "mail_text"

	MailTextPolicyAddedEventType   = mailTextPolicyPrefix + "added"
	MailTextPolicyChangedEventType = mailTextPolicyPrefix + "changed"
	MailTextPolicyRemovedEventType = mailTextPolicyPrefix + "removed"
)
View Source
const (
	DomainPolicyAddedEventType   = "policy.domain.added"
	DomainPolicyChangedEventType = "policy.domain.changed"
	DomainPolicyRemovedEventType = "policy.domain.removed"
)
View Source
const (
	LoginPolicySecondFactorAddedEventType   = loginPolicySecondFactorPrefix + "added"
	LoginPolicySecondFactorRemovedEventType = loginPolicySecondFactorPrefix + "removed"

	LoginPolicyMultiFactorAddedEventType   = loginPolicyMultiFactorPrefix + "added"
	LoginPolicyMultiFactorRemovedEventType = loginPolicyMultiFactorPrefix + "removed"
)
View Source
const (
	LoginPolicyIDPProviderAddedType          = loginPolicyIDPProviderPrevix + "added"
	LoginPolicyIDPProviderRemovedType        = loginPolicyIDPProviderPrevix + "removed"
	LoginPolicyIDPProviderCascadeRemovedType = loginPolicyIDPProviderPrevix + "cascade.removed"
)
View Source
const (
	NotificationPolicyAddedEventType   = "policy.notification.added"
	NotificationPolicyChangedEventType = "policy.notification.changed"
	NotificationPolicyRemovedEventType = "policy.notification.removed"
)
View Source
const (
	PasswordAgePolicyAddedEventType   = "policy.password.age.added"
	PasswordAgePolicyChangedEventType = "policy.password.age.changed"
	PasswordAgePolicyRemovedEventType = "policy.password.age.removed"
)
View Source
const (
	PasswordComplexityPolicyAddedEventType   = "policy.password.complexity.added"
	PasswordComplexityPolicyChangedEventType = "policy.password.complexity.changed"
	PasswordComplexityPolicyRemovedEventType = "policy.password.complexity.removed"
)
View Source
const (
	LockoutPolicyAddedEventType   = "policy.lockout.added"
	LockoutPolicyChangedEventType = "policy.lockout.changed"
	LockoutPolicyRemovedEventType = "policy.lockout.removed"
)
View Source
const (
	PrivacyPolicyAddedEventType   = "policy.privacy.added"
	PrivacyPolicyChangedEventType = "policy.privacy.changed"
	PrivacyPolicyRemovedEventType = "policy.privacy.removed"
)

Variables

This section is empty.

Functions

func ChangeAllowDomainDiscovery

func ChangeAllowDomainDiscovery(allowDomainDiscovery bool) func(*LoginPolicyChangedEvent)

func ChangeAllowExternalIDP

func ChangeAllowExternalIDP(allowExternalIDP bool) func(*LoginPolicyChangedEvent)

func ChangeAllowRegister

func ChangeAllowRegister(allowRegister bool) func(*LoginPolicyChangedEvent)

func ChangeAllowUserNamePassword

func ChangeAllowUserNamePassword(allowUserNamePassword bool) func(*LoginPolicyChangedEvent)

func ChangeBackgroundColor

func ChangeBackgroundColor(background string) func(*LabelPolicyChangedEvent)

func ChangeBackgroundColorDark

func ChangeBackgroundColorDark(backgroundColorDark string) func(*LabelPolicyChangedEvent)

func ChangeButtonText

func ChangeButtonText(buttonText string) func(*MailTextChangedEvent)
func ChangeCustomLink(customLink string) func(*PrivacyPolicyChangedEvent)

func ChangeCustomLinkText

func ChangeCustomLinkText(customLinkText string) func(*PrivacyPolicyChangedEvent)

func ChangeDefaultRedirectURI

func ChangeDefaultRedirectURI(defaultRedirectURI string) func(*LoginPolicyChangedEvent)

func ChangeDisableLoginWithEmail

func ChangeDisableLoginWithEmail(disableLoginWithEmail bool) func(*LoginPolicyChangedEvent)

func ChangeDisableLoginWithPhone

func ChangeDisableLoginWithPhone(DisableLoginWithPhone bool) func(*LoginPolicyChangedEvent)

func ChangeDisableWatermark

func ChangeDisableWatermark(disableWatermark bool) func(*LabelPolicyChangedEvent)
func ChangeDocsLink(docsLink string) func(*PrivacyPolicyChangedEvent)

func ChangeErrorMsgPopup

func ChangeErrorMsgPopup(errMsgPopup bool) func(*LabelPolicyChangedEvent)

func ChangeExpireWarnDays

func ChangeExpireWarnDays(expireWarnDay uint64) func(*PasswordAgePolicyChangedEvent)

func ChangeExternalLoginCheckLifetime

func ChangeExternalLoginCheckLifetime(externalLoginCheckLifetime time.Duration) func(*LoginPolicyChangedEvent)

func ChangeFontColor

func ChangeFontColor(fontColor string) func(*LabelPolicyChangedEvent)

func ChangeFontColorDark

func ChangeFontColorDark(fontColorDark string) func(*LabelPolicyChangedEvent)

func ChangeForceMFA

func ChangeForceMFA(forceMFA bool) func(*LoginPolicyChangedEvent)

func ChangeForceMFALocalOnly

func ChangeForceMFALocalOnly(forceMFALocalOnly bool) func(*LoginPolicyChangedEvent)

func ChangeGreeting

func ChangeGreeting(greeting string) func(*MailTextChangedEvent)

func ChangeHasLowercase

func ChangeHasLowercase(hasLowercase bool) func(*PasswordComplexityPolicyChangedEvent)

func ChangeHasNumber

func ChangeHasNumber(hasNumber bool) func(*PasswordComplexityPolicyChangedEvent)

func ChangeHasSymbol

func ChangeHasSymbol(hasSymbol bool) func(*PasswordComplexityPolicyChangedEvent)

func ChangeHasUppercase

func ChangeHasUppercase(hasUppercase bool) func(*PasswordComplexityPolicyChangedEvent)
func ChangeHelpLink(helpLink string) func(*PrivacyPolicyChangedEvent)

func ChangeHideLoginNameSuffix

func ChangeHideLoginNameSuffix(hideLoginNameSuffix bool) func(*LabelPolicyChangedEvent)

func ChangeHidePasswordReset

func ChangeHidePasswordReset(hidePasswordReset bool) func(*LoginPolicyChangedEvent)

func ChangeIgnoreUnknownUsernames

func ChangeIgnoreUnknownUsernames(ignoreUnknownUsernames bool) func(*LoginPolicyChangedEvent)

func ChangeMFAInitSkipLifetime

func ChangeMFAInitSkipLifetime(mfaInitSkipLifetime time.Duration) func(*LoginPolicyChangedEvent)

func ChangeMaxAgeDays

func ChangeMaxAgeDays(maxAgeDays uint64) func(*PasswordAgePolicyChangedEvent)

func ChangeMaxOTPAttempts

func ChangeMaxOTPAttempts(maxAttempts uint64) func(*LockoutPolicyChangedEvent)

func ChangeMaxPasswordAttempts

func ChangeMaxPasswordAttempts(maxAttempts uint64) func(*LockoutPolicyChangedEvent)

func ChangeMinLength

func ChangeMinLength(minLength uint64) func(*PasswordComplexityPolicyChangedEvent)

func ChangeMultiFactorCheckLifetime

func ChangeMultiFactorCheckLifetime(multiFactorCheckLifetime time.Duration) func(*LoginPolicyChangedEvent)

func ChangePasswordChange

func ChangePasswordChange(passwordChange bool) func(*NotificationPolicyChangedEvent)

func ChangePasswordCheckLifetime

func ChangePasswordCheckLifetime(passwordCheckLifetime time.Duration) func(*LoginPolicyChangedEvent)

func ChangePasswordlessType

func ChangePasswordlessType(passwordlessType domain.PasswordlessType) func(*LoginPolicyChangedEvent)

func ChangePreHeader

func ChangePreHeader(preHeader string) func(*MailTextChangedEvent)

func ChangePrimaryColor

func ChangePrimaryColor(primaryColor string) func(*LabelPolicyChangedEvent)

func ChangePrimaryColorDark

func ChangePrimaryColorDark(primaryColorDark string) func(*LabelPolicyChangedEvent)
func ChangePrivacyLink(privacyLink string) func(*PrivacyPolicyChangedEvent)

func ChangeSMTPSenderAddressMatchesInstanceDomain

func ChangeSMTPSenderAddressMatchesInstanceDomain(smtpSenderAddressMatchesInstanceDomain bool) func(*DomainPolicyChangedEvent)

func ChangeSecondFactorCheckLifetime

func ChangeSecondFactorCheckLifetime(secondFactorCheckLifetime time.Duration) func(*LoginPolicyChangedEvent)

func ChangeShowLockOutFailures

func ChangeShowLockOutFailures(showLockOutFailures bool) func(*LockoutPolicyChangedEvent)

func ChangeSubject

func ChangeSubject(greeting string) func(*MailTextChangedEvent)

func ChangeSupportEmail

func ChangeSupportEmail(supportEmail domain.EmailAddress) func(*PrivacyPolicyChangedEvent)
func ChangeTOSLink(tosLink string) func(*PrivacyPolicyChangedEvent)

func ChangeTemplate

func ChangeTemplate(template []byte) func(*MailTemplateChangedEvent)

func ChangeText

func ChangeText(text string) func(*MailTextChangedEvent)

func ChangeThemeMode

func ChangeThemeMode(themeMode domain.LabelPolicyThemeMode) func(*LabelPolicyChangedEvent)

func ChangeTitle

func ChangeTitle(title string) func(*MailTextChangedEvent)

func ChangeUserLoginMustBeDomain

func ChangeUserLoginMustBeDomain(userLoginMustBeDomain bool) func(*DomainPolicyChangedEvent)

func ChangeValidateOrgDomains

func ChangeValidateOrgDomains(validateOrgDomain bool) func(*DomainPolicyChangedEvent)

func ChangeWarnColor

func ChangeWarnColor(warnColor string) func(*LabelPolicyChangedEvent)

func ChangeWarnColorDark

func ChangeWarnColorDark(warnColorDark string) func(*LabelPolicyChangedEvent)

func CustomTextRemovedEventMapper

func CustomTextRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func CustomTextSetEventMapper

func CustomTextSetEventMapper(event eventstore.Event) (eventstore.Event, error)

func CustomTextTemplateRemovedEventMapper

func CustomTextTemplateRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func DomainPolicyAddedEventMapper

func DomainPolicyAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func DomainPolicyChangedEventMapper

func DomainPolicyChangedEventMapper(event eventstore.Event) (eventstore.Event, error)

func DomainPolicyRemovedEventMapper

func DomainPolicyRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func IdentityProviderAddedEventMapper

func IdentityProviderAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func IdentityProviderCascadeRemovedEventMapper

func IdentityProviderCascadeRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func IdentityProviderRemovedEventMapper

func IdentityProviderRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyActivatedEventMapper

func LabelPolicyActivatedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyAddedEventMapper

func LabelPolicyAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyAssetsRemovedEventMapper

func LabelPolicyAssetsRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyChangedEventMapper

func LabelPolicyChangedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyFontAddedEventMapper

func LabelPolicyFontAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyFontRemovedEventMapper

func LabelPolicyFontRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyIconAddedEventMapper

func LabelPolicyIconAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyIconDarkAddedEventMapper

func LabelPolicyIconDarkAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyIconDarkRemovedEventMapper

func LabelPolicyIconDarkRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyIconRemovedEventMapper

func LabelPolicyIconRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyLogoAddedEventMapper

func LabelPolicyLogoAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyLogoDarkAddedEventMapper

func LabelPolicyLogoDarkAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyLogoDarkRemovedEventMapper

func LabelPolicyLogoDarkRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyLogoRemovedEventMapper

func LabelPolicyLogoRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LabelPolicyRemovedEventMapper

func LabelPolicyRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LockoutPolicyAddedEventMapper

func LockoutPolicyAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LockoutPolicyChangedEventMapper

func LockoutPolicyChangedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LockoutPolicyRemovedEventMapper

func LockoutPolicyRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LoginPolicyAddedEventMapper

func LoginPolicyAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LoginPolicyChangedEventMapper

func LoginPolicyChangedEventMapper(event eventstore.Event) (eventstore.Event, error)

func LoginPolicyRemovedEventMapper

func LoginPolicyRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func MailTemplateAddedEventMapper

func MailTemplateAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func MailTemplateChangedEventMapper

func MailTemplateChangedEventMapper(event eventstore.Event) (eventstore.Event, error)

func MailTemplateRemovedEventMapper

func MailTemplateRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func MailTextAddedEventMapper

func MailTextAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func MailTextChangedEventMapper

func MailTextChangedEventMapper(event eventstore.Event) (eventstore.Event, error)

func MailTextRemovedEventMapper

func MailTextRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func MultiFactorAddedEventMapper

func MultiFactorAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func MultiFactorRemovedEventMapper

func MultiFactorRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func NewAddMailTextUniqueConstraint

func NewAddMailTextUniqueConstraint(aggregateID, mailTextType, langugage string) *eventstore.UniqueConstraint

func NewRemoveMailTextUniqueConstraint

func NewRemoveMailTextUniqueConstraint(aggregateID, mailTextType, langugage string) *eventstore.UniqueConstraint

func NotificationPolicyAddedEventMapper

func NotificationPolicyAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func NotificationPolicyChangedEventMapper

func NotificationPolicyChangedEventMapper(event eventstore.Event) (eventstore.Event, error)

func NotificationPolicyRemovedEventMapper

func NotificationPolicyRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func PasswordAgePolicyAddedEventMapper

func PasswordAgePolicyAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func PasswordAgePolicyChangedEventMapper

func PasswordAgePolicyChangedEventMapper(event eventstore.Event) (eventstore.Event, error)

func PasswordAgePolicyRemovedEventMapper

func PasswordAgePolicyRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func PasswordComplexityPolicyAddedEventMapper

func PasswordComplexityPolicyAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func PasswordComplexityPolicyChangedEventMapper

func PasswordComplexityPolicyChangedEventMapper(event eventstore.Event) (eventstore.Event, error)

func PasswordComplexityPolicyRemovedEventMapper

func PasswordComplexityPolicyRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func PrivacyPolicyAddedEventMapper

func PrivacyPolicyAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func PrivacyPolicyChangedEventMapper

func PrivacyPolicyChangedEventMapper(event eventstore.Event) (eventstore.Event, error)

func PrivacyPolicyRemovedEventMapper

func PrivacyPolicyRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

func SecondFactorAddedEventMapper

func SecondFactorAddedEventMapper(event eventstore.Event) (eventstore.Event, error)

func SecondFactorRemovedEventMapper

func SecondFactorRemovedEventMapper(event eventstore.Event) (eventstore.Event, error)

Types

type CustomTextRemovedEvent

type CustomTextRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Template string       `json:"template,omitempty"`
	Key      string       `json:"key,omitempty"`
	Language language.Tag `json:"language,omitempty"`
}

func NewCustomTextRemovedEvent

func NewCustomTextRemovedEvent(base *eventstore.BaseEvent, template, key string, language language.Tag) *CustomTextRemovedEvent

func (*CustomTextRemovedEvent) Payload

func (e *CustomTextRemovedEvent) Payload() interface{}

func (*CustomTextRemovedEvent) UniqueConstraints

func (e *CustomTextRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type CustomTextSetEvent

type CustomTextSetEvent struct {
	eventstore.BaseEvent `json:"-"`

	Template string       `json:"template,omitempty"`
	Key      string       `json:"key,omitempty"`
	Language language.Tag `json:"language,omitempty"`
	Text     string       `json:"text,omitempty"`
}

func NewCustomTextSetEvent

func NewCustomTextSetEvent(
	base *eventstore.BaseEvent,
	template,
	key,
	text string,
	language language.Tag,
) *CustomTextSetEvent

func (*CustomTextSetEvent) Payload

func (e *CustomTextSetEvent) Payload() interface{}

func (*CustomTextSetEvent) UniqueConstraints

func (e *CustomTextSetEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type CustomTextTemplateRemovedEvent

type CustomTextTemplateRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Template string       `json:"template,omitempty"`
	Language language.Tag `json:"language,omitempty"`
}

func NewCustomTextTemplateRemovedEvent

func NewCustomTextTemplateRemovedEvent(base *eventstore.BaseEvent, template string, language language.Tag) *CustomTextTemplateRemovedEvent

func (*CustomTextTemplateRemovedEvent) Payload

func (e *CustomTextTemplateRemovedEvent) Payload() interface{}

func (*CustomTextTemplateRemovedEvent) UniqueConstraints

type DomainPolicyAddedEvent

type DomainPolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	UserLoginMustBeDomain                  bool `json:"userLoginMustBeDomain,omitempty"`
	ValidateOrgDomains                     bool `json:"validateOrgDomains,omitempty"`
	SMTPSenderAddressMatchesInstanceDomain bool `json:"smtpSenderAddressMatchesInstanceDomain,omitempty"`
}

func NewDomainPolicyAddedEvent

func NewDomainPolicyAddedEvent(
	base *eventstore.BaseEvent,
	userLoginMustBeDomain,
	validateOrgDomains,
	smtpSenderAddressMatchesInstanceDomain bool,
) *DomainPolicyAddedEvent

func (*DomainPolicyAddedEvent) Payload

func (e *DomainPolicyAddedEvent) Payload() interface{}

func (*DomainPolicyAddedEvent) UniqueConstraints

func (e *DomainPolicyAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type DomainPolicyChangedEvent

type DomainPolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	UserLoginMustBeDomain                  *bool `json:"userLoginMustBeDomain,omitempty"`
	ValidateOrgDomains                     *bool `json:"validateOrgDomains,omitempty"`
	SMTPSenderAddressMatchesInstanceDomain *bool `json:"smtpSenderAddressMatchesInstanceDomain,omitempty"`
}

func NewDomainPolicyChangedEvent

func NewDomainPolicyChangedEvent(
	base *eventstore.BaseEvent,
	changes []DomainPolicyChanges,
) (*DomainPolicyChangedEvent, error)

func (*DomainPolicyChangedEvent) Payload

func (e *DomainPolicyChangedEvent) Payload() interface{}

func (*DomainPolicyChangedEvent) UniqueConstraints

func (e *DomainPolicyChangedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type DomainPolicyChanges

type DomainPolicyChanges func(*DomainPolicyChangedEvent)

type DomainPolicyRemovedEvent

type DomainPolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewDomainPolicyRemovedEvent

func NewDomainPolicyRemovedEvent(base *eventstore.BaseEvent) *DomainPolicyRemovedEvent

func (*DomainPolicyRemovedEvent) Payload

func (e *DomainPolicyRemovedEvent) Payload() interface{}

func (*DomainPolicyRemovedEvent) UniqueConstraints

func (e *DomainPolicyRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type IdentityProviderAddedEvent

type IdentityProviderAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	IDPConfigID     string                      `json:"idpConfigId,omitempty"`
	IDPProviderType domain.IdentityProviderType `json:"idpProviderType,omitempty"`
}

func NewIdentityProviderAddedEvent

func NewIdentityProviderAddedEvent(
	base *eventstore.BaseEvent,
	idpConfigID string,
	idpProviderType domain.IdentityProviderType,
) *IdentityProviderAddedEvent

func (*IdentityProviderAddedEvent) Payload

func (e *IdentityProviderAddedEvent) Payload() interface{}

func (*IdentityProviderAddedEvent) UniqueConstraints

func (e *IdentityProviderAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type IdentityProviderCascadeRemovedEvent

type IdentityProviderCascadeRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	IDPConfigID string `json:"idpConfigId"`
}

func NewIdentityProviderCascadeRemovedEvent

func NewIdentityProviderCascadeRemovedEvent(
	base *eventstore.BaseEvent,
	idpConfigID string,
) *IdentityProviderCascadeRemovedEvent

func (*IdentityProviderCascadeRemovedEvent) Payload

func (e *IdentityProviderCascadeRemovedEvent) Payload() interface{}

func (*IdentityProviderCascadeRemovedEvent) UniqueConstraints

type IdentityProviderRemovedEvent

type IdentityProviderRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	IDPConfigID string `json:"idpConfigId"`
}

func NewIdentityProviderRemovedEvent

func NewIdentityProviderRemovedEvent(
	base *eventstore.BaseEvent,
	idpConfigID string,
) *IdentityProviderRemovedEvent

func (*IdentityProviderRemovedEvent) Payload

func (e *IdentityProviderRemovedEvent) Payload() interface{}

func (*IdentityProviderRemovedEvent) UniqueConstraints

func (e *IdentityProviderRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LabelPolicyActivatedEvent

type LabelPolicyActivatedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewLabelPolicyActivatedEvent

func NewLabelPolicyActivatedEvent(base *eventstore.BaseEvent) *LabelPolicyActivatedEvent

func (*LabelPolicyActivatedEvent) Payload

func (e *LabelPolicyActivatedEvent) Payload() interface{}

func (*LabelPolicyActivatedEvent) UniqueConstraints

func (e *LabelPolicyActivatedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LabelPolicyAddedEvent

type LabelPolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	PrimaryColor        string                      `json:"primaryColor,omitempty"`
	BackgroundColor     string                      `json:"backgroundColor,omitempty"`
	WarnColor           string                      `json:"warnColor,omitempty"`
	FontColor           string                      `json:"fontColor,omitempty"`
	PrimaryColorDark    string                      `json:"primaryColorDark,omitempty"`
	BackgroundColorDark string                      `json:"backgroundColorDark,omitempty"`
	WarnColorDark       string                      `json:"warnColorDark,omitempty"`
	FontColorDark       string                      `json:"fontColorDark,omitempty"`
	HideLoginNameSuffix bool                        `json:"hideLoginNameSuffix,omitempty"`
	ErrorMsgPopup       bool                        `json:"errorMsgPopup,omitempty"`
	DisableWatermark    bool                        `json:"disableMsgPopup,omitempty"`
	ThemeMode           domain.LabelPolicyThemeMode `json:"themeMode,omitempty"`
}

func NewLabelPolicyAddedEvent

func NewLabelPolicyAddedEvent(
	base *eventstore.BaseEvent,
	primaryColor,
	backgroundColor,
	warnColor,
	fontColor,
	primaryColorDark,
	backgroundColorDark,
	warnColorDark,
	fontColorDark string,
	hideLoginNameSuffix,
	errorMsgPopup,
	disableWatermark bool,
	themeMode domain.LabelPolicyThemeMode,
) *LabelPolicyAddedEvent

func (*LabelPolicyAddedEvent) Payload

func (e *LabelPolicyAddedEvent) Payload() interface{}

func (*LabelPolicyAddedEvent) UniqueConstraints

func (e *LabelPolicyAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LabelPolicyAssetsRemovedEvent

type LabelPolicyAssetsRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewLabelPolicyAssetsRemovedEvent

func NewLabelPolicyAssetsRemovedEvent(base *eventstore.BaseEvent) *LabelPolicyAssetsRemovedEvent

func (*LabelPolicyAssetsRemovedEvent) Payload

func (e *LabelPolicyAssetsRemovedEvent) Payload() interface{}

func (*LabelPolicyAssetsRemovedEvent) UniqueConstraints

func (e *LabelPolicyAssetsRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LabelPolicyChangedEvent

type LabelPolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	PrimaryColor        *string                      `json:"primaryColor,omitempty"`
	BackgroundColor     *string                      `json:"backgroundColor,omitempty"`
	WarnColor           *string                      `json:"warnColor,omitempty"`
	FontColor           *string                      `json:"fontColor,omitempty"`
	PrimaryColorDark    *string                      `json:"primaryColorDark,omitempty"`
	BackgroundColorDark *string                      `json:"backgroundColorDark,omitempty"`
	WarnColorDark       *string                      `json:"warnColorDark,omitempty"`
	FontColorDark       *string                      `json:"fontColorDark,omitempty"`
	HideLoginNameSuffix *bool                        `json:"hideLoginNameSuffix,omitempty"`
	ErrorMsgPopup       *bool                        `json:"errorMsgPopup,omitempty"`
	DisableWatermark    *bool                        `json:"disableWatermark,omitempty"`
	ThemeMode           *domain.LabelPolicyThemeMode `json:"themeMode,omitempty"`
}

func NewLabelPolicyChangedEvent

func NewLabelPolicyChangedEvent(
	base *eventstore.BaseEvent,
	changes []LabelPolicyChanges,
) (*LabelPolicyChangedEvent, error)

func (*LabelPolicyChangedEvent) Payload

func (e *LabelPolicyChangedEvent) Payload() interface{}

func (*LabelPolicyChangedEvent) UniqueConstraints

func (e *LabelPolicyChangedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LabelPolicyChanges

type LabelPolicyChanges func(*LabelPolicyChangedEvent)

type LabelPolicyFontAddedEvent

type LabelPolicyFontAddedEvent struct {
	asset.AddedEvent
}

func NewLabelPolicyFontAddedEvent

func NewLabelPolicyFontAddedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyFontAddedEvent

func (*LabelPolicyFontAddedEvent) Payload

func (e *LabelPolicyFontAddedEvent) Payload() interface{}

func (*LabelPolicyFontAddedEvent) UniqueConstraints

func (e *LabelPolicyFontAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LabelPolicyFontRemovedEvent

type LabelPolicyFontRemovedEvent struct {
	asset.RemovedEvent
}

func NewLabelPolicyFontRemovedEvent

func NewLabelPolicyFontRemovedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyFontRemovedEvent

func (*LabelPolicyFontRemovedEvent) Payload

func (e *LabelPolicyFontRemovedEvent) Payload() interface{}

func (*LabelPolicyFontRemovedEvent) UniqueConstraints

func (e *LabelPolicyFontRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LabelPolicyIconAddedEvent

type LabelPolicyIconAddedEvent struct {
	asset.AddedEvent
}

func NewLabelPolicyIconAddedEvent

func NewLabelPolicyIconAddedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyIconAddedEvent

func (*LabelPolicyIconAddedEvent) Payload

func (e *LabelPolicyIconAddedEvent) Payload() interface{}

func (*LabelPolicyIconAddedEvent) UniqueConstraints

func (e *LabelPolicyIconAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LabelPolicyIconDarkAddedEvent

type LabelPolicyIconDarkAddedEvent struct {
	asset.AddedEvent
}

func NewLabelPolicyIconDarkAddedEvent

func NewLabelPolicyIconDarkAddedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyIconDarkAddedEvent

func (*LabelPolicyIconDarkAddedEvent) Payload

func (e *LabelPolicyIconDarkAddedEvent) Payload() interface{}

func (*LabelPolicyIconDarkAddedEvent) UniqueConstraints

func (e *LabelPolicyIconDarkAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LabelPolicyIconDarkRemovedEvent

type LabelPolicyIconDarkRemovedEvent struct {
	asset.RemovedEvent
}

func NewLabelPolicyIconDarkRemovedEvent

func NewLabelPolicyIconDarkRemovedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyIconDarkRemovedEvent

func (*LabelPolicyIconDarkRemovedEvent) Payload

func (e *LabelPolicyIconDarkRemovedEvent) Payload() interface{}

func (*LabelPolicyIconDarkRemovedEvent) UniqueConstraints

type LabelPolicyIconRemovedEvent

type LabelPolicyIconRemovedEvent struct {
	asset.RemovedEvent
}

func NewLabelPolicyIconRemovedEvent

func NewLabelPolicyIconRemovedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyIconRemovedEvent

func (*LabelPolicyIconRemovedEvent) Payload

func (e *LabelPolicyIconRemovedEvent) Payload() interface{}

func (*LabelPolicyIconRemovedEvent) UniqueConstraints

func (e *LabelPolicyIconRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LabelPolicyLogoAddedEvent

type LabelPolicyLogoAddedEvent struct {
	asset.AddedEvent
}

func NewLabelPolicyLogoAddedEvent

func NewLabelPolicyLogoAddedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyLogoAddedEvent

func (*LabelPolicyLogoAddedEvent) Payload

func (e *LabelPolicyLogoAddedEvent) Payload() interface{}

func (*LabelPolicyLogoAddedEvent) UniqueConstraints

func (e *LabelPolicyLogoAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LabelPolicyLogoDarkAddedEvent

type LabelPolicyLogoDarkAddedEvent struct {
	asset.AddedEvent
}

func NewLabelPolicyLogoDarkAddedEvent

func NewLabelPolicyLogoDarkAddedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyLogoDarkAddedEvent

func (*LabelPolicyLogoDarkAddedEvent) Payload

func (e *LabelPolicyLogoDarkAddedEvent) Payload() interface{}

func (*LabelPolicyLogoDarkAddedEvent) UniqueConstraints

func (e *LabelPolicyLogoDarkAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LabelPolicyLogoDarkRemovedEvent

type LabelPolicyLogoDarkRemovedEvent struct {
	asset.RemovedEvent
}

func NewLabelPolicyLogoDarkRemovedEvent

func NewLabelPolicyLogoDarkRemovedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyLogoDarkRemovedEvent

func (*LabelPolicyLogoDarkRemovedEvent) Payload

func (e *LabelPolicyLogoDarkRemovedEvent) Payload() interface{}

func (*LabelPolicyLogoDarkRemovedEvent) UniqueConstraints

type LabelPolicyLogoRemovedEvent

type LabelPolicyLogoRemovedEvent struct {
	asset.RemovedEvent
}

func NewLabelPolicyLogoRemovedEvent

func NewLabelPolicyLogoRemovedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyLogoRemovedEvent

func (*LabelPolicyLogoRemovedEvent) Payload

func (e *LabelPolicyLogoRemovedEvent) Payload() interface{}

func (*LabelPolicyLogoRemovedEvent) UniqueConstraints

func (e *LabelPolicyLogoRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LabelPolicyRemovedEvent

type LabelPolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewLabelPolicyRemovedEvent

func NewLabelPolicyRemovedEvent(base *eventstore.BaseEvent) *LabelPolicyRemovedEvent

func (*LabelPolicyRemovedEvent) Payload

func (e *LabelPolicyRemovedEvent) Payload() interface{}

func (*LabelPolicyRemovedEvent) UniqueConstraints

func (e *LabelPolicyRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LockoutPolicyAddedEvent

type LockoutPolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MaxPasswordAttempts uint64 `json:"maxPasswordAttempts,omitempty"`
	MaxOTPAttempts      uint64 `json:"maxOTPAttempts,omitempty"`
	ShowLockOutFailures bool   `json:"showLockOutFailures,omitempty"`
}

func NewLockoutPolicyAddedEvent

func NewLockoutPolicyAddedEvent(
	base *eventstore.BaseEvent,
	maxPasswordAttempts,
	maxOTPAttempts uint64,
	showLockOutFailures bool,
) *LockoutPolicyAddedEvent

func (*LockoutPolicyAddedEvent) Payload

func (e *LockoutPolicyAddedEvent) Payload() interface{}

func (*LockoutPolicyAddedEvent) UniqueConstraints

func (e *LockoutPolicyAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LockoutPolicyChangedEvent

type LockoutPolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MaxPasswordAttempts *uint64 `json:"maxPasswordAttempts,omitempty"`
	MaxOTPAttempts      *uint64 `json:"maxOTPAttempts,omitempty"`
	ShowLockOutFailures *bool   `json:"showLockOutFailures,omitempty"`
}

func NewLockoutPolicyChangedEvent

func NewLockoutPolicyChangedEvent(
	base *eventstore.BaseEvent,
	changes []LockoutPolicyChanges,
) (*LockoutPolicyChangedEvent, error)

func (*LockoutPolicyChangedEvent) Payload

func (e *LockoutPolicyChangedEvent) Payload() interface{}

func (*LockoutPolicyChangedEvent) UniqueConstraints

func (e *LockoutPolicyChangedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LockoutPolicyChanges

type LockoutPolicyChanges func(*LockoutPolicyChangedEvent)

type LockoutPolicyRemovedEvent

type LockoutPolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewLockoutPolicyRemovedEvent

func NewLockoutPolicyRemovedEvent(base *eventstore.BaseEvent) *LockoutPolicyRemovedEvent

func (*LockoutPolicyRemovedEvent) Payload

func (e *LockoutPolicyRemovedEvent) Payload() interface{}

func (*LockoutPolicyRemovedEvent) UniqueConstraints

func (e *LockoutPolicyRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LoginPolicyAddedEvent

type LoginPolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	AllowUserNamePassword      bool                    `json:"allowUsernamePassword,omitempty"`
	AllowRegister              bool                    `json:"allowRegister,omitempty"`
	AllowExternalIDP           bool                    `json:"allowExternalIdp,omitempty"`
	ForceMFA                   bool                    `json:"forceMFA,omitempty"`
	ForceMFALocalOnly          bool                    `json:"forceMFALocalOnly,omitempty"`
	HidePasswordReset          bool                    `json:"hidePasswordReset,omitempty"`
	IgnoreUnknownUsernames     bool                    `json:"ignoreUnknownUsernames,omitempty"`
	AllowDomainDiscovery       bool                    `json:"allowDomainDiscovery,omitempty"`
	DisableLoginWithEmail      bool                    `json:"disableLoginWithEmail,omitempty"`
	DisableLoginWithPhone      bool                    `json:"disableLoginWithPhone,omitempty"`
	PasswordlessType           domain.PasswordlessType `json:"passwordlessType,omitempty"`
	DefaultRedirectURI         string                  `json:"defaultRedirectURI,omitempty"`
	PasswordCheckLifetime      time.Duration           `json:"passwordCheckLifetime,omitempty"`
	ExternalLoginCheckLifetime time.Duration           `json:"externalLoginCheckLifetime,omitempty"`
	MFAInitSkipLifetime        time.Duration           `json:"mfaInitSkipLifetime,omitempty"`
	SecondFactorCheckLifetime  time.Duration           `json:"secondFactorCheckLifetime,omitempty"`
	MultiFactorCheckLifetime   time.Duration           `json:"multiFactorCheckLifetime,omitempty"`
}

func NewLoginPolicyAddedEvent

func NewLoginPolicyAddedEvent(
	base *eventstore.BaseEvent,
	allowUserNamePassword,
	allowRegister,
	allowExternalIDP,
	forceMFA,
	forceMFALocalOnly,
	hidePasswordReset,
	ignoreUnknownUsernames,
	allowDomainDiscovery,
	disableLoginWithEmail,
	disableLoginWithPhone bool,
	passwordlessType domain.PasswordlessType,
	defaultRedirectURI string,
	passwordCheckLifetime,
	externalLoginCheckLifetime,
	mfaInitSkipLifetime,
	secondFactorCheckLifetime,
	multiFactorCheckLifetime time.Duration,
) *LoginPolicyAddedEvent

func (*LoginPolicyAddedEvent) Payload

func (e *LoginPolicyAddedEvent) Payload() interface{}

func (*LoginPolicyAddedEvent) UniqueConstraints

func (e *LoginPolicyAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LoginPolicyChangedEvent

type LoginPolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	AllowUserNamePassword      *bool                    `json:"allowUsernamePassword,omitempty"`
	AllowRegister              *bool                    `json:"allowRegister,omitempty"`
	AllowExternalIDP           *bool                    `json:"allowExternalIdp,omitempty"`
	ForceMFA                   *bool                    `json:"forceMFA,omitempty"`
	ForceMFALocalOnly          *bool                    `json:"forceMFALocalOnly,omitempty"`
	HidePasswordReset          *bool                    `json:"hidePasswordReset,omitempty"`
	IgnoreUnknownUsernames     *bool                    `json:"ignoreUnknownUsernames,omitempty"`
	AllowDomainDiscovery       *bool                    `json:"allowDomainDiscovery,omitempty"`
	DisableLoginWithEmail      *bool                    `json:"disableLoginWithEmail,omitempty"`
	DisableLoginWithPhone      *bool                    `json:"disableLoginWithPhone,omitempty"`
	PasswordlessType           *domain.PasswordlessType `json:"passwordlessType,omitempty"`
	DefaultRedirectURI         *string                  `json:"defaultRedirectURI,omitempty"`
	PasswordCheckLifetime      *time.Duration           `json:"passwordCheckLifetime,omitempty"`
	ExternalLoginCheckLifetime *time.Duration           `json:"externalLoginCheckLifetime,omitempty"`
	MFAInitSkipLifetime        *time.Duration           `json:"mfaInitSkipLifetime,omitempty"`
	SecondFactorCheckLifetime  *time.Duration           `json:"secondFactorCheckLifetime,omitempty"`
	MultiFactorCheckLifetime   *time.Duration           `json:"multiFactorCheckLifetime,omitempty"`
}

func NewLoginPolicyChangedEvent

func NewLoginPolicyChangedEvent(
	base *eventstore.BaseEvent,
	changes []LoginPolicyChanges,
) (*LoginPolicyChangedEvent, error)

func (*LoginPolicyChangedEvent) Payload

func (e *LoginPolicyChangedEvent) Payload() interface{}

func (*LoginPolicyChangedEvent) UniqueConstraints

func (e *LoginPolicyChangedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type LoginPolicyChanges

type LoginPolicyChanges func(*LoginPolicyChangedEvent)

type LoginPolicyRemovedEvent

type LoginPolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewLoginPolicyRemovedEvent

func NewLoginPolicyRemovedEvent(base *eventstore.BaseEvent) *LoginPolicyRemovedEvent

func (*LoginPolicyRemovedEvent) Payload

func (e *LoginPolicyRemovedEvent) Payload() interface{}

func (*LoginPolicyRemovedEvent) UniqueConstraints

func (e *LoginPolicyRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type MailTemplateAddedEvent

type MailTemplateAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Template []byte `json:"template,omitempty"`
}

func NewMailTemplateAddedEvent

func NewMailTemplateAddedEvent(
	base *eventstore.BaseEvent,
	template []byte,
) *MailTemplateAddedEvent

func (*MailTemplateAddedEvent) Payload

func (e *MailTemplateAddedEvent) Payload() interface{}

func (*MailTemplateAddedEvent) UniqueConstraints

func (e *MailTemplateAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type MailTemplateChangedEvent

type MailTemplateChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Template *[]byte `json:"template,omitempty"`
}

func NewMailTemplateChangedEvent

func NewMailTemplateChangedEvent(
	base *eventstore.BaseEvent,
	changes []MailTemplateChanges,
) (*MailTemplateChangedEvent, error)

func (*MailTemplateChangedEvent) Payload

func (e *MailTemplateChangedEvent) Payload() interface{}

func (*MailTemplateChangedEvent) UniqueConstraints

func (e *MailTemplateChangedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type MailTemplateChanges

type MailTemplateChanges func(*MailTemplateChangedEvent)

type MailTemplateRemovedEvent

type MailTemplateRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewMailTemplateRemovedEvent

func NewMailTemplateRemovedEvent(base *eventstore.BaseEvent) *MailTemplateRemovedEvent

func (*MailTemplateRemovedEvent) Payload

func (e *MailTemplateRemovedEvent) Payload() interface{}

func (*MailTemplateRemovedEvent) UniqueConstraints

func (e *MailTemplateRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type MailTextAddedEvent

type MailTextAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MailTextType string `json:"mailTextType,omitempty"`
	Language     string `json:"language,omitempty"`
	Title        string `json:"title,omitempty"`
	PreHeader    string `json:"preHeader,omitempty"`
	Subject      string `json:"subject,omitempty"`
	Greeting     string `json:"greeting,omitempty"`
	Text         string `json:"text,omitempty"`
	ButtonText   string `json:"buttonText,omitempty"`
}

func NewMailTextAddedEvent

func NewMailTextAddedEvent(
	base *eventstore.BaseEvent,
	mailTextType,
	language,
	title,
	preHeader,
	subject,
	greeting,
	text,
	buttonText string,
) *MailTextAddedEvent

func (*MailTextAddedEvent) Payload

func (e *MailTextAddedEvent) Payload() interface{}

func (*MailTextAddedEvent) UniqueConstraints

func (e *MailTextAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type MailTextChangedEvent

type MailTextChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MailTextType string  `json:"mailTextType,omitempty"`
	Language     string  `json:"language,omitempty"`
	Title        *string `json:"title,omitempty"`
	PreHeader    *string `json:"preHeader,omitempty"`
	Subject      *string `json:"subject,omitempty"`
	Greeting     *string `json:"greeting,omitempty"`
	Text         *string `json:"text,omitempty"`
	ButtonText   *string `json:"buttonText,omitempty"`
}

func NewMailTextChangedEvent

func NewMailTextChangedEvent(
	base *eventstore.BaseEvent,
	mailTextType,
	language string,
	changes []MailTextChanges,
) (*MailTextChangedEvent, error)

func (*MailTextChangedEvent) Payload

func (e *MailTextChangedEvent) Payload() interface{}

func (*MailTextChangedEvent) UniqueConstraints

func (e *MailTextChangedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type MailTextChanges

type MailTextChanges func(*MailTextChangedEvent)

type MailTextRemovedEvent

type MailTextRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MailTextType string `json:"mailTextType,omitempty"`
	Language     string `json:"language,omitempty"`
}

func NewMailTextRemovedEvent

func NewMailTextRemovedEvent(base *eventstore.BaseEvent, mailTextType, language string) *MailTextRemovedEvent

func (*MailTextRemovedEvent) Payload

func (e *MailTextRemovedEvent) Payload() interface{}

func (*MailTextRemovedEvent) UniqueConstraints

func (e *MailTextRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type MultiFactorAddedEvent

type MultiFactorAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MFAType domain.MultiFactorType `json:"mfaType"`
}

func NewMultiFactorAddedEvent

func NewMultiFactorAddedEvent(
	base *eventstore.BaseEvent,
	mfaType domain.MultiFactorType,
) *MultiFactorAddedEvent

func (*MultiFactorAddedEvent) Payload

func (e *MultiFactorAddedEvent) Payload() interface{}

func (*MultiFactorAddedEvent) UniqueConstraints

func (e *MultiFactorAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type MultiFactorRemovedEvent

type MultiFactorRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
	MFAType              domain.MultiFactorType `json:"mfaType"`
}

func NewMultiFactorRemovedEvent

func NewMultiFactorRemovedEvent(
	base *eventstore.BaseEvent,
	mfaType domain.MultiFactorType,
) *MultiFactorRemovedEvent

func (*MultiFactorRemovedEvent) Payload

func (e *MultiFactorRemovedEvent) Payload() interface{}

func (*MultiFactorRemovedEvent) UniqueConstraints

func (e *MultiFactorRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type NotificationPolicyAddedEvent

type NotificationPolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	PasswordChange bool `json:"passwordChange,omitempty"`
}

func NewNotificationPolicyAddedEvent

func NewNotificationPolicyAddedEvent(
	base *eventstore.BaseEvent,
	passwordChange bool,
) *NotificationPolicyAddedEvent

func (*NotificationPolicyAddedEvent) Payload

func (e *NotificationPolicyAddedEvent) Payload() interface{}

func (*NotificationPolicyAddedEvent) UniqueConstraints

func (e *NotificationPolicyAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type NotificationPolicyChangedEvent

type NotificationPolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	PasswordChange *bool `json:"passwordChange,omitempty"`
}

func NewNotificationPolicyChangedEvent

func NewNotificationPolicyChangedEvent(
	base *eventstore.BaseEvent,
	changes []NotificationPolicyChanges,
) (*NotificationPolicyChangedEvent, error)

func (*NotificationPolicyChangedEvent) Payload

func (e *NotificationPolicyChangedEvent) Payload() interface{}

func (*NotificationPolicyChangedEvent) UniqueConstraints

type NotificationPolicyChanges

type NotificationPolicyChanges func(*NotificationPolicyChangedEvent)

type NotificationPolicyRemovedEvent

type NotificationPolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewNotificationPolicyRemovedEvent

func NewNotificationPolicyRemovedEvent(base *eventstore.BaseEvent) *NotificationPolicyRemovedEvent

func (*NotificationPolicyRemovedEvent) Payload

func (e *NotificationPolicyRemovedEvent) Payload() interface{}

func (*NotificationPolicyRemovedEvent) UniqueConstraints

type PasswordAgePolicyAddedEvent

type PasswordAgePolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	ExpireWarnDays uint64 `json:"expireWarnDays,omitempty"`
	MaxAgeDays     uint64 `json:"maxAgeDays,omitempty"`
}

func NewPasswordAgePolicyAddedEvent

func NewPasswordAgePolicyAddedEvent(
	base *eventstore.BaseEvent,
	expireWarnDays,
	maxAgeDays uint64,
) *PasswordAgePolicyAddedEvent

func (*PasswordAgePolicyAddedEvent) Payload

func (e *PasswordAgePolicyAddedEvent) Payload() interface{}

func (*PasswordAgePolicyAddedEvent) UniqueConstraints

func (e *PasswordAgePolicyAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type PasswordAgePolicyChangedEvent

type PasswordAgePolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	ExpireWarnDays *uint64 `json:"expireWarnDays,omitempty"`
	MaxAgeDays     *uint64 `json:"maxAgeDays,omitempty"`
}

func NewPasswordAgePolicyChangedEvent

func NewPasswordAgePolicyChangedEvent(
	base *eventstore.BaseEvent,
	changes []PasswordAgePolicyChanges,
) (*PasswordAgePolicyChangedEvent, error)

func (*PasswordAgePolicyChangedEvent) Payload

func (e *PasswordAgePolicyChangedEvent) Payload() interface{}

func (*PasswordAgePolicyChangedEvent) UniqueConstraints

func (e *PasswordAgePolicyChangedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type PasswordAgePolicyChanges

type PasswordAgePolicyChanges func(*PasswordAgePolicyChangedEvent)

type PasswordAgePolicyRemovedEvent

type PasswordAgePolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewPasswordAgePolicyRemovedEvent

func NewPasswordAgePolicyRemovedEvent(base *eventstore.BaseEvent) *PasswordAgePolicyRemovedEvent

func (*PasswordAgePolicyRemovedEvent) Payload

func (e *PasswordAgePolicyRemovedEvent) Payload() interface{}

func (*PasswordAgePolicyRemovedEvent) UniqueConstraints

func (e *PasswordAgePolicyRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type PasswordComplexityPolicyAddedEvent

type PasswordComplexityPolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MinLength    uint64 `json:"minLength,omitempty"`
	HasLowercase bool   `json:"hasLowercase,omitempty"`
	HasUppercase bool   `json:"hasUppercase,omitempty"`
	HasNumber    bool   `json:"hasNumber,omitempty"`
	HasSymbol    bool   `json:"hasSymbol,omitempty"`
}

func NewPasswordComplexityPolicyAddedEvent

func NewPasswordComplexityPolicyAddedEvent(
	base *eventstore.BaseEvent,
	minLength uint64,
	hasLowerCase,
	hasUpperCase,
	hasNumber,
	hasSymbol bool,
) *PasswordComplexityPolicyAddedEvent

func (*PasswordComplexityPolicyAddedEvent) Payload

func (e *PasswordComplexityPolicyAddedEvent) Payload() interface{}

func (*PasswordComplexityPolicyAddedEvent) UniqueConstraints

type PasswordComplexityPolicyChangedEvent

type PasswordComplexityPolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MinLength    *uint64 `json:"minLength,omitempty"`
	HasLowercase *bool   `json:"hasLowercase,omitempty"`
	HasUppercase *bool   `json:"hasUppercase,omitempty"`
	HasNumber    *bool   `json:"hasNumber,omitempty"`
	HasSymbol    *bool   `json:"hasSymbol,omitempty"`
}

func (*PasswordComplexityPolicyChangedEvent) Payload

func (e *PasswordComplexityPolicyChangedEvent) Payload() interface{}

func (*PasswordComplexityPolicyChangedEvent) UniqueConstraints

type PasswordComplexityPolicyChanges

type PasswordComplexityPolicyChanges func(*PasswordComplexityPolicyChangedEvent)

type PasswordComplexityPolicyRemovedEvent

type PasswordComplexityPolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewPasswordComplexityPolicyRemovedEvent

func NewPasswordComplexityPolicyRemovedEvent(base *eventstore.BaseEvent) *PasswordComplexityPolicyRemovedEvent

func (*PasswordComplexityPolicyRemovedEvent) Payload

func (e *PasswordComplexityPolicyRemovedEvent) Payload() interface{}

func (*PasswordComplexityPolicyRemovedEvent) UniqueConstraints

type PrivacyPolicyAddedEvent

type PrivacyPolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	TOSLink        string              `json:"tosLink,omitempty"`
	PrivacyLink    string              `json:"privacyLink,omitempty"`
	HelpLink       string              `json:"helpLink,omitempty"`
	SupportEmail   domain.EmailAddress `json:"supportEmail,omitempty"`
	DocsLink       string              `json:"docsLink,omitempty"`
	CustomLink     string              `json:"customLink,omitempty"`
	CustomLinkText string              `json:"customLinkText,omitempty"`
}

func NewPrivacyPolicyAddedEvent

func NewPrivacyPolicyAddedEvent(
	base *eventstore.BaseEvent,
	tosLink,
	privacyLink,
	helpLink string,
	supportEmail domain.EmailAddress,
	docsLink, customLink, customLinkText string,
) *PrivacyPolicyAddedEvent

func (*PrivacyPolicyAddedEvent) Payload

func (e *PrivacyPolicyAddedEvent) Payload() interface{}

func (*PrivacyPolicyAddedEvent) UniqueConstraints

func (e *PrivacyPolicyAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type PrivacyPolicyChangedEvent

type PrivacyPolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	TOSLink        *string              `json:"tosLink,omitempty"`
	PrivacyLink    *string              `json:"privacyLink,omitempty"`
	HelpLink       *string              `json:"helpLink,omitempty"`
	SupportEmail   *domain.EmailAddress `json:"supportEmail,omitempty"`
	DocsLink       *string              `json:"docsLink,omitempty"`
	CustomLink     *string              `json:"customLink,omitempty"`
	CustomLinkText *string              `json:"customLinkText,omitempty"`
}

func NewPrivacyPolicyChangedEvent

func NewPrivacyPolicyChangedEvent(
	base *eventstore.BaseEvent,
	changes []PrivacyPolicyChanges,
) (*PrivacyPolicyChangedEvent, error)

func (*PrivacyPolicyChangedEvent) Payload

func (e *PrivacyPolicyChangedEvent) Payload() interface{}

func (*PrivacyPolicyChangedEvent) UniqueConstraints

func (e *PrivacyPolicyChangedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type PrivacyPolicyChanges

type PrivacyPolicyChanges func(*PrivacyPolicyChangedEvent)

type PrivacyPolicyRemovedEvent

type PrivacyPolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewPrivacyPolicyRemovedEvent

func NewPrivacyPolicyRemovedEvent(base *eventstore.BaseEvent) *PrivacyPolicyRemovedEvent

func (*PrivacyPolicyRemovedEvent) Payload

func (e *PrivacyPolicyRemovedEvent) Payload() interface{}

func (*PrivacyPolicyRemovedEvent) UniqueConstraints

func (e *PrivacyPolicyRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type SecondFactorAddedEvent

type SecondFactorAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MFAType domain.SecondFactorType `json:"mfaType,omitempty"`
}

func NewSecondFactorAddedEvent

func NewSecondFactorAddedEvent(
	base *eventstore.BaseEvent,
	mfaType domain.SecondFactorType,
) *SecondFactorAddedEvent

func (*SecondFactorAddedEvent) Payload

func (e *SecondFactorAddedEvent) Payload() interface{}

func (*SecondFactorAddedEvent) UniqueConstraints

func (e *SecondFactorAddedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

type SecondFactorRemovedEvent

type SecondFactorRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
	MFAType              domain.SecondFactorType `json:"mfaType"`
}

func NewSecondFactorRemovedEvent

func NewSecondFactorRemovedEvent(
	base *eventstore.BaseEvent,
	mfaType domain.SecondFactorType,
) *SecondFactorRemovedEvent

func (*SecondFactorRemovedEvent) Payload

func (e *SecondFactorRemovedEvent) Payload() interface{}

func (*SecondFactorRemovedEvent) UniqueConstraints

func (e *SecondFactorRemovedEvent) UniqueConstraints() []*eventstore.UniqueConstraint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL