Files
OpenHands/openhands/app_server/git/git_models.py
2026-04-06 12:01:22 -06:00

30 lines
743 B
Python

"""Git-related models for V1 API pagination responses."""
from pydantic import BaseModel
from openhands.integrations.service_types import Repository
class InstallationPage(BaseModel):
"""Paginated response for installations.
Attributes:
items: List of installation IDs.
next_page_id: ID for the next page, or None if there are no more pages.
"""
items: list[str]
next_page_id: str | None = None
class RepositoryPage(BaseModel):
"""Paginated response for repositories.
Attributes:
items: List of repositories in the current page.
next_page_id: ID for the next page, or None if there are no more pages.
"""
items: list[Repository]
next_page_id: str | None = None