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

    Class GroupsModule

    Groups module — manage reusable test groups (also called "components" in the public BugBug UI). A group is an ordered list of steps that can be inlined into multiple tests via TestsModule.linkComponent.

    Index

    Constructors

    • Parameters

      • client: BugBugApiClient

      Returns GroupsModule

    Methods

    • List groups with pagination, search, and ordering.

      Parameters

      • options: {
            query?: string;
            cursor?: string;
            pageSize?: number;
            ordering?: "-created" | "-name" | "created" | "name";
        } & RequestOptions = {}
        • Optionalquery?: string

          Search query matched against group name.

        • Optionalcursor?: string
        • OptionalpageSize?: number
        • Optionalordering?: "-created" | "-name" | "created" | "name"

          Sort key; prefix with - for descending.

      Returns Promise<GroupsListResponse>

      Paginated GroupsListResponse.

    • Fetch every group across all pages.

      Parameters

      Returns Promise<
          {
              id: string;
              originGroupId: string;
              name: string
              | null;
              isComponent: boolean;
              folderId: string | null;
              steps: (
                  | {
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                  }
                  | {
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                  }
                  | {
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                  }
                  | {
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                  }
                  | {
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                      dndDropSelectorsPresets?: {
                          id?: string;
                          isActive: boolean;
                          isCustom: boolean;
                          selectorsGroups: { id?: ...; selectors: ...; relation: ... }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                  }
                  | {
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                  }
                  | {
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                  }
                  | {
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                  }
                  | {
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                  }
                  | {
                      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?: ...; selectors: ...; relation: ... }[];
                      }[];
                  }
              )[];
          }[],
      >

    • Fetch a single group by ID (with nested steps).

      Parameters

      Returns Promise<
          {
              id: string;
              originGroupId: string;
              name: string
              | null;
              isComponent: boolean;
              folderId: string | null;
              steps: (
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      dndDropSelectorsPresets?: {
                          id?: string;
                          isActive: boolean;
                          isCustom: boolean;
                          selectorsGroups: {
                              id?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: ...;
                                  type: ...;
                                  selector: ...;
                                  isActive: ...;
                                  score?: ...;
                              }[];
                              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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
              )[];
          },
      >

      When no group matches groupId.

    • Create a new (empty) group.

      Parameters

      • data: {
            name?: string | null;
            isActive?: boolean;
            isComponent?: boolean;
            folderId?: string | null;
            testId: string;
            atIndex?: number;
        }
        • Optionalname?: string | null
        • OptionalisActive?: boolean
        • OptionalisComponent?: boolean
        • OptionalfolderId?: string | null

          Format: uuid

        • testId: string
        • OptionalatIndex?: number
      • options: RequestOptions = {}

      Returns Promise<
          {
              id: string;
              originGroupId: string;
              name: string
              | null;
              isComponent: boolean;
              folderId: string | null;
              steps: (
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      dndDropSelectorsPresets?: {
                          id?: string;
                          isActive: boolean;
                          isCustom: boolean;
                          selectorsGroups: {
                              id?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: ...;
                                  type: ...;
                                  selector: ...;
                                  isActive: ...;
                                  score?: ...;
                              }[];
                              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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
              )[];
          },
      >

      On invalid payload.

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

      Parameters

      • groupId: string
      • data: {
            name?: string | null;
            isActive?: boolean;
            isComponent?: boolean;
            folderId?: string | null;
        }
        • Optionalname?: string | null
        • OptionalisActive?: boolean
        • OptionalisComponent?: boolean
        • OptionalfolderId?: string | null

          Format: uuid

      • options: RequestOptions = {}

      Returns Promise<
          {
              id: string;
              originGroupId: string;
              name: string
              | null;
              isComponent: boolean;
              folderId: string | null;
              steps: (
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      dndDropSelectorsPresets?: {
                          id?: string;
                          isActive: boolean;
                          isCustom: boolean;
                          selectorsGroups: {
                              id?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: ...;
                                  type: ...;
                                  selector: ...;
                                  isActive: ...;
                                  score?: ...;
                              }[];
                              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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
              )[];
          },
      >

      When the group does not exist.

      On invalid payload.

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

      Parameters

      • groupId: string
      • data: {
            name?: string | null;
            isActive?: boolean;
            isComponent?: boolean;
            folderId?: string | null;
        }
        • Optionalname?: string | null
        • OptionalisActive?: boolean
        • OptionalisComponent?: boolean
        • OptionalfolderId?: string | null

          Format: uuid

      • options: RequestOptions = {}

      Returns Promise<
          {
              id: string;
              originGroupId: string;
              name: string
              | null;
              isComponent: boolean;
              folderId: string | null;
              steps: (
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      dndDropSelectorsPresets?: {
                          id?: string;
                          isActive: boolean;
                          isCustom: boolean;
                          selectorsGroups: {
                              id?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: ...;
                                  type: ...;
                                  selector: ...;
                                  isActive: ...;
                                  score?: ...;
                              }[];
                              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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...)
                              | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
                  | {
                      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?: (...) | (...);
                              selectors: (...)[];
                              relation: (...) | (...) | (...);
                          }[];
                      }[];
                  }
              )[];
          },
      >

      When the group does not exist.

      On invalid payload.

    • Delete a group by ID. Tests that reference this group will lose those steps.

      Parameters

      Returns Promise<void>

      When the group does not exist.