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

from __future__ import annotations
from lambdadb.types import BaseModel
from lambdadb.utils import FieldMetadata, PathParamMetadata, RequestMetadata
import pydantic
from typing import List, Optional, Union
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict


class FilterTypedDict(TypedDict):
    r"""Query filter."""


class Filter(BaseModel):
    r"""Query filter."""


class RequestBody2TypedDict(TypedDict):
    filter_: FilterTypedDict
    r"""Query filter."""


class RequestBody2(BaseModel):
    filter_: Annotated[Filter, pydantic.Field(alias="filter")]
    r"""Query filter."""


class RequestBody1TypedDict(TypedDict):
    ids: List[str]
    r"""A list of document IDs."""


class RequestBody1(BaseModel):
    ids: List[str]
    r"""A list of document IDs."""


DeleteDocsRequestBodyTypedDict = TypeAliasType(
    "DeleteDocsRequestBodyTypedDict",
    Union[RequestBody1TypedDict, RequestBody2TypedDict],
)


DeleteDocsRequestBody = TypeAliasType(
    "DeleteDocsRequestBody", Union[RequestBody1, RequestBody2]
)


class DeleteDocsRequestTypedDict(TypedDict):
    project_name: str
    r"""Project name."""
    collection_name: str
    r"""Collection name."""
    request_body: DeleteDocsRequestBodyTypedDict


class DeleteDocsRequest(BaseModel):
    project_name: Annotated[
        str,
        pydantic.Field(alias="projectName"),
        FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
    ]
    r"""Project name."""

    collection_name: Annotated[
        str,
        pydantic.Field(alias="collectionName"),
        FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
    ]
    r"""Collection name."""

    request_body: Annotated[
        DeleteDocsRequestBody,
        FieldMetadata(request=RequestMetadata(media_type="application/json")),
    ]


class DeleteDocsResponseTypedDict(TypedDict):
    r"""Delete request accepted."""

    message: NotRequired[str]


class DeleteDocsResponse(BaseModel):
    r"""Delete request accepted."""

    message: Optional[str] = None
