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

# isort: skip_file

import typing
from importlib import import_module

if typing.TYPE_CHECKING:
    from .acp_type import AcpType
    from .agent import Agent
    from .agent_api_key import AgentApiKey
    from .agent_api_key_type import AgentApiKeyType
    from .agent_input_type import AgentInputType
    from .agent_status import AgentStatus
    from .agent_task_tracker import AgentTaskTracker
    from .api_key_create_response import ApiKeyCreateResponse
    from .api_key_list_response import ApiKeyListResponse
    from .api_key_response import ApiKeyResponse
    from .api_key_scope import ApiKeyScope
    from .api_key_scope_role import ApiKeyScopeRole
    from .authorized_operation_type import AuthorizedOperationType
    from .authz_request import AuthzRequest
    from .authz_search_response import AuthzSearchResponse
    from .branch_list_response import BranchListResponse
    from .branch_response import BranchResponse
    from .claude_message_content import ClaudeMessageContent
    from .cli_refresh_response import CliRefreshResponse
    from .cli_token_response import CliTokenResponse
    from .create_api_key_response import CreateApiKeyResponse
    from .cross_env_secret_response import CrossEnvSecretResponse
    from .cross_env_secrets_list_response import CrossEnvSecretsListResponse
    from .data_content import DataContent
    from .data_delta import DataDelta
    from .delete_env_response import DeleteEnvResponse
    from .delete_env_var_response import DeleteEnvVarResponse
    from .delete_response import DeleteResponse
    from .deploy_response import DeployResponse
    from .deployed_secret_key import DeployedSecretKey
    from .deployed_secrets_response import DeployedSecretsResponse
    from .env_list_response import EnvListResponse
    from .env_response import EnvResponse
    from .env_secret_info import EnvSecretInfo
    from .env_var_list_response import EnvVarListResponse
    from .env_var_response import EnvVarResponse
    from .env_var_value import EnvVarValue
    from .event import Event
    from .file_attachment import FileAttachment
    from .filesystem_file import FilesystemFile
    from .filesystem_file_response import FilesystemFileResponse
    from .filesystem_response import FilesystemResponse
    from .filesystem_status import FilesystemStatus
    from .http_validation_error import HttpValidationError
    from .list_files_response import ListFilesResponse
    from .log_level import LogLevel
    from .log_list_response import LogListResponse
    from .log_query_entry import LogQueryEntry
    from .log_source import LogSource
    from .log_stream_connected_event import LogStreamConnectedEvent
    from .log_stream_error_event import LogStreamErrorEvent
    from .log_stream_event import LogStreamEvent, LogStreamEvent_Connected, LogStreamEvent_Error, LogStreamEvent_Log
    from .log_stream_log_event import LogStreamLogEvent
    from .message_author import MessageAuthor
    from .message_style import MessageStyle
    from .metrics_ingestion_response import MetricsIngestionResponse
    from .migrate_tasks_response import MigrateTasksResponse
    from .namespace import Namespace
    from .namespace_status import NamespaceStatus
    from .o_auth_initiate_response import OAuthInitiateResponse
    from .o_auth_token_response import OAuthTokenResponse
    from .organization_response import OrganizationResponse
    from .otlp_attribute import OtlpAttribute
    from .otlp_attribute_value import OtlpAttributeValue
    from .otlp_body_value import OtlpBodyValue
    from .otlp_log_ingestion_response import OtlpLogIngestionResponse
    from .otlp_log_record import OtlpLogRecord
    from .otlp_resource import OtlpResource
    from .otlp_resource_logs import OtlpResourceLogs
    from .otlp_scope import OtlpScope
    from .otlp_scope_logs import OtlpScopeLogs
    from .paginated_messages_response import PaginatedMessagesResponse
    from .pause_schedule_request import PauseScheduleRequest
    from .presigned_url_request import PresignedUrlRequest
    from .presigned_url_response import PresignedUrlResponse
    from .principal_context_entity import PrincipalContextEntity
    from .principal_request import PrincipalRequest
    from .project import Project
    from .publish_stream_events_response import PublishStreamEventsResponse
    from .reasoning_content import ReasoningContent
    from .reasoning_content_delta import ReasoningContentDelta
    from .reasoning_summary_delta import ReasoningSummaryDelta
    from .redeploy_response import RedeployResponse
    from .register_container_response import RegisterContainerResponse
    from .registry_auth_response import RegistryAuthResponse
    from .resolve_env_response import ResolveEnvResponse
    from .revoke_all_response import RevokeAllResponse
    from .rollback_request import RollbackRequest
    from .rollback_response import RollbackResponse
    from .schedule_action_info import ScheduleActionInfo
    from .schedule_list_item import ScheduleListItem
    from .schedule_list_response import ScheduleListResponse
    from .schedule_response import ScheduleResponse
    from .schedule_spec_info import ScheduleSpecInfo
    from .schedule_state import ScheduleState
    from .sdk_type import SdkType
    from .set_env_var_response import SetEnvVarResponse
    from .slug_availability_response import SlugAvailabilityResponse
    from .span import Span
    from .state import State
    from .stream_task_message_delta import StreamTaskMessageDelta
    from .stream_task_message_done import StreamTaskMessageDone
    from .stream_task_message_full import StreamTaskMessageFull
    from .stream_task_message_start import StreamTaskMessageStart
    from .sync_complete_response import SyncCompleteResponse
    from .system_folder_response import SystemFolderResponse
    from .system_folder_sync_complete_response import SystemFolderSyncCompleteResponse
    from .system_folder_type import SystemFolderType
    from .system_folder_type_response import SystemFolderTypeResponse
    from .task import Task
    from .task_message import TaskMessage
    from .task_message_content import (
        TaskMessageContent,
        TaskMessageContent_ClaudeMessage,
        TaskMessageContent_Data,
        TaskMessageContent_Reasoning,
        TaskMessageContent_Text,
        TaskMessageContent_ToolRequest,
        TaskMessageContent_ToolResponse,
    )
    from .task_message_delta import (
        TaskMessageDelta,
        TaskMessageDelta_Data,
        TaskMessageDelta_ReasoningContent,
        TaskMessageDelta_ReasoningSummary,
        TaskMessageDelta_Text,
        TaskMessageDelta_ToolRequest,
        TaskMessageDelta_ToolResponse,
    )
    from .task_message_streaming_status import TaskMessageStreamingStatus
    from .task_message_update import (
        TaskMessageUpdate,
        TaskMessageUpdate_Delta,
        TaskMessageUpdate_Done,
        TaskMessageUpdate_Full,
        TaskMessageUpdate_Start,
    )
    from .task_relationships import TaskRelationships
    from .task_response import TaskResponse
    from .task_status import TaskStatus
    from .task_stream_connected_event import TaskStreamConnectedEvent
    from .task_stream_error_event import TaskStreamErrorEvent
    from .task_stream_event import (
        TaskStreamEvent,
        TaskStreamEvent_Connected,
        TaskStreamEvent_Delta,
        TaskStreamEvent_Done,
        TaskStreamEvent_Error,
        TaskStreamEvent_Full,
        TaskStreamEvent_Start,
        TaskStreamEvent_TaskUpdated,
    )
    from .task_stream_task_updated_event import TaskStreamTaskUpdatedEvent
    from .terminal_use_resource import TerminalUseResource
    from .terminal_use_resource_type import TerminalUseResourceType
    from .text_content import TextContent
    from .text_delta import TextDelta
    from .text_format import TextFormat
    from .tool_request_content import ToolRequestContent
    from .tool_request_delta import ToolRequestDelta
    from .tool_response_content import ToolResponseContent
    from .tool_response_delta import ToolResponseDelta
    from .trace_ingestion_response import TraceIngestionResponse
    from .tuple_membership_request import TupleMembershipRequest
    from .tuple_role_request import TupleRoleRequest
    from .unpause_schedule_request import UnpauseScheduleRequest
    from .update_task_request import UpdateTaskRequest
    from .validation_error import ValidationError
    from .validation_error_loc_item import ValidationErrorLocItem
    from .version_event_content import VersionEventContent
    from .version_event_list_response import VersionEventListResponse
    from .version_event_response import VersionEventResponse
    from .version_event_trigger import VersionEventTrigger
    from .version_event_type import VersionEventType
    from .version_list_response import VersionListResponse
    from .version_response import VersionResponse
    from .version_status import VersionStatus
    from .version_summary import VersionSummary
