This commit is contained in:
team3
2026-06-18 14:30:21 +02:00
parent d8932c90d6
commit 9c0f622e0c
30 changed files with 45808 additions and 217 deletions

View File

@@ -5,6 +5,7 @@ FormatType = Literal[
"OnePager",
"MiniGuide",
"Guide",
"ProGuide",
"FullGuide",
]
@@ -50,6 +51,37 @@ class ProjectResponse(BaseModel):
name: str
class FolderResponse(BaseModel):
name: str
ort: str # relativer Pfad ab Repo-Root (z.B. "projects/foo")
class BausteineQuelleUpdate(BaseModel):
topic: str = Field(min_length=1, max_length=100)
type: SourceType = "thema"
ort: str = Field(default="", max_length=2000)
spec: str = Field(default="", max_length=2000)
class BausteineQuelleResponse(BaseModel):
type: SourceType
ort: str
spec: str
class SubbausteinInfo(BaseModel):
titel: str
stufe: Literal["einfach", "mittel", "schwer"]
relevanz: Literal["relevant", "rand"] | None = None
class BausteinUebersicht(BaseModel):
num: int
titel: str
beschreibung: str = ""
subbausteine: list[SubbausteinInfo] = []
class ProviderInfo(BaseModel):
id: str
available: bool