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

from __future__ import annotations
from .updateprojectrequest import UpdateProjectRequest, UpdateProjectRequestTypedDict
from duckyai.types import BaseModel
from duckyai.utils import (
    FieldMetadata,
    PathParamMetadata,
    RequestMetadata,
    SecurityMetadata,
)
from typing_extensions import Annotated, TypedDict


class UpdateProjectSecurityTypedDict(TypedDict):
    bearer_auth: str


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


class UpdateProjectRequest1TypedDict(TypedDict):
    project_id: str
    r"""The unique identifier of the project to update"""
    update_project_request: UpdateProjectRequestTypedDict


class UpdateProjectRequest1(BaseModel):
    project_id: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""The unique identifier of the project to update"""

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