_dynamic_imports: typing.Dict[str, str] = {
    "AcpType": ".acp_type",
    "Agent": ".agent",
    "AgentApiKey": ".agent_api_key",
    "AgentApiKeyType": ".agent_api_key_type",
    "AgentInputType": ".agent_input_type",
    "AgentStatus": ".agent_status",
    "AgentTaskTracker": ".agent_task_tracker",
    "ApiKeyCreateResponse": ".api_key_create_response",
    "ApiKeyListResponse": ".api_key_list_response",
    "ApiKeyResponse": ".api_key_response",
    "ApiKeyScope": ".api_key_scope",
    "ApiKeyScopeRole": ".api_key_scope_role",
    "AuthorizedOperationType": ".authorized_operation_type",
    "AuthzRequest": ".authz_request",
    "AuthzSearchResponse": ".authz_search_response",
    "BranchListResponse": ".branch_list_response",
    "BranchResponse": ".branch_response",
    "ClaudeMessageContent": ".claude_message_content",
    "CliRefreshResponse": ".cli_refresh_response",
    "CliTokenResponse": ".cli_token_response",
    "CreateApiKeyResponse": ".create_api_key_response",
    "CrossEnvSecretResponse": ".cross_env_secret_response",
    "CrossEnvSecretsListResponse": ".cross_env_secrets_list_response",
    "DataContent": ".data_content",
    "DataDelta": ".data_delta",
    "DeleteEnvResponse": ".delete_env_response",
    "DeleteEnvVarResponse": ".delete_env_var_response",
    "DeleteResponse": ".delete_response",
    "DeployResponse": ".deploy_response",
    "DeployedSecretKey": ".deployed_secret_key",
    "DeployedSecretsResponse": ".deployed_secrets_response",
    "EnvListResponse": ".env_list_response",
    "EnvResponse": ".env_response",
    "EnvSecretInfo": ".env_secret_info",
    "EnvVarListResponse": ".env_var_list_response",
    "EnvVarResponse": ".env_var_response",
    "EnvVarValue": ".env_var_value",
    "Event": ".event",
    "FileAttachment": ".file_attachment",
    "FilesystemFile": ".filesystem_file",
    "FilesystemFileResponse": ".filesystem_file_response",
    "FilesystemResponse": ".filesystem_response",
    "FilesystemStatus": ".filesystem_status",
    "HttpValidationError": ".http_validation_error",
    "ListFilesResponse": ".list_files_response",
    "LogLevel": ".log_level",
    "LogListResponse": ".log_list_response",
    "LogQueryEntry": ".log_query_entry",
    "LogSource": ".log_source",
    "LogStreamConnectedEvent": ".log_stream_connected_event",
    "LogStreamErrorEvent": ".log_stream_error_event",
    "LogStreamEvent": ".log_stream_event",
    "LogStreamEvent_Connected": ".log_stream_event",
    "LogStreamEvent_Error": ".log_stream_event",
    "LogStreamEvent_Log": ".log_stream_event",
    "LogStreamLogEvent": ".log_stream_log_event",
    "MessageAuthor": ".message_author",
    "MessageStyle": ".message_style",
    "MetricsIngestionResponse": ".metrics_ingestion_response",
    "MigrateTasksResponse": ".migrate_tasks_response",
    "Namespace": ".namespace",
    "NamespaceStatus": ".namespace_status",
    "OAuthInitiateResponse": ".o_auth_initiate_response",
    "OAuthTokenResponse": ".o_auth_token_response",
    "OrganizationResponse": ".organization_response",
    "OtlpAttribute": ".otlp_attribute",
    "OtlpAttributeValue": ".otlp_attribute_value",
    "OtlpBodyValue": ".otlp_body_value",
    "OtlpLogIngestionResponse": ".otlp_log_ingestion_response",
    "OtlpLogRecord": ".otlp_log_record",
    "OtlpResource": ".otlp_resource",
    "OtlpResourceLogs": ".otlp_resource_logs",
    "OtlpScope": ".otlp_scope",
    "OtlpScopeLogs": ".otlp_scope_logs",
    "PaginatedMessagesResponse": ".paginated_messages_response",
    "PauseScheduleRequest": ".pause_schedule_request",
    "PresignedUrlRequest": ".presigned_url_request",
    "PresignedUrlResponse": ".presigned_url_response",
    "PrincipalContextEntity": ".principal_context_entity",
    "PrincipalRequest": ".principal_request",
    "Project": ".project",
    "PublishStreamEventsResponse": ".publish_stream_events_response",
    "ReasoningContent": ".reasoning_content",
    "ReasoningContentDelta": ".reasoning_content_delta",
    "ReasoningSummaryDelta": ".reasoning_summary_delta",
    "RedeployResponse": ".redeploy_response",
    "RegisterContainerResponse": ".register_container_response",
    "RegistryAuthResponse": ".registry_auth_response",
    "ResolveEnvResponse": ".resolve_env_response",
    "RevokeAllResponse": ".revoke_all_response",
    "RollbackRequest": ".rollback_request",
    "RollbackResponse": ".rollback_response",
    "ScheduleActionInfo": ".schedule_action_info",
    "ScheduleListItem": ".schedule_list_item",
    "ScheduleListResponse": ".schedule_list_response",
    "ScheduleResponse": ".schedule_response",
    "ScheduleSpecInfo": ".schedule_spec_info",
    "ScheduleState": ".schedule_state",
    "SdkType": ".sdk_type",
    "SetEnvVarResponse": ".set_env_var_response",
    "SlugAvailabilityResponse": ".slug_availability_response",
    "Span": ".span",
    "State": ".state",
    "StreamTaskMessageDelta": ".stream_task_message_delta",
    "StreamTaskMessageDone": ".stream_task_message_done",
    "StreamTaskMessageFull": ".stream_task_message_full",
    "StreamTaskMessageStart": ".stream_task_message_start",
    "SyncCompleteResponse": ".sync_complete_response",
    "SystemFolderResponse": ".system_folder_response",
    "SystemFolderSyncCompleteResponse": ".system_folder_sync_complete_response",
    "SystemFolderType": ".system_folder_type",
    "SystemFolderTypeResponse": ".system_folder_type_response",
    "Task": ".task",
    "TaskMessage": ".task_message",
    "TaskMessageContent": ".task_message_content",
    "TaskMessageContent_ClaudeMessage": ".task_message_content",
    "TaskMessageContent_Data": ".task_message_content",
    "TaskMessageContent_Reasoning": ".task_message_content",
    "TaskMessageContent_Text": ".task_message_content",
    "TaskMessageContent_ToolRequest": ".task_message_content",
    "TaskMessageContent_ToolResponse": ".task_message_content",
    "TaskMessageDelta": ".task_message_delta",
    "TaskMessageDelta_Data": ".task_message_delta",
    "TaskMessageDelta_ReasoningContent": ".task_message_delta",
    "TaskMessageDelta_ReasoningSummary": ".task_message_delta",
    "TaskMessageDelta_Text": ".task_message_delta",
    "TaskMessageDelta_ToolRequest": ".task_message_delta",
    "TaskMessageDelta_ToolResponse": ".task_message_delta",
    "TaskMessageStreamingStatus": ".task_message_streaming_status",
    "TaskMessageUpdate": ".task_message_update",
    "TaskMessageUpdate_Delta": ".task_message_update",
    "TaskMessageUpdate_Done": ".task_message_update",
    "TaskMessageUpdate_Full": ".task_message_update",
    "TaskMessageUpdate_Start": ".task_message_update",
    "TaskRelationships": ".task_relationships",
    "TaskResponse": ".task_response",
    "TaskStatus": ".task_status",
    "TaskStreamConnectedEvent": ".task_stream_connected_event",
    "TaskStreamErrorEvent": ".task_stream_error_event",
    "TaskStreamEvent": ".task_stream_event",
    "TaskStreamEvent_Connected": ".task_stream_event",
    "TaskStreamEvent_Delta": ".task_stream_event",
    "TaskStreamEvent_Done": ".task_stream_event",
    "TaskStreamEvent_Error": ".task_stream_event",
    "TaskStreamEvent_Full": ".task_stream_event",
    "TaskStreamEvent_Start": ".task_stream_event",
    "TaskStreamEvent_TaskUpdated": ".task_stream_event",
    "TaskStreamTaskUpdatedEvent": ".task_stream_task_updated_event",
    "TerminalUseResource": ".terminal_use_resource",
    "TerminalUseResourceType": ".terminal_use_resource_type",
    "TextContent": ".text_content",
    "TextDelta": ".text_delta",
    "TextFormat": ".text_format",
    "ToolRequestContent": ".tool_request_content",
    "ToolRequestDelta": ".tool_request_delta",
    "ToolResponseContent": ".tool_response_content",
    "ToolResponseDelta": ".tool_response_delta",
    "TraceIngestionResponse": ".trace_ingestion_response",
    "TupleMembershipRequest": ".tuple_membership_request",
    "TupleRoleRequest": ".tuple_role_request",
    "UnpauseScheduleRequest": ".unpause_schedule_request",
    "UpdateTaskRequest": ".update_task_request",
    "ValidationError": ".validation_error",
    "ValidationErrorLocItem": ".validation_error_loc_item",
    "VersionEventContent": ".version_event_content",
    "VersionEventListResponse": ".version_event_list_response",
    "VersionEventResponse": ".version_event_response",
    "VersionEventTrigger": ".version_event_trigger",
    "VersionEventType": ".version_event_type",
    "VersionListResponse": ".version_list_response",
    "VersionResponse": ".version_response",
    "VersionStatus": ".version_status",
    "VersionSummary": ".version_summary",
}


