bayesline.api.FeatureDeclaration

bayesline.api.FeatureDeclaration#

model FeatureDeclaration#

A feature definition, plus what an application declares alongside it.

Namely the identity everything granted on the feature hangs off, and the grants the application ships with it.

Fields#

Field

Type

Required

Default

default_grants

tuple[Grant, …]

No

()

definition

FeatureDefinition

Yes

identity

str

Yes

field default_grants: tuple[Grant, ...] [Optional]#

Grants the application ships with the feature, reaching only the groups and roles they name.

field definition: FeatureDefinition [Required]#
field identity: str [Required]#

Identifies the feature for as long as it exists, as the declaring enum’s class name and member name. Unique across every application in a deployment.