2024-02-28 10:55:54 +02: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 14:50:13 +01:00
|
|
|
KeyUserSchema
|
2024-03-20 12:18:46 +02:00
|
|
|
KeyTokenExchange
|
2024-04-09 19:21:21 +02:00
|
|
|
KeyActions
|
2024-02-28 10:55:54 +02: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 14:50:13 +01:00
|
|
|
UserSchema bool `json:"user_schema,omitempty"`
|
2024-03-20 12:18:46 +02:00
|
|
|
TokenExchange bool `json:"token_exchange,omitempty"`
|
2024-04-09 19:21:21 +02:00
|
|
|
Actions bool `json:"actions,omitempty"`
|
2024-02-28 10:55:54 +02:00
|
|
|
}
|