# Path: modules/auth/Priv.py



from default_imports import *
from modules.auth.Priv import Priv
from pymongo.collection import Collection



TokenID = NewType('TokenID', str)

class Token(NamedTuple('Token', [
        ('id', TokenID),
        ('name', str),
        ('privs', List[Priv])
    ])):

# Path: modules/auth/Priv.py



# Path: modules/auth/Token.py
from default_imports import *
from modules.auth.Priv import Priv
from pymongo.collection import Collection




TokenID = NewType('TokenID', str)

class Token(NamedTuple('Token', [
        ('id', TokenID),
        ('name', str),
        ('privs', List[Priv])
    ])):

    def hasPriv(self, priv: Priv) -> bool: