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

from __future__ import annotations
from .overrides import Overrides, OverridesTypedDict
from .preferencechannels import PreferenceChannels, PreferenceChannelsTypedDict
from .workflowinfodto import WorkflowInfoDto, WorkflowInfoDtoTypedDict
from novu_py.types import BaseModel
from typing import List
from typing_extensions import TypedDict


class WorkflowPreferenceDtoTypedDict(TypedDict):
    enabled: bool
    r"""Whether notifications are enabled for this workflow"""
    channels: PreferenceChannelsTypedDict
    r"""Channel-specific preference settings for this workflow"""
    overrides: List[OverridesTypedDict]
    r"""List of preference overrides"""
    workflow: WorkflowInfoDtoTypedDict
    r"""Workflow information"""


class WorkflowPreferenceDto(BaseModel):
    enabled: bool
    r"""Whether notifications are enabled for this workflow"""

    channels: PreferenceChannels
    r"""Channel-specific preference settings for this workflow"""

    overrides: List[Overrides]
    r"""List of preference overrides"""

    workflow: WorkflowInfoDto
    r"""Workflow information"""
