/** * 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 { StepConfigSlimV2 } from './StepConfigSlimV2.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 WorkflowSlimV2 */ export interface WorkflowSlimV2 { /** * Whether the workflow is configured to run immediately or ask for confirmation in the incident channel */ auto_run_mode: WorkflowSlimV2AutoRunModeEnum; /** * 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; /** * 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: WorkflowSlimV2PrivateIncidentScopeEnum; /** * 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: WorkflowSlimV2RunsOnIncidentsEnum; /** * The shortform used to trigger this workflow (only applicable for manual triggers) */ shortform?: string; /** * What state this workflow is in */ state: WorkflowSlimV2StateEnum; /** * 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 WorkflowSlimV2AutoRunModeEnum: { readonly RunAutomatically: "run_automatically"; readonly ConfirmBeforeRunning: "confirm_before_running"; }; export type WorkflowSlimV2AutoRunModeEnum = typeof WorkflowSlimV2AutoRunModeEnum[keyof typeof WorkflowSlimV2AutoRunModeEnum]; /** * @export */ export declare const WorkflowSlimV2PrivateIncidentScopeEnum: { readonly All: "all"; readonly OwningTeams: "owning_teams"; readonly None: "none"; }; export type WorkflowSlimV2PrivateIncidentScopeEnum = typeof WorkflowSlimV2PrivateIncidentScopeEnum[keyof typeof WorkflowSlimV2PrivateIncidentScopeEnum]; /** * @export */ export declare const WorkflowSlimV2RunsOnIncidentModesEnum: { readonly Standard: "standard"; readonly Test: "test"; readonly Retrospective: "retrospective"; }; export type WorkflowSlimV2RunsOnIncidentModesEnum = typeof WorkflowSlimV2RunsOnIncidentModesEnum[keyof typeof WorkflowSlimV2RunsOnIncidentModesEnum]; /** * @export */ export declare const WorkflowSlimV2RunsOnIncidentsEnum: { readonly NewlyCreated: "newly_created"; readonly NewlyCreatedAndActive: "newly_created_and_active"; }; export type WorkflowSlimV2RunsOnIncidentsEnum = typeof WorkflowSlimV2RunsOnIncidentsEnum[keyof typeof WorkflowSlimV2RunsOnIncidentsEnum]; /** * @export */ export declare const WorkflowSlimV2StateEnum: { readonly Active: "active"; readonly Disabled: "disabled"; readonly Draft: "draft"; readonly Error: "error"; }; export type WorkflowSlimV2StateEnum = typeof WorkflowSlimV2StateEnum[keyof typeof WorkflowSlimV2StateEnum]; /** * Check if a given object implements the WorkflowSlimV2 interface. */ export declare function instanceOfWorkflowSlimV2(value: object): value is WorkflowSlimV2; export declare function WorkflowSlimV2FromJSON(json: any): WorkflowSlimV2; export declare function WorkflowSlimV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowSlimV2; export declare function WorkflowSlimV2ToJSON(json: any): WorkflowSlimV2; export declare function WorkflowSlimV2ToJSONTyped(value?: WorkflowSlimV2 | null, ignoreDiscriminator?: boolean): any;