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

from .basesdk import BaseSDK
from .sdkconfiguration import SDKConfiguration
from apideck_unify.eventlogs import EventLogs
from apideck_unify.webhooks import Webhooks
from typing import Optional


class WebhookSDK(BaseSDK):
    webhooks: Webhooks
    event_logs: EventLogs

    def __init__(
        self, sdk_config: SDKConfiguration, parent_ref: Optional[object] = None
    ) -> None:
        BaseSDK.__init__(self, sdk_config, parent_ref=parent_ref)
        self.sdk_configuration = sdk_config
        self._init_sdks()

    def _init_sdks(self):
        self.webhooks = Webhooks(self.sdk_configuration, parent_ref=self.parent_ref)
        self.event_logs = EventLogs(self.sdk_configuration, parent_ref=self.parent_ref)
