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

import datetime as dt
import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2
from ..core.unchecked_base_model import UncheckedBaseModel
from .onboarding_state_enum import OnboardingStateEnum
from .trial_role_enum import TrialRoleEnum


class LseFields(UncheckedBaseModel):
    email_notification_settings: typing.Optional[str] = None
    invite_activated: typing.Optional[bool] = None
    invite_expired: typing.Optional[str] = None
    invite_expired_at: typing.Optional[str] = None
    invited_at: typing.Optional[dt.datetime] = None
    invited_by: typing.Optional[int] = None
    onboarding_state: typing.Optional[OnboardingStateEnum] = pydantic.Field(default=None)
    """
    The current stage of user onboarding
    
    * `not_started` - Not Started
    * `signup` - Signup
    * `trial_signup` - Trial Signup
    * `first_tutorial` - First Tutorial
    * `in_app_guidance` - In App Guidance
    * `complete` - Complete
    """

    social_auth_finished: typing.Optional[bool] = pydantic.Field(default=None)
    """
    Is user finished social authentication
    """

    trial_company: typing.Optional[str] = None
    trial_experience_labeling: typing.Optional[str] = None
    trial_license_enterprise: typing.Optional[bool] = None
    trial_models_in_production: typing.Optional[str] = None
    trial_role: typing.Optional[TrialRoleEnum] = 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
