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

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


class UserCreditsTypedDict(TypedDict):
    balance: int
    r"""The current credit balance for the user."""
    resets_at: NotRequired[datetime]
    r"""The date that the user's credits will be reset."""


class UserCredits(BaseModel):
    balance: int
    r"""The current credit balance for the user."""

    resets_at: Optional[datetime] = None
    r"""The date that the user's credits will be reset."""
