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

from ....core.unchecked_base_model import UncheckedBaseModel
import typing
from .bundle_id import BundleId
import pydantic
from ....core.pydantic_utilities import IS_PYDANTIC_V2


class Bundle(UncheckedBaseModel):
    type: typing.Literal["bundle"] = "bundle"
    id: BundleId = pydantic.Field()
    """
    The id property is a required property that uniquely identifies the bundle.
    """

    objects: typing.List[typing.Optional[typing.Any]] = pydantic.Field()
    """
    The objects property is an array of STIX Objects (json representation) that are part of the bundle.
    """

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

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