"""Pydantic models for GitHub webhook endpoints."""

from __future__ import annotations

from datetime import datetime

from pydantic import BaseModel


class GitHubWebhookResponse(BaseModel):
    ok: bool
    event: str
    delivery: str


class GitHubWebhookEventLogResponse(BaseModel):
    id: int
    delivery_id: str
    event_type: str
    action: str
    status: str
    payload: dict | None = None
    received_at: datetime


class PRConflictScanResponse(BaseModel):
    scanned: int
    conflicts_found: int
    tasks_created: int
    already_tracked: int
