/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { expect, test } from "vitest"; import { Incidentio } from "../index.js"; test("Workflows Workflows V2 #List Workflows", async () => { const incidentio = new Incidentio(); const result = await incidentio.workflows.list(); expect(result).toBeDefined(); expect(result).toBeDefined(); expect(result).toEqual({ workflows: [ { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], continueOnStepError: true, delay: { conditionsApplyOverDelay: false, forSeconds: 60, }, expressions: [ { elseBranch: { result: { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, }, label: "Team Slack channel", operations: [ { branches: { branches: [ { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], result: { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, }, ], returns: { array: true, type: "IncidentStatus", }, }, filter: { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], }, navigate: { reference: "1235", referenceLabel: "Teams", }, operationType: "navigate", parse: { returns: { array: true, type: "IncidentStatus", }, source: "metadata.annotations[\"github.com/repo\"]", }, returns: { array: true, type: "IncidentStatus", }, }, ], reference: "abc123", returns: { array: true, type: "IncidentStatus", }, rootReference: "incident.status", }, ], folder: "My folder 01", id: "01FCNDV6P870EA6S7TK1DSYDG0", includePrivateIncidents: true, name: "My workflow", onceFor: [ { array: false, key: "incident.custom_field[\"01FCNDV6P870EA6S7TK1DSYDG0\"]", label: "Incident -> Affected Team", type: "IncidentSeverity", }, ], runsFrom: new Date("2021-08-17T13:28:57.801578Z"), runsOnIncidentModes: [ "standard", "retrospective", ], runsOnIncidents: "newly_created", state: "active", steps: [ { label: "PagerDuty Escalate", name: "pagerduty.escalate", }, ], trigger: { label: "Incident Updated", name: "incident.updated", }, version: 3, }, ], }); }); test("Workflows Workflows V2 #Create Workflow", async () => { const incidentio = new Incidentio(); const result = await incidentio.workflows.create({ annotations: { "incident.io/terraform/version": "3.0.0", }, conditionGroups: [ { conditions: [ { operation: "one_of", paramBindings: [ { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, ], subject: "incident.severity", }, ], }, ], continueOnStepError: true, delay: { conditionsApplyOverDelay: false, forSeconds: 60, }, expressions: [ { elseBranch: { result: { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, }, label: "Team Slack channel", operations: [ { branches: { branches: [ { conditionGroups: [ { conditions: [ { operation: "one_of", paramBindings: [ { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, ], subject: "incident.severity", }, ], }, ], result: { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, }, ], returns: { array: true, type: "IncidentStatus", }, }, filter: { conditionGroups: [ { conditions: [ { operation: "one_of", paramBindings: [ { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, ], subject: "incident.severity", }, ], }, ], }, navigate: { reference: "catalog_attribute[\"01FCNDV6P870EA6S7TK1DSYD5H\"]", }, operationType: "navigate", parse: { returns: { array: true, type: "IncidentStatus", }, source: "metadata.annotations[\"github.com/repo\"]", }, }, ], reference: "abc123", rootReference: "incident.status", }, ], folder: "My folder 01", includePrivateIncidents: true, name: "My workflow", onceFor: [ "incident.url", ], runsOnIncidentModes: [ "standard", "retrospective", ], runsOnIncidents: "newly_created", state: "active", steps: [ { forEach: "abc123", id: "abc123", name: "pagerduty.escalate", paramBindings: [ { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, ], }, ], trigger: "incident.updated", }); expect(result).toBeDefined(); expect(result).toBeDefined(); expect(result).toEqual({ managementMeta: { annotations: { "incident.io/terraform/version": "3.0.0", }, managedBy: "dashboard", sourceUrl: "https://github.com/my-company/infrastructure", }, workflow: { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], continueOnStepError: true, delay: { conditionsApplyOverDelay: false, forSeconds: 60, }, expressions: [ { elseBranch: { result: { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, }, label: "Team Slack channel", operations: [ { branches: { branches: [ { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], result: { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, }, ], returns: { array: true, type: "IncidentStatus", }, }, filter: { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], }, navigate: { reference: "1235", referenceLabel: "Teams", }, operationType: "navigate", parse: { returns: { array: true, type: "IncidentStatus", }, source: "metadata.annotations[\"github.com/repo\"]", }, returns: { array: true, type: "IncidentStatus", }, }, ], reference: "abc123", returns: { array: true, type: "IncidentStatus", }, rootReference: "incident.status", }, ], folder: "My folder 01", id: "01FCNDV6P870EA6S7TK1DSYDG0", includePrivateIncidents: true, name: "My workflow", onceFor: [ { array: false, key: "incident.custom_field[\"01FCNDV6P870EA6S7TK1DSYDG0\"]", label: "Incident -> Affected Team", type: "IncidentSeverity", }, ], runsFrom: new Date("2021-08-17T13:28:57.801578Z"), runsOnIncidentModes: [ "standard", "retrospective", ], runsOnIncidents: "newly_created", state: "active", steps: [ { forEach: "abc123", id: "abc123", label: "PagerDuty Escalate", name: "pagerduty.escalate", paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], }, ], trigger: { label: "Incident Updated", name: "incident.updated", }, version: 3, }, }); }); test("Workflows Workflows V2 #Destroy Workflow", async () => { const incidentio = new Incidentio(); await incidentio.workflows.delete({ id: "01FCNDV6P870EA6S7TK1DSYDG0", }); }); test("Workflows Workflows V2 #Show Workflow", async () => { const incidentio = new Incidentio(); const result = await incidentio.workflows.get({ id: "01FCNDV6P870EA6S7TK1DSYDG0", }); expect(result).toBeDefined(); expect(result).toBeDefined(); expect(result).toEqual({ managementMeta: { annotations: { "incident.io/terraform/version": "3.0.0", }, managedBy: "dashboard", sourceUrl: "https://github.com/my-company/infrastructure", }, workflow: { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], continueOnStepError: true, delay: { conditionsApplyOverDelay: false, forSeconds: 60, }, expressions: [ { elseBranch: { result: { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, }, label: "Team Slack channel", operations: [ { branches: { branches: [ { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], result: { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, }, ], returns: { array: true, type: "IncidentStatus", }, }, filter: { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], }, navigate: { reference: "1235", referenceLabel: "Teams", }, operationType: "navigate", parse: { returns: { array: true, type: "IncidentStatus", }, source: "metadata.annotations[\"github.com/repo\"]", }, returns: { array: true, type: "IncidentStatus", }, }, ], reference: "abc123", returns: { array: true, type: "IncidentStatus", }, rootReference: "incident.status", }, ], folder: "My folder 01", id: "01FCNDV6P870EA6S7TK1DSYDG0", includePrivateIncidents: true, name: "My workflow", onceFor: [ { array: false, key: "incident.custom_field[\"01FCNDV6P870EA6S7TK1DSYDG0\"]", label: "Incident -> Affected Team", type: "IncidentSeverity", }, ], runsFrom: new Date("2021-08-17T13:28:57.801578Z"), runsOnIncidentModes: [ "standard", "retrospective", ], runsOnIncidents: "newly_created", state: "active", steps: [ { forEach: "abc123", id: "abc123", label: "PagerDuty Escalate", name: "pagerduty.escalate", paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], }, ], trigger: { label: "Incident Updated", name: "incident.updated", }, version: 3, }, }); }); test("Workflows Workflows V2 #Update Workflow", async () => { const incidentio = new Incidentio(); const result = await incidentio.workflows.update({ id: "01FCNDV6P870EA6S7TK1DSYDG0", updateWorkflowRequestBody: { annotations: { "incident.io/terraform/version": "3.0.0", }, conditionGroups: [ { conditions: [ { operation: "one_of", paramBindings: [ { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, ], subject: "incident.severity", }, ], }, ], continueOnStepError: true, delay: { conditionsApplyOverDelay: false, forSeconds: 60, }, expressions: [ { elseBranch: { result: { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, }, label: "Team Slack channel", operations: [ { branches: { branches: [ { conditionGroups: [ { conditions: [ { operation: "one_of", paramBindings: [ { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, ], subject: "incident.severity", }, ], }, ], result: { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, }, ], returns: { array: true, type: "IncidentStatus", }, }, filter: { conditionGroups: [ { conditions: [ { operation: "one_of", paramBindings: [ { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, ], subject: "incident.severity", }, ], }, ], }, navigate: { reference: "catalog_attribute[\"01FCNDV6P870EA6S7TK1DSYD5H\"]", }, operationType: "navigate", parse: { returns: { array: true, type: "IncidentStatus", }, source: "metadata.annotations[\"github.com/repo\"]", }, }, ], reference: "abc123", rootReference: "incident.status", }, ], folder: "My folder 01", includePrivateIncidents: true, name: "My workflow", onceFor: [ "incident.url", ], runsOnIncidentModes: [ "standard", "retrospective", ], runsOnIncidents: "newly_created", state: "active", steps: [ { forEach: "abc123", id: "abc123", name: "pagerduty.escalate", paramBindings: [ { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, ], }, ], }, }); expect(result).toBeDefined(); expect(result).toBeDefined(); expect(result).toEqual({ managementMeta: { annotations: { "incident.io/terraform/version": "3.0.0", }, managedBy: "dashboard", sourceUrl: "https://github.com/my-company/infrastructure", }, workflow: { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], continueOnStepError: true, delay: { conditionsApplyOverDelay: false, forSeconds: 60, }, expressions: [ { elseBranch: { result: { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, }, label: "Team Slack channel", operations: [ { branches: { branches: [ { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], result: { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, }, ], returns: { array: true, type: "IncidentStatus", }, }, filter: { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], }, navigate: { reference: "1235", referenceLabel: "Teams", }, operationType: "navigate", parse: { returns: { array: true, type: "IncidentStatus", }, source: "metadata.annotations[\"github.com/repo\"]", }, returns: { array: true, type: "IncidentStatus", }, }, ], reference: "abc123", returns: { array: true, type: "IncidentStatus", }, rootReference: "incident.status", }, ], folder: "My folder 01", id: "01FCNDV6P870EA6S7TK1DSYDG0", includePrivateIncidents: true, name: "My workflow", onceFor: [ { array: false, key: "incident.custom_field[\"01FCNDV6P870EA6S7TK1DSYDG0\"]", label: "Incident -> Affected Team", type: "IncidentSeverity", }, ], runsFrom: new Date("2021-08-17T13:28:57.801578Z"), runsOnIncidentModes: [ "standard", "retrospective", ], runsOnIncidents: "newly_created", state: "active", steps: [ { forEach: "abc123", id: "abc123", label: "PagerDuty Escalate", name: "pagerduty.escalate", paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], }, ], trigger: { label: "Incident Updated", name: "incident.updated", }, version: 3, }, }); }); test("Workflows Workflows V2 #Update Workflow Default", async () => { const incidentio = new Incidentio(); const result = await incidentio.workflows.update({ id: "01FCNDV6P870EA6S7TK1DSYDG0", updateWorkflowRequestBody: { annotations: { "incident.io/terraform/version": "3.0.0", }, conditionGroups: [ { conditions: [ { operation: "one_of", paramBindings: [ { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, ], subject: "incident.severity", }, ], }, ], continueOnStepError: true, delay: { conditionsApplyOverDelay: false, forSeconds: 60, }, expressions: [ { elseBranch: { result: { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, }, label: "Team Slack channel", operations: [ { branches: { branches: [ { conditionGroups: [ { conditions: [ { operation: "one_of", paramBindings: [ { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, ], subject: "incident.severity", }, ], }, ], result: { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, }, ], returns: { array: true, type: "IncidentStatus", }, }, filter: { conditionGroups: [ { conditions: [ { operation: "one_of", paramBindings: [ { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, ], subject: "incident.severity", }, ], }, ], }, navigate: { reference: "catalog_attribute[\"01FCNDV6P870EA6S7TK1DSYD5H\"]", }, operationType: "navigate", parse: { returns: { array: true, type: "IncidentStatus", }, source: "metadata.annotations[\"github.com/repo\"]", }, }, ], reference: "abc123", rootReference: "incident.status", }, ], folder: "My folder 01", includePrivateIncidents: true, name: "My workflow", onceFor: [ "incident.url", ], runsOnIncidentModes: [ "standard", "retrospective", ], runsOnIncidents: "newly_created", state: "active", steps: [ { forEach: "abc123", id: "abc123", name: "pagerduty.escalate", paramBindings: [ { arrayValue: [ { literal: "SEV123", reference: "incident.severity", }, ], value: { literal: "SEV123", reference: "incident.severity", }, }, ], }, ], }, }); expect(result).toBeDefined(); expect(result).toBeDefined(); expect(result).toEqual({ managementMeta: { annotations: { "incident.io/terraform/version": "3.0.0", }, managedBy: "dashboard", sourceUrl: "https://github.com/my-company/infrastructure", }, workflow: { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], continueOnStepError: true, delay: { conditionsApplyOverDelay: false, forSeconds: 60, }, expressions: [ { elseBranch: { result: { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, }, label: "Team Slack channel", operations: [ { branches: { branches: [ { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], result: { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, }, ], returns: { array: true, type: "IncidentStatus", }, }, filter: { conditionGroups: [ { conditions: [ { operation: { label: "Lawrence Jones", value: "01FCQSP07Z74QMMYPDDGQB9FTG", }, paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], subject: { label: "Incident Severity", reference: "incident.severity", }, }, ], }, ], }, navigate: { reference: "1235", referenceLabel: "Teams", }, operationType: "navigate", parse: { returns: { array: true, type: "IncidentStatus", }, source: "metadata.annotations[\"github.com/repo\"]", }, returns: { array: true, type: "IncidentStatus", }, }, ], reference: "abc123", returns: { array: true, type: "IncidentStatus", }, rootReference: "incident.status", }, ], folder: "My folder 01", id: "01FCNDV6P870EA6S7TK1DSYDG0", includePrivateIncidents: true, name: "My workflow", onceFor: [ { array: false, key: "incident.custom_field[\"01FCNDV6P870EA6S7TK1DSYDG0\"]", label: "Incident -> Affected Team", type: "IncidentSeverity", }, ], runsFrom: new Date("2021-08-17T13:28:57.801578Z"), runsOnIncidentModes: [ "standard", "retrospective", ], runsOnIncidents: "newly_created", state: "active", steps: [ { forEach: "abc123", id: "abc123", label: "PagerDuty Escalate", name: "pagerduty.escalate", paramBindings: [ { arrayValue: [ { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, ], value: { label: "Lawrence Jones", literal: "SEV123", reference: "incident.severity", }, }, ], }, ], trigger: { label: "Incident Updated", name: "incident.updated", }, version: 3, }, }); });