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

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


class AutoReplenishConfigTypedDict(TypedDict):
    enabled: bool
    r"""Whether the organization has auto-replenish enabled."""
    amount: NotRequired[int]
    r"""The amount of credits to replenish when auto-replenish is triggered."""
    threshold: NotRequired[int]
    r"""The threshold at which the organization's credit balance will be auto-replenished."""


class AutoReplenishConfig(BaseModel):
    enabled: bool
    r"""Whether the organization has auto-replenish enabled."""

    amount: Optional[int] = None
    r"""The amount of credits to replenish when auto-replenish is triggered."""

    threshold: Optional[int] = None
    r"""The threshold at which the organization's credit balance will be auto-replenished."""
