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

from __future__ import annotations
from .leadcreatedevent import LeadCreatedEvent, LeadCreatedEventTypedDict
from .linkclickedevent import LinkClickedEvent, LinkClickedEventTypedDict
from .linkwebhookevent import LinkWebhookEvent, LinkWebhookEventTypedDict
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,
    ],
)
r"""Webhook event schema"""


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