/** * 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 { ExpressionPayloadV2 } from './ExpressionPayloadV2.js'; import type { StepConfigPayloadV2 } from './StepConfigPayloadV2.js'; import type { WorkflowFormFieldPayloadV2 } from './WorkflowFormFieldPayloadV2.js'; import type { WorkflowDelayV2 } from './WorkflowDelayV2.js'; import type { ConditionGroupPayloadV2 } from './ConditionGroupPayloadV2.js'; /** * * @export * @interface WorkflowsCreateWorkflowPayloadV2 */ export interface WorkflowsCreateWorkflowPayloadV2 { /** * Annotations that track metadata about this resource */ annotations?: { [key: string]: string; }; /** * Whether the workflow runs immediately, or asks for confirmation in the incident channel first. Defaults to `run_automatically` on create. If omitted on update, the workflow keeps its current mode. */ auto_run_mode?: WorkflowsCreateWorkflowPayloadV2AutoRunModeEnum; /** * 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; /** * The expressions to use in the workflow */ 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; /** * Whether to include private escalations */ include_private_escalations?: boolean; /** * DEPRECATED: use `private_incident_scope` instead. May be sent alongside `private_incident_scope` only if they agree; contradictory values return a validation error. */ 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?: WorkflowsCreateWorkflowPayloadV2PrivateIncidentScopeEnum; /** * 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: WorkflowsCreateWorkflowPayloadV2RunsOnIncidentsEnum; /** * The shortform used to trigger this workflow (only applicable for manual triggers) */ shortform?: string; /** * What state this workflow is in */ state?: WorkflowsCreateWorkflowPayloadV2StateEnum; /** * Steps that are executed as part of the workflow */ steps: Array; /** * Trigger to set on the workflow */ trigger: string; } /** * @export */ export declare const WorkflowsCreateWorkflowPayloadV2AutoRunModeEnum: { readonly RunAutomatically: "run_automatically"; readonly ConfirmBeforeRunning: "confirm_before_running"; }; export type WorkflowsCreateWorkflowPayloadV2AutoRunModeEnum = typeof WorkflowsCreateWorkflowPayloadV2AutoRunModeEnum[keyof typeof WorkflowsCreateWorkflowPayloadV2AutoRunModeEnum]; /** * @export */ export declare const WorkflowsCreateWorkflowPayloadV2PrivateIncidentScopeEnum: { readonly All: "all"; readonly OwningTeams: "owning_teams"; readonly None: "none"; }; export type WorkflowsCreateWorkflowPayloadV2PrivateIncidentScopeEnum = typeof WorkflowsCreateWorkflowPayloadV2PrivateIncidentScopeEnum[keyof typeof WorkflowsCreateWorkflowPayloadV2PrivateIncidentScopeEnum]; /** * @export */ export declare const WorkflowsCreateWorkflowPayloadV2RunsOnIncidentModesEnum: { readonly Standard: "standard"; readonly Test: "test"; readonly Retrospective: "retrospective"; }; export type WorkflowsCreateWorkflowPayloadV2RunsOnIncidentModesEnum = typeof WorkflowsCreateWorkflowPayloadV2RunsOnIncidentModesEnum[keyof typeof WorkflowsCreateWorkflowPayloadV2RunsOnIncidentModesEnum]; /** * @export */ export declare const WorkflowsCreateWorkflowPayloadV2RunsOnIncidentsEnum: { readonly NewlyCreated: "newly_created"; readonly NewlyCreatedAndActive: "newly_created_and_active"; }; export type WorkflowsCreateWorkflowPayloadV2RunsOnIncidentsEnum = typeof WorkflowsCreateWorkflowPayloadV2RunsOnIncidentsEnum[keyof typeof WorkflowsCreateWorkflowPayloadV2RunsOnIncidentsEnum]; /** * @export */ export declare const WorkflowsCreateWorkflowPayloadV2StateEnum: { readonly Active: "active"; readonly Disabled: "disabled"; readonly Draft: "draft"; readonly Error: "error"; }; export type WorkflowsCreateWorkflowPayloadV2StateEnum = typeof WorkflowsCreateWorkflowPayloadV2StateEnum[keyof typeof WorkflowsCreateWorkflowPayloadV2StateEnum]; /** * Check if a given object implements the WorkflowsCreateWorkflowPayloadV2 interface. */ export declare function instanceOfWorkflowsCreateWorkflowPayloadV2(value: object): value is WorkflowsCreateWorkflowPayloadV2; export declare function WorkflowsCreateWorkflowPayloadV2FromJSON(json: any): WorkflowsCreateWorkflowPayloadV2; export declare function WorkflowsCreateWorkflowPayloadV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowsCreateWorkflowPayloadV2; export declare function WorkflowsCreateWorkflowPayloadV2ToJSON(json: any): WorkflowsCreateWorkflowPayloadV2; export declare function WorkflowsCreateWorkflowPayloadV2ToJSONTyped(value?: WorkflowsCreateWorkflowPayloadV2 | null, ignoreDiscriminator?: boolean): any;