import * as z from "zod/v3"; import { ChatStepUpsertDto, ChatStepUpsertDto$Outbound } from "./chatstepupsertdto.js"; import { CustomStepUpsertDto, CustomStepUpsertDto$Outbound } from "./customstepupsertdto.js"; import { DelayStepUpsertDto, DelayStepUpsertDto$Outbound } from "./delaystepupsertdto.js"; import { DigestStepUpsertDto, DigestStepUpsertDto$Outbound } from "./digeststepupsertdto.js"; import { EmailStepUpsertDto, EmailStepUpsertDto$Outbound } from "./emailstepupsertdto.js"; import { HttpRequestStepUpsertDto, HttpRequestStepUpsertDto$Outbound } from "./httprequeststepupsertdto.js"; import { InAppStepUpsertDto, InAppStepUpsertDto$Outbound } from "./inappstepupsertdto.js"; import { PreferencesRequestDto, PreferencesRequestDto$Outbound } from "./preferencesrequestdto.js"; import { PushStepUpsertDto, PushStepUpsertDto$Outbound } from "./pushstepupsertdto.js"; import { SeverityLevelEnum } from "./severitylevelenum.js"; import { SmsStepUpsertDto, SmsStepUpsertDto$Outbound } from "./smsstepupsertdto.js"; import { ThrottleStepUpsertDto, ThrottleStepUpsertDto$Outbound } from "./throttlestepupsertdto.js"; import { WorkflowCreationSourceEnum } from "./workflowcreationsourceenum.js"; export type Steps = InAppStepUpsertDto | EmailStepUpsertDto | SmsStepUpsertDto | PushStepUpsertDto | ChatStepUpsertDto | DelayStepUpsertDto | DigestStepUpsertDto | ThrottleStepUpsertDto | CustomStepUpsertDto | HttpRequestStepUpsertDto; export type CreateWorkflowDto = { /** * Name of the workflow */ name: string; /** * Description of the workflow */ description?: string | undefined; /** * Tags associated with the workflow */ tags?: Array | undefined; /** * Whether the workflow is active */ active?: boolean | undefined; /** * Enable or disable payload schema validation */ validatePayload?: boolean | undefined; /** * The payload JSON Schema for the workflow */ payloadSchema?: { [k: string]: any; } | null | undefined; /** * Enable or disable translations for this workflow */ isTranslationEnabled?: boolean | undefined; /** * Unique identifier for the workflow */ workflowId: string; /** * Steps of the workflow */ steps: Array; /** * Source of workflow creation */ source?: WorkflowCreationSourceEnum | undefined; /** * Workflow preferences */ preferences?: PreferencesRequestDto | undefined; /** * Severity of the workflow */ severity?: SeverityLevelEnum | undefined; }; /** @internal */ export type Steps$Outbound = InAppStepUpsertDto$Outbound | EmailStepUpsertDto$Outbound | SmsStepUpsertDto$Outbound | PushStepUpsertDto$Outbound | ChatStepUpsertDto$Outbound | DelayStepUpsertDto$Outbound | DigestStepUpsertDto$Outbound | ThrottleStepUpsertDto$Outbound | CustomStepUpsertDto$Outbound | HttpRequestStepUpsertDto$Outbound; /** @internal */ export declare const Steps$outboundSchema: z.ZodType; export declare function stepsToJSON(steps: Steps): string; /** @internal */ export type CreateWorkflowDto$Outbound = { name: string; description?: string | undefined; tags?: Array | undefined; active: boolean; validatePayload?: boolean | undefined; payloadSchema?: { [k: string]: any; } | null | undefined; isTranslationEnabled: boolean; workflowId: string; steps: Array; __source: string; preferences?: PreferencesRequestDto$Outbound | undefined; severity?: string | undefined; }; /** @internal */ export declare const CreateWorkflowDto$outboundSchema: z.ZodType; export declare function createWorkflowDtoToJSON(createWorkflowDto: CreateWorkflowDto): string; //# sourceMappingURL=createworkflowdto.d.ts.map