"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from macropay_sdk.types import BaseModel
from typing import Optional
from typing_extensions import NotRequired, TypedDict


class EventsIngestResponseTypedDict(TypedDict):
    inserted: int
    r"""Number of events inserted."""
    duplicates: NotRequired[int]
    r"""Number of duplicate events skipped."""


class EventsIngestResponse(BaseModel):
    inserted: int
    r"""Number of events inserted."""

    duplicates: Optional[int] = 0
    r"""Number of duplicate events skipped."""
