"""Async HTTP client for GitHub webhook event log endpoints."""

from __future__ import annotations

from peon_mcp.common.base_client import BaseAPIClient


class GitHubWebhooksClient(BaseAPIClient):
    async def list_github_webhook_events(
        self,
        limit: int = 50,
        offset: int = 0,
    ) -> dict | str:
        """List recent GitHub webhook event log entries."""
        return await self._request(
            "GET",
            "/api/github/webhook/events",
            params={"limit": limit, "offset": offset},
        )
