command

package
v1.80.0-v2.17 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionAggregateFromWriteModel

func ActionAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate

func ActivateDefaultLabelPolicy

func ActivateDefaultLabelPolicy(
	a *instance.Aggregate,
) preparation.Validation

func AddAPIAppCommand

func AddAPIAppCommand(app *addAPIApp, clientSecretAlg crypto.HashAlgorithm) preparation.Validation

func AddDefaultDomainPolicy

func AddDefaultDomainPolicy(
	a *instance.Aggregate,
	userLoginMustBeDomain,
	validateOrgDomains bool,
) preparation.Validation

func AddDefaultLabelPolicy

func AddDefaultLabelPolicy(
	a *instance.Aggregate,
	primaryColor,
	backgroundColor,
	warnColor,
	fontColor,
	primaryColorDark,
	backgroundColorDark,
	warnColorDark,
	fontColorDark string,
	hideLoginNameSuffix,
	errorMsgPopup,
	disableWatermark bool,
) preparation.Validation

func AddDefaultLockoutPolicy

func AddDefaultLockoutPolicy(
	a *instance.Aggregate,
	maxAttempts uint64,
	showLockoutFailure bool,
) preparation.Validation

func AddDefaultLoginPolicy

func AddDefaultLoginPolicy(
	a *instance.Aggregate,
	allowUsernamePassword bool,
	allowRegister bool,
	allowExternalIDP bool,
	forceMFA bool,
	hidePasswordReset bool,
	passwordlessType domain.PasswordlessType,
	passwordCheckLifetime time.Duration,
	externalLoginCheckLifetime time.Duration,
	mfaInitSkipLifetime time.Duration,
	secondFactorCheckLifetime time.Duration,
	multiFactorCheckLifetime time.Duration,
) preparation.Validation

func AddEmailTemplate

func AddEmailTemplate(
	a *instance.Aggregate,
	tempalte []byte,
) preparation.Validation

func AddHumanCommand

func AddHumanCommand(a *user.Aggregate, human *AddHuman, passwordAlg crypto.HashAlgorithm, codeAlg crypto.EncryptionAlgorithm) preparation.Validation

func AddMultiFactorToDefaultLoginPolicy

func AddMultiFactorToDefaultLoginPolicy(a *instance.Aggregate, factor domain.MultiFactorType) preparation.Validation

func AddOIDCAppCommand

func AddOIDCAppCommand(app *addOIDCApp, clientSecretAlg crypto.HashAlgorithm) preparation.Validation

AddOIDCAppCommand prepares the commands to add an oidc app. The ClientID will be set during the CreateCommands

func AddOrgCommand

func AddOrgCommand(ctx context.Context, a *org.Aggregate, name string) preparation.Validation

AddOrgCommand defines the commands to create a new org, this includes the verified default domain

func AddOrgDomain

func AddOrgDomain(a *org.Aggregate, domain string) preparation.Validation

func AddPasswordAgePolicy

func AddPasswordAgePolicy(
	a *instance.Aggregate,
	expireWarnDays,
	maxAgeDays uint64,
) preparation.Validation

func AddPasswordComplexityPolicy

func AddPasswordComplexityPolicy(
	a *instance.Aggregate,
	minLength uint64,
	hasLowercase,
	hasUppercase,
	hasNumber,
	hasSymbol bool,
) preparation.Validation

func AddPrivacyPolicy

func AddPrivacyPolicy(
	a *instance.Aggregate,
	tosLink,
	privacyLink,
	helpLink string,
) preparation.Validation

func AddProjectCommand

func AddProjectCommand(
	a *project.Aggregate,
	name string,
	owner string,
	projectRoleAssertion bool,
	projectRoleCheck bool,
	hasProjectCheck bool,
	privateLabelingSetting domain.PrivateLabelingSetting,
) preparation.Validation

func AddSecondFactorToDefaultLoginPolicy

func AddSecondFactorToDefaultLoginPolicy(a *instance.Aggregate, factor domain.SecondFactorType) preparation.Validation

func AppendAndReduce

func AppendAndReduce(object interface {
	AppendEvents(...eventstore.Event)
	Reduce() error
}, events ...eventstore.Event) error

func CheckDomainPolicyForUserName

func CheckDomainPolicyForUserName(userName string, policy *domain.DomainPolicy) error

func ExistsUser

func ExistsUser(ctx context.Context, filter preparation.FilterToQueryReducer, id, resourceOwner string) (exists bool, err error)

func FormatPhoneNumber

func FormatPhoneNumber(number string) (string, error)

func InstanceAggregateFromWriteModel

func InstanceAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate

func IsInstanceMember

func IsInstanceMember(ctx context.Context, filter preparation.FilterToQueryReducer, instanceID, userID string) (isMember bool, err error)

func IsOrgMember

func IsOrgMember(ctx context.Context, filter preparation.FilterToQueryReducer, orgID, userID string) (isMember bool, err error)

func KeyPairAggregateFromWriteModel

func KeyPairAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate

func NewActionAggregate

func NewActionAggregate(id, resourceOwner string) *eventstore.Aggregate

func OrgAggregateFromWriteModel

func OrgAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate

func ProjectAggregateFromWriteModel

func ProjectAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate

func SetIAMConsoleID

func SetIAMConsoleID(a *instance.Aggregate, clientID, appID *string) preparation.Validation

SetIAMConsoleID defines the command to set the clientID of the Console App onto the instance

func SetIAMProject

func SetIAMProject(a *instance.Aggregate, projectID string) preparation.Validation

SetIAMProject defines the command to set the id of the IAM project onto the instance

func SetPrimaryOrgDomain

func SetPrimaryOrgDomain(a *org.Aggregate, domain string) preparation.Validation

func UserAggregateFromWriteModel

func UserAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate

func UserGrantAggregateFromWriteModel

func UserGrantAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate

func VerifyOrgDomain

func VerifyOrgDomain(a *org.Aggregate, domain string) preparation.Validation

Types

type APIApplicationWriteModel

type APIApplicationWriteModel struct {
	eventstore.WriteModel

	AppID              string
	AppName            string
	ClientID           string
	ClientSecret       *crypto.CryptoValue
	ClientSecretString string
	AuthMethodType     domain.APIAuthMethodType
	State              domain.AppState
	// contains filtered or unexported fields
}

func NewAPIApplicationWriteModel

func NewAPIApplicationWriteModel(projectID, resourceOwner string) *APIApplicationWriteModel

func NewAPIApplicationWriteModelWithAppID

func NewAPIApplicationWriteModelWithAppID(projectID, appID, resourceOwner string) *APIApplicationWriteModel

func (*APIApplicationWriteModel) AppendEvents

func (wm *APIApplicationWriteModel) AppendEvents(events ...eventstore.Event)

func (*APIApplicationWriteModel) IsAPI

func (wm *APIApplicationWriteModel) IsAPI() bool

func (*APIApplicationWriteModel) NewChangedEvent

func (wm *APIApplicationWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	appID string,
	authMethodType domain.APIAuthMethodType,
) (*project.APIConfigChangedEvent, bool, error)

func (*APIApplicationWriteModel) Query

func (*APIApplicationWriteModel) Reduce

func (wm *APIApplicationWriteModel) Reduce() error

type ActionExistsModel

type ActionExistsModel struct {
	eventstore.WriteModel
	// contains filtered or unexported fields
}

func NewActionsExistModel

func NewActionsExistModel(actionIDs []string, resourceOwner string) *ActionExistsModel

func (*ActionExistsModel) Query

func (*ActionExistsModel) Reduce

func (wm *ActionExistsModel) Reduce() error

type ActionWriteModel

type ActionWriteModel struct {
	eventstore.WriteModel

	Name          string
	Script        string
	Timeout       time.Duration
	AllowedToFail bool
	State         domain.ActionState
}

func NewActionWriteModel

func NewActionWriteModel(actionID string, resourceOwner string) *ActionWriteModel

func (*ActionWriteModel) NewChangedEvent

func (wm *ActionWriteModel) NewChangedEvent(
	ctx context.Context,
	agg *eventstore.Aggregate,
	name string,
	script string,
	timeout time.Duration,
	allowedToFail bool,
) (*action.ChangedEvent, error)

func (*ActionWriteModel) Query

func (*ActionWriteModel) Reduce

func (wm *ActionWriteModel) Reduce() error

type ActionsListByOrgModel

type ActionsListByOrgModel struct {
	eventstore.WriteModel

	Actions map[string]*ActionWriteModel
}

func NewActionsListByOrgModel

func NewActionsListByOrgModel(resourceOwner string) *ActionsListByOrgModel

func (*ActionsListByOrgModel) Query

func (*ActionsListByOrgModel) Reduce

func (wm *ActionsListByOrgModel) Reduce() error

type AddApp

type AddApp struct {
	Aggregate project.Aggregate
	ID        string
	Name      string
}

type AddHuman

type AddHuman struct {
	// Username is required
	Username string
	// FirstName is required
	FirstName string
	// LastName is required
	LastName string
	// NickName is required
	NickName string
	// DisplayName is required
	DisplayName string
	// Email is required
	Email Email
	// PreferredLanguage is required
	PreferredLanguage language.Tag
	// Gender is required
	Gender domain.Gender
	//Phone represents an international phone number
	Phone Phone
	//Password is optional
	Password string
	//PasswordChangeRequired is used if the `Password`-field is set
	PasswordChangeRequired bool
	Passwordless           bool
	ExternalIDP            bool
	Register               bool
}

type ApplicationKeyWriteModel

type ApplicationKeyWriteModel struct {
	eventstore.WriteModel

	AppID          string
	ClientID       string
	KeyID          string
	KeyType        domain.AuthNKeyType
	ExpirationDate time.Time

	State       domain.AppState
	KeysAllowed bool
}

func NewApplicationKeyWriteModel

func NewApplicationKeyWriteModel(projectID, appID, keyID, resourceOwner string) *ApplicationKeyWriteModel

func (*ApplicationKeyWriteModel) AppendEvents

func (wm *ApplicationKeyWriteModel) AppendEvents(events ...eventstore.Event)

func (*ApplicationKeyWriteModel) Query

func (*ApplicationKeyWriteModel) Reduce

func (wm *ApplicationKeyWriteModel) Reduce() error

type ApplicationWriteModel

type ApplicationWriteModel struct {
	eventstore.WriteModel

	AppID string
	State domain.AppState
	Name  string
}

func NewApplicationWriteModel

func NewApplicationWriteModel(projectID, resourceOwner string) *ApplicationWriteModel

func NewApplicationWriteModelWithAppIDC

func NewApplicationWriteModelWithAppIDC(projectID, appID, resourceOwner string) *ApplicationWriteModel

func (*ApplicationWriteModel) AppendEvents

func (wm *ApplicationWriteModel) AppendEvents(events ...eventstore.Event)

func (*ApplicationWriteModel) Query

func (*ApplicationWriteModel) Reduce

func (wm *ApplicationWriteModel) Reduce() error

type AssetUpload

type AssetUpload struct {
	ResourceOwner string
	ObjectName    string
	ContentType   string
	ObjectType    static.ObjectType
	File          io.Reader
	Size          int64
}

type Commands

type Commands struct {
	// contains filtered or unexported fields
}

func StartCommands

func StartCommands(es *eventstore.Eventstore,
	defaults sd.SystemDefaults,
	zitadelRoles []authz.RoleMapping,
	staticStore static.Storage,
	webAuthN *webauthn_helper.Config,
	externalDomain string,
	externalSecure bool,
	externalPort uint16,
	idpConfigEncryption,
	otpEncryption,
	smtpEncryption,
	smsEncryption,
	userEncryption,
	domainVerificationEncryption,
	oidcEncryption crypto.EncryptionAlgorithm,
) (repo *Commands, err error)

func (*Commands) ActivateDefaultLabelPolicy

func (c *Commands) ActivateDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)

func (*Commands) ActivateLabelPolicy

func (c *Commands) ActivateLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) ActivateSMSConfigTwilio

func (c *Commands) ActivateSMSConfigTwilio(ctx context.Context, instanceID, id string) (*domain.ObjectDetails, error)

func (*Commands) AddAPIApplication

func (c *Commands) AddAPIApplication(ctx context.Context, application *domain.APIApp, resourceOwner string, appSecretGenerator crypto.Generator) (_ *domain.APIApp, err error)

func (*Commands) AddAccessAndRefreshToken

func (c *Commands) AddAccessAndRefreshToken(
	ctx context.Context,
	orgID,
	agentID,
	clientID,
	userID,
	refreshToken string,
	audience,
	scopes,
	authMethodsReferences []string,
	accessLifetime,
	refreshIdleExpiration,
	refreshExpiration time.Duration,
	authTime time.Time,
) (accessToken *domain.Token, newRefreshToken string, err error)

func (*Commands) AddAction

func (c *Commands) AddAction(ctx context.Context, addAction *domain.Action, resourceOwner string) (_ string, _ *domain.ObjectDetails, err error)

func (*Commands) AddApplicationKey

func (c *Commands) AddApplicationKey(ctx context.Context, key *domain.ApplicationKey, resourceOwner string) (_ *domain.ApplicationKey, err error)

func (*Commands) AddDebugNotificationProviderFile

func (c *Commands) AddDebugNotificationProviderFile(ctx context.Context, fileSystemProvider *fs.FSConfig) (*domain.ObjectDetails, error)

func (*Commands) AddDebugNotificationProviderLog

func (c *Commands) AddDebugNotificationProviderLog(ctx context.Context, fileSystemProvider *fs.FSConfig) (*domain.ObjectDetails, error)

func (*Commands) AddDefaultDomainPolicy

func (c *Commands) AddDefaultDomainPolicy(ctx context.Context, policy *domain.DomainPolicy) (*domain.DomainPolicy, error)

func (*Commands) AddDefaultIDPConfig

func (c *Commands) AddDefaultIDPConfig(ctx context.Context, config *domain.IDPConfig) (*domain.IDPConfig, error)

func (*Commands) AddDefaultLabelPolicy

func (c *Commands) AddDefaultLabelPolicy(ctx context.Context, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)

func (*Commands) AddDefaultLockoutPolicy

func (c *Commands) AddDefaultLockoutPolicy(ctx context.Context, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)

func (*Commands) AddDefaultLoginPolicy

func (c *Commands) AddDefaultLoginPolicy(ctx context.Context, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)

func (*Commands) AddDefaultMailTemplate

func (c *Commands) AddDefaultMailTemplate(ctx context.Context, policy *domain.MailTemplate) (*domain.MailTemplate, error)

func (*Commands) AddDefaultPasswordAgePolicy

func (c *Commands) AddDefaultPasswordAgePolicy(ctx context.Context, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)

func (*Commands) AddDefaultPasswordComplexityPolicy

func (c *Commands) AddDefaultPasswordComplexityPolicy(ctx context.Context, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)

func (*Commands) AddDefaultPrivacyPolicy

func (c *Commands) AddDefaultPrivacyPolicy(ctx context.Context, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)

func (*Commands) AddFontDefaultLabelPolicy

func (c *Commands) AddFontDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)

func (*Commands) AddFontLabelPolicy

func (c *Commands) AddFontLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)

func (*Commands) AddHuman

func (c *Commands) AddHuman(ctx context.Context, resourceOwner string, human *AddHuman) (*domain.HumanDetails, error)

func (*Commands) AddHumanAvatar

func (c *Commands) AddHumanAvatar(ctx context.Context, orgID, userID string, upload *AssetUpload) (*domain.ObjectDetails, error)

func (*Commands) AddHumanOTP

func (c *Commands) AddHumanOTP(ctx context.Context, userID, resourceowner string) (*domain.OTP, error)

func (*Commands) AddIDPConfig

func (c *Commands) AddIDPConfig(ctx context.Context, config *domain.IDPConfig, resourceOwner string) (*domain.IDPConfig, error)

func (*Commands) AddIDPProviderToDefaultLoginPolicy

func (c *Commands) AddIDPProviderToDefaultLoginPolicy(ctx context.Context, idpProvider *domain.IDPProvider) (*domain.IDPProvider, error)

func (*Commands) AddIDPProviderToLoginPolicy

func (c *Commands) AddIDPProviderToLoginPolicy(ctx context.Context, resourceOwner string, idpProvider *domain.IDPProvider) (*domain.IDPProvider, error)

func (*Commands) AddIconDarkDefaultLabelPolicy

func (c *Commands) AddIconDarkDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)

func (*Commands) AddIconDarkLabelPolicy

func (c *Commands) AddIconDarkLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)

func (*Commands) AddIconDefaultLabelPolicy

func (c *Commands) AddIconDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)

func (*Commands) AddIconLabelPolicy

func (c *Commands) AddIconLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)

func (*Commands) AddInstanceDomain

func (c *Commands) AddInstanceDomain(ctx context.Context, instanceDomain string) (*domain.ObjectDetails, error)

func (*Commands) AddInstanceMember

func (c *Commands) AddInstanceMember(ctx context.Context, userID string, roles ...string) (*domain.Member, error)

func (*Commands) AddInstanceMemberCommand

func (c *Commands) AddInstanceMemberCommand(a *instance.Aggregate, userID string, roles ...string) preparation.Validation

func (*Commands) AddLabelPolicy

func (c *Commands) AddLabelPolicy(ctx context.Context, resourceOwner string, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)

func (*Commands) AddLockoutPolicy

func (c *Commands) AddLockoutPolicy(ctx context.Context, resourceOwner string, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)

func (*Commands) AddLoginPolicy

func (c *Commands) AddLoginPolicy(ctx context.Context, resourceOwner string, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)

func (*Commands) AddLogoDarkDefaultLabelPolicy

func (c *Commands) AddLogoDarkDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)

func (*Commands) AddLogoDarkLabelPolicy

func (c *Commands) AddLogoDarkLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)

func (*Commands) AddLogoDefaultLabelPolicy

func (c *Commands) AddLogoDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)

func (*Commands) AddLogoLabelPolicy

func (c *Commands) AddLogoLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)

