@mozilla/nimbus-schemas 2024.11.5 → 2024.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -160,17 +160,27 @@ export interface DesktopAllVersionsNimbusExperiment {
160
160
  */
161
161
  isFirefoxLabsOptIn?: boolean;
162
162
  /**
163
- * An optional string containing the Fluent ID for the title of the opt-in
163
+ * The group this should appear under in Firefox Labs
164
+ */
165
+ firefoxLabsGroup?: string | null;
166
+ /**
167
+ * The title shown in Firefox Labs (Fluent ID)
164
168
  */
165
169
  firefoxLabsTitle?: string | null;
166
170
  /**
167
- * An optional string containing the Fluent ID for the description of the opt-in
171
+ * The description shown in Firefox Labs (Fluent ID)
168
172
  */
169
173
  firefoxLabsDescription?: string | null;
170
174
  /**
171
175
  * Opt out of feature schema validation.
172
176
  */
173
177
  featureValidationOptOut?: boolean;
178
+ /**
179
+ * Does the experiment require a restart to take effect?
180
+ *
181
+ * Only used by Firefox Labs Opt-Ins.
182
+ */
183
+ requiresRestart?: boolean;
174
184
  localizations?: ExperimentLocalizations | null;
175
185
  }
176
186
  export interface ExperimentBucketConfig {
@@ -226,7 +236,7 @@ export interface DesktopAllVersionsExperimentBranch {
226
236
  */
227
237
  features: ExperimentFeatureConfig[];
228
238
  /**
229
- * An optional string containing the title of the branch
239
+ * The branch title shown in Firefox Labs (Fluent ID)
230
240
  */
231
241
  firefoxLabsTitle?: string | null;
232
242
  feature: DesktopPre95FeatureConfig;
@@ -491,17 +501,27 @@ export interface DesktopNimbusExperiment {
491
501
  */
492
502
  isFirefoxLabsOptIn?: boolean;
493
503
  /**
494
- * An optional string containing the Fluent ID for the title of the opt-in
504
+ * The group this should appear under in Firefox Labs
505
+ */
506
+ firefoxLabsGroup?: string | null;
507
+ /**
508
+ * The title shown in Firefox Labs (Fluent ID)
495
509
  */
496
510
  firefoxLabsTitle?: string | null;
497
511
  /**
498
- * An optional string containing the Fluent ID for the description of the opt-in
512
+ * The description shown in Firefox Labs (Fluent ID)
499
513
  */
500
514
  firefoxLabsDescription?: string | null;
501
515
  /**
502
516
  * Opt out of feature schema validation.
503
517
  */
504
518
  featureValidationOptOut?: boolean;
519
+ /**
520
+ * Does the experiment require a restart to take effect?
521
+ *
522
+ * Only used by Firefox Labs Opt-Ins.
523
+ */
524
+ requiresRestart?: boolean;
505
525
  localizations?: ExperimentLocalizations | null;
506
526
  }
507
527
  /**
@@ -523,7 +543,7 @@ export interface DesktopExperimentBranch {
523
543
  */
524
544
  features: ExperimentFeatureConfig[];
525
545
  /**
526
- * An optional string containing the title of the branch
546
+ * The branch title shown in Firefox Labs (Fluent ID)
527
547
  */
528
548
  firefoxLabsTitle?: string | null;
529
549
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mozilla/nimbus-schemas",
3
- "version": "2024.11.5",
3
+ "version": "2024.12.2",
4
4
  "description": "Schemas used by Mozilla Nimbus and related projects.",
5
5
  "main": "index.d.ts",
6
6
  "repository": {
@@ -165,6 +165,17 @@
165
165
  "description": "When this property is set to true, treat this experiment as aFirefox Labs experiment",
166
166
  "type": "boolean"
167
167
  },
168
+ "firefoxLabsGroup": {
169
+ "anyOf": [
170
+ {
171
+ "type": "string"
172
+ },
173
+ {
174
+ "type": "null"
175
+ }
176
+ ],
177
+ "description": "The group this should appear under in Firefox Labs"
178
+ },
168
179
  "firefoxLabsTitle": {
169
180
  "anyOf": [
170
181
  {
@@ -174,7 +185,7 @@
174
185
  "type": "null"
175
186
  }
176
187
  ],
177
- "description": "An optional string containing the Fluent ID for the title of the opt-in"
188
+ "description": "The title shown in Firefox Labs (Fluent ID)"
178
189
  },
179
190
  "firefoxLabsDescription": {
180
191
  "anyOf": [
@@ -185,12 +196,16 @@
185
196
  "type": "null"
186
197
  }
187
198
  ],
188
- "description": "An optional string containing the Fluent ID for the description of the opt-in"
199
+ "description": "The description shown in Firefox Labs (Fluent ID)"
189
200
  },
190
201
  "featureValidationOptOut": {
191
202
  "description": "Opt out of feature schema validation.",
192
203
  "type": "boolean"
193
204
  },
205
+ "requiresRestart": {
206
+ "description": "Does the experiment require a restart to take effect? Only used by Firefox Labs Opt-Ins.",
207
+ "type": "boolean"
208
+ },
194
209
  "localizations": {
195
210
  "anyOf": [
196
211
  {
@@ -239,17 +254,10 @@
239
254
  "isRollout"
240
255
  ]
241
256
  },
242
- "properties": {
243
- "firefoxLabsTitle": {
244
- "type": "string"
245
- },
246
- "firefoxLabsDescription": {
247
- "type": "string"
248
- }
249
- },
250
257
  "required": [
251
- "firefoxLabsTitle",
252
- "firefoxLabsDescription"
258
+ "firefoxLabsDescription",
259
+ "firefoxLabsGroup",
260
+ "firefoxLabsTitle"
253
261
  ],
254
262
  "then": {
255
263
  "properties": {
@@ -293,7 +301,7 @@
293
301
  "type": "null"
294
302
  }
295
303
  ],
296
- "description": "An optional string containing the title of the branch"
304
+ "description": "The branch title shown in Firefox Labs (Fluent ID)"
297
305
  },
298
306
  "feature": {
299
307
  "$ref": "#/$defs/DesktopPre95FeatureConfig",
@@ -165,6 +165,17 @@
165
165
  "description": "When this property is set to true, treat this experiment as aFirefox Labs experiment",
166
166
  "type": "boolean"
167
167
  },
168
+ "firefoxLabsGroup": {
169
+ "anyOf": [
170
+ {
171
+ "type": "string"
172
+ },
173
+ {
174
+ "type": "null"
175
+ }
176
+ ],
177
+ "description": "The group this should appear under in Firefox Labs"
178
+ },
168
179
  "firefoxLabsTitle": {
169
180
  "anyOf": [
170
181
  {
@@ -174,7 +185,7 @@
174
185
  "type": "null"
175
186
  }
176
187
  ],
177
- "description": "An optional string containing the Fluent ID for the title of the opt-in"
188
+ "description": "The title shown in Firefox Labs (Fluent ID)"
178
189
  },
179
190
  "firefoxLabsDescription": {
180
191
  "anyOf": [
@@ -185,12 +196,16 @@
185
196
  "type": "null"
186
197
  }
187
198
  ],
188
- "description": "An optional string containing the Fluent ID for the description of the opt-in"
199
+ "description": "The description shown in Firefox Labs (Fluent ID)"
189
200
  },
