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

from __future__ import annotations
from mistralai.types import BaseModel
from typing import Any, Dict, Union
from typing_extensions import TypeAliasType, TypedDict


MessageTypedDict = TypeAliasType("MessageTypedDict", Union[str, Dict[str, Any]])
r"""Human-readable error message."""


Message = TypeAliasType("Message", Union[str, Dict[str, Any]])
r"""Human-readable error message."""


class RealtimeTranscriptionErrorDetailTypedDict(TypedDict):
    message: MessageTypedDict
    r"""Human-readable error message."""
    code: int
    r"""Internal error code for debugging."""


class RealtimeTranscriptionErrorDetail(BaseModel):
    message: Message
    r"""Human-readable error message."""

    code: int
    r"""Internal error code for debugging."""