func (*Commands) AddMachine

func (c *Commands) AddMachine(ctx context.Context, orgID string, machine *domain.Machine) (*domain.Machine, error)

func (*Commands) AddMailTemplate

func (c *Commands) AddMailTemplate(ctx context.Context, resourceOwner string, policy *domain.MailTemplate) (*domain.MailTemplate, error)

func (*Commands) AddMultiFactorToDefaultLoginPolicy

func (c *Commands) AddMultiFactorToDefaultLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType) (domain.MultiFactorType, *domain.ObjectDetails, error)

func (*Commands) AddMultiFactorToLoginPolicy

func (c *Commands) AddMultiFactorToLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType, orgID string) (domain.MultiFactorType, *domain.ObjectDetails, error)

func (*Commands) AddNewRefreshTokenAndAccessToken

func (c *Commands) AddNewRefreshTokenAndAccessToken(
	ctx context.Context,
	userID,
	orgID,
	agentID,
	clientID string,
	audience,
	scopes,
	authMethodsReferences []string,
	refreshExpiration,
	accessLifetime,
	refreshIdleExpiration time.Duration,
	authTime time.Time,
) (accessToken *domain.Token, newRefreshToken string, err error)

func (*Commands) AddOIDCApplication

func (c *Commands) AddOIDCApplication(ctx context.Context, application *domain.OIDCApp, resourceOwner string, appSecretGenerator crypto.Generator) (_ *domain.OIDCApp, err error)

func (*Commands) AddOIDCSettings

func (c *Commands) AddOIDCSettings(ctx context.Context, settings *domain.OIDCSettings) (*domain.ObjectDetails, error)

func (*Commands) AddOrg

func (c *Commands) AddOrg(ctx context.Context, name, userID, resourceOwner string, claimedUserIDs []string) (*domain.Org, error)

func (*Commands) AddOrgDomain

func (c *Commands) AddOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain, claimedUserIDs []string) (*domain.OrgDomain, error)

func (*Commands) AddOrgDomainPolicy

func (c *Commands) AddOrgDomainPolicy(ctx context.Context, resourceOwner string, policy *domain.DomainPolicy) (*domain.DomainPolicy, error)

func (*Commands) AddOrgMember

func (c *Commands) AddOrgMember(ctx context.Context, userID, orgID string, roles ...string) (*domain.Member, error)

func (*Commands) AddOrgMemberCommand

func (c *Commands) AddOrgMemberCommand(a *org.Aggregate, userID string, roles ...string) preparation.Validation

func (*Commands) AddPasswordAgePolicy

func (c *Commands) AddPasswordAgePolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)

func (*Commands) AddPasswordComplexityPolicy

func (c *Commands) AddPasswordComplexityPolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)

func (*Commands) AddPersonalAccessToken

func (c *Commands) AddPersonalAccessToken(ctx context.Context, userID, resourceOwner string, expirationDate time.Time, scopes []string, allowedUserType domain.UserType) (*domain.Token, string, error)

func (*Commands) AddPrivacyPolicy

func (c *Commands) AddPrivacyPolicy(ctx context.Context, resourceOwner string, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)

func (*Commands) AddProject

func (c *Commands) AddProject(ctx context.Context, project *domain.Project, resourceOwner, ownerUserID string) (_ *domain.Project, err error)

func (*Commands) AddProjectGrant

func (c *Commands) AddProjectGrant(ctx context.Context, grant *domain.ProjectGrant, resourceOwner string) (_ *domain.ProjectGrant, err error)

func (*Commands) AddProjectGrantMember

func (c *Commands) AddProjectGrantMember(ctx context.Context, member *domain.ProjectGrantMember) (*domain.ProjectGrantMember, error)

func (*Commands) AddProjectMember

func (c *Commands) AddProjectMember(ctx context.Context, member *domain.Member, resourceOwner string) (*domain.Member, error)

func (*Commands) AddProjectRole

func (c *Commands) AddProjectRole(ctx context.Context, projectRole *domain.ProjectRole, resourceOwner string) (_ *domain.ProjectRole, err error)

func (*Commands) AddSMSConfigTwilio

func (c *Commands) AddSMSConfigTwilio(ctx context.Context, instanceID string, config *twilio.TwilioConfig) (string, *domain.ObjectDetails, error)

func (*Commands) AddSMTPConfig

func (c *Commands) AddSMTPConfig(ctx context.Context, instanceID string, config *smtp.EmailConfig) (*domain.ObjectDetails, error)

func (*Commands) AddSecondFactorToDefaultLoginPolicy

func (c *Commands) AddSecondFactorToDefaultLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType) (domain.SecondFactorType, *domain.ObjectDetails, error)

func (*Commands) AddSecondFactorToLoginPolicy

func (c *Commands) AddSecondFactorToLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType, orgID string) (domain.SecondFactorType, *domain.ObjectDetails, error)

func (*Commands) AddSecretGeneratorConfig

func (c *Commands) AddSecretGeneratorConfig(ctx context.Context, typ domain.SecretGeneratorType, config *crypto.GeneratorConfig) (*domain.ObjectDetails, error)

func (*Commands) AddUserGrant

func (c *Commands) AddUserGrant(ctx context.Context, usergrant *domain.UserGrant, resourceOwner string) (_ *domain.UserGrant, err error)

func (*Commands) AddUserMachineKey

func (c *Commands) AddUserMachineKey(ctx context.Context, machineKey *domain.MachineKey, resourceOwner string) (*domain.MachineKey, error)

func (*Commands) AddUserToken

func (c *Commands) AddUserToken(ctx context.Context, orgID, agentID, clientID, userID string, audience, scopes []string, lifetime time.Duration) (*domain.Token, error)

func (*Commands) BulkAddProjectRole

func (c *Commands) BulkAddProjectRole(ctx context.Context, projectID, resourceOwner string, projectRoles []*domain.ProjectRole) (details *domain.ObjectDetails, err error)
func (c *Commands) BulkAddedUserIDPLinks(ctx context.Context, userID, resourceOwner string, links []*domain.UserIDPLink) (err error)

func (*Commands) BulkRemoveUserGrant

func (c *Commands) BulkRemoveUserGrant(ctx context.Context, grantIDs []string, resourceOwner string) (err error)

func (*Commands) BulkRemoveUserMetadata

func (c *Commands) BulkRemoveUserMetadata(ctx context.Context, userID, resourceOwner string, metadataKeys ...string) (_ *domain.ObjectDetails, err error)

func (*Commands) BulkSetUserMetadata

func (c *Commands) BulkSetUserMetadata(ctx context.Context, userID, resourceOwner string, metadatas ...*domain.Metadata) (_ *domain.ObjectDetails, err error)

func (*Commands) ChangeAPIApplication

func (c *Commands) ChangeAPIApplication(ctx context.Context, apiApp *domain.APIApp, resourceOwner string) (*domain.APIApp, error)

func (*Commands) ChangeAPIApplicationSecret

func (c *Commands) ChangeAPIApplicationSecret(ctx context.Context, projectID, appID, resourceOwner string, appSecretGenerator crypto.Generator) (*domain.APIApp, error)

func (*Commands) ChangeAction

func (c *Commands) ChangeAction(ctx context.Context, actionChange *domain.Action, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) ChangeApplication

func (c *Commands) ChangeApplication(ctx context.Context, projectID string, appChange domain.Application, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) ChangeDefaultDomainPolicy

func (c *Commands) ChangeDefaultDomainPolicy(ctx context.Context, policy *domain.DomainPolicy) (*domain.DomainPolicy, error)

func (*Commands) ChangeDefaultIDPConfig

func (c *Commands) ChangeDefaultIDPConfig(ctx context.Context, config *domain.IDPConfig) (*domain.IDPConfig, error)

func (*Commands) ChangeDefaultIDPJWTConfig

func (c *Commands) ChangeDefaultIDPJWTConfig(ctx context.Context, config *domain.JWTIDPConfig) (*domain.JWTIDPConfig, error)

func (*Commands) ChangeDefaultIDPOIDCConfig

func (c *Commands) ChangeDefaultIDPOIDCConfig(ctx context.Context, config *domain.OIDCIDPConfig) (*domain.OIDCIDPConfig, error)

func (*Commands) ChangeDefaultLabelPolicy

func (c *Commands) ChangeDefaultLabelPolicy(ctx context.Context, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)

func (*Commands) ChangeDefaultLockoutPolicy

func (c *Commands) ChangeDefaultLockoutPolicy(ctx context.Context, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)

func (*Commands) ChangeDefaultLoginPolicy

func (c *Commands) ChangeDefaultLoginPolicy(ctx context.Context, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)

func (*Commands) ChangeDefaultMailTemplate

func (c *Commands) ChangeDefaultMailTemplate(ctx context.Context, policy *domain.MailTemplate) (*domain.MailTemplate, error)

func (*Commands) ChangeDefaultNotificationFile

func (c *Commands) ChangeDefaultNotificationFile(ctx context.Context, fileSystemProvider *fs.FSConfig) (*domain.ObjectDetails, error)

func (*Commands) ChangeDefaultNotificationLog

func (c *Commands) ChangeDefaultNotificationLog(ctx context.Context, fileSystemProvider *fs.FSConfig) (*domain.ObjectDetails, error)

func (*Commands) ChangeDefaultPasswordAgePolicy

func (c *Commands) ChangeDefaultPasswordAgePolicy(ctx context.Context, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)

func (*Commands) ChangeDefaultPasswordComplexityPolicy

func (c *Commands) ChangeDefaultPasswordComplexityPolicy(ctx context.Context, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)

func (*Commands) ChangeDefaultPrivacyPolicy

func (c *Commands) ChangeDefaultPrivacyPolicy(ctx context.Context, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)

func (*Commands) ChangeHumanAddress

func (c *Commands) ChangeHumanAddress(ctx context.Context, address *domain.Address) (*domain.Address, error)

func (*Commands) ChangeHumanEmail

func (c *Commands) ChangeHumanEmail(ctx context.Context, email *domain.Email, emailCodeGenerator crypto.Generator) (*domain.Email, error)

func (*Commands) ChangeHumanPhone

func (c *Commands) ChangeHumanPhone(ctx context.Context, phone *domain.Phone, resourceOwner string, phoneCodeGenerator crypto.Generator) (*domain.Phone, error)

func (*Commands) ChangeHumanProfile

func (c *Commands) ChangeHumanProfile(ctx context.Context, profile *domain.Profile) (*domain.Profile, error)

func (*Commands) ChangeIDPConfig

func (c *Commands) ChangeIDPConfig(ctx context.Context, config *domain.IDPConfig, resourceOwner string) (*domain.IDPConfig, error)

func (*Commands) ChangeIDPJWTConfig

func (c *Commands) ChangeIDPJWTConfig(ctx context.Context, config *domain.JWTIDPConfig, resourceOwner string) (*domain.JWTIDPConfig, error)

func (*Commands) ChangeIDPOIDCConfig

func (c *Commands) ChangeIDPOIDCConfig(ctx context.Context, config *domain.OIDCIDPConfig, resourceOwner string) (*domain.OIDCIDPConfig, error)

func (*Commands) ChangeInstanceMember

func (c *Commands) ChangeInstanceMember(ctx context.Context, member *domain.Member) (*domain.Member, error)

ChangeInstanceMember updates an existing member

func (*Commands) ChangeLabelPolicy

func (c *Commands) ChangeLabelPolicy(ctx context.Context, resourceOwner string, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)

func (*Commands) ChangeLockoutPolicy

func (c *Commands) ChangeLockoutPolicy(ctx context.Context, resourceOwner string, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)

func (*Commands) ChangeLoginPolicy

func (c *Commands) ChangeLoginPolicy(ctx context.Context, resourceOwner string, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)

func (*Commands) ChangeMachine

func (c *Commands) ChangeMachine(ctx context.Context, machine *domain.Machine) (*domain.Machine, error)

func (*Commands) ChangeMailTemplate

func (c *Commands) ChangeMailTemplate(ctx context.Context, resourceOwner string, policy *domain.MailTemplate) (*domain.MailTemplate, error)

func (*Commands) ChangeOIDCApplication

func (c *Commands) ChangeOIDCApplication(ctx context.Context, oidc *domain.OIDCApp, resourceOwner string) (*domain.OIDCApp, error)

func (*Commands) ChangeOIDCApplicationSecret

func (c *Commands) ChangeOIDCApplicationSecret(ctx context.Context, projectID, appID, resourceOwner string, appSecretGenerator crypto.Generator) (*domain.OIDCApp, error)

func (*Commands) ChangeOIDCSettings

func (c *Commands) ChangeOIDCSettings(ctx context.Context, settings *domain.OIDCSettings) (*domain.ObjectDetails, error)

func (*Commands) ChangeOrg

func (c *Commands) ChangeOrg(ctx context.Context, orgID, name string) (*domain.ObjectDetails, error)

func (*Commands) ChangeOrgDomainPolicy

func (c *Commands) ChangeOrgDomainPolicy(ctx context.Context, resourceOwner string, policy *domain.DomainPolicy) (*domain.DomainPolicy, error)

func (*Commands) ChangeOrgMember

func (c *Commands) ChangeOrgMember(ctx context.Context, member *domain.Member) (*domain.Member, error)

ChangeOrgMember updates an existing member

func (*Commands) ChangePassword

func (c *Commands) ChangePassword(ctx context.Context, orgID, userID, oldPassword, newPassword, userAgentID string) (objectDetails *domain.ObjectDetails, err error)

func (*Commands) ChangePasswordAgePolicy

func (c *Commands) ChangePasswordAgePolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)

func (*Commands) ChangePasswordComplexityPolicy

func (c *Commands) ChangePasswordComplexityPolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)

func (*Commands) ChangePrivacyPolicy

func (c *Commands) ChangePrivacyPolicy(ctx context.Context, resourceOwner string, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)

func (*Commands) ChangeProject

func (c *Commands) ChangeProject(ctx context.Context, projectChange *domain.Project, resourceOwner string) (*domain.Project, error)

func (*Commands) ChangeProjectGrant

func (c *Commands) ChangeProjectGrant(ctx context.Context, grant *domain.ProjectGrant, resourceOwner string, cascadeUserGrantIDs ...string) (_ *domain.ProjectGrant, err error)

func (*Commands) ChangeProjectGrantMember

func (c *Commands) ChangeProjectGrantMember(ctx context.Context, member *domain.ProjectGrantMember) (*domain.ProjectGrantMember, error)

ChangeProjectGrantMember updates an existing member

func (*Commands) ChangeProjectMember

func (c *Commands) ChangeProjectMember(ctx context.Context, member *domain.Member, resourceOwner string) (*domain.Member, error)

ChangeProjectMember updates an existing member

func (*Commands) ChangeProjectRole

func (c *Commands) ChangeProjectRole(ctx context.Context, projectRole *domain.ProjectRole, resourceOwner string) (_ *domain.ProjectRole, err error)

func (*Commands) ChangeSMSConfigTwilio

func (c *Commands) ChangeSMSConfigTwilio(ctx context.Context, instanceID, id string, config *twilio.TwilioConfig) (*domain.ObjectDetails, error)

func (*Commands) ChangeSMSConfigTwilioToken

func (c *Commands) ChangeSMSConfigTwilioToken(ctx context.Context, instanceID, id, token string) (*domain.ObjectDetails, error)

func (*Commands) ChangeSMTPConfig

func (c *Commands) ChangeSMTPConfig(ctx context.Context, instanceID string, config *smtp.EmailConfig) (*domain.ObjectDetails, error)

func (*Commands) ChangeSMTPConfigPassword

func (c *Commands) ChangeSMTPConfigPassword(ctx context.Context, instanceID, password string) (*domain.ObjectDetails, error)

func (*Commands) ChangeSecretGeneratorConfig

func (c *Commands) ChangeSecretGeneratorConfig(ctx context.Context, generatorType domain.SecretGeneratorType, config *crypto.GeneratorConfig) (*domain.ObjectDetails, error)

func (*Commands) ChangeUserGrant

func (c *Commands) ChangeUserGrant(ctx context.Context, userGrant *domain.UserGrant, resourceOwner string) (_ *domain.UserGrant, err error)

func (*Commands) ChangeUsername

func (c *Commands) ChangeUsername(ctx context.Context, orgID, userID, userName string) (*domain.ObjectDetails, error)

func (*Commands) ClearFlow

func (c *Commands) ClearFlow(ctx context.Context, flowType domain.FlowType, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) CreateHumanEmailVerificationCode

func (c *Commands) CreateHumanEmailVerificationCode(ctx context.Context, userID, resourceOwner string, emailCodeGenerator crypto.Generator) (*domain.ObjectDetails, error)

func (*Commands) CreateHumanPhoneVerificationCode

func (c *Commands) CreateHumanPhoneVerificationCode(ctx context.Context, userID, resourceowner string, phoneCodeGenerator crypto.Generator) (*domain.ObjectDetails, error)

func (*Commands) DeactivateAction

