# ------------------------------------------------------------------------------# Output# ------------------------------------------------------------------------------# --- Deepest nested objects first ---
[docs]@dataclasses.dataclass(frozen=True)classGetPageDescendantsResponseResult(BaseResponse):"""Descendant schema - represents a single descendant in the results array."""@cached_propertydefid(self)->str:"""ID of the descendant."""returnself._get("id")@cached_propertydefstatus(self)->str:"""ContentStatus enum: current, archived."""returnself._get("status")@cached_propertydeftitle(self)->str:"""Title of the descendant."""returnself._get("title")@cached_propertydeftype(self)->str:"""Content type: database, embed, folder, page, or whiteboard."""returnself._get("type")@cached_propertydefparentId(self)->str:"""ID of the parent content."""returnself._get("parentId")@cached_propertydefdepth(self)->int:"""Nesting level relative to the requested page."""returnself._get("depth")@cached_propertydefchildPosition(self)->int:"""Ordinal position among siblings in content hierarchy."""returnself._get("childPosition")
# --- Top level response objects ---
[docs]@dataclasses.dataclass(frozen=True)classGetPageDescendantsResponse(BaseResponse):"""DescendantsResponse schema - top level response."""@cached_propertydefresults(self)->list[GetPageDescendantsResponseResult]:returnself._new_many(GetPageDescendantsResponseResult,"results")@cached_propertydeflinks(self)->Links:returnself._new(Links,"_links")