2024-02-28 08:55:54 +00:00
|
|
|
package feature
|
|
|
|
|
|
|
|
//go:generate enumer -type Key -transform snake -trimprefix Key
|
|
|
|
type Key int
|
|
|
|
|
|
|
|
const (
|
|
|
|
KeyUnspecified Key = iota
|
|
|
|
KeyLoginDefaultOrg
|
|
|
|
KeyTriggerIntrospectionProjections
|
|
|
|
KeyLegacyIntrospection
|
2024-03-12 13:50:13 +00:00
|
|
|
KeyUserSchema
|
2024-03-20 10:18:46 +00:00
|
|
|
KeyTokenExchange
|
2024-04-09 17:21:21 +00:00
|
|
|
KeyActions
|
2024-02-28 08:55:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
//go:generate enumer -type Level -transform snake -trimprefix Level
|
|
|
|
type Level int
|
|
|
|
|
|
|
|
const (
|
|
|
|
LevelUnspecified Level = iota
|
|
|
|
LevelSystem
|
|
|
|
LevelInstance
|
|
|
|
LevelOrg
|
|
|
|
LevelProject
|
|
|
|
LevelApp
|
|
|
|
LevelUser
|
|
|
|
)
|
|
|
|
|
|
|
|
type Features struct {
|
|
|
|
LoginDefaultOrg bool `json:"login_default_org,omitempty"`
|
|
|
|
TriggerIntrospectionProjections bool `json:"trigger_introspection_projections,omitempty"`
|
|
|
|
LegacyIntrospection bool `json:"legacy_introspection,omitempty"`
|
2024-03-12 13:50:13 +00:00
|
|
|
UserSchema bool `json:"user_schema,omitempty"`
|
2024-03-20 10:18:46 +00:00
|
|
|
TokenExchange bool `json:"token_exchange,omitempty"`
|
2024-04-09 17:21:21 +00:00
|
|
|
Actions bool `json:"actions,omitempty"`
|
2024-02-28 08:55:54 +00:00
|
|
|
}
|