func (c *Commands) DeactivateAction(ctx context.Context, actionID string, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateApplication

func (c *Commands) DeactivateApplication(ctx context.Context, projectID, appID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateDefaultIDPConfig

func (c *Commands) DeactivateDefaultIDPConfig(ctx context.Context, idpID string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateIDPConfig

func (c *Commands) DeactivateIDPConfig(ctx context.Context, idpID, orgID string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateOrg

func (c *Commands) DeactivateOrg(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateProject

func (c *Commands) DeactivateProject(ctx context.Context, projectID string, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateProjectGrant

func (c *Commands) DeactivateProjectGrant(ctx context.Context, projectID, grantID, resourceOwner string) (details *domain.ObjectDetails, err error)

func (*Commands) DeactivateSMSConfigTwilio

func (c *Commands) DeactivateSMSConfigTwilio(ctx context.Context, instanceID, id string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateUser

func (c *Commands) DeactivateUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) DeactivateUserGrant

func (c *Commands) DeactivateUserGrant(ctx context.Context, grantID, resourceOwner string) (objectDetails *domain.ObjectDetails, err error)

func (*Commands) DeleteAction

func (c *Commands) DeleteAction(ctx context.Context, actionID, resourceOwner string, flowTypes ...domain.FlowType) (*domain.ObjectDetails, error)

func (*Commands) GenerateOrgDomainValidation

func (c *Commands) GenerateOrgDomainValidation(ctx context.Context, orgDomain *domain.OrgDomain) (token, url string, err error)

func (*Commands) GenerateSigningKeyPair

func (c *Commands) GenerateSigningKeyPair(ctx context.Context, algorithm string) error

func (*Commands) HumanAddPasswordlessInitCode

func (c *Commands) HumanAddPasswordlessInitCode(ctx context.Context, userID, resourceOwner string, passwordlessCodeGenerator crypto.Generator) (*domain.PasswordlessInitCode, error)

func (*Commands) HumanAddPasswordlessSetup

func (c *Commands) HumanAddPasswordlessSetup(ctx context.Context, userID, resourceowner string, isLoginUI bool, authenticatorPlatform domain.AuthenticatorAttachment) (*domain.WebAuthNToken, error)

func (*Commands) HumanAddPasswordlessSetupInitCode

func (c *Commands) HumanAddPasswordlessSetupInitCode(ctx context.Context, userID, resourceowner, codeID, verificationCode string, preferredPlatformType domain.AuthenticatorAttachment, passwordlessCodeGenerator crypto.Generator) (*domain.WebAuthNToken, error)

func (*Commands) HumanAddU2FSetup

func (c *Commands) HumanAddU2FSetup(ctx context.Context, userID, resourceowner string, isLoginUI bool) (*domain.WebAuthNToken, error)

func (*Commands) HumanBeginPasswordlessLogin

func (c *Commands) HumanBeginPasswordlessLogin(ctx context.Context, userID, resourceOwner string, authRequest *domain.AuthRequest, isLoginUI bool) (*domain.WebAuthNLogin, error)

func (*Commands) HumanBeginU2FLogin

func (c *Commands) HumanBeginU2FLogin(ctx context.Context, userID, resourceOwner string, authRequest *domain.AuthRequest, isLoginUI bool) (*domain.WebAuthNLogin, error)

func (*Commands) HumanCheckMFAOTP

func (c *Commands) HumanCheckMFAOTP(ctx context.Context, userID, code, resourceowner string, authRequest *domain.AuthRequest) error

func (*Commands) HumanCheckMFAOTPSetup

func (c *Commands) HumanCheckMFAOTPSetup(ctx context.Context, userID, code, userAgentID, resourceowner string) (*domain.ObjectDetails, error)

func (*Commands) HumanCheckPassword

func (c *Commands) HumanCheckPassword(ctx context.Context, orgID, userID, password string, authRequest *domain.AuthRequest, lockoutPolicy *domain.LockoutPolicy) (err error)

func (*Commands) HumanEmailVerificationCodeSent

func (c *Commands) HumanEmailVerificationCodeSent(ctx context.Context, orgID, userID string) (err error)

func (*Commands) HumanFinishPasswordlessLogin

func (c *Commands) HumanFinishPasswordlessLogin(ctx context.Context, userID, resourceOwner string, credentialData []byte, authRequest *domain.AuthRequest, isLoginUI bool) error

func (*Commands) HumanFinishU2FLogin

func (c *Commands) HumanFinishU2FLogin(ctx context.Context, userID, resourceOwner string, credentialData []byte, authRequest *domain.AuthRequest, isLoginUI bool) error

func (*Commands) HumanHumanPasswordlessSetup

func (c *Commands) HumanHumanPasswordlessSetup(ctx context.Context, userID, resourceowner, tokenName, userAgentID string, credentialData []byte) (*domain.ObjectDetails, error)

func (*Commands) HumanInitCodeSent

func (c *Commands) HumanInitCodeSent(ctx context.Context, orgID, userID string) (err error)

func (*Commands) HumanPasswordlessInitCodeSent

func (c *Commands) HumanPasswordlessInitCodeSent(ctx context.Context, userID, resourceOwner, codeID string) error

func (*Commands) HumanPasswordlessSetupInitCode

func (c *Commands) HumanPasswordlessSetupInitCode(ctx context.Context, userID, resourceowner, tokenName, userAgentID, codeID, verificationCode string, credentialData []byte, passwordlessCodeGenerator crypto.Generator) (*domain.ObjectDetails, error)

func (*Commands) HumanPhoneVerificationCodeSent

func (c *Commands) HumanPhoneVerificationCodeSent(ctx context.Context, orgID, userID string) (err error)

func (*Commands) HumanRemoveOTP

func (c *Commands) HumanRemoveOTP(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) HumanRemovePasswordless

func (c *Commands) HumanRemovePasswordless(ctx context.Context, userID, webAuthNID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) HumanRemoveU2F

func (c *Commands) HumanRemoveU2F(ctx context.Context, userID, webAuthNID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) HumanSendPasswordlessInitCode

func (c *Commands) HumanSendPasswordlessInitCode(ctx context.Context, userID, resourceOwner string, passwordlessCodeGenerator crypto.Generator) (*domain.PasswordlessInitCode, error)

func (*Commands) HumanSkipMFAInit

func (c *Commands) HumanSkipMFAInit(ctx context.Context, userID, resourceowner string) (err error)

func (*Commands) HumanVerifyInitCode

func (c *Commands) HumanVerifyInitCode(ctx context.Context, userID, resourceOwner, code, passwordString string, initCodeGenerator crypto.Generator) error

func (*Commands) HumanVerifyU2FSetup

func (c *Commands) HumanVerifyU2FSetup(ctx context.Context, userID, resourceowner, tokenName, userAgentID string, credentialData []byte) (*domain.ObjectDetails, error)

func (*Commands) HumansSignOut

func (c *Commands) HumansSignOut(ctx context.Context, agentID string, userIDs []string) error

func (*Commands) ImportHuman

func (c *Commands) ImportHuman(ctx context.Context, orgID string, human *domain.Human, passwordless bool, initCodeGenerator crypto.Generator, phoneCodeGenerator crypto.Generator, passwordlessCodeGenerator crypto.Generator) (_ *domain.Human, passwordlessCode *domain.PasswordlessInitCode, err error)

func (*Commands) LockUser

func (c *Commands) LockUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) PasswordCodeSent

func (c *Commands) PasswordCodeSent(ctx context.Context, orgID, userID string) (err error)

func (*Commands) ReactivateAction

func (c *Commands) ReactivateAction(ctx context.Context, actionID string, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) ReactivateApplication

func (c *Commands) ReactivateApplication(ctx context.Context, projectID, appID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) ReactivateDefaultIDPConfig

func (c *Commands) ReactivateDefaultIDPConfig(ctx context.Context, idpID string) (*domain.ObjectDetails, error)

func (*Commands) ReactivateIDPConfig

func (c *Commands) ReactivateIDPConfig(ctx context.Context, idpID, orgID string) (*domain.ObjectDetails, error)

func (*Commands) ReactivateOrg

func (c *Commands) ReactivateOrg(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) ReactivateProject

func (c *Commands) ReactivateProject(ctx context.Context, projectID string, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) ReactivateProjectGrant

func (c *Commands) ReactivateProjectGrant(ctx context.Context, projectID, grantID, resourceOwner string) (details *domain.ObjectDetails, err error)

func (*Commands) ReactivateUser

func (c *Commands) ReactivateUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) ReactivateUserGrant

func (c *Commands) ReactivateUserGrant(ctx context.Context, grantID, resourceOwner string) (objectDetails *domain.ObjectDetails, err error)

func (*Commands) RegisterHuman

func (c *Commands) RegisterHuman(ctx context.Context, orgID string, human *domain.Human, link *domain.UserIDPLink, orgMemberRoles []string, initCodeGenerator crypto.Generator, phoneCodeGenerator crypto.Generator) (*domain.Human, error)

func (*Commands) RemoveApplication

func (c *Commands) RemoveApplication(ctx context.Context, projectID, appID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) RemoveApplicationKey

func (c *Commands) RemoveApplicationKey(ctx context.Context, projectID, applicationID, keyID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) RemoveCustomInstanceLoginTexts

func (c *Commands) RemoveCustomInstanceLoginTexts(ctx context.Context, lang language.Tag) (*domain.ObjectDetails, error)

func (*Commands) RemoveDefaultIDPConfig

func (c *Commands) RemoveDefaultIDPConfig(ctx context.Context, idpID string, idpProviders []*domain.IDPProvider, externalIDPs ...*domain.UserIDPLink) (*domain.ObjectDetails, error)

func (*Commands) RemoveDefaultNotificationFile

func (c *Commands) RemoveDefaultNotificationFile(ctx context.Context) (*domain.ObjectDetails, error)

func (*Commands) RemoveDefaultNotificationLog

func (c *Commands) RemoveDefaultNotificationLog(ctx context.Context) (*domain.ObjectDetails, error)

func (*Commands) RemoveFontDefaultLabelPolicy

func (c *Commands) RemoveFontDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)

func (*Commands) RemoveFontLabelPolicy

func (c *Commands) RemoveFontLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveHumanAvatar

func (c *Commands) RemoveHumanAvatar(ctx context.Context, orgID, userID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveHumanPhone

func (c *Commands) RemoveHumanPhone(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) RemoveIDPConfig

func (c *Commands) RemoveIDPConfig(ctx context.Context, idpID, orgID string, cascadeRemoveProvider bool, cascadeExternalIDPs ...*domain.UserIDPLink) (*domain.ObjectDetails, error)

func (*Commands) RemoveIDPProviderFromDefaultLoginPolicy

func (c *Commands) RemoveIDPProviderFromDefaultLoginPolicy(ctx context.Context, idpProvider *domain.IDPProvider, cascadeExternalIDPs ...*domain.UserIDPLink) (*domain.ObjectDetails, error)

func (*Commands) RemoveIDPProviderFromLoginPolicy

func (c *Commands) RemoveIDPProviderFromLoginPolicy(ctx context.Context, resourceOwner string, idpProvider *domain.IDPProvider, cascadeExternalIDPs ...*domain.UserIDPLink) (*domain.ObjectDetails, error)

func (*Commands) RemoveIconDarkDefaultLabelPolicy

func (c *Commands) RemoveIconDarkDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)

func (*Commands) RemoveIconDarkLabelPolicy

func (c *Commands) RemoveIconDarkLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveIconDefaultLabelPolicy

func (c *Commands) RemoveIconDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)

func (*Commands) RemoveIconLabelPolicy

func (c *Commands) RemoveIconLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveInstanceDomain

func (c *Commands) RemoveInstanceDomain(ctx context.Context, instanceDomain string) (*domain.ObjectDetails, error)

func (*Commands) RemoveInstanceMember

func (c *Commands) RemoveInstanceMember(ctx context.Context, userID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveInstanceMessageTexts

func (c *Commands) RemoveInstanceMessageTexts(ctx context.Context, messageTextType string, lang language.Tag) (*domain.ObjectDetails, error)

func (*Commands) RemoveLabelPolicy

func (c *Commands) RemoveLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveLockoutPolicy

func (c *Commands) RemoveLockoutPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveLoginPolicy

func (c *Commands) RemoveLoginPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveLogoDarkDefaultLabelPolicy

func (c *Commands) RemoveLogoDarkDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)

func (*Commands) RemoveLogoDarkLabelPolicy

func (c *Commands) RemoveLogoDarkLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveLogoDefaultLabelPolicy

func (c *Commands) RemoveLogoDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)

func (*Commands) RemoveLogoLabelPolicy

func (c *Commands) RemoveLogoLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveMailTemplate

func (c *Commands) RemoveMailTemplate(ctx context.Context, orgID string) error

func (*Commands) RemoveMultiFactorFromDefaultLoginPolicy

func (c *Commands) RemoveMultiFactorFromDefaultLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType) (*domain.ObjectDetails, error)

func (*Commands) RemoveMultiFactorFromLoginPolicy

func (c *Commands) RemoveMultiFactorFromLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveOrgDomain

func (c *Commands) RemoveOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain) (*domain.ObjectDetails, error)

func (*Commands) RemoveOrgDomainPolicy

func (c *Commands) RemoveOrgDomainPolicy(ctx context.Context, orgID string) error

func (*Commands) RemoveOrgLoginTexts

func (c *Commands) RemoveOrgLoginTexts(ctx context.Context, resourceOwner string, lang language.Tag) (*domain.ObjectDetails, error)

func (*Commands) RemoveOrgMember

func (c *Commands) RemoveOrgMember(ctx context.Context, orgID, userID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveOrgMessageTexts

func (c *Commands) RemoveOrgMessageTexts(ctx context.Context, resourceOwner, messageTextType string, lang language.Tag) (*domain.ObjectDetails, error)

func (*Commands) RemovePasswordAgePolicy

func (c *Commands) RemovePasswordAgePolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemovePasswordComplexityPolicy

func (c *Commands) RemovePasswordComplexityPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemovePersonalAccessToken

func (c *Commands) RemovePersonalAccessToken(ctx context.Context, userID, tokenID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) RemovePrivacyPolicy

func (c *Commands) RemovePrivacyPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveProject

func (c *Commands) RemoveProject(ctx context.Context, projectID, resourceOwner string, cascadingUserGrantIDs ...string) (*domain.ObjectDetails, error)

func (*Commands) RemoveProjectGrant

func (c *Commands) RemoveProjectGrant(ctx context.Context, projectID, grantID, resourceOwner string, cascadeUserGrantIDs ...string) (details *domain.ObjectDetails, err error)

func (*Commands) RemoveProjectGrantMember

func (c *Commands) RemoveProjectGrantMember(ctx context.Context, projectID, userID, grantID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveProjectMember

func (c *Commands) RemoveProjectMember(ctx context.Context, projectID, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) RemoveProjectRole

func (c *Commands) RemoveProjectRole(ctx context.Context, projectID, key, resourceOwner string, cascadingProjectGrantIds []string, cascadeUserGrantIDs ...string) (details *domain.ObjectDetails, err error)

func (*Commands) RemoveSMSConfigTwilio

func (c *Commands) RemoveSMSConfigTwilio(ctx context.Context, instanceID, id string) (*domain.ObjectDetails, error)

func (*Commands) RemoveSecondFactorFromDefaultLoginPolicy

func (c *Commands) RemoveSecondFactorFromDefaultLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType) (*domain.ObjectDetails, error)

func (*Commands) RemoveSecondFactorFromLoginPolicy

func (c *Commands) RemoveSecondFactorFromLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType, orgID string) (*domain.ObjectDetails, error)

func (*Commands) RemoveSecretGeneratorConfig

func (c *Commands) RemoveSecretGeneratorConfig(ctx context.Context, generatorType domain.SecretGeneratorType) (*domain.ObjectDetails, error)

func (*Commands) RemoveUser

func (c *Commands) RemoveUser(ctx context.Context, userID, resourceOwner string, cascadingUserMemberships []*query.Membership, cascadingGrantIDs ...string) (*domain.ObjectDetails, error)

func (*Commands) RemoveUserGrant

func (c *Commands) RemoveUserGrant(ctx context.Context, grantID, resourceOwner string) (objectDetails *domain.ObjectDetails, err error)
func (c *Commands) RemoveUserIDPLink(ctx context.Context, link *domain.UserIDPLink) (*domain.ObjectDetails, error)

func (*Commands) RemoveUserMachineKey

func (c *Commands) RemoveUserMachineKey(ctx context.Context, userID, keyID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) RemoveUserMetadata

func (c *Commands) RemoveUserMetadata(ctx context.Context, metadataKey, userID, resourceOwner string) (_ *domain.ObjectDetails, err error)

func (*Commands) RenewRefreshTokenAndAccessToken

func (c *Commands) RenewRefreshTokenAndAccessToken(
	ctx context.Context,
	userID,
	orgID,
	refreshToken,
	agentID,
	clientID string,
	audience,
	scopes []string,
	idleExpiration,
	accessLifetime time.Duration,
) (accessToken *domain.Token, newRefreshToken string, err error)

func (*Commands) RequestSetPassword

func (c *Commands) RequestSetPassword(ctx context.Context, userID, resourceOwner string, notifyType domain.NotificationType, passwordVerificationCode crypto.Generator) (objectDetails *domain.ObjectDetails, err error)

func (*Commands) ResendInitialMail

func (c *Commands) ResendInitialMail(ctx context.Context, userID, email, resourceOwner string, initCodeGenerator crypto.Generator) (objectDetails *domain.ObjectDetails, err error)

ResendInitialMail resend inital mail and changes email if provided

func (*Commands) RevokeAccessToken

func (c *Commands) RevokeAccessToken(ctx context.Context, userID, orgID, tokenID string) (*domain.ObjectDetails, error)

func (*Commands) RevokeRefreshToken

func (c *Commands) RevokeRefreshToken(ctx context.Context, userID, orgID, tokenID string) (*domain.ObjectDetails, error)

func (*Commands) RevokeRefreshTokens

func (c *Commands) RevokeRefreshTokens(ctx context.Context, userID, orgID string, tokenIDs []string) (err error)

func (*Commands) SetCustomInstanceLoginText

func (c *Commands) SetCustomInstanceLoginText(ctx context.Context, loginText *domain.CustomLoginText) (*domain.ObjectDetails, error)

func (*Commands) SetDefaultMessageText

func (c *Commands) SetDefaultMessageText(ctx context.Context, instanceID string, messageText *domain.CustomMessageText) (*domain.ObjectDetails, error)

func (*Commands) SetInstanceCustomText

func (c *Commands) SetInstanceCustomText(ctx context.Context, customText *domain.CustomText) (*domain.CustomText, error)

func (*Commands) SetOrgLoginText

func (c *Commands) SetOrgLoginText(ctx context.Context, resourceOwner string, loginText *domain.CustomLoginText) (*domain.ObjectDetails, error)

func (*Commands) SetOrgMessageText

func (c *Commands) SetOrgMessageText(ctx context.Context, resourceOwner string, messageText *domain.CustomMessageText) (*domain.ObjectDetails, error)

