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


class AttachmentConfirmRequestTypedDict(TypedDict):
    id: str
    r"""ID of the upload to confirm"""


class AttachmentConfirmRequest(BaseModel):
    id: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""ID of the upload to confirm"""


class AttachmentConfirmResponseTypedDict(TypedDict):
    r"""Upload metadata updated successfully"""

    url: str
    r"""Signed URL for accessing the uploaded file"""


class AttachmentConfirmResponse(BaseModel):
    r"""Upload metadata updated successfully"""

    url: str
    r"""Signed URL for accessing the uploaded file"""
