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

from .inbox_item_base import InboxItemBase
import typing_extensions
import typing
from .inbox_item_fix_deactivate_knowledge_base import InboxItemFixDeactivateKnowledgeBase
from ...core.serialization import FieldMetadata
import pydantic
from .knowledge_base_information import KnowledgeBaseInformation
from ...core.pydantic_utilities import IS_PYDANTIC_V2


class InboxItemDuplicateKnowledgeBase(InboxItemBase):
    recommended_fixes: typing_extensions.Annotated[
        typing.List[InboxItemFixDeactivateKnowledgeBase], FieldMetadata(alias="recommendedFixes")
    ] = pydantic.Field()
    """
    The fix recommended for being applied
    """

    other_fixes: typing_extensions.Annotated[
        typing.List[InboxItemFixDeactivateKnowledgeBase], FieldMetadata(alias="otherFixes")
    ] = pydantic.Field()
    """
    List of fixes associated with the inbox item.
    """

    knowledge_bases: typing_extensions.Annotated[
        typing.List[KnowledgeBaseInformation], FieldMetadata(alias="knowledgeBases")
    ] = pydantic.Field()
    """
    List of Knowledge Base information objects associated with the inbox item.
    """

    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
