"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from typing import TYPE_CHECKING
from importlib import import_module
import builtins
import sys

if TYPE_CHECKING:
    from .accountresponse import AccountResponse, AccountResponseTypedDict, AccountType
    from .addcontactbyextidtogroupop import (
        AddContactByExtIDToGroupRequest,
        AddContactByExtIDToGroupRequestTypedDict,
        AddContactByExtIDToGroupResponse,
        AddContactByExtIDToGroupResponseTypedDict,
    )
    from .addcontactop import (
        AddContactResponse,
        AddContactResponseResult,
        AddContactResponseResultTypedDict,
        AddContactResponseTypedDict,
    )
    from .addcontacttogroupop import (
        AddContactToGroupRequest,
        AddContactToGroupRequestTypedDict,
        AddContactToGroupResponse,
        AddContactToGroupResponseTypedDict,
    )
    from .addgroupop import (
        AddGroupResponse,
        AddGroupResponseResult,
        AddGroupResponseResultTypedDict,
        AddGroupResponseTypedDict,
    )
    from .addsenderop import (
        AddSenderResponse,
        AddSenderResponseResult,
        AddSenderResponseResultTypedDict,
        AddSenderResponseTypedDict,
    )
    from .cancelshipmentop import (
        CancelShipmentRequest,
        CancelShipmentRequestTypedDict,
        CancelShipmentResponse,
        CancelShipmentResponseResult,
        CancelShipmentResponseResultTypedDict,
        CancelShipmentResponseTypedDict,
    )
    from .contact import Contact, ContactTypedDict
    from .contactresponse import ContactResponse, ContactResponseTypedDict
    from .deletecontactbyexternalidop import (
        DeleteContactByExternalIDRequest,
        DeleteContactByExternalIDRequestTypedDict,
        DeleteContactByExternalIDResponse,
        DeleteContactByExternalIDResponseTypedDict,
    )
    from .deletecontactop import (
        DeleteContactRequest,
        DeleteContactRequestTypedDict,
        DeleteContactResponse,
        DeleteContactResponseTypedDict,
    )
    from .deletegroupop import (
        ContactHandling,
        DeleteGroupRequest,
        DeleteGroupRequestTypedDict,
        DeleteGroupResponse,
        DeleteGroupResponseTypedDict,
    )
    from .deletesenderop import (
        DeleteSenderRequest,
        DeleteSenderRequestTypedDict,
        DeleteSenderResponse,
        DeleteSenderResponseTypedDict,
    )
    from .documentlibrary import DocumentLibrary, DocumentLibraryTypedDict
    from .documentmock import DocumentMock, DocumentMockTypedDict
    from .documentpdf import DocumentPdf, DocumentPdfTypedDict
    from .documentresponse import DocumentResponse, DocumentResponseTypedDict
    from .documents import Documents, DocumentsTypedDict
    from .errorresponse import ErrorResponse, ErrorResponseTypedDict
    from .getaccountdetailsop import (
        GetAccountDetailsResponse,
        GetAccountDetailsResponseTypedDict,
    )
    from .getcontactbyexternalidop import (
        GetContactByExternalIDRequest,
        GetContactByExternalIDRequestTypedDict,
        GetContactByExternalIDResponse,
        GetContactByExternalIDResponseTypedDict,
    )
    from .getcontactbyidop import (
        GetContactByIDRequest,
        GetContactByIDRequestTypedDict,
        GetContactByIDResponse,
        GetContactByIDResponseTypedDict,
    )
    from .getdocumentsop import (
        DocumentType,
        GetDocumentsRequest,
        GetDocumentsRequestTypedDict,
        GetDocumentsResponse,
        GetDocumentsResponseResult,
        GetDocumentsResponseResultTypedDict,
        GetDocumentsResponseTypedDict,
    )
    from .getgroupbyidop import (
        GetGroupByIDRequest,
        GetGroupByIDRequestTypedDict,
        GetGroupByIDResponse,
        GetGroupByIDResponseTypedDict,
    )
    from .getstatusop import (
        GetStatusRequest,
        GetStatusRequestTypedDict,
        GetStatusResponse,
        GetStatusResponseResult,
        GetStatusResponseResultTypedDict,
        GetStatusResponseTypedDict,
    )
    from .getsubaccountdetailsop import (
        GetSubaccountDetailsRequest,
        GetSubaccountDetailsRequestTypedDict,
        GetSubaccountDetailsResponse,
        GetSubaccountDetailsResponseTypedDict,
    )
    from .group import Group, GroupTypedDict
    from .groupresponse import GroupResponse, GroupResponseTypedDict
    from .listcontactsop import (
        ListContactsRequest,
        ListContactsRequestTypedDict,
        ListContactsResponse,
        ListContactsResponseResult,
        ListContactsResponseResultTypedDict,
        ListContactsResponseTypedDict,
    )
    from .listgroupsop import ListGroupsResponse, ListGroupsResponseTypedDict
    from .listmetadataop import ListMetadataResponse, ListMetadataResponseTypedDict
    from .listpredefinedconfigsop import (
        ListPredefinedConfigsResponse,
        ListPredefinedConfigsResponseTypedDict,
    )
    from .listsendersop import ListSendersResponse, ListSendersResponseTypedDict
    from .metadataresponse import (
        Envelope,
        EnvelopeTemplate,
        EnvelopeTemplateTypedDict,
        EnvelopeTypedDict,
        MetadataResponse,
        MetadataResponseCarrier,
        MetadataResponseCarrierTypedDict,
        MetadataResponseService,
        MetadataResponseServiceTypedDict,
        MetadataResponseTypedDict,
        Paper,
        PaperTypedDict,
        StatusCode,
        StatusCodeTypedDict,
    )
    from .pingop import PingResponseResponse, PingResponseResponseTypedDict
    from .pingresponse import PingResponse, PingResponseTypedDict
    from .predefinedconfig import PredefinedConfig, PredefinedConfigTypedDict
    from .recipient import Recipient, RecipientTypedDict
    from .recipientfromaddressbook import (
        RecipientFromAddressBook,
        RecipientFromAddressBookTypedDict,
    )
    from .recipientfromaddressbookbyexternalid import (
        RecipientFromAddressBookByExternalID,
        RecipientFromAddressBookByExternalIDTypedDict,
    )
    from .recipientinline import RecipientInline, RecipientInlineTypedDict
    from .recipients import Recipients, RecipientsTypedDict
    from .removecontactbyextidtogroupop import (
        RemoveContactByExtIDToGroupRequest,
        RemoveContactByExtIDToGroupRequestTypedDict,
        RemoveContactByExtIDToGroupResponse,
        RemoveContactByExtIDToGroupResponseTypedDict,
    )
    from .removecontactfromgroupop import (
        RemoveContactFromGroupRequest,
        RemoveContactFromGroupRequestTypedDict,
        RemoveContactFromGroupResponse,
        RemoveContactFromGroupResponseTypedDict,
    )
    from .security import Security, SecurityTypedDict
    from .sender import Sender, SenderTypedDict
    from .senderdetails import SenderDetails, SenderDetailsTypedDict
    from .shipment import (
        Callback,
        CallbackTypedDict,
        CallbackUnion,
        CallbackUnionTypedDict,
        InlineConfig,
        InlineConfigTypedDict,
        InlineConfigUnion,
        InlineConfigUnionTypedDict,
        MiscInfo,
        MiscInfoTypedDict,
        MiscInfoUnion,
        MiscInfoUnionTypedDict,
        Options,
        OptionsTypedDict,
        Shipment,
        ShipmentDocuments,
        ShipmentDocumentsTypedDict,
        ShipmentOptions,
        ShipmentOptionsTypedDict,
        ShipmentRecipients,
        ShipmentRecipientsTypedDict,
        ShipmentTypedDict,
    )
    from .shipmentcancellation import (
        ShipmentCancellation,
        ShipmentCancellationTypedDict,
    )
    from .shipmentdetails import (
        ShipmentDetails,
        ShipmentDetailsCarrier,
        ShipmentDetailsCarrierTypedDict,
        ShipmentDetailsService,
        ShipmentDetailsServiceTypedDict,
        ShipmentDetailsStatus,
        ShipmentDetailsStatusTypedDict,
        ShipmentDetailsTypedDict,
    )
    from .shipmentdispatchop import (
        ShipmentDispatchResponse,
        ShipmentDispatchResponseResult,
        ShipmentDispatchResponseResultTypedDict,
        ShipmentDispatchResponseTypedDict,
    )
    from .shipmentprice import (
        ShipmentPrice,
        ShipmentPriceCarrier,
        ShipmentPriceCarrierTypedDict,
        ShipmentPriceService,
        ShipmentPriceServiceTypedDict,
        ShipmentPriceStatus,
        ShipmentPriceStatusTypedDict,
        ShipmentPriceTypedDict,
    )
    from .shipmentpriceop import (
        ShipmentPriceResponse,
        ShipmentPriceResponseResult,
        ShipmentPriceResponseResultTypedDict,
        ShipmentPriceResponseTypedDict,
    )
    from .statusdetails import StatusDetails, StatusDetailsTypedDict
    from .statusevent import StatusEvent, StatusEventTypedDict
    from .updatecontactbyexternalidop import (
        UpdateContactByExternalIDRequest,
        UpdateContactByExternalIDRequestTypedDict,
        UpdateContactByExternalIDResponse,
        UpdateContactByExternalIDResponseResult,
        UpdateContactByExternalIDResponseResultTypedDict,
        UpdateContactByExternalIDResponseTypedDict,
    )
    from .updatecontactop import (
        UpdateContactRequest,
        UpdateContactRequestTypedDict,
        UpdateContactResponse,
        UpdateContactResponseResult,
        UpdateContactResponseResultTypedDict,
        UpdateContactResponseTypedDict,
    )
    from .updategroupop import (
        UpdateGroupRequest,
        UpdateGroupRequestTypedDict,
        UpdateGroupResponse,
        UpdateGroupResponseResult,
        UpdateGroupResponseResultTypedDict,
        UpdateGroupResponseTypedDict,
    )
    from .verifysenderop import (
        VerifySenderRequest,
        VerifySenderRequestBody,
        VerifySenderRequestBodyTypedDict,
        VerifySenderRequestTypedDict,
        VerifySenderResponse,
        VerifySenderResponseTypedDict,
    )