func (*Commands) SetPassword

func (c *Commands) SetPassword(ctx context.Context, orgID, userID, passwordString string, oneTime bool) (objectDetails *domain.ObjectDetails, err error)

func (*Commands) SetPasswordWithVerifyCode

func (c *Commands) SetPasswordWithVerifyCode(ctx context.Context, orgID, userID, code, passwordString, userAgentID string, passwordVerificationCode crypto.Generator) (err error)

func (*Commands) SetPrimaryInstanceDomain

func (c *Commands) SetPrimaryInstanceDomain(ctx context.Context, instanceDomain string) (*domain.ObjectDetails, error)

func (*Commands) SetPrimaryOrgDomain

func (c *Commands) SetPrimaryOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain) (*domain.ObjectDetails, error)

func (*Commands) SetTriggerActions

func (c *Commands) SetTriggerActions(ctx context.Context, flowType domain.FlowType, triggerType domain.TriggerType, actionIDs []string, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) SetUpInstance

func (c *Commands) SetUpInstance(ctx context.Context, setup *InstanceSetup) (string, *domain.ObjectDetails, error)

func (*Commands) SetUpOrg

func (c *Commands) SetUpOrg(ctx context.Context, o *OrgSetup) (*domain.ObjectDetails, error)

func (*Commands) SetUserMetadata

func (c *Commands) SetUserMetadata(ctx context.Context, metadata *domain.Metadata, userID, resourceOwner string) (_ *domain.Metadata, err error)

func (*Commands) UnlockUser

func (c *Commands) UnlockUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)

func (*Commands) UserDomainClaimedSent

func (c *Commands) UserDomainClaimedSent(ctx context.Context, orgID, userID string) (err error)

func (*Commands) UserIDPLoginChecked

func (c *Commands) UserIDPLoginChecked(ctx context.Context, orgID, userID string, authRequest *domain.AuthRequest) (err error)

func (*Commands) ValidateOrgDomain

func (c *Commands) ValidateOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain, claimedUserIDs []string) (*domain.ObjectDetails, error)

func (*Commands) VerifyAPIClientSecret

func (c *Commands) VerifyAPIClientSecret(ctx context.Context, projectID, appID, secret string) (err error)

func (*Commands) VerifyHumanEmail

func (c *Commands) VerifyHumanEmail(ctx context.Context, userID, code, resourceowner string, emailCodeGenerator crypto.Generator) (*domain.ObjectDetails, error)

func (*Commands) VerifyHumanPhone

func (c *Commands) VerifyHumanPhone(ctx context.Context, userID, code, resourceowner string, phoneCodeGenerator crypto.Generator) (*domain.ObjectDetails, error)

func (*Commands) VerifyOIDCClientSecret

func (c *Commands) VerifyOIDCClientSecret(ctx context.Context, projectID, appID, secret string) (err error)

type CustomLoginTextReadModel

type CustomLoginTextReadModel struct {
	eventstore.WriteModel

	Language language.Tag
	State    domain.PolicyState

	SelectAccountTitle                     string
	SelectAccountDescription               string
	SelectAccountTitleLinkingProcess       string
	SelectAccountDescriptionLinkingProcess string
	SelectAccountOtherUser                 string
	SelectAccountSessionStateActive        string
	SelectAccountSessionStateInactive      string
	SelectAccountUserMustBeMemberOfOrg     string

	LoginTitle                     string
	LoginDescription               string
	LoginTitleLinkingProcess       string
	LoginDescriptionLinkingProcess string
	LoginNameLabel                 string
	LoginUsernamePlaceholder       string
	LoginLoginnamePlaceholder      string
	LoginRegisterButtonText        string
	LoginNextButtonText            string
	LoginExternalUserDescription   string
	LoginUserMustBeMemberOfOrg     string

	PasswordTitle          string
	PasswordDescription    string
	PasswordLabel          string
	PasswordResetLinkText  string
	PasswordBackButtonText string
	PasswordNextButtonText string
	PasswordMinLength      string
	PasswordHasUppercase   string
	PasswordHasLowercase   string
	PasswordHasNumber      string
	PasswordHasSymbol      string
	PasswordConfirmation   string

	UsernameChangeTitle            string
	UsernameChangeDescription      string
	UsernameChangeUsernameLabel    string
	UsernameChangeCancelButtonText string
	UsernameChangeNextButtonText   string

	UsernameChangeDoneTitle          string
	UsernameChangeDoneDescription    string
	UsernameChangeDoneNextButtonText string

	InitPasswordTitle                   string
	InitPasswordDescription             string
	InitPasswordCodeLabel               string
	InitPasswordNewPasswordLabel        string
	InitPasswordNewPasswordConfirmLabel string
	InitPasswordNextButtonText          string
	InitPasswordResendButtonText        string

	InitPasswordDoneTitle            string
	InitPasswordDoneDescription      string
	InitPasswordDoneNextButtonText   string
	InitPasswordDoneCancelButtonText string

	EmailVerificationTitle            string
	EmailVerificationDescription      string
	EmailVerificationCodeLabel        string
	EmailVerificationNextButtonText   string
	EmailVerificationResendButtonText string

	EmailVerificationDoneTitle            string
	EmailVerificationDoneDescription      string
	EmailVerificationDoneNextButtonText   string
	EmailVerificationDoneCancelButtonText string
	EmailVerificationDoneLoginButtonText  string

	InitializeTitle              string
	InitializeDescription        string
	InitializeCodeLabel          string
	InitializeNewPassword        string
	InitializeNewPasswordConfirm string
	InitializeResendButtonText   string
	InitializeNextButtonText     string

	InitializeDoneTitle           string
	InitializeDoneDescription     string
	InitializeDoneAbortButtonText string
	InitializeDoneNextButtonText  string

	InitMFAPromptTitle          string
	InitMFAPromptDescription    string
	InitMFAPromptOTPOption      string
	InitMFAPromptU2FOption      string
	InitMFAPromptSkipButtonText string
	InitMFAPromptNextButtonText string

	InitMFAOTPTitle            string
	InitMFAOTPDescription      string
	InitMFAOTPDescriptionOTP   string
	InitMFAOTPSecretLabel      string
	InitMFAOTPCodeLabel        string
	InitMFAOTPNextButtonText   string
	InitMFAOTPCancelButtonText string

	InitMFAU2FTitle                   string
	InitMFAU2FDescription             string
	InitMFAU2FTokenNameLabel          string
	InitMFAU2FRegisterTokenButtonText string
	InitMFAU2FNotSupported            string
	InitMFAU2FErrorRetry              string

	InitMFADoneTitle           string
	InitMFADoneDescription     string
	InitMFADoneAbortButtonText string
	InitMFADoneNextButtonText  string

	MFAProvidersChooseOther string
	MFAProvidersOTP         string
	MFAProvidersU2F         string

	VerifyMFAOTPTitle          string
	VerifyMFAOTPDescription    string
	VerifyMFAOTPCodeLabel      string
	VerifyMFAOTPNextButtonText string

	VerifyMFAU2FTitle             string
	VerifyMFAU2FDescription       string
	VerifyMFAU2FValidateTokenText string
	VerifyMFAU2FNotSupported      string
	VerifyMFAU2FErrorRetry        string

	PasswordlessTitle                   string
	PasswordlessDescription             string
	PasswordlessLoginWithPwButtonText   string
	PasswordlessValidateTokenButtonText string
	PasswordlessNotSupported            string
	PasswordlessErrorRetry              string

	PasswordlessPromptTitle                  string
	PasswordlessPromptDescription            string
	PasswordlessPromptDescriptionInit        string
	PasswordlessPromptPasswordlessButtonText string
	PasswordlessPromptNextButtonText         string
	PasswordlessPromptSkipButtonText         string

	PasswordlessRegistrationTitle                   string
	PasswordlessRegistrationDescription             string
	PasswordlessRegistrationRegisterTokenButtonText string
	PasswordlessRegistrationTokenNameLabel          string
	PasswordlessRegistrationNotSupported            string
	PasswordlessRegistrationErrorRetry              string

	PasswordlessRegistrationDoneTitle            string
	PasswordlessRegistrationDoneDescription      string
	PasswordlessRegistrationDoneDescriptionClose string
	PasswordlessRegistrationDoneNextButtonText   string
	PasswordlessRegistrationDoneCancelButtonText string

	PasswordChangeTitle                   string
	PasswordChangeDescription             string
	PasswordChangeOldPasswordLabel        string
	PasswordChangeNewPasswordLabel        string
	PasswordChangeNewPasswordConfirmLabel string
	PasswordChangeCancelButtonText        string
	PasswordChangeNextButtonText          string

	PasswordChangeDoneTitle          string
	PasswordChangeDoneDescription    string
	PasswordChangeDoneNextButtonText string

	PasswordResetDoneTitle          string
	PasswordResetDoneDescription    string
	PasswordResetDoneNextButtonText string

	RegistrationOptionTitle                    string
	RegistrationOptionDescription              string
	RegistrationOptionUserNameButtonText       string
	RegistrationOptionExternalLoginDescription string

	RegistrationUserTitle                  string
	RegistrationUserDescription            string
	RegistrationUserDescriptionOrgRegister string
	RegistrationUserFirstnameLabel         string
	RegistrationUserLastnameLabel          string
	RegistrationUserEmailLabel             string
	RegistrationUserUsernameLabel          string
	RegistrationUserLanguageLabel          string
	RegistrationUserGenderLabel            string
	RegistrationUserPasswordLabel          string
	RegistrationUserPasswordConfirmLabel   string
	RegistrationUserTOSAndPrivacyLabel     string
	RegistrationUserTOSConfirm             string
	RegistrationUserTOSLink                string
	RegistrationUserTOSLinkText            string
	RegistrationUserTOSConfirmAnd          string
	RegistrationUserPrivacyLink            string
	RegistrationUserPrivacyLinkText        string
	RegistrationUserNextButtonText         string
	RegistrationUserBackButtonText         string

	ExternalRegistrationUserOverviewTitle              string
	ExternalRegistrationUserOverviewDescription        string
	ExternalRegistrationUserOverviewEmailLabel         string
	ExternalRegistrationUserOverviewUsernameLabel      string
	ExternalRegistrationUserOverviewFirstnameLabel     string
	ExternalRegistrationUserOverviewLastnameLabel      string
	ExternalRegistrationUserOverviewNicknameLabel      string
	ExternalRegistrationUserOverviewLanguageLabel      string
	ExternalRegistrationUserOverviewPhoneLabel         string
	ExternalRegistrationUserOverviewTOSAndPrivacyLabel string
	ExternalRegistrationUserOverviewTOSConfirm         string
	ExternalRegistrationUserOverviewTOSLink            string
	ExternalRegistrationUserOverviewTOSLinkText        string
	ExternalRegistrationUserOverviewTOSConfirmAnd      string
	ExternalRegistrationUserOverviewPrivacyLink        string
	ExternalRegistrationUserOverviewPrivacyLinkText    string
	ExternalRegistrationUserOverviewBackButtonText     string
	ExternalRegistrationUserOverviewNextButtonText     string

	RegisterOrgTitle                string
	RegisterOrgDescription          string
	RegisterOrgOrgNameLabel         string
	RegisterOrgFirstnameLabel       string
	RegisterOrgLastnameLabel        string
	RegisterOrgUsernameLabel        string
	RegisterOrgEmailLabel           string
	RegisterOrgPasswordLabel        string
	RegisterOrgPasswordConfirmLabel string
	RegisterOrgTOSAndPrivacyLabel   string
	RegisterOrgTOSConfirm           string
	RegisterOrgTOSLinkText          string
	RegisterOrgTOSConfirmAnd        string
	RegisterOrgPrivacyLinkText      string
	RegisterOrgSaveButtonText       string

	LinkingUserDoneTitle            string
	LinkingUserDoneDescription      string
	LinkingUserDoneCancelButtonText string
	LinkingUserDoneNextButtonText   string

	ExternalUserNotFoundTitle                  string
	ExternalUserNotFoundDescription            string
	ExternalUserNotFoundLinkButtonText         string
	ExternalUserNotFoundAutoRegisterButtonText string
	ExternalUserNotFoundTOSAndPrivacyLabel     string
	ExternalUserNotFoundTOSConfirm             string
	ExternalUserNotFoundTOSLinkText            string
	ExternalUserNotFoundTOSConfirmAnd          string
	ExternalUserNotFoundPrivacyLinkText        string

	SuccessLoginTitle                   string
	SuccessLoginAutoRedirectDescription string
	SuccessLoginRedirectedDescription   string
	SuccessLoginNextButtonText          string

	LogoutDoneTitle           string
	LogoutDoneDescription     string
	LogoutDoneLoginButtonText string

	FooterTOS           string
	FooterPrivacyPolicy string
	FooterHelp          string
	FooterHelpLink      string
}

func (*CustomLoginTextReadModel) Reduce

func (wm *CustomLoginTextReadModel) Reduce() error

type CustomLoginTextsReadModel

type CustomLoginTextsReadModel struct {
	eventstore.WriteModel
	CustomLoginTexts map[string]*CustomText
}

func (*CustomLoginTextsReadModel) Reduce

func (wm *CustomLoginTextsReadModel) Reduce() error

type CustomMessageTemplatesReadModel

type CustomMessageTemplatesReadModel struct {
	eventstore.WriteModel
	CustomMessageTemplate map[string]*CustomText
}

func (*CustomMessageTemplatesReadModel) Reduce

type CustomMessageTextReadModel

type CustomMessageTextReadModel struct {
	eventstore.WriteModel

	MessageTextType string
	Language        language.Tag
	Title           string
	PreHeader       string
	Subject         string
	Greeting        string
	Text            string
	ButtonText      string
	FooterText      string

	State domain.PolicyState
}

func (*CustomMessageTextReadModel) Reduce

func (wm *CustomMessageTextReadModel) Reduce() error

type CustomText

type CustomText struct {
	Template   string
	Language   language.Tag
	Title      string
	PreHeader  string
	Subject    string
	Greeting   string
	Text       string
	ButtonText string
	FooterText string
	State      domain.PolicyState
}

type CustomTextWriteModel

type CustomTextWriteModel struct {
	eventstore.WriteModel

	Key      string
	Language language.Tag
	Text     string
	State    domain.CustomTextState
}

func (*CustomTextWriteModel) Reduce

func (wm *CustomTextWriteModel) Reduce() error

type DebugNotificationWriteModel

type DebugNotificationWriteModel struct {
	eventstore.WriteModel

	Compact bool
	State   domain.NotificationProviderState
}

func (*DebugNotificationWriteModel) Reduce

func (wm *DebugNotificationWriteModel) Reduce() error

type Domain

type Domain struct {
	Domain   string
	Verified bool
	State    domain.OrgDomainState
}

type Email

type Email struct {
	Address  string
	Verified bool
}

func (*Email) Valid

func (e *Email) Valid() bool

type ExistingLabelPoliciesReadModel

type ExistingLabelPoliciesReadModel struct {
	eventstore.WriteModel
	// contains filtered or unexported fields
}

func NewExistingLabelPoliciesReadModel

func NewExistingLabelPoliciesReadModel(ctx context.Context) *ExistingLabelPoliciesReadModel

func (*ExistingLabelPoliciesReadModel) AppendEvents

func (rm *ExistingLabelPoliciesReadModel) AppendEvents(events ...eventstore.Event)

func (*ExistingLabelPoliciesReadModel) Query

func (*ExistingLabelPoliciesReadModel) Reduce

type FlowWriteModel

type FlowWriteModel struct {
	eventstore.WriteModel

	FlowType domain.FlowType
	State    domain.FlowState
	Triggers map[domain.TriggerType][]string
}

func NewFlowWriteModel

func NewFlowWriteModel(flowType domain.FlowType, resourceOwner string) *FlowWriteModel

func (*FlowWriteModel) Reduce

func (wm *FlowWriteModel) Reduce() error

type HumanAddressWriteModel

type HumanAddressWriteModel struct {
	eventstore.WriteModel

	Country       string
	Locality      string
	PostalCode    string
	Region        string
	StreetAddress string

	State domain.AddressState
}

func NewHumanAddressWriteModel

func NewHumanAddressWriteModel(userID, resourceOwner string) *HumanAddressWriteModel

func (*HumanAddressWriteModel) NewChangedEvent

func (wm *HumanAddressWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	country,
	locality,
	postalCode,
	region,
	streetAddress string,
) (*user.HumanAddressChangedEvent, bool, error)

func (*HumanAddressWriteModel) Query

func (*HumanAddressWriteModel) Reduce

func (wm *HumanAddressWriteModel) Reduce() error

type HumanEmailWriteModel

type HumanEmailWriteModel struct {
	eventstore.WriteModel

	Email           string
	IsEmailVerified bool

	Code             *crypto.CryptoValue
	CodeCreationDate time.Time
	CodeExpiry       time.Duration

	UserState domain.UserState
}

func NewHumanEmailWriteModel

func NewHumanEmailWriteModel(userID, resourceOwner string) *HumanEmailWriteModel

func (*HumanEmailWriteModel) NewChangedEvent

func (wm *HumanEmailWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	email string,
) (*user.HumanEmailChangedEvent, bool)

func (*HumanEmailWriteModel) Query

func (*HumanEmailWriteModel) Reduce

func (wm *HumanEmailWriteModel) Reduce() error

type HumanInitCodeWriteModel

type HumanInitCodeWriteModel struct {
	eventstore.WriteModel

	Email           string
	IsEmailVerified bool

	Code             *crypto.CryptoValue
	CodeCreationDate time.Time
	CodeExpiry       time.Duration

	UserState domain.UserState
}

func NewHumanInitCodeWriteModel

func NewHumanInitCodeWriteModel(userID, resourceOwner string) *HumanInitCodeWriteModel

func (*HumanInitCodeWriteModel) NewChangedEvent

func (wm *HumanInitCodeWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	email string,
) (*user.HumanEmailChangedEvent, bool)

