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

import typing

import pydantic
from ...core.pydantic_utilities import IS_PYDANTIC_V2
from ...core.unchecked_base_model import UncheckedBaseModel
from .templates_create_agents_from_template_response_agents_item_secrets_item_created_at import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemCreatedAt,
)
from .templates_create_agents_from_template_response_agents_item_secrets_item_created_by_id import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemCreatedById,
)
from .templates_create_agents_from_template_response_agents_item_secrets_item_description import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemDescription,
)
from .templates_create_agents_from_template_response_agents_item_secrets_item_id import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemId,
)
from .templates_create_agents_from_template_response_agents_item_secrets_item_last_updated_by_id import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemLastUpdatedById,
)
from .templates_create_agents_from_template_response_agents_item_secrets_item_organization_id import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemOrganizationId,
)
from .templates_create_agents_from_template_response_agents_item_secrets_item_updated_at import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemUpdatedAt,
)
from .templates_create_agents_from_template_response_agents_item_secrets_item_value_enc import (
    TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc,
)


class TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem(UncheckedBaseModel):
    created_by_id: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemCreatedById] = None
    last_updated_by_id: typing.Optional[
        TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemLastUpdatedById
    ] = None
    created_at: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemCreatedAt] = None
    updated_at: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemUpdatedAt] = None
    id: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemId] = None
    key: str
    value: str
    description: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemDescription] = None
    organization_id: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemOrganizationId] = (
        None
    )
    value_enc: typing.Optional[TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc] = None
    agent_id: str

    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
