discord-rich-presence-plex/models/config.py

21 lines
378 B
Python

from typing import TypedDict
class Logging(TypedDict):
debug: bool
class Display(TypedDict):
useRemainingTime: bool
class Server(TypedDict, total = False):
name: str
blacklistedLibraries: list[str]
whitelistedLibraries: list[str]
class User(TypedDict):
token: str
servers: list[Server]
class Config(TypedDict):
logging: Logging
display: Display
users: list[User]