func (*HumanInitCodeWriteModel) Query

func (*HumanInitCodeWriteModel) Reduce

func (wm *HumanInitCodeWriteModel) Reduce() error

type HumanOTPWriteModel

type HumanOTPWriteModel struct {
	eventstore.WriteModel

	State  domain.MFAState
	Secret *crypto.CryptoValue
}

func NewHumanOTPWriteModel

func NewHumanOTPWriteModel(userID, resourceOwner string) *HumanOTPWriteModel

func (*HumanOTPWriteModel) Query

func (*HumanOTPWriteModel) Reduce

func (wm *HumanOTPWriteModel) Reduce() error

type HumanPasswordWriteModel

type HumanPasswordWriteModel struct {
	eventstore.WriteModel

	Secret               *crypto.CryptoValue
	SecretChangeRequired bool

	Code                     *crypto.CryptoValue
	CodeCreationDate         time.Time
	CodeExpiry               time.Duration
	PasswordCheckFailedCount uint64

	UserState domain.UserState
}

func NewHumanPasswordWriteModel

func NewHumanPasswordWriteModel(userID, resourceOwner string) *HumanPasswordWriteModel

func (*HumanPasswordWriteModel) Query

func (*HumanPasswordWriteModel) Reduce

func (wm *HumanPasswordWriteModel) Reduce() error

type HumanPasswordlessInitCodeWriteModel

type HumanPasswordlessInitCodeWriteModel struct {
	eventstore.WriteModel

	CodeID     string
	Attempts   uint8
	CryptoCode *crypto.CryptoValue
	Expiration time.Duration
	State      domain.PasswordlessInitCodeState
}

func NewHumanPasswordlessInitCodeWriteModel

func NewHumanPasswordlessInitCodeWriteModel(userID, codeID, resourceOwner string) *HumanPasswordlessInitCodeWriteModel

func (*HumanPasswordlessInitCodeWriteModel) AppendEvents

func (wm *HumanPasswordlessInitCodeWriteModel) AppendEvents(events ...eventstore.Event)

func (*HumanPasswordlessInitCodeWriteModel) Query

func (*HumanPasswordlessInitCodeWriteModel) Reduce

type HumanPasswordlessLoginReadModel

type HumanPasswordlessLoginReadModel struct {
	eventstore.WriteModel

	AuthReqID            string
	Challenge            string
	AllowedCredentialIDs [][]byte
	UserVerification     domain.UserVerificationRequirement
	State                domain.UserState
}

func NewHumanPasswordlessLoginReadModel

func NewHumanPasswordlessLoginReadModel(userID, authReqID, resourceOwner string) *HumanPasswordlessLoginReadModel

func (*HumanPasswordlessLoginReadModel) AppendEvents

func (wm *HumanPasswordlessLoginReadModel) AppendEvents(events ...eventstore.Event)

func (*HumanPasswordlessLoginReadModel) Query

func (*HumanPasswordlessLoginReadModel) Reduce

type HumanPasswordlessTokensReadModel

type HumanPasswordlessTokensReadModel struct {
	eventstore.WriteModel

	WebAuthNTokens []*HumanWebAuthNWriteModel
	UserState      domain.UserState
}

func NewHumanPasswordlessTokensReadModel

func NewHumanPasswordlessTokensReadModel(userID, resourceOwner string) *HumanPasswordlessTokensReadModel

func (*HumanPasswordlessTokensReadModel) AppendEvents

func (wm *HumanPasswordlessTokensReadModel) AppendEvents(events ...eventstore.Event)

func (*HumanPasswordlessTokensReadModel) Query

func (*HumanPasswordlessTokensReadModel) Reduce

func (*HumanPasswordlessTokensReadModel) WebAuthNTokenByID

func (wm *HumanPasswordlessTokensReadModel) WebAuthNTokenByID(id string) (idx int, token *HumanWebAuthNWriteModel)

type HumanPhoneWriteModel

type HumanPhoneWriteModel struct {
	eventstore.WriteModel

	Phone           string
	IsPhoneVerified bool

	Code             *crypto.CryptoValue
	CodeCreationDate time.Time
	CodeExpiry       time.Duration

	State     domain.PhoneState
	UserState domain.UserState
}

func NewHumanPhoneWriteModel

func NewHumanPhoneWriteModel(userID, resourceOwner string) *HumanPhoneWriteModel

func (*HumanPhoneWriteModel) NewChangedEvent

func (wm *HumanPhoneWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	phone string,
) (*user.HumanPhoneChangedEvent, bool)

func (*HumanPhoneWriteModel) Query

func (*HumanPhoneWriteModel) Reduce

func (wm *HumanPhoneWriteModel) Reduce() error

type HumanProfileWriteModel

type HumanProfileWriteModel struct {
	eventstore.WriteModel

	FirstName         string
	LastName          string
	NickName          string
	DisplayName       string
	PreferredLanguage language.Tag
	Gender            domain.Gender

	UserState domain.UserState
}

func NewHumanProfileWriteModel

func NewHumanProfileWriteModel(userID, resourceOwner string) *HumanProfileWriteModel

func (*HumanProfileWriteModel) NewChangedEvent

func (wm *HumanProfileWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	firstName,
	lastName,
	nickName,
	displayName string,
	preferredLanguage language.Tag,
	gender domain.Gender,
) (*user.HumanProfileChangedEvent, bool, error)

func (*HumanProfileWriteModel) Query

func (*HumanProfileWriteModel) Reduce

func (wm *HumanProfileWriteModel) Reduce() error

type HumanRefreshTokenWriteModel

type HumanRefreshTokenWriteModel struct {
	eventstore.WriteModel

	TokenID      string
	RefreshToken string

	UserState      domain.UserState
	IdleExpiration time.Time
	Expiration     time.Time
}

func NewHumanRefreshTokenWriteModel

func NewHumanRefreshTokenWriteModel(userID, resourceOwner, tokenID string) *HumanRefreshTokenWriteModel

func (*HumanRefreshTokenWriteModel) AppendEvents

func (wm *HumanRefreshTokenWriteModel) AppendEvents(events ...eventstore.Event)

func (*HumanRefreshTokenWriteModel) Query

func (*HumanRefreshTokenWriteModel) Reduce

func (wm *HumanRefreshTokenWriteModel) Reduce() error

type HumanU2FLoginReadModel

type HumanU2FLoginReadModel struct {
	eventstore.WriteModel

	AuthReqID            string
	Challenge            string
	AllowedCredentialIDs [][]byte
	UserVerification     domain.UserVerificationRequirement
	State                domain.UserState
}

func NewHumanU2FLoginReadModel

func NewHumanU2FLoginReadModel(userID, authReqID, resourceOwner string) *HumanU2FLoginReadModel

func (*HumanU2FLoginReadModel) AppendEvents

func (wm *HumanU2FLoginReadModel) AppendEvents(events ...eventstore.Event)

func (*HumanU2FLoginReadModel) Query

func (*HumanU2FLoginReadModel) Reduce

func (wm *HumanU2FLoginReadModel) Reduce() error

type HumanU2FTokensReadModel

type HumanU2FTokensReadModel struct {
	eventstore.WriteModel

	WebAuthNTokens []*HumanWebAuthNWriteModel
	UserState      domain.UserState
}

func NewHumanU2FTokensReadModel

func NewHumanU2FTokensReadModel(userID, resourceOwner string) *HumanU2FTokensReadModel

func (*HumanU2FTokensReadModel) AppendEvents

func (wm *HumanU2FTokensReadModel) AppendEvents(events ...eventstore.Event)

func (*HumanU2FTokensReadModel) Query

func (*HumanU2FTokensReadModel) Reduce

func (wm *HumanU2FTokensReadModel) Reduce() error

func (*HumanU2FTokensReadModel) WebAuthNTokenByID

func (wm *HumanU2FTokensReadModel) WebAuthNTokenByID(id string) (idx int, token *HumanWebAuthNWriteModel)

type HumanWebAuthNWriteModel

type HumanWebAuthNWriteModel struct {
	eventstore.WriteModel

	WebauthNTokenID string
	Challenge       string

	KeyID             []byte
	PublicKey         []byte
	AttestationType   string
	AAGUID            []byte
	SignCount         uint32
	WebAuthNTokenName string

	State domain.MFAState
}

func NewHumanWebAuthNWriteModel

func NewHumanWebAuthNWriteModel(userID, webAuthNTokenID, resourceOwner string) *HumanWebAuthNWriteModel

func (*HumanWebAuthNWriteModel) AppendEvents

func (wm *HumanWebAuthNWriteModel) AppendEvents(events ...eventstore.Event)

func (*HumanWebAuthNWriteModel) Query

func (*HumanWebAuthNWriteModel) Reduce

func (wm *HumanWebAuthNWriteModel) Reduce() error

type HumanWriteModel

type HumanWriteModel struct {
	eventstore.WriteModel

	UserName string

	FirstName         string
	LastName          string
	NickName          string
	DisplayName       string
	PreferredLanguage language.Tag
	Gender            domain.Gender
	Avatar            string

	Email           string
	IsEmailVerified bool

	Phone           string
	IsPhoneVerified bool

	Country       string
	Locality      string
	PostalCode    string
	Region        string
	StreetAddress string

	Secret               *crypto.CryptoValue
	SecretChangeRequired bool

	UserState domain.UserState
}

func NewHumanWriteModel

func NewHumanWriteModel(userID, resourceOwner string) *HumanWriteModel

func (*HumanWriteModel) Query

func (*HumanWriteModel) Reduce

func (wm *HumanWriteModel) Reduce() error

type IAMSMSConfigWriteModel

type IAMSMSConfigWriteModel struct {
	eventstore.WriteModel

	ID     string
	Twilio *TwilioConfig
	State  domain.SMSConfigState
}

func NewIAMSMSConfigWriteModel

func NewIAMSMSConfigWriteModel(instanceID, id string) *IAMSMSConfigWriteModel

func (*IAMSMSConfigWriteModel) NewChangedEvent

func (wm *IAMSMSConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, id, sid, senderNumber string) (*instance.SMSConfigTwilioChangedEvent, bool, error)

func (*IAMSMSConfigWriteModel) Query

func (*IAMSMSConfigWriteModel) Reduce

func (wm *IAMSMSConfigWriteModel) Reduce() error

type IDPConfigWriteModel

type IDPConfigWriteModel struct {
	eventstore.WriteModel

	State domain.IDPConfigState

	ConfigID     string
	Name         string
	AutoRegister bool
	StylingType  domain.IDPConfigStylingType
}

func (*IDPConfigWriteModel) AppendEvents

func (rm *IDPConfigWriteModel) AppendEvents(events ...eventstore.Event)

func (*IDPConfigWriteModel) Reduce

func (rm *IDPConfigWriteModel) Reduce() error

type IDPJWTConfigWriteModel

type IDPJWTConfigWriteModel struct {
	JWTConfigWriteModel
}

func NewOrgIDPJWTConfigWriteModel

func NewOrgIDPJWTConfigWriteModel(idpConfigID, orgID string) *IDPJWTConfigWriteModel

func (*IDPJWTConfigWriteModel) AppendEvents

func (wm *IDPJWTConfigWriteModel) AppendEvents(events ...eventstore.Event)

func (*IDPJWTConfigWriteModel) NewChangedEvent

func (wm *IDPJWTConfigWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	idpConfigID,
	jwtEndpoint,
	issuer,
	keysEndpoint,
	headerName string,
) (*org.IDPJWTConfigChangedEvent, bool, error)

func (*IDPJWTConfigWriteModel) Query

func (*IDPJWTConfigWriteModel) Reduce

func (wm *IDPJWTConfigWriteModel) Reduce() error

type IDPOIDCConfigWriteModel

type IDPOIDCConfigWriteModel struct {
	OIDCConfigWriteModel
}

func NewOrgIDPOIDCConfigWriteModel

func NewOrgIDPOIDCConfigWriteModel(idpConfigID, orgID string) *IDPOIDCConfigWriteModel

func (*IDPOIDCConfigWriteModel) AppendEvents

func (wm *IDPOIDCConfigWriteModel) AppendEvents(events ...eventstore.Event)

func (*IDPOIDCConfigWriteModel) NewChangedEvent

func (wm *IDPOIDCConfigWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	idpConfigID,
	clientID,
	issuer,
	authorizationEndpoint,
	tokenEndpoint,
	clientSecretString string,
	secretCrypto crypto.Crypto,
	idpDisplayNameMapping,
	userNameMapping domain.OIDCMappingField,
	scopes ...string,
) (*org.IDPOIDCConfigChangedEvent, bool, error)

func (*IDPOIDCConfigWriteModel) Query

func (*IDPOIDCConfigWriteModel) Reduce

func (wm *IDPOIDCConfigWriteModel) Reduce() error

type IdentityProviderWriteModel

type IdentityProviderWriteModel struct {
	eventstore.WriteModel

	IDPConfigID     string
	IDPProviderType domain.IdentityProviderType
	State           domain.IdentityProviderState
}

func (*IdentityProviderWriteModel) Reduce

func (wm *IdentityProviderWriteModel) Reduce() error

type InstanceCustomLoginTextReadModel

type InstanceCustomLoginTextReadModel struct {
	CustomLoginTextReadModel
}

func NewInstanceCustomLoginTextReadModel

func NewInstanceCustomLoginTextReadModel(ctx context.Context, lang language.Tag) *InstanceCustomLoginTextReadModel

func (*InstanceCustomLoginTextReadModel) AppendEvents

func (wm *InstanceCustomLoginTextReadModel) AppendEvents(events ...eventstore.Event)

func (*InstanceCustomLoginTextReadModel) Query

func (*InstanceCustomLoginTextReadModel) Reduce

type InstanceCustomMessageTextWriteModel

type InstanceCustomMessageTextWriteModel struct {
	CustomMessageTextReadModel
}

func NewInstanceCustomMessageTextWriteModel

func NewInstanceCustomMessageTextWriteModel(ctx context.Context, messageTextType string, lang language.Tag) *InstanceCustomMessageTextWriteModel

func (*InstanceCustomMessageTextWriteModel) AppendEvents

func (wm *InstanceCustomMessageTextWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceCustomMessageTextWriteModel) Query

func (*InstanceCustomMessageTextWriteModel) Reduce

type InstanceCustomTextWriteModel

type InstanceCustomTextWriteModel struct {
	CustomTextWriteModel
}

func NewInstanceCustomTextWriteModel

func NewInstanceCustomTextWriteModel(ctx context.Context, key string, language language.Tag) *InstanceCustomTextWriteModel

func (*InstanceCustomTextWriteModel) AppendEvents

func (wm *InstanceCustomTextWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceCustomTextWriteModel) Query

func (*InstanceCustomTextWriteModel) Reduce

func (wm *InstanceCustomTextWriteModel) Reduce() error

type InstanceDebugNotificationFileWriteModel

type InstanceDebugNotificationFileWriteModel struct {
	DebugNotificationWriteModel
}

func NewInstanceDebugNotificationFileWriteModel

func NewInstanceDebugNotificationFileWriteModel(ctx context.Context) *InstanceDebugNotificationFileWriteModel

func (*InstanceDebugNotificationFileWriteModel) AppendEvents

func (wm *InstanceDebugNotificationFileWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceDebugNotificationFileWriteModel) IsValid

func (*InstanceDebugNotificationFileWriteModel) NewChangedEvent

func (*InstanceDebugNotificationFileWriteModel) Query

func (*InstanceDebugNotificationFileWriteModel) Reduce

type InstanceDebugNotificationLogWriteModel

type InstanceDebugNotificationLogWriteModel struct {
	DebugNotificationWriteModel
}

func NewInstanceDebugNotificationLogWriteModel

func NewInstanceDebugNotificationLogWriteModel(ctx context.Context) *InstanceDebugNotificationLogWriteModel

func (*InstanceDebugNotificationLogWriteModel) AppendEvents

func (wm *InstanceDebugNotificationLogWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceDebugNotificationLogWriteModel) IsValid

func (*InstanceDebugNotificationLogWriteModel) NewChangedEvent

func (*InstanceDebugNotificationLogWriteModel) Query

func (*InstanceDebugNotificationLogWriteModel) Reduce

type InstanceDomainPolicyWriteModel

type InstanceDomainPolicyWriteModel struct {
	PolicyDomainWriteModel
}

func NewInstanceDomainPolicyWriteModel

func NewInstanceDomainPolicyWriteModel(ctx context.Context) *InstanceDomainPolicyWriteModel

func (*InstanceDomainPolicyWriteModel) AppendEvents

func (wm *InstanceDomainPolicyWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceDomainPolicyWriteModel) NewChangedEvent

func (wm *InstanceDomainPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	userLoginMustBeDomain,
	validateOrgDomain bool) (*instance.DomainPolicyChangedEvent, bool)

func (*InstanceDomainPolicyWriteModel) Query

func (*InstanceDomainPolicyWriteModel) Reduce

type InstanceDomainWriteModel

type InstanceDomainWriteModel struct {
	eventstore.WriteModel

	Domain    string
	Generated bool
	State     domain.InstanceDomainState
}

func NewInstanceDomainWriteModel

func NewInstanceDomainWriteModel(ctx context.Context, instanceDomain string) *InstanceDomainWriteModel

func (*InstanceDomainWriteModel) AppendEvents

func (wm *InstanceDomainWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceDomainWriteModel) Query

func (*InstanceDomainWriteModel) Reduce

func (wm *InstanceDomainWriteModel) Reduce() error

type InstanceIDPConfigWriteModel

type InstanceIDPConfigWriteModel struct {
	IDPConfigWriteModel
}

func NewInstanceIDPConfigWriteModel

func NewInstanceIDPConfigWriteModel(ctx context.Context, configID string) *InstanceIDPConfigWriteModel

func (*InstanceIDPConfigWriteModel) AppendAndReduce

func (wm *InstanceIDPConfigWriteModel) AppendAndReduce(events ...eventstore.Event) error

func (*InstanceIDPConfigWriteModel) AppendEvents

