"""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, PathParamMetadata, RequestMetadata
from typing_extensions import Annotated, TypedDict


class ProcedureUpdateRequestBodyTypedDict(TypedDict):
    name: str
    r"""New name for the procedure."""


class ProcedureUpdateRequestBody(BaseModel):
    name: str
    r"""New name for the procedure."""


class ProcedureUpdateRequestTypedDict(TypedDict):
    id: str
    r"""Unique identifier of the procedure to update."""
    request_body: ProcedureUpdateRequestBodyTypedDict


class ProcedureUpdateRequest(BaseModel):
    id: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""Unique identifier of the procedure to update."""

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


class ProcedureUpdateResponseTypedDict(TypedDict):
    r"""Procedure updated successfully"""

    id: str
    r"""Unique identifier of the updated procedure."""


class ProcedureUpdateResponse(BaseModel):
    r"""Procedure updated successfully"""

    id: str
    r"""Unique identifier of the updated procedure."""
