# -*- coding: utf-8 -*-
from __future__ import annotations

import pathlib
import typing

from hotpocket_backend.secrets.admin import AdminSecrets
from hotpocket_backend.secrets.webapp import WebAppSecrets
from hotpocket_common.constants import App, Env


class PSettings(typing.Protocol):
    DEBUG: bool
    TESTING: bool
    ALLOWED_HOSTS: list[str]
    SECRET_KEY: str

    APP: App
    ENV: Env

    SECRETS: AdminSecrets | WebAppSecrets

    MODEL_AUTH_IS_DISABLED: bool

    SITE_TITLE: str
    SITE_SHORT_TITLE: str
    IMAGE_ID: str

    SAVES_SAVE_ADAPTER: str
    SAVES_ASSOCIATION_ADAPTER: str

    UPLOADS_PATH: pathlib.Path

    AUTH_KEY_TTL: int