func (wm *InstanceIDPConfigWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceIDPConfigWriteModel) NewChangedEvent

func (wm *InstanceIDPConfigWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	configID,
	name string,
	stylingType domain.IDPConfigStylingType,
	autoRegister bool,
) (*instance.IDPConfigChangedEvent, bool)

func (*InstanceIDPConfigWriteModel) Query

func (*InstanceIDPConfigWriteModel) Reduce

func (wm *InstanceIDPConfigWriteModel) Reduce() error

type InstanceIDPJWTConfigWriteModel

type InstanceIDPJWTConfigWriteModel struct {
	JWTConfigWriteModel
}

func NewInstanceIDPJWTConfigWriteModel

func NewInstanceIDPJWTConfigWriteModel(ctx context.Context, idpConfigID string) *InstanceIDPJWTConfigWriteModel

func (*InstanceIDPJWTConfigWriteModel) AppendEvents

func (wm *InstanceIDPJWTConfigWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceIDPJWTConfigWriteModel) NewChangedEvent

func (wm *InstanceIDPJWTConfigWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	idpConfigID,
	jwtEndpoint,
	issuer,
	keysEndpoint,
	headerName string,
) (*instance.IDPJWTConfigChangedEvent, bool, error)

func (*InstanceIDPJWTConfigWriteModel) Query

func (*InstanceIDPJWTConfigWriteModel) Reduce

type InstanceIDPOIDCConfigWriteModel

type InstanceIDPOIDCConfigWriteModel struct {
	OIDCConfigWriteModel
}

func NewInstanceIDPOIDCConfigWriteModel

func NewInstanceIDPOIDCConfigWriteModel(ctx context.Context, idpConfigID string) *InstanceIDPOIDCConfigWriteModel

func (*InstanceIDPOIDCConfigWriteModel) AppendEvents

func (wm *InstanceIDPOIDCConfigWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceIDPOIDCConfigWriteModel) NewChangedEvent

func (wm *InstanceIDPOIDCConfigWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	idpConfigID,
	clientID,
	issuer,
	authorizationEndpoint,
	tokenEndpoint,
	clientSecretString string,
	secretCrypto crypto.Crypto,
	idpDisplayNameMapping,
	userNameMapping domain.OIDCMappingField,
	scopes ...string,
) (*instance.IDPOIDCConfigChangedEvent, bool, error)

func (*InstanceIDPOIDCConfigWriteModel) Query

func (*InstanceIDPOIDCConfigWriteModel) Reduce

type InstanceIdentityProviderWriteModel

type InstanceIdentityProviderWriteModel struct {
	IdentityProviderWriteModel
}

func NewInstanceIdentityProviderWriteModel

func NewInstanceIdentityProviderWriteModel(ctx context.Context, idpConfigID string) *InstanceIdentityProviderWriteModel

func (*InstanceIdentityProviderWriteModel) AppendEvents

func (wm *InstanceIdentityProviderWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceIdentityProviderWriteModel) Query

func (*InstanceIdentityProviderWriteModel) Reduce

type InstanceLabelPolicyWriteModel

type InstanceLabelPolicyWriteModel struct {
	LabelPolicyWriteModel
}

func NewInstanceLabelPolicyWriteModel

func NewInstanceLabelPolicyWriteModel(ctx context.Context) *InstanceLabelPolicyWriteModel

func (*InstanceLabelPolicyWriteModel) AppendEvents

func (wm *InstanceLabelPolicyWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceLabelPolicyWriteModel) NewChangedEvent

func (wm *InstanceLabelPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	primaryColor,
	backgroundColor,
	warnColor,
	fontColor,
	primaryColorDark,
	backgroundColorDark,
	warnColorDark,
	fontColorDark string,
	hideLoginNameSuffix,
	errorMsgPopup,
	disableWatermark bool,
) (*instance.LabelPolicyChangedEvent, bool)

func (*InstanceLabelPolicyWriteModel) Query

func (*InstanceLabelPolicyWriteModel) Reduce

func (wm *InstanceLabelPolicyWriteModel) Reduce() error

type InstanceLockoutPolicyWriteModel

type InstanceLockoutPolicyWriteModel struct {
	LockoutPolicyWriteModel
}

func NewInstanceLockoutPolicyWriteModel

func NewInstanceLockoutPolicyWriteModel(ctx context.Context) *InstanceLockoutPolicyWriteModel

func (*InstanceLockoutPolicyWriteModel) AppendEvents

func (wm *InstanceLockoutPolicyWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceLockoutPolicyWriteModel) NewChangedEvent

func (wm *InstanceLockoutPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	maxAttempts uint64,
	showLockoutFailure bool) (*instance.LockoutPolicyChangedEvent, bool)

func (*InstanceLockoutPolicyWriteModel) Query

func (*InstanceLockoutPolicyWriteModel) Reduce

type InstanceLoginPolicyWriteModel

type InstanceLoginPolicyWriteModel struct {
	LoginPolicyWriteModel
}

func NewInstanceLoginPolicyWriteModel

func NewInstanceLoginPolicyWriteModel(ctx context.Context) *InstanceLoginPolicyWriteModel

func (*InstanceLoginPolicyWriteModel) AppendEvents

func (wm *InstanceLoginPolicyWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceLoginPolicyWriteModel) IsValid

func (wm *InstanceLoginPolicyWriteModel) IsValid() bool

func (*InstanceLoginPolicyWriteModel) NewChangedEvent

func (wm *InstanceLoginPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	allowUsernamePassword,
	allowRegister,
	allowExternalIDP,
	forceMFA,
	hidePasswordReset bool,
	passwordlessType domain.PasswordlessType,
	passwordCheckLifetime,
	externalLoginCheckLifetime,
	mfaInitSkipLifetime,
	secondFactorCheckLifetime,
	multiFactorCheckLifetime time.Duration,
) (*instance.LoginPolicyChangedEvent, bool)

func (*InstanceLoginPolicyWriteModel) Query

func (*InstanceLoginPolicyWriteModel) Reduce

func (wm *InstanceLoginPolicyWriteModel) Reduce() error

type InstanceMailTemplateWriteModel

type InstanceMailTemplateWriteModel struct {
	MailTemplateWriteModel
}

func NewInstanceMailTemplateWriteModel

func NewInstanceMailTemplateWriteModel(ctx context.Context) *InstanceMailTemplateWriteModel

func (*InstanceMailTemplateWriteModel) AppendEvents

func (wm *InstanceMailTemplateWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceMailTemplateWriteModel) NewChangedEvent

func (wm *InstanceMailTemplateWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	template []byte,
) (*instance.MailTemplateChangedEvent, bool)

func (*InstanceMailTemplateWriteModel) Query

func (*InstanceMailTemplateWriteModel) Reduce

type InstanceMemberWriteModel

type InstanceMemberWriteModel struct {
	MemberWriteModel
}

func NewInstanceMemberWriteModel

func NewInstanceMemberWriteModel(ctx context.Context, userID string) *InstanceMemberWriteModel

func (*InstanceMemberWriteModel) AppendEvents

func (wm *InstanceMemberWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceMemberWriteModel) Query

func (*InstanceMemberWriteModel) Reduce

func (wm *InstanceMemberWriteModel) Reduce() error

type InstanceMultiFactorWriteModel

type InstanceMultiFactorWriteModel struct {
	MultiFactorWriteModel
}

func NewInstanceMultiFactorWriteModel

func NewInstanceMultiFactorWriteModel(ctx context.Context, factorType domain.MultiFactorType) *InstanceMultiFactorWriteModel

func (*InstanceMultiFactorWriteModel) AppendEvents

func (wm *InstanceMultiFactorWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceMultiFactorWriteModel) Query

func (*InstanceMultiFactorWriteModel) Reduce

func (wm *InstanceMultiFactorWriteModel) Reduce() error

type InstanceOIDCSettingsWriteModel

type InstanceOIDCSettingsWriteModel struct {
	eventstore.WriteModel

	AccessTokenLifetime        time.Duration
	IdTokenLifetime            time.Duration
	RefreshTokenIdleExpiration time.Duration
	RefreshTokenExpiration     time.Duration
	State                      domain.OIDCSettingsState
}

func NewInstanceOIDCSettingsWriteModel

func NewInstanceOIDCSettingsWriteModel(ctx context.Context) *InstanceOIDCSettingsWriteModel

func (*InstanceOIDCSettingsWriteModel) NewChangedEvent

func (wm *InstanceOIDCSettingsWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	accessTokenLifetime,
	idTokenLifetime,
	refreshTokenIdleExpiration,
	refreshTokenExpiration time.Duration,
) (*instance.OIDCSettingsChangedEvent, bool, error)

func (*InstanceOIDCSettingsWriteModel) Query

func (*InstanceOIDCSettingsWriteModel) Reduce

type InstancePasswordAgePolicyWriteModel

type InstancePasswordAgePolicyWriteModel struct {
	PasswordAgePolicyWriteModel
}

func NewInstancePasswordAgePolicyWriteModel

func NewInstancePasswordAgePolicyWriteModel(ctx context.Context) *InstancePasswordAgePolicyWriteModel

func (*InstancePasswordAgePolicyWriteModel) AppendEvents

func (wm *InstancePasswordAgePolicyWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstancePasswordAgePolicyWriteModel) NewChangedEvent

func (wm *InstancePasswordAgePolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	expireWarnDays,
	maxAgeDays uint64) (*instance.PasswordAgePolicyChangedEvent, bool)

func (*InstancePasswordAgePolicyWriteModel) Query

func (*InstancePasswordAgePolicyWriteModel) Reduce

type InstancePasswordComplexityPolicyWriteModel

type InstancePasswordComplexityPolicyWriteModel struct {
	PasswordComplexityPolicyWriteModel
}

func (*InstancePasswordComplexityPolicyWriteModel) AppendEvents

func (wm *InstancePasswordComplexityPolicyWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstancePasswordComplexityPolicyWriteModel) NewChangedEvent

func (wm *InstancePasswordComplexityPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	minLength uint64,
	hasLowercase,
	hasUppercase,
	hasNumber,
	hasSymbol bool,
) (*instance.PasswordComplexityPolicyChangedEvent, bool)

func (*InstancePasswordComplexityPolicyWriteModel) Query

func (*InstancePasswordComplexityPolicyWriteModel) Reduce

type InstancePrivacyPolicyWriteModel

type InstancePrivacyPolicyWriteModel struct {
	PrivacyPolicyWriteModel
}

func NewInstancePrivacyPolicyWriteModel

func NewInstancePrivacyPolicyWriteModel(ctx context.Context) *InstancePrivacyPolicyWriteModel

func (*InstancePrivacyPolicyWriteModel) AppendEvents

func (wm *InstancePrivacyPolicyWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstancePrivacyPolicyWriteModel) NewChangedEvent

func (wm *InstancePrivacyPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	tosLink,
	privacyLink,
	helpLink string,
) (*instance.PrivacyPolicyChangedEvent, bool)

func (*InstancePrivacyPolicyWriteModel) Query

func (*InstancePrivacyPolicyWriteModel) Reduce

type InstanceSMTPConfigWriteModel

type InstanceSMTPConfigWriteModel struct {
	eventstore.WriteModel

	SenderAddress string
	SenderName    string
	TLS           bool
	Host          string
	User          string
	Password      *crypto.CryptoValue
	State         domain.SMTPConfigState
}

func NewInstanceSMTPConfigWriteModel

func NewInstanceSMTPConfigWriteModel(instanceID string) *InstanceSMTPConfigWriteModel

func (*InstanceSMTPConfigWriteModel) NewChangedEvent

func (wm *InstanceSMTPConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, tls bool, fromAddress, fromName, smtpHost, smtpUser string) (*instance.SMTPConfigChangedEvent, bool, error)

func (*InstanceSMTPConfigWriteModel) Query

func (*InstanceSMTPConfigWriteModel) Reduce

func (wm *InstanceSMTPConfigWriteModel) Reduce() error

type InstanceSecondFactorWriteModel

type InstanceSecondFactorWriteModel struct {
	SecondFactorWriteModel
}

func NewInstanceSecondFactorWriteModel

func NewInstanceSecondFactorWriteModel(ctx context.Context, factorType domain.SecondFactorType) *InstanceSecondFactorWriteModel

func (*InstanceSecondFactorWriteModel) AppendEvents

func (wm *InstanceSecondFactorWriteModel) AppendEvents(events ...eventstore.Event)

func (*InstanceSecondFactorWriteModel) Query

func (*InstanceSecondFactorWriteModel) Reduce

type InstanceSecretGeneratorConfigWriteModel

type InstanceSecretGeneratorConfigWriteModel struct {
	eventstore.WriteModel

	GeneratorType       domain.SecretGeneratorType
	Length              uint
	Expiry              time.Duration
	IncludeLowerLetters bool
	IncludeUpperLetters bool
	IncludeDigits       bool
	IncludeSymbols      bool
	State               domain.SecretGeneratorState
}

func NewInstanceSecretGeneratorConfigWriteModel

func NewInstanceSecretGeneratorConfigWriteModel(ctx context.Context, GeneratorType domain.SecretGeneratorType) *InstanceSecretGeneratorConfigWriteModel

func (*InstanceSecretGeneratorConfigWriteModel) NewChangedEvent

func (wm *InstanceSecretGeneratorConfigWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	generatorType domain.SecretGeneratorType,
	length uint,
	expiry time.Duration,
	includeLowerLetters,
	includeUpperLetters,
	includeDigits,
	includeSymbols bool,
) (*instance.SecretGeneratorChangedEvent, bool, error)

func (*InstanceSecretGeneratorConfigWriteModel) Query

func (*InstanceSecretGeneratorConfigWriteModel) Reduce

type InstanceSetup

type InstanceSetup struct {
	InstanceName     string
	CustomDomain     string
	Org              OrgSetup
	SecretGenerators struct {
		PasswordSaltCost         uint
		ClientSecret             *crypto.GeneratorConfig
		InitializeUserCode       *crypto.GeneratorConfig
		EmailVerificationCode    *crypto.GeneratorConfig
		PhoneVerificationCode    *crypto.GeneratorConfig
		PasswordVerificationCode *crypto.GeneratorConfig
		PasswordlessInitCode     *crypto.GeneratorConfig
		DomainVerification       *crypto.GeneratorConfig
	}
	PasswordComplexityPolicy struct {
		MinLength    uint64
		HasLowercase bool
		HasUppercase bool
		HasNumber    bool
		HasSymbol    bool
	}
	PasswordAgePolicy struct {
		ExpireWarnDays uint64
		MaxAgeDays     uint64
	}
	DomainPolicy struct {
		UserLoginMustBeDomain bool
		ValidateOrgDomains    bool
	}
	LoginPolicy struct {
		AllowUsernamePassword      bool
		AllowRegister              bool
		AllowExternalIDP           bool
		ForceMFA                   bool
		HidePasswordReset          bool
		PasswordlessType           domain.PasswordlessType
		PasswordCheckLifetime      time.Duration
		ExternalLoginCheckLifetime time.Duration
		MfaInitSkipLifetime        time.Duration
		SecondFactorCheckLifetime  time.Duration
		MultiFactorCheckLifetime   time.Duration
	}
	PrivacyPolicy struct {
		TOSLink     string
		PrivacyLink string
		HelpLink    string
	}
	LabelPolicy struct {
		PrimaryColor        string
		BackgroundColor     string
		WarnColor           string
		FontColor           string
		PrimaryColorDark    string
		BackgroundColorDark string
		WarnColorDark       string
		FontColorDark       string
		HideLoginNameSuffix bool
		ErrorMsgPopup       bool
		DisableWatermark    bool
	}
	LockoutPolicy struct {
		MaxAttempts              uint64
		ShouldShowLockoutFailure bool
	}
	EmailTemplate []byte
	MessageTexts  []*domain.CustomMessageText
	// contains filtered or unexported fields
}

type InstanceWriteModel

type InstanceWriteModel struct {
	eventstore.WriteModel

	Name            string
	State           domain.InstanceState
	GeneratedDomain string

	SetUpStarted domain.Step
	SetUpDone    domain.Step

	GlobalOrgID     string
	ProjectID       string
	DefaultLanguage language.Tag
}

func NewInstanceWriteModel

func NewInstanceWriteModel(instanceID string) *InstanceWriteModel

func (*InstanceWriteModel) Query

func (*InstanceWriteModel) Reduce

func (wm *InstanceWriteModel) Reduce() error

type JWTConfigWriteModel

type JWTConfigWriteModel struct {
	eventstore.WriteModel

	IDPConfigID  string
	JWTEndpoint  string
	Issuer       string
	KeysEndpoint string
	HeaderName   string
	State        domain.IDPConfigState
}

func (*JWTConfigWriteModel) Reduce

func (wm *JWTConfigWriteModel) Reduce() error

type KeyPairWriteModel

type KeyPairWriteModel struct {
	eventstore.WriteModel

	Usage      domain.KeyUsage
	Algorithm  string
	PrivateKey *domain.Key
	PublicKey  *domain.Key
}

func NewKeyPairWriteModel

func NewKeyPairWriteModel(aggregateID, resourceOwner string) *KeyPairWriteModel

func (*KeyPairWriteModel) AppendEvents

func (wm *KeyPairWriteModel) AppendEvents(events ...eventstore.Event)

func (*KeyPairWriteModel) Query

func (*KeyPairWriteModel) Reduce

func (wm *KeyPairWriteModel) Reduce() error

type LabelPolicyWriteModel

type LabelPolicyWriteModel struct {
	eventstore.WriteModel

	PrimaryColor    string
	BackgroundColor string
	WarnColor       string
	FontColor       string
	LogoKey         string
	IconKey         string

	PrimaryColorDark    string
	BackgroundColorDark string
	WarnColorDark       string
	FontColorDark       string
	LogoDarkKey         string
	IconDarkKey         string

	FontKey string

	HideLoginNameSuffix bool
	ErrorMsgPopup       bool
	DisableWatermark    bool

	State domain.PolicyState
}

