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 { StepConfigSlim, StepConfigSlim$Outbound } from "./stepconfigslim.js"; import { TriggerSlim, TriggerSlim$Outbound } from "./triggerslim.js"; import { WorkflowDelay, WorkflowDelay$Outbound } from "./workflowdelay.js"; export declare const RunsOnIncidentModes: { readonly Standard: "standard"; readonly Test: "test"; readonly Retrospective: "retrospective"; }; export type RunsOnIncidentModes = ClosedEnum; /** * Which incidents should the workflow be applied to? (newly_created or newly_created_and_active) */ export declare const RunsOnIncidents: { 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 RunsOnIncidents = ClosedEnum; /** * The state of the workflow (e.g. is it draft, or disabled) */ export declare const State: { 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 State = ClosedEnum; export type WorkflowSlim = { /** * 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: RunsOnIncidents; /** * The state of the workflow (e.g. is it draft, or disabled) */ state: State; /** * 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 RunsOnIncidentModes$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const RunsOnIncidentModes$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 RunsOnIncidentModes$ { /** @deprecated use `RunsOnIncidentModes$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Standard: "standard"; readonly Test: "test"; readonly Retrospective: "retrospective"; }>; /** @deprecated use `RunsOnIncidentModes$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Standard: "standard"; readonly Test: "test"; readonly Retrospective: "retrospective"; }>; } /** @internal */ export declare const RunsOnIncidents$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const RunsOnIncidents$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 RunsOnIncidents$ { /** @deprecated use `RunsOnIncidents$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly NewlyCreated: "newly_created"; readonly NewlyCreatedAndActive: "newly_created_and_active"; }>; /** @deprecated use `RunsOnIncidents$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly NewlyCreated: "newly_created"; readonly NewlyCreatedAndActive: "newly_created_and_active"; }>; } /** @internal */ export declare const State$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const State$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 State$ { /** @deprecated use `State$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Disabled: "disabled"; readonly Draft: "draft"; readonly Error: "error"; }>; /** @deprecated use `State$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Disabled: "disabled"; readonly Draft: "draft"; readonly Error: "error"; }>; } /** @internal */ export declare const WorkflowSlim$inboundSchema: z.ZodType; /** @internal */ export type WorkflowSlim$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 WorkflowSlim$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 WorkflowSlim$ { /** @deprecated use `WorkflowSlim$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `WorkflowSlim$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `WorkflowSlim$Outbound` instead. */ type Outbound = WorkflowSlim$Outbound; } //# sourceMappingURL=workflowslim.d.ts.map