mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 20:08:02 +00:00
24 lines
950 B
Go
24 lines
950 B
Go
|
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
|