func (*LabelPolicyWriteModel) Reduce

func (wm *LabelPolicyWriteModel) Reduce() error

type LockoutPolicyWriteModel

type LockoutPolicyWriteModel struct {
	eventstore.WriteModel

	MaxPasswordAttempts uint64
	ShowLockOutFailures bool
	State               domain.PolicyState
}

func (*LockoutPolicyWriteModel) Reduce

func (wm *LockoutPolicyWriteModel) Reduce() error

type LoginPolicyWriteModel

type LoginPolicyWriteModel struct {
	eventstore.WriteModel

	AllowUserNamePassword      bool
	AllowRegister              bool
	AllowExternalIDP           bool
	ForceMFA                   bool
	HidePasswordReset          bool
	PasswordlessType           domain.PasswordlessType
	PasswordCheckLifetime      time.Duration
	ExternalLoginCheckLifetime time.Duration
	MFAInitSkipLifetime        time.Duration
	SecondFactorCheckLifetime  time.Duration
	MultiFactorCheckLifetime   time.Duration
	State                      domain.PolicyState
}

func (*LoginPolicyWriteModel) Reduce

func (wm *LoginPolicyWriteModel) Reduce() error

type MachineKeyWriteModel

type MachineKeyWriteModel struct {
	eventstore.WriteModel

	KeyID          string
	KeyType        domain.AuthNKeyType
	ExpirationDate time.Time

	State domain.MachineKeyState
}

func NewMachineKeyWriteModel

func NewMachineKeyWriteModel(userID, keyID, resourceOwner string) *MachineKeyWriteModel

func (*MachineKeyWriteModel) AppendEvents

func (wm *MachineKeyWriteModel) AppendEvents(events ...eventstore.Event)

func (*MachineKeyWriteModel) Exists

func (wm *MachineKeyWriteModel) Exists() bool

func (*MachineKeyWriteModel) Query

func (*MachineKeyWriteModel) Reduce

func (wm *MachineKeyWriteModel) Reduce() error

type MachineWriteModel

type MachineWriteModel struct {
	eventstore.WriteModel

	UserName string

	Name        string
	Description string
	UserState   domain.UserState
}

func NewMachineWriteModel

func NewMachineWriteModel(userID, resourceOwner string) *MachineWriteModel

func (*MachineWriteModel) NewChangedEvent

func (wm *MachineWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	name,
	description string,
) (*user.MachineChangedEvent, bool, error)

func (*MachineWriteModel) Query

func (*MachineWriteModel) Reduce

func (wm *MachineWriteModel) Reduce() error

type MailTemplateWriteModel

type MailTemplateWriteModel struct {
	eventstore.WriteModel

	Template []byte

	State domain.PolicyState
}

func (*MailTemplateWriteModel) Reduce

func (wm *MailTemplateWriteModel) Reduce() error

type MemberWriteModel

type MemberWriteModel struct {
	eventstore.WriteModel

	UserID string
	Roles  []string

	State domain.MemberState
}

func NewMemberWriteModel

func NewMemberWriteModel(userID string) *MemberWriteModel

func (*MemberWriteModel) Reduce

func (wm *MemberWriteModel) Reduce() error

type MetadataListWriteModel

type MetadataListWriteModel struct {
	eventstore.WriteModel
	// contains filtered or unexported fields
}

func (*MetadataListWriteModel) Reduce

func (wm *MetadataListWriteModel) Reduce() error

type MetadataWriteModel

type MetadataWriteModel struct {
	eventstore.WriteModel

	Key   string
	Value []byte
	State domain.MetadataState
}

func (*MetadataWriteModel) Reduce

func (wm *MetadataWriteModel) Reduce() error

type MultiFactorWriteModel

type MultiFactorWriteModel struct {
	eventstore.WriteModel
	MFAType domain.MultiFactorType
	State   domain.FactorState
}

func (*MultiFactorWriteModel) Reduce

func (wm *MultiFactorWriteModel) Reduce() error

type OIDCApplicationWriteModel

type OIDCApplicationWriteModel struct {
	eventstore.WriteModel

	AppID                    string
	AppName                  string
	ClientID                 string
	ClientSecret             *crypto.CryptoValue
	ClientSecretString       string
	RedirectUris             []string
	ResponseTypes            []domain.OIDCResponseType
	GrantTypes               []domain.OIDCGrantType
	ApplicationType          domain.OIDCApplicationType
	AuthMethodType           domain.OIDCAuthMethodType
	PostLogoutRedirectUris   []string
	OIDCVersion              domain.OIDCVersion
	Compliance               *domain.Compliance
	DevMode                  bool
	AccessTokenType          domain.OIDCTokenType
	AccessTokenRoleAssertion bool
	IDTokenRoleAssertion     bool
	IDTokenUserinfoAssertion bool
	ClockSkew                time.Duration
	State                    domain.AppState
	AdditionalOrigins        []string
	// contains filtered or unexported fields
}

func NewOIDCApplicationWriteModel

func NewOIDCApplicationWriteModel(projectID, resourceOwner string) *OIDCApplicationWriteModel

func NewOIDCApplicationWriteModelWithAppID

func NewOIDCApplicationWriteModelWithAppID(projectID, appID, resourceOwner string) *OIDCApplicationWriteModel

func (*OIDCApplicationWriteModel) AppendEvents

func (wm *OIDCApplicationWriteModel) AppendEvents(events ...eventstore.Event)

func (*OIDCApplicationWriteModel) IsOIDC

func (wm *OIDCApplicationWriteModel) IsOIDC() bool

func (*OIDCApplicationWriteModel) NewChangedEvent

func (wm *OIDCApplicationWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	appID string,
	redirectURIS,
	postLogoutRedirectURIs []string,
	responseTypes []domain.OIDCResponseType,
	grantTypes []domain.OIDCGrantType,
	appType domain.OIDCApplicationType,
	authMethodType domain.OIDCAuthMethodType,
	oidcVersion domain.OIDCVersion,
	accessTokenType domain.OIDCTokenType,
	devMode,
	accessTokenRoleAssertion,
	idTokenRoleAssertion,
	idTokenUserinfoAssertion bool,
	clockSkew time.Duration,
	additionalOrigins []string,
) (*project.OIDCConfigChangedEvent, bool, error)

func (*OIDCApplicationWriteModel) Query

func (*OIDCApplicationWriteModel) Reduce

func (wm *OIDCApplicationWriteModel) Reduce() error

type OIDCConfigWriteModel

type OIDCConfigWriteModel struct {
	eventstore.WriteModel

	IDPConfigID           string
	ClientID              string
	ClientSecret          *crypto.CryptoValue
	Issuer                string
	AuthorizationEndpoint string
	TokenEndpoint         string
	Scopes                []string

	IDPDisplayNameMapping domain.OIDCMappingField
	UserNameMapping       domain.OIDCMappingField
	State                 domain.IDPConfigState
}

func (*OIDCConfigWriteModel) Reduce

func (wm *OIDCConfigWriteModel) Reduce() error

type OrgAuthFactorsAllowedWriteModel

type OrgAuthFactorsAllowedWriteModel struct {
	eventstore.WriteModel
	SecondFactors map[domain.SecondFactorType]*factorState
	MultiFactors  map[domain.MultiFactorType]*factorState
}

func NewOrgAuthFactorsAllowedWriteModel

func NewOrgAuthFactorsAllowedWriteModel(ctx context.Context, orgID string) *OrgAuthFactorsAllowedWriteModel

func (*OrgAuthFactorsAllowedWriteModel) Query

func (*OrgAuthFactorsAllowedWriteModel) Reduce

func (*OrgAuthFactorsAllowedWriteModel) ToMultiFactorWriteModel

func (*OrgAuthFactorsAllowedWriteModel) ToSecondFactorWriteModel

type OrgCustomLoginTextReadModel

type OrgCustomLoginTextReadModel struct {
	CustomLoginTextReadModel
}

func NewOrgCustomLoginTextReadModel

func NewOrgCustomLoginTextReadModel(orgID string, lang language.Tag) *OrgCustomLoginTextReadModel

func (*OrgCustomLoginTextReadModel) AppendEvents

func (wm *OrgCustomLoginTextReadModel) AppendEvents(events ...eventstore.Event)

func (*OrgCustomLoginTextReadModel) Query

func (*OrgCustomLoginTextReadModel) Reduce

func (wm *OrgCustomLoginTextReadModel) Reduce() error

type OrgCustomLoginTextsReadModel

type OrgCustomLoginTextsReadModel struct {
	CustomLoginTextsReadModel
}

func NewOrgCustomLoginTextsReadModel

func NewOrgCustomLoginTextsReadModel(orgID string) *OrgCustomLoginTextsReadModel

func (*OrgCustomLoginTextsReadModel) AppendEvents

func (wm *OrgCustomLoginTextsReadModel) AppendEvents(events ...eventstore.Event)

func (*OrgCustomLoginTextsReadModel) Query

func (*OrgCustomLoginTextsReadModel) Reduce

func (wm *OrgCustomLoginTextsReadModel) Reduce() error

type OrgCustomMessageTemplatesReadModel

type OrgCustomMessageTemplatesReadModel struct {
	CustomMessageTemplatesReadModel
}

func NewOrgCustomMessageTextsWriteModel

func NewOrgCustomMessageTextsWriteModel(orgID string) *OrgCustomMessageTemplatesReadModel

func (*OrgCustomMessageTemplatesReadModel) AppendEvents

func (wm *OrgCustomMessageTemplatesReadModel) AppendEvents(events ...eventstore.Event)

func (*OrgCustomMessageTemplatesReadModel) Query

func (*OrgCustomMessageTemplatesReadModel) Reduce

type OrgCustomMessageTextReadModel

type OrgCustomMessageTextReadModel struct {
	CustomMessageTextReadModel
}

func NewOrgCustomMessageTextWriteModel

func NewOrgCustomMessageTextWriteModel(orgID, messageTextType string, lang language.Tag) *OrgCustomMessageTextReadModel

func (*OrgCustomMessageTextReadModel) AppendEvents

func (wm *OrgCustomMessageTextReadModel) AppendEvents(events ...eventstore.Event)

func (*OrgCustomMessageTextReadModel) Query

func (*OrgCustomMessageTextReadModel) Reduce

func (wm *OrgCustomMessageTextReadModel) Reduce() error

type OrgDomainPolicyWriteModel

type OrgDomainPolicyWriteModel struct {
	PolicyDomainWriteModel
}

func NewOrgDomainPolicyWriteModel

func NewOrgDomainPolicyWriteModel(orgID string) *OrgDomainPolicyWriteModel

func (*OrgDomainPolicyWriteModel) AppendEvents

func (wm *OrgDomainPolicyWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgDomainPolicyWriteModel) NewChangedEvent

func (wm *OrgDomainPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	userLoginMustBeDomain,
	validateOrgDomains bool) (*org.DomainPolicyChangedEvent, bool)

func (*OrgDomainPolicyWriteModel) Query

func (*OrgDomainPolicyWriteModel) Reduce

func (wm *OrgDomainPolicyWriteModel) Reduce() error

type OrgDomainVerifiedWriteModel

type OrgDomainVerifiedWriteModel struct {
	eventstore.WriteModel

	Domain   string
	Verified bool
}

func NewOrgDomainVerifiedWriteModel

func NewOrgDomainVerifiedWriteModel(domain string) *OrgDomainVerifiedWriteModel

func (*OrgDomainVerifiedWriteModel) AppendEvents

func (wm *OrgDomainVerifiedWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgDomainVerifiedWriteModel) Query

func (*OrgDomainVerifiedWriteModel) Reduce

func (wm *OrgDomainVerifiedWriteModel) Reduce() error

type OrgDomainWriteModel

type OrgDomainWriteModel struct {
	eventstore.WriteModel

	Domain         string
	ValidationType domain.OrgDomainValidationType
	ValidationCode *crypto.CryptoValue
	Primary        bool
	Verified       bool

	State domain.OrgDomainState
}

func NewOrgDomainWriteModel

func NewOrgDomainWriteModel(orgID string, domain string) *OrgDomainWriteModel

func (*OrgDomainWriteModel) AppendEvents

func (wm *OrgDomainWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgDomainWriteModel) Query

func (*OrgDomainWriteModel) Reduce

func (wm *OrgDomainWriteModel) Reduce() error

type OrgDomainsWriteModel

type OrgDomainsWriteModel struct {
	eventstore.WriteModel

	Domains       []*Domain
	PrimaryDomain string
	OrgName       string
}

func NewOrgDomainsWriteModel

func NewOrgDomainsWriteModel(orgID string) *OrgDomainsWriteModel

func (*OrgDomainsWriteModel) Query

func (*OrgDomainsWriteModel) Reduce

func (wm *OrgDomainsWriteModel) Reduce() error

type OrgFlowWriteModel

type OrgFlowWriteModel struct {
	FlowWriteModel
}

func NewOrgFlowWriteModel

func NewOrgFlowWriteModel(flowType domain.FlowType, resourceOwner string) *OrgFlowWriteModel

func (*OrgFlowWriteModel) AppendEvents

func (wm *OrgFlowWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgFlowWriteModel) Query

func (*OrgFlowWriteModel) Reduce

func (wm *OrgFlowWriteModel) Reduce() error

type OrgIDPConfigWriteModel

type OrgIDPConfigWriteModel struct {
	IDPConfigWriteModel
}

func NewOrgIDPConfigWriteModel

func NewOrgIDPConfigWriteModel(configID, orgID string) *OrgIDPConfigWriteModel

func (*OrgIDPConfigWriteModel) AppendAndReduce

func (wm *OrgIDPConfigWriteModel) AppendAndReduce(events ...eventstore.Event) error

func (*OrgIDPConfigWriteModel) AppendEvents

func (wm *OrgIDPConfigWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgIDPConfigWriteModel) NewChangedEvent

func (wm *OrgIDPConfigWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	configID,
	name string,
	stylingType domain.IDPConfigStylingType,
	autoRegister bool,
) (*org.IDPConfigChangedEvent, bool)

func (*OrgIDPConfigWriteModel) Query

func (*OrgIDPConfigWriteModel) Reduce

func (wm *OrgIDPConfigWriteModel) Reduce() error

type OrgIdentityProviderWriteModel

type OrgIdentityProviderWriteModel struct {
	IdentityProviderWriteModel
}

func NewOrgIdentityProviderWriteModel

func NewOrgIdentityProviderWriteModel(orgID, idpConfigID string) *OrgIdentityProviderWriteModel

func (*OrgIdentityProviderWriteModel) AppendEvents

func (wm *OrgIdentityProviderWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgIdentityProviderWriteModel) Query

func (*OrgIdentityProviderWriteModel) Reduce

func (wm *OrgIdentityProviderWriteModel) Reduce() error

type OrgLabelPolicyWriteModel

type OrgLabelPolicyWriteModel struct {
	LabelPolicyWriteModel
}

func NewOrgLabelPolicyWriteModel

func NewOrgLabelPolicyWriteModel(orgID string) *OrgLabelPolicyWriteModel

func (*OrgLabelPolicyWriteModel) AppendEvents

func (wm *OrgLabelPolicyWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgLabelPolicyWriteModel) NewChangedEvent

func (wm *OrgLabelPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	primaryColor,
	backgroundColor,
	warnColor,
	fontColor,
	primaryColorDark,
	backgroundColorDark,
	warnColorDark,
	fontColorDark string,
	hideLoginNameSuffix,
	errorMsgPopup,
	disableWatermark bool,
) (*org.LabelPolicyChangedEvent, bool)

func (*OrgLabelPolicyWriteModel) Query

func (*OrgLabelPolicyWriteModel) Reduce

func (wm *OrgLabelPolicyWriteModel) Reduce() error

type OrgLockoutPolicyWriteModel

type OrgLockoutPolicyWriteModel struct {
	LockoutPolicyWriteModel
}

func NewOrgLockoutPolicyWriteModel

func NewOrgLockoutPolicyWriteModel(orgID string) *OrgLockoutPolicyWriteModel

func (*OrgLockoutPolicyWriteModel) AppendEvents

func (wm *OrgLockoutPolicyWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgLockoutPolicyWriteModel) NewChangedEvent

func (wm *OrgLockoutPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	maxAttempts uint64,
	showLockoutFailure bool) (*org.LockoutPolicyChangedEvent, bool)

func (*OrgLockoutPolicyWriteModel) Query

func (*OrgLockoutPolicyWriteModel) Reduce

func (wm *OrgLockoutPolicyWriteModel) Reduce() error

type OrgLoginPolicyWriteModel

type OrgLoginPolicyWriteModel struct {
	LoginPolicyWriteModel
}

func NewOrgLoginPolicyWriteModel

func NewOrgLoginPolicyWriteModel(orgID string) *OrgLoginPolicyWriteModel

func (*OrgLoginPolicyWriteModel) AppendEvents

func (wm *OrgLoginPolicyWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgLoginPolicyWriteModel) IsValid

func (wm *OrgLoginPolicyWriteModel) IsValid() bool

func (*OrgLoginPolicyWriteModel) NewChangedEvent

func (wm *OrgLoginPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	allowUsernamePassword,
	allowRegister,
	allowExternalIDP,
	forceMFA,
	hidePasswordReset bool,
	passwordlessType domain.PasswordlessType,
	passwordCheckLifetime,
	externalLoginCheckLifetime,
	mfaInitSkipLifetime,
	secondFactorCheckLifetime,
	multiFactorCheckLifetime time.Duration,
) (*org.LoginPolicyChangedEvent, bool)

func (*OrgLoginPolicyWriteModel) Query

func (*OrgLoginPolicyWriteModel) Reduce

func (wm *OrgLoginPolicyWriteModel) Reduce() error

type OrgMailTemplateWriteModel

type OrgMailTemplateWriteModel struct {
	MailTemplateWriteModel
}

func NewOrgMailTemplateWriteModel

func NewOrgMailTemplateWriteModel(orgID string) *OrgMailTemplateWriteModel

func (*OrgMailTemplateWriteModel) AppendEvents

