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

from __future__ import annotations
from friendli.core.types import BaseModel
from friendli.core.utils import FieldMetadata, MultipartFormMetadata
import io
import pydantic
from typing import IO, Optional, Union
from typing_extensions import Annotated, NotRequired, TypedDict


class BodyUploadRawSamplesFileTypedDict(TypedDict):
    file_name: str
    content: Union[bytes, IO[bytes], io.BufferedReader]
    content_type: NotRequired[str]


class BodyUploadRawSamplesFile(BaseModel):
    file_name: Annotated[
        str, pydantic.Field(alias="fileName"), FieldMetadata(multipart=True)
    ]
    content: Annotated[
        Union[bytes, IO[bytes], io.BufferedReader],
        pydantic.Field(alias=""),
        FieldMetadata(multipart=MultipartFormMetadata(content=True)),
    ]
    content_type: Annotated[
        Optional[str],
        pydantic.Field(alias="Content-Type"),
        FieldMetadata(multipart=True),
    ] = None


class BodyUploadRawSamplesTypedDict(TypedDict):
    file: BodyUploadRawSamplesFileTypedDict
    "File to update samples."


class BodyUploadRawSamples(BaseModel):
    file: Annotated[
        BodyUploadRawSamplesFile,
        FieldMetadata(multipart=MultipartFormMetadata(file=True)),
    ]
    "File to update samples."
