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