func (wm *OrgMailTemplateWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgMailTemplateWriteModel) NewChangedEvent

func (wm *OrgMailTemplateWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	template []byte,
) (*org.MailTemplateChangedEvent, bool)

func (*OrgMailTemplateWriteModel) Query

func (*OrgMailTemplateWriteModel) Reduce

func (wm *OrgMailTemplateWriteModel) Reduce() error

type OrgMemberWriteModel

type OrgMemberWriteModel struct {
	MemberWriteModel
}

func NewOrgMemberWriteModel

func NewOrgMemberWriteModel(orgID, userID string) *OrgMemberWriteModel

func (*OrgMemberWriteModel) AppendEvents

func (wm *OrgMemberWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgMemberWriteModel) Query

func (*OrgMemberWriteModel) Reduce

func (wm *OrgMemberWriteModel) Reduce() error

type OrgMultiFactorWriteModel

type OrgMultiFactorWriteModel struct {
	MultiFactorWriteModel
}

func NewOrgMultiFactorWriteModel

func NewOrgMultiFactorWriteModel(orgID string, factorType domain.MultiFactorType) *OrgMultiFactorWriteModel

func (*OrgMultiFactorWriteModel) AppendEvents

func (wm *OrgMultiFactorWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgMultiFactorWriteModel) Query

func (*OrgMultiFactorWriteModel) Reduce

func (wm *OrgMultiFactorWriteModel) Reduce() error

type OrgPasswordAgePolicyWriteModel

type OrgPasswordAgePolicyWriteModel struct {
	PasswordAgePolicyWriteModel
}

func NewOrgPasswordAgePolicyWriteModel

func NewOrgPasswordAgePolicyWriteModel(orgID string) *OrgPasswordAgePolicyWriteModel

func (*OrgPasswordAgePolicyWriteModel) AppendEvents

func (wm *OrgPasswordAgePolicyWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgPasswordAgePolicyWriteModel) NewChangedEvent

func (wm *OrgPasswordAgePolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	expireWarnDays,
	maxAgeDays uint64) (*org.PasswordAgePolicyChangedEvent, bool)

func (*OrgPasswordAgePolicyWriteModel) Query

func (*OrgPasswordAgePolicyWriteModel) Reduce

type OrgPasswordComplexityPolicyWriteModel

type OrgPasswordComplexityPolicyWriteModel struct {
	PasswordComplexityPolicyWriteModel
}

func NewOrgPasswordComplexityPolicyWriteModel

func NewOrgPasswordComplexityPolicyWriteModel(orgID string) *OrgPasswordComplexityPolicyWriteModel

func (*OrgPasswordComplexityPolicyWriteModel) AppendEvents

func (wm *OrgPasswordComplexityPolicyWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgPasswordComplexityPolicyWriteModel) NewChangedEvent

func (wm *OrgPasswordComplexityPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	minLength uint64,
	hasLowercase,
	hasUppercase,
	hasNumber,
	hasSymbol bool,
) (*org.PasswordComplexityPolicyChangedEvent, bool)

func (*OrgPasswordComplexityPolicyWriteModel) Query

func (*OrgPasswordComplexityPolicyWriteModel) Reduce

type OrgPrivacyPolicyWriteModel

type OrgPrivacyPolicyWriteModel struct {
	PrivacyPolicyWriteModel
}

func NewOrgPrivacyPolicyWriteModel

func NewOrgPrivacyPolicyWriteModel(orgID string) *OrgPrivacyPolicyWriteModel

func (*OrgPrivacyPolicyWriteModel) AppendEvents

func (wm *OrgPrivacyPolicyWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgPrivacyPolicyWriteModel) NewChangedEvent

func (wm *OrgPrivacyPolicyWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	tosLink,
	privacyLink,
	helpLink string,
) (*org.PrivacyPolicyChangedEvent, bool)

func (*OrgPrivacyPolicyWriteModel) Query

func (*OrgPrivacyPolicyWriteModel) Reduce

func (wm *OrgPrivacyPolicyWriteModel) Reduce() error

type OrgSecondFactorWriteModel

type OrgSecondFactorWriteModel struct {
	SecondFactorWriteModel
}

func NewOrgSecondFactorWriteModel

func NewOrgSecondFactorWriteModel(orgID string, factorType domain.SecondFactorType) *OrgSecondFactorWriteModel

func (*OrgSecondFactorWriteModel) AppendEvents

func (wm *OrgSecondFactorWriteModel) AppendEvents(events ...eventstore.Event)

func (*OrgSecondFactorWriteModel) Query

func (*OrgSecondFactorWriteModel) Reduce

func (wm *OrgSecondFactorWriteModel) Reduce() error

type OrgSetup

type OrgSetup struct {
	Name  string
	Human AddHuman
}

type OrgWriteModel

type OrgWriteModel struct {
	eventstore.WriteModel

	Name          string
	State         domain.OrgState
	PrimaryDomain string
}

func NewOrgWriteModel

func NewOrgWriteModel(orgID string) *OrgWriteModel

func (*OrgWriteModel) Query

func (*OrgWriteModel) Reduce

func (wm *OrgWriteModel) Reduce() error

type PasswordAgePolicyWriteModel

type PasswordAgePolicyWriteModel struct {
	eventstore.WriteModel

	ExpireWarnDays uint64
	MaxAgeDays     uint64
	State          domain.PolicyState
}

func (*PasswordAgePolicyWriteModel) Reduce

func (wm *PasswordAgePolicyWriteModel) Reduce() error

type PasswordComplexityPolicyWriteModel

type PasswordComplexityPolicyWriteModel struct {
	eventstore.WriteModel

	MinLength    uint64
	HasLowercase bool
	HasUppercase bool
	HasNumber    bool
	HasSymbol    bool
	State        domain.PolicyState
}

func (*PasswordComplexityPolicyWriteModel) Reduce

func (*PasswordComplexityPolicyWriteModel) Validate

func (wm *PasswordComplexityPolicyWriteModel) Validate(password string) error

type PersonalAccessTokenWriteModel

type PersonalAccessTokenWriteModel struct {
	eventstore.WriteModel

	TokenID        string
	ExpirationDate time.Time

	State domain.PersonalAccessTokenState
}

func NewPersonalAccessTokenWriteModel

func NewPersonalAccessTokenWriteModel(userID, tokenID, resourceOwner string) *PersonalAccessTokenWriteModel

func (*PersonalAccessTokenWriteModel) AppendEvents

func (wm *PersonalAccessTokenWriteModel) AppendEvents(events ...eventstore.Event)

func (*PersonalAccessTokenWriteModel) Exists

func (wm *PersonalAccessTokenWriteModel) Exists() bool

func (*PersonalAccessTokenWriteModel) Query

func (*PersonalAccessTokenWriteModel) Reduce

func (wm *PersonalAccessTokenWriteModel) Reduce() error

type Phone

type Phone struct {
	Number   string
	Verified bool
}

type PolicyDomainWriteModel

type PolicyDomainWriteModel struct {
	eventstore.WriteModel

	UserLoginMustBeDomain bool
	ValidateOrgDomains    bool
	State                 domain.PolicyState
}

func (*PolicyDomainWriteModel) Reduce

func (wm *PolicyDomainWriteModel) Reduce() error

type PrivacyPolicyWriteModel

type PrivacyPolicyWriteModel struct {
	eventstore.WriteModel

	TOSLink     string
	PrivacyLink string
	HelpLink    string
	State       domain.PolicyState
}

func (*PrivacyPolicyWriteModel) Reduce

func (wm *PrivacyPolicyWriteModel) Reduce() error

type ProjectGrantMemberWriteModel

type ProjectGrantMemberWriteModel struct {
	eventstore.WriteModel

	GrantID string
	UserID  string
	Roles   []string

	State domain.MemberState
}

func NewProjectGrantMemberWriteModel

func NewProjectGrantMemberWriteModel(projectID, userID, grantID string) *ProjectGrantMemberWriteModel

func (*ProjectGrantMemberWriteModel) AppendEvents

func (wm *ProjectGrantMemberWriteModel) AppendEvents(events ...eventstore.Event)

func (*ProjectGrantMemberWriteModel) Query

func (*ProjectGrantMemberWriteModel) Reduce

func (wm *ProjectGrantMemberWriteModel) Reduce() error

type ProjectGrantPreConditionReadModel

type ProjectGrantPreConditionReadModel struct {
	eventstore.WriteModel

	ProjectID        string
	GrantedOrgID     string
	ProjectExists    bool
	GrantedOrgExists bool
	ExistingRoleKeys []string
}

func NewProjectGrantPreConditionReadModel

func NewProjectGrantPreConditionReadModel(projectID, grantedOrgID string) *ProjectGrantPreConditionReadModel

func (*ProjectGrantPreConditionReadModel) Query

func (*ProjectGrantPreConditionReadModel) Reduce

type ProjectGrantWriteModel

type ProjectGrantWriteModel struct {
	eventstore.WriteModel

	GrantID      string
	GrantedOrgID string
	RoleKeys     []string
	State        domain.ProjectGrantState
}

func NewProjectGrantWriteModel

func NewProjectGrantWriteModel(grantID, projectID, resourceOwner string) *ProjectGrantWriteModel

func (*ProjectGrantWriteModel) AppendEvents

func (wm *ProjectGrantWriteModel) AppendEvents(events ...eventstore.Event)

func (*ProjectGrantWriteModel) Query

func (*ProjectGrantWriteModel) Reduce

func (wm *ProjectGrantWriteModel) Reduce() error

type ProjectMemberWriteModel

type ProjectMemberWriteModel struct {
	MemberWriteModel
}

func NewProjectMemberWriteModel

func NewProjectMemberWriteModel(projectID, userID, resourceOwner string) *ProjectMemberWriteModel

func (*ProjectMemberWriteModel) AppendEvents

func (wm *ProjectMemberWriteModel) AppendEvents(events ...eventstore.Event)

func (*ProjectMemberWriteModel) Query

func (*ProjectMemberWriteModel) Reduce

func (wm *ProjectMemberWriteModel) Reduce() error

type ProjectRoleWriteModel

type ProjectRoleWriteModel struct {
	eventstore.WriteModel

	Key         string
	DisplayName string
	Group       string
	State       domain.ProjectRoleState
}

func NewProjectRoleWriteModel

func NewProjectRoleWriteModel(projectID, resourceOwner string) *ProjectRoleWriteModel

func NewProjectRoleWriteModelWithKey

func NewProjectRoleWriteModelWithKey(key, projectID, resourceOwner string) *ProjectRoleWriteModel

func (*ProjectRoleWriteModel) AppendEvents

func (wm *ProjectRoleWriteModel) AppendEvents(events ...eventstore.Event)

func (*ProjectRoleWriteModel) NewProjectRoleChangedEvent

func (wm *ProjectRoleWriteModel) NewProjectRoleChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	key,
	displayName,
	group string,
) (*project.RoleChangedEvent, bool, error)

func (*ProjectRoleWriteModel) Query

func (*ProjectRoleWriteModel) Reduce

func (wm *ProjectRoleWriteModel) Reduce() error

type ProjectWriteModel

type ProjectWriteModel struct {
	eventstore.WriteModel

	Name                   string
	ProjectRoleAssertion   bool
	ProjectRoleCheck       bool
	HasProjectCheck        bool
	PrivateLabelingSetting domain.PrivateLabelingSetting
	State                  domain.ProjectState
}

func NewProjectWriteModel

func NewProjectWriteModel(projectID string, resourceOwner string) *ProjectWriteModel

func (*ProjectWriteModel) NewChangedEvent

func (wm *ProjectWriteModel) NewChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	name string,
	projectRoleAssertion,
	projectRoleCheck,
	hasProjectCheck bool,
	privateLabelingSetting domain.PrivateLabelingSetting,
) (*project.ProjectChangeEvent, bool, error)

func (*ProjectWriteModel) Query

func (*ProjectWriteModel) Reduce

func (wm *ProjectWriteModel) Reduce() error

type SecondFactorWriteModel

type SecondFactorWriteModel struct {
	eventstore.WriteModel
	MFAType domain.SecondFactorType
	State   domain.FactorState
}

func (*SecondFactorWriteModel) Reduce

func (wm *SecondFactorWriteModel) Reduce() error

type TwilioConfig

type TwilioConfig struct {
	SID          string
	Token        *crypto.CryptoValue
	SenderNumber string
}

type UniqueConstraintReadModel

type UniqueConstraintReadModel struct {
	eventstore.WriteModel

	UniqueConstraints []*domain.UniqueConstraintMigration
	// contains filtered or unexported fields
}

func NewUniqueConstraintReadModel

func NewUniqueConstraintReadModel(ctx context.Context, provider commandProvider) *UniqueConstraintReadModel

func (*UniqueConstraintReadModel) AppendEvents

func (rm *UniqueConstraintReadModel) AppendEvents(events ...eventstore.Event)

func (*UniqueConstraintReadModel) Query

func (*UniqueConstraintReadModel) Reduce

func (rm *UniqueConstraintReadModel) Reduce() error

type UserAccessTokenWriteModel

type UserAccessTokenWriteModel struct {
	eventstore.WriteModel

	TokenID           string
	ApplicationID     string
	UserAgentID       string
	Audience          []string
	Scopes            []string
	Expiration        time.Time
	PreferredLanguage string

	UserState domain.UserState
}

func NewUserAccessTokenWriteModel

func NewUserAccessTokenWriteModel(userID, resourceOwner, tokenID string) *UserAccessTokenWriteModel

func (*UserAccessTokenWriteModel) AppendEvents

func (wm *UserAccessTokenWriteModel) AppendEvents(events ...eventstore.Event)

func (*UserAccessTokenWriteModel) Query

func (*UserAccessTokenWriteModel) Reduce

func (wm *UserAccessTokenWriteModel) Reduce() error

type UserGrantPreConditionReadModel

type UserGrantPreConditionReadModel struct {
	eventstore.WriteModel

	UserID             string
	ProjectID          string
	ProjectGrantID     string
	UserExists         bool
	ProjectExists      bool
	ProjectGrantExists bool
	ExistingRoleKeys   []string
}

func NewUserGrantPreConditionReadModel

func NewUserGrantPreConditionReadModel(userID, projectID, projectGrantID string) *UserGrantPreConditionReadModel

func (*UserGrantPreConditionReadModel) Query

func (*UserGrantPreConditionReadModel) Reduce

type UserGrantWriteModel

type UserGrantWriteModel struct {
	eventstore.WriteModel

	UserID         string
	ProjectID      string
	ProjectGrantID string
	RoleKeys       []string
	State          domain.UserGrantState
}

func NewUserGrantWriteModel

func NewUserGrantWriteModel(userGrantID string, resourceOwner string) *UserGrantWriteModel

func (*UserGrantWriteModel) Query

func (*UserGrantWriteModel) Reduce

func (wm *UserGrantWriteModel) Reduce() error

type UserIDPLinkWriteModel

type UserIDPLinkWriteModel struct {
	eventstore.WriteModel

	IDPConfigID    string
	ExternalUserID string
	DisplayName    string

	State domain.UserIDPLinkState
}

func NewUserIDPLinkWriteModel

func NewUserIDPLinkWriteModel(userID, idpConfigID, externalUserID, resourceOwner string) *UserIDPLinkWriteModel

func (*UserIDPLinkWriteModel) AppendEvents

func (wm *UserIDPLinkWriteModel) AppendEvents(events ...eventstore.Event)

func (*UserIDPLinkWriteModel) Query

func (*UserIDPLinkWriteModel) Reduce

func (wm *UserIDPLinkWriteModel) Reduce() error

type UserMetadataByOrgListWriteModel

type UserMetadataByOrgListWriteModel struct {
	eventstore.WriteModel
	UserMetadata map[string]map[string][]byte
}

func NewUserMetadataByOrgListWriteModel

func NewUserMetadataByOrgListWriteModel(resourceOwner string) *UserMetadataByOrgListWriteModel

func (*UserMetadataByOrgListWriteModel) AppendEvents

func (wm *UserMetadataByOrgListWriteModel) AppendEvents(events ...eventstore.Event)

func (*UserMetadataByOrgListWriteModel) Query

func (*UserMetadataByOrgListWriteModel) Reduce

type UserMetadataListWriteModel

type UserMetadataListWriteModel struct {
	MetadataListWriteModel
}

func NewUserMetadataListWriteModel

func NewUserMetadataListWriteModel(userID, resourceOwner string) *UserMetadataListWriteModel

func (*UserMetadataListWriteModel) AppendEvents

func (wm *UserMetadataListWriteModel) AppendEvents(events ...eventstore.Event)

func (*UserMetadataListWriteModel) Query

func (*UserMetadataListWriteModel) Reduce

func (wm *UserMetadataListWriteModel) Reduce() error

type UserMetadataWriteModel

type UserMetadataWriteModel struct {
	MetadataWriteModel
}

func NewUserMetadataWriteModel

func NewUserMetadataWriteModel(userID, resourceOwner, key string) *UserMetadataWriteModel

func (*UserMetadataWriteModel) AppendEvents

func (wm *UserMetadataWriteModel) AppendEvents(events ...eventstore.Event)

func (*UserMetadataWriteModel) Query

func (*UserMetadataWriteModel) Reduce

func (wm *UserMetadataWriteModel) Reduce() error

type UserWriteModel

type UserWriteModel struct {
	eventstore.WriteModel

	UserName  string
	IDPLinks  []*domain.UserIDPLink
	UserState domain.UserState
	UserType  domain.UserType
}

func NewUserWriteModel

func NewUserWriteModel(userID, resourceOwner string) *UserWriteModel

func (*UserWriteModel) IDPLinkByID

func (wm *UserWriteModel) IDPLinkByID(idpID, externalUserID string) (idx int, idp *domain.UserIDPLink)

func (*UserWriteModel) Query

func (*UserWriteModel) Reduce

func (wm *UserWriteModel) Reduce() error

type ZitadelConfig

type ZitadelConfig struct {
	// contains filtered or unexported fields
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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