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

from __future__ import annotations
from .responseenvelopecreditusagereport import (
    ResponseEnvelopeCreditUsageReport,
    ResponseEnvelopeCreditUsageReportTypedDict,
)
from censys_platform.types import BaseModel
from censys_platform.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata
import pydantic
from typing import Dict, List
from typing_extensions import Annotated, TypedDict


class V3AccountmanagementOrgCreditsUsageRequestTypedDict(TypedDict):
    organization_id: str
    r"""The ID of a Censys organization. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-find-and-use-your-organization-id-optional) for more information."""
    date_: str
    r"""The date for the credit usage report in YYYY-MM-DD format (e.g., 2025-11-06)."""


class V3AccountmanagementOrgCreditsUsageRequest(BaseModel):
    organization_id: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""The ID of a Censys organization. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-find-and-use-your-organization-id-optional) for more information."""

    date_: Annotated[
        str,
        pydantic.Field(alias="date"),
        FieldMetadata(query=QueryParamMetadata(style="form", explode=False)),
    ]
    r"""The date for the credit usage report in YYYY-MM-DD format (e.g., 2025-11-06)."""


class V3AccountmanagementOrgCreditsUsageResponseTypedDict(TypedDict):
    headers: Dict[str, List[str]]
    result: ResponseEnvelopeCreditUsageReportTypedDict


class V3AccountmanagementOrgCreditsUsageResponse(BaseModel):
    headers: Dict[str, List[str]]

    result: ResponseEnvelopeCreditUsageReport
