/** * @type WAFRulePackage: * * @property id: * - **Max Length:** 32 * * @property name: Name of the firewall package * - **Pattern:** /^.*$/ * * @property description: Summary of purpose/function of firewall package * - **Pattern:** /^.*$/ * * @property detection_mode: How the rules within the package are evaluated during the course of a request. When a package uses anomaly detection, each rule is given a score when triggered. If the total score of all triggered rules exceeds the sensitivity defined on the package, the action defined on the package is taken. Traditional detection decides which action to take when it is triggered by the request. If multiple rules are triggered, the action with highest protection is used. For example, a block action beats a challenge. * - **Pattern:** /^.*$/ * * @property zone_id: Zone identifier with which this rule package is associated. * - **Pattern:** /^.*$/ * * @property sensitivity: Sensitivity for traditional (owasp) rule package. * * @property action_mode: The default action that is taken for rules under traditional(owasp) firewall package. * */ export type WAFRulePackage = { id: string; name: string; description: string; detection_mode: string; zone_id: string; sensitivity: WAFRulePackageSensitivityEnum; action_mode: WAFRulePackageActionModeEnum; } & { [key: string]: any; }; export type WAFRulePackageSensitivityEnum = 'low' | 'medium' | 'high' | 'off'; export type WAFRulePackageActionModeEnum = 'simulate' | 'challenge' | 'block';