import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SeverityLevelEnum } from "./severitylevelenum.js"; /** * Custom data associated with the workflow */ export type SubscriptionPreferenceDtoData = {}; /** * Workflow information if this is a template-level preference */ export type SubscriptionPreferenceDtoWorkflow = { /** * 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?: SubscriptionPreferenceDtoData | undefined; /** * Severity of the workflow */ severity: SeverityLevelEnum; }; export type SubscriptionPreferenceDto = { /** * The unique identifier of the subscription */ subscriptionId: string; /** * Workflow information if this is a template-level preference */ workflow?: SubscriptionPreferenceDtoWorkflow | null | undefined; /** * Whether the preference is enabled */ enabled: boolean; /** * Optional condition using JSON Logic rules */ condition?: { [k: string]: any; } | undefined; }; /** @internal */ export declare const SubscriptionPreferenceDtoData$inboundSchema: z.ZodType; export declare function subscriptionPreferenceDtoDataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SubscriptionPreferenceDtoWorkflow$inboundSchema: z.ZodType; export declare function subscriptionPreferenceDtoWorkflowFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SubscriptionPreferenceDto$inboundSchema: z.ZodType; export declare function subscriptionPreferenceDtoFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=subscriptionpreferencedto.d.ts.map