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

from __future__ import annotations
from tofupilot.v2.types import BaseModel
from tofupilot.v2.utils import FieldMetadata, QueryParamMetadata
from typing import List
from typing_extensions import Annotated, TypedDict


class UnitDeleteRequestTypedDict(TypedDict):
    serial_numbers: List[str]
    r"""Array of unit serial numbers to delete."""


class UnitDeleteRequest(BaseModel):
    serial_numbers: Annotated[
        List[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
    ]
    r"""Array of unit serial numbers to delete."""


class UnitDeleteResponseTypedDict(TypedDict):
    r"""Response for successful unit deletion"""

    ids: List[str]
    r"""Array of IDs of the units that were successfully deleted"""


class UnitDeleteResponse(BaseModel):
    r"""Response for successful unit deletion"""

    ids: List[str]
    r"""Array of IDs of the units that were successfully deleted"""
