# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional
from r_typing_extensions import Literal

from ..._models import BaseModel

__all__ = ["ResponseCancelledWebhookEvent", "Data"]


class Data(BaseModel):
    """Event data payload."""

    id: str
    """The unique ID of the model response."""


class ResponseCancelledWebhookEvent(BaseModel):
    """Sent when a background response has been cancelled."""

    id: str
    """The unique ID of the event."""

    created_at: int
    """The Unix timestamp (in seconds) of when the model response was cancelled."""

    data: Data
    """Event data payload."""

    type: Literal["response.cancelled"]
    """The type of the event. Always `response.cancelled`."""

    object: Optional[Literal["event"]] = None
    """The object of the event. Always `event`."""