def __getattr__(attr_name: str) -> typing.Any:
    module_name = _dynamic_imports.get(attr_name)
    if module_name is None:
        raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
    try:
        module = import_module(module_name, __package__)
        if module_name == f".{attr_name}":
            return module
        else:
            return getattr(module, attr_name)
    except ImportError as e:
        raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
    except AttributeError as e:
        raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e


def __dir__():
    lazy_attrs = list(_dynamic_imports.keys())
    return sorted(lazy_attrs)


__all__ = [
    "AcpType",
    "Agent",
    "AgentApiKey",
    "AgentApiKeyType",
    "AgentInputType",
    "AgentStatus",
    "AgentTaskTracker",
    "ApiKeyCreateResponse",
    "ApiKeyListResponse",
    "ApiKeyResponse",
    "ApiKeyScope",
    "ApiKeyScopeRole",
    "AuthorizedOperationType",
    "AuthzRequest",
    "AuthzSearchResponse",
    "BranchListResponse",
    "BranchResponse",
    "ClaudeMessageContent",
    "CliRefreshResponse",
    "CliTokenResponse",
    "CreateApiKeyResponse",
    "CrossEnvSecretResponse",
    "CrossEnvSecretsListResponse",
    "DataContent",
    "DataDelta",
    "DeleteEnvResponse",
    "DeleteEnvVarResponse",
    "DeleteResponse",
    "DeployResponse",
    "DeployedSecretKey",
    "DeployedSecretsResponse",
    "EnvListResponse",
    "EnvResponse",
    "EnvSecretInfo",
    "EnvVarListResponse",
    "EnvVarResponse",
    "EnvVarValue",
    "Event",
    "FileAttachment",
    "FilesystemFile",
    "FilesystemFileResponse",
    "FilesystemResponse",
    "FilesystemStatus",
    "HttpValidationError",
    "ListFilesResponse",
    "LogLevel",
    "LogListResponse",
    "LogQueryEntry",
    "LogSource",
    "LogStreamConnectedEvent",
    "LogStreamErrorEvent",
    "LogStreamEvent",
    "LogStreamEvent_Connected",
    "LogStreamEvent_Error",
    "LogStreamEvent_Log",
    "LogStreamLogEvent",
    "MessageAuthor",
    "MessageStyle",
    "MetricsIngestionResponse",
    "MigrateTasksResponse",
    "Namespace",
    "NamespaceStatus",
    "OAuthInitiateResponse",
    "OAuthTokenResponse",
    "OrganizationResponse",
    "OtlpAttribute",
    "OtlpAttributeValue",
    "OtlpBodyValue",
    "OtlpLogIngestionResponse",
    "OtlpLogRecord",
    "OtlpResource",
    "OtlpResourceLogs",
    "OtlpScope",
    "OtlpScopeLogs",
    "PaginatedMessagesResponse",
    "PauseScheduleRequest",
    "PresignedUrlRequest",
    "PresignedUrlResponse",
    "PrincipalContextEntity",
    "PrincipalRequest",
    "Project",
    "PublishStreamEventsResponse",
    "ReasoningContent",
    "ReasoningContentDelta",
    "ReasoningSummaryDelta",
    "RedeployResponse",
    "RegisterContainerResponse",
    "RegistryAuthResponse",
    "ResolveEnvResponse",
    "RevokeAllResponse",
    "RollbackRequest",
    "RollbackResponse",
    "ScheduleActionInfo",
    "ScheduleListItem",
    "ScheduleListResponse",
    "ScheduleResponse",
    "ScheduleSpecInfo",
    "ScheduleState",
    "SdkType",
    "SetEnvVarResponse",
    "SlugAvailabilityResponse",
    "Span",
    "State",
    "StreamTaskMessageDelta",
    "StreamTaskMessageDone",
    "StreamTaskMessageFull",
    "StreamTaskMessageStart",
    "SyncCompleteResponse",
    "SystemFolderResponse",
    "SystemFolderSyncCompleteResponse",
    "SystemFolderType",
    "SystemFolderTypeResponse",
    "Task",
    "TaskMessage",
    "TaskMessageContent",
    "TaskMessageContent_ClaudeMessage",
    "TaskMessageContent_Data",
    "TaskMessageContent_Reasoning",
    "TaskMessageContent_Text",
    "TaskMessageContent_ToolRequest",
    "TaskMessageContent_ToolResponse",
    "TaskMessageDelta",
    "TaskMessageDelta_Data",
    "TaskMessageDelta_ReasoningContent",
    "TaskMessageDelta_ReasoningSummary",
    "TaskMessageDelta_Text",
    "TaskMessageDelta_ToolRequest",
    "TaskMessageDelta_ToolResponse",
    "TaskMessageStreamingStatus",
    "TaskMessageUpdate",
    "TaskMessageUpdate_Delta",
    "TaskMessageUpdate_Done",
    "TaskMessageUpdate_Full",
    "TaskMessageUpdate_Start",
    "TaskRelationships",
    "TaskResponse",
    "TaskStatus",
    "TaskStreamConnectedEvent",
    "TaskStreamErrorEvent",
    "TaskStreamEvent",
    "TaskStreamEvent_Connected",
    "TaskStreamEvent_Delta",
    "TaskStreamEvent_Done",
    "TaskStreamEvent_Error",
    "TaskStreamEvent_Full",
    "TaskStreamEvent_Start",
    "TaskStreamEvent_TaskUpdated",
    "TaskStreamTaskUpdatedEvent",
    "TerminalUseResource",
    "TerminalUseResourceType",
    "TextContent",
    "TextDelta",
    "TextFormat",
    "ToolRequestContent",
    "ToolRequestDelta",
    "ToolResponseContent",
    "ToolResponseDelta",
    "TraceIngestionResponse",
    "TupleMembershipRequest",
    "TupleRoleRequest",
    "UnpauseScheduleRequest",
    "UpdateTaskRequest",
    "ValidationError",
    "ValidationErrorLocItem",
    "VersionEventContent",
    "VersionEventListResponse",
    "VersionEventResponse",
    "VersionEventTrigger",
    "VersionEventType",
    "VersionListResponse",
    "VersionResponse",
    "VersionStatus",
    "VersionSummary",
]
