# This file was auto-generated by Fern from our API Definition.

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .usage_event_item import UsageEventItem


class UsageEventListResponse(UniversalBaseModel):
    """
    Response for GET /v1/analytics/usage/events/{org_id}.
    """

    organization_id: str
    events: typing.List[UsageEventItem]
    pagination: typing.Dict[str, typing.Any]
    filters_applied: typing.Dict[str, typing.Any]

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
