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

from __future__ import annotations
from duckyai.types import BaseModel
from duckyai.utils import (
    FieldMetadata,
    PathParamMetadata,
    QueryParamMetadata,
    SecurityMetadata,
)
from typing_extensions import Annotated, TypedDict


class DeleteWebappIndexSecurityTypedDict(TypedDict):
    bearer_auth: str


class DeleteWebappIndexSecurity(BaseModel):
    bearer_auth: Annotated[
        str,
        FieldMetadata(
            security=SecurityMetadata(
                scheme=True,
                scheme_type="apiKey",
                sub_type="header",
                field_name="Authorization",
            )
        ),
    ]


class DeleteWebappIndexRequestTypedDict(TypedDict):
    project_id: str
    r"""The project ID associated with the request."""
    index_name: str
    r"""The name of the index to be deleted"""


class DeleteWebappIndexRequest(BaseModel):
    project_id: Annotated[
        str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
    ]
    r"""The project ID associated with the request."""

    index_name: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""The name of the index to be deleted"""
