SDK
Page
One page of a cursor-paginated list (`docs/PROTOCOL.md §8`/`§9`): `items` plus the cursor for the next call. `__iter__` yields `items` directly (not pydantic's default field-tuple iteration) so `for item in vault.patients.list(): ...` reads the way any Python sequence does — the field-tuple behaviour nobody wants here is still reachable through `dict(page)` if it were ever needed.
On this page
class
Signature #
class Page(*, items: list[T], next_cursor: str | None = None) Bases: BaseModel
One page of a cursor-paginated list (docs/PROTOCOL.md §8/§9): items plus the cursor for the next call.
__iter__ yields items directly (not pydantic's default field-tuple
iteration) so for item in vault.patients.list(): ... reads the way any
Python sequence does — the field-tuple behaviour nobody wants here is
still reachable through dict(page) if it were ever needed.
Members #
items: list[T] #
attribute
next_cursor: str | None = None #
attribute