# This file was auto-generated by Fern from our API Definition.

from ..core.unchecked_base_model import UncheckedBaseModel
import typing
from .verification_attempt_response import VerificationAttemptResponse
from ..core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic


class VoiceVerificationResponse(UncheckedBaseModel):
    requires_verification: bool
    is_verified: bool
    verification_failures: typing.List[str]
    verification_attempts_count: int
    language: typing.Optional[str] = None
    verification_attempts: typing.Optional[typing.List[VerificationAttemptResponse]] = None

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