__all__ = [
    "AccountResponse",
    "AccountResponseTypedDict",
    "AccountType",
    "AddContactByExtIDToGroupRequest",
    "AddContactByExtIDToGroupRequestTypedDict",
    "AddContactByExtIDToGroupResponse",
    "AddContactByExtIDToGroupResponseTypedDict",
    "AddContactResponse",
    "AddContactResponseResult",
    "AddContactResponseResultTypedDict",
    "AddContactResponseTypedDict",
    "AddContactToGroupRequest",
    "AddContactToGroupRequestTypedDict",
    "AddContactToGroupResponse",
    "AddContactToGroupResponseTypedDict",
    "AddGroupResponse",
    "AddGroupResponseResult",
    "AddGroupResponseResultTypedDict",
    "AddGroupResponseTypedDict",
    "AddSenderResponse",
    "AddSenderResponseResult",
    "AddSenderResponseResultTypedDict",
    "AddSenderResponseTypedDict",
    "Callback",
    "CallbackTypedDict",
    "CallbackUnion",
    "CallbackUnionTypedDict",
    "CancelShipmentRequest",
    "CancelShipmentRequestTypedDict",
    "CancelShipmentResponse",
    "CancelShipmentResponseResult",
    "CancelShipmentResponseResultTypedDict",
    "CancelShipmentResponseTypedDict",
    "Contact",
    "ContactHandling",
    "ContactResponse",
    "ContactResponseTypedDict",
    "ContactTypedDict",
    "DeleteContactByExternalIDRequest",
    "DeleteContactByExternalIDRequestTypedDict",
    "DeleteContactByExternalIDResponse",
    "DeleteContactByExternalIDResponseTypedDict",
    "DeleteContactRequest",
    "DeleteContactRequestTypedDict",
    "DeleteContactResponse",
    "DeleteContactResponseTypedDict",
    "DeleteGroupRequest",
    "DeleteGroupRequestTypedDict",
    "DeleteGroupResponse",
    "DeleteGroupResponseTypedDict",
    "DeleteSenderRequest",
    "DeleteSenderRequestTypedDict",
    "DeleteSenderResponse",
    "DeleteSenderResponseTypedDict",
    "DocumentLibrary",
    "DocumentLibraryTypedDict",
    "DocumentMock",
    "DocumentMockTypedDict",
    "DocumentPdf",
    "DocumentPdfTypedDict",
    "DocumentResponse",
    "DocumentResponseTypedDict",
    "DocumentType",
    "Documents",
    "DocumentsTypedDict",
    "Envelope",
    "EnvelopeTemplate",
    "EnvelopeTemplateTypedDict",
    "EnvelopeTypedDict",
    "ErrorResponse",
    "ErrorResponseTypedDict",
    "GetAccountDetailsResponse",
    "GetAccountDetailsResponseTypedDict",
    "GetContactByExternalIDRequest",
    "GetContactByExternalIDRequestTypedDict",
    "GetContactByExternalIDResponse",
    "GetContactByExternalIDResponseTypedDict",
    "GetContactByIDRequest",
    "GetContactByIDRequestTypedDict",
    "GetContactByIDResponse",
    "GetContactByIDResponseTypedDict",
    "GetDocumentsRequest",
    "GetDocumentsRequestTypedDict",
    "GetDocumentsResponse",
    "GetDocumentsResponseResult",
    "GetDocumentsResponseResultTypedDict",
    "GetDocumentsResponseTypedDict",
    "GetGroupByIDRequest",
    "GetGroupByIDRequestTypedDict",
    "GetGroupByIDResponse",
    "GetGroupByIDResponseTypedDict",
    "GetStatusRequest",
    "GetStatusRequestTypedDict",
    "GetStatusResponse",
    "GetStatusResponseResult",
    "GetStatusResponseResultTypedDict",
    "GetStatusResponseTypedDict",
    "GetSubaccountDetailsRequest",
    "GetSubaccountDetailsRequestTypedDict",
    "GetSubaccountDetailsResponse",
    "GetSubaccountDetailsResponseTypedDict",
    "Group",
    "GroupResponse",
    "GroupResponseTypedDict",
    "GroupTypedDict",
    "InlineConfig",
    "InlineConfigTypedDict",
    "InlineConfigUnion",
    "InlineConfigUnionTypedDict",
    "ListContactsRequest",
    "ListContactsRequestTypedDict",
    "ListContactsResponse",
    "ListContactsResponseResult",
    "ListContactsResponseResultTypedDict",
    "ListContactsResponseTypedDict",
    "ListGroupsResponse",
    "ListGroupsResponseTypedDict",
    "ListMetadataResponse",
    "ListMetadataResponseTypedDict",
    "ListPredefinedConfigsResponse",
    "ListPredefinedConfigsResponseTypedDict",
    "ListSendersResponse",
    "ListSendersResponseTypedDict",
    "MetadataResponse",
    "MetadataResponseCarrier",
    "MetadataResponseCarrierTypedDict",
    "MetadataResponseService",
    "MetadataResponseServiceTypedDict",
    "MetadataResponseTypedDict",
    "MiscInfo",
    "MiscInfoTypedDict",
    "MiscInfoUnion",
    "MiscInfoUnionTypedDict",
    "Options",
    "OptionsTypedDict",
    "Paper",
    "PaperTypedDict",
    "PingResponse",
    "PingResponseResponse",
    "PingResponseResponseTypedDict",
    "PingResponseTypedDict",
    "PredefinedConfig",
    "PredefinedConfigTypedDict",
    "Recipient",
    "RecipientFromAddressBook",
    "RecipientFromAddressBookByExternalID",
    "RecipientFromAddressBookByExternalIDTypedDict",
    "RecipientFromAddressBookTypedDict",
    "RecipientInline",
    "RecipientInlineTypedDict",
    "RecipientTypedDict",
    "Recipients",
    "RecipientsTypedDict",
    "RemoveContactByExtIDToGroupRequest",
    "RemoveContactByExtIDToGroupRequestTypedDict",
    "RemoveContactByExtIDToGroupResponse",
    "RemoveContactByExtIDToGroupResponseTypedDict",
    "RemoveContactFromGroupRequest",
    "RemoveContactFromGroupRequestTypedDict",
    "RemoveContactFromGroupResponse",
    "RemoveContactFromGroupResponseTypedDict",
    "Security",
    "SecurityTypedDict",
    "Sender",
    "SenderDetails",
    "SenderDetailsTypedDict",
    "SenderTypedDict",
    "Shipment",
    "ShipmentCancellation",
    "ShipmentCancellationTypedDict",
    "ShipmentDetails",
    "ShipmentDetailsCarrier",
    "ShipmentDetailsCarrierTypedDict",
    "ShipmentDetailsService",
    "ShipmentDetailsServiceTypedDict",
    "ShipmentDetailsStatus",
    "ShipmentDetailsStatusTypedDict",
    "ShipmentDetailsTypedDict",
    "ShipmentDispatchResponse",
    "ShipmentDispatchResponseResult",
    "ShipmentDispatchResponseResultTypedDict",
    "ShipmentDispatchResponseTypedDict",
    "ShipmentDocuments",
    "ShipmentDocumentsTypedDict",
    "ShipmentOptions",
    "ShipmentOptionsTypedDict",
    "ShipmentPrice",
    "ShipmentPriceCarrier",
    "ShipmentPriceCarrierTypedDict",
    "ShipmentPriceResponse",
    "ShipmentPriceResponseResult",
    "ShipmentPriceResponseResultTypedDict",
    "ShipmentPriceResponseTypedDict",
    "ShipmentPriceService",
    "ShipmentPriceServiceTypedDict",
    "ShipmentPriceStatus",
    "ShipmentPriceStatusTypedDict",
    "ShipmentPriceTypedDict",
    "ShipmentRecipients",
    "ShipmentRecipientsTypedDict",
    "ShipmentTypedDict",
    "StatusCode",
    "StatusCodeTypedDict",
    "StatusDetails",
    "StatusDetailsTypedDict",
    "StatusEvent",
    "StatusEventTypedDict",
    "UpdateContactByExternalIDRequest",
    "UpdateContactByExternalIDRequestTypedDict",
    "UpdateContactByExternalIDResponse",
    "UpdateContactByExternalIDResponseResult",
    "UpdateContactByExternalIDResponseResultTypedDict",
    "UpdateContactByExternalIDResponseTypedDict",
    "UpdateContactRequest",
    "UpdateContactRequestTypedDict",
    "UpdateContactResponse",
    "UpdateContactResponseResult",
    "UpdateContactResponseResultTypedDict",
    "UpdateContactResponseTypedDict",
    "UpdateGroupRequest",
    "UpdateGroupRequestTypedDict",
    "UpdateGroupResponse",
    "UpdateGroupResponseResult",
    "UpdateGroupResponseResultTypedDict",
    "UpdateGroupResponseTypedDict",
    "VerifySenderRequest",
    "VerifySenderRequestBody",
    "VerifySenderRequestBodyTypedDict",
    "VerifySenderRequestTypedDict",
    "VerifySenderResponse",
    "VerifySenderResponseTypedDict",
]

