import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { PreferenceLevelEnum } from "./preferencelevelenum.js"; import { SeverityLevelEnum } from "./severitylevelenum.js"; import { SubscriberPreferenceChannels } from "./subscriberpreferencechannels.js"; /** * Custom data associated with the workflow */ export type GetPreferencesResponseDtoData = {}; /** * Workflow information if this is a template-level preference */ export type Workflow = { /** * Unique identifier of the workflow */ id: string; /** * Workflow identifier used for triggering */ identifier: string; /** * Human-readable name of the workflow */ name: string; /** * Whether this workflow is marked as critical */ critical: boolean; /** * Tags associated with the workflow */ tags?: Array | undefined; /** * Custom data associated with the workflow */ data?: GetPreferencesResponseDtoData | undefined; /** * Severity of the workflow */ severity: SeverityLevelEnum; }; /** * Condition using JSON Logic rules */ export type Condition = {}; export type GetPreferencesResponseDto = { /** * The level of the preference (global or template) */ level: PreferenceLevelEnum; /** * Workflow information if this is a template-level preference */ workflow?: Workflow | null | undefined; /** * Whether the preference is enabled */ enabled: boolean; /** * Channel-specific preference settings */ channels: SubscriberPreferenceChannels; /** * Condition using JSON Logic rules */ condition?: Condition | null | undefined; }; /** @internal */ export declare const GetPreferencesResponseDtoData$inboundSchema: z.ZodType; export declare function getPreferencesResponseDtoDataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Workflow$inboundSchema: z.ZodType; export declare function workflowFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Condition$inboundSchema: z.ZodType; export declare function conditionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetPreferencesResponseDto$inboundSchema: z.ZodType; export declare function getPreferencesResponseDtoFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getpreferencesresponsedto.d.ts.map