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

from __future__ import annotations
from tofupilot.v2.types import BaseModel
from typing_extensions import TypedDict


class UnitCreateRequestTypedDict(TypedDict):
    serial_number: str
    r"""Unique serial number identifier for the unit. Must be unique within the organization."""
    part_number: str
    r"""Component part number that defines what type of unit this is. If the part does not exist, it will be created."""
    revision_number: str
    r"""Hardware revision identifier for the specific version of the part. If the revision does not exist, it will be created."""


class UnitCreateRequest(BaseModel):
    serial_number: str
    r"""Unique serial number identifier for the unit. Must be unique within the organization."""

    part_number: str
    r"""Component part number that defines what type of unit this is. If the part does not exist, it will be created."""

    revision_number: str
    r"""Hardware revision identifier for the specific version of the part. If the revision does not exist, it will be created."""


class UnitCreateResponseTypedDict(TypedDict):
    r"""Unit created successfully"""

    id: str
    r"""Unique identifier for the created unit."""


class UnitCreateResponse(BaseModel):
    r"""Unit created successfully"""

    id: str
    r"""Unique identifier for the created unit."""
