/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/**
 * This file is used to define constants related to messaging experiments. It is
 * imported by both ASRouter as well as import-rollouts.js, a node script that
 * imports Nimbus rollouts into tree. It doesn't have access to any Firefox
 * APIs, XPCOM, etc. and should be kept that way.
 */

/**
 * These are the Nimbus feature IDs that correspond to messaging experiments.
 * Other Nimbus features contain specific variables whose keys are enumerated in
 * FeatureManifest.yaml. Conversely, messaging experiment features contain
 * actual messages, with the usual message keys like `template` and `targeting`.
 *
 * @see FeatureManifest.yaml
 *
 * Messages delivered through these feature IDs record reach events, with the
 * exception of "pbNewtab". If you're adding new features to this list, make
 * sure they're also added in the `messaging_experiments.reach.objects` defined
 * as new event metrics in "toolkit/components/messaging-system/metrics.yaml".
 */
export const MESSAGING_EXPERIMENTS_DEFAULT_FEATURES = [
  "cfr",
  "infobar",
  "moments-page",
  "pbNewtab",
  "setToDefaultPrompt",
  "spotlight",
  "featureCallout",
  "fxms_bmb_button",
  "fxms-message",
  "fxms-message-1",
  "fxms-message-2",
  "fxms-message-3",
  "fxms-message-4",
  "fxms-message-5",
  "fxms-message-6",
  "fxms-message-7",
  "fxms-message-8",
  "fxms-message-9",
  "fxms-message-10",
  "fxms-message-11",
  "fxms-message-12",
  "fxms-message-13",
  "fxms-message-14",
  "fxms-message-15",
  "fxms-message-16",
  "fxms-message-17",
  "fxms-message-18",
  "fxms-message-19",
  "fxms-message-20",
  "fxms-message-21",
  "fxms-message-22",
  "fxms-message-23",
  "fxms-message-24",
  "fxms-message-25",
];