190
201
  "featureValidationOptOut": {
191
202
  "description": "Opt out of feature schema validation.",
192
203
  "type": "boolean"
193
204
  },
205
+ "requiresRestart": {
206
+ "description": "Does the experiment require a restart to take effect? Only used by Firefox Labs Opt-Ins.",
207
+ "type": "boolean"
208
+ },
194
209
  "localizations": {
195
210
  "anyOf": [
196
211
  {
@@ -239,17 +254,10 @@
239
254
  "isRollout"
240
255
  ]
241
256
  },
242
- "properties": {
243
- "firefoxLabsTitle": {
244
- "type": "string"
245
- },
246
- "firefoxLabsDescription": {
247
- "type": "string"
248
- }
249
- },
250
257
  "required": [
251
- "firefoxLabsTitle",
252
- "firefoxLabsDescription"
258
+ "firefoxLabsDescription",
259
+ "firefoxLabsGroup",
260
+ "firefoxLabsTitle"
253
261
  ],
254
262
  "then": {
255
263
  "properties": {
@@ -293,7 +301,7 @@
293
301
  "type": "null"
294
302
  }
295
303
  ],
296
- "description": "An optional string containing the title of the branch"
304
+ "description": "The branch title shown in Firefox Labs (Fluent ID)"
297
305
  }
298
306
  },
299
307
  "required": [