/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { WorkflowFormFieldV2 } from './WorkflowFormFieldV2.js'; import type { StepConfigV2 } from './StepConfigV2.js'; import type { ExpressionV2 } from './ExpressionV2.js'; import type { WorkflowDelayV2 } from './WorkflowDelayV2.js'; import type { ConditionGroupV2 } from './ConditionGroupV2.js'; import type { EngineReferenceV2 } from './EngineReferenceV2.js'; import type { TriggerSlimV2 } from './TriggerSlimV2.js'; /** * * @export * @interface WorkflowV2 */ export interface WorkflowV2 { /** * Whether the workflow is configured to run immediately or ask for confirmation in the incident channel */ auto_run_mode: WorkflowV2AutoRunModeEnum; /** * Conditions that apply to the workflow trigger */ condition_groups: Array; /** * Whether to continue executing the workflow if a step fails */ continue_on_step_error: boolean; /** * */ delay?: WorkflowDelayV2; /** * Expressions that make variables available in the scope */ expressions: Array; /** * Folder to display the workflow in */ folder?: string; /** * User-configured form fields available in the workflow scope. Allowed on manually-triggered workflows, and on workflows with an `auto_run_mode` of `confirm_before_running`. */ form_fields?: Array; /** * Unique identifier for the workflow */ id: string; /** * Whether to include private escalations */ include_private_escalations: boolean; /** * DEPRECATED: use `private_incident_scope` instead. `true` when the workflow runs on private incidents (a `private_incident_scope` of `all` or `owning_teams`), `false` when the scope is `none`. */ include_private_incidents: boolean; /** * Name provided by the user when creating the workflow */ name: string; /** * This workflow will run 'once for' a list of references */ once_for: Array; /** * IDs of the teams that own this workflow */ owning_team_ids?: Array; /** * Which private incidents this workflow acts on: every private incident (all), those an owning team can see (owning_teams), or none */ private_incident_scope: WorkflowV2PrivateIncidentScopeEnum; /** * The time from which this workflow will run on incidents */ runs_from?: Date; /** * Which incident modes should this workflow run on? By default, workflows only run on standard incidents, but can also be configured to run on test and retrospective incidents. */ runs_on_incident_modes: Array; /** * Which incidents should the workflow be applied to? */ runs_on_incidents: WorkflowV2RunsOnIncidentsEnum; /** * The shortform used to trigger this workflow (only applicable for manual triggers) */ shortform?: string; /** * What state this workflow is in */ state: WorkflowV2StateEnum; /** * Steps that are executed as part of the workflow */ steps: Array; /** * */ trigger: TriggerSlimV2; /** * Revision of the workflow, uniquely identifying it's version */ version: number; } /** * @export */ export declare const WorkflowV2AutoRunModeEnum: { readonly RunAutomatically: "run_automatically"; readonly ConfirmBeforeRunning: "confirm_before_running"; }; export type WorkflowV2AutoRunModeEnum = typeof WorkflowV2AutoRunModeEnum[keyof typeof WorkflowV2AutoRunModeEnum]; /** * @export */ export declare const WorkflowV2PrivateIncidentScopeEnum: { readonly All: "all"; readonly OwningTeams: "owning_teams"; readonly None: "none"; }; export type WorkflowV2PrivateIncidentScopeEnum = typeof WorkflowV2PrivateIncidentScopeEnum[keyof typeof WorkflowV2PrivateIncidentScopeEnum]; /** * @export */ export declare const WorkflowV2RunsOnIncidentModesEnum: { readonly Standard: "standard"; readonly Test: "test"; readonly Retrospective: "retrospective"; }; export type WorkflowV2RunsOnIncidentModesEnum = typeof WorkflowV2RunsOnIncidentModesEnum[keyof typeof WorkflowV2RunsOnIncidentModesEnum]; /** * @export */ export declare const WorkflowV2RunsOnIncidentsEnum: { readonly NewlyCreated: "newly_created"; readonly NewlyCreatedAndActive: "newly_created_and_active"; }; export type WorkflowV2RunsOnIncidentsEnum = typeof WorkflowV2RunsOnIncidentsEnum[keyof typeof WorkflowV2RunsOnIncidentsEnum]; /** * @export */ export declare const WorkflowV2StateEnum: { readonly Active: "active"; readonly Disabled: "disabled"; readonly Draft: "draft"; readonly Error: "error"; }; export type WorkflowV2StateEnum = typeof WorkflowV2StateEnum[keyof typeof WorkflowV2StateEnum]; /** * Check if a given object implements the WorkflowV2 interface. */ export declare function instanceOfWorkflowV2(value: object): value is WorkflowV2; export declare function WorkflowV2FromJSON(json: any): WorkflowV2; export declare function WorkflowV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowV2; export declare function WorkflowV2ToJSON(json: any): WorkflowV2; export declare function WorkflowV2ToJSONTyped(value?: WorkflowV2 | null, ignoreDiscriminator?: boolean): any;