package entity

import (
	"github.com/tidbcloud/account/idl/pbgen/proto/account"
	authsdk "github.com/tidbcloud/tiinf/sdk/auth"
)

const (
	TenantStatusPending  = "pending"
	TenantStatusActive   = "active"
	TenantStatusInactive = "inactive"
	TenantStatusDeleted  = "deleted"
	TenantStatusCleared  = "cleared"

	ProjectStatusActive  = "active"
	ProjectStatusDeleted = "deleted"
	ProjectStatusCleared = "cleared"

	// Auth
	XAuthContentKey  = "X-Auth-Content"
	XAuthTypeKey     = "X-Auth-Type"
	XAUTHUserNameKey = "X-Auth-Username"
	AuthorizationKey = "Authorization"
)

type User struct {
	User         *account.User
	Org          *account.Org
	Projects     []*account.Project
	AccessToken  string
	PublicKey    string
	PublicKeyId  uint64
	IdentityType authsdk.AuthnIdentityType
}
