@bugbug-io/sdk
    Preparing search index...

    Class StepsModule

    Steps module — CRUD over individual test steps.

    Steps belong to a group (GroupsModule). To list a group's steps, fetch the group and read group.steps — there is no /steps/ list endpoint.

    Index

    Constructors

    • Parameters

      • client: BugBugApiClient

      Returns StepsModule

    Methods

    • Fetch full details of a single step.

      Parameters

      Returns Promise<
          | {
              id: string;
              atIndex?: number
              | null;
              type: "answerPrompt";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "assert";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              continueOnFailure: boolean;
              assertionProperty: | "value"
              | "count"
              | "checked"
              | "customJavaScript"
              | "exist"
              | "notChecked"
              | "notExist"
              | "notVisible"
              | "textContent"
              | "hasAttribute"
              | "hasNotAttribute"
              | "visible"
              | "pageTitle"
              | "pageShowsText"
              | "pageDoesNotShowText"
              | "pageUrlIs"
              | "downloadStarted"
              | "variableValue"
              | "clipboardValue"
              | "disabled"
              | "notDisabled";
              assertionType: | "match"
              | "contain"
              | "equal"
              | "greaterThan"
              | "lessThan"
              | "notContain"
              | "notEqual"
              | "notMatch"
              | "any";
              assertionAttributeName?: string
              | null;
              assertionExpectedValue: string | null;
              assertionJavaScript: string | null;
              assertionVariableName: string | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "pasteFromClipboard";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "change";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "clear";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "click" | "dblClick" | "rightClick";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "closeTab";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "dragAndDrop";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              dndDropSelectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              dndDragOn: "coords"
              | "element";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              dndDragX?: number
              | null;
              dndDragY?: number | null;
              dndDropOn: "coords" | "element";
              dndDropInteractionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              dndDropX?: number
              | null;
              dndDropY?: number | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "elementVisualRegression";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              visualRegressionMaxDiff?: number | null;
              visualRegressionRefScreenshots: { [key: string]: unknown }[];
              selectorsPresets: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: string;
                          type: "" | "XPath" | "customCSS" | "customXPath" | null;
                          selector: string | null;
                          isActive: boolean;
                          score?: string | null;
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "execute";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              code: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "goto";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              url: string;
              username?: string | null;
              password?: string | null;
              frameLocation?: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "openInbox";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "goBack";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "goForward";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "hover";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "ifCondition";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              assertionProperty: | "value"
              | "count"
              | "checked"
              | "customJavaScript"
              | "exist"
              | "notChecked"
              | "notExist"
              | "notVisible"
              | "textContent"
              | "hasAttribute"
              | "hasNotAttribute"
              | "visible"
              | "pageTitle"
              | "pageShowsText"
              | "pageDoesNotShowText"
              | "pageUrlIs"
              | "downloadStarted"
              | "variableValue"
              | "clipboardValue"
              | "disabled"
              | "notDisabled";
              assertionType: | "match"
              | "contain"
              | "equal"
              | "greaterThan"
              | "lessThan"
              | "notContain"
              | "notEqual"
              | "notMatch"
              | "any";
              assertionAttributeName?: string
              | null;
              assertionExpectedValue: string | null;
              assertionJavaScript: string | null;
              assertionVariableName: string | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "mouseDown";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "mouseMove";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              isTargetDocument: boolean;
              mouseMoveSteps?: number | null;
              mouseButtons?: ("left" | "right" | "middle" | "back" | "forward")[];
              modifierKeys?: ("shift" | "ctrl" | "alt" | "meta")[];
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              clientX?: number
              | null;
              clientY?: number | null;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "mouseUp";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "newTab";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              url?: string | null;
              username?: string | null;
              password?: string | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "pageVisualRegression";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              visualRegressionMaxDiff?: number | null;
              visualRegressionRefScreenshots: { [key: string]: unknown }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "reloadPage";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "scroll";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              scrollX?: number
              | null;
              scrollY?: number | null;
              scrollEdge?:
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight"
                  | null;
              scrollDirection?: "left"
              | "right"
              | "down"
              | "up"
              | null;
              scrollTo:
                  | "coords"
                  | "edge"
                  | "untilNextStepElementIsVisible"
                  | "elementIntoView";
              scrollInside: "window"
              | "element";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "select";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              value: string;
              selectType: "value"
              | "text"
              | "index";
              selectIsMultiple: boolean;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "setLocalVariable";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              value?: string;
              code?: string
              | null;
              localVariableName: string;
              localVariableSource: "value" | "evaluate" | "element";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "switchContext";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              tabNo: number;
              value: "topFrame"
              | "iframe";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "type";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "uploadFile";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              projectArtifactId: string;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          },
      >

      When no step matches stepId.

    • Create a new step inside an existing group.

      Parameters

      Returns Promise<
          | {
              id: string;
              atIndex?: number
              | null;
              type: "answerPrompt";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "assert";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              continueOnFailure: boolean;
              assertionProperty: | "value"
              | "count"
              | "checked"
              | "customJavaScript"
              | "exist"
              | "notChecked"
              | "notExist"
              | "notVisible"
              | "textContent"
              | "hasAttribute"
              | "hasNotAttribute"
              | "visible"
              | "pageTitle"
              | "pageShowsText"
              | "pageDoesNotShowText"
              | "pageUrlIs"
              | "downloadStarted"
              | "variableValue"
              | "clipboardValue"
              | "disabled"
              | "notDisabled";
              assertionType: | "match"
              | "contain"
              | "equal"
              | "greaterThan"
              | "lessThan"
              | "notContain"
              | "notEqual"
              | "notMatch"
              | "any";
              assertionAttributeName?: string
              | null;
              assertionExpectedValue: string | null;
              assertionJavaScript: string | null;
              assertionVariableName: string | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "pasteFromClipboard";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "change";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "clear";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "click" | "dblClick" | "rightClick";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "closeTab";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "dragAndDrop";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              dndDropSelectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              dndDragOn: "coords"
              | "element";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              dndDragX?: number
              | null;
              dndDragY?: number | null;
              dndDropOn: "coords" | "element";
              dndDropInteractionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              dndDropX?: number
              | null;
              dndDropY?: number | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "elementVisualRegression";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              visualRegressionMaxDiff?: number | null;
              visualRegressionRefScreenshots: { [key: string]: unknown }[];
              selectorsPresets: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: string;
                          type: "" | "XPath" | "customCSS" | "customXPath" | null;
                          selector: string | null;
                          isActive: boolean;
                          score?: string | null;
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "execute";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              code: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "goto";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              url: string;
              username?: string | null;
              password?: string | null;
              frameLocation?: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "openInbox";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "goBack";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "goForward";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "hover";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "ifCondition";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              assertionProperty: | "value"
              | "count"
              | "checked"
              | "customJavaScript"
              | "exist"
              | "notChecked"
              | "notExist"
              | "notVisible"
              | "textContent"
              | "hasAttribute"
              | "hasNotAttribute"
              | "visible"
              | "pageTitle"
              | "pageShowsText"
              | "pageDoesNotShowText"
              | "pageUrlIs"
              | "downloadStarted"
              | "variableValue"
              | "clipboardValue"
              | "disabled"
              | "notDisabled";
              assertionType: | "match"
              | "contain"
              | "equal"
              | "greaterThan"
              | "lessThan"
              | "notContain"
              | "notEqual"
              | "notMatch"
              | "any";
              assertionAttributeName?: string
              | null;
              assertionExpectedValue: string | null;
              assertionJavaScript: string | null;
              assertionVariableName: string | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "mouseDown";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "mouseMove";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              isTargetDocument: boolean;
              mouseMoveSteps?: number | null;
              mouseButtons?: ("left" | "right" | "middle" | "back" | "forward")[];
              modifierKeys?: ("shift" | "ctrl" | "alt" | "meta")[];
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              clientX?: number
              | null;
              clientY?: number | null;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "mouseUp";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "newTab";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              url?: string | null;
              username?: string | null;
              password?: string | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "pageVisualRegression";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              visualRegressionMaxDiff?: number | null;
              visualRegressionRefScreenshots: { [key: string]: unknown }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "reloadPage";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "scroll";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              scrollX?: number
              | null;
              scrollY?: number | null;
              scrollEdge?:
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight"
                  | null;
              scrollDirection?: "left"
              | "right"
              | "down"
              | "up"
              | null;
              scrollTo:
                  | "coords"
                  | "edge"
                  | "untilNextStepElementIsVisible"
                  | "elementIntoView";
              scrollInside: "window"
              | "element";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "select";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              value: string;
              selectType: "value"
              | "text"
              | "index";
              selectIsMultiple: boolean;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "setLocalVariable";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              value?: string;
              code?: string
              | null;
              localVariableName: string;
              localVariableSource: "value" | "evaluate" | "element";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "switchContext";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              tabNo: number;
              value: "topFrame"
              | "iframe";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "type";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "uploadFile";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              projectArtifactId: string;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          },
      >

      On invalid payload (DRF field errors on error.fields).

    • Fully replace a step via PUT. Use partialUpdate for PATCH semantics.

      Parameters

      Returns Promise<
          | {
              id: string;
              atIndex?: number
              | null;
              type: "answerPrompt";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "assert";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              continueOnFailure: boolean;
              assertionProperty: | "value"
              | "count"
              | "checked"
              | "customJavaScript"
              | "exist"
              | "notChecked"
              | "notExist"
              | "notVisible"
              | "textContent"
              | "hasAttribute"
              | "hasNotAttribute"
              | "visible"
              | "pageTitle"
              | "pageShowsText"
              | "pageDoesNotShowText"
              | "pageUrlIs"
              | "downloadStarted"
              | "variableValue"
              | "clipboardValue"
              | "disabled"
              | "notDisabled";
              assertionType: | "match"
              | "contain"
              | "equal"
              | "greaterThan"
              | "lessThan"
              | "notContain"
              | "notEqual"
              | "notMatch"
              | "any";
              assertionAttributeName?: string
              | null;
              assertionExpectedValue: string | null;
              assertionJavaScript: string | null;
              assertionVariableName: string | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "pasteFromClipboard";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "change";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "clear";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "click" | "dblClick" | "rightClick";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "closeTab";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "dragAndDrop";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              dndDropSelectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              dndDragOn: "coords"
              | "element";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              dndDragX?: number
              | null;
              dndDragY?: number | null;
              dndDropOn: "coords" | "element";
              dndDropInteractionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              dndDropX?: number
              | null;
              dndDropY?: number | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "elementVisualRegression";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              visualRegressionMaxDiff?: number | null;
              visualRegressionRefScreenshots: { [key: string]: unknown }[];
              selectorsPresets: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: string;
                          type: "" | "XPath" | "customCSS" | "customXPath" | null;
                          selector: string | null;
                          isActive: boolean;
                          score?: string | null;
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "execute";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              code: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "goto";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              url: string;
              username?: string | null;
              password?: string | null;
              frameLocation?: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "openInbox";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "goBack";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "goForward";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "hover";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "ifCondition";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              assertionProperty: | "value"
              | "count"
              | "checked"
              | "customJavaScript"
              | "exist"
              | "notChecked"
              | "notExist"
              | "notVisible"
              | "textContent"
              | "hasAttribute"
              | "hasNotAttribute"
              | "visible"
              | "pageTitle"
              | "pageShowsText"
              | "pageDoesNotShowText"
              | "pageUrlIs"
              | "downloadStarted"
              | "variableValue"
              | "clipboardValue"
              | "disabled"
              | "notDisabled";
              assertionType: | "match"
              | "contain"
              | "equal"
              | "greaterThan"
              | "lessThan"
              | "notContain"
              | "notEqual"
              | "notMatch"
              | "any";
              assertionAttributeName?: string
              | null;
              assertionExpectedValue: string | null;
              assertionJavaScript: string | null;
              assertionVariableName: string | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "mouseDown";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "mouseMove";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              isTargetDocument: boolean;
              mouseMoveSteps?: number | null;
              mouseButtons?: ("left" | "right" | "middle" | "back" | "forward")[];
              modifierKeys?: ("shift" | "ctrl" | "alt" | "meta")[];
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              clientX?: number
              | null;
              clientY?: number | null;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "mouseUp";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "newTab";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              url?: string | null;
              username?: string | null;
              password?: string | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "pageVisualRegression";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              visualRegressionMaxDiff?: number | null;
              visualRegressionRefScreenshots: { [key: string]: unknown }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "reloadPage";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "scroll";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              scrollX?: number
              | null;
              scrollY?: number | null;
              scrollEdge?:
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight"
                  | null;
              scrollDirection?: "left"
              | "right"
              | "down"
              | "up"
              | null;
              scrollTo:
                  | "coords"
                  | "edge"
                  | "untilNextStepElementIsVisible"
                  | "elementIntoView";
              scrollInside: "window"
              | "element";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "select";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              value: string;
              selectType: "value"
              | "text"
              | "index";
              selectIsMultiple: boolean;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "setLocalVariable";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              value?: string;
              code?: string
              | null;
              localVariableName: string;
              localVariableSource: "value" | "evaluate" | "element";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "switchContext";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              tabNo: number;
              value: "topFrame"
              | "iframe";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "type";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "uploadFile";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              projectArtifactId: string;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          },
      >

      When the step does not exist.

      On invalid payload.

    • Patch selected fields on a step (PATCH semantics).

      Parameters

      Returns Promise<
          | {
              id: string;
              atIndex?: number
              | null;
              type: "answerPrompt";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "assert";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              continueOnFailure: boolean;
              assertionProperty: | "value"
              | "count"
              | "checked"
              | "customJavaScript"
              | "exist"
              | "notChecked"
              | "notExist"
              | "notVisible"
              | "textContent"
              | "hasAttribute"
              | "hasNotAttribute"
              | "visible"
              | "pageTitle"
              | "pageShowsText"
              | "pageDoesNotShowText"
              | "pageUrlIs"
              | "downloadStarted"
              | "variableValue"
              | "clipboardValue"
              | "disabled"
              | "notDisabled";
              assertionType: | "match"
              | "contain"
              | "equal"
              | "greaterThan"
              | "lessThan"
              | "notContain"
              | "notEqual"
              | "notMatch"
              | "any";
              assertionAttributeName?: string
              | null;
              assertionExpectedValue: string | null;
              assertionJavaScript: string | null;
              assertionVariableName: string | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "pasteFromClipboard";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "change";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "clear";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "click" | "dblClick" | "rightClick";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "closeTab";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "dragAndDrop";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              dndDropSelectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              dndDragOn: "coords"
              | "element";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              dndDragX?: number
              | null;
              dndDragY?: number | null;
              dndDropOn: "coords" | "element";
              dndDropInteractionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              dndDropX?: number
              | null;
              dndDropY?: number | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "elementVisualRegression";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              visualRegressionMaxDiff?: number | null;
              visualRegressionRefScreenshots: { [key: string]: unknown }[];
              selectorsPresets: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: string;
                          type: "" | "XPath" | "customCSS" | "customXPath" | null;
                          selector: string | null;
                          isActive: boolean;
                          score?: string | null;
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "execute";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              code: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "goto";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              url: string;
              username?: string | null;
              password?: string | null;
              frameLocation?: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "openInbox";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "goBack";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "goForward";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "hover";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "ifCondition";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              assertionProperty: | "value"
              | "count"
              | "checked"
              | "customJavaScript"
              | "exist"
              | "notChecked"
              | "notExist"
              | "notVisible"
              | "textContent"
              | "hasAttribute"
              | "hasNotAttribute"
              | "visible"
              | "pageTitle"
              | "pageShowsText"
              | "pageDoesNotShowText"
              | "pageUrlIs"
              | "downloadStarted"
              | "variableValue"
              | "clipboardValue"
              | "disabled"
              | "notDisabled";
              assertionType: | "match"
              | "contain"
              | "equal"
              | "greaterThan"
              | "lessThan"
              | "notContain"
              | "notEqual"
              | "notMatch"
              | "any";
              assertionAttributeName?: string
              | null;
              assertionExpectedValue: string | null;
              assertionJavaScript: string | null;
              assertionVariableName: string | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "mouseDown";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "mouseMove";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              isTargetDocument: boolean;
              mouseMoveSteps?: number | null;
              mouseButtons?: ("left" | "right" | "middle" | "back" | "forward")[];
              modifierKeys?: ("shift" | "ctrl" | "alt" | "meta")[];
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              clientX?: number
              | null;
              clientY?: number | null;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "mouseUp";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              interactionPosition:
                  | "custom"
                  | "smart"
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...)
                          | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "newTab";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              url?: string | null;
              username?: string | null;
              password?: string | null;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "pageVisualRegression";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              visualRegressionMaxDiff?: number | null;
              visualRegressionRefScreenshots: { [key: string]: unknown }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "reloadPage";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "scroll";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              scrollX?: number
              | null;
              scrollY?: number | null;
              scrollEdge?:
                  | "topLeft"
                  | "topCenter"
                  | "topRight"
                  | "middleLeft"
                  | "middleCenter"
                  | "middleRight"
                  | "bottomLeft"
                  | "bottomCenter"
                  | "bottomRight"
                  | null;
              scrollDirection?: "left"
              | "right"
              | "down"
              | "up"
              | null;
              scrollTo:
                  | "coords"
                  | "edge"
                  | "untilNextStepElementIsVisible"
                  | "elementIntoView";
              scrollInside: "window"
              | "element";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "select";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              value: string;
              selectType: "value"
              | "text"
              | "index";
              selectIsMultiple: boolean;
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "setLocalVariable";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              value?: string;
              code?: string
              | null;
              localVariableName: string;
              localVariableSource: "value" | "evaluate" | "element";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "switchContext";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
              tabNo: number;
              value: "topFrame"
              | "iframe";
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "type";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              value: string;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          }
          | {
              id: string;
              atIndex?: number
              | null;
              type: "uploadFile";
              name?: string | null;
              blockId?: string | null;
              groupId?: string | null;
              originGroupId: string;
              notes?: string | null;
              isActive: boolean;
              runTimeout?: number | null;
              sleep?: number | null;
              waitingConditions?: {
                  type:
                      | "documentComplete"
                      | "elementIsVisible"
                      | "elementIsNotCovered"
                      | "elementIsNotAnimating"
                      | "elementIsNotDisabled"
                      | "elementHasFocus"
                      | "networkIdle"
                      | "pageNavigationAfterExecution"
                      | "elementHasAttribute";
                  expected?: string
                  | null;
                  isActive: boolean;
                  isOverridden: boolean;
                  timeout?: number | null;
              }[];
              source: "api"
              | "agent";
              projectArtifactId: string;
              selectorsPresets?: {
                  id?: string;
                  isActive: boolean;
                  isCustom: boolean;
                  selectorsGroups: {
                      id?: string;
                      selectors: {
                          id?: (...) | (...);
                          type: (...) | (...) | (...) | (...) | (...);
                          selector: (...) | (...);
                          isActive: boolean;
                          score?: (...) | (...) | (...);
                      }[];
                      relation: "descendant"
                      | "ancestor"
                      | "sibling";
                  }[];
              }[];
          },
      >

      When the step does not exist.

      On invalid payload.

    • Delete a step by ID.

      Parameters

      Returns Promise<void>

      When the step does not exist.