import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { ConditionGroupPayloadV2, ConditionGroupPayloadV2$Outbound } from "./conditiongrouppayloadv2.js"; import { ExpressionPayloadV2, ExpressionPayloadV2$Outbound } from "./expressionpayloadv2.js"; import { StepConfigPayload, StepConfigPayload$Outbound } from "./stepconfigpayload.js"; import { WorkflowDelay, WorkflowDelay$Outbound } from "./workflowdelay.js"; export declare const UpdateWorkflowRequestBodyRunsOnIncidentModes: { readonly Standard: "standard"; readonly Test: "test"; readonly Retrospective: "retrospective"; }; export type UpdateWorkflowRequestBodyRunsOnIncidentModes = ClosedEnum; /** * Which incidents should the workflow be applied to? (newly_created or newly_created_and_active) */ export declare const UpdateWorkflowRequestBodyRunsOnIncidents: { 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 UpdateWorkflowRequestBodyRunsOnIncidents = ClosedEnum; /** * The state of the workflow (e.g. is it draft, or disabled) */ export declare const UpdateWorkflowRequestBodyState: { 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 UpdateWorkflowRequestBodyState = ClosedEnum; export type UpdateWorkflowRequestBody = { /** * Annotations that track metadata about this resource */ annotations?: { [k: string]: string; } | undefined; /** * List of conditions to apply to the workflow */ conditionGroups: Array; /** * Whether to continue executing the workflow if a step fails */ continueOnStepError: boolean; delay?: WorkflowDelay | undefined; /** * The expressions used in the workflow */ expressions: Array; /** * Folder to display the workflow in */ folder?: string | undefined; /** * Whether to include private incidents */ includePrivateIncidents: boolean; /** * The human-readable name of the workflow */ name: string; /** * Once For strategy to apply to this workflow */ onceFor: Array; /** * 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: UpdateWorkflowRequestBodyRunsOnIncidents; /** * The state of the workflow (e.g. is it draft, or disabled) */ state?: UpdateWorkflowRequestBodyState | undefined; /** * List of step to execute as part of the workflow */ steps: Array; }; /** @internal */ export declare const UpdateWorkflowRequestBodyRunsOnIncidentModes$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const UpdateWorkflowRequestBodyRunsOnIncidentModes$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 UpdateWorkflowRequestBodyRunsOnIncidentModes$ { /** @deprecated use `UpdateWorkflowRequestBodyRunsOnIncidentModes$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Standard: "standard"; readonly Test: "test"; readonly Retrospective: "retrospective"; }>; /** @deprecated use `UpdateWorkflowRequestBodyRunsOnIncidentModes$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Standard: "standard"; readonly Test: "test"; readonly Retrospective: "retrospective"; }>; } /** @internal */ export declare const UpdateWorkflowRequestBodyRunsOnIncidents$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const UpdateWorkflowRequestBodyRunsOnIncidents$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 UpdateWorkflowRequestBodyRunsOnIncidents$ { /** @deprecated use `UpdateWorkflowRequestBodyRunsOnIncidents$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly NewlyCreated: "newly_created"; readonly NewlyCreatedAndActive: "newly_created_and_active"; }>; /** @deprecated use `UpdateWorkflowRequestBodyRunsOnIncidents$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly NewlyCreated: "newly_created"; readonly NewlyCreatedAndActive: "newly_created_and_active"; }>; } /** @internal */ export declare const UpdateWorkflowRequestBodyState$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const UpdateWorkflowRequestBodyState$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 UpdateWorkflowRequestBodyState$ { /** @deprecated use `UpdateWorkflowRequestBodyState$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Disabled: "disabled"; readonly Draft: "draft"; readonly Error: "error"; }>; /** @deprecated use `UpdateWorkflowRequestBodyState$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Active: "active"; readonly Disabled: "disabled"; readonly Draft: "draft"; readonly Error: "error"; }>; } /** @internal */ export declare const UpdateWorkflowRequestBody$inboundSchema: z.ZodType; /** @internal */ export type UpdateWorkflowRequestBody$Outbound = { annotations?: { [k: string]: string; } | undefined; condition_groups: Array; continue_on_step_error: boolean; delay?: WorkflowDelay$Outbound | undefined; expressions: Array; folder?: string | undefined; include_private_incidents: boolean; name: string; once_for: Array; runs_on_incident_modes: Array; runs_on_incidents: string; state?: string | undefined; steps: Array; }; /** @internal */ export declare const UpdateWorkflowRequestBody$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 UpdateWorkflowRequestBody$ { /** @deprecated use `UpdateWorkflowRequestBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `UpdateWorkflowRequestBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `UpdateWorkflowRequestBody$Outbound` instead. */ type Outbound = UpdateWorkflowRequestBody$Outbound; } //# sourceMappingURL=updateworkflowrequestbody.d.ts.map