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

from __future__ import annotations
from .responseenvelopeorganizationmemberslist import (
    ResponseEnvelopeOrganizationMembersList,
    ResponseEnvelopeOrganizationMembersListTypedDict,
)
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 V3AccountmanagementListOrgMembersRequestTypedDict(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."""
    page_size: NotRequired[int]
    r"""Number of members to return per page"""
    page_token: NotRequired[str]
    r"""Pagination token for retrieving the next page of results"""


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

    page_size: Annotated[
        Optional[int],
        FieldMetadata(query=QueryParamMetadata(style="form", explode=False)),
    ] = 10
    r"""Number of members to return per page"""

    page_token: Annotated[
        Optional[str],
        FieldMetadata(query=QueryParamMetadata(style="form", explode=False)),
    ] = None
    r"""Pagination token for retrieving the next page of results"""


class V3AccountmanagementListOrgMembersResponseTypedDict(TypedDict):
    headers: Dict[str, List[str]]
    result: ResponseEnvelopeOrganizationMembersListTypedDict


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

    result: ResponseEnvelopeOrganizationMembersList
