import { ChannelType, Condition } from '@knocklabs/types'; export type ConditionalPreferenceSettings = { conditions: Condition[]; }; export type ChannelTypePreferences = { [_K in ChannelType]?: boolean | ConditionalPreferenceSettings; }; export type ChannelPreferences = { [channel_id: string]: boolean | ConditionalPreferenceSettings; }; export type WorkflowPreferenceSetting = boolean | { channel_types: ChannelTypePreferences; } | { channels: ChannelPreferences; } | ConditionalPreferenceSettings; export type WorkflowPreferences = Partial>; export interface SetPreferencesProperties { workflows?: WorkflowPreferences; categories?: WorkflowPreferences; channel_types?: ChannelTypePreferences; channels?: ChannelPreferences; } export interface PreferenceSet { id: string; categories: WorkflowPreferences | null; workflows: WorkflowPreferences | null; channel_types: ChannelTypePreferences | null; channels: ChannelPreferences | null; } export interface PreferenceOptions { preferenceSet?: string; } export interface GetPreferencesOptions extends PreferenceOptions { tenant?: string; } //# sourceMappingURL=interfaces.d.ts.map