"""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 .analyticsbrowsers import AnalyticsBrowsers, AnalyticsBrowsersTypedDict
    from .analyticscities import AnalyticsCities, AnalyticsCitiesTypedDict
    from .analyticscontinents import (
        AnalyticsContinents,
        AnalyticsContinentsTypedDict,
        Continent,
    )
    from .analyticscount import AnalyticsCount, AnalyticsCountTypedDict
    from .analyticscountries import (
        AnalyticsCountries,
        AnalyticsCountriesTypedDict,
        City,
        Region,
    )
    from .analyticsdevices import AnalyticsDevices, AnalyticsDevicesTypedDict
    from .analyticsos import AnalyticsOS, AnalyticsOSTypedDict
    from .analyticsreferers import AnalyticsReferers, AnalyticsReferersTypedDict
    from .analyticsrefererurls import (
        AnalyticsRefererUrls,
        AnalyticsRefererUrlsTypedDict,
    )
    from .analyticsregions import (
        AnalyticsRegions,
        AnalyticsRegionsCity,
        AnalyticsRegionsTypedDict,
    )
    from .analyticstimeseries import AnalyticsTimeseries, AnalyticsTimeseriesTypedDict
    from .analyticstoplinks import AnalyticsTopLinks, AnalyticsTopLinksTypedDict
    from .analyticstopurls import AnalyticsTopUrls, AnalyticsTopUrlsTypedDict
    from .analyticstriggers import (
        AnalyticsTriggers,
        AnalyticsTriggersTypedDict,
        Trigger,
    )
    from .commissioncreatedevent import (
        CommissionCreatedEvent,
        CommissionCreatedEventCustomer,
        CommissionCreatedEventCustomerTypedDict,
        CommissionCreatedEventData,
        CommissionCreatedEventDataTypedDict,
        CommissionCreatedEventEvent,
        CommissionCreatedEventLink,
        CommissionCreatedEventLinkTypedDict,
        CommissionCreatedEventPartner,
        CommissionCreatedEventPartnerTypedDict,
        CommissionCreatedEventStatus,
        CommissionCreatedEventType,
        CommissionCreatedEventTypedDict,
    )
    from .domainschema import (
        DomainSchema,
        DomainSchemaTypedDict,
        RegisteredDomain,
        RegisteredDomainTypedDict,
    )
    from .folderschema import AccessLevel, FolderSchema, FolderSchemaTypedDict, Type
    from .leadcreatedevent import (
        Customer,
        CustomerTypedDict,
        LeadCreatedEvent,
        LeadCreatedEventClick,
        LeadCreatedEventClickTypedDict,
        LeadCreatedEventData,
        LeadCreatedEventDataTypedDict,
        LeadCreatedEventEvent,
        LeadCreatedEventLink,
        LeadCreatedEventLinkTypedDict,
        LeadCreatedEventTestVariants,
        LeadCreatedEventTestVariantsTypedDict,
        LeadCreatedEventTypedDict,
        Partner,
        PartnerTypedDict,
    )
    from .linkclickedevent import (
        Click,
        ClickTypedDict,
        Link,
        LinkClickedEvent,
        LinkClickedEventData,
        LinkClickedEventDataTypedDict,
        LinkClickedEventEvent,
        LinkClickedEventTestVariants,
        LinkClickedEventTestVariantsTypedDict,
        LinkClickedEventTypedDict,
        LinkTypedDict,
    )
    from .linkerrorschema import Code, LinkErrorSchema, LinkErrorSchemaTypedDict
    from .linkschema import (
        LinkSchema,
        LinkSchemaTypedDict,
        TestVariants,
        TestVariantsTypedDict,
    )
    from .linktagschema import LinkTagSchema, LinkTagSchemaColor, LinkTagSchemaTypedDict
    from .linktagschemaoutput import (
        Color,
        LinkTagSchemaOutput,
        LinkTagSchemaOutputTypedDict,
    )
    from .linkwebhookevent import (
        Data,
        DataTypedDict,
        Event,
        EventTypedDict,
        LinkWebhookEvent,
        LinkWebhookEventTestVariants,
        LinkWebhookEventTestVariantsTypedDict,
        LinkWebhookEventTypedDict,
        One,
        Three,
        Two,
    )
    from .partneranalyticscount import (
        PartnerAnalyticsCount,
        PartnerAnalyticsCountTypedDict,
    )
    from .partneranalyticstimeseries import (
        PartnerAnalyticsTimeseries,
        PartnerAnalyticsTimeseriesTypedDict,
    )
    from .partneranalyticstoplinks import (
        PartnerAnalyticsTopLinks,
        PartnerAnalyticsTopLinksTypedDict,
    )
    from .partnerapplicationsubmittedevent import (
        ApplicationFormData,
        ApplicationFormDataTypedDict,
        PartnerApplicationSubmittedEvent,
        PartnerApplicationSubmittedEventData,
        PartnerApplicationSubmittedEventDataTypedDict,
        PartnerApplicationSubmittedEventEvent,
        PartnerApplicationSubmittedEventPartner,
        PartnerApplicationSubmittedEventPartnerTypedDict,
        PartnerApplicationSubmittedEventStatus,
        PartnerApplicationSubmittedEventTypedDict,
    )
    from .partnerenrolledevent import (
        BannedReason,
        Constraints,
        ConstraintsTypedDict,
        Eight,
        EightTypedDict,
        Fields,
        Fields1,
        Fields1TypedDict,
        Fields2,
        Fields2TypedDict,
        Fields3,
        Fields3TypedDict,
        FieldsConstraints,
        FieldsConstraintsTypedDict,
        FieldsOptions,
        FieldsOptionsTypedDict,
        FieldsType,
        FieldsTypedDict,
        Five,
        FiveTypedDict,
        Four,
        FourTypedDict,
        Links,
        LinksTypedDict,
        Options,
        OptionsTypedDict,
        PartnerEnrolledEvent,
        PartnerEnrolledEventData,
        PartnerEnrolledEventDataTypedDict,
        PartnerEnrolledEventEvent,
        PartnerEnrolledEventFieldsDataReferralFormData5Type,
        PartnerEnrolledEventFieldsDataReferralFormData6Type,
        PartnerEnrolledEventFieldsDataReferralFormData7Type,
        PartnerEnrolledEventFieldsDataReferralFormData8Type,
        PartnerEnrolledEventFieldsDataReferralFormDataType,
        PartnerEnrolledEventFieldsDataType,
        PartnerEnrolledEventFieldsType,
        PartnerEnrolledEventTypedDict,
        ReferralFormData,
        ReferralFormDataTypedDict,
        Seven,
        SevenTypedDict,
        Six,
        SixTypedDict,
        Status,
    )
    from .salecreatedevent import (
        Sale,
        SaleCreatedEvent,
        SaleCreatedEventClick,
        SaleCreatedEventClickTypedDict,
        SaleCreatedEventCustomer,
        SaleCreatedEventCustomerTypedDict,
        SaleCreatedEventData,
        SaleCreatedEventDataTypedDict,
        SaleCreatedEventEvent,
        SaleCreatedEventLink,
        SaleCreatedEventLinkTypedDict,
        SaleCreatedEventPartner,
        SaleCreatedEventPartnerTypedDict,
        SaleCreatedEventTestVariants,
        SaleCreatedEventTestVariantsTypedDict,
        SaleCreatedEventTypedDict,
        SaleTypedDict,
    )
    from .security import Security, SecurityTypedDict
    from .webhookevent import WebhookEvent, WebhookEventTypedDict

__all__ = [
    "AccessLevel",
    "AnalyticsBrowsers",
    "AnalyticsBrowsersTypedDict",
    "AnalyticsCities",
    "AnalyticsCitiesTypedDict",
    "AnalyticsContinents",
    "AnalyticsContinentsTypedDict",
    "AnalyticsCount",
    "AnalyticsCountTypedDict",
    "AnalyticsCountries",
    "AnalyticsCountriesTypedDict",
    "AnalyticsDevices",
    "AnalyticsDevicesTypedDict",
    "AnalyticsOS",
    "AnalyticsOSTypedDict",
    "AnalyticsRefererUrls",
    "AnalyticsRefererUrlsTypedDict",
    "AnalyticsReferers",
    "AnalyticsReferersTypedDict",
    "AnalyticsRegions",
    "AnalyticsRegionsCity",
    "AnalyticsRegionsTypedDict",
    "AnalyticsTimeseries",
    "AnalyticsTimeseriesTypedDict",
    "AnalyticsTopLinks",
    "AnalyticsTopLinksTypedDict",
    "AnalyticsTopUrls",
    "AnalyticsTopUrlsTypedDict",
    "AnalyticsTriggers",
    "AnalyticsTriggersTypedDict",
    "ApplicationFormData",
    "ApplicationFormDataTypedDict",
    "BannedReason",
    "City",
    "Click",
    "ClickTypedDict",
    "Code",
    "Color",
    "CommissionCreatedEvent",
    "CommissionCreatedEventCustomer",
    "CommissionCreatedEventCustomerTypedDict",
    "CommissionCreatedEventData",
    "CommissionCreatedEventDataTypedDict",
    "CommissionCreatedEventEvent",
    "CommissionCreatedEventLink",
    "CommissionCreatedEventLinkTypedDict",
    "CommissionCreatedEventPartner",
    "CommissionCreatedEventPartnerTypedDict",
    "CommissionCreatedEventStatus",
    "CommissionCreatedEventType",
    "CommissionCreatedEventTypedDict",
    "Constraints",
    "ConstraintsTypedDict",
    "Continent",
    "Customer",
    "CustomerTypedDict",
    "Data",
    "DataTypedDict",
    "DomainSchema",
    "DomainSchemaTypedDict",
    "Eight",
    "EightTypedDict",
    "Event",
    "EventTypedDict",
    "Fields",
    "Fields1",
    "Fields1TypedDict",
    "Fields2",
    "Fields2TypedDict",
    "Fields3",
    "Fields3TypedDict",
    "FieldsConstraints",
    "FieldsConstraintsTypedDict",
    "FieldsOptions",
    "FieldsOptionsTypedDict",
    "FieldsType",
    "FieldsTypedDict",
    "Five",
    "FiveTypedDict",
    "FolderSchema",
    "FolderSchemaTypedDict",
    "Four",
    "FourTypedDict",
    "LeadCreatedEvent",
    "LeadCreatedEventClick",
    "LeadCreatedEventClickTypedDict",
    "LeadCreatedEventData",
    "LeadCreatedEventDataTypedDict",
    "LeadCreatedEventEvent",
    "LeadCreatedEventLink",
    "LeadCreatedEventLinkTypedDict",
    "LeadCreatedEventTestVariants",
    "LeadCreatedEventTestVariantsTypedDict",
    "LeadCreatedEventTypedDict",
    "Link",
    "LinkClickedEvent",
    "LinkClickedEventData",
    "LinkClickedEventDataTypedDict",
    "LinkClickedEventEvent",
    "LinkClickedEventTestVariants",
    "LinkClickedEventTestVariantsTypedDict",
    "LinkClickedEventTypedDict",
    "LinkErrorSchema",
    "LinkErrorSchemaTypedDict",
    "LinkSchema",
    "LinkSchemaTypedDict",
    "LinkTagSchema",
    "LinkTagSchemaColor",
    "LinkTagSchemaOutput",
    "LinkTagSchemaOutputTypedDict",
    "LinkTagSchemaTypedDict",
    "LinkTypedDict",
    "LinkWebhookEvent",
    "LinkWebhookEventTestVariants",
    "LinkWebhookEventTestVariantsTypedDict",
    "LinkWebhookEventTypedDict",
    "Links",
    "LinksTypedDict",
    "One",
    "Options",
    "OptionsTypedDict",
    "Partner",
    "PartnerAnalyticsCount",
    "PartnerAnalyticsCountTypedDict",
    "PartnerAnalyticsTimeseries",
    "PartnerAnalyticsTimeseriesTypedDict",
    "PartnerAnalyticsTopLinks",
    "PartnerAnalyticsTopLinksTypedDict",
    "PartnerApplicationSubmittedEvent",
    "PartnerApplicationSubmittedEventData",
    "PartnerApplicationSubmittedEventDataTypedDict",
    "PartnerApplicationSubmittedEventEvent",
    "PartnerApplicationSubmittedEventPartner",
    "PartnerApplicationSubmittedEventPartnerTypedDict",
    "PartnerApplicationSubmittedEventStatus",
    "PartnerApplicationSubmittedEventTypedDict",
    "PartnerEnrolledEvent",
    "PartnerEnrolledEventData",
    "PartnerEnrolledEventDataTypedDict",
    "PartnerEnrolledEventEvent",
    "PartnerEnrolledEventFieldsDataReferralFormData5Type",
    "PartnerEnrolledEventFieldsDataReferralFormData6Type",
    "PartnerEnrolledEventFieldsDataReferralFormData7Type",
    "PartnerEnrolledEventFieldsDataReferralFormData8Type",
    "PartnerEnrolledEventFieldsDataReferralFormDataType",
    "PartnerEnrolledEventFieldsDataType",
    "PartnerEnrolledEventFieldsType",
    "PartnerEnrolledEventTypedDict",
    "PartnerTypedDict",
    "ReferralFormData",
    "ReferralFormDataTypedDict",
    "Region",
    "RegisteredDomain",
    "RegisteredDomainTypedDict",
    "Sale",
    "SaleCreatedEvent",
    "SaleCreatedEventClick",
    "SaleCreatedEventClickTypedDict",
    "SaleCreatedEventCustomer",
    "SaleCreatedEventCustomerTypedDict",
    "SaleCreatedEventData",
    "SaleCreatedEventDataTypedDict",
    "SaleCreatedEventEvent",
    "SaleCreatedEventLink",
    "SaleCreatedEventLinkTypedDict",
    "SaleCreatedEventPartner",
    "SaleCreatedEventPartnerTypedDict",
    "SaleCreatedEventTestVariants",
    "SaleCreatedEventTestVariantsTypedDict",
    "SaleCreatedEventTypedDict",
    "SaleTypedDict",
    "Security",
    "SecurityTypedDict",
    "Seven",
    "SevenTypedDict",
    "Six",
    "SixTypedDict",
    "Status",
    "TestVariants",
    "TestVariantsTypedDict",
    "Three",
    "Trigger",
    "Two",
    "Type",
    "WebhookEvent",
    "WebhookEventTypedDict",
]

_dynamic_imports: dict[str, str] = {
    "AnalyticsBrowsers": ".analyticsbrowsers",
    "AnalyticsBrowsersTypedDict": ".analyticsbrowsers",
    "AnalyticsCities": ".analyticscities",
    "AnalyticsCitiesTypedDict": ".analyticscities",
    "AnalyticsContinents": ".analyticscontinents",
    "AnalyticsContinentsTypedDict": ".analyticscontinents",
    "Continent": ".analyticscontinents",
    "AnalyticsCount": ".analyticscount",
    "AnalyticsCountTypedDict": ".analyticscount",
    "AnalyticsCountries": ".analyticscountries",
    "AnalyticsCountriesTypedDict": ".analyticscountries",
    "City": ".analyticscountries",
    "Region": ".analyticscountries",
    "AnalyticsDevices": ".analyticsdevices",
    "AnalyticsDevicesTypedDict": ".analyticsdevices",
    "AnalyticsOS": ".analyticsos",
    "AnalyticsOSTypedDict": ".analyticsos",
    "AnalyticsReferers": ".analyticsreferers",
    "AnalyticsReferersTypedDict": ".analyticsreferers",
    "AnalyticsRefererUrls": ".analyticsrefererurls",
    "AnalyticsRefererUrlsTypedDict": ".analyticsrefererurls",
    "AnalyticsRegions": ".analyticsregions",
    "AnalyticsRegionsCity": ".analyticsregions",
    "AnalyticsRegionsTypedDict": ".analyticsregions",
    "AnalyticsTimeseries": ".analyticstimeseries",
    "AnalyticsTimeseriesTypedDict": ".analyticstimeseries",
    "AnalyticsTopLinks": ".analyticstoplinks",
    "AnalyticsTopLinksTypedDict": ".analyticstoplinks",
    "AnalyticsTopUrls": ".analyticstopurls",
    "AnalyticsTopUrlsTypedDict": ".analyticstopurls",
    "AnalyticsTriggers": ".analyticstriggers",
    "AnalyticsTriggersTypedDict": ".analyticstriggers",
    "Trigger": ".analyticstriggers",
    "CommissionCreatedEvent": ".commissioncreatedevent",
    "CommissionCreatedEventCustomer": ".commissioncreatedevent",
    "CommissionCreatedEventCustomerTypedDict": ".commissioncreatedevent",
    "CommissionCreatedEventData": ".commissioncreatedevent",
    "CommissionCreatedEventDataTypedDict": ".commissioncreatedevent",
    "CommissionCreatedEventEvent": ".commissioncreatedevent",
    "CommissionCreatedEventLink": ".commissioncreatedevent",
    "CommissionCreatedEventLinkTypedDict": ".commissioncreatedevent",
    "CommissionCreatedEventPartner": ".commissioncreatedevent",
    "CommissionCreatedEventPartnerTypedDict": ".commissioncreatedevent",
    "CommissionCreatedEventStatus": ".commissioncreatedevent",
    "CommissionCreatedEventType": ".commissioncreatedevent",
    "CommissionCreatedEventTypedDict": ".commissioncreatedevent",
    "DomainSchema": ".domainschema",
    "DomainSchemaTypedDict": ".domainschema",
    "RegisteredDomain": ".domainschema",
    "RegisteredDomainTypedDict": ".domainschema",
    "AccessLevel": ".folderschema",
    "FolderSchema": ".folderschema",
    "FolderSchemaTypedDict": ".folderschema",
    "Type": ".folderschema",
    "Customer": ".leadcreatedevent",
    "CustomerTypedDict": ".leadcreatedevent",
    "LeadCreatedEvent": ".leadcreatedevent",
    "LeadCreatedEventClick": ".leadcreatedevent",
    "LeadCreatedEventClickTypedDict": ".leadcreatedevent",
    "LeadCreatedEventData": ".leadcreatedevent",
    "LeadCreatedEventDataTypedDict": ".leadcreatedevent",
    "LeadCreatedEventEvent": ".leadcreatedevent",
    "LeadCreatedEventLink": ".leadcreatedevent",
    "LeadCreatedEventLinkTypedDict": ".leadcreatedevent",
    "LeadCreatedEventTestVariants": ".leadcreatedevent",
    "LeadCreatedEventTestVariantsTypedDict": ".leadcreatedevent",
    "LeadCreatedEventTypedDict": ".leadcreatedevent",
    "Partner": ".leadcreatedevent",
    "PartnerTypedDict": ".leadcreatedevent",
    "Click": ".linkclickedevent",
    "ClickTypedDict": ".linkclickedevent",
    "Link": ".linkclickedevent",
    "LinkClickedEvent": ".linkclickedevent",
    "LinkClickedEventData": ".linkclickedevent",
    "LinkClickedEventDataTypedDict": ".linkclickedevent",
    "LinkClickedEventEvent": ".linkclickedevent",
    "LinkClickedEventTestVariants": ".linkclickedevent",
    "LinkClickedEventTestVariantsTypedDict": ".linkclickedevent",
    "LinkClickedEventTypedDict": ".linkclickedevent",
    "LinkTypedDict": ".linkclickedevent",
    "Code": ".linkerrorschema",
    "LinkErrorSchema": ".linkerrorschema",
    "LinkErrorSchemaTypedDict": ".linkerrorschema",
    "LinkSchema": ".linkschema",
    "LinkSchemaTypedDict": ".linkschema",
    "TestVariants": ".linkschema",
    "TestVariantsTypedDict": ".linkschema",
    "LinkTagSchema": ".linktagschema",
    "LinkTagSchemaColor": ".linktagschema",
    "LinkTagSchemaTypedDict": ".linktagschema",
    "Color": ".linktagschemaoutput",
    "LinkTagSchemaOutput": ".linktagschemaoutput",
    "LinkTagSchemaOutputTypedDict": ".linktagschemaoutput",
    "Data": ".linkwebhookevent",
    "DataTypedDict": ".linkwebhookevent",
    "Event": ".linkwebhookevent",
    "EventTypedDict": ".linkwebhookevent",
    "LinkWebhookEvent": ".linkwebhookevent",
    "LinkWebhookEventTestVariants": ".linkwebhookevent",
    "LinkWebhookEventTestVariantsTypedDict": ".linkwebhookevent",
    "LinkWebhookEventTypedDict": ".linkwebhookevent",
    "One": ".linkwebhookevent",
    "Three": ".linkwebhookevent",
    "Two": ".linkwebhookevent",
    "PartnerAnalyticsCount": ".partneranalyticscount",
    "PartnerAnalyticsCountTypedDict": ".partneranalyticscount",
    "PartnerAnalyticsTimeseries": ".partneranalyticstimeseries",
    "PartnerAnalyticsTimeseriesTypedDict": ".partneranalyticstimeseries",
    "PartnerAnalyticsTopLinks": ".partneranalyticstoplinks",
    "PartnerAnalyticsTopLinksTypedDict": ".partneranalyticstoplinks",
    "ApplicationFormData": ".partnerapplicationsubmittedevent",
    "ApplicationFormDataTypedDict": ".partnerapplicationsubmittedevent",
    "PartnerApplicationSubmittedEvent": ".partnerapplicationsubmittedevent",
    "PartnerApplicationSubmittedEventData": ".partnerapplicationsubmittedevent",
    "PartnerApplicationSubmittedEventDataTypedDict": ".partnerapplicationsubmittedevent",
    "PartnerApplicationSubmittedEventEvent": ".partnerapplicationsubmittedevent",
    "PartnerApplicationSubmittedEventPartner": ".partnerapplicationsubmittedevent",
    "PartnerApplicationSubmittedEventPartnerTypedDict": ".partnerapplicationsubmittedevent",
    "PartnerApplicationSubmittedEventStatus": ".partnerapplicationsubmittedevent",
    "PartnerApplicationSubmittedEventTypedDict": ".partnerapplicationsubmittedevent",
    "BannedReason": ".partnerenrolledevent",
    "Constraints": ".partnerenrolledevent",
    "ConstraintsTypedDict": ".partnerenrolledevent",
    "Eight": ".partnerenrolledevent",
    "EightTypedDict": ".partnerenrolledevent",
    "Fields": ".partnerenrolledevent",
    "Fields1": ".partnerenrolledevent",
    "Fields1TypedDict": ".partnerenrolledevent",
    "Fields2": ".partnerenrolledevent",
    "Fields2TypedDict": ".partnerenrolledevent",
    "Fields3": ".partnerenrolledevent",
    "Fields3TypedDict": ".partnerenrolledevent",
    "FieldsConstraints": ".partnerenrolledevent",
    "FieldsConstraintsTypedDict": ".partnerenrolledevent",
    "FieldsOptions": ".partnerenrolledevent",
    "FieldsOptionsTypedDict": ".partnerenrolledevent",
    "FieldsType": ".partnerenrolledevent",
    "FieldsTypedDict": ".partnerenrolledevent",
    "Five": ".partnerenrolledevent",
    "FiveTypedDict": ".partnerenrolledevent",
    "Four": ".partnerenrolledevent",
    "FourTypedDict": ".partnerenrolledevent",
    "Links": ".partnerenrolledevent",
    "LinksTypedDict": ".partnerenrolledevent",
    "Options": ".partnerenrolledevent",
    "OptionsTypedDict": ".partnerenrolledevent",
    "PartnerEnrolledEvent": ".partnerenrolledevent",
    "PartnerEnrolledEventData": ".partnerenrolledevent",
    "PartnerEnrolledEventDataTypedDict": ".partnerenrolledevent",
    "PartnerEnrolledEventEvent": ".partnerenrolledevent",
    "PartnerEnrolledEventFieldsDataReferralFormData5Type": ".partnerenrolledevent",
    "PartnerEnrolledEventFieldsDataReferralFormData6Type": ".partnerenrolledevent",
    "PartnerEnrolledEventFieldsDataReferralFormData7Type": ".partnerenrolledevent",
    "PartnerEnrolledEventFieldsDataReferralFormData8Type": ".partnerenrolledevent",
    "PartnerEnrolledEventFieldsDataReferralFormDataType": ".partnerenrolledevent",
    "PartnerEnrolledEventFieldsDataType": ".partnerenrolledevent",
    "PartnerEnrolledEventFieldsType": ".partnerenrolledevent",
    "PartnerEnrolledEventTypedDict": ".partnerenrolledevent",
    "ReferralFormData": ".partnerenrolledevent",
    "ReferralFormDataTypedDict": ".partnerenrolledevent",
    "Seven": ".partnerenrolledevent",
    "SevenTypedDict": ".partnerenrolledevent",
    "Six": ".partnerenrolledevent",
    "SixTypedDict": ".partnerenrolledevent",
    "Status": ".partnerenrolledevent",
    "Sale": ".salecreatedevent",
    "SaleCreatedEvent": ".salecreatedevent",
    "SaleCreatedEventClick": ".salecreatedevent",
    "SaleCreatedEventClickTypedDict": ".salecreatedevent",
    "SaleCreatedEventCustomer": ".salecreatedevent",
    "SaleCreatedEventCustomerTypedDict": ".salecreatedevent",
    "SaleCreatedEventData": ".salecreatedevent",
    "SaleCreatedEventDataTypedDict": ".salecreatedevent",
    "SaleCreatedEventEvent": ".salecreatedevent",
    "SaleCreatedEventLink": ".salecreatedevent",
    "SaleCreatedEventLinkTypedDict": ".salecreatedevent",
    "SaleCreatedEventPartner": ".salecreatedevent",
    "SaleCreatedEventPartnerTypedDict": ".salecreatedevent",
    "SaleCreatedEventTestVariants": ".salecreatedevent",
    "SaleCreatedEventTestVariantsTypedDict": ".salecreatedevent",
    "SaleCreatedEventTypedDict": ".salecreatedevent",
    "SaleTypedDict": ".salecreatedevent",
    "Security": ".security",
    "SecurityTypedDict": ".security",
    "WebhookEvent": ".webhookevent",
    "WebhookEventTypedDict": ".webhookevent",
}


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)
