mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 01:37:31 +00:00
refactor(v2): init events (#7823)
creates events structures for initial projections and read models
This commit is contained in:
23
internal/v2/policy/domain.go
Normal file
23
internal/v2/policy/domain.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package policy
|
||||
|
||||
import "github.com/zitadel/zitadel/internal/v2/eventstore"
|
||||
|
||||
const DomainPolicyAddedTypeSuffix = "policy.domain.added"
|
||||
|
||||
type DomainPolicyAddedPayload struct {
|
||||
UserLoginMustBeDomain bool `json:"userLoginMustBeDomain,omitempty"`
|
||||
ValidateOrgDomains bool `json:"validateOrgDomains,omitempty"`
|
||||
SMTPSenderAddressMatchesInstanceDomain bool `json:"smtpSenderAddressMatchesInstanceDomain,omitempty"`
|
||||
}
|
||||
|
||||
const DomainPolicyChangedTypeSuffix = "policy.domain.changed"
|
||||
|
||||
type DomainPolicyChangedPayload struct {
|
||||
UserLoginMustBeDomain *bool `json:"userLoginMustBeDomain,omitempty"`
|
||||
ValidateOrgDomains *bool `json:"validateOrgDomains,omitempty"`
|
||||
SMTPSenderAddressMatchesInstanceDomain *bool `json:"smtpSenderAddressMatchesInstanceDomain,omitempty"`
|
||||
}
|
||||
|
||||
const DomainPolicyRemovedTypeSuffix = "policy.domain.removed"
|
||||
|
||||
type DomainPolicyRemovedPayload eventstore.EmptyPayload
|
Reference in New Issue
Block a user