mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04:00
30 lines
743 B
Python
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
|