# 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, UniversalBaseModel
from .entity_trait_definition_response_data import EntityTraitDefinitionResponseData
from .event_summary_response_data import EventSummaryResponseData
from .flag_detail_response_data import FlagDetailResponseData
from .preview_object import PreviewObject


class FeatureDetailResponseData(UniversalBaseModel):
    created_at: dt.datetime
    description: str
    event_subtype: typing.Optional[str] = None
    event_summary: typing.Optional[EventSummaryResponseData] = None
    feature_type: str
    flags: typing.List[FlagDetailResponseData]
    icon: str
    id: str
    lifecycle_phase: typing.Optional[str] = None
    maintainer_id: typing.Optional[str] = None
    name: str
    plans: typing.List[PreviewObject]
    plural_name: typing.Optional[str] = None
    singular_name: typing.Optional[str] = None
    trait: typing.Optional[EntityTraitDefinitionResponseData] = None
    trait_id: typing.Optional[str] = None
    updated_at: dt.datetime

    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
