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

from __future__ import annotations
from .responseenvelopeorganizationdetails import (
    ResponseEnvelopeOrganizationDetails,
    ResponseEnvelopeOrganizationDetailsTypedDict,
)
from censys_platform.types import BaseModel
from censys_platform.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata
from typing import Dict, List, Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class V3AccountmanagementOrgDetailsRequestTypedDict(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."""
    include_member_counts: NotRequired[bool]
    r"""Whether to include how many members are in this organization, split by role."""


class V3AccountmanagementOrgDetailsRequest(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."""

    include_member_counts: Annotated[
        Optional[bool],
        FieldMetadata(query=QueryParamMetadata(style="form", explode=False)),
    ] = False
    r"""Whether to include how many members are in this organization, split by role."""


class V3AccountmanagementOrgDetailsResponseTypedDict(TypedDict):
    headers: Dict[str, List[str]]
    result: ResponseEnvelopeOrganizationDetailsTypedDict


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

    result: ResponseEnvelopeOrganizationDetails