_dynamic_imports: dict[str, str] = {
    "AccountResponse": ".accountresponse",
    "AccountResponseTypedDict": ".accountresponse",
    "AccountType": ".accountresponse",
    "AddContactByExtIDToGroupRequest": ".addcontactbyextidtogroupop",
    "AddContactByExtIDToGroupRequestTypedDict": ".addcontactbyextidtogroupop",
    "AddContactByExtIDToGroupResponse": ".addcontactbyextidtogroupop",
    "AddContactByExtIDToGroupResponseTypedDict": ".addcontactbyextidtogroupop",
    "AddContactResponse": ".addcontactop",
    "AddContactResponseResult": ".addcontactop",
    "AddContactResponseResultTypedDict": ".addcontactop",
    "AddContactResponseTypedDict": ".addcontactop",
    "AddContactToGroupRequest": ".addcontacttogroupop",
    "AddContactToGroupRequestTypedDict": ".addcontacttogroupop",
    "AddContactToGroupResponse": ".addcontacttogroupop",
    "AddContactToGroupResponseTypedDict": ".addcontacttogroupop",
    "AddGroupResponse": ".addgroupop",
    "AddGroupResponseResult": ".addgroupop",
    "AddGroupResponseResultTypedDict": ".addgroupop",
    "AddGroupResponseTypedDict": ".addgroupop",
    "AddSenderResponse": ".addsenderop",
    "AddSenderResponseResult": ".addsenderop",
    "AddSenderResponseResultTypedDict": ".addsenderop",
    "AddSenderResponseTypedDict": ".addsenderop",
    "CancelShipmentRequest": ".cancelshipmentop",
    "CancelShipmentRequestTypedDict": ".cancelshipmentop",
    "CancelShipmentResponse": ".cancelshipmentop",
    "CancelShipmentResponseResult": ".cancelshipmentop",
    "CancelShipmentResponseResultTypedDict": ".cancelshipmentop",
    "CancelShipmentResponseTypedDict": ".cancelshipmentop",
    "Contact": ".contact",
    "ContactTypedDict": ".contact",
    "ContactResponse": ".contactresponse",
    "ContactResponseTypedDict": ".contactresponse",
    "DeleteContactByExternalIDRequest": ".deletecontactbyexternalidop",
    "DeleteContactByExternalIDRequestTypedDict": ".deletecontactbyexternalidop",
    "DeleteContactByExternalIDResponse": ".deletecontactbyexternalidop",
    "DeleteContactByExternalIDResponseTypedDict": ".deletecontactbyexternalidop",
    "DeleteContactRequest": ".deletecontactop",
    "DeleteContactRequestTypedDict": ".deletecontactop",
    "DeleteContactResponse": ".deletecontactop",
    "DeleteContactResponseTypedDict": ".deletecontactop",
    "ContactHandling": ".deletegroupop",
    "DeleteGroupRequest": ".deletegroupop",
    "DeleteGroupRequestTypedDict": ".deletegroupop",
    "DeleteGroupResponse": ".deletegroupop",
    "DeleteGroupResponseTypedDict": ".deletegroupop",
    "DeleteSenderRequest": ".deletesenderop",
    "DeleteSenderRequestTypedDict": ".deletesenderop",
    "DeleteSenderResponse": ".deletesenderop",
    "DeleteSenderResponseTypedDict": ".deletesenderop",
    "DocumentLibrary": ".documentlibrary",
    "DocumentLibraryTypedDict": ".documentlibrary",
    "DocumentMock": ".documentmock",
    "DocumentMockTypedDict": ".documentmock",
    "DocumentPdf": ".documentpdf",
    "DocumentPdfTypedDict": ".documentpdf",
    "DocumentResponse": ".documentresponse",
    "DocumentResponseTypedDict": ".documentresponse",
    "Documents": ".documents",
    "DocumentsTypedDict": ".documents",
    "ErrorResponse": ".errorresponse",
    "ErrorResponseTypedDict": ".errorresponse",
    "GetAccountDetailsResponse": ".getaccountdetailsop",
    "GetAccountDetailsResponseTypedDict": ".getaccountdetailsop",
    "GetContactByExternalIDRequest": ".getcontactbyexternalidop",
    "GetContactByExternalIDRequestTypedDict": ".getcontactbyexternalidop",
    "GetContactByExternalIDResponse": ".getcontactbyexternalidop",
    "GetContactByExternalIDResponseTypedDict": ".getcontactbyexternalidop",
    "GetContactByIDRequest": ".getcontactbyidop",
    "GetContactByIDRequestTypedDict": ".getcontactbyidop",
    "GetContactByIDResponse": ".getcontactbyidop",
    "GetContactByIDResponseTypedDict": ".getcontactbyidop",
    "DocumentType": ".getdocumentsop",
    "GetDocumentsRequest": ".getdocumentsop",
    "GetDocumentsRequestTypedDict": ".getdocumentsop",
    "GetDocumentsResponse": ".getdocumentsop",
    "GetDocumentsResponseResult": ".getdocumentsop",
    "GetDocumentsResponseResultTypedDict": ".getdocumentsop",
    "GetDocumentsResponseTypedDict": ".getdocumentsop",
    "GetGroupByIDRequest": ".getgroupbyidop",
    "GetGroupByIDRequestTypedDict": ".getgroupbyidop",
    "GetGroupByIDResponse": ".getgroupbyidop",
    "GetGroupByIDResponseTypedDict": ".getgroupbyidop",
    "GetStatusRequest": ".getstatusop",
    "GetStatusRequestTypedDict": ".getstatusop",
    "GetStatusResponse": ".getstatusop",
    "GetStatusResponseResult": ".getstatusop",
    "GetStatusResponseResultTypedDict": ".getstatusop",
    "GetStatusResponseTypedDict": ".getstatusop",
    "GetSubaccountDetailsRequest": ".getsubaccountdetailsop",
    "GetSubaccountDetailsRequestTypedDict": ".getsubaccountdetailsop",
    "GetSubaccountDetailsResponse": ".getsubaccountdetailsop",
    "GetSubaccountDetailsResponseTypedDict": ".getsubaccountdetailsop",
    "Group": ".group",
    "GroupTypedDict": ".group",
    "GroupResponse": ".groupresponse",
    "GroupResponseTypedDict": ".groupresponse",
    "ListContactsRequest": ".listcontactsop",
    "ListContactsRequestTypedDict": ".listcontactsop",
    "ListContactsResponse": ".listcontactsop",
    "ListContactsResponseResult": ".listcontactsop",
    "ListContactsResponseResultTypedDict": ".listcontactsop",
    "ListContactsResponseTypedDict": ".listcontactsop",
    "ListGroupsResponse": ".listgroupsop",
    "ListGroupsResponseTypedDict": ".listgroupsop",
    "ListMetadataResponse": ".listmetadataop",
    "ListMetadataResponseTypedDict": ".listmetadataop",
    "ListPredefinedConfigsResponse": ".listpredefinedconfigsop",
    "ListPredefinedConfigsResponseTypedDict": ".listpredefinedconfigsop",
    "ListSendersResponse": ".listsendersop",
    "ListSendersResponseTypedDict": ".listsendersop",
    "Envelope": ".metadataresponse",
    "EnvelopeTemplate": ".metadataresponse",
    "EnvelopeTemplateTypedDict": ".metadataresponse",
    "EnvelopeTypedDict": ".metadataresponse",
    "MetadataResponse": ".metadataresponse",
    "MetadataResponseCarrier": ".metadataresponse",
    "MetadataResponseCarrierTypedDict": ".metadataresponse",
    "MetadataResponseService": ".metadataresponse",
    "MetadataResponseServiceTypedDict": ".metadataresponse",
    "MetadataResponseTypedDict": ".metadataresponse",
    "Paper": ".metadataresponse",
    "PaperTypedDict": ".metadataresponse",
    "StatusCode": ".metadataresponse",
    "StatusCodeTypedDict": ".metadataresponse",
    "PingResponseResponse": ".pingop",
    "PingResponseResponseTypedDict": ".pingop",
    "PingResponse": ".pingresponse",
    "PingResponseTypedDict": ".pingresponse",
    "PredefinedConfig": ".predefinedconfig",
    "PredefinedConfigTypedDict": ".predefinedconfig",
    "Recipient": ".recipient",
    "RecipientTypedDict": ".recipient",
    "RecipientFromAddressBook": ".recipientfromaddressbook",
    "RecipientFromAddressBookTypedDict": ".recipientfromaddressbook",
    "RecipientFromAddressBookByExternalID": ".recipientfromaddressbookbyexternalid",
    "RecipientFromAddressBookByExternalIDTypedDict": ".recipientfromaddressbookbyexternalid",
    "RecipientInline": ".recipientinline",
    "RecipientInlineTypedDict": ".recipientinline",
    "Recipients": ".recipients",
    "RecipientsTypedDict": ".recipients",
    "RemoveContactByExtIDToGroupRequest": ".removecontactbyextidtogroupop",
    "RemoveContactByExtIDToGroupRequestTypedDict": ".removecontactbyextidtogroupop",
    "RemoveContactByExtIDToGroupResponse": ".removecontactbyextidtogroupop",
    "RemoveContactByExtIDToGroupResponseTypedDict": ".removecontactbyextidtogroupop",
    "RemoveContactFromGroupRequest": ".removecontactfromgroupop",
    "RemoveContactFromGroupRequestTypedDict": ".removecontactfromgroupop",
    "RemoveContactFromGroupResponse": ".removecontactfromgroupop",
    "RemoveContactFromGroupResponseTypedDict": ".removecontactfromgroupop",
    "Security": ".security",
    "SecurityTypedDict": ".security",
    "Sender": ".sender",
    "SenderTypedDict": ".sender",
    "SenderDetails": ".senderdetails",
    "SenderDetailsTypedDict": ".senderdetails",
    "Callback": ".shipment",
    "CallbackTypedDict": ".shipment",
    "CallbackUnion": ".shipment",
    "CallbackUnionTypedDict": ".shipment",
    "InlineConfig": ".shipment",
    "InlineConfigTypedDict": ".shipment",
    "InlineConfigUnion": ".shipment",
    "InlineConfigUnionTypedDict": ".shipment",
    "MiscInfo": ".shipment",
    "MiscInfoTypedDict": ".shipment",
    "MiscInfoUnion": ".shipment",
    "MiscInfoUnionTypedDict": ".shipment",
    "Options": ".shipment",
    "OptionsTypedDict": ".shipment",
    "Shipment": ".shipment",
    "ShipmentDocuments": ".shipment",
    "ShipmentDocumentsTypedDict": ".shipment",
    "ShipmentOptions": ".shipment",
    "ShipmentOptionsTypedDict": ".shipment",
    "ShipmentRecipients": ".shipment",
    "ShipmentRecipientsTypedDict": ".shipment",
    "ShipmentTypedDict": ".shipment",
    "ShipmentCancellation": ".shipmentcancellation",
    "ShipmentCancellationTypedDict": ".shipmentcancellation",
    "ShipmentDetails": ".shipmentdetails",
    "ShipmentDetailsCarrier": ".shipmentdetails",
    "ShipmentDetailsCarrierTypedDict": ".shipmentdetails",
    "ShipmentDetailsService": ".shipmentdetails",
    "ShipmentDetailsServiceTypedDict": ".shipmentdetails",
    "ShipmentDetailsStatus": ".shipmentdetails",
    "ShipmentDetailsStatusTypedDict": ".shipmentdetails",
    "ShipmentDetailsTypedDict": ".shipmentdetails",
    "ShipmentDispatchResponse": ".shipmentdispatchop",
    "ShipmentDispatchResponseResult": ".shipmentdispatchop",
    "ShipmentDispatchResponseResultTypedDict": ".shipmentdispatchop",
    "ShipmentDispatchResponseTypedDict": ".shipmentdispatchop",
    "ShipmentPrice": ".shipmentprice",
    "ShipmentPriceCarrier": ".shipmentprice",
    "ShipmentPriceCarrierTypedDict": ".shipmentprice",
    "ShipmentPriceService": ".shipmentprice",
    "ShipmentPriceServiceTypedDict": ".shipmentprice",
    "ShipmentPriceStatus": ".shipmentprice",
    "ShipmentPriceStatusTypedDict": ".shipmentprice",
    "ShipmentPriceTypedDict": ".shipmentprice",
    "ShipmentPriceResponse": ".shipmentpriceop",
    "ShipmentPriceResponseResult": ".shipmentpriceop",
    "ShipmentPriceResponseResultTypedDict": ".shipmentpriceop",
    "ShipmentPriceResponseTypedDict": ".shipmentpriceop",
    "StatusDetails": ".statusdetails",
    "StatusDetailsTypedDict": ".statusdetails",
    "StatusEvent": ".statusevent",
    "StatusEventTypedDict": ".statusevent",
    "UpdateContactByExternalIDRequest": ".updatecontactbyexternalidop",
    "UpdateContactByExternalIDRequestTypedDict": ".updatecontactbyexternalidop",
    "UpdateContactByExternalIDResponse": ".updatecontactbyexternalidop",
    "UpdateContactByExternalIDResponseResult": ".updatecontactbyexternalidop",
    "UpdateContactByExternalIDResponseResultTypedDict": ".updatecontactbyexternalidop",
    "UpdateContactByExternalIDResponseTypedDict": ".updatecontactbyexternalidop",
    "UpdateContactRequest": ".updatecontactop",
    "UpdateContactRequestTypedDict": ".updatecontactop",
    "UpdateContactResponse": ".updatecontactop",
    "UpdateContactResponseResult": ".updatecontactop",
    "UpdateContactResponseResultTypedDict": ".updatecontactop",
    "UpdateContactResponseTypedDict": ".updatecontactop",
    "UpdateGroupRequest": ".updategroupop",
    "UpdateGroupRequestTypedDict": ".updategroupop",
    "UpdateGroupResponse": ".updategroupop",
    "UpdateGroupResponseResult": ".updategroupop",
    "UpdateGroupResponseResultTypedDict": ".updategroupop",
    "UpdateGroupResponseTypedDict": ".updategroupop",
    "VerifySenderRequest": ".verifysenderop",
    "VerifySenderRequestBody": ".verifysenderop",
    "VerifySenderRequestBodyTypedDict": ".verifysenderop",
    "VerifySenderRequestTypedDict": ".verifysenderop",
    "VerifySenderResponse": ".verifysenderop",
    "VerifySenderResponseTypedDict": ".verifysenderop",
}


def dynamic_import(modname, retries=3):
    for attempt in range(retries):
        try:
            return import_module(modname, __package__)
        except KeyError:
            # Clear any half-initialized module and retry
            sys.modules.pop(modname, None)
            if attempt == retries - 1:
                break
    raise KeyError(f"Failed to import module '{modname}' after {retries} attempts")


def __getattr__(attr_name: str) -> object:
    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 = dynamic_import(module_name)
        result = getattr(module, attr_name)
        return result
    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 = builtins.list(_dynamic_imports.keys())
    return builtins.sorted(lazy_attrs)
