# retoor <retoor@molodetz.nl>
|
|
|
|
from __future__ import annotations
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
class ErrorOut(BaseModel):
|
|
error: str
|
|
code: str
|
|
|
|
|
|
class HealthStatsOut(BaseModel):
|
|
requests: int
|
|
errors: int
|
|
|
|
|
|
class HealthOut(BaseModel):
|
|
service: str
|
|
status: str
|
|
uptime_s: int
|
|
version: str
|
|
deps: dict[str, str]
|
|
stats: HealthStatsOut
|
|
|
|
|
|
class InternalUser(BaseModel):
|
|
model_config = ConfigDict(frozen=True)
|
|
uid: str | None = None |