"""
Wiki.js schemas
"""

from typing import List, Optional
from pydantic import BaseModel


class WikiPage(BaseModel):
    id: Optional[int] = None
    title: str
    path: str
    description: Optional[str] = None
    updated_at: Optional[str] = None
    url: str


class WikiPageResponse(BaseModel):
    pages: List[WikiPage]
    path: str
    tag: Optional[str] = None
    query: Optional[str] = None
    base_url: str
    errors: Optional[list] = None
