2020-06-16 09:40:18 +00:00
|
|
|
package model
|
|
|
|
|
2020-08-06 13:03:03 +00:00
|
|
|
import (
|
2022-04-26 23:01:45 +00:00
|
|
|
"github.com/zitadel/zitadel/internal/crypto"
|
|
|
|
es_models "github.com/zitadel/zitadel/internal/eventstore/v1/models"
|
2020-08-06 13:03:03 +00:00
|
|
|
)
|
2020-06-16 09:40:18 +00:00
|
|
|
|
|
|
|
type OrgDomain struct {
|
|
|
|
es_models.ObjectRoot
|
2020-08-06 13:03:03 +00:00
|
|
|
Domain string
|
|
|
|
Primary bool
|
|
|
|
Verified bool
|
|
|
|
ValidationType OrgDomainValidationType
|
|
|
|
ValidationCode *crypto.CryptoValue
|
|
|
|
}
|
|
|
|
|
|
|
|
type OrgDomainValidationType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
OrgDomainValidationTypeUnspecified OrgDomainValidationType = iota
|
|
|
|
OrgDomainValidationTypeHTTP
|
|
|
|
OrgDomainValidationTypeDNS
|
|
|
|
)
|