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

from __future__ import annotations
from .commissioncreatedevent import (
    CommissionCreatedEvent,
    CommissionCreatedEventTypedDict,
)
from .leadcreatedevent import LeadCreatedEvent, LeadCreatedEventTypedDict
from .linkclickedevent import LinkClickedEvent, LinkClickedEventTypedDict
from .linkwebhookevent import LinkWebhookEvent, LinkWebhookEventTypedDict
from .partnerapplicationsubmittedevent import (
    PartnerApplicationSubmittedEvent,
    PartnerApplicationSubmittedEventTypedDict,
)
from .partnerenrolledevent import PartnerEnrolledEvent, PartnerEnrolledEventTypedDict
from .salecreatedevent import SaleCreatedEvent, SaleCreatedEventTypedDict
from typing import Union
from typing_extensions import TypeAliasType


WebhookEventTypedDict = TypeAliasType(
    "WebhookEventTypedDict",
    Union[
        LinkWebhookEventTypedDict,
        LinkClickedEventTypedDict,
        LeadCreatedEventTypedDict,
        SaleCreatedEventTypedDict,
        PartnerEnrolledEventTypedDict,
        PartnerApplicationSubmittedEventTypedDict,
        CommissionCreatedEventTypedDict,
    ],
)
r"""Webhook event schema"""


WebhookEvent = TypeAliasType(
    "WebhookEvent",
    Union[
        LinkWebhookEvent,
        LinkClickedEvent,
        LeadCreatedEvent,
        SaleCreatedEvent,
        PartnerEnrolledEvent,
        PartnerApplicationSubmittedEvent,
        CommissionCreatedEvent,
    ],
)
r"""Webhook event schema"""
