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

from __future__ import annotations
from .preferencechannels import PreferenceChannels, PreferenceChannelsTypedDict
from novu_py.types import BaseModel
from typing_extensions import TypedDict


class GlobalPreferenceDtoTypedDict(TypedDict):
    enabled: bool
    r"""Whether notifications are enabled globally"""
    channels: PreferenceChannelsTypedDict
    r"""Channel-specific preference settings"""


class GlobalPreferenceDto(BaseModel):
    enabled: bool
    r"""Whether notifications are enabled globally"""

    channels: PreferenceChannels
    r"""Channel-specific preference settings"""
