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

from __future__ import annotations
from .dedicateddatasetmodality import (
    DedicatedDatasetModality,
    DedicatedDatasetModalityTypedDict,
)
from friendli.core.types import BaseModel
import pydantic
from typing_extensions import Annotated, TypedDict


class DatasetInfoTypedDict(TypedDict):
    """Dataset info."""

    id: str
    "ID of the dataset."
    name: str
    "Name of the dataset."
    created_at: int
    "Unix timestamp (in seconds) of when the dataset was created."
    updated_at: int
    "Unix timestamp (in seconds) of when the dataset was last modified."
    modality: DedicatedDatasetModalityTypedDict
    "Dataset modality."


class DatasetInfo(BaseModel):
    """Dataset info."""

    id: str
    "ID of the dataset."
    name: str
    "Name of the dataset."
    created_at: Annotated[int, pydantic.Field(alias="createdAt")]
    "Unix timestamp (in seconds) of when the dataset was created."
    updated_at: Annotated[int, pydantic.Field(alias="updatedAt")]
    "Unix timestamp (in seconds) of when the dataset was last modified."
    modality: DedicatedDatasetModality
    "Dataset modality."
