# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing import Dict
from typing_extensions import TypedDict

__all__ = ["UpdatePreferencesRequestParam", "Notiflows"]


class Notiflows(TypedDict, total=False):
    channel_types: Dict[str, bool]

    enabled: bool


class UpdatePreferencesRequestParam(TypedDict, total=False):
    """Request body for updating user preferences. Only provided fields are updated."""

    channel_types: Dict[str, bool]
    """Global channel type preferences"""

    notiflows: Dict[str, Notiflows]
    """Per-notiflow preferences (keyed by notiflow handle)"""
