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

from __future__ import annotations
from .sourceusagebreakdown import SourceUsageBreakdown, SourceUsageBreakdownTypedDict
from censys_platform.types import BaseModel
from datetime import datetime
from typing_extensions import TypedDict


class CreditUsageReportTypedDict(TypedDict):
    end_date: datetime
    r"""The end date of the window for this report."""
    source_breakdown: SourceUsageBreakdownTypedDict
    start_date: datetime
    r"""The start date of the window for this report."""
    total_consumed: int
    r"""The total amount of credits consumed during the report period."""


class CreditUsageReport(BaseModel):
    end_date: datetime
    r"""The end date of the window for this report."""

    source_breakdown: SourceUsageBreakdown

    start_date: datetime
    r"""The start date of the window for this report."""

    total_consumed: int
    r"""The total amount of credits consumed during the report period."""
