"""Effect enum for policy decisions."""

from enum import StrEnum


class Effect(StrEnum):
    """The effect of a policy — either ALLOW or DENY access.

    Used in Policy definitions and Decision results.

    Example:
        from pyauthz import Effect
        effect = Effect.ALLOW
        effect == "allow"  # True (str enum)
    """

    ALLOW = "allow"
    DENY = "deny"
