import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ChatStepResponseDto } from "./chatstepresponsedto.js"; import { CustomStepResponseDto } from "./customstepresponsedto.js"; import { DelayStepResponseDto } from "./delaystepresponsedto.js"; import { DigestStepResponseDto } from "./digeststepresponsedto.js"; import { EmailStepResponseDto } from "./emailstepresponsedto.js"; import { HttpRequestStepResponseDto } from "./httprequeststepresponsedto.js"; import { InAppStepResponseDto } from "./inappstepresponsedto.js"; import { PushStepResponseDto } from "./pushstepresponsedto.js"; import { ResourceOriginEnum } from "./resourceoriginenum.js"; import { RuntimeIssueDto } from "./runtimeissuedto.js"; import { SeverityLevelEnum } from "./severitylevelenum.js"; import { SmsStepResponseDto } from "./smsstepresponsedto.js"; import { ThrottleStepResponseDto } from "./throttlestepresponsedto.js"; import { WorkflowPreferencesResponseDto } from "./workflowpreferencesresponsedto.js"; import { WorkflowStatusEnum } from "./workflowstatusenum.js"; /** * User who last updated the workflow */ export type WorkflowResponseDtoUpdatedBy = { /** * User ID */ id: string; /** * User first name */ firstName?: string | null | undefined; /** * User last name */ lastName?: string | null | undefined; /** * User external ID */ externalId?: string | null | undefined; }; /** * User who last published the workflow */ export type LastPublishedBy = { /** * User ID */ id: string; /** * User first name */ firstName?: string | null | undefined; /** * User last name */ lastName?: string | null | undefined; /** * User external ID */ externalId?: string | null | undefined; }; export type WorkflowResponseDtoSteps = InAppStepResponseDto | EmailStepResponseDto | SmsStepResponseDto | PushStepResponseDto | ChatStepResponseDto | DelayStepResponseDto | DigestStepResponseDto | CustomStepResponseDto | ThrottleStepResponseDto | HttpRequestStepResponseDto; export type WorkflowResponseDto = { /** * 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; /** * 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; /** * Database identifier of the workflow */ id: string; /** * Workflow identifier */ workflowId: string; /** * Slug of the workflow */ slug: string; /** * Last updated timestamp */ updatedAt: string; /** * Creation timestamp */ createdAt: string; /** * User who last updated the workflow */ updatedBy?: WorkflowResponseDtoUpdatedBy | null | undefined; /** * Timestamp of the last workflow publication */ lastPublishedAt?: string | null | undefined; /** * User who last published the workflow */ lastPublishedBy?: LastPublishedBy | null | undefined; /** * Steps of the workflow */ steps: Array; /** * Origin of the layout */ origin: ResourceOriginEnum; /** * Preferences for the workflow */ preferences: WorkflowPreferencesResponseDto; /** * Status of the workflow */ status: WorkflowStatusEnum; /** * Runtime issues for workflow creation and update */ issues?: { [k: string]: RuntimeIssueDto; } | undefined; /** * Timestamp of the last workflow trigger */ lastTriggeredAt?: string | null | undefined; /** * Generated payload example based on the payload schema */ payloadExample?: { [k: string]: any; } | null | undefined; /** * Severity of the workflow */ severity: SeverityLevelEnum; }; /** @internal */ export declare const WorkflowResponseDtoUpdatedBy$inboundSchema: z.ZodType; export declare function workflowResponseDtoUpdatedByFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const LastPublishedBy$inboundSchema: z.ZodType; export declare function lastPublishedByFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const WorkflowResponseDtoSteps$inboundSchema: z.ZodType; export declare function workflowResponseDtoStepsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const WorkflowResponseDto$inboundSchema: z.ZodType; export declare function workflowResponseDtoFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=workflowresponsedto.d.ts.map