from enum import Enum

from pydantic import BaseModel


class ModuleName(str, Enum):
    BACKEND = "backend"
    AGENT = "agent"
    RAG = "rag"
    CONFLUENCE = "confluence"
    FRONTEND = "frontend"


class ErrorPayload(BaseModel):
    code: str
    desc: str
    module: ModuleName
