"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.systemConnectorActionRefPrefix = exports.preconfiguredConnectorActionRefPrefix = exports.extractedSavedObjectParamReferenceNamePrefix = exports.alertingAuthorizationFilterOpts = exports.RULE_TYPE_CHECKS_CONCURRENCY = exports.MAX_RULES_NUMBER_FOR_BULK_OPERATION = exports.API_KEY_GENERATE_CONCURRENCY = void 0; var _authorization = require("../../authorization"); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ // NOTE: Changing this prefix will require a migration to update the prefix in all existing `rule` saved objects const extractedSavedObjectParamReferenceNamePrefix = 'param:'; // NOTE: Changing this prefix will require a migration to update the prefix in all existing `rule` saved objects exports.extractedSavedObjectParamReferenceNamePrefix = extractedSavedObjectParamReferenceNamePrefix; const preconfiguredConnectorActionRefPrefix = 'preconfigured:'; // NOTE: Changing this prefix will require a migration to update the prefix in all existing `rule` saved objects exports.preconfiguredConnectorActionRefPrefix = preconfiguredConnectorActionRefPrefix; const systemConnectorActionRefPrefix = 'system_action:'; exports.systemConnectorActionRefPrefix = systemConnectorActionRefPrefix; const alertingAuthorizationFilterOpts = { type: _authorization.AlertingAuthorizationFilterType.KQL, fieldNames: { ruleTypeId: 'alert.attributes.alertTypeId', consumer: 'alert.attributes.consumer' } }; exports.alertingAuthorizationFilterOpts = alertingAuthorizationFilterOpts; const MAX_RULES_NUMBER_FOR_BULK_OPERATION = 10000; exports.MAX_RULES_NUMBER_FOR_BULK_OPERATION = MAX_RULES_NUMBER_FOR_BULK_OPERATION; const API_KEY_GENERATE_CONCURRENCY = 50; exports.API_KEY_GENERATE_CONCURRENCY = API_KEY_GENERATE_CONCURRENCY; const RULE_TYPE_CHECKS_CONCURRENCY = 50; exports.RULE_TYPE_CHECKS_CONCURRENCY = RULE_TYPE_CHECKS_CONCURRENCY;