import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { ConditionGroupV3, ConditionGroupV3$Outbound } from "./conditiongroupv3.js"; import { EngineReferenceV2, EngineReferenceV2$Outbound } from "./enginereferencev2.js"; import { ExpressionV3, ExpressionV3$Outbound } from "./expressionv3.js"; import { StepConfig, StepConfig$Outbound } from "./stepconfig.js"; import { TriggerSlim, TriggerSlim$Outbound } from "./triggerslim.js"; import { WorkflowDelay, WorkflowDelay$Outbound } from "./workflowdelay.js"; export declare const WorkflowRunsOnIncidentModes: { readonly Standard: "standard"; readonly Test: "test"; readonly Retrospective: "retrospective"; }; export type WorkflowRunsOnIncidentModes = ClosedEnum; /** * Which incidents should the workflow be applied to? (newly_created or newly_created_and_active) */ export declare const WorkflowRunsOnIncidents: { readonly NewlyCreated: "newly_created"; readonly NewlyCreatedAndActive: "newly_created_and_active"; }; /** * Which incidents should the workflow be applied to? (newly_created or newly_created_and_active) */ export type WorkflowRunsOnIncidents = ClosedEnum; /** * The state of the workflow (e.g. is it draft, or disabled) */ export declare const WorkflowState: { readonly Active: "active"; readonly Disabled: "disabled"; readonly Draft: "draft"; readonly Error: "error"; }; /** * The state of the workflow (e.g. is it draft, or disabled) */ export type WorkflowState = ClosedEnum; export type Workflow = { /** * Conditions that apply to the workflow trigger */ conditionGroups: Array; /** * Whether to continue executing the workflow if a step fails */ continueOnStepError: boolean; delay?: WorkflowDelay | undefined; /** * Expressions that make variables available in the scope */ expressions: Array; /** * Folder to display the workflow in */ folder?: string | undefined; /** * Unique identifier for the workflow */ id: string; /** * Whether to include private incidents */ includePrivateIncidents: boolean; /** * The human-readable name of the workflow */ name: string; /** * This workflow will run 'once for' a list of references */ onceFor: Array; /** * The time from which this workflow will run on incidents */ runsFrom?: Date | undefined; /** * Which modes of incident this should run on (defaults to just standard incidents) */ runsOnIncidentModes: Array; /** * Which incidents should the workflow be applied to? (newly_created or newly_created_and_active) */ runsOnIncidents: WorkflowRunsOnIncidents; /** * The state of the workflow (e.g. is it draft, or disabled) */ state: WorkflowState; /** * Steps that are executed as part of the workflow */ steps: Array; trigger: TriggerSlim; /** * Revision of the workflow, uniquely identifying its version */ version: number; }; /** @internal */ export declare const WorkflowRunsOnIncidentModes$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const WorkflowRunsOnIncidentModes$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace WorkflowRunsOnIncidentModes$ { /** @deprecated use `WorkflowRunsOnIncidentModes$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Standard: "standard"; readonly Test: "test"; readonly Retrospective: "retrospective"; }>; /** @deprecated use `WorkflowRunsOnIncidentModes$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Standard: "standard"; readonly Test: "test"; readonly Retrospective: "retrospective"; }>; } /** @internal */ export declare const WorkflowRunsOnIncidents$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const WorkflowRunsOnIncidents$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace WorkflowRunsOnIncidents$ { /** @deprecated use `WorkflowRunsOnIncidents$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly NewlyCreated: "newly_created"; readonly NewlyCreatedAndActive: "newly_created_and_active"; }>; /** @deprecated use `WorkflowRunsOnIncidents$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly NewlyCreated: "newly_created"; readonly NewlyCreatedAndActive: "newly_created_and_active"; }>; } /** @internal */ export declare const WorkflowState$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const WorkflowState$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace WorkflowState$ { /** @deprecated use `WorkflowState$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Disabled: "disabled"; readonly Draft: "draft"; readonly Error: "error"; }>; /** @deprecated use `WorkflowState$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Disabled: "disabled"; readonly Draft: "draft"; readonly Error: "error"; }>; } /** @internal */ export declare const Workflow$inboundSchema: z.ZodType; /** @internal */ export type Workflow$Outbound = { condition_groups: Array; continue_on_step_error: boolean; delay?: WorkflowDelay$Outbound | undefined; expressions: Array; folder?: string | undefined; id: string; include_private_incidents: boolean; name: string; once_for: Array; runs_from?: string | undefined; runs_on_incident_modes: Array; runs_on_incidents: string; state: string; steps: Array; trigger: TriggerSlim$Outbound; version: number; }; /** @internal */ export declare const Workflow$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Workflow$ { /** @deprecated use `Workflow$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Workflow$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Workflow$Outbound` instead. */ type Outbound = Workflow$Outbound; } //# sourceMappingURL=workflow.d.ts.map